/* ============================================================
   SHARED PUBLIC PAGES CSS
   Used by: index.php, about-us.php, news.php, contact-us.php,
            full-post.php, guardian-signin.php
   ============================================================ */

/* outfit-100 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/outfit-v15-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-200 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/outfit-v15-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/outfit-v15-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/outfit-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/outfit-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/outfit-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/outfit-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-800 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/outfit-v15-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-900 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/outfit-v15-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

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

:root {
    --navy:       #150D56;
    --navy-mid:   #1F146B;
    --navy-light: #231773;
    --green:      #01AF67;
    --green-dark: #019a5a;
    --white:      #ffffff;
    --bg:         #f8faff;
    --bg-light:   #f8faff;
    --text:       #1a202c;
    --muted:      #718096;
    --border:     #e2e8f0;
}

body {
    font-family: 'Outfit', sans-serif !important;
    color: var(--text);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 20px rgba(21,13,86,0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 64px;
    gap: 0;
}

/* Brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    max-width: 380px;
    min-width: 0;
}

.header-brand img {
    width: 48px;
    width: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    padding: 4px;
    flex-shrink: 0;
}

.header-brand-text .name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-brand-text .tagline {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Nav links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}

.header-nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 10px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.header-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.header-nav a.active { color: var(--green) !important; background: rgba(1,175,103,0.08); }

/* Header action buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-nav-ghost {
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-nav-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    text-decoration: none;
}

.btn-nav-solid {
    background: var(--green);
    color: #fff;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-nav-solid:hover { background: var(--green-dark); color: #fff; text-decoration: none; }

/* Hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

/* Mobile nav dropdown */
.header-nav.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #150D56;
    padding: 12px 16px 16px;
    z-index: 9998;
    gap: 2px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ══════════════════════════════════════════════════════════
   PAGE HERO BANNER
══════════════════════════════════════════════════════════ */
.page-hero {
    background: var(--navy);
    background-image: url(../img/login-vector.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 72px 0 56px;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(21,13,86,0.82);
}

.page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.page-hero-label {
    display: inline-block;
    background: rgba(1,175,103,0.2);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.page-hero-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: var(--green); }
.page-hero-breadcrumb span { color: rgba(255,255,255,0.35); }
.page-hero-breadcrumb .current { color: rgba(255,255,255,0.9); }

/* ══════════════════════════════════════════════════════════
   PAGE BODY WRAPPER
══════════════════════════════════════════════════════════ */
.page-body  { background: var(--bg); padding: 60px 0; }
.page-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════════════════════════ */
.section-heading { margin-bottom: 48px; }

.section-heading .label {
    display: inline-block;
    background: rgba(1,175,103,0.1);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-heading h2 span { color: var(--green); }

.section-heading p {
    font-size: 16px;
    color: var(--muted);
    margin-top: 10px;
    max-width: 520px;
}

/* ══════════════════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════════════════ */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #0a2a6e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    border: 100px solid rgba(1,175,103,0.06);
    top: -200px; right: -200px;
    pointer-events: none;
}

.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.cta-text h2 span { color: var(--green); }

.cta-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    max-width: 500px;
    line-height: 1.7;
}

.cta-btns { display: flex; gap: 12px; flex-shrink: 0; }

.btn-cta-primary {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-primary:hover { background: var(--green-dark); color: #fff; text-decoration: none; }

.btn-cta-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
}

.btn-cta-ghost:hover {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer { background: #0C0743; padding: 64px 0 0; }

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.footer-brand .school-name { font-size: 18px; font-weight: 700; color: #fff; }

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-top: 8px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--green); }

.footer-bottom {
    margin-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: var(--green); text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════ */
.page-content  { margin-top: 0; }
#loading-icon-bx { z-index: 99999; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .cta-inner    { flex-direction: column; text-align: center; }
    .cta-btns     { justify-content: center; }
    .hero-actions-inner { flex-wrap: wrap; }
    .hero-action-item   { flex: 1 1 calc(50% - 1px); border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
    /* Header */
    .header-nav    { display: none; }
    .nav-toggle    { display: flex; }
    .header-inner  { padding: 0 12px; gap: 8px; height: 58px; }
    .header-actions { gap: 6px; }

    /* Brand — shrink on mobile */
    .header-brand      { gap: 8px; max-width: 240px; }
    .header-brand img  { width: 36px; height: 36px; }
    .header-brand-text .name    { font-size: 13px; max-width: 190px; }
    .header-brand-text .tagline { display: none; }

    /* Guardian login — icon only on mobile */
    .btn-nav-ghost .btn-ghost-text { display: none; }
    .btn-nav-ghost { padding: 7px 10px; }

    /* Staff login — icon only on mobile */
    .btn-nav-solid .btn-text { display: none; }
    .btn-nav-solid { padding: 7px 10px; }

    /* Mobile nav top offset matches new header height */
    .header-nav.mobile-open { top: 58px; }

    /* Page hero */
    .page-hero    { padding: 48px 0 36px; }
    .page-hero h1 { font-size: 26px; }

    /* Page body */
    .page-body { padding: 36px 0; }

    /* CTA */
    .cta-text h2  { font-size: 26px; }
    .cta-btns     { flex-direction: column; width: 100%; }
    .btn-cta-primary,
    .btn-cta-ghost { text-align: center; justify-content: center; }

    /* Footer */
    .footer-inner  { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Hero action items */
    .hero-action-item { flex: 1 1 100%; }
}

@media (max-width: 400px) {
    .header-brand-text .name { max-width: 150px; font-size: 12px; }
    /* keep brand text visible — only hide on truly tiny screens */
}