@font-face {
    font-family: "Manrope";
    src: url("../vendor/fonts/manrope/manrope-400.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../vendor/fonts/manrope/manrope-500.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../vendor/fonts/manrope/manrope-600.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../vendor/fonts/manrope/manrope-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../vendor/fonts/manrope/manrope-800.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy-900: #0b1530;
    --navy-800: #122349;
    --navy-700: #1a315f;
    --charcoal-900: #101828;
    --charcoal-700: #344054;
    --charcoal-500: #667085;
    --charcoal-300: #d0d5dd;
    --surface: #f5f7fb;
    --surface-alt: #eef2f8;
    --card: rgba(255, 255, 255, 0.72);
    --card-strong: rgba(255, 255, 255, 0.9);
    --gold-500: #d6b25e;
    --gold-300: #edd9a0;
    --line: rgba(16, 24, 40, 0.1);
    --shadow-soft: 0 12px 36px -24px rgba(16, 24, 40, 0.34);
    --shadow-card: 0 22px 48px -34px rgba(11, 21, 48, 0.35);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--charcoal-900);
    background:
        radial-gradient(circle at 10% -20%, rgba(18, 35, 73, 0.08), transparent 48%),
        radial-gradient(circle at 100% 0%, rgba(214, 178, 94, 0.1), transparent 40%),
        var(--surface);
    line-height: 1.65;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(1240px, calc(100% - 32px));
}

.topbar {
    background: linear-gradient(90deg, #0b1530, #122349);
    color: rgba(255, 255, 255, 0.88);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar small {
    font-size: 13px;
    font-weight: 500;
}

.main-navbar {
    background: rgba(245, 248, 253, 0.74);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
    box-shadow: 0 10px 24px -22px rgba(16, 24, 40, 0.55);
    padding-top: 12px;
    padding-bottom: 12px;
    transition: background-color 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, padding 0.24s ease;
}

.main-navbar.is-scrolled {
    background: rgba(11, 21, 48, 0.86);
    border-bottom-color: rgba(214, 178, 94, 0.26);
    box-shadow: 0 16px 28px -20px rgba(7, 13, 30, 0.82);
    padding-top: 8px;
    padding-bottom: 8px;
}

.main-navbar.is-scrolled .brand-title {
    color: #f8fbff;
}

.main-navbar.is-scrolled .brand-subtitle {
    color: rgba(255, 255, 255, 0.72);
}

.main-navbar.is-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

.main-navbar.is-scrolled .nav-link:hover,
.main-navbar.is-scrolled .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.main-navbar .navbar-brand {
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    padding: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 24, 40, 0.12);
}

.brand-title {
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--navy-900);
    font-weight: 800;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--charcoal-500);
    font-weight: 600;
}

.main-navbar .nav-link {
    color: #1d2939;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.22s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.8);
}

.main-navbar .dropdown-menu {
    margin-top: 8px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.main-navbar .dropdown-item {
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--charcoal-700);
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus,
.main-navbar .dropdown-item.active {
    color: var(--navy-800);
    background: rgba(18, 35, 73, 0.08);
}

.navbar .btn,
.btn {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fefefe;
    border-color: transparent;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    box-shadow: 0 14px 24px -18px rgba(11, 21, 48, 0.64);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #162f5f, #1e3b72);
}

.btn-outline-primary {
    color: var(--navy-800);
    border-color: rgba(18, 35, 73, 0.2);
    background: rgba(255, 255, 255, 0.72);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    border-color: var(--navy-700);
    background: var(--navy-700);
}

.page-hero {
    padding: 32px 0;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.page-hero-home {
    padding: 24px 0 32px;
}

.page-hero-inner {
    padding: 28px 0;
}

.hero-shell {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.82), rgba(239, 244, 252, 0.62)),
        linear-gradient(135deg, rgba(18, 35, 73, 0.08), rgba(214, 178, 94, 0.08));
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-card);
    padding: 32px;
    overflow: hidden;
}

.hero-shell::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(18, 35, 73, 0.12) 0%, rgba(18, 35, 73, 0) 70%);
    pointer-events: none;
}

.hero-main {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-eyebrow,
.kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    min-height: 32px;
    padding: 4px 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: #745418;
    background: linear-gradient(135deg, rgba(239, 217, 160, 0.42), rgba(214, 178, 94, 0.18));
    border: 1px solid rgba(214, 178, 94, 0.45);
}

.page-title {
    margin: 0;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--navy-900);
    font-weight: 800;
}

.page-description {
    margin-top: 16px;
    max-width: 62ch;
    color: var(--charcoal-700);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.55;
    font-weight: 500;
}

.page-main {
    padding: 40px 0;
    flex: 1 0 auto;
}

.row.g-3,
.row.g-4 {
    --bs-gutter-x: 24px;
    --bs-gutter-y: 24px;
}

.section-title {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.22;
    color: var(--navy-900);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.content-card,
.feature-card,
.notice-card,
.news-card,
.home-feed-card,
.home-compact-item {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: var(--card);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.content-card,
.feature-card,
.home-feed-card {
    padding: 24px;
}

.notice-card,
.news-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.24s ease, border-color 0.2s ease;
}

.notice-card:hover,
.news-card:hover,
.home-compact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(18, 35, 73, 0.22);
    box-shadow: 0 24px 40px -28px rgba(11, 21, 48, 0.45);
}

.notice-meta {
    color: var(--charcoal-500);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
    display: block;
}

.news-thumb-small {
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 12px;
}

.home-feed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.home-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.home-panel-title {
    color: var(--navy-900);
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.home-link-more {
    color: var(--navy-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.home-link-more:hover {
    color: var(--navy-900);
    background: rgba(18, 35, 73, 0.08);
}

.home-stack {
    display: grid;
    gap: 12px;
}

.home-compact-item {
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.24s ease;
}

.home-item-title {
    color: var(--navy-900);
    font-size: clamp(18px, 1.75vw, 24px);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.home-news-carousel {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-card);
    background: #0d1e42;
}

.hero-news-carousel {
    margin-bottom: 0;
    border-radius: 20px;
}

.page-hero-home .home-news-carousel {
    box-shadow: 0 28px 56px -34px rgba(11, 21, 48, 0.56);
}

.home-news-slide-image,
.home-news-slide-fallback {
    width: 100%;
    aspect-ratio: 21 / 8;
    object-fit: cover;
}

.home-news-slide-fallback {
    background: linear-gradient(135deg, #122349, #274b7a);
}

.home-news-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    background: linear-gradient(180deg, rgba(10, 18, 35, 0.2) 0%, rgba(10, 18, 35, 0.86) 65%, rgba(10, 18, 35, 0.92) 100%);
    backdrop-filter: blur(6px);
}

.home-news-caption .page-title {
    color: #fff;
    font-size: clamp(24px, 2.8vw, 40px);
    max-width: 80%;
}

.home-news-caption .page-description {
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(14px, 1.25vw, 18px);
    max-width: 72%;
}

.home-news-carousel .carousel-indicators {
    margin-bottom: 8px;
}

.home-news-carousel .carousel-indicators [data-bs-target] {
    width: 20px;
    height: 4px;
    border-radius: 999px;
}

.home-news-carousel .carousel-control-prev,
.home-news-carousel .carousel-control-next {
    width: 44px;
}

.table-clean {
    margin: 0;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.table-clean thead th {
    background: linear-gradient(90deg, #122349, #1a315f);
    color: #fff;
    border-color: transparent;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.table-clean tbody td {
    border-color: rgba(16, 24, 40, 0.06);
    color: var(--charcoal-700);
    vertical-align: middle;
}

.table-clean tbody tr:hover td {
    background: rgba(18, 35, 73, 0.04);
}

.list-clean {
    padding-left: 20px;
}

.list-clean li {
    margin-bottom: 8px;
}

.org-card-photo {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(16, 24, 40, 0.08);
}

.page-main .pagination {
    gap: 8px;
    flex-wrap: wrap;
}

.page-main .page-item .page-link {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(16, 24, 40, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal-700);
    font-size: 14px;
    font-weight: 700;
    background: var(--card-strong);
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.page-main .page-item .page-link:hover {
    color: var(--navy-900);
    border-color: rgba(18, 35, 73, 0.35);
    background: #ffffff;
}

.page-main .page-item.active .page-link {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
}

.page-main .page-item.disabled .page-link {
    color: #98a2b3;
    border-color: rgba(16, 24, 40, 0.08);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

.page-main .page-item:first-child .page-link,
.page-main .page-item:last-child .page-link {
    padding: 0 12px;
}

.footer-main {
    margin-top: auto;
    background:
        radial-gradient(circle at 15% -20%, rgba(214, 178, 94, 0.18), transparent 38%),
        linear-gradient(135deg, #0b1530, #101c3f 55%, #142955);
    color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
    align-items: flex-start;
}

.footer-title {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.footer-text {
    color: rgba(255, 255, 255, 0.72);
    max-width: 42ch;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-links li {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(14px);
}

.reveal-up.in-view {
    animation: riseIn 520ms ease both;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (min-width: 992px) {
    .home-feed-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    }

    .main-navbar .navbar-nav {
        gap: 8px;
    }
}

@media (max-width: 991.98px) {
    .topbar {
        display: none;
    }

    .container {
        width: min(1240px, calc(100% - 24px));
    }

    .main-navbar {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .brand-title {
        font-size: 22px;
    }

    .main-navbar .navbar-collapse {
        margin-top: 12px;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid rgba(16, 24, 40, 0.08);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }

    .main-navbar.is-scrolled .navbar-collapse {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(11, 21, 48, 0.94);
    }

    .main-navbar .nav-link {
        padding: 10px 12px;
    }

    .main-navbar .dropdown-menu {
        border: 0;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        padding: 4px 0 8px 14px;
    }

    .page-hero {
        padding: 20px 0;
    }

    .hero-shell {
        border-radius: 14px;
        padding: 20px;
    }

    .page-title {
        font-size: clamp(30px, 10vw, 42px);
    }

    .page-description {
        margin-top: 12px;
        font-size: 16px;
    }

    .home-news-slide-image,
    .home-news-slide-fallback {
        aspect-ratio: 16 / 11;
    }

    .home-news-caption {
        position: static;
        border-radius: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .home-news-caption .page-title,
    .home-news-caption .page-description {
        max-width: 100%;
    }

    .content-card,
    .feature-card,
    .home-feed-card {
        padding: 20px;
    }

    .page-main {
        padding: 32px 0;
    }

    .footer-main {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}
