/* =========================================================
Greenwood International Academy — Modern School Theme
Palette: Deep Navy + Warm Gold + Cream
========================================================= */

:root {
    --navy-900: #0a1f44;
    --navy-800: #102a5c;
    --navy-700: #1a3a78;
    --navy-50: #f3f6fc;
    --gold-500: #c8a14b;
    --gold-600: #b08a36;
    --gold-100: #f5edd6;
    --cream: #fbf8f1;
    --ink: #1a1d29;
    --ink-soft: #4b5063;
    --line: #e7e3d8;
    --success: #1f8e5a;
    --warning: #c97b1f;
    --danger: #c0392b;
    --shadow-sm: 0 4px 16px rgba(10, 31, 68, 0.06);
    --shadow-md: 0 12px 40px rgba(10, 31, 68, 0.12);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--navy-900);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.25rem;
}

a {
    color: var(--navy-700);
    text-decoration: none;
    transition: color 0.2s;
}

    a:hover {
        color: var(--gold-600);
    }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold-600);
    margin-bottom: 0.75rem;
}

    .eyebrow.light {
        color: var(--gold-100);
    }

/* ======== HEADER / NAV ======== */
.site-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar {
    background: var(--navy-900);
    color: white;
    font-size: 0.85rem;
    padding: 0.45rem 0;
}

.topbar-info span {
    margin-right: 1rem;
    opacity: 0.85;
}

.topbar-link, .btn-link-style {
    color: white !important;
    margin-left: 1rem;
    background: none;
    border: none;
    font-size: 0.85rem;
    padding: 0;
}

    .topbar-link:hover {
        color: var(--gold-500) !important;
    }

.main-nav {
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    color: white;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 1.4rem;
}

.brand-dot {
    color: var(--gold-500);
}

.brand-text strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    color: var(--navy-900);
    line-height: 1;
}

.brand-text small {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.navbar-nav .nav-link {
    color: var(--ink) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        color: var(--navy-700) !important;
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0.25rem;
        left: 0.9rem;
        right: 0.9rem;
        height: 2px;
        background: var(--gold-500);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s;
    }

    .navbar-nav .nav-link:hover::after {
        transform: scaleX(1);
    }

/* ======== BUTTONS ======== */
.btn-cta {
    background: var(--navy-900) !important;
    color: white !important;
    border: 2px solid var(--navy-900) !important;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

    .btn-cta:hover {
        background: var(--gold-500) !important;
        border-color: var(--gold-500) !important;
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.btn-ghost {
    background: transparent;
    color: var(--navy-900);
    border: 2px solid var(--navy-900);
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    transition: all 0.25s;
}

    .btn-ghost:hover {
        background: var(--navy-900);
        color: white;
    }

.btn-link-arrow {
    color: var(--navy-700);
    font-weight: 600;
    padding: 0;
}

    .btn-link-arrow:hover {
        color: var(--gold-600);
    }

/* ======== ANNOUNCEMENT ======== */
.announcement-bar {
    background: linear-gradient(90deg, var(--gold-500), var(--gold-600));
    color: white;
    padding: 0.6rem 0;
    font-weight: 500;
    font-size: 0.92rem;
}

/* ======== HERO ======== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(10,31,68,0.85) 0%, rgba(16,42,92,0.7) 100%), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1900&q=70') center/cover;
    color: white;
    padding: 7rem 0 6rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    max-width: 880px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero-title {
    color: white;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.hero-accent {
    color: var(--gold-500);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 640px;
    margin: 1rem 0 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

    .hero-actions .btn-ghost {
        color: white;
        border-color: rgba(255,255,255,0.6);
    }

        .hero-actions .btn-ghost:hover {
            background: white;
            color: var(--navy-900);
        }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

    .hero-stats div {
        text-align: left;
    }

    .hero-stats strong {
        display: block;
        font-family: 'Fraunces', serif;
        font-size: 2.2rem;
        color: var(--gold-500);
    }

    .hero-stats span {
        font-size: 0.85rem;
        opacity: 0.85;
        letter-spacing: 0.05em;
    }

/* ======== SECTIONS ======== */
section {
    padding: 5rem 0;
}

.section-heading {
    margin-bottom: 3rem;
}

    .section-heading.split {
        display: flex;
        justify-content: space-between;
        align-items: end;
        flex-wrap: wrap;
        gap: 1rem;
    }

.page-hero {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: white;
    padding: 5rem 0 4rem;
}

    .page-hero h1 {
        color: white;
    }

    .page-hero .lead {
        opacity: 0.85;
        max-width: 700px;
    }

    .page-hero.compact {
        padding: 3.5rem 0 2.5rem;
    }

/* ======== PILLARS ======== */
.pillar-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    height: 100%;
    transition: all 0.3s;
}

    .pillar-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--gold-500);
    }

.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--navy-50);
    color: var(--navy-700);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.pillar-card h4 {
    margin-bottom: 0.5rem;
}

.pillar-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 0;
}

/* ======== NEWS ======== */
.section-news {
    background: white;
}

.news-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

.news-thumb {
    aspect-ratio: 16/10;
    background: var(--navy-50) center/cover no-repeat;
}

.news-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    color: var(--ink-soft);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

.news-body h4 {
    margin: 0.5rem 0 0.75rem;
    font-size: 1.2rem;
}

.news-body p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    flex: 1;
}

.read-more {
    color: var(--navy-700);
    font-weight: 600;
    margin-top: 0.75rem;
}

    .read-more:hover {
        color: var(--gold-600);
    }

/* ======== EVENTS ======== */
.section-events {
    background: var(--cream);
}

.events-list {
    display: grid;
    gap: 1rem;
}

.event-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: all 0.25s;
}

    .event-row:hover {
        border-color: var(--gold-500);
        transform: translateX(4px);
        box-shadow: var(--shadow-sm);
    }

.event-date {
    text-align: center;
    padding: 0.5rem;
    background: var(--navy-900);
    color: white;
    border-radius: 10px;
}

    .event-date .day {
        display: block;
        font-family: 'Fraunces', serif;
        font-size: 1.6rem;
        line-height: 1;
        font-weight: 700;
    }

    .event-date .month {
        display: block;
        font-size: 0.72rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--gold-500);
    }

.event-info h5 {
    margin: 0;
}

.event-info small {
    color: var(--ink-soft);
}

.event-cat {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: var(--gold-100);
    color: var(--gold-600);
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.event-arrow {
    color: var(--navy-700);
}

/* ======== CTA ======== */
.section-cta {
    background: var(--cream);
}

.cta-card {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: white;
    padding: 3rem;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

    .cta-card::before {
        content: '';
        position: absolute;
        top: -40%;
        right: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, var(--gold-500) 0%, transparent 70%);
        opacity: 0.15;
    }

    .cta-card h2 {
        color: white;
        margin: 0.5rem 0;
    }

    .cta-card p {
        opacity: 0.85;
        margin: 0;
    }

    .cta-card .btn-cta {
        background: var(--gold-500) !important;
        border-color: var(--gold-500) !important;
        color: var(--navy-900) !important;
    }

        .cta-card .btn-cta:hover {
            background: white !important;
            border-color: white !important;
        }

/* ======== GALLERY ======== */
.section-gallery {
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-tile {
    aspect-ratio: 1;
    background: var(--navy-50) center/cover no-repeat;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s;
}

    .gallery-tile::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 50%, rgba(10,31,68,0.85));
        opacity: 0;
        transition: opacity 0.3s;
    }

    .gallery-tile:hover {
        transform: scale(1.02);
    }

        .gallery-tile:hover::after {
            opacity: 1;
        }

    .gallery-tile figcaption {
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        color: white;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.3s;
        font-weight: 600;
    }

    .gallery-tile:hover figcaption {
        opacity: 1;
    }

.album-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

    .filter-pill.active, .filter-pill:hover {
        background: var(--navy-900);
        color: white;
        border-color: var(--navy-900);
    }

/* ======== ARTICLE ======== */
.article-page {
    background: white;
}

.article-hero {
    min-height: 380px;
    padding: 5rem 0 3rem;
    background: linear-gradient(180deg, rgba(10,31,68,0.4), rgba(10,31,68,0.85)), var(--navy-700) center/cover;
    color: white;
    display: flex;
    align-items: end;
}

    .article-hero h1 {
        color: white;
        max-width: 800px;
    }

.article-body {
    max-width: 760px;
    padding: 3rem 1rem 5rem;
}

    .article-body .lead {
        font-family: 'Fraunces', serif;
        font-size: 1.3rem;
        color: var(--navy-700);
        margin-bottom: 2rem;
    }

.article-content {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--ink);
}

/* ======== FACULTY ======== */
.faculty-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: all 0.3s;
    height: 100%;
}

    .faculty-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

.faculty-photo {
    aspect-ratio: 4/3;
    background: var(--navy-50) center/cover no-repeat;
}

.faculty-info {
    padding: 1.5rem;
}

    .faculty-info h5 {
        margin-bottom: 0.25rem;
    }

    .faculty-info .designation {
        color: var(--gold-600);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 0.78rem;
    }

    .faculty-info .dept {
        margin: 0.5rem 0;
        color: var(--ink-soft);
        font-size: 0.9rem;
    }

    .faculty-info .qual {
        font-size: 0.85rem;
        color: var(--ink-soft);
        font-style: italic;
    }

.faculty-email {
    font-size: 0.85rem;
}

/* ======== ADMISSIONS / FORMS ======== */
.form-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--line);
    padding: 0.65rem 0.9rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--navy-700);
        box-shadow: 0 0 0 3px rgba(26,58,120,0.1);
    }

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink);
}

.admissions-steps .step-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    height: 100%;
    position: relative;
}

.step-num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold-500);
    display: grid;
    place-items: center;
    font-family: 'Fraunces', serif;
    font-weight: 700;
}

.step-card h5 {
    margin-top: 1rem;
}

.step-card p {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin: 0;
}

/* ======== ABOUT / VALUES ======== */
.rounded-img {
    width: 100%;
    border-radius: var(--radius);
}

.section-values {
    background: var(--navy-900);
    color: white;
}

    .section-values h2 {
        color: white;
    }

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    height: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    transition: all 0.3s;
}

    .value-card:hover {
        background: rgba(255,255,255,0.08);
        border-color: var(--gold-500);
    }

    .value-card i {
        font-size: 2rem;
        color: var(--gold-500);
        margin-bottom: 1rem;
    }

    .value-card h4 {
        color: white;
    }

    .value-card p {
        color: rgba(255,255,255,0.75);
        margin: 0;
    }

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid var(--gold-500);
}

.timeline-item {
    padding: 1rem 0 1.5rem 1.5rem;
    position: relative;
}

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -2.6rem;
        top: 1.4rem;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--gold-500);
        border: 3px solid var(--cream);
    }

    .timeline-item span {
        display: block;
        font-family: 'Fraunces', serif;
        font-size: 1.5rem;
        color: var(--navy-900);
        font-weight: 700;
    }

.program-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    height: 100%;
    transition: all 0.3s;
}

    .program-card:hover {
        border-color: var(--gold-500);
        transform: translateY(-3px);
    }

.program-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gold-100);
    color: var(--gold-600);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ======== CONTACT ======== */
.contact-info-card {
    background: var(--navy-900);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    height: 100%;
}

    .contact-info-card h4 {
        color: white;
    }

    .contact-info-card p {
        color: rgba(255,255,255,0.85);
        margin-bottom: 0.75rem;
    }

    .contact-info-card i {
        color: var(--gold-500);
        margin-right: 0.5rem;
        width: 20px;
    }

    .contact-info-card hr {
        border-color: rgba(255,255,255,0.15);
    }

/* ======== AUTH ======== */
.auth-section {
    padding: 4rem 0;
    background: var(--cream);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-width: 540px;
    margin: 0 auto;
}

    .auth-card h2 {
        margin-bottom: 0.5rem;
    }

/* ======== PORTAL ======== */
.portal-item {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: 0.75rem;
}

    .portal-item small {
        color: var(--ink-soft);
        font-size: 0.78rem;
    }

    .portal-item h6 {
        margin: 0.25rem 0;
    }

.portal-event {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: 0.6rem;
}

/* ======== FOOTER ======== */
.site-footer {
    background: var(--navy-900);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-brand {
    color: white;
    font-size: 1.4rem;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-heading {
    color: white;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: rgba(255,255,255,0.7);
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            color: var(--gold-500);
        }

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

    .newsletter-form .form-control {
        background: rgba(255,255,255,0.06);
        color: white;
        border-color: rgba(255,255,255,0.15);
    }

        .newsletter-form .form-control::placeholder {
            color: rgba(255,255,255,0.4);
        }

.footer-socials a {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: white;
    transition: all 0.2s;
}

    .footer-socials a:hover {
        background: var(--gold-500);
    }

/* ======== UTILITIES & RESPONSIVE ======== */
@media (max-width: 768px) {
    .topbar-info {
        display: none;
    }

    .hero-section {
        padding: 4.5rem 0 4rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .form-card {
        padding: 1.5rem;
    }
}
