/* ============================================
   Growing Minds — Professional Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    /* Logo palette — Growing Minds English School */
    --orange: #FF8C00;
    --orange-dark: #E67E00;
    --orange-light: #FFF0E0;
    --lime: #AACC00;
    --lime-dark: #8FB300;
    --lime-light: #F0F8D8;
    --yellow: #FFCC00;
    --yellow-light: #FFF8DC;
    --blue: #0066CC;
    --blue-light: #E6F2FF;
    --purple: #92278F;
    --purple-light: #F5E6F4;
    --red: #ED1C24;
    --red-light: #FDE8E9;
    --green-dark: #3D6228;
    --green-darker: #2D4A22;
    /* UI neutrals (warm, logo-friendly) */
    --ink: #2D4A22;
    --ink-light: #4A6741;
    --ink-muted: #6B7A62;
    --navy: var(--green-darker);
    --navy-light: var(--green-dark);
    --slate: #5C6B52;
    --slate-light: #8A9A7E;
    --surface: #FFFCF7;
    --surface-green: #F5FAEB;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(45, 74, 34, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 74, 34, 0.1);
    --shadow-lg: 0 12px 40px rgba(45, 74, 34, 0.14);
    --shadow-orange: 0 8px 30px rgba(255, 140, 0, 0.28);
    --radius: 12px;
    --radius-lg: 20px;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Shared image frame sizes (site + admin preview) */
    --site-col-image-width: 536px;
    --carousel-image-height: clamp(340px, 52vh, 560px);
    --about-landscape-image-height: clamp(280px, 34vw, 380px);
}

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

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-orange { color: var(--orange) !important; }
.text-lime { color: var(--lime) !important; }
.text-yellow { color: var(--yellow) !important; }
.text-blue { color: var(--blue) !important; }
.text-purple { color: var(--purple) !important; }
.text-red { color: var(--red) !important; }
.text-gradient {
    background: linear-gradient(90deg, var(--lime) 0%, var(--yellow) 25%, var(--orange) 50%, var(--blue) 75%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-orange { background-color: var(--orange) !important; }
.bg-lime { background-color: var(--lime) !important; }
.bg-yellow { background-color: var(--yellow) !important; color: var(--ink) !important; }
.bg-blue { background-color: var(--blue) !important; }
.bg-purple { background-color: var(--purple) !important; }
.bg-red { background-color: var(--red) !important; }
.bg-orange-light { background-color: var(--orange-light) !important; color: var(--orange-dark) !important; }
.bg-lime-light { background-color: var(--lime-light) !important; color: var(--lime-dark) !important; }
.bg-yellow-light { background-color: var(--yellow-light) !important; color: var(--ink) !important; }
.bg-blue-light { background-color: var(--blue-light) !important; color: var(--blue) !important; }
.bg-purple-light { background-color: var(--purple-light) !important; color: var(--purple) !important; }
.border-orange { border-color: var(--orange) !important; }
.border-lime { border-color: var(--lime) !important; }
.border-blue { border-color: var(--blue) !important; }

/* ---- Top Bar ---- */
.top-bar {
    background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 100%);
    color: rgba(255,255,255,0.9);
    font-size: 0.8125rem;
    padding: 0.5rem 0;
}
.top-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s;
}
.top-bar a:hover { color: var(--lime); }
.top-bar__info i { color: var(--lime); font-size: 0.75rem; }

/* ---- Navbar (sits above banner, not inside it) ---- */
.navbar-pro {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(170, 204, 0, 0.15);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1030;
}

/* ---- Carousel / hero banner (school photos only) ---- */
#heroCarousel {
    position: relative;
    z-index: 1;
}
.navbar-brand-pro {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    margin-right: 1rem;
}
.navbar-brand-pro__logo {
    height: auto;
    width: auto;
    max-height: 80px;
    max-width: min(380px, 75vw);
    object-fit: contain;
    display: block;
}
.nav-link-pro {
    font-weight: 500 !important;
    font-size: 0.9375rem;
    color: var(--ink) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.2s;
}
.nav-link-pro:hover,
.nav-link-pro.active {
    color: var(--orange) !important;
}
.nav-link-pro.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--lime), var(--yellow));
    border-radius: 2px;
}

/* ---- Buttons ---- */
.btn-orange {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: white;
    border: none;
    font-weight: 600;
    font-family: var(--font-display);
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-orange);
}
.btn-orange:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 140, 0, 0.35);
}
.btn-orange-pro {
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
}
.btn-gradient-orange {
    background: linear-gradient(135deg, var(--orange), var(--lime));
    color: white;
    border: none;
    font-weight: 600;
    font-family: var(--font-display);
    border-radius: 8px;
    transition: all 0.25s ease;
}
.btn-gradient-orange:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}
.btn-outline-orange {
    border: 2px solid var(--orange);
    color: var(--orange);
    background: transparent;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.btn-outline-orange:hover {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

/* ---- Section Header ---- */
.section-header { max-width: 680px; }
.section-header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header--left { text-align: left; }
.section-header--light .section-header__title { color: white; }
.section-header--light .section-header__subtitle { color: rgba(255,255,255,0.75); }
.section-header--light .section-header__eyebrow { color: var(--orange); background: rgba(255,255,255,0.1); }
.section-header__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-light);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.section-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.section-header__line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--lime), var(--yellow));
    border-radius: 4px;
    margin-bottom: 1rem;
}
.section-header--center .section-header__line { margin-left: auto; margin-right: auto; }
.section-header__subtitle {
    font-size: 1.0625rem;
    color: var(--slate);
    margin: 0;
    line-height: 1.7;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero-pro {
    position: relative;
    background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 55%, var(--lime-dark) 100%);
    padding: 0.75rem 0 1.125rem;
    overflow: hidden;
}
.page-hero-pro__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
    background-size: 32px 32px;
}
.page-hero-pro__inner {
    text-align: center;
}
.page-hero-pro__breadcrumb {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.35rem;
}
.page-hero-pro__breadcrumb a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.page-hero-pro__breadcrumb a:hover { color: var(--orange); }
.page-hero-pro__breadcrumb i { font-size: 0.55rem; opacity: 0.5; }
.page-hero-pro__title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.2rem;
    line-height: 1.15;
}
.page-hero-pro__subtitle {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.75);
    margin: 0 auto;
    max-width: 480px;
    line-height: 1.4;
}

/* ---- Carousel (split layout) ---- */
#heroCarousel.carousel-split {
    position: relative;
    z-index: 1;
    background: var(--surface-green);
}
#heroCarousel.carousel-split .carousel-inner {
    background: var(--surface-green);
}
/* Smooth fade — keep Bootstrap's fade logic, only tune timing */
#heroCarousel.carousel-split.carousel-fade .carousel-item {
    transition: opacity 0.75s ease-in-out;
}
#heroCarousel.carousel-split .carousel-item {
    position: relative;
}
.carousel-split__slide {
    padding: 3rem 0 3.5rem;
}
.carousel-split__media {
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-split__image-wrap {
    width: 100%;
    height: var(--carousel-image-height);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
    background: var(--green-darker);
}
.carousel-split__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-split__image-wrap--contain {
    background: var(--surface-green);
}
.carousel-split__image-wrap--contain img {
    object-fit: contain;
}
.carousel-split__content {
    padding: 0.5rem 0;
}
.carousel-split__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-light);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.carousel-split__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.carousel-split__description {
    font-size: 1.0625rem;
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 520px;
}
.carousel-split__cta {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}
.carousel-split__indicators {
    margin-bottom: 1.25rem;
}
.carousel-split__indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--lime-dark);
    background: transparent;
    opacity: 0.5;
    transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.carousel-split__indicators .active {
    opacity: 1;
    background: var(--orange);
    border-color: var(--orange);
    transform: scale(1.15);
}
.carousel-split__control {
    width: 3rem;
    opacity: 0.9;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.carousel-split__control:hover {
    opacity: 1;
    transform: scale(1.05);
}
.carousel-split__control .carousel-control-prev-icon,
.carousel-split__control .carousel-control-next-icon {
    filter: invert(28%) sepia(12%) saturate(1200%) hue-rotate(60deg);
    width: 1.75rem;
    height: 1.75rem;
}
@media (min-width: 992px) {
    .carousel-split__content {
        padding: 1rem 0.5rem;
    }
    .carousel-split__description {
        margin-left: 0;
    }
}
@media (max-width: 991px) {
    #heroCarousel.carousel-split .carousel-inner {
        min-height: calc(clamp(280px, 45vh, 420px) + 20rem);
    }
    .carousel-split__slide {
        padding: 2rem 0 3rem;
    }
    .carousel-split__content {
        text-align: center;
    }
    .carousel-split__description {
        margin-left: auto;
        margin-right: auto;
    }
    .carousel-split__image-wrap {
        height: clamp(280px, 45vh, 420px);
    }
}

/* ---- Stats Bar ---- */
.stats-bar {
    background: white;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}
.stats-bar .container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(45, 74, 34, 0.08);
    overflow: hidden;
}
.stats-bar__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    border-right: 1px solid rgba(45, 74, 34, 0.08);
    height: 100%;
}
.stats-bar .col-lg-3:last-child .stats-bar__item { border-right: none; }
.stats-bar__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.stats-bar .col-lg-3:nth-child(1) .stats-bar__icon { background: var(--orange-light); color: var(--orange); }
.stats-bar .col-lg-3:nth-child(2) .stats-bar__icon { background: var(--lime-light); color: var(--lime-dark); }
.stats-bar .col-lg-3:nth-child(3) .stats-bar__icon { background: var(--blue-light); color: var(--blue); }
.stats-bar .col-lg-3:nth-child(4) .stats-bar__icon { background: var(--yellow-light); color: var(--orange-dark); }
.stats-bar__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
}
.stats-bar__label {
    font-size: 0.8125rem;
    color: var(--slate);
}

/* ---- Hero Section ---- */
.hero-section {
    background: var(--surface);
    position: relative;
    padding: 2.5rem 0 !important;
}
.hero-logo-full {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    display: block;
}
.hero-section .col-lg-6:first-child .hero-logo-full {
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 992px) {
    .hero-section .col-lg-6:first-child .hero-logo-full {
        margin-left: 0;
        margin-right: 0;
    }
}
.hero-description {
    max-width: 520px;
    line-height: 1.7;
}
@media (min-width: 992px) {
    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }
}
@media (max-width: 991px) {
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}
.hero-section__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
@media (min-width: 992px) {
    .hero-section__cta {
        align-items: flex-start;
    }
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at top right, var(--orange-light) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}
.hero-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--orange);
    background: white;
    border: 1px solid rgba(255, 140, 0, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}
.hero-section .display-3 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
}
.hero-section .lead.text-lime {
    color: var(--lime) !important;
    font-weight: 600;
    font-size: 1.125rem;
}

.admission-banner {
    background: linear-gradient(135deg, var(--lime-dark) 0%, var(--green-dark) 100%);
    color: white;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}
.admission-banner::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.35) 0%, transparent 70%);
    pointer-events: none;
}
.admission-banner .btn-light {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.75rem;
}
.admission-banner .btn-outline-light {
    border-radius: 8px;
    font-weight: 600;
    border-width: 2px;
}

.btn-video-play {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.75rem;
    background: white;
    border: 1px solid rgba(45, 74, 34, 0.08);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-video-play:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.btn-video-play i {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    padding-left: 2px;
    box-shadow: var(--shadow-orange);
}
.btn-video-play span {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}

/* ---- Program Cards ---- */
.programs-section {
    padding: 4rem 0 !important;
    background: white;
}
.program-card {
    background: white;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(45, 74, 34, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.program-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--lime), var(--yellow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.program-card:hover::before { transform: scaleX(1); }
.program-icon {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}
.program-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--ink);
}
.program-card .text-orange {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.program-card p:last-child {
    font-size: 0.9375rem;
    color: var(--slate);
    margin: 0;
}

/* ---- Enrollment ---- */
.enrollment-section {
    background: linear-gradient(160deg, var(--green-darker) 0%, var(--green-dark) 100%) !important;
    padding: 5rem 0 !important;
}
.enrollment-section .section-header__title { color: white; }
.enrollment-section .section-header__subtitle { color: rgba(255,255,255,0.65); }
.enrollment-section .section-header__eyebrow {
    background: rgba(170, 204, 0, 0.15);
    color: var(--lime);
}
.enrollment-step {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    height: 100%;
    transition: background 0.3s;
}
.enrollment-step:hover { background: rgba(255,255,255,0.07); }
.step-number {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: white;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-md);
}
.enrollment-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.625rem;
}
.enrollment-step p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* ---- Teachers ---- */
.teachers-section { padding: 5rem 0 !important; background: var(--surface-green); }
.teacher-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}
.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.teacher-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}
.teacher-info {
    padding: 1.25rem 1.5rem 1.5rem;
    text-align: center;
}
.teacher-info h5 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--ink);
}
.teacher-info .text-orange {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.teacher-info .small { color: var(--slate); font-size: 0.8125rem; }

/* ---- Testimonials ---- */
.testimonials-section { padding: 5rem 0 !important; }
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(45, 74, 34, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--orange-light);
    line-height: 1;
}
.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.stars i { color: var(--yellow); font-size: 0.875rem; }
.testimonial-card p.fst-italic {
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.75;
    font-style: normal !important;
    position: relative;
    z-index: 1;
}
.testimonial-card h6 { font-size: 0.9375rem; color: var(--navy); }

/* ---- Gallery ---- */
.gallery-section { padding: 5rem 0 !important; background: var(--surface); }
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all 0.35s ease;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 74, 34, 0.55) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1rem 1.1rem;
    color: white;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.gallery-item__caption strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.2rem;
}
.gallery-item__caption span {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.92;
    line-height: 1.4;
}
.gallery-item:hover .gallery-item__caption {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Gallery page ---- */
.gallery-page-section { background: var(--surface); }
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.gallery-filter-btn {
    border: 1px solid rgba(45, 74, 34, 0.15);
    background: white;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}
.gallery-filter-btn:hover,
.gallery-filter-btn.is-active {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}
.gallery-card {
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius);
}
.gallery-card__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
    background: var(--surface-green);
}
.gallery-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-card__image { transform: scale(1.06); }
.gallery-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(45, 74, 34, 0.88) 0%, rgba(45, 74, 34, 0.2) 55%, transparent 100%);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-card__overlay { opacity: 1; }
.gallery-card__badge {
    align-self: flex-start;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 140, 0, 0.95);
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}
.gallery-card__title {
    font-size: 1.0625rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}
.gallery-card__caption {
    font-size: 0.8125rem;
    margin: 0 0 0.75rem;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-card__view {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--lime-light);
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.gallery-lightbox__dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.gallery-lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gallery-lightbox__image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #111;
}
.gallery-lightbox__content {
    padding: 1.25rem 1.5rem 1.5rem;
}
.gallery-lightbox__title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.gallery-lightbox__caption {
    color: var(--slate);
    line-height: 1.6;
}

/* ---- CTA ---- */
.cta-section {
    background: linear-gradient(135deg, var(--green-darker) 0%, var(--lime-dark) 100%);
    padding: 5rem 0 !important;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom left, rgba(255, 140, 0, 0.2) 0%, rgba(170, 204, 0, 0.1) 40%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: white; font-weight: 800; }
.cta-section .lead { color: rgba(255,255,255,0.75); }
.cta-section .btn-orange {
    padding: 0.875rem 2.25rem;
    font-size: 1rem;
}

/* ---- Footer ---- */
.footer-pro__main {
    background: linear-gradient(180deg, var(--green-darker) 0%, #243D1A 100%);
    padding: 4rem 0 3rem;
    color: rgba(255,255,255,0.75);
}
.footer-pro__brand {
    margin-bottom: 1.25rem;
}
.footer-pro__logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    display: block;
}
.footer-pro__desc { font-size: 0.9375rem; line-height: 1.7; max-width: 320px; }
.footer-pro__heading {
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.footer-pro__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-pro__links li {
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
}
.footer-pro__links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-pro__links a:hover { color: var(--lime); }
.footer-pro__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-pro__contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
}
.footer-pro__contact i {
    color: var(--lime);
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
}
.footer-pro__contact a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}
.footer-pro__contact a:hover { color: var(--lime); }
.footer-pro__bottom {
    background: rgba(0,0,0,0.25);
    padding: 1.25rem 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}
.footer-pro__tag { color: rgba(255,255,255,0.4); }

/* ---- Forms ---- */
.card-header.bg-gradient-orange,
.bg-gradient-orange {
    background: linear-gradient(135deg, var(--lime-dark) 0%, var(--green-dark) 100%) !important;
}
.form-card-pro {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
}
.form-control, .form-select {
    border-radius: 8px;
    border-color: rgba(45, 74, 34, 0.12);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.18);
}

/* ---- Admission form ---- */
.admission-page-section {
    padding: 2.5rem 0 4rem;
    background: linear-gradient(180deg, #f6f8f4 0%, #fff 40%);
}
.admission-layout__sidebar {
    position: sticky;
    top: 6rem;
}
.admission-checklist {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(45, 74, 34, 0.08);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.admission-checklist__header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--lime-dark) 0%, var(--green-dark) 100%);
    color: white;
}
.admission-checklist__header h3 {
    font-size: 1.0625rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
}
.admission-checklist__header p {
    font-size: 0.8125rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}
.admission-checklist__body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.admission-checklist__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.admission-checklist__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.45;
}
.admission-checklist__list i {
    color: var(--orange);
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.admission-checklist__tip {
    font-size: 0.8125rem;
    color: var(--slate);
    background: var(--orange-light);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin: 0;
    line-height: 1.5;
}
.admission-checklist__tip strong {
    color: var(--ink);
}
.admission-checklist--modal {
    box-shadow: none;
    border: none;
    border-radius: 0;
}
.admission-help-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.admission-help-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}
.admission-help-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}
.admission-help-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}
.admission-help-modal__dialog {
    position: relative;
    width: min(100%, 440px);
    max-height: min(90vh, 640px);
    overflow: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.admission-help-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}
.admission-help-modal__close:hover {
    background: rgba(255, 255, 255, 0.32);
}
.admission-form-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(45, 74, 34, 0.08);
    overflow: hidden;
}
.admission-form-card__header {
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, var(--lime-dark) 0%, var(--green-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.admission-form-card__header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.22) 0%, transparent 70%);
    pointer-events: none;
}
.admission-form-card__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}
.admission-form-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.375rem;
}
.admission-form-card__subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.admission-form-card__body {
    padding: 1.5rem 1.75rem 2rem;
}
.admission-form-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.875rem 1rem;
    background: #f8faf6;
    border: 1px solid rgba(45, 74, 34, 0.08);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}
.admission-form-toolbar__text {
    font-size: 0.875rem;
    color: var(--slate);
    flex: 1;
    min-width: 200px;
}
.admission-form-toolbar__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.admission-form-alert {
    border-radius: 10px;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}
.admission-collapse {
    border: 1px solid rgba(45, 74, 34, 0.1);
    border-radius: 14px;
    margin-bottom: 0.875rem;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.admission-collapse.is-open {
    box-shadow: var(--shadow-sm);
}
.admission-collapse__header {
    background: #fafbf8;
    border-bottom: 1px solid transparent;
}
.admission-collapse.is-open .admission-collapse__header {
    border-bottom-color: rgba(45, 74, 34, 0.08);
}
.admission-collapse__toggle {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 1rem 1.125rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}
.admission-collapse__toggle:hover {
    background: rgba(45, 74, 34, 0.04);
}
.admission-collapse__step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: white;
    font-size: 0.8125rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.admission-collapse__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--orange-light);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.admission-collapse__text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.admission-collapse__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}
.admission-collapse__badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--slate);
    background: rgba(45, 74, 34, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
}
.admission-collapse__chevron {
    color: var(--slate-light);
    font-size: 0.875rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.admission-collapse__chevron.is-open {
    transform: rotate(180deg);
    color: var(--orange);
}
.admission-collapse__body {
    padding: 1.25rem 1.25rem 1.5rem;
}
.admission-collapse__body[hidden] {
    display: none;
}
.admission-collapse__hint {
    font-size: 0.875rem;
    color: var(--slate);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(45, 74, 34, 0.12);
}
.admission-field__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.375rem;
    display: block;
}
.admission-field__required {
    color: var(--orange);
    margin-left: 0.15rem;
}
.admission-field__input-wrap {
    position: relative;
}
.admission-field__icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-light);
    font-size: 0.875rem;
    z-index: 1;
    pointer-events: none;
}
.admission-field__input-wrap:has(textarea) .admission-field__icon {
    top: 1rem;
    transform: none;
}
.admission-field__input-wrap:has(select) .admission-field__icon {
    z-index: 2;
}
.admission-form-control {
    padding-left: 2.5rem !important;
    border-radius: 10px !important;
    border-color: rgba(45, 74, 34, 0.12) !important;
    font-size: 0.9375rem !important;
    min-height: 2.75rem;
}
.admission-form-control:focus {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15) !important;
}
textarea.admission-form-control {
    min-height: auto;
    padding-top: 0.75rem !important;
}
.admission-field__hint {
    font-size: 0.8125rem;
    color: var(--slate-light);
    margin: 0.375rem 0 0;
}
.admission-file-field__box {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border: 2px dashed rgba(45, 74, 34, 0.18);
    border-radius: 12px;
    background: #fafbf8;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin: 0;
}
.admission-file-field__box:hover {
    border-color: var(--orange);
    background: #fffaf5;
}
.admission-file-field__box.has-file {
    border-style: solid;
    border-color: rgba(45, 74, 34, 0.2);
    background: white;
}
.admission-file-field__input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.admission-file-field__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--orange-light);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}
.admission-file-field__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.admission-file-field__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admission-file-field__meta {
    font-size: 0.75rem;
    color: var(--slate-light);
}
.admission-file-field__action {
    color: var(--slate-light);
    font-size: 1.125rem;
    flex-shrink: 0;
}
.admission-form-submit {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(45, 74, 34, 0.08);
}
.admission-form-submit__note {
    font-size: 0.8125rem;
    color: var(--slate-light);
    margin: 0.875rem 0 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 991px) {
    .admission-layout__sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
}
@media (max-width: 767px) {
    .admission-form-card__header,
    .admission-form-card__body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .admission-form-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .admission-form-toolbar__actions {
        justify-content: stretch;
    }
    .admission-form-toolbar__actions .btn {
        flex: 1;
    }
    .admission-collapse__toggle {
        padding: 0.875rem 1rem;
        gap: 0.625rem;
    }
    .admission-collapse__icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

/* ---- News cards ---- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    border: 1px solid rgba(45, 74, 34, 0.08) !important;
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}

/* ---- Video ---- */
.video-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    border: 1px solid rgba(45, 74, 34, 0.08);
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.video-card img { height: 200px; object-fit: cover; width: 100%; }
.video-thumb-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    box-shadow: var(--shadow-orange);
    transition: transform 0.2s;
}
.video-card:hover .video-thumb-play { transform: translate(-50%, -50%) scale(1.1); }

/* ---- About / Contact cards ---- */
.icon-circle {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-circle-large {
    width: 80px; height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.contact-card-pro {
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(45, 74, 34, 0.08) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s ease;
    height: 100%;
}
.contact-card-pro:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-3px);
}
.value-card-pro {
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(45, 74, 34, 0.08);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.3s ease;
}
.value-card-pro:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* ---- Content image frames (consistent sizing for uploads) ---- */
.content-image-frame {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
    background: var(--surface-green);
}
.content-image-frame--landscape {
    height: var(--about-landscape-image-height);
    width: 100%;
}
.content-image-frame--portrait {
    height: clamp(320px, 40vw, 420px);
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 992px) {
    .content-image-frame--portrait {
        max-width: none;
        margin: 0;
    }
}
.content-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.content-image-frame--contain {
    background: var(--surface-green);
}
.content-image-frame--contain img {
    object-fit: contain;
}
.about-intro-section__text,
.about-approach-section .col-lg-6.order-lg-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---- Admin image crop editor (uses same boxes as the live site) ---- */
.image-crop-editor__label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.5rem;
}
.image-crop-editor__viewport {
    width: min(100%, var(--site-col-image-width));
}
.image-crop-editor__target {
    position: relative;
    cursor: crosshair;
}
.image-crop-editor__marker {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.contact-quick-actions {
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
    padding: 0 1rem;
    margin-bottom: 1rem;
}
.contact-quick-actions__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(45, 74, 34, 0.08);
    padding: 1.25rem;
}
.contact-quick-action {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.contact-quick-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.contact-quick-action__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: white;
}
.contact-quick-action__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.contact-quick-action__text strong {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink);
}
.contact-quick-action__text span:last-child {
    font-size: 0.75rem;
    color: var(--slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-quick-action--orange { background: var(--orange-light); }
.contact-quick-action--orange:hover { border-color: var(--orange); }
.contact-quick-action--orange .contact-quick-action__icon { background: var(--orange); }
.contact-quick-action--lime { background: var(--lime-light); }
.contact-quick-action--lime:hover { border-color: var(--lime); }
.contact-quick-action--lime .contact-quick-action__icon { background: var(--lime-dark); }
.contact-quick-action--blue { background: var(--blue-light); }
.contact-quick-action--blue:hover { border-color: var(--blue); }
.contact-quick-action--blue .contact-quick-action__icon { background: var(--blue); }
.contact-quick-action--purple { background: var(--purple-light); }
.contact-quick-action--purple:hover { border-color: var(--purple); }
.contact-quick-action--purple .contact-quick-action__icon { background: var(--purple); }

.contact-main-section {
    padding: 3rem 0 4rem;
    background: var(--surface-green);
}
.contact-welcome-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}
.contact-info-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(45, 74, 34, 0.08);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.contact-info-card--orange::before { background: var(--orange); }
.contact-info-card--lime::before { background: var(--lime); }
.contact-info-card--blue::before { background: var(--blue); }
.contact-info-card--purple::before { background: var(--purple); }
.contact-info-card--yellow::before { background: var(--yellow); }
.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.contact-info-card--wide {
    grid-column: 1 / -1;
}
.contact-info-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
}
.contact-info-card--orange .contact-info-card__icon { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.contact-info-card--lime .contact-info-card__icon { background: linear-gradient(135deg, var(--lime), var(--lime-dark)); }
.contact-info-card--blue .contact-info-card__icon { background: linear-gradient(135deg, var(--blue), #005299); }
.contact-info-card--purple .contact-info-card__icon { background: linear-gradient(135deg, var(--purple), #6B1F68); }
.contact-info-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.375rem;
}
.contact-info-card__content {
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.6;
}
.contact-info-card__content p {
    margin: 0;
}
.contact-info-card__link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.2s;
}
.contact-info-card__link--dark {
    color: var(--ink);
    font-size: 0.9375rem;
    margin-top: 0;
    word-break: break-word;
}
.contact-info-card__link:hover { color: var(--lime-dark); }
.contact-info-card__hint {
    display: block;
    font-size: 0.75rem;
    color: var(--slate-light);
    margin-top: 0.25rem;
}

.contact-visit-banner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 100%);
    border-radius: var(--radius-lg);
    color: white;
}
.contact-visit-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(170, 204, 0, 0.2);
    color: var(--lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.contact-visit-banner__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}
.contact-visit-banner__text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.875rem;
    line-height: 1.6;
}

.contact-form-panel {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(45, 74, 34, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.contact-form-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, var(--lime-dark) 0%, var(--green-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.contact-form-panel__header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.contact-form-panel__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}
.contact-form-panel__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.375rem;
}
.contact-form-panel__subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 360px;
}
.contact-form-panel__decoration {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}
.contact-form-panel__body {
    padding: 2rem;
    flex: 1;
}

.contact-form-field__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.375rem;
    display: block;
}
.contact-form-field__input-wrap {
    position: relative;
}
.contact-form-field__icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-light);
    font-size: 0.875rem;
    z-index: 1;
    pointer-events: none;
}
.contact-form-field__input-wrap:has(textarea) .contact-form-field__icon {
    top: 1rem;
    transform: none;
}
.contact-form-control {
    padding-left: 2.5rem !important;
    border-radius: 10px !important;
    border-color: rgba(45, 74, 34, 0.12) !important;
    font-size: 0.9375rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.contact-form-control:focus {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15) !important;
}
.contact-form-control::placeholder {
    color: var(--slate-light);
    font-size: 0.875rem;
}
.contact-form-submit {
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
}
.contact-form-alert {
    border-radius: 10px;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.contact-map-section {
    padding: 4rem 0 5rem;
    background: white;
}
.contact-map-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(45, 74, 34, 0.08);
    height: 450px;
}
.contact-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
}
.contact-map-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    pointer-events: none;
}
.contact-map-overlay__card {
    pointer-events: auto;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
    border-left: 4px solid var(--orange);
}
.contact-map-overlay__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--orange-light);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-map-overlay__card strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--ink);
    margin-bottom: 0.25rem;
}
.contact-map-overlay__card p {
    font-size: 0.8125rem;
    color: var(--slate);
    margin-bottom: 0.75rem;
}

@media (max-width: 991px) {
    .contact-quick-actions__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-form-panel__decoration { display: none; }
}
@media (max-width: 767px) {
    .contact-quick-actions__grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .contact-quick-action__text span:last-child {
        white-space: normal;
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-card--wide {
        grid-column: auto;
    }
    .contact-form-panel__header,
    .contact-form-panel__body {
        padding: 1.5rem;
    }
    .contact-map-overlay {
        position: static;
        padding: 1rem;
        background: var(--surface-green);
    }
    .contact-map-overlay__card {
        max-width: none;
    }
    .contact-map-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .contact-map-wrapper iframe {
        height: 320px;
    }
}

.page-hero { padding: 4rem 0; }
.bg-light { background: var(--surface) !important; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .stats-bar__item { border-right: none; border-bottom: 1px solid rgba(45, 74, 34, 0.08); }
    .stats-bar .col-lg-3:last-child .stats-bar__item { border-bottom: none; }
    .navbar-brand-pro__logo { max-height: 64px; max-width: min(280px, 68vw); }
}
@media (max-width: 768px) {
    .navbar-brand-pro__logo { max-height: 56px; max-width: min(240px, 75vw); }
    .carousel-split__slide { padding: 1.75rem 0 2.5rem; }
    .carousel-split__image-wrap { height: clamp(260px, 42vh, 380px); }
    .hero-section { padding: 2rem 0 !important; }
    .admission-banner { padding: 1.75rem 1.25rem; }
    .btn-video-play { padding: 0.75rem 1.25rem; }
    .btn-video-play i { width: 2.5rem; height: 2.5rem; }
    .page-hero-pro { padding: 0.65rem 0 1rem; }
}

/* ── PWA / Student portal ── */
.pwa-install-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 0.75rem;
    pointer-events: none;
}
.pwa-install-banner__inner {
    pointer-events: auto;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--green-darker), var(--green-dark));
    color: white;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.pwa-install-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
}
.pwa-install-banner__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.3;
}
.pwa-install-banner__text strong { font-size: 0.9rem; }
.pwa-install-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex-shrink: 0;
}

.offline-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--surface-green);
}
.offline-page__card {
    text-align: center;
    max-width: 360px;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.offline-page__icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 1rem;
}

/* ─── Student portal (mobile-first app) ─── */
.student-portal {
    background: linear-gradient(165deg, var(--surface-green) 0%, #f8faf6 45%, var(--white) 100%);
    min-height: 100vh;
    min-height: 100dvh;
}
.student-portal:has(.student-app) .student-portal__header--public {
    display: none;
}
.student-install-banner {
    background: #fff7ed;
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    color: var(--green-darker);
}
.student-install-banner .container {
    max-width: 480px;
    margin: 0 auto;
}
.student-portal__main {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.student-portal__header {
    background: white;
    border-bottom: 1px solid rgba(45, 74, 34, 0.08);
    box-shadow: 0 2px 12px rgba(45, 74, 34, 0.05);
    flex-shrink: 0;
}
.student-portal__header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    width: 100%;
}
.student-portal__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.student-portal__logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.student-portal__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.student-portal__brand-name {
    font-weight: 800;
    font-size: 0.9375rem;
    color: var(--green-darker);
}
.student-portal__brand-sub {
    font-size: 0.75rem;
    color: var(--ink-muted);
    font-weight: 600;
}
.student-portal__help-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--green-darker);
    font-weight: 700;
    font-size: 0.8125rem;
    background: var(--surface-green);
    border: 1px solid rgba(45, 74, 34, 0.1);
    flex-shrink: 0;
}
.student-portal__help-btn:hover {
    color: var(--orange-dark);
    background: var(--orange-light);
}

/* Shared school brand block */
.student-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.student-brand--centered {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
}
.student-brand__logo {
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(45, 74, 34, 0.15);
}
.student-brand--sm .student-brand__logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.student-brand--md .student-brand__logo {
    width: 52px;
    height: 52px;
}
.student-brand--lg .student-brand__logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}
.student-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.student-brand__name {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--green-darker);
    letter-spacing: -0.02em;
}
.student-brand--sm .student-brand__name {
    font-size: 0.9375rem;
}
.student-brand--md .student-brand__name {
    font-size: 1.125rem;
}
.student-brand--lg .student-brand__name {
    font-size: 1.35rem;
}
.student-brand__tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-muted);
}
.student-brand--lg .student-brand__tagline {
    font-size: 0.8125rem;
}
.student-brand--light .student-brand__name,
.student-brand--light .student-brand__tagline {
    color: white;
}
.student-brand--light .student-brand__tagline {
    opacity: 0.85;
}
.student-brand--light .student-brand__logo {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.student-brand--centered .student-brand__text {
    align-items: center;
}

/* Login */
.student-login-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem 2rem;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}
.student-login-page__banner {
    width: 100%;
    height: 88px;
    background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 55%, var(--lime-dark) 100%);
    border-radius: 0 0 24px 24px;
    margin-bottom: -2.5rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.student-login-page__banner-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
    background-size: 28px 28px;
}
.student-login-page__banner-rainbow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--lime) 0%,
        var(--yellow) 25%,
        var(--orange) 50%,
        var(--blue) 75%,
        var(--purple) 100%
    );
}
.student-login-page--loading {
    flex-direction: column;
    gap: 0.75rem;
}
.student-login-page__loading-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
}
.student-login-card {
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 12px 40px rgba(45, 74, 34, 0.1);
    border: 1px solid rgba(45, 74, 34, 0.08);
    position: relative;
    z-index: 1;
}
.student-login-card__head {
    text-align: center;
    margin-bottom: 1.25rem;
}
.student-login-card__head .student-brand {
    margin-bottom: 0.85rem;
}
.student-login-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green-darker);
}
.student-login-card__subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
}
.student-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.8125rem;
    line-height: 1.45;
}
.student-login-alert i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}
.student-field {
    margin-bottom: 1rem;
}
.student-field__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--green-darker);
    margin-bottom: 0.35rem;
}
.student-field__input {
    min-height: 48px;
    border-radius: 12px;
    border-color: rgba(45, 74, 34, 0.15);
    font-size: 1rem;
}
.student-field__input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}
.student-password-field {
    position: relative;
}
.student-password-field .form-control {
    padding-right: 3rem;
    width: 100%;
}
.student-password-field__toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--ink-muted);
    padding: 0.4rem 0.5rem;
    line-height: 1;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.student-password-field__toggle:hover {
    color: var(--orange);
}
.student-login-card__submit {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 0.25rem;
}
.student-login-card__footnote,
.student-login-card__help {
    text-align: center;
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin: 0.85rem 0 0;
    line-height: 1.5;
}
.student-saved-account {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.15rem;
    background: var(--surface-green);
    border: 1px solid rgba(45, 74, 34, 0.1);
    border-radius: 14px;
}
.student-saved-account__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--lime-light) 100%);
    color: var(--green-darker);
    font-weight: 800;
    font-size: 1.125rem;
}
.student-saved-account__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.student-saved-account__body strong {
    font-size: 0.9375rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.student-saved-account__body span {
    font-size: 0.7rem;
    color: var(--slate);
    line-height: 1.35;
}
.student-saved-account__switch {
    border: none;
    background: white;
    color: var(--orange-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* Signed-in app shell */
.student-app {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}
.student-app__header {
    flex-shrink: 0;
}
.student-app__header-bg {
    position: relative;
    background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 55%, var(--lime-dark) 100%);
    overflow: hidden;
}
.student-app__header-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}
.student-app__header-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem 0.5rem;
}
.student-app__rainbow {
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--lime) 0%,
        var(--yellow) 25%,
        var(--orange) 50%,
        var(--blue) 75%,
        var(--purple) 100%
    );
}
.student-app__welcome {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem 1rem;
}
.student-app__user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.student-app__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--green-darker);
    background: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.student-app__user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
.student-app__greeting {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.student-app__meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}
.student-app__logout {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.student-app__logout:hover {
    background: rgba(255, 255, 255, 0.28);
}
.student-app__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

/* New-update reminder banner */
.student-reminder-banner {
    margin: 0.75rem 1rem 0;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #fff8eb 0%, #fff 100%);
    border: 1px solid rgba(255, 140, 0, 0.25);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.12);
}
.student-reminder-banner__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
.student-reminder-banner__head > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.student-reminder-banner__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--orange);
    color: white;
    font-size: 0.6875rem;
    font-weight: 800;
}
.student-reminder-banner__title {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--green-darker);
}
.student-reminder-banner__close {
    border: none;
    background: transparent;
    color: var(--ink-muted);
    padding: 0.35rem;
    cursor: pointer;
    line-height: 1;
}
.student-reminder-banner__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.student-reminder-banner__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: start;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.student-reminder-banner__item:hover {
    background: rgba(255, 140, 0, 0.08);
}
.student-reminder-banner__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.student-reminder-banner__icon--homework { background: var(--lime-light); color: var(--lime-dark); }
.student-reminder-banner__icon--message { background: var(--orange-light); color: var(--orange-dark); }
.student-reminder-banner__icon--fees { background: var(--purple-light); color: var(--purple); }
.student-reminder-banner__icon--holiday { background: var(--yellow-light); color: var(--orange-dark); }
.student-reminder-banner__icon--reminder { background: var(--blue-light); color: var(--blue); }
.student-reminder-banner__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.student-reminder-banner__kind {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--orange-dark);
}
.student-reminder-banner__text strong {
    font-size: 0.8125rem;
    color: var(--green-darker);
    line-height: 1.3;
}
.student-reminder-banner__sub {
    font-size: 0.6875rem;
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.student-reminder-banner__time {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--ink-muted);
    white-space: nowrap;
    padding-top: 0.15rem;
}
.student-reminder-banner__more {
    font-size: 0.6875rem;
    color: var(--ink-muted);
    margin-top: 0.5rem;
    text-align: center;
}

.student-bottom-nav__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.student-bottom-nav__badge {
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--red);
    color: white;
    font-size: 0.5rem;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    border: 1.5px solid white;
}

.student-page {
    padding: 1rem 1rem 1.25rem;
}
.student-page-header {
    margin-bottom: 1.15rem;
}
.student-page-header__title {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green-darker);
    padding-left: 0.65rem;
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--orange), var(--lime)) 1;
}
.student-page-header__subtitle {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ink-muted);
    line-height: 1.45;
}

.student-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.student-quick-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem;
    min-height: 108px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: white;
    border: 1px solid rgba(45, 74, 34, 0.08);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.student-quick-card:active {
    transform: scale(0.98);
}
.student-quick-card--muted {
    background: var(--surface-green);
    cursor: default;
}
.student-quick-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}
.student-quick-card--orange .student-quick-card__icon {
    background: var(--orange-light);
    color: var(--orange-dark);
}
.student-quick-card--lime .student-quick-card__icon {
    background: var(--lime-light);
    color: var(--lime-dark);
}
.student-quick-card--blue .student-quick-card__icon {
    background: var(--blue-light);
    color: var(--blue);
}
.student-quick-card--purple .student-quick-card__icon {
    background: var(--purple-light);
    color: var(--purple);
}
.student-quick-card--yellow .student-quick-card__icon {
    background: var(--yellow-light);
    color: var(--orange-dark);
}
.student-quick-card--muted .student-quick-card__icon {
    background: white;
    color: var(--green-darker);
}
.student-quick-card__label {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--green-darker);
}
.student-quick-card__hint {
    font-size: 0.75rem;
    color: var(--ink-muted);
    line-height: 1.35;
}
.student-tip-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: white;
    border: 1px solid rgba(45, 74, 34, 0.08);
    font-size: 0.8125rem;
    color: var(--ink-muted);
    line-height: 1.5;
}
.student-tip-card__icon {
    color: var(--orange);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.student-profile-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.student-profile-grid__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(45, 74, 34, 0.08);
    box-shadow: var(--shadow-sm);
}
.student-profile-grid__label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
}
.student-profile-grid__value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--green-darker);
    word-break: break-word;
}
.student-profile-grid__value a {
    color: var(--orange-dark);
    text-decoration: none;
}
.student-profile-grid__value a:hover {
    text-decoration: underline;
}

.student-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 480px;
    z-index: 100;
    background: white;
    border-top: 1px solid rgba(45, 74, 34, 0.1);
    box-shadow: 0 -4px 24px rgba(45, 74, 34, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.student-bottom-nav__rainbow {
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--lime) 0%,
        var(--yellow) 25%,
        var(--orange) 50%,
        var(--blue) 75%,
        var(--purple) 100%
    );
}
.student-bottom-nav__inner {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}
.student-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.45rem 0.1rem 0.4rem;
    min-height: 52px;
    text-decoration: none;
    color: var(--ink-muted);
    font-size: 0.5rem;
    font-weight: 700;
    text-align: center;
    border: none;
    background: transparent;
    transition: color 0.15s ease, background 0.15s ease;
}
.student-bottom-nav__item i {
    font-size: 0.9375rem;
}
.student-bottom-nav__item--active {
    color: var(--orange-dark);
    background: var(--orange-light);
}
.student-bottom-nav__item:not(.student-bottom-nav__item--active):hover {
    color: var(--green-darker);
    background: var(--surface-green);
}

.portal-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.portal-feed-card {
    background: white;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(45, 74, 34, 0.08);
    border-top: 3px solid var(--orange);
}
.portal-feed-card__head {
    margin-bottom: 0.5rem;
}
.portal-feed-card__head .h5 {
    font-size: 1rem;
    margin-bottom: 0.35rem !important;
    color: var(--green-darker);
}
.portal-feed-card__due {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--orange-dark);
}
.portal-feed-card__tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--orange-light);
    color: var(--orange-dark);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}
.portal-feed-card__tag--ind {
    background: var(--blue-light);
    color: var(--blue);
}
.portal-feed-card__body {
    color: var(--ink-muted);
    margin-bottom: 0;
    white-space: pre-wrap;
    line-height: 1.6;
}
.portal-attachments {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.portal-attachment-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: var(--surface-green);
    border-radius: 12px;
    text-decoration: none;
    color: var(--green-darker);
    font-weight: 600;
    font-size: 0.8125rem;
    word-break: break-word;
}
.portal-attachment-link:hover {
    background: var(--lime-light);
    color: var(--green-darker);
}
.portal-attachment-link .fa-file-pdf { color: var(--red); }
.portal-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    background: white;
    border-radius: 16px;
    border: 1px dashed rgba(45, 74, 34, 0.15);
}
.portal-empty__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Student fees & account */
.student-fees-section {
    margin-bottom: 1.25rem;
}
.student-fees-section__title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--green-darker);
    margin: 0 0 0.65rem;
}
.student-fee-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.student-fee-summary-card {
    background: white;
    border-radius: 14px;
    padding: 0.85rem 0.65rem;
    border: 1px solid rgba(45, 74, 34, 0.08);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
}
.student-fee-summary-card--paid {
    border-top: 3px solid var(--lime);
}
.student-fee-summary-card--balance {
    border-top: 3px solid var(--orange);
}
.student-fee-summary-card__label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.student-fee-summary-card__value {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--green-darker);
    line-height: 1.2;
}
.student-fee-summary-card__hint {
    font-size: 0.625rem;
    color: var(--ink-muted);
}
.student-fee-status {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    margin-top: 0.15rem;
}
.student-fee-status--paid {
    background: var(--lime-light);
    color: var(--lime-dark);
}
.student-fee-status--partial {
    background: var(--orange-light);
    color: var(--orange-dark);
}
.student-fee-status--overdue {
    background: var(--red-light);
    color: var(--red);
}
.student-fee-status--pending {
    background: var(--surface-green);
    color: var(--green-darker);
}
.student-fee-collapsible {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(45, 74, 34, 0.08);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.student-fee-collapsible--open {
    border-top: 3px solid var(--orange);
}
.student-fee-collapsible--paid.student-fee-collapsible--open {
    border-top-color: var(--lime);
}
.student-fee-collapsible__trigger {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}
.student-fee-collapsible__trigger-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.student-fee-collapsible__label {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--green-darker);
}
.student-fee-collapsible__hint {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink-muted);
}
.student-fee-collapsible__total {
    font-size: 1rem;
    font-weight: 800;
    color: var(--green-darker);
    white-space: nowrap;
}
.student-fee-collapsible__chevron {
    font-size: 0.75rem;
    color: var(--ink-muted);
    transition: transform 0.2s ease;
}
.student-fee-collapsible__chevron--open {
    transform: rotate(180deg);
}
.student-fee-collapsible__panel {
    padding: 0 0.65rem 0.65rem;
    border-top: 1px solid rgba(45, 74, 34, 0.06);
}
.student-fee-list--nested {
    padding-top: 0.5rem;
}
.student-fee-list--nested .student-fee-list__item {
    box-shadow: none;
    background: var(--surface-green);
    border-color: rgba(45, 74, 34, 0.06);
}
.student-fee-collapsible__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.35rem 0.25rem;
    margin-top: 0.25rem;
    border-top: 1px dashed rgba(45, 74, 34, 0.12);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--green-darker);
}
.student-fee-collapsible__footer strong {
    font-size: 0.9375rem;
}
.student-fee-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.student-fee-list__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(45, 74, 34, 0.08);
    box-shadow: var(--shadow-sm);
}
.student-fee-list__main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.student-fee-list__main strong {
    font-size: 0.9375rem;
    color: var(--green-darker);
}
.student-fee-list__category {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink-muted);
}
.student-fee-list__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    text-align: right;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--ink-muted);
}
.student-fee-list__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}
.student-fee-list__receipt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 140, 0, 0.35);
    border-radius: 999px;
    background: var(--orange-light);
    color: var(--orange-dark, #c46800);
    font-size: 0.6875rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.student-fee-list__receipt-btn:hover {
    background: #ffe8cc;
    border-color: rgba(255, 140, 0, 0.55);
}
.student-fee-list__receipt-btn i {
    font-size: 0.75rem;
}
.student-fee-list__amount {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--green-darker);
}
.student-fee-list__due,
.student-fee-list__ref {
    font-size: 0.6875rem;
}
.student-fees-footnote {
    font-size: 0.75rem;
    color: var(--ink-muted);
    text-align: center;
    margin: 0.5rem 0 0;
    line-height: 1.5;
}
.student-fee-actions .btn {
    border-radius: 12px;
    font-weight: 700;
}
.student-push-prompt {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.65rem;
    margin: 0.75rem 1rem 0;
    padding: 0.75rem 0.85rem;
    background: white;
    border: 1px solid rgba(45, 74, 34, 0.1);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--blue);
}
.student-push-prompt__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: var(--blue-light);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.student-push-prompt__body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.student-push-prompt__body strong {
    font-size: 0.8125rem;
    color: var(--green-darker);
}
.student-push-prompt__body > span:not(.student-push-prompt__error) {
    font-size: 0.6875rem;
    color: var(--ink-muted);
    line-height: 1.35;
}
.student-push-prompt__error {
    font-size: 0.6875rem;
    color: var(--red);
}
.student-push-prompt__dismiss {
    border: none;
    background: transparent;
    color: var(--ink-muted);
    padding: 0.25rem;
    cursor: pointer;
}

/* School calendar & reminders */
.student-cal-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(45, 74, 34, 0.08);
}
.student-cal-tabs__btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0.35rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-muted);
    cursor: pointer;
}
.student-cal-tabs__btn--active {
    background: var(--orange-light);
    color: var(--orange-dark);
}
.student-cal-section {
    margin-bottom: 1.25rem;
}
.student-cal-section__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--green-darker);
    margin: 0 0 0.75rem;
}
.student-cal-month-block {
    margin-bottom: 1rem;
}
.student-cal-month-block__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
}
.student-cal-grid {
    background: white;
    border-radius: 14px;
    padding: 0.75rem;
    border: 1px solid rgba(45, 74, 34, 0.08);
    margin-bottom: 0.75rem;
}
.student-cal-grid__weekdays,
.student-cal-grid__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
    text-align: center;
}
.student-cal-grid__weekdays {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--ink-muted);
    margin-bottom: 0.35rem;
}
.student-cal-grid__day {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0;
    border-radius: 8px;
    color: var(--green-darker);
}
.student-cal-grid__day--empty {
    visibility: hidden;
}
.student-cal-grid__day--holiday {
    background: var(--orange-light);
    color: var(--orange-dark);
    font-weight: 800;
}
.student-cal-grid__day--today {
    box-shadow: inset 0 0 0 2px var(--orange);
}
.student-cal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.student-cal-list__item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(45, 74, 34, 0.08);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--lime);
}
.student-cal-list__item--half_day { border-left-color: var(--yellow); }
.student-cal-list__item--ptm { border-left-color: var(--blue); }
.student-cal-list__item--event { border-left-color: var(--purple); }
.student-cal-list__item--rem-fees { border-left-color: var(--purple); }
.student-cal-list__item--rem-homework { border-left-color: var(--lime); }
.student-cal-list__item--rem-ptm { border-left-color: var(--blue); }
.student-cal-list__item--rem-general { border-left-color: var(--orange); }
.student-cal-list__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    text-align: center;
    flex-shrink: 0;
}
.student-cal-list__date-day {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--green-darker);
    line-height: 1;
}
.student-cal-list__date-mon {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
}
.student-cal-list__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9375rem;
}
.student-cal-list__icon--fees { background: var(--purple-light); color: var(--purple); }
.student-cal-list__icon--homework { background: var(--lime-light); color: var(--lime-dark); }
.student-cal-list__icon--ptm { background: var(--blue-light); color: var(--blue); }
.student-cal-list__icon--general { background: var(--orange-light); color: var(--orange-dark); }
.student-cal-list__body {
    min-width: 0;
    flex: 1;
}
.student-cal-list__body strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--green-darker);
    margin-bottom: 0.15rem;
}
.student-cal-list__meta {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink-muted);
}
.student-cal-list__desc {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    margin: 0.35rem 0 0;
    line-height: 1.45;
}
.student-upcoming-cal {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(45, 74, 34, 0.08);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--yellow);
}
.student-upcoming-cal__title {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--green-darker);
    margin: 0 0 0.65rem;
}
.student-upcoming-cal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.student-upcoming-cal__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 0.5rem;
    align-items: start;
    font-size: 0.8125rem;
}
.student-upcoming-cal__date {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--orange-dark);
    line-height: 1.3;
}
.student-upcoming-cal__item strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--green-darker);
}
.student-upcoming-cal__sub {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.portal-student-pick {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}
.portal-student-pick__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin: 0;
    cursor: pointer;
}

.pwa-install-banner__actions--row {
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
}
.pwa-install-banner__inner--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.pwa-install-banner__top {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.pwa-install-banner__close-x {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.25rem;
    margin-left: auto;
    flex-shrink: 0;
}
.pwa-install-banner__warn {
    color: #ffe082;
    margin: 0;
}
.pwa-ios-steps {
    padding-left: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.875rem;
    line-height: 1.5;
}
.pwa-ios-steps li + li { margin-top: 0.35rem; }
.pwa-ios-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 800;
    font-size: 0.75rem;
}

.install-ios-panel {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--blue-light);
}
.install-ios-panel__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--blue);
    background: var(--blue-light);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}
.install-ios-panel__steps {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.install-ios-panel__steps li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.install-ios-panel__step-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--orange-light);
    color: var(--orange-dark);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.install-ios-panel__step-icon--share {
    background: var(--blue-light);
    color: var(--blue);
    font-size: 1rem;
}

.student-portal-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-green);
}

.install-app-guide__card,
.install-app-guide--ready {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(45, 74, 34, 0.08);
}
.install-app-guide__icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
}
.install-app-guide__note {
    background: var(--orange-light);
    color: var(--orange-dark);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.85rem;
}
.install-app-guide__steps {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(45, 74, 34, 0.08);
}
.install-app-step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(45, 74, 34, 0.08);
}
.install-app-step:last-child { border-bottom: none; padding-bottom: 0; }
.install-app-step__num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--orange-light);
    color: var(--orange-dark);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.install-app-guide__public {
    padding: 1rem 1.1rem;
    background: var(--surface-green);
    border-radius: var(--radius-md);
}

@media (display-mode: standalone) {
    body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ── Student activities showcase ── */
.activities-section {
    padding: 5rem 0 !important;
    background: linear-gradient(180deg, var(--white) 0%, var(--surface-green) 100%);
}
.activities-page-section { background: var(--surface); }

.activity-preview-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.activity-preview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-light);
}
.activity-preview-card__image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.activity-preview-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.activity-preview-card:hover .activity-preview-card__image { transform: scale(1.06); }
.activity-preview-card__emoji {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 2rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}
.activity-preview-card__body { padding: 1.35rem 1.5rem 1.5rem; }
.activity-preview-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--orange);
    background: var(--orange-light);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}
.activity-preview-card__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.activity-preview-card__desc {
    color: var(--ink-muted);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.activity-preview-card__date {
    font-size: 0.875rem;
    color: var(--lime-dark);
    font-weight: 600;
}

.activity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}
.activity-filter-btn {
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.activity-filter-btn:hover,
.activity-filter-btn.is-active {
    border-color: var(--orange);
    background: var(--orange-light);
    color: var(--orange-dark);
}

.activity-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.activity-card__image-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
}
.activity-card__image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 58, 42, 0.55) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.activity-card:hover .activity-card__image-wrap::after { opacity: 1; }
.activity-card__image-wrap::before {
    content: "Tap to explore";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 1;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--green-dark);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}
.activity-card:hover .activity-card__image-wrap::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.activity-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.activity-card:hover .activity-card__image { transform: scale(1.05); }
.activity-card__emoji {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    font-size: 2.25rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}
.activity-card__body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.activity-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
.activity-card__badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-muted);
}
.activity-card__date {
    font-size: 0.78rem;
    color: var(--ink-muted);
    font-weight: 600;
}
.activity-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}
.activity-card__desc {
    color: var(--ink-muted);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.activity-card__view {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-top: auto;
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange) 0%, #d94e1a 100%);
    color: white;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(232, 93, 38, 0.38);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.activity-card__view-icon {
    font-size: 0.875rem;
    opacity: 0.95;
}
.activity-card__view-arrow {
    font-size: 0.75rem;
    transition: transform 0.22s ease;
}
.activity-card:hover .activity-card__view {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(232, 93, 38, 0.48);
    background: linear-gradient(135deg, #f06830 0%, var(--orange-dark) 100%);
}
.activity-card:hover .activity-card__view-arrow { transform: translateX(4px); }
.activity-card--orange:hover .activity-card__view { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); }
.activity-card--lime:hover .activity-card__view { background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dark) 100%); box-shadow: 0 8px 22px rgba(124, 179, 66, 0.45); }
.activity-card--purple:hover .activity-card__view { background: linear-gradient(135deg, var(--purple) 0%, #6B1F68 100%); box-shadow: 0 8px 22px rgba(142, 36, 170, 0.4); }
.activity-card--blue:hover .activity-card__view { background: linear-gradient(135deg, var(--blue) 0%, #005299 100%); box-shadow: 0 8px 22px rgba(0, 102, 204, 0.4); }
.activity-card--yellow:hover .activity-card__view { background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%); box-shadow: 0 8px 22px rgba(255, 193, 7, 0.45); color: var(--green-darker); }
.activity-card--red:hover .activity-card__view { background: linear-gradient(135deg, var(--red) 0%, #c62828 100%); box-shadow: 0 8px 22px rgba(229, 57, 53, 0.4); }
.activity-card--teal:hover .activity-card__view { background: linear-gradient(135deg, #26a69a 0%, #00796B 100%); box-shadow: 0 8px 22px rgba(0, 121, 107, 0.4); }
.activity-card--orange .activity-card__badge { background: var(--orange-light); color: var(--orange-dark); }
.activity-card--lime .activity-card__badge { background: var(--lime-light); color: var(--lime-dark); }
.activity-card--purple .activity-card__badge { background: #F3E5F5; color: var(--purple); }
.activity-card--blue .activity-card__badge { background: var(--blue-light); color: var(--blue); }
.activity-card--yellow .activity-card__badge { background: var(--yellow-light); color: var(--orange-dark); }
.activity-card--red .activity-card__badge { background: #FFEBEE; color: var(--red); }
.activity-card--teal .activity-card__badge { background: #E0F2F1; color: #00796B; }

.activity-article-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.activity-article-modal__dialog {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: min(1040px, 96vw);
    width: 100%;
    max-height: min(90vh, 820px);
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
}
.activity-article-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, background 0.2s ease;
}
.activity-article-modal__close:hover {
    transform: scale(1.05);
    background: var(--orange-light);
    color: var(--orange-dark);
}
.activity-article-modal__layout {
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    min-height: 0;
    height: 100%;
    max-height: min(90vh, 820px);
}
.activity-article-modal__figure {
    margin: 0;
    position: relative;
    background: var(--green-darker);
    min-height: 240px;
    height: 100%;
}
.activity-article-modal__image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
}
.activity-article-modal__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2.5rem 1rem 0.85rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    line-height: 1.4;
}
.activity-article-modal__article {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--white) 0%, #fcfdf9 100%);
}
.activity-article-modal__header {
    padding: 1.35rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(45, 74, 34, 0.08);
    flex-shrink: 0;
}
.activity-article-modal__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ink-muted);
}
.activity-article-modal__emoji { font-size: 1.35rem; line-height: 1; }
.activity-article-modal__category {
    color: var(--orange-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
}
.activity-article-modal__dot { opacity: 0.45; }
.activity-article-modal__date { font-weight: 600; }
.activity-article-modal__title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--green-darker);
}
.activity-article-modal__lead {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.55;
}
.activity-article-modal__body {
    padding: 1rem 1.5rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.activity-article-modal__body p {
    color: var(--ink-muted);
    font-size: 0.975rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.activity-article-modal__body p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    .activity-article-modal {
        padding: 0.5rem;
        align-items: flex-end;
    }
    .activity-article-modal__dialog {
        max-height: 92vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .activity-article-modal__layout {
        grid-template-columns: 1fr;
        max-height: 92vh;
    }
    .activity-article-modal__figure {
        height: clamp(200px, 34vh, 280px);
    }
    .activity-article-modal__image {
        height: 100%;
        min-height: 0;
    }
    .activity-article-modal__header { padding: 1.1rem 1.15rem 0.65rem; }
    .activity-article-modal__body { padding: 0.85rem 1.15rem 1.25rem; }
}

.activity-empty-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

/* ── Playful corner decorations (kids) ── */
.floating-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    font-size: clamp(2.25rem, 3.5vw, 3.5rem);
    line-height: 1;
    opacity: 0.2;
    filter: drop-shadow(0 2px 8px rgba(45, 106, 79, 0.12));
    animation: kid-float 4s ease-in-out infinite;
    user-select: none;
}

.floating-element--tl {
    top: clamp(4.5rem, 12vh, 7rem);
    left: clamp(0.5rem, 2vw, 1.5rem);
    animation-duration: 3.8s;
}

.floating-element--tr {
    top: clamp(5rem, 14vh, 8rem);
    right: clamp(0.5rem, 2vw, 1.5rem);
    animation: kid-wiggle 5s ease-in-out infinite;
    animation-delay: 0.6s;
}

.floating-element--bl {
    bottom: clamp(5rem, 12vh, 8rem);
    left: clamp(0.75rem, 2.5vw, 2rem);
    animation-duration: 5.2s;
    animation-delay: 1.2s;
}

.floating-element--br {
    bottom: clamp(4rem, 10vh, 7rem);
    right: clamp(0.5rem, 2vw, 1.5rem);
    animation: kid-bounce 4.5s ease-in-out infinite;
    animation-delay: 0.3s;
}

.floating-element--tl-2 {
    top: clamp(9rem, 22vh, 14rem);
    left: clamp(3rem, 8vw, 6rem);
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    opacity: 0.14;
    animation-duration: 6s;
    animation-delay: 2s;
}

.floating-element--br-2 {
    bottom: clamp(8rem, 18vh, 12rem);
    right: clamp(3rem, 7vw, 5.5rem);
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    opacity: 0.14;
    animation: kid-wiggle 5.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes kid-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-18px) rotate(4deg); }
}

@keyframes kid-wiggle {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-8px) rotate(-8deg) scale(1.05); }
    75% { transform: translateY(-12px) rotate(8deg) scale(1.02); }
}

@keyframes kid-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-22px) scale(1.08); }
    60% { transform: translateY(-10px) scale(1.04); }
}

@media (max-width: 991px) {
    .floating-element--tl-2,
    .floating-element--br-2 {
        display: none;
    }
    .floating-element {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        opacity: 0.15;
    }
}

@media (max-width: 768px) {
    .floating-decor {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-decor {
        display: none;
    }
}
