/* 
      BASE STYLES FROM index.html (Spot Palette)
    */
:root {
    --navy: #0b1f3a;
    --navy-light: #16325c;
    --blue: #1e5fa8;
    --gold: #c8921a;
    --gold-light: #f0b429;
    --text: #333;
    --bg: #f8fafc;
    --white: #fff;
    --surface: #f1f5fb;
    --muted: #5a7496;
    --line: #dde4ef;

    --shadow-sm: 0 4px 16px rgba(11, 31, 58, .08);
    --shadow-md: 0 12px 40px rgba(11, 31, 58, .12);
    --shadow-lg: 0 24px 64px rgba(11, 31, 58, .14);
    --rp: 999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* PRELOADER */
#preload {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
}

.left-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 12px;
}

.right-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.right-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    transition: color 0.3s;
}

.right-nav a:hover,
.right-nav a.active {
    color: var(--blue);
}

.button {
    padding: 10px 24px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.3s;
}

.button:hover {
    background: var(--navy);
}

.mobilenav,
.close-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}

/* PAGE HERO (Adapted from Old About-Team but matched to new palette) */
.page-hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(200, 146, 26, .1), transparent 60%), radial-gradient(circle at 80% 30%, rgba(30, 95, 168, .2), transparent 60%);
}

.page-hero-inner {
    position: relative;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--rp);
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 22px;
}

.page-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.page-hero h1 span {
    background: var(--gold-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 18px;
    color: white;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
    text-align-last: center;
}

/* SECTIONS (Keeping old about-team.html layout styles but updating fonts) */
.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--surface);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--blue);
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--navy);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.02rem;
    color: #555;
    max-width: 640px;
    line-height: 1.7;
}

/* ABOUT STATS MIGRATED TO HERO */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.about-stat {
    text-align: center;
}

.about-stat .num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat .lbl {
    font-size: .85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ABOUT GRID */
.about-header {
    text-align: center;
    margin-bottom: 64px;
}

.about-header .section-desc {
    margin: 8px auto 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(30, 95, 168, 0.1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: color 0.3s ease, background 0.3s ease;
}

.about-card:hover .about-icon {
    background: var(--gold);
    color: #fff;
}

.about-card h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.about-card p {
    color: #666;
    font-size: .97rem;
    line-height: 1.7;
}


/* BRANDS */
.brands-section {
    padding: 60px 0;
}

.brands-label {
    text-align: center;
    margin-bottom: 32px;
}

.brands-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-pill {
    padding: 14px 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--rp);
    font-weight: 600;
    font-size: .95rem;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.brand-pill::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.brand-pill:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.brand-pill:hover::before {
    transform: scaleX(1);
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
}

/* TEAM */
.team-header {
    text-align: center;
    margin-bottom: 56px;
}

.team-header .section-desc {
    margin: 8px auto 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.member-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: box-shadow .3s, transform .3s;
}

.member-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 10;
}

.member-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.member-card:hover::before {
    transform: scaleX(1);
}

.member-top {
    background: var(--surface);
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    position: relative;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(18, 59, 109, .1);
    margin: 0 auto 14px;
    border: 3px solid var(--white);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-top h4 {
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.role-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--rp);
    background: rgba(30, 95, 168, 0.1);
    color: var(--blue);
    font-weight: 600;
    font-size: .78rem;
}

.member-body {
    padding: 18px 20px 22px;
    text-align: center;
}

.member-body p {
    color: #666;
    font-size: .88rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.member-links a {
    padding: 6px 14px;
    border-radius: var(--rp);
    border: 1px solid var(--line);
    font-size: .8rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--surface);
    transition: background .2s, color .2s;
}

.member-links a:hover {
    background: var(--blue);
    color: #fff;
}

/* FOOTER (MATCHED TO index.html) */
footer {
    background: var(--navy);
    padding: 60px 0 40px;
    color: #fff;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 52px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 28px;
}

.footer-brand img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 18px;
    background: var(--white);
}

.footer-brand h2 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-brand h2 span {
    color: var(--gold-light);
}

.footer-brand p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .55);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-col ul li a {
    font-size: .93rem;
    color: rgba(255, 255, 255, .75);
    transition: color .2s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* FAQ MODAL */
.info-section {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.info-logo {
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(200, 146, 26, 0.4);
    transition: transform 0.2s;
}

.info-logo:hover {
    transform: scale(1.1);
}

.faq-modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.faq-modal.open {
    opacity: 1;
    visibility: visible;
}

.faq-wrapper {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.3s;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.faq-modal.open .faq-wrapper {
    transform: translateY(0);
}

.faq-header {
    background: var(--navy);
    color: #fff;
    padding: 30px;
    position: relative;
}

.faq-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.faq-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.faq-content {
    padding: 20px 30px;
    overflow-y: auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.question-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.question-number {
    font-weight: 700;
    color: var(--blue);
}

.faq-question h3 {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.answer-content {
    padding: 15px 0 5px 25px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ANIMATIONS & RESPONSIVE */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width:1100px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:860px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .right-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s;
    }

    .right-nav.active {
        right: 0;
    }

    .right-nav ul {
        flex-direction: column;
    }

    .mobilenav,
    .close-menu {
        display: block;
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

@media(max-width:640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* --- DROP-DOWN SYSTEM (MATCHED TO INDEX LOGIC) --- */

.careers-menu {
    position: relative;
    cursor: pointer;
}

/* Arrow Rotation Logic */
.arrow-icon {
    font-size: 0.7rem;
    margin-left: 8px;
    transition: transform 0.3s ease; /* Smooth rotation */
}

/* When the menu is active, rotate the arrow */
.careers-menu.active .arrow-icon {
    transform: rotate(180deg);
    color: var(--gold);
}

/* Dropdown visibility controlled by class */
.right-nav .dropdown {
    display: none; 
    position: absolute;
    top: 110%; /* Starting position for animation */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 200px;
    box-shadow: var(--shadow-md); /* Using your index shadow variable */
    border-radius: 12px;
    border-top: 3px solid var(--gold);
    padding: 10px 0;
    z-index: 1100; /* Higher than hero content */
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Toggle state */
.careers-menu.active .dropdown {
    display: block;
    opacity: 1;
    pointer-events: auto;
    /* This aligns it perfectly under your 70px header */
    top: 180%; 
}

/* Dropdown Item Styles */
.right-nav .dropdown li {
    width: 100%;
}

.right-nav .dropdown li a {
    display: block !important;
    padding: 10px 15px !important;
    color: var(--navy) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.right-nav .dropdown li a:hover {
    background: var(--surface);
    color: var(--blue) !important;
    padding-left: 25px !important;
}

/* Mobile: Ensure it looks good in the side menu */
@media (max-width: 860px) {
    .right-nav .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        display: none; /* Controlled by toggle class */
        padding-left: 20px;
        background: transparent;
        border: none;
    }
    .careers-menu.active .dropdown {
        display: block;
    }
}