/* frontend-refined.css - Standardized UI improvements */

/* ── Top Header ── */
.top-header {
    background: #004a8c !important;
    padding: 5px 0 !important;
    color: white;
    font-family: 'Inter', sans-serif;
}
.top-header .container, .header-main .container, .custom-nav .container {
    max-width: 1400px !important;
    width: 100%;
}
.top-nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}
.top-nav li {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-nav a {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}
.top-nav a:hover {
    color: #fff !important;
}
.top-nav i {
    font-size: 12px;
    opacity: 0.8;
}
.social-links a {
    margin-left: 15px;
    font-size: 14px;
    color: rgba(255,255,255,0.8) !important;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: #fff !important;
    transform: translateY(-1px);
}
#languageDropdown {
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}

/* Sticky Navbar & Main Menu Desktop */
.custom-nav {
    background-color: #004a8c;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.custom-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 10px 7px !important;
    white-space: nowrap;
    transition: all 0.3s;
}
.custom-nav .nav-link:hover, .custom-nav .nav-link:focus, .custom-nav .nav-item.active .nav-link {
    background-color: #003a6b;
    color: #fff !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Navbar Hover Effects & Dropdown Animation */
.navbar-nav .nav-item .nav-link {
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    background-color: #003a6b;
}

/* Dropdown Animation (Desktop) */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeInDrop 0.2s ease forwards;
    }
    .navbar .dropdown > .dropdown-menu {
        display: none;
        transform-origin: top center;
        border: none;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-radius: 8px;
        margin-top: 0;
    }
}

@keyframes fadeInDrop {
    0% {
        opacity: 0;
        transform: translateY(10px) scaleY(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

/* Mobile Offcanvas Enhancements */
.offcanvas-body {
    overflow-y: auto;
    padding-bottom: 2rem;
}

.canvas-menu {
    padding: 10px 0;
}
.canvas-menu-item {
    border-bottom: 1px solid #e2e8f0;
}
.canvas-menu-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.canvas-menu-item > a:hover {
    background-color: #f1f5f9;
    color: #004a8c;
}
.menu-icon-wrap {
    width: 28px;
    text-align: center;
    color: #64748b;
}
.canvas-menu-item > a:hover .menu-icon-wrap {
    color: #004a8c;
}
.dropdown-container {
    display: none;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
.sub-item {
    display: block;
    padding: 10px 22px 10px 55px;
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}
.sub-item:hover {
    background-color: #e2e8f0;
    color: #004a8c;
}
.sub-header {
    padding: 12px 22px 8px 55px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #004a8c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sub-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 4px 22px 4px 55px;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.mobile-menu-link:hover {
    background-color: #f8f9fa;
    color: #1e40af;
}

.mobile-submenu-item {
    padding-left: 2rem;
    font-size: 0.95em;
    border-bottom: 1px dashed #e2e8f0;
}

/* ── Premium Stat Cards ── */
.stats-section {
    padding: 4rem 0 5rem 0;
    position: relative;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 74, 140, 0.05);
    border: 1px solid rgba(0, 74, 140, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 74, 140, 0) 0%, rgba(0, 74, 140, 0.04) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 74, 140, 0.12);
    border-color: rgba(0, 74, 140, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #004a8c 0%, #0088ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ── Standardized Compact Subpage Hero ── */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 50px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1523961131990-5ea7c61b2107?auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.hero-shape {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-shape .shape-fill {
    fill: #ffffff;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb-custom {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 24px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb-custom a:hover {
    color: #f59e0b; /* secondary color */
}
