
:root {
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --accent: #f59e0b;
    --text: #172554;
    --muted: #64748b;
    --background: #f5f8fc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 14px;
    --shadow: 0 8px 28px rgba(15, 23, 42, .07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 36px));
    margin-inline: auto;
}

.topbar {
    padding: 9px 0;
    color: var(--white);
    background: var(--primary-dark);
    font-size: 13px;
}

.topbar-inner,
.nav-inner,
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-inner {
    flex-wrap: wrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}

.nav-inner {
    min-height: 82px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
    font-size: 20px;
    line-height: 1.3;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    margin-top: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 19px;
}

.nav-menu a {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    padding: 9px 12px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline {
    color: var(--primary);
    background: var(--white);
    border-color: var(--border);
}

.btn-outline:hover {
    color: var(--white);
}

.hero {
    position: relative;
    width: 100%;
    height: clamp(280px, 36vw, 560px);
    min-height: 0;
    overflow: hidden;
    background: #1e3a8a;
    color: #ffffff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    padding: 40px 0;
}


.hero-slide.active {
    position: absolute;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}


.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.10)
    );

    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1160px;
}

.hero-content h1 {
    max-width: 700px;
    font-size: clamp(28px, 4vw, 56px);
    line-height: 1.15;
    margin: 0 0 20px;
}

.hero-content p {
    max-width: 650px;
    font-size: clamp(15px, 1.5vw, 20px);
    margin-bottom: 25px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
}

.hero-dot.active {
    background: var(--accent);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero {
        height: 380px;
    }

    .hero-slide {
        padding: 30px 0;
        background-position: center;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

.section {
    padding: 68px 0;
}

.section-alt {
    background: var(--background);
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 35px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.25;
}

.section-heading p,
.muted {
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-body {
    padding: 22px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.card p {
    color: var(--muted);
}

.card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #e2e8f0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.notice-list {
    display: grid;
    gap: 14px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.notice-date {
    min-width: 62px;
    padding: 10px 6px;
    text-align: center;
    background: #dbeafe;
    border-radius: 8px;
    color: var(--primary-dark);
    font-weight: 700;
}

.notice-item h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.notice-item p {
    margin: 0;
    color: var(--muted);
}

.cta {
    padding: 45px;
    border-radius: 18px;
    background: var(--primary-dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta h2 {
    margin: 0 0 8px;
}

.cta p {
    margin: 0;
    color: #dbeafe;
}

.empty-state {
    padding: 28px;
    text-align: center;
    color: var(--muted);
    background: var(--background);
    border-radius: var(--radius);
}

.site-footer {
    padding: 48px 0 20px;
    background: #0f172a;
    color: #e2e8f0;
}

.footer-logo {
    max-width: 120px;
    max-height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
}

.site-footer h3 {
    color: var(--white);
}

.site-footer a {
    display: block;
    margin: 7px 0;
    color: #cbd5e1;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #334155;
    color: #cbd5e1;
    font-size: 13px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 18px;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 11px 8px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .brand {
        font-size: 17px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .hero {
        min-height: 430px;
    }

    .hero-slide {
        padding: 45px 0;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 48px 0;
    }

    .cards,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
