/* ===== CURRICULUM GRADE CAROUSEL (Home Page Programs Section) ===== */

/* ── Per-grade accent color ───────────────────────────── */
.curriculum-carousel > .curriculum-card:nth-child(1),
.curriculum-carousel > div > .curriculum-card:nth-child(1) { --cc: #16a34a; }
.curriculum-carousel > .curriculum-card:nth-child(2),
.curriculum-carousel > div > .curriculum-card:nth-child(2) { --cc: #0891b2; }
.curriculum-carousel > .curriculum-card:nth-child(3),
.curriculum-carousel > div > .curriculum-card:nth-child(3) { --cc: #2563eb; }
.curriculum-carousel > .curriculum-card:nth-child(4),
.curriculum-carousel > div > .curriculum-card:nth-child(4) { --cc: #d97706; }
.curriculum-carousel > .curriculum-card:nth-child(5),
.curriculum-carousel > div > .curriculum-card:nth-child(5) { --cc: #dc2626; }
.curriculum-carousel > .curriculum-card:nth-child(6),
.curriculum-carousel > div > .curriculum-card:nth-child(6) { --cc: #7c3aed; }
.curriculum-carousel > .curriculum-card:nth-child(7),
.curriculum-carousel > div > .curriculum-card:nth-child(7) { --cc: #1D3461; }

/* ── Carousel container ── */
.curriculum-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 24px 0 8px;
    margin: 44px 0 24px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.curriculum-carousel {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 8px 0 24px;
    animation: curriculum-marquee 55s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.curriculum-carousel:hover {
    animation-play-state: paused;
}

@keyframes curriculum-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Card base ── */
.curriculum-card {
    min-width: 288px;
    max-width: 288px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(16,42,67,0.08);
    border: 1px solid #E4E4E7;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    margin: 6px 0;
}

.curriculum-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 44px rgba(16,42,67,0.14);
    border-color: rgba(30,90,168,0.22);
}

/* ── Card header ── */
.curriculum-card-header {
    padding: 20px 22px 18px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.curriculum-card-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 22px; right: 22px;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

/* ── Grade badge ── */
.curriculum-grade-badge {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.curriculum-grade-badge .grade-num {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.curriculum-grade-badge .grade-word {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 1px;
}

.curriculum-header-text { flex: 1; }

.curriculum-header-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.25;
}

.curriculum-age-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ── Card body ── */
.curriculum-card-body {
    padding: 18px 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Icon circle — tinted with per-grade color */
.curriculum-card-body .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--cc, #1E5AA8) 10%, #fff);
    color: var(--cc, #1E5AA8);
    border: 1px solid color-mix(in srgb, var(--cc, #1E5AA8) 18%, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1;
    margin-bottom: 14px;
    flex-shrink: 0;
}

/* ── Project list ── */
.curriculum-projects-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #71717A;
    margin-bottom: 10px;
}

.curriculum-projects-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    flex: 1;
}

.curriculum-projects-list li {
    font-size: 13px;
    color: #3F3F46;
    padding: 5px 0;
    border-bottom: 1px solid #F4F4F5;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

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

.curriculum-projects-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 8.5px;
    color: var(--cc, #1E5AA8);
    flex-shrink: 0;
}

/* ── "+N more" count tag ── */
.curriculum-projects-count {
    font-size: 11.5px;
    color: #71717A;
    background: #F7FAFC;
    border: 1px solid #E4E4E7;
    border-radius: 8px;
    padding: 5px 12px;
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: 0.01em;
}

/* ── Download button ── */
.curriculum-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: auto;
    letter-spacing: 0.01em;
}

.curriculum-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.24);
}

/* ── Section footer ── */
.curriculum-section-footer {
    text-align: center;
    padding: 24px 0 8px;
    border-top: 1px solid #E4E4E7;
    margin-top: 8px;
}

.curriculum-section-footer p {
    font-size: 13.5px;
    color: #71717A;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .curriculum-card { min-width: 248px; max-width: 248px; }
}

@media (max-width: 480px) {
    .curriculum-card { min-width: 228px; max-width: 228px; }
    .curriculum-carousel-container {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* ===== SKIP NAVIGATION (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: #1D3461;
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    z-index: 99999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    right: auto;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: wa-pulse 2.5s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
    color: #fff;
}
.whatsapp-float .wa-tooltip {
    position: absolute;
    left: 68px;
    right: auto;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
    50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.85); }
}

/* ===== FORM SUCCESS / ERROR STATES ===== */
.form-success-msg {
    display: none;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin-top: 16px;
}
.form-success-msg.show { display: block; }
.form-error-msg {
    display: none;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin-top: 16px;
}
.form-error-msg.show { display: block; }

/* ===== SCHOOL LOGOS MARQUEE (Our Collaboration) ===== */
.school-logos-section {
    padding: 0 0 40px;
}

/* Partner schools header */
.partner-schools-hdr {
    text-align: center;
    margin-bottom: 36px;
}

.partner-schools-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #EEF2FF;
    color: #1E5AA8;
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.partner-schools-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #102A43;
    letter-spacing: -0.025em;
    margin: 0 0 10px;
    line-height: 1.15;
}

.partner-schools-sub {
    font-size: 15px;
    color: #71717A;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.65;
}

/* kept for backwards compat */
.school-logos-label {
    display: none;
}

.school-logos-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0 12px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.school-logos-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: school-logos-marquee 30s linear infinite;
    will-change: transform;
}

.school-logos-track:hover {
    animation-play-state: paused;
}

@keyframes school-logos-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.school-logo-item {
    flex-shrink: 0;
    background: #fff;
    border-radius: 20px;
    padding: 22px 40px;
    box-shadow: 0 2px 16px rgba(16,42,67,0.07);
    border: 1px solid #E4E4E7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.school-logo-item:hover {
    box-shadow: 0 10px 32px rgba(16,42,67,0.13);
    transform: translateY(-5px);
    border-color: rgba(30,90,168,0.2);
}

.school-logo-item img {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(15%) opacity(0.85);
    transition: filter 0.25s ease;
}

.school-logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
    .school-logo-item img { height: 80px; max-width: 160px; }
    .school-logo-item { padding: 16px 28px; }
}

@media (max-width: 480px) {
    .school-logos-container {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .school-logo-item img { height: 64px; max-width: 130px; }
    .school-logo-item { padding: 14px 22px; }
}
