/* =========================================================
   ATF VISION ISLAMIC INSTITUTE — PREMIUM LANDING PAGE
   Aesthetic: Refined Islamic Elegance · Deep Emerald & Gold
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    /* Core palette */
    --emerald:      #065f46;
    --emerald-mid:  #047857;
    --emerald-light:#10b981;
    --emerald-glow: rgba(6,95,70,.12);
    --gold:         #d97706;
    --gold-light:   #fbbf24;
    --gold-pale:    #fef3c7;
    --ink:          #0c1a14;
    --ink-mid:      #1a2e22;
    --slate:        #334155;
    --muted:        #64748b;
    --white:        #ffffff;
    --off-white:    #f8faf9;
    --glass:        rgba(255,255,255,.72);
    --glass-border: rgba(255,255,255,.55);
    --border:       rgba(6,95,70,.12);

    /* Shadows */
    --shadow-xs:  0 2px 8px  rgba(6,95,70,.06);
    --shadow-sm:  0 4px 16px rgba(6,95,70,.08);
    --shadow-md:  0 10px 32px rgba(6,95,70,.11);
    --shadow-lg:  0 20px 60px rgba(6,95,70,.15);
    --shadow-xl:  0 32px 80px rgba(6,95,70,.20);

    /* Shape */
    --radius-sm:  12px;
    --radius-md:  20px;
    --radius-lg:  28px;
    --radius-xl:  40px;

    /* Motion */
    --ease:       cubic-bezier(.22,1,.36,1);
    --fast:       .22s;
    --normal:     .38s;
    --slow:       .6s;
}

/* =========================================================
   RESET + BASE
========================================================= */

*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background:
        radial-gradient(ellipse 80% 60% at 10% -10%,  rgba(6,95,70,.07)  0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 110%, rgba(217,119,6,.06) 0%, transparent 55%),
        linear-gradient(160deg, #f0faf5 0%, #f8faf9 50%, #fffbf0 100%);
    background-attachment: fixed;
    color: var(--slate);
    line-height: 1.72;
    overflow-x: hidden;
}

/* Decorative corner pattern overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(6,95,70,.035) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* =========================================================
   NAVBAR
========================================================= */

.main-nav {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(6,95,70,.1);
    padding: 0;
    min-height: 68px;
    transition: box-shadow var(--normal) var(--ease),
                background var(--normal) var(--ease);
    z-index: 999;
}

.main-nav.scrolled {
    box-shadow: 0 4px 24px rgba(6,95,70,.1);
}

/* Logo */
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.3px;
    line-height: 1;
}

/* Nav links */
.main-nav .nav-link {
    color: var(--ink-mid) !important;
    font-size: .875rem;
    font-weight: 500;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm);
    transition: color var(--fast) var(--ease),
                background var(--fast) var(--ease);
    letter-spacing: .01em;
    position: relative;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%; right: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 4px;
    transition: left var(--normal) var(--ease),
                right var(--normal) var(--ease);
}

.main-nav .nav-link:hover::after { left: 16px; right: 16px; }
.main-nav .nav-link:hover { color: var(--emerald) !important; }

/* Buttons */
.main-nav .btn { font-size: .85rem; border-radius: var(--radius-sm); font-weight: 600; }

@media (max-width: 991px) {
    .main-nav { padding: 10px 0; }
    .navbar-collapse { padding: 16px 0; }
    .main-nav .nav-link::after { display: none; }
    .nav-buttons { margin-top: 12px; flex-direction: column; gap: 8px !important; }
    .nav-buttons .btn { width: 100%; text-align: center; }
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 13px 26px;
    font-size: .93rem;
    transition: all var(--normal) var(--ease);
    letter-spacing: .02em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--fast);
}
.btn:hover::before { background: rgba(255,255,255,.08); }

.btn-primary {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 60%, var(--emerald-light) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 6px 24px rgba(6,95,70,.28), inset 0 1px 0 rgba(255,255,255,.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(6,95,70,.38), inset 0 1px 0 rgba(255,255,255,.2);
    color: #fff;
}

.btn-primary:active { transform: translateY(-1px); }

.btn-outline-primary {
    border: 1.5px solid rgba(6,95,70,.3);
    color: var(--emerald);
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(8px);
}

.btn-outline-primary:hover {
    background: var(--emerald);
    border-color: var(--emerald);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(6,95,70,.22);
}

/* Gold accent button */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    color: var(--ink);
    box-shadow: 0 6px 24px rgba(217,119,6,.28);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(217,119,6,.38);
    color: var(--ink);
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero-section {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(217,119,6,.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Badge */
.hero-section .badge {
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem !important;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(6,95,70,.2);
    background: rgba(6,95,70,.08) !important;
    color: var(--emerald) !important;
}

/* Hero title */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.13;
    color: var(--ink);
    letter-spacing: -.04em;
    margin-top: 14px;
}

.hero-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    font-weight: 400;
    max-width: 500px;
    line-height: 1.75;
}

/* Hero trust points */
.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--emerald);
    background: rgba(6,95,70,.07);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(6,95,70,.13);
    letter-spacing: .02em;
}

/* =========================================================
   HERO GLASS CARD / CAROUSEL
========================================================= */

.hero-glass-card {
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-radius: var(--radius-xl);
    padding: 14px;
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,.8);
    position: relative;
}

/* Gold corner accent */
.hero-glass-card::before {
    content: '';
    position: absolute;
    top: -1px; right: -1px;
    width: 90px; height: 90px;
    background: conic-gradient(from 135deg, var(--gold-light), transparent 60%);
    border-radius: 0 var(--radius-xl) 0 0;
    opacity: .55;
    pointer-events: none;
}

.hero-slide-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) - 10px);
}

.hero-carousel-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .7s var(--ease);
}

.carousel-item:hover .hero-carousel-img { transform: scale(1.04); }

/* Overlay */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6,20,14,.82) 0%,
        rgba(6,20,14,.45) 38%,
        rgba(6,20,14,.08) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 44px;
}

.hero-slide-content { max-width: 460px; color: #fff; }

.hero-slide-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 12px;
    color: #fff;
}

.hero-slide-description {
    font-size: .92rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 22px;
    line-height: 1.75;
}

.hero-slide-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--ink) !important;
    border: none;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    box-shadow: 0 6px 20px rgba(217,119,6,.3);
    transition: all var(--normal) var(--ease);
}
.hero-slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(217,119,6,.45);
}

/* Carousel */
#heroCarousel, #heroCarousel .carousel-inner,
#heroCarousel .carousel-item { border-radius: calc(var(--radius-xl) - 10px); overflow: hidden; }

.carousel-indicators button {
    width: 8px !important; height: 8px !important;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.5) !important;
    transition: all var(--fast);
}
.carousel-indicators button.active {
    width: 24px !important;
    border-radius: 4px !important;
    background: var(--gold-light) !important;
}

/* Hero carousel responsive */
.hero-glass-card .carousel-item { height: 500px; }
.hero-glass-card .carousel-item img { height: 100%; width: 100%; object-fit: cover; border-radius: calc(var(--radius-xl) - 10px); }

@media (max-width: 768px) {
    .hero-slide-wrapper { height: 380px; }
    .hero-glass-card .carousel-item { height: 380px; }
    .hero-carousel-img { height: 380px; }
    .hero-slide-overlay { padding: 24px; }
    .hero-slide-title { font-size: 1.25rem; }
    .hero-slide-description { font-size: .78rem; }
    .hero-section { padding: 50px 0 70px; }
}

/* =========================================================
   TRUST STRIP
========================================================= */

.trust-strip {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(6,95,70,.08);
    border-bottom: 1px solid rgba(6,95,70,.08);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.trust-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(6,95,70,.04) 33%,
        rgba(217,119,6,.04) 66%,
        transparent 100%
    );
}

.trust-strip .stat-item {
    position: relative;
}

.trust-strip .stat-item::after {
    content: '';
    position: absolute;
    right: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(6,95,70,.15), transparent);
}
.trust-strip .col-md-3:last-child .stat-item::after { display: none; }

.trust-strip h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    line-height: 1;
}

.trust-strip p {
    color: var(--muted);
    font-weight: 500;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0;
}

/* =========================================================
   SECTION BASE
========================================================= */

.section-space { padding: 100px 0; position: relative; }

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -.04em;
    line-height: 1.15;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
    font-weight: 400;
}

/* Section gold divider */
.section-divider {
    width: 56px; height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 4px;
    margin: 0 auto 24px;
}

.alt-bg {
    background: linear-gradient(to bottom,
        rgba(240,250,245,.6) 0%,
        rgba(248,250,249,.8) 100%
    );
}

/* =========================================================
   MODULE / COURSE CARDS
========================================================= */

.module-card {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(6,95,70,.08);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    transition: transform var(--normal) var(--ease),
                box-shadow var(--normal) var(--ease),
                border-color var(--normal);
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,95,70,.04), rgba(217,119,6,.03));
    opacity: 0;
    transition: opacity var(--normal);
    pointer-events: none;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6,95,70,.18);
}
.module-card:hover::before { opacity: 1; }

.module-icon-wrap {
    width: 72px; height: 72px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(6,95,70,.08), rgba(217,119,6,.06));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(6,95,70,.1);
    margin-bottom: 22px;
    border: 1px solid rgba(6,95,70,.1);
    transition: transform var(--normal) var(--ease);
}
.module-card:hover .module-icon-wrap { transform: scale(1.08) rotate(-3deg); }

.module-icon { width: 40px; height: 40px; object-fit: contain; }

.module-card h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.module-card p {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* =========================================================
   BENEFIT CARDS (Why Choose Us)
========================================================= */

.benefit-card {
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(6,95,70,.09);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    height: 100%;
    transition: all var(--normal) var(--ease);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.benefit-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--normal) var(--ease);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6,95,70,.16);
}
.benefit-card:hover::after { transform: scaleX(1); }

.benefit-card .benefit-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(6,95,70,.2);
}

.benefit-card h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.benefit-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 0; }

/* =========================================================
   ABOUT CARDS
========================================================= */

.about-card {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(6,95,70,.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: 100%;
    transition: all var(--normal) var(--ease);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.about-card img {
    height: 260px; width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform var(--slow) var(--ease);
    margin-bottom: 18px;
}
.about-card:hover img { transform: scale(1.03); }

.about-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}
.about-card p { color: var(--muted); font-size: .9rem; line-height: 1.72; margin: 0; }

/* =========================================================
   FAQ
========================================================= */

.accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 14px;
}

.accordion-button {
    border-radius: var(--radius-md) !important;
    padding: 22px 26px;
    font-weight: 600;
    font-size: .95rem;
    background: rgba(255,255,255,.85) !important;
    box-shadow: var(--shadow-xs) !important;
    border: 1px solid rgba(6,95,70,.08) !important;
    color: var(--ink);
    transition: all var(--normal) var(--ease);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(6,95,70,.07), rgba(255,255,255,.9)) !important;
    color: var(--emerald) !important;
    border-color: rgba(6,95,70,.18) !important;
    box-shadow: var(--shadow-sm) !important;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23065f46'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5' stroke='%23065f46' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M1.5 10.5l6.5-6.5 6.5 6.5' stroke='%23065f46' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.accordion-button:focus { box-shadow: none !important; outline: none; }

.accordion-body {
    background: rgba(255,255,255,.7);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border: 1px solid rgba(6,95,70,.08);
    border-top: none;
    color: var(--muted);
    padding: 20px 26px 24px;
    font-size: .92rem;
    line-height: 1.75;
}

/* =========================================================
   TEACHER CARDS
========================================================= */
.teacher-card {
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(6,95,70,.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--normal) var(--ease);
    box-shadow: var(--shadow-sm);
    
}

    /* 👇 Reduced hover movement (less bulky feel) */
    .teacher-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-xl);
        border-color: rgba(6,95,70,.18);
    }

/* 👇 Smaller image height */
.teacher-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

    .teacher-img-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(to top, rgba(255,255,255,.9), transparent);
    }

.teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.teacher-card:hover .teacher-img {
    transform: scale(1.05);
}

/* 👇 Less padding = smaller card */
.teacher-content {
    padding: 16px 18px 20px;
}

    /* 👇 Smaller title */
    .teacher-content h4 {
        font-family: 'Playfair Display', serif;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: 6px;
    }

/* 👇 Smaller badge */
.teacher-designation {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(6,95,70,.1), rgba(217,119,6,.08));
    color: var(--emerald);
    border-radius: 30px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: 1px solid rgba(6,95,70,.15);
}

/* 👇 Smaller text */
.teacher-content p {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.6;
    margin: 10px 0 0;
}

/* 👇 Smaller badges */
.teacher-badge {
    background: rgba(6,95,70,.07);
    color: var(--emerald);
    border: 1px solid rgba(6,95,70,.13);
    border-radius: 30px;
    padding: 4px 10px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    transition: all var(--fast);
}

    .teacher-badge:hover {
        background: var(--emerald);
        color: white;
        border-color: var(--emerald);
    }

/* 👇 Smaller navigation buttons */
#teacherCarousel .carousel-control-prev,
#teacherCarousel .carousel-control-next {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(217,119,6,.45);
    border-radius: 50%;
    border: 1px solid rgba(6,20,14,.45);
    box-shadow: var(--shadow-sm);
    transition: all var(--fast);
}

/* adjust position slightly */
#teacherCarousel .carousel-control-prev {
    left: -18px;
}

#teacherCarousel .carousel-control-next {
    right: -18px;
}

    #teacherCarousel .carousel-control-prev:hover,
    #teacherCarousel .carousel-control-next:hover {
        background: var(--emerald);
        border-color: var(--emerald);
    }

#teacherCarousel .carousel-control-prev-icon,
#teacherCarousel .carousel-control-next-icon {
    width: 14px;
    height: 14px;
}
/* =========================================================
   DEMO / CONTACT FORM BOX
========================================================= */

.demo-request-box {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.demo-request-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald-light));
}

.demo-request-box .section-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Project checklist */
.project-box { padding: 0; }

.project-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: background var(--fast);
    font-size: .9rem;
    font-weight: 500;
    color: var(--slate);
}
.project-item:hover { background: rgba(6,95,70,.05); }
.project-item i { font-size: 17px; flex-shrink: 0; }

/* =========================================================
   FORM CONTROLS
========================================================= */

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(6,95,70,.14);
    padding: 13px 18px;
    background: rgba(255,255,255,.9);
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    color: var(--slate);
    transition: all var(--fast) var(--ease);
    box-shadow: var(--shadow-xs);
}

.form-control::placeholder { color: #94a3b8; }

.form-control:focus,
.form-select:focus {
    border-color: rgba(6,95,70,.4);
    box-shadow: 0 0 0 4px rgba(6,95,70,.08);
    background: white;
    outline: none;
}

.form-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 7px;
    letter-spacing: .02em;
}

/* =========================================================
   FOOTER
========================================================= */

.main-footer {
    background:
        radial-gradient(ellipse 50% 60% at 80% 20%, rgba(6,95,70,.2), transparent 55%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(217,119,6,.1), transparent 55%),
        linear-gradient(180deg, #0b1f14 0%, #050f09 100%);
    color: #94a3b8;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6,95,70,.5), rgba(217,119,6,.4), transparent);
}

.main-footer h5 {
    font-family: 'Playfair Display', serif;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.main-footer h5::after {
    content: '';
    display: block;
    width: 30px; height: 2px;
    background: linear-gradient(90deg, var(--emerald-light), var(--gold));
    margin-top: 8px;
    border-radius: 2px;
}

.main-footer p { font-size: .88rem; line-height: 1.8; color: #64748b; }

.main-footer a {
    color: #64748b;
    text-decoration: none;
    font-size: .88rem;
    display: block;
    padding: 3px 0;
    transition: all var(--fast) var(--ease);
    position: relative;
}

.main-footer a:hover {
    color: var(--emerald-light);
    padding-left: 8px;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 50px;
    padding-top: 24px;
    font-size: .8rem;
    color: #475569;
    text-align: center;
}

/* =========================================================
   BACK TO TOP
========================================================= */

#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 50px; height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
    color: white;
    font-size: 17px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 8px 28px rgba(6,95,70,.35);
    transition: all var(--normal) var(--ease);
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 16px 40px rgba(6,95,70,.45);
    background: linear-gradient(135deg, var(--emerald-mid), var(--emerald-light));
}

/* =========================================================
   ICONS
========================================================= */

.icon-wrap {
    width: 68px; height: 68px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(6,95,70,.1), rgba(217,119,6,.07));
    color: var(--emerald);
    font-size: 28px;
    margin-bottom: 22px;
    box-shadow: 0 8px 22px rgba(6,95,70,.12);
    border: 1px solid rgba(6,95,70,.1);
}

.icon-wrap.care {
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    color: #16a34a;
}

/* =========================================================
   TESTIMONIAL
========================================================= */

.testimonial-card {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(6,95,70,.08);
    border-radius: var(--radius-lg);
    padding: 36px;
    height: 100%;
    transition: all var(--normal) var(--ease);
    box-shadow: var(--shadow-sm);
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.testimonial-card p {
    color: var(--muted);
    font-style: italic;
    font-size: .93rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

/* =========================================================
   GLOBAL IMAGE
========================================================= */

img { max-width: 100%; }

/* =========================================================
   SCROLL ANIMATION UTILITY
========================================================= */

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-up.visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .section-space { padding: 72px 0; }
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.6rem; }
    .hero-glass-card { margin-top: 20px; }
    #teacherCarousel .carousel-control-prev { left: 0; }
    #teacherCarousel .carousel-control-next { right: 0; }
}

@media (max-width: 767px) {
    .hero-section { padding: 52px 0 64px; }
    .section-space { padding: 56px 0; }
    .hero-title { font-size: 2.1rem; }
    .section-title { font-size: 1.75rem; }
    .trust-strip h3 { font-size: 2rem; }
    .trust-strip .stat-item::after { display: none; }
    .demo-request-box { border-radius: var(--radius-lg); }
    .hero-points span { font-size: .76rem; }
    .btn { width: 100%; }
    .d-flex.gap-3 .btn { width: auto; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-glass-card { border-radius: var(--radius-lg); padding: 10px; }
    .module-card { padding: 24px 20px; }
    .benefit-card { padding: 26px 22px; }
}

/* =========================================================
   PRINT
========================================================= */

@media print {
    .main-nav, #backToTop, .hero-section::before,
    body::before { display: none !important; }
    body { background: white; }
}
