/* Full stylesheet for the school homepage */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --color-maroon: #7b1e2d;
    --color-navy: #0f246b;
    --color-yellow: #f6c23e;
    --color-white: #ffffff;
    --color-text: #0f246b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
}

.admin-page-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f7f4ef 0%, #eef4ff 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #7b1e2d;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-yellow);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 36, 107, 0.96);
    backdrop-filter: blur(6px);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: white;
    font-size: 14px;
}

.contact-info span,
.social-links a,
.admin-link {
    margin-right: 10px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f6c23e;
    flex-shrink: 0;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo h1 {
    color: white;
    font-size: 15px;
    line-height: 1.1;
    margin: 0;
}

.logo .motto {
    color: rgba(255,255,255,0.85);
    font-size: 9px;
    letter-spacing: 0.8px;
    display: block;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    gap: 16px;
}

.nav-links a {
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease, transform 0.25s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: #f6c23e;
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #f6c23e;
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links .apply-link {
    background: var(--color-yellow);
    color: var(--color-navy);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.nav-links .apply-link::after {
    display: none;
}

.nav-links .apply-link:hover,
.nav-links .apply-link:focus-visible,
.nav-links .apply-link.active {
    background: var(--color-yellow);
    color: var(--color-navy);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, rgba(15, 36, 107, 0.86), rgba(123, 30, 45, 0.82)), url('../images/hero-bg.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    transition: background 0.8s ease-in-out;
    padding: 120px 20px 80px;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.stats,
.about,
.news,
.events,
.testimonials,
.contact,
.footer {
    padding: 80px 0;
}

.stats {
    background: white;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    border-radius: 24px 24px 0 0;
}

.stats-grid,
.news-grid,
.events-grid,
.testimonials-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 30px;
}

.stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-maroon);
}

.stat-label {
    color: var(--color-navy);
}

.about {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.about-content h2,
.section-header h2 {
    font-size: 36px;
    color: var(--color-text);
    margin-bottom: 20px;
}

.section-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    margin-bottom: 24px;
}

.section-actions .btn {
    margin-top: 0;
    padding: 10px 18px;
}

.about-content p,
.section-header p,
.news-body p,
.event-details p,
.testimonial-content p,
.contact-item p,
.footer-about p,
.footer-links a,
.footer-newsletter p {
    color: var(--color-muted);
    line-height: 1.7;
}

/* Results table styling */
.results-table table,
.results-sample table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th,
.results-table td,
.results-sample th,
.results-sample td {
    padding: 12px 10px;
    border: 1px solid rgba(15, 36, 107, 0.15);
    text-align: left;
}

.results-table thead th,
.results-sample thead th {
    background: var(--color-yellow);
    color: var(--color-navy);
    font-weight: 700;
}

/* Prevent anchor targets from being hidden behind fixed header */
section {
    scroll-margin-top: 120px;
}

.explore-section {
    padding: 80px 0;
    background: var(--color-white);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.preview-card {
    background: var(--color-white);
    border: 1px solid rgba(15, 36, 107, 0.15);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.preview-card h3 {
    color: var(--color-navy);
    margin-bottom: 10px;
    font-size: 22px;
}

.preview-card p {
    color: var(--color-navy);
    margin-bottom: 16px;
}

.preview-link {
    display: inline-block;
    color: var(--color-maroon);
    font-weight: 700;
}

.preview-link:hover {
    color: var(--color-maroon);
}

.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--color-navy), var(--color-maroon));
    color: white;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.page-content {
    padding: 60px 0 80px;
    background: var(--color-white);
}

.apply-hero {
    background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-navy) 50%, var(--color-yellow) 100%);
    color: white;
    padding: 140px 0 90px;
}

.apply-hero h1 {
    font-size: 48px;
    margin-bottom: 12px;
}

.apply-page {
    padding: 70px 0 90px;
}

.apply-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}

.apply-intro h2 {
    font-size: 32px;
    color: var(--color-navy);
    margin-bottom: 16px;
}

.apply-intro p {
    color: var(--color-muted);
    margin-bottom: 24px;
}

.apply-highlights {
    display: grid;
    gap: 16px;
}

.highlight-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.highlight-card i {
    color: var(--color-maroon);
    font-size: 22px;
    margin-bottom: 8px;
}

.highlight-card h3 {
    margin-bottom: 6px;
    color: var(--color-navy);
}

.apply-form-card {
    background: var(--color-white);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.12);
}

.apply-form-card h3 {
    font-size: 24px;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.apply-form-card p {
    color: var(--color-navy);
    margin-bottom: 20px;
}

.apply-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    font-weight: 600;
    color: var(--color-navy);
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(15, 36, 107, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    color: var(--color-navy);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #7b1e2d;
    box-shadow: 0 0 0 3px rgba(123, 30, 45, 0.15);
}

.form-success {
    background: var(--color-white);
    border: 1px solid var(--color-yellow);
    color: var(--color-navy);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-errors {
    background: var(--color-white);
    border: 1px solid var(--color-maroon);
    color: var(--color-maroon);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.form-errors ul {
    margin-left: 18px;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 900px) {
    .apply-layout {
        grid-template-columns: 1fr;
    }
}

.admin-dashboard-container {
    padding: 40px 20px 60px;
}

.admin-dashboard-hero {
    background: linear-gradient(135deg, var(--color-navy), var(--color-maroon));
    color: white;
    border-radius: 24px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.15);
    margin-bottom: 24px;
}

.admin-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffd67a;
    margin-bottom: 8px;
}

.admin-dashboard-hero h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.admin-dashboard-hero p {
    color: rgba(255,255,255,0.9);
    max-width: 620px;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-summary-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-summary-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-maroon);
}

.admin-summary-label {
    color: var(--color-navy);
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 36, 107, 0.08);
}

.dashboard-card h3 {
    color: var(--color-navy);
    margin-bottom: 8px;
    font-size: 22px;
}

.dashboard-card p {
    color: #4a5470;
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

.page-grid > div,
.preview-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.preview-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.feature {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature i {
    color: var(--color-maroon);
    font-size: 28px;
    margin-bottom: 10px;
}

.featured-news {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-navy), var(--color-maroon));
}

.featured-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.featured-badge {
    display: inline-block;
    background: var(--color-yellow);
    color: var(--color-navy);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-grid {
    grid-template-columns: repeat(3, 1fr);
}

.news-card,
.event-card,
.testimonial-card,
.contact-info-box,
.contact-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.news-body,
.event-card,
.testimonial-card,
.contact-info-box,
.contact-form {
    padding: 24px;
}

.news-category {
    display: inline-block;
    background: var(--color-maroon);
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 12px;
}

.news-body h3,
.event-details h3,
.testimonial-author h4,
.contact-item h4,
.footer-links h4,
.footer-about h3,
.footer-newsletter h4 {
    color: var(--color-navy);
    margin-bottom: 10px;
}

.read-more {
    color: var(--color-maroon);
    font-weight: 600;
}

.events-grid {
    grid-template-columns: repeat(3, 1fr);
}

.event-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.event-date {
    background: var(--color-maroon);
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    min-width: 64px;
}

.testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
}

.testimonial-content i {
    color: var(--color-maroon);
    font-size: 30px;
    margin-bottom: 12px;
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

input,
textarea,
button {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(15, 36, 107, 0.15);
    border-radius: 10px;
    font: inherit;
}

button {
    cursor: pointer;
    background: var(--color-maroon);
    color: white;
    border: none;
}

.footer {
    background: var(--color-navy);
    color: white;
}

.footer-grid {
    grid-template-columns: repeat(4, 1fr);
}

.footer-social a {
    color: white;
    margin-right: 10px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

@media (max-width: 900px) {
    .stats-grid,
    .news-grid,
    .events-grid,
    .testimonials-grid,
    .contact-grid,
    .footer-grid,
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .stats-grid,
    .news-grid,
    .events-grid,
    .testimonials-grid,
    .contact-grid,
    .footer-grid,
    .about-grid,
    .form-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}

