/* =========================================
   Kalika Edu - Components
   ========================================= */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    text-align: center;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--color-magenta);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(217, 24, 107, 0.4);
}

.btn-primary:hover {
    background-color: #c0145c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 24, 107, 0.6);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-navy);
    border: 1px solid var(--color-navy);
}

.btn-secondary:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-outline:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.btn-link {
    background: transparent;
    color: var(--color-magenta);
    padding: 0;
}

.btn-link:hover {
    color: var(--color-navy);
    gap: 0.5rem; /* prevent default gap change */
}

.btn-link .material-symbols-outlined {
    transition: transform 250ms ease, color 250ms ease;
}

.btn-link:hover .material-symbols-outlined {
    transform: translateX(5px);
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-gray-200);
    transition: var(--transition-normal);
    padding: 1rem 0;
}

header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
}

.logo .logo-icon {
    color: var(--color-magenta);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-magenta);
    transition: var(--transition-normal);
}

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

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

/* Active Link Styles */
.nav-links a.active {
    color: var(--color-magenta);
}

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

/* Dropdown Container */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 4px;
}

.dropdown-icon {
    font-size: 20px;
    transition: transform var(--transition-normal);
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.dropdown-menu a {
    padding: 0.5rem 1.5rem;
    display: block;
    width: 100%;
    color: var(--color-navy);
}

.dropdown-menu a::after {
    display: none; /* No underline inside dropdown */
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: var(--color-gray-50);
    color: var(--color-magenta);
}

.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--color-navy);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
    background-color: var(--color-gray-50);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%230F204B' stroke-width='1.5' fill='none' opacity='0.03'%3E%3C!-- Book --%3E%3Cpath d='M40,50 L70,40 L100,50 L100,80 L70,70 L40,80 Z' /%3E%3Cpath d='M70,40 L70,70' /%3E%3C!-- Pencil --%3E%3Cpath d='M220,60 L240,40 L270,70 L250,90 Z' /%3E%3Cpath d='M250,90 L230,105 L220,95 Z' /%3E%3Cpath d='M220,60 L220,95' /%3E%3C!-- Lightbulb --%3E%3Ccircle cx='120' cy='200' r='20' /%3E%3Cpath d='M108,217 L108,230 L132,230 L132,217' /%3E%3Cpath d='M113,237 L127,237' /%3E%3C!-- Atom --%3E%3Cellipse cx='240' cy='220' rx='30' ry='10' transform='rotate(45 240 220)' /%3E%3Cellipse cx='240' cy='220' rx='30' ry='10' transform='rotate(-45 240 220)' /%3E%3Ccircle cx='240' cy='220' r='4' fill='%230F204B' /%3E%3C!-- Graduation Cap --%3E%3Cpath d='M150,120 L180,105 L210,120 L180,135 Z' /%3E%3Cpath d='M160,128 L160,150 C 160,150 180,160 200,150 L200,128' /%3E%3Cline x1='210' y1='120' x2='210' y2='140' /%3E%3C!-- Shapes --%3E%3Cpolygon points='50,180 80,180 65,150' /%3E%3Cpath d='M250,30 L280,30 M265,15 L265,45' /%3E%3Ccircle cx='140' cy='50' r='5' /%3E%3Ccircle cx='40' cy='250' r='3' /%3E%3Ccircle cx='280' cy='180' r='6' /%3E%3C/g%3E%3C/svg%3E");
    background-size: 300px 300px;
    background-repeat: repeat;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: rgba(217, 24, 107, 0.2);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background-color: rgba(0, 135, 147, 0.2);
    bottom: -150px;
    left: -150px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background-color: rgba(242, 145, 17, 0.15);
    top: 30%;
    left: 40%;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(217, 24, 107, 0.1);
    color: var(--color-magenta);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-content .sub-heading {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.image-card {
    padding: 1rem;
    position: relative;
}

.hero-img {
    border-radius: var(--border-radius-md);
    width: 100%;
    object-fit: cover;
    filter: drop-shadow(0 25px 25px rgba(15, 32, 75, 0.15));
}

.floating-badge {
    position: absolute;
    background: var(--color-white);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-navy);
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

.floating-badge .material-symbols-outlined {
    color: var(--color-teal);
}

.badge-1 {
    top: 30px;
    right: 20px;
    animation-delay: 0s;
    z-index: 5;
}

.badge-2 {
    bottom: 40%;
    left: 10px;
    animation-delay: 2s;
    z-index: 5;
}

.badge-3 {
    bottom: 30px;
    right: 20px;
    animation-delay: 4s;
    z-index: 5;
}

/* --- Trust Bar --- */
#trust-bar {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 3rem 0;
    position: relative;
    z-index: 2;
    margin-top: -30px;
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.trust-item {
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-item:hover {
    transform: translateY(-4px);
}

.trust-icon {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.trust-item:hover .trust-icon {
    transform: scale(1.15);
    color: var(--color-white);
}

.trust-item h3 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.trust-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.15);
    align-self: center;
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- Mission & Vision --- */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mv-card {
    padding: 3rem;
    text-align: center;
    transition: var(--transition-normal);
}

.mv-card:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-wrapper.bg-magenta {
    background: rgba(229, 9, 114, 0.1) !important;
    color: var(--color-magenta) !important;
}

.icon-wrapper.bg-teal {
    background: rgba(0, 135, 147, 0.1) !important;
    color: var(--color-teal) !important;
}

.icon-wrapper .material-symbols-outlined {
    font-size: 2rem;
}

/* --- Academic Programs --- */
.programs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem 2rem;
    margin-top: 4rem;
}

.program-card {
    scroll-margin-top: 100px;
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
    transition: var(--transition-normal);
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 0 1 350px;
    width: 100%;
}

@media (min-width: 1150px) {
    .program-card-large {
        flex: 0 1 541px;
    }
}

.program-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--color-magenta);
}

.program-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.program-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-content p {
    flex-grow: 1;
}

/* --- Curriculum & Success Background --- */
#curriculum,
#success {
    background: radial-gradient(circle at top, #24386A, #182754);
}

.boards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.board-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 1.5rem;
    flex: 0 1 200px;
    transition: var(--transition-normal);
    text-align: center;
}

.board-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.board-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.board-logo.cbse-logo,
.board-logo.icse-logo {
    height: 60px;
}

.board-logo.cambridge-logo {
    height: 73px;
}

.board-card .material-symbols-outlined.state-board-icon {
    font-size: 48px;
    line-height: 48px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 300;
}

.board-card h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.board-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

/* --- Special Programs --- */
.language-ticker-wrapper {
    margin: 1rem 0;
    overflow: hidden;
}

.ticker-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ticker-content {
    display: flex;
    width: max-content;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-ticker 15s linear infinite;
    color: var(--color-navy);
    font-size: 0.875rem;
    font-weight: 500;
}

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

.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.special-card {
    scroll-margin-top: 100px;
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.special-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.special-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.special-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.small-text {
    font-size: 0.875rem;
    color: var(--color-navy);
    background: var(--color-gray-50);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
}

/* --- Why Choose Us --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

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

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem 2rem;
    }
}

.feature-item {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 20px rgba(15, 32, 75, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-item p {
    flex-grow: 1;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 32, 75, 0.12);
}

.feature-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.feature-icon-wrapper.pink-theme {
    background-color: rgba(217, 24, 107, 0.08);
    color: var(--color-magenta);
}

.feature-icon-wrapper.teal-theme {
    background-color: rgba(0, 135, 147, 0.08);
    color: var(--color-teal);
}

.feature-icon-wrapper svg {
    transition: transform 280ms ease-out;
}

.feature-item:hover .feature-icon-wrapper svg {
    transform: translateY(-4px) scale(1.08);
}

/* --- Learning Process --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    position: relative;
    padding: 1.5rem;
    background: var(--color-gray-50);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
}

.step p {
    flex-grow: 1;
}

.step:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: var(--color-magenta);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
}

/* Connectors */
@media (min-width: 1100px) {
    .process-steps {
        grid-template-columns: repeat(5, 1fr);
        position: relative;
        z-index: 1;
    }

    /* The static track */
    .process-steps::before {
        content: '';
        position: absolute;
        top: 49px;
        /* Center of the number badge (24px padding + 25px radius) */
        left: 10%;
        right: 10%;
        height: 2px;
        background-color: var(--color-gray-200);
        z-index: -2;
    }

    /* The animated highlight */
    .process-steps::after {
        content: '';
        position: absolute;
        top: 49px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(to right,
                transparent 0%,
                var(--color-magenta) 50%,
                transparent 100%);
        background-size: 200px 100%;
        background-repeat: no-repeat;
        z-index: -1;
        opacity: 0;
        animation: journey-flow 6s ease-in-out infinite;
    }
}

@keyframes journey-flow {
    0% {
        background-position: -200px 0;
        opacity: 0;
    }

    10% {
        opacity: 0.35;
    }

    70% {
        background-position: calc(100% + 200px) 0;
        opacity: 0.35;
    }

    80% {
        opacity: 0;
    }

    100% {
        background-position: calc(100% + 200px) 0;
        opacity: 0;
    }
}

/* --- Success Section --- */
.success-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.success-desc {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem !important;
}

.success-intro {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.5rem !important;
}

.success-list {
    color: #FFFFFF;
}

.success-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.success-list li .material-symbols-outlined {
    font-size: 1.75rem;
    line-height: 1.2;
    flex-shrink: 0;
}

/* Dark Section CTA Variant */
.btn-link-dark {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: var(--color-white);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    transition: color 250ms ease, text-decoration-color 250ms ease;
}

.btn-link-dark:hover {
    color: var(--color-magenta);
    text-decoration-color: var(--color-magenta);
    gap: 0.5rem; /* overrides the default .btn-link gap change */
}

.btn-link-dark .material-symbols-outlined {
    color: var(--color-white);
    transition: transform 250ms ease, color 250ms ease;
}

.btn-link-dark:hover .material-symbols-outlined {
    color: var(--color-magenta);
    transform: translateX(5px);
}

/* --- Testimonials --- */
.testimonial-carousel-wrapper {
    position: relative;
    margin-top: 3rem;
    overflow: hidden;
    /* Hide horizontal overflow for sliding */
    padding: 1rem 0;
    /* Room for shadows on hover */
}

.testimonial-carousel {
    width: 100%;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* Gaps are handled via padding on the slides to make sliding math easier */
}

/* Individual Slide Container */
.testimonial-slide {
    flex: 0 0 100%;
    /* Default mobile: 1 slide */
    padding: 0 1rem;
    display: flex;
    /* For equal heights */
}

@media (min-width: 768px) {
    .testimonial-slide {
        flex: 0 0 50%;
        /* Tablet: 2 slides */
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 33.3333%;
        /* Desktop: 3 slides */
    }
}

.testimonial-card {
    background: var(--color-gray-50);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-md);
    text-align: left;
    position: relative;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-magenta);
    background: var(--color-white);
}

.testimonial-stars {
    color: var(--color-magenta);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .quote-icon {
    opacity: 0.3;
}

.quote-icon .material-symbols-outlined {
    font-size: 4rem;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-navy);
    position: relative;
    z-index: 1;
    flex-grow: 1;
    /* Pushes author details to bottom */
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-teal);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    color: var(--color-navy);
}

/* Navigation Controls */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-gray-300);
    background: var(--color-white);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--color-magenta);
    border-color: var(--color-magenta);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.carousel-btn:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

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

.faq-item {
    background: var(--color-white);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-navy);
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--color-gray-50);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-item.active .add-icon {
    transform: rotate(45deg);
    color: var(--color-magenta);
}

.add-icon {
    transition: transform 0.3s ease;
}

/* --- Final CTA --- */
.cta-section {
    position: relative;
    background: url('../img/kalikaedu-dot-com-education-online-platform_1.webp') center/cover fixed;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Subtle dark overlay */
    backdrop-filter: blur(6px);
    /* Increased blur */
    -webkit-backdrop-filter: blur(6px);
}

/* --- Final CTA Animations & Enhancements --- */
@keyframes subtleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.floating-card {
    animation: subtleFloat 9s ease-in-out infinite;
}

.btn-glow-hover {
    transition: all 0.3s ease;
}

.btn-glow-hover:hover {
    box-shadow: 0 8px 25px rgba(229, 9, 114, 0.4) !important;
}

.btn-whatsapp-hover {
    transition: all 0.3s ease;
}

.btn-whatsapp-hover:hover {
    border-color: var(--color-magenta) !important;
}

.chat-icon-slide {
    transition: transform 0.3s ease;
}

.btn-whatsapp-hover:hover .chat-icon-slide {
    transform: translateX(4px);
}

.cta-container {
    position: relative;
    padding: 4rem 2rem;
    z-index: 1;
}

/* --- Footer --- */
footer {
    background-color: var(--color-navy);
    color: var(--color-gray-200);
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-200);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--color-white);
    background-color: var(--color-magenta);
    border-color: var(--color-magenta);
    transform: translateY(-3px);
}

.footer-links a {
    display: block;
    color: var(--color-gray-200);
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}

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

.footer-contact p {
    margin-bottom: 0.75rem;
    color: var(--color-gray-200);
}

.footer-hours p {
    margin-bottom: 0.5rem;
    color: var(--color-gray-200);
}

.footer-bottom {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom a {
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--color-magenta) !important;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-fab:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
    animation: none;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

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

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

/* --- Premium Modal --- */
.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 75, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.demo-modal-container {
    background: var(--color-white);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    max-height: 90dvh; /* Better for mobile browsers */
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.demo-modal-overlay.active .demo-modal-container {
    transform: translateY(0) scale(1);
}

.demo-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-gray-50);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.modal-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-navy), var(--color-teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.demo-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}

.demo-modal-subtitle {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    margin: 0;
}

.demo-modal-close {
    background: transparent;
    border: none;
    color: var(--color-gray-500);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.demo-modal-close:hover {
    background: var(--color-gray-200);
    color: var(--color-magenta);
}

.demo-modal-body {
    padding: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
    overscroll-behavior: contain;
}

.demo-modal-body::-webkit-scrollbar {
    width: 6px;
}
.demo-modal-body::-webkit-scrollbar-track {
    background: var(--color-gray-50);
}
.demo-modal-body::-webkit-scrollbar-thumb {
    background: var(--color-gray-200);
    border-radius: 10px;
}

.form-section-title {
    color: var(--color-teal);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-gray-100);
    padding-bottom: 0.5rem;
}

/* Premium Form Styling */
.form-floating-custom {
    position: relative;
    margin-bottom: 0.5rem;
}

.premium-input {
    border: 2px solid var(--color-gray-100);
    border-radius: 12px;
    padding: 1rem 1rem 0.5rem;
    height: 60px;
    background-color: var(--color-gray-50);
    color: var(--color-navy);
    font-weight: 500;
    transition: var(--transition-normal);
    box-shadow: none;
}

.premium-input:focus {
    background-color: var(--color-white);
    border-color: var(--color-teal);
    box-shadow: 0 0 0 4px rgba(0, 135, 147, 0.1);
}

.form-floating-custom label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--color-gray-500);
    transition: all 0.2s ease-in-out;
    pointer-events: none;
    font-size: 1rem;
    margin: 0;
    transform-origin: left top;
}

/* Floating behavior */
.premium-input:focus ~ label,
.premium-input:not(:placeholder-shown) ~ label,
.form-select.premium-input ~ label {
    top: 0.5rem;
    transform: translateY(0) scale(0.75);
    color: var(--color-teal);
    font-weight: 600;
}

.form-select.premium-input {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

/* Premium Checkboxes */
.premium-checkbox {
    position: relative;
    display: inline-block;
}

.premium-checkbox input {
    display: none;
}

.premium-checkbox label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 50px;
    color: var(--color-gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.premium-checkbox input:checked + label {
    background: var(--color-teal);
    color: white;
    border-color: var(--color-teal);
    box-shadow: 0 4px 10px rgba(0, 135, 147, 0.2);
}

.premium-input.is-invalid {
    border-color: var(--color-magenta);
}

.premium-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(225, 23, 101, 0.1);
}

/* Mobile Bottom Sheet */
@media (max-width: 768px) {
    .demo-modal-overlay {
        align-items: flex-end;
    }
    
    .demo-modal-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 85vh;
        max-height: 85dvh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        display: flex;
        flex-direction: column;
    }
    
    .demo-modal-overlay.active .demo-modal-container {
        transform: translateY(0);
    }
    
    .demo-modal-header {
        padding: 1rem 1.5rem;
        flex-shrink: 0;
    }
    
    .demo-modal-body {
        padding: 1.5rem;
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Dedicated Tablet Optimizations (768px to 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .programs-grid {
        gap: 2rem 1.5rem;
    }
    .program-card {
        flex: 1 1 calc(50% - 1.5rem); /* Force 2 columns on tablet */
        max-width: calc(50% - 0.75rem);
    }
    .boards-grid {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }
    .board-card {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 1.25rem 0.5rem !important;
    }
    .board-card h3 {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }
    .board-card p {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }
    .board-logo {
        height: 32px !important;
        margin-bottom: 0.75rem !important;
    }
    .board-logo.cbse-logo, 
    .board-logo.icse-logo {
        height: 38px !important;
    }
    .board-logo.cambridge-logo {
        height: 42px !important;
    }
    .board-card .state-board-icon {
        font-size: 30px !important;
        line-height: 30px !important;
        margin-bottom: 0.75rem !important;
    }
    .special-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .process-steps {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 0.5rem !important;
    }
    .step {
        padding: 1.25rem 0.5rem !important;
    }
    .step h4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }
    .step p {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }
    .step-number {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    .demo-modal-container {
        width: 85%;
        max-width: 600px;
    }
}
