/* ============================================================
   Path Goal International — Modern Education Design System
   ============================================================ */

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

:root {
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
    --shadow: 0 4px 20px rgba(15, 23, 42, .08);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, .1);
    --shadow-lg: 0 24px 48px rgba(15, 23, 42, .12);
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg-muted: #f8fafc;
    --bg-subtle: #f1f5f9;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --gradient-hero: linear-gradient(135deg, var(--hero-bg) 0%, color-mix(in srgb, var(--primary) 35%, var(--hero-bg)) 55%, color-mix(in srgb, var(--accent) 20%, var(--hero-bg)) 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    --header-height: 72px;
    --section-py: 88px;
    --transition: .2s cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font, 'Plus Jakarta Sans', 'Inter', sans-serif);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { color: var(--secondary); }

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

/* ---- Typography ---- */
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 1.125rem; color: var(--text-secondary); max-width: 640px; line-height: 1.7; }
.text-center { text-align: center; }
.text-center .lead { margin: 0 auto; }

/* ---- Header ---- */
.site-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, .98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--heading);
    font-size: 1.05rem;
    letter-spacing: -.02em;
    flex-shrink: 0;
}
.logo:hover { opacity: 1; color: var(--heading); }

.logo-icon {
    background: var(--gradient-primary);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent);
}
.logo-icon.site-logo-img { background: transparent; box-shadow: none; padding: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: .9375rem;
    position: relative;
    transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); opacity: 1; }
.main-nav a.active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
}
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    opacity: 1;
}
.nav-dropdown-toggle.active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.nav-chevron { transition: transform var(--transition); flex-shrink: 0; }
.nav-dropdown.is-open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 200;
}
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: .9rem;
}
.nav-dropdown-menu a:hover {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    opacity: 1;
}
.nav-dropdown-menu a.active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-cta {
    display: none;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .875rem;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 30%, transparent);
    transition: transform var(--transition), box-shadow var(--transition);
}
.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 40%, transparent);
    opacity: 1;
    color: #fff !important;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-subtle);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.lang-btn:hover { color: var(--primary); background: #fff; opacity: 1; }
.lang-btn.active {
    background: #fff;
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 12%, transparent);
    box-shadow: var(--shadow-xs);
}
.lang-flag { display: flex; line-height: 0; border-radius: 2px; overflow: hidden; }
.lang-flag svg { display: block; }

.nav-toggle {
    display: none;
    background: var(--bg-subtle);
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--heading); border-radius: 1px; transition: var(--transition); }

/* ---- Hero (global) ---- */
.hero {
    background: var(--gradient-hero);
    color: var(--hero-text);
    padding: 100px 0 88px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 100%, color-mix(in srgb, var(--accent) 25%, transparent) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 20%, color-mix(in srgb, var(--secondary) 20%, transparent) 0%, transparent 55%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 16px; }
.hero p { font-size: 1.125rem; opacity: .88; margin-bottom: 32px; max-width: 560px; line-height: 1.7; }

.page-hero {
    background: var(--gradient-hero);
    color: var(--hero-text);
    padding: 72px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(ellipse 70% 80% at 50% 120%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .page-hero-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--hero-text) 70%, var(--accent));
    margin-bottom: 12px;
    padding: 6px 14px;
    background: rgba(255,255,255,.1);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.15);
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 12px; color: var(--hero-text); }
.page-hero p { font-size: 1.0625rem; opacity: .88; max-width: 560px; margin: 0 auto; line-height: 1.65; }

.page-hero.page-hero-has-image,
.page-hero[style*="--hero-img"] {
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
}

.page-hero.page-hero-has-image::before,
.page-hero[style*="--hero-img"]::before {
    display: none;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15, 23, 42, .92) 0%,
        rgba(15, 23, 42, .78) 45%,
        rgba(15, 23, 42, .55) 100%
    );
    z-index: 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .9375rem;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    font-family: inherit;
    line-height: 1.4;
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--btn-text);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent);
    opacity: 1;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .9375rem;
    background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; opacity: 1; }
.btn-sm { padding: 9px 18px; font-size: .875rem; }
.btn-block { display: flex; width: 100%; }
.btn-white {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); opacity: 1; color: var(--primary); }

/* ---- Sections ---- */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-muted); }
.section-muted { background: var(--bg-muted); }

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}
.section-label, .eyebrow {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 12px;
    letter-spacing: -.03em;
}
.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Cards (global) ---- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover {
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--primary) 15%, var(--border));
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---- Feature cards ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-icon {
    width: 56px;
    height: 56px;
    background: color-mix(in srgb, var(--primary) 10%, #fff);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.125rem; }

/* ---- Stats ---- */
.stats-section {
    background: var(--gradient-primary);
    color: #fff;
    padding: 64px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-num { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.stat-label { opacity: .88; font-size: .9375rem; margin-top: 4px; }

/* ---- Services ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    box-shadow: var(--shadow-xs);
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.service-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: .35;
    line-height: 1;
    margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.125rem; }
.service-card p { color: var(--text-secondary); font-size: .9375rem; line-height: 1.65; }

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--primary) 10%, #fff);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; }

/* ---- About / two-col ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.content-block {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.content-block h2 {
    font-size: 1.375rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-block h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-accent);
    border-radius: 2px;
    flex-shrink: 0;
}
.content-block p { color: var(--text-secondary); line-height: 1.75; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 8px;
}
.value-card {
    text-align: center;
    padding: 36px 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.value-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.value-card-icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.value-card p { font-size: .9375rem; color: var(--text-secondary); line-height: 1.65; }

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 32px;
    align-items: start;
}
.contact-info {
    background: var(--gradient-primary);
    color: #fff;
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.contact-info .info-item { margin-bottom: 28px; }
.contact-info .info-item:last-child { margin-bottom: 0; }
.contact-email-list .contact-email-item { margin: 6px 0 0; }
.contact-email-list .contact-email-item:first-child { margin-top: 8px; }
.contact-email-list a { color: var(--primary); font-weight: 500; text-decoration: none; }
.contact-email-list a:hover { text-decoration: underline; }
.webmail-cta { margin: 16px 0; }
.btn-webmail { display: inline-flex; align-items: center; gap: 8px; }
.contact-info strong {
    display: block;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .75;
    margin-bottom: 6px;
}
.contact-info p { font-size: 1rem; line-height: 1.5; }
.contact-info a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-info a:hover { opacity: .9; }

.contact-form-wrap {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.contact-form-wrap h2, .contact-form-wrap h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--heading);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-family: inherit;
    font-size: .9375rem;
    background: var(--bg-muted);
    color: var(--text);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.section-contact-map {
    padding-top: 0;
    background: var(--surface, #f8fafc);
}
.contact-map-header {
    text-align: center;
    margin-bottom: 28px;
}
.contact-map-header h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin-bottom: 8px;
}
.contact-map-address {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}
.contact-map-wrap {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    background: #e2e8f0;
    aspect-ratio: 16 / 9;
    min-height: 320px;
}
.contact-map-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.contact-map-actions {
    text-align: center;
    margin: 20px 0 0;
}

/* ---- Principal biography ---- */
.principal-profile-section { padding-top: 48px; }
.principal-profile {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 48px;
    align-items: start;
}
.principal-photo-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #e2e8f0;
}
.principal-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 5 / 6;
}
.principal-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 8px;
    line-height: 1.2;
}
.principal-role {
    font-size: 1.0625rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 20px;
}
.principal-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
}
.principal-quote-section { padding: 0 0 48px; }
.principal-quote {
    margin: 0;
    padding: 32px 40px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--heading);
    font-style: italic;
}
.principal-quote p { margin: 0; }
.principal-sections .bio-section {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 28px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.principal-sections .bio-section:last-child { border-bottom: 0; }
.bio-section-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    opacity: .35;
    line-height: 1;
}
.bio-section-body h2 {
    font-size: 1.375rem;
    margin: 0 0 12px;
    color: var(--heading);
}
.bio-section-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}
.principal-closing-card {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.principal-closing-card p {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 0 0 24px;
}
.principal-closing-card .btn-primary {
    background: #fff;
    color: var(--primary);
    border: none;
}
.principal-closing-card .btn-primary:hover { opacity: .92; }

/* ---- Teachers ---- */
.teachers-intro { margin-bottom: 40px; }
.teachers-list { display: flex; flex-direction: column; gap: 48px; }
.teacher-profile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.teacher-profile-header {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.teacher-photo-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 4 / 5;
}
.teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.teacher-name {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin: 0 0 8px;
    color: var(--heading);
}
.teacher-role {
    font-size: 1.0625rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}
.teacher-sections { display: flex; flex-direction: column; gap: 24px; }
.teacher-section-title {
    font-size: 1.125rem;
    margin: 0 0 10px;
    color: var(--heading);
}
.teacher-section-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
}
.teachers-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 48px 24px;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

@media (max-width: 900px) {
    .principal-profile { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .principal-profile-text { text-align: center; }
    .principal-sections .bio-section { grid-template-columns: 1fr; gap: 12px; }
    .bio-section-num { font-size: 1.25rem; opacity: .5; }
    .teacher-profile-header { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto 24px; text-align: center; }
    .teacher-profile { padding: 24px 20px; }
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row input { margin-bottom: 0; }
.form-row + input, .form-row + textarea { margin-top: 14px; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: .9375rem;
    font-weight: 500;
}
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---- Blog ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.blog-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.blog-card-img { display: block; height: 210px; overflow: hidden; background: var(--bg-subtle); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 24px; }
.blog-card-body time {
    font-size: .8125rem;
    color: var(--text-muted);
    font-weight: 600;
}
.blog-card-body h3 { margin: 10px 0 12px; font-size: 1.1875rem; line-height: 1.35; }
.blog-card-body h3 a { color: var(--heading); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { font-size: .9375rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.read-more {
    font-weight: 700;
    font-size: .875rem;
    color: var(--post-primary, var(--primary));
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.read-more::after { content: '→'; transition: transform var(--transition); }
.read-more:hover::after { transform: translateX(4px); }

.blog-post .post-header {
    padding: 72px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.blog-post .post-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.blog-post .post-header .container { position: relative; z-index: 1; }
.blog-post .post-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 12px 0; color: #fff; }
.post-featured-img { margin: -48px auto 48px; max-width: 900px; padding: 0 24px; }
.post-featured-img img {
    border-radius: var(--radius-xl);
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}
.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 80px;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text);
}
.post-content h2, .post-content h3 { margin: 1.75em 0 .6em; color: var(--heading); }
.post-content p { margin-bottom: 1.25em; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Video cards ---- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.video-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition);
}
.video-card:hover { box-shadow: var(--shadow); }
.video-card h3 { font-size: 1rem; padding: 16px 18px 4px; color: var(--heading); }
.video-card p { font-size: .875rem; padding: 0 18px 18px; color: var(--text-secondary); }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--heading); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ---- CTA ---- */
.cta-section { text-align: center; }
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.section-foot { text-align: center; margin-top: 40px; }

.cta-band {
    background: var(--gradient-hero);
    color: #fff;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 100% 50%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%);
    pointer-events: none;
}
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.cta-band h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); color: #fff; margin-bottom: 8px; }
.cta-band p { font-size: 1rem; color: rgba(255,255,255,.78); margin: 0; }

@media (max-width: 640px) {
    .cta-band-inner { flex-direction: column; text-align: center; }
}

/* ---- Footer ---- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 72px 0 0;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    align-items: start;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-logo-icon { width: 48px; height: 48px; border-radius: var(--radius); overflow: hidden; }
.footer-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand strong { color: #fff; font-size: 1.25rem; letter-spacing: -.02em; }
.footer-tagline { margin: 0; font-size: .9375rem; line-height: 1.65; color: var(--footer-text); max-width: 300px; }
.footer-col h4 {
    color: #fff;
    margin: 0 0 16px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.footer-link-list { list-style: none; }
.footer-link-list li { margin: 0; }
.footer-link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: var(--footer-text);
    font-size: .9375rem;
    transition: color var(--transition);
}
.footer-link-list a:hover { color: #fff; opacity: 1; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 24px 0;
    text-align: center;
    font-size: .875rem;
}

/* ---- Chat widget ---- */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.chat-toggle:hover { transform: scale(1.06); box-shadow: var(--shadow-lg); }
.chat-panel {
    display: none;
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.chat-panel.open { display: flex; flex-direction: column; }
.chat-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header button { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; opacity: .85; }
.chat-messages { height: 300px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: var(--radius); font-size: .9rem; line-height: 1.5; }
.chat-msg.visitor { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.admin { align-self: flex-start; background: var(--bg-subtle); color: var(--heading); border-bottom-left-radius: 4px; }
.chat-form { padding: 14px; border-top: 1px solid var(--border); }
.chat-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: .9rem;
    font-family: inherit;
}
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; margin: 0; }
.chat-input-row button {
    padding: 10px 18px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

/* ---- Responsive ---- */
@media (min-width: 900px) {
    .header-cta { display: inline-flex; }
}

@media (max-width: 900px) {
    .card-grid-3 { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --section-py: 64px; }
    .nav-toggle { display: flex; }
    .header-cta { display: none; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border);
        gap: 4px;
    }
    .main-nav.open { display: flex; }
    .main-nav a,
    .main-nav .nav-dropdown-toggle { width: 100%; }
    .main-nav .nav-dropdown { width: 100%; }
    .main-nav.open .nav-dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        padding: 4px 0 8px 12px;
        min-width: 0;
    }
    .stats-grid, .form-row { grid-template-columns: 1fr; }
    .hero { padding: 72px 0 64px; }
    .page-hero { padding: 56px 0 48px; }

    .site-footer { padding: 48px 0 0; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "brand brand" "links social";
        gap: 32px 24px;
        padding-bottom: 32px;
    }
    .footer-brand {
        grid-area: brand;
        align-items: center;
        text-align: center;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .footer-tagline { max-width: 280px; margin: 0 auto; }
    .footer-links { grid-area: links; }
    .footer-social { grid-area: social; }
}

@media (max-width: 400px) {
    .footer-grid { grid-template-columns: 1fr; grid-template-areas: "brand" "links" "social"; }
    .footer-col { text-align: center; }
    .footer-link-list a { justify-content: center; }
}
