/* classes.css : styles ONLY for classes.html (load after style.css)
   Every var() has a fallback, so the page looks right even if a variable is missing in style.css */

/* ==========================================================================
   1. Classes page hero
   ========================================================================== */
.classes-banner .about-hero-copy h2,
.classes-banner .about-hero-description {
    white-space: nowrap;
    max-width: none;
}

/* ==========================================================================
   2. Classes Section
   ========================================================================== */
.classes-section {
    background: var(--background-white);
    padding: 80px 0;
}

.classes-section .section-title {
    margin-bottom: 60px;
}

/* ==========================================================================
   3. Grid and Cards
   ========================================================================== */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.class-card {
    --card-color: #6c5ce7;
    --card-tint: #ece9fd;
    background: #ffffff;
    border-radius: 22px;
    padding: 36px 32px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
    border-top: 5px solid var(--card-color);
    box-shadow: var(--shadow-sm, 0 10px 30px rgba(27, 63, 110, 0.08));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover, 0 20px 40px rgba(27, 63, 110, 0.16));
}

/* card colour themes */
.card-purple {
    --card-color: var(--navy);
    --card-tint: var(--navy-soft);
}

.card-green {
    --card-color: var(--gold-dark);
    --card-tint: var(--gold-light);
}

.card-orange {
    --card-color: var(--brown);
    --card-tint: var(--brown-light);
}

.card-pink {
    --card-color: var(--navy-light);
    --card-tint: var(--navy-soft);
}

.class-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-tint);
    color: var(--card-color);
    font-size: 34px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.class-card:hover .class-icon {
    background: var(--card-color);
    color: #ffffff;
    transform: rotate(-8deg) scale(1.08);
}

.class-content h3 {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 22px;
    color: var(--navy, #1b3f6e);
    margin-bottom: 12px;
}

.class-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted, #5f6b7a);
}

/* ==========================================================================
   4. Call To Action
   ========================================================================== */
section.cta {
    background: var(--navy, #1b3f6e);
    padding: 60px 0;
    text-align: center;
}

section.cta h2 {
    color: #ffffff;
    margin-bottom: 25px;
}

section.cta h2 span {
    color: var(--gold, #e2bd24);
}

section.cta .btn-warning {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: var(--gold, #e2bd24);
    color: var(--navy, #1b3f6e);
    border-radius: 50px;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 4px 15px rgba(226, 189, 36, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section.cta .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(226, 189, 36, 0.6);
}

/* ==========================================================================
   5. Responsive
   ========================================================================== */
@media (max-width: 767px) {
    .classes-grid {
        grid-template-columns: 1fr;
    }

    .classes-banner {
        padding: 55px 0 65px;
    }
}

@media (max-width: 519px) {
    .class-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 24px;
    }
}

/* ===== Classroom slider ===== */

.classroom-slider-section {
    background-color: var(--gray-light);
    padding: 80px 0;
}

.classroom-slider-subtitle {
    color: var(--text-muted, #5f6b7a);
    font-size: 16px;
    margin-top: -40px; /* Pull up closer to the section title */
    margin-bottom: 45px;
}

.classroom-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 8px 24px rgba(27, 63, 110, 0.1));
    aspect-ratio: 16 / 7;
    background: #e0e0e0;
}

/* Make it responsive for mobile */
@media (max-width: 768px) {
    .classroom-slider-container {
        aspect-ratio: 16 / 10;
    }
}

.classroom-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.classroom-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.65s ease;
    z-index: 1;
}

.classroom-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.classroom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.classroom-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy, #1b3f6e);
    padding: 10px 24px;
    border-radius: 50px;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateY(6px);
    opacity: 0.9;
}

.classroom-slide.active .classroom-caption {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 520px) {
    .classroom-caption {
        bottom: 35px;
        left: 15px;
        font-size: 13px;
        padding: 8px 18px;
    }
}

.classroom-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    color: var(--navy, #1b3f6e);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
    background: var(--gold, #e2bd24);
    color: #ffffff;
}

.classroom-slider-btn:hover {
    background: var(--gold, #e2bd24);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.classroom-slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.classroom-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.classroom-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.35s ease, background 0.35s ease, border-radius 0.35s ease, transform 0.2s ease;
}

.classroom-dot:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.15);
}

.classroom-dot.active {
    width: 26px;
    border-radius: 12px;
    background: var(--gold, #e2bd24);
}

/* ==========================================================================
   6. Teaching Staff Section
   ========================================================================== */
.teaching-staff-section {
    position: relative;
    background: var(--gray-light);
    padding: 80px 0;
    overflow: hidden;
}

.teaching-staff-subtitle {
    color: var(--text-muted, #5f6b7a);
    font-size: 16px;
    margin-top: -30px;
    margin-bottom: 50px;
}

.position-relative {
    position: relative;
    z-index: 2;
}

/* Background elements */
.staff-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.staff-shape.top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background: var(--gold-light);
    border-radius: 0 0 100% 0;
    opacity: 0.8;
}

.staff-shape.bottom-left-dots {
    position: absolute;
    bottom: 50px;
    left: 10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed var(--gold-dark);
    opacity: 0.6;
}

.staff-shape.right-circle {
    position: absolute;
    top: 30%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: var(--navy-soft);
    border-radius: 50%;
    opacity: 0.8;
}

/* Grid & Cards */
.teaching-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.staff-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid var(--card-color);
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.staff-photo-wrapper {
    position: relative;
    width: 130px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 20px 20px 0 0;
    border-top: 5px solid var(--card-color);
    border-left: 5px solid var(--card-color);
    border-right: 5px solid var(--card-color);
    overflow: visible;
}

.staff-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.staff-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-color);
    color: #ffffff;
    font-size: 16px;
    border: 3px solid #ffffff;
}

.staff-content h3 {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 18px;
    color: var(--navy, #1b3f6e);
    margin-bottom: 8px;
}

.staff-role {
    font-size: 13px;
    font-weight: 700;
    color: var(--card-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Themes */
.card-purple { --card-color: var(--navy); }
.card-green { --card-color: var(--gold-dark); }
.card-pink { --card-color: var(--navy-light); }
.card-navy { --card-color: var(--navy-light); }
.card-teal { --card-color: var(--gold); }
.card-orange { --card-color: var(--brown); }

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

@media (max-width: 575px) {
    .teaching-staff-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Our staff ===== */
.our-staff-section {
    position: relative;
    overflow: hidden;
    padding: 90px 0 100px;
    background: var(--background-white);
}
.our-staff-section .os-wrap { position: relative; z-index: 1; }
.our-staff-section .os-subtitle {
    text-align: center;
    color: var(--text-muted, #5f6b7a);
    font-size: 16px;
    margin: 0 0 56px;
}

/* decorative circles */
.os-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.os-deco-1 { width: 320px; height: 320px; background: var(--gold-light); opacity: 0.4; right: -110px; top: -100px; }
.os-deco-2 { width: 260px; height: 260px; background: var(--navy-soft); opacity: 0.5; left: -90px; bottom: -90px; }
.os-deco-3 { width: 120px; height: 120px; border: 3px dashed var(--gold); opacity: 0.5; right: 7%; bottom: 50px; }

/* grid */
.os-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

/* card with coloured offset frame */
.os-card {
    --os-color: #e2bd24;
    position: relative;
    padding: 0 18px 18px 0;
    transition: transform 0.35s ease;
}
.os-card::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: calc(100% - 22px);
    height: calc(100% - 22px);
    border-radius: 26px;
    background: var(--os-color);
    opacity: 0.9;
    transition: transform 0.35s ease;
}
.os-yellow { --os-color: var(--gold); }
.os-green  { --os-color: var(--navy); }
.os-card:hover { transform: translateY(-8px); }
.os-card:hover::before { transform: translate(4px, 4px); }

/* photo */
.os-photo {
    position: relative;
    aspect-ratio: 5 / 3.4;
    border: 6px solid #ffffff;
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-sm, 0 20px 44px rgba(27, 63, 110, 0.2));
}
.os-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.os-card:hover .os-photo img { transform: scale(1.05); }
.os-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(20, 50, 88, 0.78), transparent);
    pointer-events: none;
}

/* caption */
.os-caption {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}
.os-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold, #e2bd24);
    color: var(--navy, #1b3f6e);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.os-caption h3 {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}
.os-caption span { font-size: 13px; opacity: 0.88; }
.os-caption .os-icon { opacity: 1; }

/* responsive */
@media (max-width: 767px) {
    .our-staff-section { padding: 70px 0 80px; }
    .os-grid { grid-template-columns: 1fr; gap: 40px; max-width: 520px; }
    .os-caption h3 { font-size: 16px; }
}

/* ===== Reduced section spacing (keep at the end of the file) ===== */

/* classes cards section */
.classes-section.section { padding: 60px 0 40px; }
.classes-section .section-title { margin-bottom: 40px; }

/* classroom slider */
.classroom-slider-section.section { padding: 40px 0 60px; }
.classroom-slider-section .cs-subtitle { margin-bottom: 32px; }

/* call to action */
section.cta { padding: 50px 0; }

/* teaching staff (photos overlap the card top, so keep these two gaps) */
.teaching-staff-section.section { padding: 60px 0 40px; }
.teaching-staff-section .ts-subtitle { margin-bottom: 80px; }
.staff-grid { gap: 80px 34px; }

/* our staff */
.our-staff-section.section { padding: 40px 0 70px; }
.our-staff-section .os-subtitle { margin-bottom: 36px; }
.os-grid { gap: 40px; }

/* tighter gap between title underline and subtitle */
.classroom-slider-section .section-title,
.teaching-staff-section .section-title,
.our-staff-section .section-title { margin-bottom: 32px; }

/* mobile */
@media (max-width: 767px) {
    .classes-section.section { padding: 44px 0 28px; }
    .classroom-slider-section.section { padding: 28px 0 44px; }
    .teaching-staff-section.section { padding: 44px 0 28px; }
    .our-staff-section.section { padding: 28px 0 50px; }
    section.cta { padding: 40px 0; }
    .classes-section .section-title { margin-bottom: 28px; }
    .classroom-slider-section .cs-subtitle,
    .our-staff-section .os-subtitle { margin-bottom: 24px; }
}