:root {
    --primary-bg: #11395b;
    --primary-gradient: linear-gradient(90deg, #9caebf 0%, #295576 30%, #153c5e 100%);
    --footer-bg: #143d5c;
    --footer-heading: #3b82f6; /* bright blue */
    --footer-text: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.2);
    --footer-icon-bg: #2b5a7a;
    --footer-icon-hover: #3b82f6;
    --scroll-top-bg: #4c8cd4;
}

/* Reset and Container for Header Component */
.main-header {
    width: 100%;
    background: linear-gradient(90deg, #9caebf 0%, #295576 30%, #153c5e 100%);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    /* Sticky */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    height: 75px;
    gap: 16px;
}

/* Brand Logo and Text */
.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #ffffff;
    white-space: nowrap;
}

/* Navigation List */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 18px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Caret below the text */
.dropdown-caret {
    position: absolute;
    bottom: -2px;
    /* Positioned directly below the text content to match image design */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    line-height: 1;
    color: inherit;
    transition: transform 0.2s ease;
}

.nav-item.dropdown:hover .dropdown-caret {
    transform: translateX(-50%) rotate(180deg);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a496b;
    /* Exact blue hex match to image representation */
    min-width: 280px;
    list-style: none;
    margin: 0;
    padding: 15px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 6px 6px;

    /* Reveal Animation preparation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Links */
.dropdown-link {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 400;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* =========================================
   Hamburger Button
   ========================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ham-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

/* Animated X state */
.hamburger.is-open .ham-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .ham-line:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger.is-open .ham-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   Mobile Nav Overlay (dim background)
   ========================================= */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* =========================================
   Responsive — Mobile
   ========================================= */
@media screen and (max-width: 1024px) {
    .header-container {
        flex-direction: row;
        height: 65px;
        padding: 0 20px;
        position: relative;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
        order: 3;
    }

    /* Nav drawer — slides in from the right */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100dvh;
        background: linear-gradient(160deg, #153c5e 0%, #1a496b 100%);
        z-index: 999;
        overflow-y: auto;
        padding: 70px 0 30px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    }

    .main-nav.is-open {
        right: 0;
    }

    /* Show dim overlay when nav is open */
    .main-nav.is-open ~ * .nav-overlay,
    .main-nav.is-open .nav-overlay {
        display: block;
        opacity: 1;
    }

    .nav-overlay {
        display: none;
    }

    .main-nav.is-open + .nav-overlay,
    .main-nav.is-open .nav-overlay {
        display: block;
        opacity: 1;
    }

    /* Stack nav items vertically */
    .main-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        height: auto;
        padding: 0 8px;
    }

    .nav-item {
        height: auto;
        display: block;
    }

    .nav-link {
        flex-direction: row;
        justify-content: space-between;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 8px;
        width: 100%;
    }

    /* Dropdown caret — inline on mobile */
    .dropdown-caret {
        position: static;
        transform: none;
        font-size: 0.7rem;
        margin-left: auto;
        transition: transform 0.25s ease;
    }

    .nav-item.dropdown.mobile-open .dropdown-caret {
        transform: rotate(180deg);
    }

    /* Mobile dropdown — accordion, not absolute */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.07);
        padding: 4px 0;
        margin: 0 0 4px 0;
        min-width: unset;
        /* Hidden by default — accordion */
        display: none;
    }

    .nav-item.dropdown.mobile-open .dropdown-menu {
        display: block;
    }

    .dropdown-link {
        font-size: 0.9rem;
        padding: 11px 24px;
    }
}

/* =========================================
   Footer Component Styles
   ========================================= */
.main-footer {
    width: 100%;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    padding-top: 50px;
    padding-bottom: 25px;
}

.footer-container {
    max-width: 1400px; /* Aligned with a max container width, somewhat like the header */
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* Top Section: Grid */
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col-about {
    flex: 1;
    min-width: 300px;
    max-width: 450px; /* Takes more space as seen in image */
}

.footer-col-links,
.footer-col-contact {
    flex: 1;
    min-width: 250px;
}

.footer-heading {
    color: var(--footer-heading);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* About Column Text */
.footer-text {
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: var(--footer-text);
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--footer-icon-bg);
    color: var(--footer-text);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    background-color: var(--footer-icon-hover);
    transform: translateY(-2px);
}

/* Quick Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--footer-heading);
}

/* Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.95rem;
    gap: 12px;
}

.contact-icon {
    margin-top: 2px;
    opacity: 0.9;
}

/* Divider */
.footer-divider {
    height: 1px;
    background-color: var(--footer-border);
    margin: 25px 0;
}

/* Bottom Section */
.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* Scroll Top Button */
.scroll-top {
    position: absolute;
    bottom: 20px;
    right: 40px;
    width: 45px;
    height: 45px;
    background-color: var(--scroll-top-bg);
    color: var(--footer-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.scroll-top:hover {
    background-color: var(--footer-heading);
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
    }
    .scroll-top {
        right: 20px;
        bottom: 20px;
        position: fixed;
    }
}