@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ============================================
   UNIFIED COLOR SYSTEM
   ============================================ */
:root {
    /* Primary Colors - Red (Actions, CTAs, Brand) */
    --color-primary: #FF3333;
    --color-primary-hover: #ff6565;
    --color-primary-light: #ffe1e1;
    --color-primary-dark: #cc2929;
    
    /* Secondary Colors - Green (Accents, Stats, Success) */
    --color-secondary: #1f6a45;
    --color-secondary-hover: #2d8f5a;
    --color-secondary-light: #e1f5ec;
    --color-secondary-dark: #195a3b;
    
    /* User Chat Bubble - Medium Green */
    --color-user-chat: #4a9d6e;
    --color-user-chat-text: #ffffff;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-black: #1b1b1b;
    --color-text-primary: #1f2937;
    --color-text-secondary: #333333;
    --color-text-muted: #6b7280;
    --color-text-light: #666666;
    
    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f7f7f5;
    --color-bg-tertiary: #fafafa;
    --color-bg-hover: #f5f5f5;
    --color-bg-bot: #eceff3;
    
    /* Border Colors */
    --color-border-light: #e6e6e6;
    --color-border-medium: #e5e7eb;
    --color-border-dark: #ccc;
    
    /* Footer */
    --color-footer-bg: #0e3a2f;
    --color-footer-text: #ffffff;
    --color-footer-link: #d2f0e7;
    
    /* Status Colors */
    --color-success: #246b24;
    --color-success-bg: #eaf7ea;
    --color-success-border: #cbe9cb;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.07);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.18);
    --shadow-xl: 0 16px 32px rgba(0,0,0,0.15);
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('assets/bg1.jpg') center / cover no-repeat;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

body::-webkit-scrollbar {
    display: none; /* WebKit browsers (Chrome, Safari, Edge) */
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

html::-webkit-scrollbar {
    display: none; /* WebKit browsers (Chrome, Safari, Edge) */
}

.utility-topbar {
    background: var(--color-primary-hover);
    color: var(--color-white);
    font-size: 14px;
}

.utility-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.utility-inner .mayor {
    opacity: .95;
}

.utility-actions .lang-btn { display: none; }

/* Custom language dropdown */
.lang-menu { position: relative; }
.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    color: #ffffff;
    border-radius: 8px;
    padding: .28rem .6rem;
    cursor: pointer;
}
.lang-trigger:hover { background: rgba(255,255,255,.18); }
.lang-trigger .chevron { opacity: .9; }
.lang-dropdown {
    position: absolute;
    right: 0;
    margin-top: .35rem;
    min-width: 240px;
    background: var(--color-white);
    color: var(--color-black);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    padding: .35rem 0;
    list-style: none;
    z-index: 1000;
}
.lang-dropdown li {
    padding: .55rem .8rem;
    cursor: pointer;
}
.lang-dropdown li:hover { background: var(--color-bg-hover); }


.header {
    margin-bottom: 20px;
}

.header a {
    margin-right: 15px;
    text-decoration: none;
    color: orange;
}

/* df-messenger {
    --df-messenger-bot-message: #df9b56;
    --df-messenger-button-titlebar-color: #df9b56;
    --df-messenger-chat-background-color: #fafafa;
    --df-messenger-font-color: white;
    --df-messenger-send-icon: #df9b56;
    --df-messenger-user-message: #479b3d;
} */

.navbar {
    background-color: #fff;
    padding: 1.25rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Container spacing at various breakpoints */
@media (max-width: 1280px) {
    .container,
    .navbar > .container,
    .legal-inner,
    .footer-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}
@media (max-width: 640px) {
    .container,
    .navbar > .container,
    .legal-inner,
    .footer-inner { padding-left: 16px; padding-right: 16px; }
}


.navbar .logo {
    font-size: 2.75rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .6rem;
    line-height: 1;
}
.logo-img { width: 44px; height: 44px; border-radius: 4px; display: block; }

.navbar .nav-links a {
    text-decoration: none;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin-left: 0.5rem;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}


.navbar .nav-links .login-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.navbar .nav-links .login-btn:hover {
    background-color: #f8f9fa;
    border-color: #bbb;
}

.navbar .nav-links .register-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.navbar .nav-links .register-btn:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.category-nav {
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.category-scroller {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    padding: .75rem 1rem;
    overflow-x: auto;
}

.category-scroller a {
    white-space: nowrap;
    text-decoration: none;
    color: #333;
    padding: .5rem .9rem;
    border-radius: 999px;
    border: 1px solid #eee;
    background: #fff;
}

.hero-banner {
    position: relative;
    min-height: clamp(400px, 45vw, 680px);
    background-image: url('assets/IMG_4914.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 42%;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.hero-chip {
    background: rgba(255,255,255,0.95);
    padding: .35rem .7rem;
    border-radius: 0px;
    font-weight: 600;
    letter-spacing: .08em;
}

.hero-title {
    margin: 0;
    font-size: clamp(32px, 6vw, 56px);
    color: var(--color-primary);
    padding: .25rem .75rem;
    background: var(--color-white);
    border-radius: 0px;
}

.quick-actions {
    max-width: 1200px;
    margin: -50px auto 3.2rem auto; 
    position: relative;
    z-index: 5;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.qa {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem; 
    flex: 0 1 160px; 
}

.qa-icon {
    width: 98px;
    height: 98px; 
    display: grid;
    place-items: center;
    background: #ffffff; 
    border: none;
    border-radius: 999px;
    font-size: 30px; 
    box-shadow: 0 12px 22px rgba(0,0,0,0.10); 
    color: #1b1b1b;
    transform: translateZ(0);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.qa-icon svg { width: 36px; height: 36px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease; }
.qa-text {
    font-weight: 700;
    text-align: center;
    margin-top: 6px;
    font-size: 1.18rem;
    line-height: 1.25;
}
.qa:hover .qa-icon {
    background-color: var(--color-primary); /* fill */
    color: var(--color-white); /* icon/text color */
}
.qa:hover .qa-icon svg {
    transform: scale(1.1);
}

/* =================================== */
/* RESPONSIVE STYLES (Desktop First) */
/* =================================== */

/* Tablet Landscape (and smaller) */
@media (max-width: 991px) and (min-width: 768px) {
    .container, .navbar > .container, .legal-inner, .footer-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .qa { flex: 0 1 140px; }
    .qa-icon { width: 88px; height: 88px; }
    .qa-text { font-size: 1.05rem; }
    
    .about-bento {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-left {
        grid-template-columns: 100px 1fr;
    }
    
    .team-content {
        padding: 2.5rem 1.5rem; 
        max-width: 800px; 
    }
    
    .card-image-container {
        height: 220px;
    }
}

/* Tablet Portrait (and smaller) */
@media (max-width: 767px) {
    .quick-actions { 
        margin: -40px auto 2.2rem auto; 
        gap: .9rem; 
        padding: 0 0.5rem;
    }
    .qa { flex: 0 1 120px; }
    .qa-icon { width: 76px; height: 76px; font-size: 26px; }
    .qa-text { font-size: .95rem; margin-top: 4px; }
    .hero-banner { 
        min-height: clamp(340px, 55vw, 540px);
        background-attachment: scroll;
    }
    
    .about-bento {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-left {
        grid-template-columns: 80px 1fr;
        gap: 0.8rem;
    }
    
    .team-content {
        padding: 2rem 1rem;
        max-width: 600px;
    }
    
    .team-grid {
        gap: 1.5rem;
    }
    
   
    
    .card-image-container {
        height: 200px;
    }
    
    .stats-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .navbar { padding: .75rem 1rem; }
    .navbar .logo { font-size: 1.25rem; }
    .utility-inner { padding: .3rem 1rem; }
    .hero-title { font-size: clamp(28px, 8vw, 42px); }
    .quick-actions { margin: -36px auto 1.8rem auto; gap: .75rem; }
    .qa { flex: 0 1 108px; }
    .qa-icon { width: 68px; height: 68px; font-size: 22px; }
    .qa-text { font-size: .9rem; }

    .content { padding: 1rem; }
    
    .about-bento {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .about-left {
        grid-template-columns: 60px 1fr;
        gap: 0.6rem;
        padding: 0.6rem;
    }
    
    .about-right {
        grid-template-rows: auto auto;
        gap: 0.6rem;
    }
    
    .about-card {
        padding: 0.6rem;
    }
    
    .about-card h3 {
        font-size: 0.9rem;
    }
    
    .about-card p {
        font-size: 0.85rem;
    }
    
    .team-content {
        padding: 1.2rem 0.8rem;
        max-width: 100%;
    }
    
    .team-title {
        font-size: clamp(20px, 6vw, 32px);
        margin-bottom: 0.8rem;
    }
    
    .team-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .team-grid {
        gap: 1.2rem; /* Further reduce gap for smallest screens */
    }
    
    .card-image-container {
        height: 160px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-name {
        font-size: 1rem;
    }
    
    .card-role {
        font-size: 0.9rem;
    }
    
    .card-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .stats-grid, .stats-grid-3 {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .stat-card {
        border-radius: 10px;
    }
    
    .stat-top {
        padding: 24px 0 28px;
    }
    
    .stat-icon {
        width: 70px;
        height: 70px;
        border: 6px solid rgba(255,255,255,.65);
    }
    
    .stat-body {
        padding: 14px 10px 18px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .quick-links { 
        grid-template-columns: 1fr; 
        gap: 0.5rem;
    }
    .cards { 
        grid-template-columns: 1fr; 
        gap: 0.6rem;
    }
    .updates { 
        grid-template-columns: 1fr; 
        gap: 0.6rem;
    }
    .footer-inner { 
        grid-template-columns: 1fr; 
        gap: 1.2rem;
        text-align: center;
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .footer-logo {
        font-size: 1.8rem;
    }
    
    .footer-logo img {
        width: 40px;
        height: 40px;
    }
    
    .legal-inner {
        padding: 0.6rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .social {
        justify-content: center;
    }
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 70px);
}

.container.dashboard-container { position: relative; }

.sidebar {
    background: #ffffff;
    border-right: 1px solid #eee;
    padding: 1rem;
}

.sidebar-header {
    padding: 0.5rem 0 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.sidebar-title {
    font-weight: 600;
    color: #444;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-nav a {
    text-decoration: none;
    color: #444;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    transition: background-color .2s ease, color .2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #ffecec;
    color: #FF3333;
}

.sidebar-nav a.danger {
    color: #b10000;
}

.content {
    padding: 1.5rem 2rem;
}

.content-header { text-align: center; }
.content-header h1 {
    margin: 0 0 .35rem 0;
    font-size: clamp(32px, 4.2vw, 56px);
    font-weight: 800;
}

.content-header p {
    margin: 0 0 1rem 0;
    color: #666;
}

/* --- About brand section --- */
.about-brand { margin: 1.25rem 0 1.5rem 0; }

/* Bento layout */
.about-bento {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}
.about-left {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}
.about-right {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}
.about-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}
.about-card h3 { margin: 0 0 .35rem 0; }
.about-card p { margin: 0; color: #555; }
.about-logo img { width: 100%; height: auto; display: block; border-radius: 8px; }
.about-text h2 { margin: 0 0 .35rem 0; }
.about-text p { margin: 0; color: #555; }

.about-platform { margin: 1.25rem 0 1.75rem 0; }
.about-platform .platform-inner {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.35rem 1.8rem 2rem 1.8rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    overflow: hidden; /* keep platform cards inside rounded container */
}
.platform-header { text-align: center; margin-bottom: .75rem; }
.platform-kicker { color: var(--color-secondary); font-weight: 800; letter-spacing: .12em; font-size: .8rem; }
.platform-title { margin: .25rem 0 .25rem 0; color: var(--color-primary); font-size: clamp(22px, 3vw, 34px); font-weight: 800; }
.platform-sub { margin: 0; color: #555; max-width: 760px; margin-left: auto; margin-right: auto; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: .9rem; align-items: stretch; }
.about-platform .platform-grid { margin-bottom: .8rem; }
.platform-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: .95rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; height: 100%; transition: box-shadow .2s ease, transform .2s ease; }
.platform-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.10); transform: translateY(-4px); }
.platform-card h3 { margin: 0; font-size: 1.05rem; color: var(--color-secondary); }
.platform-card h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platform-card p { margin: 0; color: #555; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; }
.platform-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #fff1f1; color: #e03a3a; border: 1px solid #ffd6d6; margin-bottom: .35rem; }
.platform-icon svg { width: 22px; height: 22px; fill: currentColor; }

@media (min-width: 640px) {
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .platform-grid { grid-template-columns: repeat(4, 1fr); }
}

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

.help-center { margin: 1.25rem 0; }
.hc-inner { background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 1rem 1.1rem; box-shadow: 0 6px 18px rgba(0,0,0,0.07); }
.hc-title { margin: 0 0 .5rem 0; font-size: clamp(22px,3vw,34px); color: var(--color-primary); font-weight: 800; text-align: center; }
.faq details { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: .8rem 1rem; margin: .5rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: #1b1b1b; }
.faq p { margin: .5rem 0 0 0; color: #555; }

.student-guide { margin: 1.25rem 0 1.75rem 0; }
.sg-inner { background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.07); }
.sg-head { background: #eaf3ee; border-bottom: 1px solid #d9eee5; padding: .9rem 1.1rem; border-radius: 12px 12px 0 0; }
.sg-title { margin: 0; font-size: clamp(22px,3vw,34px); font-weight: 800; color: var(--color-secondary); }
.sg-body { display: grid; grid-template-columns: 1.6fr .8fr; gap: 1rem; padding: 1rem 1.1rem; }
.steps { margin: 0; padding-left: 1.25rem; color: #1b1b1b; }
.steps li { margin: .6rem 0; }
.quick-info { background: #f7fbf9; border: 1px solid #e3f2eb; border-radius: 12px; padding: .8rem 1rem; }
.quick-info h3 { margin: 0 0 .35rem 0; font-size: 1.05rem; }
.quick-info ul { margin: 0; padding-left: 1.1rem; }

@media (max-width: 991px) {
    .sg-body { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .about-bento { grid-template-columns: 1fr; }
    .about-left { grid-template-columns: 72px 1fr; }
    .about-right { grid-template-rows: auto auto; }
}

/* --- Chat CTA --- */
.chat-cta { margin: 1rem 0 1.25rem 0; }
.chat-cta-inner {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}
.chat-cta-input { display: flex; align-items: center; gap: .5rem; }
.chat-cta-input input {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: .6rem .8rem;
    font-family: inherit;
}
.chat-cta-input input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255,51,51,.15); }
.send-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--color-primary); background: var(--color-primary); color: var(--color-white); cursor: pointer;
}
.send-btn:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.chat-suggestions { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid #eee; background: #fafafa; color: #333; padding: .35rem .6rem; border-radius: 999px; cursor: pointer; }
.chip:hover { background: #f3f3f3; }

/* Floating chat button */
.floating-chat-btn { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 999px; background: var(--color-primary); color: var(--color-white); border: 1px solid var(--color-primary); box-shadow: var(--shadow-lg); cursor: pointer; }
.floating-chat-btn:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }

/* --- Team section --- */
.team-section { 
    margin: 1.5rem 0 0 -50vw; 
    text-align: center; 
    position: relative; 
    background-image: url('assets/bg1.jpg');
    background-size: cover;
    background-position: center center;
    padding: 2rem 0;
    overflow-x: hidden;
    width: 100vw;
    left: 50%;
    box-sizing: border-box;
}

.team-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 1000px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.team-title { 
    margin: 0 0 1rem 0; 
    font-size: clamp(28px, 4vw, 48px); 
    font-weight: 800; 
    color: var(--color-primary);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.team-description {
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
    color: var(--color-secondary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}


.team-carousel {
    margin-bottom: 2rem;
}
.carousel-track-wrapper {
    position: relative;
}
.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: .25rem 0 1rem 0;
}
.carousel-slide {
    scroll-snap-align: start;
}
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-thumb { background: #e6e6e6; border-radius: 999px; }
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem;
}
.carousel-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #eee;
    background: #fff;
    color: #333;
    cursor: pointer;
}
.carousel-btn:hover { background: #ffecec; border-color: #ffd6d6; }

@media (min-width: 640px) {
    .carousel-track { grid-auto-columns: 60%; }
}
@media (min-width: 768px) {
    .carousel-track { grid-auto-columns: 48%; }
}
@media (min-width: 1024px) {
    .carousel-track { grid-auto-columns: 32%; }
}

/* Our Team carousel: hide arrows and scrollbar */
.team-carousel .carousel-nav { display: none; }
.team-carousel .carousel-track { scrollbar-width: none; }
.team-carousel .carousel-track::-webkit-scrollbar { display: none; height: 0; }

/* Prevent box-shadow cutoff for cards inside the carousel */
.team-carousel .team-content { overflow: visible; padding-bottom: 2.25rem; }
.team-carousel .carousel-track-wrapper { overflow: visible; padding: 0 12px 8px 12px; }
.team-carousel .carousel-track { padding-bottom: 1.75rem; padding-left: 8px; padding-right: 8px; overflow-y: visible; }
.team-carousel .carousel-slide { padding: 0 4px; }
.team-carousel .team-card { box-shadow: 0 8px 28px rgba(0,0,0,0.12); }

/* Our Team: overlay text on image with brand gradient */
.team-carousel .team-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}
.team-carousel .card-image-container {
    height: 260px;
    border-radius: 14px;
}
.team-carousel .card-image-container::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 55%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(255,51,51,0.15) 40%, rgba(255,51,51,0.75) 100%);
    pointer-events: none;
}
.team-carousel .card-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1rem 1rem 1.15rem 1rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.22) 38%, rgba(0,0,0,0.38) 60%, rgba(0,0,0,0.45) 100%);
}
.team-carousel .card-name {
    color: #ffffff;
    margin: 0 0 .25rem 0;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.team-carousel .card-role {
    color: #ffe1e1;
    font-weight: 700;
}

@media (max-width: 767px) {
    .team-carousel .card-image-container { height: 220px; }
}

/* Revert Our Team carousel to base card layout (match existing team section) */
.team-section.team-carousel .team-card { position: static; background: #ffffff; border-radius: 12px; overflow: hidden; }
.team-section.team-carousel .card-image-container { position: static; height: 250px; border-radius: 0; }
.team-section.team-carousel .card-image-container::after { display: none; }
.team-section.team-carousel .card-content { position: static; background: transparent; padding: 1rem; }
.team-section.team-carousel .card-name { color: var(--color-primary); text-shadow: none; font-weight: 700; }
.team-section.team-carousel .card-role { color: var(--color-secondary); font-weight: 600; }

/* Uniform card sizing for Our Team carousel */
.team-section.team-carousel .card-content {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.team-section.team-carousel .card-name {
    font-size: 1.2rem;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.team-section.team-carousel .card-role {
    margin-top: .35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-grid { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; 
    position: relative; 
}

.team-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex; /* Make the card a flex container */
    flex-direction: column; /* Stack its children (image, content) vertically */
    flex: 1 1 320px; /* Allow cards to grow and shrink from a 320px base */
    max-width: 300px; /* Prevent cards from becoming too wide on large screens */
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card-image-container {
    background: #f5f5f5;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1rem;
    text-align: center;
    display: flex; /* Make content area a flex container */
    flex-direction: column; /* Stack content vertically */
    flex-grow: 1; /* Allow this area to grow, pushing the social links down */
}

.card-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Montserrat', sans-serif;
}

.card-role {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--color-secondary);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.card-description {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    color: var(--color-secondary);
    font-family: 'Montserrat', sans-serif;
    flex-grow: 1; /* Allow the description to take up available space */
    line-height: 1.5;
}

.card-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--color-bg-hover);
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Team section responsive styles are now handled in the main media queries above */

/* --- Stats section --- */
.site-stats { margin: 1.5rem 0 2rem 0; text-align: center; position: relative; }
.site-stats::before {
    content: "";
    position: absolute;
    inset: -10px 0 -10px 0;
    background-image: url('assets/card.svg');
    background-position: center;
    background-size: 600px; /* resize overall pattern */
    background-repeat: repeat; /* avoid stretching */
    opacity: .18; /* subtle, avoids color wash */
    pointer-events: none;
}
.stats-title { margin: 0 0 1rem 0; font-size: clamp(24px, 3vw, 40px); font-weight: 800; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; position: relative; }
.stats-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { background: var(--color-secondary); color: var(--color-white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-xl); position: relative; transform: translateZ(0); }
/* inner subtle pattern for card body */
.stat-card::after { content: ""; position: absolute; inset: 45% 0 0 0; background-image: url('assets/card.svg'); background-position: center; background-size: 520px; background-repeat: repeat; opacity: .06; pointer-events: none; }
.stat-top { background-image: url('assets/card.svg'); background-position: center; background-size: 520px; background-repeat: repeat; padding: 36px 0 40px; display: grid; place-items: center; position: relative; }
.stat-top::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,.08) 100%); }
.stat-icon { position: relative; display: inline-grid; place-items: center; width: 98px; height: 98px; background: var(--color-white); color: var(--color-secondary); border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.18); border: 8px solid rgba(255,255,255,.65); }
.stat-body { padding: 18px 14px 22px; position: relative; }
.stat-number { font-size: 2.2rem; font-weight: 800; letter-spacing: .02em; }
.stat-label { margin-top: .35rem; opacity: .95; }

/* Hover effects: change brand tone, invert icon */
.stat-card:hover { background: var(--color-secondary-dark); }
.stat-card:hover .stat-top::before { background: rgba(0,0,0,.18); }
.stat-card:hover .stat-icon { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary-light); }

/* Additional responsive improvements */
@media (max-width: 640px) {
    .stats-grid, .stats-grid-3 { grid-template-columns: 1fr; }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-banner {
        min-height: 280px;
    }
    
    .quick-actions {
        margin: -20px auto 1rem auto;
    }
    
    .team-content {
        padding: 1rem 0.8rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .card-image-container {
        height: 120px;
    }
    
    .card-content {
        padding: 0.8rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img, .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar, .quick-actions, .team-section, .site-footer {
        display: none;
    }
    
    .hero-banner {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .content {
        padding: 0;
    }
}

/* --- Skeleton loading --- */
.skeleton { position: relative; overflow: hidden; background: #f2f2f2; border-radius: 8px; }
.skeleton::after {
    content: ""; position: absolute; inset: 0 -150% 0 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 100%);
    animation: sk-shine 1.4s infinite;
}
@keyframes sk-shine { 0% { transform: translateX(-40%);} 100% { transform: translateX(100%);} }

.fade-in { opacity: 0; animation: fadeIn .25s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sk-line { height: 12px; margin: 6px 0; border-radius: 6px; }
.sk-line.sm { height: 10px; width: 60%; }
.sk-line.lg { height: 14px; width: 90%; }
.sk-avatar { width: 100%; height: 250px; border-radius: 12px; }

/* Section-specific skeleton wrappers */
.stats-skeleton { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.platform-skeleton { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.2rem; }
.team-skeleton { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }

@media (max-width: 1024px){
    .platform-skeleton { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .team-skeleton { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
    .stats-skeleton { grid-template-columns: 1fr; }
    .platform-skeleton, .team-skeleton { grid-template-columns: 1fr; }
}

.hero {
    background: linear-gradient(135deg, #fff 0%, #ffecec 100%);
    border: 1px solid #f3d6d6;
    border-radius: 14px;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    margin-bottom: 1rem;
}

.hero-text h2 {
    margin: 0 0 .25rem 0;
}

.hero-text p {
    margin: 0 0 .75rem 0;
    color: #666;
}


.hero, .ql-item, .card, .list, fieldset {
    background: linear-gradient(135deg, #fff 0%, #ffecec 100%);
    border: 1px solid #f3d6d6;
}


.quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin: 1.25rem 0;
}

.ql-item {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: .9rem 1rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.ql-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.ql-item .ql-title {
    font-weight: 600;
}

.ql-item .ql-desc {
    color: #666;
    font-size: .95rem;
}

.ql-item.danger {
    border-color: #ffd6d6;
    background: #fff8f8;
}

.updates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    margin: 0 0 .5rem 0;
}

.list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
}

.list li {
    padding: .8rem 1rem;
    border-bottom: 1px solid #f3f3f3;
}

.list li:last-child {
    border-bottom: none;
}

.list-title {
    display: block;
    font-weight: 600;
}

.list-meta {
    color: #666;
    font-size: .95rem;
}
.alert {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.alert.success {
    background-color: var(--color-success-bg);
    border-color: var(--color-success-border);
    color: var(--color-success);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    display: block;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.card-body {
    padding: 1rem 1.1rem;
}

.card-body h3 {
    margin: 0 0 .4rem 0;
    font-size: 1.05rem;
}

.card-body p {
    margin: 0;
    color: #666;
    font-size: .95rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 24px 2rem 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.footer-logo {
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    line-height: 1;
}
.footer-logo img { width: 64px; height: 64px; }

.footer-brand p {
    opacity: .9;
}

.footer-brand {
    text-align: center;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 240px));
    gap: 1.25rem;
    justify-content: center; /* center the two columns within the area */
    justify-items: start;    /* keep text left-aligned inside columns */
    margin: 0 auto;          /* center block within its grid cell */
}

.footer-col h4 {
    margin: 0 0 .6rem 0;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li { margin-bottom: .4rem; }

.footer-col a {
    color: var(--color-footer-link);
    text-decoration: none;
}

.footer-col a:hover { text-decoration: underline; }

.legal-bar {
    background: #0b2c24;
}

.social { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,0.1); color: #ffffff; border: 1px solid rgba(255,255,255,0.18); transition: background .2s ease; }
.social a:hover { background: rgba(255,255,255,0.2); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.legal-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #c8e7de;
    font-size: .95rem;
}

.legal-links a {
    color: #c8e7de;
    text-decoration: none;
    margin-left: 1rem;
}

.legal-links a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .legal-inner {
        flex-direction: column;
        gap: .75rem;
    }
}

/* Legacy responsive styles - now handled above */

/* --- Skip link & global focus/transition tokens --- */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; padding: .6rem .9rem; background: var(--color-primary); color: var(--color-white); border-radius: 8px; z-index: 10000; outline: 3px solid var(--color-primary-light); }

/* Focus styles using :focus-visible for better UX */
:where(a, button, input, select, textarea, .qa, .team-card, .platform-card):focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; border-radius: 8px; }

/* Smooth transitions for common interactive states */
:where(a, button, .qa, .platform-card, .team-card, .social a) { transition: color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease; }

/* --- Location Map Section --- */
.location-map {
    margin: 1.5rem 0 2rem 0;
}

.map-container {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 1.5rem 1.8rem 1.8rem 1.8rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.map-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.map-title {
    margin: 0 0 .35rem 0;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--color-primary);
    font-family: 'Montserrat', sans-serif;
}

.map-subtitle {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.map-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

.map-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-light);
}

.map-info-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--color-text-secondary);
    font-size: .95rem;
}

.map-info-item svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .map-container {
        padding: 1.2rem 1rem 1.5rem 1rem;
    }
    
    .map-wrapper iframe {
        height: 350px;
    }
    
    .map-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .map-wrapper iframe {
        height: 300px;
    }
    
    .map-title {
        font-size: clamp(20px, 5vw, 28px);
    }
}

/* High-contrast mode (toggle by adding .hc-mode on body) */
body.hc-mode { filter: none !important; }
body.hc-mode :where(.navbar, .team-content, .platform-inner, .stats-grid .stat-card, .footer-inner, .hc-inner, .sg-inner) { box-shadow: none !important; border-color: #333 !important; }
body.hc-mode :where(h1,h2,h3,h4,h5,h6, .card-name, .platform-title, .stats-title) { color: #111 !important; }
body.hc-mode :where(p, li, span) { color: #000 !important; }
body.hc-mode .skip-link:focus { outline-color: #111; }