/* =========================================================
   ESTEEM TUITION — CLEANED MASTER STYLESHEET
   =========================================================
   PURPOSE
   - Clean replacement for public frontend stylesheet
   - Supports shared header/footer
   - Supports homepage polish through C4 approved
   - Keeps shared cards, forms, grids, alerts, and basic
     compatibility styles for pages not yet polished

   IMPORTANT
   - Public pages first
   - Portal-specific advanced styling can be refined later
   - Fully commented section by section
   - Add new page blocks under the correct labeled section
   - Do not edit locked homepage sections unless homepage revision is requested
========================================================= */


/* =========================================================
   SECTION START — 1. RESET / BASE
   Used in: shared / all pages
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #1f2937;
    background: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}


button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

/* =========================================================
   SECTION END — 1. RESET / BASE
========================================================= */


/* =========================================================
   SECTION START — 2. SHARED LAYOUT / TYPOGRAPHY
   Used in: shared / all public pages / index C1-C6 / future pages
========================================================= */

.section {
    padding: 64px 0;
}

.section-alt {
    background: #ffffff;
}

.section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2 {
    margin: 0 0 12px;
    font-size: 1.9rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.section-heading p {
    margin: 0 auto;
    max-width: 760px;
    color: #4b5563;
}

.portal-page-with-header-space {
    padding-top: 24px;
}

/* =========================================================
   SECTION END — 2. SHARED LAYOUT / TYPOGRAPHY
========================================================= */


/* =========================================================
   SECTION START — 3. SHARED BUTTON SYSTEM
   Used in: header.php / footer.php / index C1-C6 / public forms / future pages
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease;
    white-space: nowrap;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-parent-login {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.20);
}

.btn-primary,
.btn-parent-login {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.20);
}

.btn-primary:hover,
.btn-parent-login:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline {
    background: #ffffff;
    color: #2563eb;
    border-color: #bfdbfe;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.btn-outline:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* ---------------------------------------------------------
   Student Login
   Refined secondary CTA:
   - white base
   - clearer blue border
   - stronger presence than before
   - still lighter than Parent Login
--------------------------------------------------------- */
.btn-student-login {
    background: #ffffff;
    color: #1d4ed8;
    border-color: #c7d7fe;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.04),
        0 1px 0 rgba(255,255,255,0.9) inset;
}

.btn-student-login:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.08),
        0 1px 0 rgba(255,255,255,0.9) inset;
}

/* ---------------------------------------------------------
   WhatsApp
   Sitewide standard WhatsApp CTA
   Use this same button style anywhere on the public site
--------------------------------------------------------- */
.btn-whatsapp,
.btn-header-whatsapp {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.22);
}

.btn-whatsapp:hover,
.btn-header-whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #ffffff;
}

.btn-soft {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #dbeafe;
}

.btn-secondary {
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.btn-secondary:hover {
    background: #eff6ff;
}

.btn-icon-image {
    display: block;
    flex-shrink: 0;
}

.btn-icon-whatsapp {
    width: 18px;
    height: 18px;
    object-fit: contain;
    background: transparent !important;
}

/* =========================================================
   SECTION END — 3. SHARED BUTTON SYSTEM
========================================================= */


/* =========================================================
   SECTION START — 4. SHARED CARD / GRID SYSTEM
   Used in: index C2-C5 / about page planned / public pages / portal compatibility
========================================================= */
/* =========================================================
   ABOUT PAGE — A1 HERO
   Used in:
   - about.php (A1)
========================================================= */

.about-hero-tagline {
    margin: 8px auto 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #2563eb;
}

.about-hero-text {
    margin: 0 auto;
    max-width: 760px;
    color: #475569;
}
.card-grid {
    display: grid;
    gap: 18px;
}

.card-grid-2 {
    grid-template-columns: 1fr;
}

.card-grid-3 {
    grid-template-columns: 1fr;
}

.card-grid-4 {
    grid-template-columns: 1fr;
}

.card,
.info-card,
.how-card,
.price-summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.card-link {
    display: block;
    height: 100%;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

.card-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.card-title {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
}

.card-text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #475569;
}

.card-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid rgba(31, 111, 235, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2563eb;
}

.card-icon svg,
.card-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.card-badge,
.card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 4px 0 0;
}

.card-price-main {
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
}

.card-price-unit {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
}

/* =========================================================
   ABOUT PAGE — A2 (MR TIMOTHY SECTION)
========================================================= */

.about-highlights-list {
    margin: 10px 0 0;
    padding-left: 20px;
    color: #374151;
}

.about-highlights-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.card-grid-3 .card {
    border-radius: 22px;
}

/* =========================================================
   SECTION END — 4. SHARED CARD / GRID SYSTEM
========================================================= */

/* =========================================================
   ABOUT PAGE — A1 TO A6 (LOCKED)
   Used in:
   - public/about.php
========================================================= */

/* A1 — HERO */
.about-hero-tagline {
    margin: 8px auto 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #2563eb;
}

.about-hero-text {
    margin: 0 auto;
    max-width: 760px;
    color: #475569;
}

/* A2 — MR TIMOTHY */
.about-highlights-list {
    margin: 10px 0 0;
    padding-left: 20px;
    color: #374151;
}

.about-highlights-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* A3 — METHOD */
.card-grid-3 .card {
    border-radius: 22px;
}


/* =========================================================
   SECTION START — 5. HEADER — H1 APPROVED
   Used in: includes/header.php / all public pages
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 3000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 10px 30px rgba(15, 23, 42, 0.05);
}

.desktop-header-shell {
    display: none;
}

.desktop-topbar {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.desktop-nav-row {
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.96);
}

.desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-height: 56px;
}

.desktop-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    font-weight: 700;
    font-size: 0.96rem;
    color: #374151;
    white-space: nowrap;
    padding: 0 6px;
    transition: all 0.18s ease;
}

.desktop-nav a:hover {
    color: #2563eb;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 70%;
    height: 2px;
    background: #2563eb;
    border-radius: 999px;
    transition: transform 0.18s ease;
}

.desktop-nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.mobile-header-shell {
    display: block;
}

.mobile-header-bar {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}

.mobile-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-header-lang {
    display: flex;
    align-items: center;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-inner {
    padding: 16px 0 20px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-nav a {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    font-weight: 700;
    color: #374151;
    transition: all 0.16s ease;
}

.mobile-nav a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================================================
   HEADER LOGO — FINAL CRISP DISPLAY FIX
   Used in: includes/header.php / all public pages
   PURPOSE:
   - keep logo sizing controlled at the logo's real exported ratio
   - stop generic img rules from soft-resizing the header logo
   - align logo cleanly inside header on desktop and mobile
========================================================= */

.logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    line-height: 0;
    padding: 0;
    margin: 0;
}

.logo-box img {
    max-width: none;
}

.site-logo {
    display: block;
    width: 51px;
    height: 80px;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
    transform: none;
    backface-visibility: visible;
    image-rendering: auto;
}

.desktop-topbar .logo-box {
    min-height: 80px;
}

.mobile-header-bar .logo-box {
    min-height: 56px;
}

@media (max-width: 991px) {
    .site-logo {
        width: 36px;
        height: 56px;
    }
}

.menu-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid #dbe2ea;
    background: #ffffff;
    border-radius: 14px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    cursor: pointer;
    position: relative;
    z-index: 3100;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #111827;
    border-radius: 999px;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: #f3f6fa;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px;
    flex-shrink: 0;
}

.lang-switcher a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #4b5563;
    min-width: 48px;
    text-align: center;
    transition: all 0.18s ease;
}

.lang-switcher a.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow:
        0 4px 10px rgba(37, 99, 235, 0.25),
        0 1px 2px rgba(0,0,0,0.08);
}

/* =========================================================
   SECTION END — 5. HEADER — H1 APPROVED
========================================================= */


/* =========================================================
   SECTION START — 6. HERO — C1 APPROVED
   Used in: public/index.php only (C1 locked)
========================================================= */

.hero-section {
    padding: 60px 0 48px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08) 0%, transparent 34%),
        radial-gradient(circle at right center, rgba(59, 130, 246, 0.06) 0%, transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-grid {
    display: grid;
    gap: 32px;
    align-items: center;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: 2.3rem;
    line-height: 1.10;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.hero-eyebrow {
    margin: 0 0 10px;
    font-weight: 800;
    font-size: 0.98rem;
    color: #2563eb;
}

.hero-text {
    margin: 0 0 22px;
    color: #475569;
    max-width: 680px;
    font-size: 1.04rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.hero-link-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-chip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1f2937;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.16s ease;
}

.hero-chip-link:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.hero-visual {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
}

.hero-card-main-polished {
    position: relative;
    width: 100%;
    padding: 44px 34px 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #1e2a78 0%, #5b2dd8 100%);
    color: #ffffff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
    overflow: visible;
}

.hero-card-main-polished .hero-card-label {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
}

.hero-card-main-polished h3 {
    margin: 0 0 18px;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero-list-polished {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.hero-list-polished li {
    position: relative;
    padding-left: 28px;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
}

.hero-list-polished li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.12);
}

.hero-floating-card-top {
    position: absolute;
    top: -14px;
    right: 26px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a; /* dark text for readability */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
    border-radius: 999px;
}

.hero-support-note {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.96);
}

.hero-floating-card-2 {
    display: none !important;
}

/* =========================================================
   SECTION END — 6. HERO — C1 APPROVED
========================================================= */


/* =========================================================
   SECTION START — 7. QUICK ACTIONS — C2 APPROVED
   Used in: public/index.php only (C2 locked)
========================================================= */

.quick-actions-section {
    position: relative;
}

.quick-actions-heading {
    margin-bottom: 34px;
}

.quick-actions-grid {
    gap: 22px;
}

.quick-action-card {
    height: 100%;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

.quick-action-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-height: 100%;
}

.quick-action-card .card-title {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.28;
    color: #0f172a;
}

.quick-action-card .card-text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #475569;
}

.quick-action-link-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #2563eb;
}

.quick-action-link-text::after {
    content: "→";
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.16s ease;
}

.quick-action-card:hover .quick-action-link-text::after {
    transform: translateX(3px);
}

/* =========================================================
   SECTION END — 7. QUICK ACTIONS — C2 APPROVED
========================================================= */


/* =========================================================
   SECTION START — 8. C3 HOW OUR TUITION WORKS
   Used in: public/index.php only (C3 locked)
========================================================= */

.how-v2-heading {
    margin-bottom: 34px;
}

.how-v2-block {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.how-v2-text p {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: #374151;
}

.how-v2-highlight {
    font-weight: 800;
    color: #2563eb;
}

.how-v2-fees {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

.how-v2-fee-card {
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.how-v2-fee-card h3 {
    margin: 0 0 12px;
    color: #0f172a;
}

.how-v2-list {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #374151;
}

.how-v2-list li + li {
    margin-top: 8px;
}

.how-v2-share {
    background: #f8fafc;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.how-v2-share p {
    margin: 0 0 10px;
    font-weight: 800;
    color: #0f172a;
}

.how-v2-share ul {
    margin: 0;
    padding-left: 20px;
    color: #374151;
}

.how-v2-benefits {
    display: grid;
    gap: 18px;
    margin-bottom: 40px;
}

.how-v2-benefit-card {
    padding: 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.how-v2-benefit-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.05rem;
}

.how-v2-benefit-card p {
    margin: 0;
    color: #475569;
}

.how-v2-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   SECTION END — 8. C3 HOW OUR TUITION WORKS
========================================================= */


/* =========================================================
   SECTION START — 9. C4 TUITION OPTIONS + BENEFITS
   Used in: public/index.php only (C4 locked)
========================================================= */

.tuition-options-heading {
    margin-bottom: 30px;
}

.tuition-options-grid {
    gap: 24px;
    margin-bottom: 52px;
}

.tuition-option-card {
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.tuition-option-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.tuition-option-subjects {
    margin-top: 10px;
    color: #64748b;
    font-size: 1rem;
}

.tuition-option-price {
    margin-top: 10px;
}

.tuition-option-summary {
    margin-top: 10px;
    color: #475569;
    line-height: 1.65;
}

.tuition-option-primary {
    margin-top: 18px;
}

.tuition-option-secondary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tuition-mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 800;
    transition: all 0.16s ease;
}

.tuition-mini-link:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.tuition-benefits-heading {
    margin-bottom: 30px;
}

.tuition-benefits-grid {
    gap: 20px;
}

.tuition-benefit-card {
    height: 100%;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.tuition-benefit-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tuition-benefit-card .card-title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.32;
    color: #0f172a;
}

.tuition-benefit-card .card-text {
    margin: 0;
    color: #475569;
    line-height: 1.65;
    font-size: 0.96rem;
}

/* =========================================================
   SECTION END — 9. C4 TUITION OPTIONS + BENEFITS
========================================================= */


/* =========================================================
   SECTION START — 10. EXISTING HOMEPAGE SECTIONS AFTER C4
   Used in: public/index.php lower sections / temporary compatibility until full cleanup
========================================================= */

.portal-preview-card,
.feature-preview-card,
.download-preview-card,
.group-card,
.class-listing-card,
.enrollment-card {
    height: 100%;
}

.coming-soon-badge,
.action-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.85rem;
}

.future-download-note {
    margin: 18px 0 0;
    text-align: center;
    color: #4b5563;
    font-weight: 600;
}

.price-summary-box {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.price-summary-card p {
    margin-bottom: 0;
    color: #2563eb;
    font-weight: 800;
    font-size: 1.05rem;
}

.how-buttons {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   SECTION END — 10. EXISTING HOMEPAGE SECTIONS AFTER C4
========================================================= */


/* =========================================================
   SECTION START — 11. CTA SECTION
   Used in: public/index.php C5 CTA / reusable for about/contact later
========================================================= */

.cta-section {
    padding: 64px 0;
    background: linear-gradient(135deg, #111827 0%, #5b2dd8 100%);
    color: #ffffff;
}

.cta-box {
    display: grid;
    gap: 20px;
    align-items: center;
}

.cta-content h2,
.cta-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffffff;
}

.cta-content p,
.cta-box p {
    margin-bottom: 0;
    max-width: 720px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================================
   SECTION END — 11. CTA SECTION
========================================================= */


/* =========================================================
   SECTION START — 12. FOOTER
   Used in: includes/footer.php / all public pages
========================================================= */

.site-footer {
    background: #111827;
    color: #e5e7eb;
    padding-top: 44px;
}

.footer-grid {
    display: grid;
    gap: 24px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-top: 0;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e5e7eb;
    transition: color 0.16s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 28px;
    padding: 18px 0;
    text-align: center;
}

/* =========================================================
   SECTION END — 12. FOOTER
========================================================= */


/* =========================================================
   SECTION START — 13. SHARED FORMS / ALERTS
   Used in: contact page / enquiry pages / start/join class pages / shared forms
========================================================= */

.form-wrapper-card {
    max-width: 980px;
    margin: 0 auto;
}

.site-form {
    width: 100%;
}

.form-grid-1 {
    display: grid;
    gap: 18px;
}

.form-grid-2 {
    display: grid;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: #1f2937;
    background: #ffffff;
}

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

.form-group small {
    display: inline-block;
    margin-top: 6px;
}

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

.form-submit-row {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}

.form-alert,
.form-alert-success {
    max-width: 980px;
    margin: 0 auto 20px;
    border-radius: 16px;
    padding: 16px 18px;
}

.form-alert {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.form-alert-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.form-alert-list {
    margin: 0;
    padding-left: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
}

.back-link:hover {
    color: #2563eb;
}

/* =========================================================
   SECTION END — 13. SHARED FORMS / ALERTS
========================================================= */


/* =========================================================
   SECTION START — 14. BASIC PORTAL / DASHBOARD COMPATIBILITY
   Used in: student portal / parent portal temporary compatibility until portal polish phase
========================================================= */

.dashboard-stat-card {
    text-align: center;
}

.dashboard-stat-card h3 {
    margin-bottom: 10px;
}

.dashboard-stat-number {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
}

.dashboard-info-list {
    display: grid;
    gap: 10px;
}

.parent-hero-card,
.attendance-hero-card,
.birthday-parent-banner,
.birthday-achievement-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.parent-hero-card {
    display: grid;
    gap: 18px;
    align-items: center;
}

.parent-hero-badge,
.birthday-parent-topline,
.birthday-recognition-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.85rem;
}

.parent-hero-subtext {
    color: #64748b;
}

.attendance-premium-panel,
.attendance-history-card,
.materials-feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

/* =========================================================
   SECTION END — 14. BASIC PORTAL / DASHBOARD COMPATIBILITY
========================================================= */


/* =========================================================
   SECTION START — 15. RESPONSIVE
   Used in: shared / all pages
========================================================= */

@media (min-width: 768px) {
 

    .card-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid,
    .cta-box,
    .price-summary-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        padding: 76px 0 58px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .how-v2-fees {
        grid-template-columns: 1fr 1fr;
    }

    .how-v2-benefits {
        grid-template-columns: repeat(3, 1fr);
    }

    .parent-hero-card {
        grid-template-columns: auto 1fr auto;
    }

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

@media (min-width: 992px) {
    .desktop-header-shell {
        display: block;
    }

    .mobile-header-shell {
        display: none;
    }

    .card-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
  

    .hero-section {
        padding: 46px 0 36px;
    }

    .hero-content h1 {
        font-size: 2.45rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-link-chips {
        gap: 8px;
    }

    .hero-chip-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0 14px;
    }

    .hero-visual {
        min-height: auto;
        padding-top: 12px;
    }

    .hero-card-main-polished {
        padding: 42px 22px 22px;
        border-radius: 22px;
    }

    .hero-card-main-polished h3 {
        font-size: 1.65rem;
    }

    .hero-floating-card-top {
        right: 14px;
        left: 14px;
        max-width: none;
        top: -14px;
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    .hero-list-polished li {
        font-size: 1rem;
    }

    .hero-support-note {
        margin-top: 20px;
        font-size: 0.92rem;
    }

    .quick-actions-heading {
        margin-bottom: 24px;
    }

    .quick-actions-grid {
        gap: 16px;
    }

    .quick-action-card {
        border-radius: 20px;
    }

    .quick-action-card .card-title {
        font-size: 1.12rem;
    }

    .quick-action-card .card-text {
        font-size: 0.94rem;
    }

    .tuition-options-grid {
        gap: 18px;
        margin-bottom: 42px;
    }

    .tuition-option-card,
    .tuition-benefit-card {
        border-radius: 20px;
    }

    .tuition-option-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .tuition-option-secondary {
        flex-direction: column;
        align-items: stretch;
    }

    .tuition-mini-link {
        width: 100%;
    }

    .tuition-benefit-card .card-title {
        font-size: 1.02rem;
    }

    .tuition-benefit-card .card-text {
        font-size: 0.94rem;
    }

    .how-v2-cta,
    .how-v2-cta .btn,
    .cta-buttons,
    .cta-buttons .btn,
    .mobile-actions .btn {
        width: 100%;
    }

    
}

/* =========================================================
   SECTION END — 15. RESPONSIVE
========================================================= */