/* Apex Public School Foundation - Archive Site Styles */

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

:root {
    --primary-dark: #1a1a2e;
    --secondary-dark: #16213e;
    --accent-blue: #4a90d9;
    --accent-green: #2d9a4e;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f5f7fa;
    --border-light: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--secondary-dark);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
}

.logo-img {
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text-light);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .tagline {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

.hero-image {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Notice Box */
.notice-box {
    max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 2rem;
    background-color: var(--bg-white);
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

.notice-box h2 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.notice-box p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.notice-box p:last-child {
    margin-bottom: 0;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.content-section {
    margin-bottom: 3rem;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-dark);
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.content-section p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

/* Mission Highlights */
.mission-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.highlight-card h3 {
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Link Button */
.link-button {
    display: inline-block;
    background-color: var(--accent-green);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
    margin-top: 1rem;
}

.link-button:hover {
    background-color: #237a3e;
    transform: translateY(-2px);
}

/* Grants Page Styles */
.grants-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-green);
}

.stat-card .label {
    font-size: 0.85rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grants Table */
.grants-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
}

.grants-table th,
.grants-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.grants-table th {
    background-color: var(--secondary-dark);
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.grants-table td {
    color: var(--text-medium);
}

.grants-table tr:hover td {
    background-color: var(--bg-light);
}

.grants-table .grant-title {
    color: var(--text-dark);
    font-weight: 500;
}

.grants-table .grant-title small {
    color: var(--accent-blue) !important;
}

.grants-table .amount {
    color: var(--accent-green);
    font-weight: 600;
}

/* Year Navigation */
.year-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.year-nav a {
    padding: 0.5rem 1rem;
    background-color: var(--bg-white);
    color: var(--text-medium);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s;
}

.year-nav a:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.year-nav a.active {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--secondary-dark);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

footer .archive-note {
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .logo-img {
        height: 28px;
        max-width: 150px;
    }

    .hero {
        padding: 2.5rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .grants-table {
        font-size: 0.9rem;
    }

    .grants-table th,
    .grants-table td {
        padding: 0.75rem 0.5rem;
    }

    .notice-box {
        margin: 2rem 1rem 2rem;
    }

    .content-section {
        padding: 1.5rem;
    }
}

/* Mobile table scroll */
.table-wrapper {
    overflow-x: auto;
}
