@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap');

:root {
    --primary: #003399;
    --primary-dark: #00214d;
    --accent: #FFCC00;
    --ink: #14203a;
    --muted: #6b7185;
    --bg: #f6f8fc;
    --line: rgba(20, 32, 58, .1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

h1, h2, h3, .serif {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    margin: 0;
    letter-spacing: -.01em;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 26px;
}

/* ---------- Top nav ---------- */
.pub-topbar {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    z-index: 50;
}

.pub-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: .92rem;
    text-decoration: none;
    color: var(--primary-dark);
}

.pub-brand img {
    height: 34px;
}

.pub-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pub-nav a {
    text-decoration: none;
    font-size: .87rem;
    font-weight: 600;
    color: var(--ink);
    padding: 9px 14px;
    border-radius: 8px;
    transition: background .15s;
}

.pub-nav a:hover {
    background: #f0f3fa;
}

.pub-nav a.active {
    color: var(--primary);
    background: #eaf0ff;
}

.pub-nav a.cta {
    background: var(--primary);
    color: #fff;
    margin-left: 6px;
}

.pub-nav a.cta:hover {
    background: var(--primary-dark);
}

.pub-burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

@media (max-width: 860px) {
    .pub-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px;
        box-shadow: 0 12px 30px rgba(0, 20, 60, .12);
    }

    .pub-nav.open {
        display: flex;
    }

    .pub-nav a {
        padding: 12px 10px;
    }

    .pub-burger {
        display: block;
    }
}

/* ---------- Hero ---------- */
.pub-hero {
    background: linear-gradient(160deg, var(--primary-dark), var(--primary) 70%);
    color: #fff;
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.pub-hero::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255, 204, 0, .12);
    right: -140px;
    top: -140px;
}

.pub-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.pub-hero .eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--accent);
}

.pub-hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.12;
    max-width: 680px;
    position: relative;
}

.pub-hero p {
    max-width: 560px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .82);
    margin-top: 20px;
    position: relative;
}

.pub-hero .hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
}

/* ---------- Sections ---------- */
.pub-section {
    padding: 70px 0;
}

.pub-section.alt {
    background: var(--bg);
}

.section-head {
    margin-bottom: 34px;
}

.section-head .eyebrow-sm {
    color: var(--primary);
    font-weight: 700;
    font-size: .76rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-head p {
    color: var(--muted);
    max-width: 560px;
    margin-top: 10px;
}

.prose {
    color: #3a3f52;
    font-size: 1rem;
    line-height: 1.75;
    white-space: pre-line;
}

.prose h3 {
    font-size: 1.15rem;
    margin: 20px 0 8px;
}

/* ---------- Cards ---------- */
.pub-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 20, 60, .05);
}

/* ASEAN country grid */
.asean-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.asean-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    transition: transform .2s, box-shadow .2s;
}

.asean-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 20, 60, .1);
}

.asean-card .flag {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.asean-card h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.asean-card p {
    color: var(--muted);
    font-size: .85rem;
    margin: 0;
    line-height: 1.55;
}

/* Community preview cards */
.post-preview {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}

.post-preview .author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-preview .author img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.post-preview .author b {
    font-size: .88rem;
}

.post-preview .author span {
    font-size: .74rem;
    color: var(--muted);
    display: block;
}

.post-preview p {
    font-size: .92rem;
    color: #3a3f52;
    margin: 0;
    white-space: pre-line;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.contact-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.contact-item .label {
    font-size: .76rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.contact-item .val {
    font-weight: 700;
    margin-top: 4px;
}

/* ---------- Buttons ---------- */
.btn-pub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-pub-gold {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-pub-gold:hover {
    background: #e6b800;
}

.btn-pub-outline {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .5);
}

.btn-pub-outline:hover {
    background: rgba(255, 255, 255, .18);
}

.btn-pub-solid {
    background: var(--primary);
    color: #fff;
}

.btn-pub-solid:hover {
    background: var(--primary-dark);
}

/* ---------- Footer ---------- */
.pub-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .7);
    padding: 50px 0 28px;
}

.pub-footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 26px;
}

.pub-footer .serif {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.pub-footer a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .85rem;
    display: block;
    margin-bottom: 6px;
}

.pub-footer a:hover {
    color: #fff;
}

.pub-footer .col-title {
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 12px;
}

.pub-footer .bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 34px;
    padding-top: 20px;
    font-size: .78rem;
    text-align: center;
    color: rgba(255, 255, 255, .45);
}
