/* ============================================================
   NAMILYANGO COLLEGE — HOMEPAGE STYLES (index.css)
   Covers: global tokens, hero, stats bar, vision/mission,
           news section, about, events, headmaster, pioneer,
           motto, CTA banner, floating elements, responsive
   ============================================================ */

/* ---------- GLOBAL DESIGN TOKENS ---------- */
:root {
    /* Brand colours */
    --primary:        #00274c;
    --primary-mid:    #003a6e;
    --primary-light:  #1a5276;
    --gold:           #f2cb3f;
    --gold-dark:      #d4a800;
    --accent:         #d74e31;
    --white:          #ffffff;

    /* Neutral palette */
    --text:           #1e293b;
    --text-muted:     #64748b;
    --text-light:     #94a3b8;
    --bg-light:       #f8fafc;
    --bg-alt:         #f1f5f9;
    --border:         #e2e8f0;

    /* Shadows */
    --shadow-sm:      0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.09);
    --shadow-lg:      0 8px 40px rgba(0,0,0,0.13);

    /* Layout */
    --container:      1200px;
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;
    --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);

    /* Section padding */
    --section-pad-y:  80px;
}

/* ---------- BASE RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Fira Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}
body.homepage { padding-top: 0; } /* header is fixed, hero is full-screen */
body:not(.homepage) { padding-top: 72px; }

h1,h2,h3,h4,h5,h6 { font-family: 'Raleway', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- UTILITIES ---------- */
.section-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}
.section-pad { padding: var(--section-pad-y) 0; }

/* Section header (title row) */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-header.centered { justify-content: center; text-align: center; flex-direction: column; align-items: center; }

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.4rem;
}
.section-tag.light { color: var(--gold); }

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.75rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--gold);
    border-radius: 3px;
}
.section-header.centered .section-title::after {
    left: 50%; transform: translateX(-50%);
}
.section-title.white { color: var(--white); }
.section-title.white::after { background: var(--gold); }

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
    transition: var(--transition);
    white-space: nowrap;
}
.view-all-link:hover { color: var(--gold-dark); gap: 10px; }
.view-all-link.white { color: var(--white); border-color: rgba(255,255,255,0.4); }
.view-all-link.white:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- BUTTONS ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.8rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-primary:hover {
    background: var(--primary-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,39,76,0.3);
    color: var(--white);
}
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.8rem;
    background: var(--gold);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242,203,63,0.4);
    color: var(--primary);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.68rem 1.8rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 8s ease;
    will-change: opacity, transform;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0,39,76,0.88) 0%,
        rgba(0,39,76,0.65) 45%,
        rgba(0,0,0,0.25) 100%
    );
    z-index: 2;
}

/* Hero content */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 820px;
    /* Push content left edge in-line with section containers on big screens */
    padding: calc(var(--nav-height) + 4px + 2.5rem) 2rem 6rem;
    padding-left: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242,203,63,0.12);
    border: 1px solid rgba(242,203,63,0.35);
    color: var(--gold);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    width: fit-content;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeSlideUp 0.8s ease 0.2s both;
}
.hero-badge i { font-size: 0.7rem; }

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.0;
    margin-bottom: 1rem;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
    animation: fadeSlideUp 0.8s ease 0.4s both;
}
.hero-title .gold-text { color: var(--gold); }

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.35rem);
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    animation: fadeSlideUp 0.8s ease 0.55s both;
}
.hero-motto {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    margin-bottom: 2.5rem;
    animation: fadeSlideUp 0.8s ease 0.65s both;
}
.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s ease 0.8s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 2rem;
    background: var(--gold);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
}
.btn-hero-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(242,203,63,0.45);
    color: var(--white);
}
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.83rem 2rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: var(--transition);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--white);
    transform: translateY(-3px);
    color: var(--white);
}

/* Hero controls */
.hero-controls {
    position: absolute;
    bottom: 2rem;
    left: 0; right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.hero-prev, .hero-next {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero-prev:hover, .hero-next:hover {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
    transform: scale(1.1);
}
.hero-dots { display: flex; gap: 7px; align-items: center; }
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: var(--transition);
}
.hero-dot.active {
    width: 26px;
    border-radius: 4px;
    background: var(--gold);
}

/* Scroll cue */
.hero-scroll-cue {
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    animation: bounce 2s ease infinite;
}
.hero-scroll-cue i { font-size: 0.8rem; }
@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-content { padding: 0 1.5rem 6rem; justify-content: flex-end; left: 0; transform: none; }
    .hero-title   { font-size: 2.6rem; }
    .hero-ctas    { flex-direction: column; }
    .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; }
    .hero-scroll-cue { display: none; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--primary);
    padding: 0;
}
.stats-bar-inner {
    display: flex;
    align-items: stretch;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}
.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    transition: background 0.3s ease;
}
.stat-item:hover { background: rgba(255,255,255,0.05); }
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.12);
}
.stat-number {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-number::after { content: attr(data-suffix); font-size: 0.7em; }
.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .stats-bar-inner { flex-wrap: wrap; }
    .stat-item { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat-item:last-child { border-bottom: none; }
    .stat-item + .stat-item::before { display: none; }
}
@media (max-width: 400px) {
    .stat-item { flex: 1 1 100%; }
}

/* ============================================================
   VISION / MISSION / VALUES
   ============================================================ */
.vmv-section {
    padding: var(--section-pad-y) 0;
    background: linear-gradient(160deg, #051e3e 0%, #00274c 100%);
}
.vmv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.vmv-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.vmv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s ease;
}
.vmv-card.vmv-highlight::before { background: var(--gold); }
.vmv-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.vmv-card:hover::before { background: var(--gold); }

.vmv-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(242,203,63,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--gold);
    font-size: 1.2rem;
    transition: var(--transition);
}
.vmv-card:hover .vmv-icon {
    background: var(--gold);
    color: var(--primary);
}
.vmv-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}
.vmv-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
}
.vmv-card p strong { color: var(--gold); }
.vmv-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.vmv-list li {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}
.vmv-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.75rem;
}

@media (max-width: 900px) { .vmv-grid { grid-template-columns: 1fr; gap: 1rem; } }
@media (min-width: 601px) and (max-width: 900px) { .vmv-grid { grid-template-columns: 1fr 1fr; } .vmv-card:last-child { grid-column: 1 / -1; } }

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
    padding: var(--section-pad-y) 0;
    background: var(--bg-light);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.news-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.news-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.news-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-category {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
}
.news-card-body { padding: 1.4rem; }
.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.77rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}
.news-meta span { display: flex; align-items: center; gap: 5px; }
.news-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 1px;
    transition: var(--transition);
}
.news-card:hover .news-read-more { color: var(--gold-dark); gap: 10px; }

.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}
.no-news i { font-size: 3rem; color: var(--border); margin-bottom: 1rem; }
.no-news p { margin-bottom: 1.5rem; }

@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT / LEGACY SECTION
   ============================================================ */
.about-section {
    padding: var(--section-pad-y) 0;
    background: var(--white);
}
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.about-image-wrap img {
    width: 100%; height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform 0.6s ease;
}
.about-image-wrap:hover img { transform: scale(1.03); }
.about-image-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--gold);
    color: var(--primary);
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    font-family: 'Raleway', sans-serif;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.about-image-badge .badge-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}
.about-image-badge .badge-text { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; }

.about-text { }
.about-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.about-text p:first-of-type { font-size: 1.05rem; color: var(--text); }
.about-highlights {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.about-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--primary);
}
.about-highlight i {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(0,39,76,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-image-badge { right: 1rem; }
}

/* ============================================================
   EVENTS SECTION
   ============================================================ */
.events-section {
    padding: var(--section-pad-y) 0;
    background: var(--bg-light);
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.event-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.event-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.event-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.event-card:hover .event-img-wrap img { transform: scale(1.06); }
.event-cat-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--gold);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}
.event-date-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    line-height: 1.1;
}
.event-date-badge .eday { font-size: 1.2rem; font-weight: 800; display: block; }
.event-date-badge .emon { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; }
.event-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.event-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.event-excerpt {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.9rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-light);
    font-style: italic;
}
.event-location i { color: var(--gold-dark); font-size: 0.75rem; }

.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 900px) { .events-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .events-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HEADMASTER SECTION
   ============================================================ */
.headmaster-section {
    padding: var(--section-pad-y) 0;
    background: var(--white);
}
.headmaster-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}
.headmaster-text-side { max-width: 640px; }
.headmaster-quote {
    position: relative;
    margin: 1.5rem 0;
    padding: 1.8rem 2rem 1.8rem 4rem;
    background: var(--bg-light);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.headmaster-quote::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem; left: 1rem;
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
    opacity: 0.4;
}
.headmaster-quote p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.85;
    font-style: italic;
}
.headmaster-sig {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 1.5rem;
}
.sig-line { flex: 1; height: 1px; background: var(--border); }
.sig-info { }
.sig-info strong { display: block; font-size: 0.95rem; color: var(--primary); font-weight: 700; }
.sig-info span { font-size: 0.8rem; color: var(--text-muted); }

.headmaster-image-side {
    position: relative;
    flex-shrink: 0;
}
.headmaster-image-side img {
    width: 280px;
    height: 340px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hm-img-badge {
    position: absolute;
    bottom: -12px; right: -12px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .headmaster-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .headmaster-image-side img { width: 100%; height: 280px; }
    .headmaster-text-side { max-width: 100%; }
}

/* ============================================================
   PIONEER SECTION
   ============================================================ */
.pioneer-section {
    padding: var(--section-pad-y) 0;
    background: var(--bg-light);
}
.pioneer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.pioneer-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.pioneer-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

@media (max-width: 900px) {
    .pioneer-layout { grid-template-columns: 1fr; gap: 2rem; }
    .pioneer-image img { height: 260px; }
}

/* ============================================================
   MOTTO SECTION
   ============================================================ */
.motto-section {
    padding: var(--section-pad-y) 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}
.motto-section::before {
    content: '\201C';
    position: absolute;
    top: -1rem; left: 2%;
    font-family: Georgia, serif;
    font-size: 20rem;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
}
.motto-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}
.motto-title-col { }
.motto-title-col .motto-latin {
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-style: italic;
}
.motto-title-col .motto-english {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
}
.motto-text-col p {
    font-size: 0.96rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.85;
}

@media (max-width: 768px) {
    .motto-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
    position: relative;
    padding: 80px 0;
    background: url('images/topslider1.jpg') center/cover no-repeat;
    overflow: hidden;
    text-align: center;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,39,76,0.92) 0%, rgba(0,39,76,0.82) 100%);
}
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.cta-content .section-title {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.cta-content .section-title::after { left: 50%; transform: translateX(-50%); }
.cta-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 2.2rem;
    background: var(--gold);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: var(--transition);
}
.btn-cta-primary:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(242,203,63,0.4);
}
.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.83rem 2.2rem;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.btn-cta-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
    transform: translateY(-3px);
    color: var(--white);
}
