/* ==========================================================================
   A Plus Learning Centre - Component Stylesheet (components.css)
   ========================================================================== */

/* 1. STICKY HEADER & NAVIGATION */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-wrapper.inner-header {
    background-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 222, 89, 0.1);
}

.header-wrapper.scrolled {
    background-color: rgba(0, 70, 49, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 222, 89, 0.1);
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
    transition: var(--transition-smooth);
}

.header-wrapper.scrolled .header-inner {
    height: 76px;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--bg-white);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-yellow);
    color: var(--primary-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(255, 222, 89, 0.3);
}

.logo-text span {
    color: var(--accent-yellow);
}

.logo-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    transition: height var(--transition-smooth);
}

.header-wrapper.scrolled .logo-img {
    height: 150px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--bg-white);
}

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

.header-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--bg-white);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-green);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 2rem;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer .nav-link {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.mobile-drawer .nav-link:hover {
    color: var(--accent-yellow);
}

/* Responsive Header */
@media (max-width: 1024px) {

    .nav-menu,
    .header-cta .btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}


/* 2. HERO SECTION */
.hero-sec {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(0, 70, 49, 1) 0%, rgba(0, 45, 31, 1) 90%);
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: var(--bg-white);
    position: relative;
    z-index: 2;
}

.hero-badge {
    background-color: rgba(255, 222, 89, 0.1);
    border: 1px solid rgba(255, 222, 89, 0.3);
    color: var(--accent-yellow);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    font-weight: 800;
}

.hero-title span {
    color: var(--accent-yellow);
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-badges-row {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.trust-badge-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.trust-badge-text h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 700;
}

.trust-badge-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-graphics-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating SVG Decorative Objects */
.floating-svg {
    position: absolute;
    pointer-events: none;
    opacity: 0.45;
    z-index: 1;
}

.svg-triangle {
    top: 10%;
    left: 5%;
    width: 60px;
}

.svg-circle-outline {
    bottom: 15%;
    left: 10%;
    width: 80px;
}

.svg-cube {
    top: 20%;
    right: 5%;
    width: 70px;
}

.svg-pencil {
    bottom: 20%;
    right: 10%;
    width: 60px;
}

.svg-helix {
    top: 5%;
    left: 45%;
    width: 50px;
}

/* 3D Modern Educational Illustration (Responsive Inline SVG) */
.illustration-svg {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
    animation: float-slow 6s ease-in-out infinite;
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-badges-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}


/* 3. TRUST METRICS SECTION */
.metrics-section {
    background-color: var(--bg-white);
    border-bottom: 1px solid rgba(0, 70, 49, 0.05);
    position: relative;
    z-index: 2;
    margin-top: -50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 3rem 2rem;
    gap: 2rem;
    text-align: center;
}

.metric-item {
    border-right: 1px solid rgba(0, 70, 49, 0.1);
}

.metric-item:last-child {
    border-right: none;
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.metric-number span {
    color: var(--accent-yellow);
}

.metric-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

    .metric-item {
        border-right: none;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* 4. WHY CHOOSE US (GLASSMORPHISM CARDS) */
.section-title-area {
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-green);
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-black);
    font-weight: 800;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 70, 49, 0.08);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
}

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

.why-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-green-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
    transition: var(--transition-smooth);
}

.why-card:hover .why-icon {
    background-color: var(--primary-green);
    color: var(--accent-yellow);
    transform: rotate(5deg) scale(1.05);
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.why-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

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


/* 5. COURSES OFFERED */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.course-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 70, 49, 0.06);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: rgba(0, 70, 49, 0.15);
}

.course-header {
    margin-bottom: 1.5rem;
}

.course-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 222, 89, 0.15);
    color: var(--primary-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.course-card:hover .course-icon-wrapper {
    background-color: var(--primary-green);
    color: var(--accent-yellow);
}

.course-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.course-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.course-footer {
    margin-top: 2rem;
}

.btn-course-cta {
    width: 100%;
    padding: 0.75rem;
    border-radius: 50px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1.5px solid var(--primary-green);
    color: var(--primary-green);
    transition: var(--transition-fast);
}

.course-card:hover .btn-course-cta {
    background-color: var(--primary-green);
    color: var(--bg-white);
}

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

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


/* 6. OUR RESULTS (DEDICATED PAGE & CARDS) */
.results-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 70, 49, 0.15);
    background-color: var(--bg-white);
    color: var(--primary-green);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
    background-color: var(--primary-green);
    color: var(--bg-white);
    border-color: var(--primary-green);
    box-shadow: 0 8px 15px rgba(0, 70, 49, 0.2);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.ranker-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 70, 49, 0.05);
    transition: var(--transition-bounce);
    position: relative;
}

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

.ranker-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-yellow);
    color: var(--primary-green);
    padding: 0.35rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ranker-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 110%;
    /* Golden ratio aspect */
    background-color: var(--bg-light);
    overflow: hidden;
}

.ranker-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.ranker-info {
    padding: 1.5rem;
    text-align: center;
}

.ranker-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.ranker-score {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 0.3rem;
}

.ranker-exam {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-muted);
}

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

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

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


/* 7. LEARNING PROCESS (TIMELINE) */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-yellow) 0%, var(--primary-green) 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 4rem;
    position: relative;
    width: 50%;
    z-index: 2;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    margin-left: 50%;
    justify-content: flex-start;
}

.timeline-dot {
    position: absolute;
    top: 15px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-yellow);
    border: 4px solid var(--primary-green);
    box-shadow: 0 0 10px var(--accent-yellow);
    z-index: 3;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    right: auto;
}

.timeline-content {
    background: var(--bg-white);
    border: 1px solid rgba(0, 70, 49, 0.08);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    width: 90%;
    position: relative;
    transition: var(--transition-bounce);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 20px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 20px;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 222, 89, 0.4);
}

.timeline-step {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        justify-content: flex-start;
        padding-left: 45px;
        padding-bottom: 3rem;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* 8. INSTAGRAM FEED */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.insta-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
}

.insta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 70, 49, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--bg-white);
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 1.5rem;
    text-align: center;
    z-index: 2;
}

.insta-card:hover .insta-overlay {
    opacity: 1;
}

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

.insta-icon {
    font-size: 2rem;
    color: var(--accent-yellow);
    margin-bottom: 0.8rem;
}

.insta-caption {
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

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


/* 9. BLOGS PAGE & SEARCH */
.blogs-header-card {
    background: linear-gradient(135deg, var(--primary-green) 0%, #002d21 100%);
    border-radius: var(--border-radius-lg);
    padding: 4rem 3rem;
    color: var(--bg-white);
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-box-wrapper {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    position: relative;
    z-index: 5;
}

.search-input {
    width: 100%;
    background-color: var(--bg-white);
    padding: 1.1rem 1.8rem;
    border-radius: 50px;
    border: none;
    color: var(--text-black);
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 70, 49, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-img-wrapper {
    position: relative;
    padding-top: 56%;
    background-color: var(--bg-light);
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-green);
    color: var(--accent-yellow);
    padding: 0.35rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
}

.blog-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-read-more {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-read-more:hover {
    color: var(--text-black);
}

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

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


/* 10. ENQUIRY FORM */
.enquiry-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 70, 49, 0.06);
    overflow: hidden;
    position: relative;
}

.enquiry-header {
    background-color: var(--primary-green);
    color: var(--bg-white);
    padding: 3rem 2rem;
    text-align: center;
}

.enquiry-header h2 {
    color: var(--bg-white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.enquiry-form {
    padding: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    background-color: var(--bg-light);
    border: 1px solid rgba(0, 70, 49, 0.1);
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    color: var(--text-black);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    background-color: var(--bg-white);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 70, 49, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.honey-pot {
    display: none;
}

/* Success Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 70, 49, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-card {
    background-color: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    max-width: 480px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-bounce);
}

.popup-overlay.active .popup-card {
    transform: scale(1);
}

.popup-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-yellow);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.popup-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.popup-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

@media (max-width: 768px) {
    .enquiry-form {
        padding: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}


/* 11. FAQ ACCORDION — FIXED */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 70, 49, 0.05);
    /* Removed overflow:hidden so question is never clipped */
    transition: var(--transition-smooth);
}

.faq-item.active {
    border-color: rgba(0, 70, 49, 0.15);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.4rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* allow text to wrap without hiding */
    gap: 1rem;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-black);
    /* Always visible */
    user-select: none;
    line-height: 1.5;
}

/* Question text span — always visible, never hidden */
.faq-question>span {
    flex: 1;
    min-width: 0;
    display: block;
    color: var(--text-black);
    visibility: visible;
    opacity: 1;
}

.faq-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    /* prevent shrinking */
    border-radius: 50%;
    background-color: rgba(0, 70, 49, 0.08);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition-smooth);
    margin-top: 0.1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background-color: var(--primary-green);
    color: var(--accent-yellow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease-in-out, padding 0.2s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 1.5rem 1.5rem 1.5rem;
    transition: max-height 0.5s ease-in-out;
}


/* 12. CTA CONVERSION BLOCK */
.cta-block-wrapper {
    background: linear-gradient(135deg, var(--primary-green) 0%, #002c1f 100%);
    border-radius: var(--border-radius-lg);
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.cta-block-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 222, 89, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.7;
}

.cta-title {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .cta-block-wrapper {
        padding: 4rem 2rem;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}


/* 13. PREMIUM FOOTER */
.footer-wrap {
    background-color: #002217;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 222, 89, 0.15);
    position: relative;
    overflow: hidden;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Section 1: Brand & Tagline */
.footer-brand-section {
    display: flex;
    flex-direction: column;
}

.footer-tagline {
    font-size: 0.9rem;
    margin-top: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.social-icon-btn:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* Section 2: Links Grid */
.footer-links-wrapper {
    display: contents; /* Seamless grid layout on desktop */
}

.footer-links-col h3 {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-yellow);
}

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

.footer-links-list a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links-list a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

/* Section 3: Contact Card */
.footer-contact-card h3 {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-contact-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-yellow);
}

.contact-details-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
}

.contact-compact-item {
    display: flex;
    gap: 0.8rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.contact-compact-item i {
    color: var(--accent-yellow);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Section 4: Copyright bottom */
.footer-bottom-bar {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom-bar p {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-bar a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom-bar a:hover {
    color: var(--accent-yellow);
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    .footer-links-wrapper {
        display: contents;
    }
}

@media (max-width: 768px) {
    .footer-wrap {
        padding-top: 3rem;
        background: linear-gradient(180deg, #001f14 0%, #00120b 100%);
        border-top: 1px solid rgba(255, 222, 89, 0.15);
    }
    
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .footer-brand-section {
        align-items: center;
        text-align: center;
    }
    
    .footer-tagline {
        font-size: 0.82rem;
        margin-top: 0.8rem;
        max-width: 280px;
    }
    
    .footer-social-row {
        margin-top: 1rem;
        gap: 1.25rem;
    }

    /* Side-by-side links columns on mobile */
    .footer-links-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-links-col h3 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .footer-links-col h3::after {
        display: none; /* Hide yellow bottom line on mobile for clean look */
    }

    .footer-links-list {
        gap: 0.5rem;
    }

    .footer-links-list a {
        font-size: 0.82rem;
    }

    /* Premium Compact Glassmorphic Contact Card */
    .footer-contact-card {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--border-radius-md);
        padding: 1.5rem;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    }

    .footer-contact-card h3 {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .footer-contact-card h3::after {
        display: none;
    }

    .contact-details-compact {
        gap: 0.75rem;
    }

    .contact-compact-item {
        font-size: 0.82rem;
        align-items: center;
    }

    /* Copyright single line */
    .footer-bottom-bar {
        padding: 1.5rem 0 5rem 0; /* Add bottom padding to clear the mobile actions bar */
    }

    .footer-bottom-bar p {
        font-size: 0.75rem;
        line-height: 1.6;
    }
}


/* 14. TOPPERS SECTION — FIXED RESPONSIVE LAYOUT */
.toppers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.toppers-video-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.toppers-video-inner {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-green) 0%, #002d21 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: var(--accent-yellow);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.toppers-video-inner:hover {
    background: linear-gradient(135deg, #005a40 0%, #003828 100%);
}

.toppers-video-inner .play-icon {
    font-size: 4.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform var(--transition-bounce);
}

.toppers-video-inner:hover .play-icon {
    transform: scale(1.1);
}

.toppers-video-inner .video-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    padding: 0 1.5rem;
    line-height: 1.4;
}

.toppers-testimonial-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    border-left: 5px solid var(--accent-yellow);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.toppers-quote-icon {
    font-size: 2rem;
    color: var(--accent-yellow);
    margin-bottom: 1.2rem;
    display: block;
}

.toppers-testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.toppers-student-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
}

.toppers-student-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Tablet: balanced two columns */
@media (max-width: 900px) {
    .toppers-grid {
        gap: 2rem;
    }

    .toppers-testimonial-card {
        padding: 2rem;
    }

    .toppers-testimonial-text {
        font-size: 0.98rem;
    }
}

/* Mobile: stack vertically — video first, testimonial second */
@media (max-width: 640px) {
    .toppers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .toppers-video-card {
        order: 1;
    }

    .toppers-testimonial-card {
        order: 2;
        padding: 1.8rem 1.5rem;
        border-left-width: 4px;
    }

    .toppers-testimonial-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .toppers-quote-icon {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
}


/* 15. PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
    border: 1.5px solid rgba(0, 70, 49, 0.15);
    color: var(--primary-green);
    background: var(--bg-white);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--primary-green);
    color: var(--bg-white);
    border-color: var(--primary-green);
}

.pagination span.current {
    background: var(--primary-green);
    color: var(--bg-white);
    border-color: var(--primary-green);
}

.pagination span.dots {
    border: none;
    background: none;
    color: var(--text-muted);
}


/* 16. REVIEWS SECTION */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 70, 49, 0.06);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.review-stars {
    display: flex;
    gap: 0.2rem;
    color: var(--accent-yellow);
    font-size: 0.95rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
    font-style: italic;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 70, 49, 0.06);
}

.review-photo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-green-light);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.2rem;
}

.review-author-info .name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-black);
    font-family: var(--font-heading);
}

.review-author-info .course {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

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

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

/* 17. WHATSAPP FLOATING BUTTON */
.whatsapp-float-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999999;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.whatsapp-float-btn {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    animation: whatsapp-btn-pulse 3s infinite;
}

.whatsapp-float-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    pointer-events: auto;
    background-color: #004631;
    color: #FFF;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--accent-yellow);
    white-space: nowrap;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #004631;
    border-right: 1px solid var(--accent-yellow);
    border-top: 1px solid var(--accent-yellow);
}

/* Tooltip Show states */
.whatsapp-float-container:hover .whatsapp-tooltip,
.whatsapp-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Pulse animation */
@keyframes whatsapp-btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), 0 6px 20px rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.4);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .whatsapp-float-container {
        display: none !important;
    }
}