/* APHEA Official Website Stylesheet (Static Production) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-deep: #0f2b46;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --bg-page: #f8fafc;
    --surface: #ffffff;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-heading);
    line-height: 1.25;
}

/* Top Utility Bar */
.top-bar {
    background: #081d32;
    color: #94a3b8;
    font-size: 0.82rem;
    padding: 0.45rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Main Navigation Header */
header.site-header {
    background: var(--primary-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(15, 43, 70, 0.15);
}
.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}
.brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.brand-subtitle {
    display: block;
    font-size: 0.75rem;
    color: #93c5fd;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Nav Links */
nav.site-nav {
    display: flex;
    align-items: center;
}
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.nav-item-dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0f2b46;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    min-width: 230px;
    padding: 0.5rem 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 100;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    display: block;
}
.dropdown-item {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.15s ease;
}
.dropdown-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    padding-left: 1.5rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

/* Main Content Container */
main.site-main {
    flex: 1 0 auto;
    width: 100%;
}
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f2b46 0%, #0369a1 50%, #0284c7 100%);
    color: white;
    padding: 4rem 1.5rem 4.5rem;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.2) 0%, transparent 40%),
                      radial-gradient(circle at 10% 90%, rgba(2, 132, 199, 0.25) 0%, transparent 45%);
    pointer-events: none;
}
.hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.95rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #bae6fd;
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    max-width: 900px;
    letter-spacing: -0.5px;
}
.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #e0f2fe;
    max-width: 780px;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats Counter Ribbon */
.stats-ribbon {
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    border-radius: var(--radius-md);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.75rem 2rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cards & Grid */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-tag {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
}

/* Notice List */
.notice-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
.notice-item:hover {
    border-color: var(--primary);
}
.notice-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.notice-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Footer */
footer.site-footer {
    background: #081d32;
    color: #94a3b8;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-heading {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.65rem;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}
.footer-links a:hover {
    color: #38bdf8;
    padding-left: 3px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 960px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    .site-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #0f2b46;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
    }
    .site-nav.open {
        display: block;
    }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .nav-list li {
        width: 100%;
    }
    .nav-link {
        width: 100%;
        padding: 0.75rem;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.2);
        margin: 0.25rem 0 0.5rem;
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
