/* ==========================================================
   THE ASIAN SCHOOL (TAS) - UNIFIED ROOT STYLESHEET
========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #0b2545;              /* Dark Oxford Navy */
    --primary-light: #16365f;        /* Mid Navy / Card Tint */
    --primary-cyan: #0099b8;         /* Electric Cyan / Headings */
    --btn-call: #00a8cc;             /* Call Button Cyan */
    --accent: #0099b8;               /* Main Accent */
    --accent-hover: #007e99;
    --accent-soft: rgba(0, 153, 184, 0.12);
    --topbar-cyan: #008da5;
    
    /* Text & Background */
    --text-dark: #1e293b;
    --text-body: #475569;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-light: #e2e8f0;
    --border-card: #edf2f7;

    /* Shadows & Radii */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 45px rgba(11, 37, 69, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;

    /* Popup Modal & Dark Box Settings */
    --modal-bg: #08213e;                          /* Deep Navy Blue Modal BG */
    --modal-overlay-bg: rgba(11, 37, 69, 0.65);   /* Dark Blur Overlay */
    --modal-input-bg: rgba(255, 255, 255, 0.08);  /* Input Field BG */
    --modal-input-border: rgba(255, 255, 255, 0.18);/* Input Border */
    --modal-cyan: #0099b8;                        /* Cyan Heading in Modal */
    --modal-btn: #00a8cc;                         /* Submit Button Cyan */
    --modal-btn-hover: #0093b2;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Topbar --- */
.topbar {
    background: var(--topbar-cyan);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
    font-weight: 500;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-info {
    display: flex;
    gap: 20px;
}

.topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Navigation Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.2);
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* --- Common Components & Buttons --- */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px var(--accent-soft);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px auto;
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.4rem);
    color: var(--primary);
    font-weight: 800;
    line-height: 1.25;
}

.section-title span {
    color: var(--primary-cyan);
}

.page-banner {
    background: linear-gradient(rgba(11, 37, 69, 0.88), rgba(11, 37, 69, 0.92)),
                url('./img/AJ_0600-scaled1-2048x1152.webp') center/cover no-repeat;
    padding: 75px 0;
    color: var(--white);
    text-align: center;
}

.page-banner h1 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(180deg, rgba(11, 37, 69, 0.88) 0%, rgba(11, 37, 69, 0.74) 100%),
                url('./img/AJ_0600-scaled1-2048x1152.webp') center/cover no-repeat;
    min-height: 75vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 80px 0 120px 0;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 880px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary-cyan);
}

.hero p {
    font-size: 1.15rem;
    max-width: 680px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-btn {
    display: flex; 
    gap: 16px; 
    flex-wrap: wrap;
}

/* --- Stats Strip --- */
.stats-wrapper {
    margin-top: -55px;
    position: relative;
    z-index: 20;
}

.stats-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-bottom: 4px solid var(--accent);
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-number span {
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- Layout Grids --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tas-card {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tas-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.tas-card-body {
    padding: 26px;
}

.tas-card-body h3, .tas-card-body h4 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ==========================================================
   NEW LANDING & FRANCHISE SECTIONS
========================================================== */

/* 1. Feature Numbered Cards (Section 2) */
.feature-num-card {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-num-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-cyan);
}

.card-num-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.feature-num-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-num-card p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* 2. 8 Support Pillars Grid (Section 3) */
.support-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.support-bullet-list li {
    font-size: 0.98rem;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-pill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.support-pill-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.support-pill-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-3px);
}

.support-pill-card .icon-circle {
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    margin: 0 auto 12px auto;
}

.support-pill-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* 3. Investment Grid (Section 4) */
.invest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.invest-box {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.invest-box h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.invest-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.invest-rounded-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* 4. Journey 5-Steps (Section 5) */
.journey-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.journey-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    box-shadow: var(--shadow-sm);
}

.journey-num {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.journey-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.journey-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 5. Testimonial Stories (Section 6) */
.testimonial-story-card {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-quote {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.65;
    margin-bottom: 20px;
}

.story-author h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.story-author span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 6. Awards Row (Section 7) */
.awards-flex-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.award-frame {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
}

.award-frame img {
    border-radius: var(--radius-sm);
    height: 180px;
    width: 100%;
    object-fit: cover;
}

/* 7. Accordion Clean (Section 8) */
.faq-accordion-clean {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-clean-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-clean-header {
    padding: 16px 20px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-clean-item.open .faq-clean-header {
    background: var(--primary-cyan);
    color: var(--white);
}

.faq-clean-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.faq-clean-item.open .faq-clean-header h4 {
    color: var(--white);
}

.faq-clean-body {
    display: none;
    padding: 18px 20px;
    font-size: 0.92rem;
    color: var(--text-body);
    background: var(--white);
    line-height: 1.6;
}

/* ==========================================================
   POPUP MODAL & FORMS
========================================================== */
.franchise-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.franchise-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.franchise-modal-window {
    background: var(--modal-bg);
    color: var(--white);
    width: 100%;
    max-width: 700px;
    height: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(15px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

.franchise-modal-overlay.active .franchise-modal-window {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 1.8rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--white);
}

.franchise-modal-window .form-main-heading,
.franchise-modal-window .modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--modal-cyan);
    margin-bottom: 8px;
    text-align: center;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
}

.franchise-modal-window input,
.franchise-modal-window select,
.franchise-modal-window textarea {
    width: 100%;
    background-color: var(--modal-input-bg) !important;
    border: 1px solid var(--modal-input-border) !important;
    color: var(--white) !important;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition);
}

.franchise-modal-window input::placeholder,
.franchise-modal-window textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.franchise-modal-window select option {
    background-color: var(--modal-bg);
    color: var(--white);
}

.franchise-modal-window input:focus,
.franchise-modal-window select:focus,
.franchise-modal-window textarea:focus {
    border-color: var(--modal-cyan) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 0 3px rgba(0, 153, 184, 0.25) !important;
}

.franchise-modal-window .btn-primary {
    background: var(--modal-btn) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 14px rgba(0, 168, 204, 0.35);
}

.franchise-modal-window .btn-primary:hover {
    background: var(--modal-btn-hover) !important;
}

/* Validation Styling */
.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
    border-color: #ef4444 !important;
    background-color: transparent !important;
    box-shadow: 0 0 0 3px var(--bg-light) !important;
}

.field-error-msg {
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 4px;
    display: none;
}

.form-group.has-error .field-error-msg {
    display: block;
}

/* ==========================================================
   OFFCANVAS MOBILE MENU & HAMBURGER
========================================================== */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 38px;
    z-index: 1001;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 37, 69, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offcanvas-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.offcanvas-drawer.active {
    right: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.offcanvas-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offcanvas-nav a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
}

.offcanvas-nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.offcanvas-contact {
    margin-top: auto;
    padding-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================
   RESPONSIVE MEDIA QUERIES
========================================================== */
@media (max-width: 992px) {
    .stats-card, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .stat-item:nth-child(2) { border-right: none; }
    .navbar .nav-links { display: none; }
    .hamburger-btn { display: flex; }
    .journey-steps-grid { grid-template-columns: repeat(3, 1fr); }
    .awards-flex-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .stats-card, .grid-3, .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: span 1; }
    .section-padding { padding: 50px 16px; }
    .journey-steps-grid, .awards-flex-row, .support-pill-grid, .invest-grid {
        grid-template-columns: 1fr;
    }
    .franchise-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }
    .franchise-modal-window {
        padding: 24px 16px 20px 16px;
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
        transform: translateY(100%);
    }
    .franchise-modal-overlay.active .franchise-modal-window {
        transform: translateY(0);
    }
}












.franchise-form-box {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 0.92rem;
    outline: none;
}

.form-group select option {
    background: var(--primary);
    color: var(--white);
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 24px 0;
    border-top: 5px solid var(--accent);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .stats-card, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .stat-item:nth-child(2) { border-right: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .stats-card, .grid-3 { grid-template-columns: repeat(1, 1fr); }
    .topbar, .nav-links, .side-action-tabs { display: none; }
    .stats-card, .grid-3, .form-grid, .footer-grid { grid-template-columns: 2fr; }
    .form-group.full { grid-column: span 1; }
}



/* --- About Page Extended Styles --- */
.message-box {
    background: var(--white);
    border-left: 5px solid var(--accent);
    padding: 35px 40px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.message-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.message-box h3 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.message-box span {
    color: var(--accent-hover);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 14px;
}

/* ==========================================================
   CAMPUS CARDS & UNIFORM IMAGE SIZING
========================================================== */
.campus-card-grid {
    align-items: stretch;
}

.campus-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.campus-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.campus-thumb-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.campus-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.campus-box:hover .campus-thumb-img {
    transform: scale(1.05);
}

.campus-info-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.campus-info-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.campus-detail-list {
    flex-grow: 1;
    margin-bottom: 20px;
}

.campus-detail-list p {
    font-size: 0.88rem;
    color: var(--text-body);
    margin-bottom: 10px;
    line-height: 1.5;
}

.campus-btn-wrap {
    margin-top: auto;
}

.campus-btn {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
}

/* Mobile Responsiveness for Campuses */
@media (max-width: 992px) {
    .campus-thumb-wrap {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .campus-thumb-wrap {
        height: 190px;
    }
    
    .flagship-thumb-wrap img {
        height: 240px !important;
    }
}


/* ==========================================================
   BLOGS & SWIPER CAROUSEL STYLES
========================================================== */
.blog-featured-swiper {
    padding-bottom: 45px;
}

.featured-slide-card {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.featured-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.slide-img-box {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.slide-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.slide-content-box {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.slide-content-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.slide-content-box h3 a:hover {
    color: var(--accent);
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.btn-read-more {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 14px;
    display: inline-block;
}

.btn-read-more:hover {
    color: var(--accent-hover);
    padding-left: 4px;
}

/* Swiper Custom Arrow Colors */
.swiper-button-next, .swiper-button-prev {
    color: var(--accent) !important;
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.1rem !important;
    font-weight: 800;
}
.swiper-pagination-bullet-active {
    background: var(--accent) !important;
}
/* --- Single Blog Layout --- */
.blog-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px; /* minmax(0, 1fr) prevents grid overflow */
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.blog-article-content {
    min-width: 0; /* Prevents flex/grid child overflow */
    width: 100%;
}

.blog-cover-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-cover-img img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}

/* Typography & Word Wrapping for Summernote Content */
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word; /* Forces long lines/URLs to wrap properly */
    max-width: 100%;
}

.article-body * {
    max-width: 100% !important;
    white-space: normal !important; /* Overrides pre/nowrap copied from external sources */
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.article-body p,
.article-body div {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.article-body img {
    height: auto !important;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-cyan);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--bg-light);
    font-style: italic;
    color: var(--text-body);
}

.article-body ul, 
.article-body ol {
    margin: 15px 0 20px 25px;
}

.article-body ul {
    list-style-type: disc;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--primary);
    font-weight: 700;
    margin: 24px 0 12px 0;
    line-height: 1.3;
}

.article-cta-box {
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
}

.article-cta-box h3 {
    color: var(--primary-cyan);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.franchise-cta-widget {
    background: var(--bg-light);
    border-color: var(--accent);
    text-align: center;
}

.franchise-cta-widget h4 {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 6px;
}

.franchise-cta-widget p {
    font-size: 0.85rem;
    color: var(--text-body);
    margin-bottom: 16px;
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 8px;
}

.recent-post-item {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-title {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 4px;
}

.recent-post-title:hover {
    color: var(--accent);
}

.recent-post-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog-single-layout {
        grid-template-columns: 1fr;
    }
}