:root {
    --primary: #2b4f81;
    --accent: #d4af37;
    --dark: #10223c;
    --light: #f5f7fb;
    --text: #1f2937;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--light);
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-main {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    gap: 12px;
    width: 100%;
}

.brand-search-inline {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 220px);
    box-sizing: border-box;
}

.brand-search-inline.is-open {
    display: flex;
}

.brand-search-inline .header-search-input {
    flex: 1;
    min-width: 0;
}

.brand-search-clear {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: #e5e7eb;
    color: #111827;
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
    visibility: hidden;
}

.brand-search-toggle {
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 6px;
    display: none;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-mark {
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.brand-title {
    font-weight: 700;
    color: var(--dark);
}

.brand-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.nav {
    display: flex;
    gap: 20px;
    font-weight: 600;
}

.nav-search-toggle {
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 6px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: rgba(43, 79, 129, 0.1);
}

.header-search-row {
    display: none;
    padding: 0 0 16px;
}

.header-search-row.is-open {
    display: block;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.header-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    padding: 4px 2px;
    -webkit-appearance: searchfield;
    appearance: searchfield;
}

.header-search-input::-webkit-search-cancel-button,
.header-search-input::-webkit-search-decoration,
.header-search-input::-webkit-search-results-button,
.header-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.header-search-clear {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: #e5e7eb;
    color: #111827;
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
    visibility: visible;
}

.header-search-hint {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 6px;
}

@media (max-width: 900px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .site-header+main {
        padding-top: 160px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .brand-main {
        width: 100%;
        flex-wrap: nowrap;
        overflow: hidden;
        gap: 8px;
    }

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

    .brand-mark {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .brand-search-toggle {
        display: inline-flex;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
    }

    .nav-search-toggle {
        display: none;
    }
}

.hero {
    background: linear-gradient(120deg, rgba(43, 79, 129, 0.92), rgba(16, 34, 60, 0.95));
    color: white;
    padding: 80px 0;
}

.latest-strip {
    padding: 50px 0 20px;
    background: var(--light);
}

.latest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.latest-header h2 {
    margin: 0;
}

.latest-all {
    font-weight: 600;
}

.latest-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.latest-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(16, 34, 60, 0.08);
    min-width: 260px;
    max-width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.latest-image img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.latest-body {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.latest-body h3 {
    margin: 0;
    font-size: 1rem;
}

.latest-body p {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.4;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    font-size: 18px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(6px);
    z-index: 50;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .back-to-top {
        width: 34px;
        height: 34px;
        font-size: 16px;
        line-height: 34px;
        right: 14px;
        bottom: 14px;
    }
}

.latest-meta {
    color: #6b7280;
    font-size: 0.85rem;
}

.latest-link {
    font-weight: 600;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    margin-bottom: 16px;
}

.hero-content p {
    max-width: 640px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    background: var(--accent);
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-block;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.section {
    padding: 70px 0;
    background: var(--light);
}

.section h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-lead {
    color: #6b7280;
    margin-bottom: 32px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 34, 60, 0.08);
}

.news-list {
    display: grid;
    gap: 20px;
}

.news-item {
    background: white;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 34, 60, 0.08);
}

.news-item h2 {
    margin: 0 0 6px;
}

.news-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.news-summary {
    color: #374151;
    margin: 0 0 14px;
    line-height: 1.6;
}

.news-image {
    display: block;
    margin: 12px 0 16px;
    border-radius: 14px;
    overflow: hidden;
    max-width: 520px;
    background: #f3f4f6;
}

.news-image img {
    width: 100%;
    display: block;
    object-fit: contain;
    height: auto;
}

.news-link {
    font-weight: 600;
}

.embed-wrapper {
    margin-top: 12px;
}

.preview-card {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    background: #f9fafb;
    border-radius: 14px;
    padding: 12px;
    color: var(--text);
}

.preview-card img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.empty-state {
    background: white;
    padding: 20px;
    border-radius: 14px;
    color: #6b7280;
}

.site-footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.site-footer a {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .header-inner {
        gap: 12px;
    }

    .brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-text {
        line-height: 1.3;
    }

    .nav {
        gap: 10px;
        justify-content: center;
        width: 100%;
    }

    .latest-scroll {
        padding-bottom: 4px;
    }

    .hero {
        padding: 56px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 48px 0;
    }

    .news-item {
        padding: 18px;
    }

    .news-image {
        max-width: 100%;
    }
}

.coming-soon {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(120deg, rgba(43, 79, 129, 0.12), rgba(16, 34, 60, 0.08));
}

.coming-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(16, 34, 60, 0.12);
    text-align: center;
    max-width: 520px;
}

.coming-card h1 {
    margin-bottom: 12px;
}