/* Gaya halaman publik (beranda, berita, login) */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a.link { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.topnav a.link:hover { background: #f1f4f8; text-decoration: none; }
@media (max-width: 640px) { .topnav a.link { display: none; } .brand small { display: none; } }

/* carousel */
.hero { padding: 22px 0 8px; }
.carousel { position: relative; border-radius: 22px; overflow: hidden; background: #0b2b2a; aspect-ratio: 21 / 8; min-height: 340px; box-shadow: var(--shadow); }
.slides { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.slide { flex: 0 0 100%; position: relative; height: 100%; color: #fff; }
.slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide .bg.fallback { background: linear-gradient(135deg, #0f766e, #0ea5e9); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 25, 24, .85) 0%, rgba(5, 25, 24, .55) 45%, rgba(5, 25, 24, .05) 100%); }
.slide .content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 40px 64px; max-width: 640px; }
.slide .kicker { display: inline-flex; align-self: flex-start; gap: 6px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.slide h2 { font-size: clamp(22px, 3.2vw, 38px); font-weight: 800; margin-bottom: 10px; }
.slide p { color: #d8ecea; margin: 0 0 20px; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide .btn { align-self: flex-start; background: #fff; color: var(--primary); }
.slide .btn:hover { background: #e6f5f2; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .25); color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.car-btn:hover { background: rgba(0, 0, 0, .45); }
.car-btn.prev { left: 14px; }
.car-btn.next { right: 14px; }
.dots { position: absolute; left: 64px; bottom: 22px; z-index: 5; display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 99px; border: none; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.dots button.active { width: 28px; background: #fff; }
.car-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: #5eead4; z-index: 5; width: 0; }
@media (max-width: 700px) {
  .carousel { aspect-ratio: auto; height: 440px; min-height: 0; border-radius: 16px; }
  .slide::after { background: linear-gradient(0deg, rgba(5, 25, 24, .92) 10%, rgba(5, 25, 24, .35) 70%); }
  .slide .content { justify-content: flex-end; padding: 24px 22px 54px; }
  .dots { left: 22px; }
  .car-btn { display: none; }
}

/* kartu berita */
.section { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--ink-3); }
.pill-tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.pill-tabs button { border: none; background: none; padding: 7px 14px; border-radius: 9px; font: 600 14px var(--font); color: var(--ink-2); cursor: pointer; }
.pill-tabs button.active { background: var(--primary); color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15, 31, 46, .12); text-decoration: none; }
.news-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0f766e, #0ea5e9) center / cover; }
.news-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 { font-size: 17px; margin: 0; }
.news-card p { margin: 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); margin-top: auto; padding-top: 6px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-3); background: #fff; border: 1px dashed var(--line); border-radius: 16px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { padding: 22px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin-bottom: 12px; }
.feature .ic svg { width: 22px; }
.feature h3 { font-size: 16px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14px; }

footer.site { background: #0b2b2a; color: #9fc3be; padding: 30px 0; margin-top: 30px; font-size: 14px; }
footer.site .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* artikel */
.article { max-width: 820px; margin: 30px auto; overflow: hidden; }
.article .cover { aspect-ratio: 16 / 7; background: linear-gradient(135deg, #0f766e, #0ea5e9) center / cover; }
.article .inner { padding: 28px 34px 36px; }
.article h1 { font-size: clamp(24px, 3vw, 34px); }
.article .lead { font-size: 17px; color: var(--ink-2); }
.article .content p { margin: 0 0 1em; font-size: 16px; line-height: 1.75; }
@media (max-width: 600px) { .article .inner { padding: 20px; } }

/* login */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: linear-gradient(150deg, #0b2b2a 0%, #0f766e 60%, #0ea5e9 130%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .06); right: -180px; bottom: -180px; }
.auth-side h1 { font-size: 34px; max-width: 440px; }
.auth-side p { color: #cdeae6; max-width: 420px; }
.auth-form { display: grid; place-items: center; padding: 32px 16px; background: #fff; }
.auth-form form { width: 100%; max-width: 380px; }
.auth-form h2 { font-size: 26px; margin-bottom: 4px; }
@media (max-width: 860px) { .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; } }
