html, body { overflow-x: hidden; margin: 0; padding: 0; }
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fafafa;
    color: #0a1628;
    margin: 0;
}

/* ── Fixed Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0a1628;
    padding: 12px 0;
}

.site-header a { text-decoration: none; }

.inside-header {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 6px 20px;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-logo { display: block; max-height: 44px; width: auto; }
.header-brand-text { display: none; }

.main-nav { display: none; flex: 1; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav ul li a {
    text-transform: uppercase;
    color: #0a1628;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    padding: 8px 22px;
    border-radius: 8px;
    display: block;
    transition: background 0.2s, color 0.2s;
}
.main-nav ul li a:hover { color: #1a3a6b; background: rgba(10,22,40,0.06); }
.main-nav ul li a.active { background: #e8ecf0; color: #0a1628; }

/* ── Beta Badge (v2 beta) ── */
.beta-badge {
    flex: none;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
    cursor: help;
}

.mobile-menu-btn {
    display: flex;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #0a1628;
    line-height: 1;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 6px 0;
    margin: 6px auto;
    max-width: 1240px;
    width: calc(100% - 24px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 12px 20px;
    color: #0a1628;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}
.mobile-nav a:hover { background: rgba(10,22,40,0.05); }
.mobile-nav a.active { background: #e8ecf0; }

/* ── Content Push ── */
.site-content { padding-top: 100px; min-height: 100vh; }


/* ── Home Hero ── */
.home-hero {
    max-width: 1240px;
    margin: 20px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}
.hero-inner {
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #1a3a6b;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(10,22,40,0.78) 0%, rgba(10,22,40,0.3) 100%);
}
.hero-content {
    max-width: 640px;
    margin-left: 8%;
    margin-right: 5%;
    color: #fff;
}
.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 24px;
    line-height: 1.6;
}
.hero-btn {
    display: inline-block;
    background: #fff;
    color: #0a1628;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.hero-btn:hover { background: #e8ecf0; color: #0a1628; transform: translateY(-1px); }

.hero-logo-watermark {
    position: absolute;
    right: 4%;
    bottom: 50%;
    transform: translateY(50%);
    width: 460px;
    height: auto;
    opacity: 0.12;
    pointer-events: none;
}

/* ── Hero Featured Publikasi ── */
.hero-featured {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 6%;
}
.hero-featured-body { max-width: 640px; min-width: 0; }
.hero-featured-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #8fa3c4;
    margin: 0 0 12px;
}
.hero-dummy-tag {
    display: inline-block;
    vertical-align: middle;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 999px;
    padding: 2px 9px;
    margin-left: 8px;
}
.hero-featured-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 14px;
    color: #fff;
}
.hero-featured-authors { font-size: 14px; color: #c7d4e8; margin: 0 0 16px; }
.hero-featured-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #e2e8f0;
    opacity: 0.9;
    margin: 0 0 24px;
}
.hero-featured-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}
.hero-btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hero-featured-cover {
    width: 300px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.15);
    flex: none;
}

/* ── Home Content ── */
.home-section {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}
.home-grid { display: grid; grid-template-columns: 1fr; align-items: stretch; }

.home-news {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 24px 28px;
}
.home-news-heading {
    font-size: 18px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0a1628;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Domain Cards (Home) ── */
.domain-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.domain-card-h {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow 0.2s;
    display: block;
}
.domain-card-h:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.domain-card-h .icon { font-size: 40px; margin-bottom: 16px; }
.domain-card-h h3 { font-size: 18px; font-weight: 700; color: #0a1628; margin: 0 0 8px; }
.domain-card-h p { font-size: 14px; color: #575760; margin: 0; line-height: 1.6; }


/* ── Task Index (/tasks/) ── */
.task-index { max-width: 1240px; margin: 0 auto; padding: 40px 20px; }
.task-index-title {
    font-size: 24px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0a1628;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.task-index-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.task-index-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 32px 28px;
    text-decoration: none;
    color: #0a1628;
    display: block;
    transition: box-shadow 0.2s, transform 0.2s;
}
.task-index-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.task-index-card .icon { font-size: 36px; margin-bottom: 14px; }
.task-index-card h2 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.task-index-card p { font-size: 14px; color: #575760; margin: 0; line-height: 1.6; }

/* ── Home Section Head ── */
.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0a1628;
}
.home-section-head .home-news-heading { margin: 0; padding: 0; border-bottom: none; }
.home-more-link { font-size: 13px; font-weight: 600; color: #1a3a6b; text-decoration: none; white-space: nowrap; }
.home-more-link:hover { text-decoration: underline; }

/* ── Riset Mini (Home) ── */
.riset-mini { background: #fff; border: 1px solid #e8ecf0; border-radius: 12px; overflow: hidden; }
.riset-mini-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; text-decoration: none; color: #0a1628;
    border-bottom: 1px solid #f1f5f9; transition: background 0.15s;
}
.riset-mini-row:last-child { border-bottom: none; }
.riset-mini-row:hover { background: #f8fafc; }
.riset-mini-id { font-size: 11px; font-weight: 700; color: #9ca3af; flex: none; font-variant-numeric: tabular-nums; }
.riset-mini-name { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.riset-mini-pic { font-size: 12.5px; color: #6b7280; flex: none; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.riset-mini-dl { font-size: 12.5px; color: #6b7280; flex: none; font-variant-numeric: tabular-nums; }
.badge-mini {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; white-space: nowrap; flex: none;
}
.badge-mini::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-mini.confirm { background: #fef3c7; color: #b45309; }
.badge-mini.hold { background: #fff7ed; color: #ea580c; }
.badge-mini.prep { background: #eff6ff; color: #0369a1; }
.badge-mini.running { background: #f0fdfa; color: #0f766e; }
.badge-mini.rej { background: #fef2f2; color: #dc2626; }
.badge-mini.acc { background: #d1fae5; color: #047857; }
.badge-mini.sched { background: #f5f3ff; color: #6d28d9; }
.badge-mini.soc { background: #ecfeff; color: #0891b2; }
.badge-mini.done { background: #d1fae5; color: #047857; }
.badge-mini.none { background: #f1f5f9; color: #64748b; }
.riset-mini-all {
    display: block; text-align: center; padding: 12px;
    font-size: 13px; font-weight: 600; color: #1a3a6b; text-decoration: none;
    border-top: 1px solid #f1f5f9;
}
.riset-mini-all:hover { background: #f8fafc; }
.riset-mini-loading, .riset-mini-empty { padding: 20px; text-align: center; color: #6b7280; font-size: 13.5px; margin: 0; }

/* ── Publikasi Cards (Home + List) ── */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pub-card {
    background: #fff; border: 1px solid #e8ecf0; border-radius: 12px; overflow: hidden;
    text-decoration: none; color: #0a1628; display: flex; flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pub-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.pub-card-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #0a1628; }
.pub-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pub-card-title { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 0; }
.pub-card-authors { font-size: 12.5px; color: #575760; margin: 0; }
.pub-card-meta { font-size: 12px; color: #9ca3af; margin: 0; }
.pub-card-summary { font-size: 13.5px; color: #575760; line-height: 1.6; margin: 4px 0 0; }

/* ── Publikasi Dummy ── */
.pub-dummy-tag {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 999px;
    padding: 2px 9px;
}
.pub-dummy-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 0 0 1.5rem;
}
.pub-dummy-banner strong { font-weight: 700; }

/* ── CTA Section ── */
.cta-section {
    background: #f9fafb;
    border-top: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
    padding: 60px 20px;
    text-align: center;
}
.cta-title { font-size: 28px; font-weight: 700; color: #0a1628; margin: 0 0 12px; }
.cta-desc { color: #575760; max-width: 600px; margin: 0 auto 24px; font-size: 16px; line-height: 1.6; }

/* ── Page Titles ── */
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0a1628;
}

/* ── Footer ── */
.custom-footer { background: #0a1628; padding: 12px 0 0; margin: 0; }
.footer-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 48px 40px;
    max-width: 1240px;
    margin: 0 auto 12px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo { display: block; max-width: 280px; height: auto; margin-bottom: 16px; }
.footer-legal { font-size: 13px; color: #575760; margin-top: 8px; font-weight: 600; }
.footer-address { font-size: 14px; color: #575760; line-height: 1.7; margin: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; justify-content: center; flex-shrink: 0; }
.contact-row { display: flex; align-items: center; gap: 10px; color: #0a1628; font-size: 14px; }
.contact-row svg { flex-shrink: 0; color: #0a1628; }
.contact-row a { color: #0a1628; text-decoration: none; transition: color 0.2s; word-break: break-all; }
.contact-row a:hover { color: #1a3a6b; }
.footer-bottom {
    background: #070f1d;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 16px 20px;
    font-size: 13px;
}

/* ── Empty State ── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: #8c8c8c;
}
.empty-state svg { margin-bottom: 16px; color: #d1d5db; }
.empty-state h2 { font-size: 20px; font-weight: 700; color: #0a1628; margin: 0 0 8px; }
.empty-state p { font-size: 14px; margin: 0; }

/* ── Utility ── */
.container { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* ── Responsive: md (≥769px) ── */
@media (min-width: 769px) {
    .main-nav { display: flex; }
    .mobile-menu-btn { display: none; }
    .inside-header { padding: 6px 24px; }
}

/* ── Tablet (769–1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .domain-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .domain-card-h { padding: 28px 24px; }
}

/* ── Desktop (≥1025px) ── */
@media (min-width: 1025px) {
    .domain-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .domain-card-h { padding: 36px 28px; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    .site-header { padding: 6px 0; }
    .inside-header { padding: 6px 12px; max-width: calc(100% - 24px); border-radius: 10px; flex-wrap: wrap; }
    .header-logo { max-height: 36px; }
    .site-content { padding-top: 80px; }

    .home-hero { padding: 0 12px; margin-top: 0; }
    .hero-inner { border-radius: 8px; }
    .hero-featured { flex-direction: column; align-items: flex-start; gap: 20px; padding: 6% 20px; }
    .hero-featured-title { font-size: 22px; margin-bottom: 10px; }
    .hero-featured-desc { font-size: 13.5px; margin-bottom: 18px; }
    .hero-featured-cover { width: 100%; max-width: 340px; }
    .hero-content { margin-left: 20px; margin-right: 20px; max-width: 100%; }
    .hero-title { font-size: 20px; margin-bottom: 6px; }
    .hero-subtitle { font-size: 13px; margin-bottom: 12px; }
    .hero-btn { padding: 8px 20px; font-size: 12px; }
    .hero-logo-watermark { width: 280px; right: -20px; opacity: 0.08; }

    .domain-cards { grid-template-columns: 1fr; gap: 12px; }
    .task-index-grid { grid-template-columns: 1fr; }
    .pub-grid { grid-template-columns: 1fr; }

    .footer-card { padding: 32px 16px; max-width: 100%; border-radius: 0; flex-direction: column; gap: 24px; margin: 0 0 8px; }
    .footer-bottom { padding: 16px 20px; font-size: 12px; }
    .page-title { font-size: 20px; margin-bottom: 16px; padding-bottom: 10px; }

    .home-section { padding: 20px 12px; }
    .home-news { padding: 18px 20px; }
    .cta-section { padding: 40px 16px; }
    .cta-title { font-size: 22px; }

}

@media (max-width: 480px) {
    .page-title { font-size: 18px; }
    .hero-title { font-size: 18px; }
    .hero-subtitle { font-size: 12px; }
    .domain-card-h { padding: 20px 16px; }
    .domain-card-h .icon { font-size: 32px; margin-bottom: 12px; }
    .domain-card-h h3 { font-size: 16px; }
    .hero-logo-watermark { width: 200px; right: -30px; opacity: 0.06; }
    .footer-logo { max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
