/* ==========================================================================
   Manavdhan Global Language School — Global Stylesheet
   Dhanlaxmi Design System Standard
   Fonts: Poppins (headings) + Manrope (labels/meta) + Inter (body)
   ========================================================================== */

/* --- Default Design Tokens (Overridden dynamically in header.php via DB) --- */
:root {
    --blue: #0F5C5C;
    --gold: #C9A227;
    --emerald: #D97D3C;

    /* Dynamic color-mix calculations */
    --blue-dark: color-mix(in srgb, var(--blue) 85%, black);
    --blue-deep: color-mix(in srgb, var(--blue) 70%, black);
    --blue-tint: color-mix(in srgb, var(--blue) 12%, transparent);
    --blue-light: color-mix(in srgb, var(--blue) 6%, transparent);
    
    --gold-dark: color-mix(in srgb, var(--gold) 85%, black);
    --gold-light: color-mix(in srgb, var(--gold) 15%, transparent);
    --gold-subtle: color-mix(in srgb, var(--gold) 8%, transparent);
    
    --emerald-dark: color-mix(in srgb, var(--emerald) 85%, black);
    --emerald-tint: color-mix(in srgb, var(--emerald) 12%, transparent);

    /* Neutral & Background System */
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-dark: #0B192C;

    --text-main: #1E293B;
    --text-headings: #0F172A;
    --muted: #64748B;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;

    /* Shadows & Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 14px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 50px rgba(15, 23, 42, 0.18);

    /* Sticky Nav Height */
    --nav-height: 80px;
    --ticker-height: 42px;
}

/* --- Base Resets & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-headings);
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--gold);
}

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

/* --- Layout Containers --- */
.wrap {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    /*padding-inline: 24px;*/
}

.wrap-fluid {
    width: 100%;
    padding-inline: 24px;
}

/* --- Section Headings --- */
.section-head {
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 50px;
}

.eyebrow {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    display: inline-block;
    margin-bottom: 12px;
    background: var(--gold-light);
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

.section-head h2 {
    font-size: 2.35rem;
    margin-bottom: 16px;
    color: var(--blue-dark);
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Button Suite --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--blue);
    color: #FFFFFF !important;
    border-color: var(--blue);
    box-shadow: 0 4px 14px var(--blue-tint);
}

.btn-primary:hover {
    background-color: var(--blue-dark);
    border-color: var(--blue-dark);
    box-shadow: 0 6px 20px rgba(15, 92, 92, 0.3);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--gold);
    color: #0F172A !important;
    border-color: var(--gold);
    font-weight: 700;
    box-shadow: 0 4px 14px var(--gold-light);
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    background-color: #FFFFFF;
    color: var(--blue-dark) !important;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--blue) !important;
    border-color: var(--blue);
}

.btn-outline-dark:hover {
    background-color: var(--blue);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

/* --- Scrolling Notice Ticker (Top Bar) --- */
.notice-ticker {
    background-color: var(--blue-deep);
    color: #FFFFFF;
    height: var(--ticker-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1010;
    font-size: 0.85rem;
    font-family: 'Manrope', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-title {
    background-color: var(--gold);
    color: #0F172A;
    font-weight: 800;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
}

.notice-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerMarquee 40s linear infinite;
    will-change: transform;
}

.notice-ticker:hover .notice-ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    color: #E2E8F0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ticker-item:hover {
    color: var(--gold);
    text-decoration: underline;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

/* --- Sticky Navigation Bar --- */
.site-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.site-nav.scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

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

.brand .logo-placeholder {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
}

.brand .txt {
    display: flex;
    flex-direction: column;
}

.brand .txt strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.2;
}

.brand .txt span {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--blue-dark);
    cursor: pointer;
    padding: 6px;
}

/* --- Footer Architecture --- */
.site-footer {
    background-color: var(--blue-dark);
    color: #94A3B8;
    padding-top: 70px;
    font-size: 0.92rem;
    border-top: 4px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94A3B8;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.footer-contact-item i {
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    background: var(--gold);
    color: #0F172A;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748B;
}

.footer-bottom a {
    color: var(--gold);
}

/* --- Scroll To Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--gold);
    color: #0F172A;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--gold-dark);
    color: #FFFFFF;
    transform: translateY(-4px);
}

/* ==========================================================================
   Hero Banner Section (#home)
   ========================================================================== */
.hero {
    min-height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--blue-deep);
    color: #FFFFFF;
}

.hero-carousel-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 7s ease-out;
    transform: scale(1.06);
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:rgba(0, 0, 0, 0.40);
    z-index: 2;
    pointer-events: none;
}




.hero .wrap {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 100px 24px 80px;
}

.hero .group-tag {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 16px;
    background: rgba(201, 162, 39, 0.18);
    display: inline-block;
    padding: 5px 18px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(201, 162, 39, 0.4);
}

.hero h1 {
    font-size: 3.3rem;
    line-height: 1.15;
    color: #FFFFFF;
    margin-bottom: 14px;
    font-weight: 800;
}

.hero .qbe {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero .tagline {
    font-size: 1.15rem;
    color: #E2E8F0;
    line-height: 1.65;
    max-width: 760px;
    margin: 0 auto 36px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero .scroll-ind {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    color: var(--gold);
    cursor: pointer;
    z-index: 4;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.hero .scroll-ind:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   Stats Band & Trust Badges
   ========================================================================== */
.stats-band {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 44px 0;
}

.stats-band .wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 28px;
    text-align: center;
}

.stat .num {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat .label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.trust-badges {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.trust-badges .wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.trust-badge-pill:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.trust-badge-pill i {
    color: var(--gold);
    font-size: 1.1rem;
}

/* ==========================================================================
   Why Choose Us Section (#why-choose-us)
   ========================================================================== */
.why-section {
    padding: 90px 0;
    background: #FFFFFF;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 48px;
}

.icon-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 22px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.icon-card:hover {
    transform: translateY(-6px);
    background: #FFFFFF;
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

.icon-card .ic {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.icon-card:hover .ic {
    transform: scale(1.1);
}

.icon-card h3 {
    font-size: 1.15rem;
    color: var(--blue-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.icon-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   About Section (#about)
   ========================================================================== */
.about-section {
    padding: 90px 0;
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-badge-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--blue-dark);
    color: #FFFFFF;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 270px;
    z-index: 2;
}

.about-badge-float .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.about-badge-float .txt {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Manrope', sans-serif;
}

.about-content h2 {
    font-size: 2.25rem;
    color: var(--blue-dark);
    margin: 12px 0 20px;
    line-height: 1.25;
}

.about-content p {
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 26px 0;
    padding: 0;
}

.about-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--text-main);
}

.about-checklist li i {
    color: var(--emerald);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.coordinator-section {
    padding: 90px 0;
    background: var(--bg-alt, #F5F7FA);
}
 
.coordinator-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: start;
}
 
.coordinator-photo-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
 
.coordinator-photo-wrap img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
}
 
.coordinator-content {
    padding-top: 4px;
}
 
.coordinator-badge {
    display: inline-block;
    background: var(--blue-tint, rgba(23,59,122,0.1));
    color: var(--blue, #173B7A);
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
 
.coordinator-content .eyebrow {
    display:inline-block;
    color: var(--gold, #C9A227);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
 
.coordinator-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-deep, #0E2A5C);
    margin: 0 0 14px;
}
 
.coordinator-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 12px;
}
 
.coordinator-meta i {
    color: var(--gold, #C9A227);
    margin-right: 6px;
}
 
.coordinator-email {
    font-size: 0.9rem;
    margin-bottom: 24px;
}
 
.coordinator-email i {
    color: var(--gold, #C9A227);
    margin-right: 6px;
}
 
.coordinator-email a {
    color: var(--blue, #173B7A);
    text-decoration: none;
    font-weight: 600;
}
 
.coordinator-email a:hover {
    text-decoration: underline;
}
 
.coordinator-quote {
    background: #fff;
    border-left: 4px solid var(--gold, #C9A227);
    border-radius: 8px;
    padding: 18px 22px;
    font-style: italic;
    color: #334155;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 32px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
 
.coordinator-welcome-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue-deep, #0E2A5C);
    margin: 0 0 16px;
}
 
.coordinator-welcome-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 24px;
}
 
.coordinator-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold, #C9A227);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
}
 
.coordinator-readmore:hover {
    color: var(--blue, #173B7A);
}
 
@media (max-width: 768px) {
    .coordinator-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .coordinator-photo-wrap {
        max-width: 280px;
        margin: 0 auto;
    }
    .coordinator-name {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   Phase 3: Core Educational Offering & Media Showcase Styles
   ========================================================================== */

/* --- 1. Our Language Courses Section (#course) --- */
.courses-section {
    padding: 95px 0;
    background: #FFFFFF;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

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

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

.course-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    background: #FFFFFF;
    border-color: var(--gold);
    box-shadow: var(--shadow-xl);
}

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

.course-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.course-flag-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(15, 92, 92, 0.2);
}

.course-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.course-badge-level {
    font-family: 'Manrope', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-dark);
    background: var(--gold-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.course-duration-pill {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-tint);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.course-card h3 {
    font-size: 1.35rem;
    color: var(--blue-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-desc {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 22px;
}

.course-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.45;
}

.course-checklist li i {
    color: var(--emerald);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.course-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: auto;
}

.course-card-footer .btn {
    width: 100%;
}

/* --- 2. Classroom & Cultural Activity Photo Marquee --- */
.marquee-section {
    padding: 65px 0;
    background: linear-gradient(180deg, var(--bg-alt) 0%, #FFFFFF 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee-header {
    text-align: center;
    margin-bottom: 36px;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 5;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, #F8FAFC 0%, rgba(248, 250, 252, 0) 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, #F8FAFC 0%, rgba(248, 250, 252, 0) 100%);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
}

.marquee-card {
    position: relative;
    width: 320px;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.marquee-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow-xl);
}

.marquee-card:hover img {
    transform: scale(1.08);
}

.marquee-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 25, 44, 0.85) 0%, rgba(11, 25, 44, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: #FFFFFF;
    transition: opacity 0.3s ease;
}

.marquee-card-caption {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.35;
    margin: 0;
}

.marquee-card-tag {
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

/* --- 3. Trustee Sanstha Authority Section (#trustee) --- */
.trustee-section {
    padding: 95px 0;
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.trustee-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.trustee-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .trustee-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}

.trustee-crest-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.trustee-crest-img {
  max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.35));
    transition: transform 0.4s ease;
}

.trustee-crest-img:hover {
    transform: scale(1.05);
}

.trustee-est-badge {
    margin-top: 18px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0F172A;
    background: var(--gold);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

.trustee-content .eyebrow {
    background: rgba(201, 162, 39, 0.2);
    color: var(--gold);
    border: 1px solid rgba(201, 162, 39, 0.4);
}

.trustee-content h2 {
    color: #FFFFFF;
    font-size: 2.25rem;
    margin: 14px 0 18px;
    line-height: 1.25;
}

.trustee-quote {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 1.15rem;
    color: #E2E8F0;
    line-height: 1.6;
    margin-bottom: 24px;
    padding-left: 20px;
    border-left: 3px solid var(--gold);
}

@media (max-width: 900px) {
    .trustee-quote {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--gold);
        border-bottom: 2px solid var(--gold);
        padding-block: 16px;
    }
}

.trustee-pillars {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .trustee-pillars {
        justify-content: center;
    }
}

.trustee-pillar-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trustee-pillar-item i {
    color: var(--gold);
    font-size: 1.3rem;
}

.trustee-pillar-item strong {
    font-size: 0.95rem;
    color: #FFFFFF;
    display: block;
}

.trustee-pillar-item span {
    font-size: 0.78rem;
    color: #94A3B8;
}

/* --- 4. Achievement Highlights Slider (#achievements) --- */
.achievements-section {
    padding: 95px 0;
    background: var(--bg-alt);
    position: relative;
}

.achievements-slider-wrapper {
    position: relative;
    max-width: 1080px;
    margin: 40px auto 0;
    padding: 0 60px;
}

.achievements-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    background: #FFFFFF;
}

.achievements-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.achievement-slide-item {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: #FFFFFF;
}

@media (max-width: 820px) {
    .achievement-slide-item {
        grid-template-columns: 1fr;
    }
}

.achievement-slide-img {
    position: relative;
    min-height: 380px;
    overflow: hidden;
}

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

.achievement-slide-body {
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievement-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    align-self: flex-start;
}

.achievement-slide-body h3 {
    font-size: 1.6rem;
    color: var(--blue-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.achievement-slide-body p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--blue-dark);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(11, 25, 44, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-nav-btn:hover {
    background: var(--blue);
    color: #FFFFFF;
    border-color: var(--blue);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(15, 92, 92, 0.35);
}

.slider-nav-btn.prev {
    left: 0;
}

.slider-nav-btn.next {
    right: 0;
}

.slider-nav-btn i,
.testimonial-nav-btn i {
    pointer-events: none;
}

.slider-pagination-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: #CBD5E1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    width: 28px;
    background: var(--blue);
}

/* --- 5. Filterable Photo Gallery (#gallery) --- */
.gallery-section {
    padding: 95px 0;
    background: #FFFFFF;
}

.gallery-filter-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-pill {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--muted);
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill:hover {
    background: #FFFFFF;
    color: var(--blue);
    border-color: var(--blue);
    transform: translateY(-2px);
}

.filter-pill.active {
    background: var(--blue);
    color: #FFFFFF;
    border-color: var(--blue);
    box-shadow: 0 4px 14px var(--blue-tint);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

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

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

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 25, 44, 0.88) 0%, rgba(11, 25, 44, 0.25) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-category-tag {
    align-self: flex-start;
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.gallery-item-meta {
    margin-top: auto;
}

.gallery-item-meta p {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.gallery-zoom-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
}

.gallery-item-hidden {
    display: none !important;
}

.gallery-more-wrap {
    text-align: center;
    margin-top: 40px;
}

/* --- 6. Global Lightbox Modal (#galleryLightboxModal) --- */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 25, 44, 0.94);
    backdrop-filter: blur(8px);
    z-index: 1300;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-modal.active {
    display: flex;
    animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #FFFFFF;
    font-size: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1320;
    transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.lightbox-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #FFFFFF;
    font-size: 1.75rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1315;
    transition: all 0.2s ease;
}

.lightbox-arrow-btn:hover {
    background: var(--gold);
    color: #0F172A;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow-btn.prev {
    left: 24px;
}

.lightbox-arrow-btn.next {
    right: 24px;
}

.lightbox-content-box {
    max-width: 960px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1310;
}

.lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 75vh;
}

.lightbox-img-wrap img {
    max-height: 75vh;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.lightbox-info-bar {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    gap: 16px;
}

.lightbox-caption-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #F8FAFC;
    margin: 0;
    text-align: left;
}

.lightbox-counter-badge {
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    color: var(--gold);
}

/* ==========================================================================
   Phase 4: Conversion Engine, Lead Capture, Inboxes & Notice Modal Styles
   ========================================================================== */

/* --- 1. Testimonials Slider Section (#testimonials) --- */
.testimonials-section {
    padding: 95px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-slider-wrapper {
    position: relative;
    max-width: 980px;
    margin: 40px auto 0;
    padding: 0 60px;
}

.testimonials-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    background: #FFFFFF;
    border: 1px solid var(--border-color);
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.testimonial-slide {
    min-width: 100%;
    width: 100%;
    padding: 50px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 680px) {
    .testimonial-slide {
        padding: 36px 24px;
    }
}

.testimonial-rating-stars {
    display: flex;
    gap: 6px;
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 22px;
}

.testimonial-quote-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.22rem;
    line-height: 1.65;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 28px;
    max-width: 720px;
}

@media (max-width: 680px) {
    .testimonial-quote-text {
        font-size: 1.05rem;
    }
}

.testimonial-author-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: var(--shadow-md);
}

.testimonial-author-meta {
    text-align: left;
}

.testimonial-author-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 0 0 4px 0;
}

.testimonial-author-role {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin: 0;
}

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--blue-dark);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(11, 25, 44, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-nav-btn:hover {
    background: var(--blue);
    color: #FFFFFF;
    border-color: var(--blue);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(15, 92, 92, 0.35);
}

.testimonial-nav-btn.prev {
    left: 0;
}

.testimonial-nav-btn.next {
    right: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

/* --- 2. Notice Details Modal Popup --- */
.notice-details-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 25, 44, 0.78);
    backdrop-filter: blur(6px);
    z-index: 1250;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notice-details-overlay.active {
    display: flex;
    animation: fadeInModal 0.25s ease-out;
}

.notice-details-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    padding: 36px 32px 32px;
    border: 1px solid var(--border-color);
}

.notice-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.notice-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #DC2626;
}

/* --- 3. Form Controls & Interactive Inputs --- */
.apply-section {
    padding: 95px 0;
    background: var(--bg-alt);
    position: relative;
}

.apply-container {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.apply-trust-card {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #FFFFFF;
    padding: 42px 34px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.apply-trust-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.apply-trust-card h3 {
    color: #FFFFFF;
    font-size: 1.6rem;
    margin: 14px 0 16px;
    line-height: 1.3;
}

.apply-trust-card p {
    color: #E2E8F0;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.apply-trust-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.apply-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.apply-trust-item i {
    color: var(--gold);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.apply-trust-item span {
    font-size: 0.92rem;
    font-weight: 600;
}

.apply-form-card {
    background: #FFFFFF;
    padding: 42px 38px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group,
.apply-form-card .form-group,
.contact-form-card .form-group {
    margin-bottom: 18px;
}

.form-label,
.apply-form-card label,
.contact-form-card label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.form-control,
.apply-form-card input[type="text"],
.apply-form-card input[type="email"],
.apply-form-card input[type="tel"],
.apply-form-card select,
.apply-form-card textarea,
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
    background-color: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    display: block;
}

.form-control::placeholder,
.apply-form-card input::placeholder,
.contact-form-card input::placeholder,
.apply-form-card textarea::placeholder,
.contact-form-card textarea::placeholder {
    color: #94A3B8;
    opacity: 1;
    font-size: 0.9rem;
}

.form-control:hover:not(:focus):not(:disabled),
.apply-form-card input:hover:not(:focus):not(:disabled),
.contact-form-card input:hover:not(:focus):not(:disabled),
.apply-form-card select:hover:not(:focus):not(:disabled),
.contact-form-card select:hover:not(:focus):not(:disabled),
.apply-form-card textarea:hover:not(:focus):not(:disabled),
.contact-form-card textarea:hover:not(:focus):not(:disabled) {
    border-color: #CBD5E1;
}

.form-control:focus,
.apply-form-card input:focus,
.contact-form-card input:focus,
.apply-form-card select:focus,
.contact-form-card select:focus,
.apply-form-card textarea:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-tint);
    background-color: #FFFFFF;
}

.form-control:disabled,
.form-control[readonly],
.apply-form-card input:disabled,
.contact-form-card input:disabled {
    background-color: var(--bg-alt);
    opacity: 0.75;
    cursor: not-allowed;
}

select.form-control,
.apply-form-card select,
.contact-form-card select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 42px;
    cursor: pointer;
}

select.form-control:focus,
.apply-form-card select:focus,
.contact-form-card select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230F5C5C' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

textarea.form-control,
.apply-form-card textarea,
.contact-form-card textarea {
    resize: vertical;
    min-height: 105px;
    line-height: 1.6;
}

.form-control.is-invalid {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.form-control.is-valid {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
}

.form-field-error {
    font-size: 0.82rem;
    color: #DC2626;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-text {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 5px;
}

/* --- 4. Form Asynchronous States & Confirmation Cards --- */
.btn-loading {
    pointer-events: none !important;
    opacity: 0.82;
    cursor: not-allowed !important;
}

.form-confirmation-card {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
}

.form-confirmation-icon {
    width: 64px;
    height: 64px;
    background: #10B981;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 18px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.form-confirmation-card h3 {
    font-size: 1.45rem;
    color: #065F46;
    margin-bottom: 8px;
}

.form-confirmation-card p {
    color: #047857;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.form-ref-badge {
    display: inline-block;
    background: #FFFFFF;
    border: 1px solid #A7F3D0;
    color: #065F46;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 22px;
    letter-spacing: 0.05em;
}

.form-error-alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #991B1B;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-error-alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- 4. Contact Us Section Layout (#contact) --- */
.contact-section {
    padding: 95px 0;
    background: #FFFFFF;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

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

.contact-coord-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
}

.contact-coord-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.contact-coord-item i {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(15, 92, 92, 0.1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-coord-item strong {
    font-size: 0.98rem;
    color: var(--blue-dark);
    display: block;
    margin-bottom: 3px;
}

.contact-coord-item p,
.contact-coord-item a {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.contact-coord-item a:hover {
    color: var(--blue);
}

.contact-map-wrap {
    margin-top: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 220px;
}

.contact-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 38px 34px;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Scroll to Top Floating Action Button
   ========================================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--blue);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 14px rgba(15, 92, 92, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-top-btn:hover {
    background-color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 92, 92, 0.45);
    color: #FFFFFF;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}




