/*
Theme Name: Suka News Dua
Description: Tema portal berita kedua untuk Suka Core.
Version: 0.1.0
Author: Suka Web
Text Domain: suka-news-dua
*/

:root {
  --sn2-bg: #fff;
  --sn2-text: #172033;
  --sn2-muted: #667085;
  --sn2-border: #e5e7eb;
  --sn2-accent: #1d4ed8;
  --sn2-width: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--sn2-text); background: var(--sn2-bg); font-family: system-ui, sans-serif; line-height: 1.65; }
.skip-link:focus { position: fixed; z-index: 100002; top: 10px; left: 10px; width: auto; height: auto; padding: 10px 14px; clip: auto; clip-path: none; color: #fff; background: var(--sn2-accent); border-radius: 6px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 32px), var(--sn2-width)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--sn2-border); background: #fff; }
.header-ad-row { padding: 16px 0; background: #f6f8fc; }
.header-ad-row__inner { display: grid; gap: 12px; }
.header-ad-row__inner img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 8px 28px rgb(15 23 42 / 8%); }
.header-brand-row { border-block: 1px solid var(--sn2-border); }
.header-brand-row__grid { min-height: 124px; display: grid; grid-template-columns: 1fr minmax(280px, 1.25fr) 1fr; align-items: center; gap: 40px; }
.header-date { display: grid; justify-items: end; text-align: right; color: var(--sn2-muted); font-size: .82rem; letter-spacing: .02em; }
.header-date__day { color: var(--sn2-text); font-size: .96rem; font-weight: 750; }
.mobile-menu-toggle, .mobile-menu-head, .mobile-menu-backdrop { display: none; }
.header-search { width: min(100%, 440px); justify-self: center; }
.header-search .search-form { position: relative; display: flex; height: 48px; border: 1px solid var(--sn2-border); border-radius: 999px; background: #f8fafc; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.header-search .search-form:focus-within { border-color: #93b4f5; box-shadow: 0 0 0 4px rgb(29 78 216 / 10%); background: #fff; }
.header-search label { flex: 1; }
.header-search .search-field { width: 100%; height: 100%; border: 0; outline: 0; padding: 0 18px; background: transparent; color: var(--sn2-text); }
.header-search .search-submit { border: 0; padding: 0 22px; color: #fff; background: var(--sn2-accent); font-weight: 700; cursor: pointer; }
.header-brand { display: flex; justify-content: flex-start; text-align: left; }
.header-brand .custom-logo { display: block; max-height: 72px; width: auto; }
.site-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.04em; }
.site-title a { color: var(--sn2-accent); }
.header-nav-stack { color: var(--sn2-text); background: transparent; border-bottom: 1px solid var(--sn2-border); }
.primary-nav ul, .secondary-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; padding: 0; margin: 0; list-style: none; overflow: visible; }
.primary-nav { border-bottom: 1px solid var(--sn2-border); }
.primary-nav a, .secondary-nav a { display: block; white-space: nowrap; transition: color .2s; }
.primary-nav a { padding: 12px 0; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }
.secondary-nav a { padding: 9px 0; color: var(--sn2-muted); font-size: 13px; font-weight: 600; }
.primary-nav a:hover, .primary-nav .current-menu-item > a,
.secondary-nav a:hover, .secondary-nav .current-menu-item > a { color: var(--sn2-accent); }
.breaking-news { color: #fff; background: var(--sn2-accent); }
.breaking-news__inner { min-height: 46px; display: flex; align-items: center; gap: 20px; overflow: visible; }
.breaking-news__label { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; padding-left: 6px; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }
.breaking-news__label span { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / 18%); animation: sn2-pulse 1.5s infinite; }
.breaking-news__viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.breaking-news__track { display: flex; width: max-content; gap: 48px; animation: sn2-ticker 45s linear infinite; }
.breaking-news__track:hover { animation-play-state: paused; }
.breaking-news__track a { position: relative; white-space: nowrap; font-size: .88rem; font-weight: 650; }
.breaking-news__track a::after { content: "•"; position: absolute; right: -27px; opacity: .55; }
@keyframes sn2-ticker { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 24px)); } }
@keyframes sn2-pulse { 50% { opacity: .45; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .breaking-news__label span { animation: none; } }

.site-main { min-height: 55vh; padding: 40px 0; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.home-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr); gap: 36px; align-items: start; }
.home-main { min-width: 0; }
.home-featured { margin-bottom: 48px; }
.home-featured__image { display: block; aspect-ratio: 16 / 9; margin-bottom: 18px; overflow: hidden; border-radius: 16px; background: #e5e7eb; }
.home-featured__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.home-featured:hover img { transform: scale(1.025); }
.home-featured time, .home-card time, .home-list-card time { color: var(--sn2-muted); font-size: .76rem; font-weight: 650; }
.home-featured h1 { margin: 7px 0 0; font-size: 27px; line-height: 1.25; letter-spacing: -.025em; }
.home-featured h1 span { color: var(--sn2-accent); font-weight: 850; }
.home-section { margin-top: 48px; }
.home-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; border-bottom: 2px solid var(--sn2-accent); }
.home-section__heading h2 { margin: 0; padding: 10px 16px; color: #fff; background: var(--sn2-accent); border-radius: 9px 9px 0 0; font-size: 1.15rem; letter-spacing: .01em; }
.home-section__heading a { color: var(--sn2-accent); font-size: .8rem; font-weight: 750; }
.home-grid { display: grid; gap: 20px; }
.home-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-card__image { display: block; aspect-ratio: 4 / 3; margin-bottom: 12px; overflow: hidden; border-radius: 11px; background: #e5e7eb; }
.home-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.home-card:hover img { transform: scale(1.04); }
.home-card h3 { margin: 5px 0 0; font-size: 1rem; line-height: 1.35; }
.home-ad { margin: 48px 0; }
.home-ad:empty { display: none; }
.home-ad img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 14px; }
.home-category-slider { overflow: hidden; }
.home-category-slider__track { display: flex; width: max-content; gap: 20px; animation: sn2-category-slider 28s linear infinite; }
.home-category-slider__track:hover { animation-play-state: paused; }
.home-category-slider .home-card { width: calc((min(70vw, 790px) - 40px) / 3); max-width: 250px; }
.home-category-label { display: inline-block; margin: 0 9px 5px 0; padding: 3px 8px; border-radius: 5px; color: #fff; background: var(--sn2-accent); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
@keyframes sn2-category-slider { from { transform: translateX(0); } to { transform: translateX(calc(-16.6667% - 3.34px)); } }
.home-list { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--sn2-border); }
.home-list-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--sn2-border); }
.home-list-card > a { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #e5e7eb; }
.home-list-card img { width: 100%; height: 100%; object-fit: cover; }
.home-list-card h3 { margin: 4px 0 7px; font-size: 1.15rem; line-height: 1.35; }
.home-list-card p { margin: 0; color: var(--sn2-muted); font-size: .86rem; }
.home-pagination ul { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 30px 0 0; list-style: none; }
.home-pagination a, .home-pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; padding-inline: 10px; border: 1px solid var(--sn2-border); border-radius: 8px; font-size: .82rem; font-weight: 750; }
.home-pagination .current { color: #fff; border-color: var(--sn2-accent); background: var(--sn2-accent); }
.home-layout > .sidebar { position: sticky; top: 24px; }

.post-list { display: grid; gap: 24px; }
.post-card { padding-bottom: 24px; border-bottom: 1px solid var(--sn2-border); }
.post-card h2, .post-card h3 { margin: 6px 0; line-height: 1.3; }
.post-meta { color: var(--sn2-muted); font-size: .875rem; }
.entry-content { max-width: 760px; }
.sidebar { border-left: 1px solid var(--sn2-border); padding-left: 28px; }
.sidebar-block { margin-bottom: 34px; }
.sidebar-ad:empty { display: none; }
.sidebar-ad { display: grid; gap: 14px; }
.sidebar-ad img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 12px; }
.sidebar-heading { margin-bottom: 16px; border-bottom: 2px solid var(--sn2-accent); }
.sidebar-heading h2 { display: inline-block; margin: 0; padding: 8px 12px; color: #fff; background: var(--sn2-accent); border-radius: 8px 8px 0 0; font-size: .9rem; }
.sidebar-category-grid__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.sidebar-category-grid article { min-width: 0; }
.sidebar-thumb { display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; overflow: hidden; border-radius: 8px; background: #e5e7eb; }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar h3 { margin: 0; font-size: .8rem; line-height: 1.35; }
.sidebar-popular__items { counter-reset: popular; display: grid; }
.sidebar-popular article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--sn2-border); }
.sidebar-popular__rank { color: var(--sn2-accent); font-size: 1.45rem; font-weight: 900; line-height: 1; }
.sidebar-popular small { color: var(--sn2-muted); font-size: .68rem; }
.sidebar-category-list__items { display: grid; }
.sidebar-category-list article { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sn2-border); }
.sidebar-category-list article > a { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #e5e7eb; }
.sidebar-category-list img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-category-list time { display: block; margin-bottom: 3px; color: var(--sn2-muted); font-size: .65rem; }
/* Editorial pages */
.single-article__header { max-width: 780px; margin-bottom: 28px; }
.single-article__categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.single-article__categories a, .archive-hero > span, .page-hero > span { display: inline-block; padding: 6px 10px; color: #fff; background: var(--sn2-accent); border-radius: 6px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.single-article__header h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; letter-spacing: -.045em; }
.single-article__lead { margin: 18px 0; color: #475569; font-size: 1.1rem; line-height: 1.65; }
.single-article__byline { display: flex; align-items: center; gap: 12px; }
.single-article__byline img { border-radius: 50%; }
.single-article__byline strong { display: block; font-size: .85rem; }
.single-article__hero { margin: 0 0 32px; }
.single-article__hero img { width: 100%; border-radius: 16px; }
.single-article__hero figcaption { padding-top: 8px; color: var(--sn2-muted); font-size: .72rem; }
.single-article__body { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 22px; }
.article-share { position: sticky; top: 30px; align-self: start; display: grid; gap: 8px; }
.article-share span { color: var(--sn2-muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.article-share a { display: flex; align-items: center; gap: 8px; width: max-content; min-width: 42px; height: 42px; padding: 0 11px; color: #fff; background: #0f172a; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.article-share svg { width: 19px; height: 19px; fill: currentColor; }
.article-share b, .article-share--icons b { display: none; }
.article-share--labels b { display: inline; }
.single-article__body--wide { grid-template-columns: minmax(0, 1fr); }
.single-article > .article-share { position: static; display: flex; flex-wrap: wrap; align-items: center; margin: 22px 0; }
.article-share .share-facebook { background: #1877f2; }
.article-share .share-whatsapp { background: #25d366; }
.single-article .entry-content { max-width: 720px; font-size: 1.05rem; line-height: 1.85; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; line-height: 1.25; }
.entry-content blockquote { margin: 30px 0; padding: 20px 24px; border-left: 4px solid var(--sn2-accent); background: #f0f7ff; font-size: 1.15rem; }
.entry-content img { border-radius: 12px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.article-tags a { padding: 6px 10px; color: var(--sn2-muted); background: var(--sn2-surface); border-radius: 999px; font-size: .72rem; }
.article-navigation { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.article-navigation a { padding: 18px; border: 1px solid var(--sn2-border); border-radius: 12px; }
.article-navigation small { display: block; margin-bottom: 6px; color: var(--sn2-accent); }
.single-related { margin-top: 48px; }
.archive-hero, .page-hero { margin-bottom: 32px; padding: 34px; background: linear-gradient(135deg, #eff6ff, #fff); border: 1px solid #dbeafe; border-radius: 18px; }
.archive-hero h1, .page-hero h1 { margin: 14px 0 0; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.045em; }
.archive-description, .page-hero p { max-width: 680px; color: var(--sn2-muted); }
.archive-grid { display: grid; gap: 20px; }
.archive-card { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--sn2-border); }
.archive-card__image { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #e5e7eb; }
.archive-card__image img { width: 100%; height: 100%; object-fit: cover; }
.archive-card__body time { display: block; margin: 8px 0 4px; color: var(--sn2-muted); font-size: .72rem; }
.archive-card h2 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.archive-card p { margin: 8px 0 0; color: var(--sn2-muted); }
.archive-pagination { margin-top: 34px; }
.archive-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-pagination .page-numbers { padding: 9px 13px; border: 1px solid var(--sn2-border); border-radius: 8px; }
.archive-pagination .current { color: #fff; background: var(--sn2-accent); border-color: var(--sn2-accent); }
.page-layout { max-width: 900px; }
.page-article__image { margin: 0 0 32px; }
.page-article__image img { width: 100%; border-radius: 16px; }
.page-content { max-width: 760px; margin-inline: auto; font-size: 1.03rem; line-height: 1.8; }
.error-404 { padding-block: 75px; text-align: center; }
.error-404__code { color: #dbeafe; font-size: clamp(7rem, 22vw, 15rem); font-weight: 950; line-height: .75; letter-spacing: -.09em; }
.error-404__eyebrow { margin-top: 34px; color: var(--sn2-accent); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.error-404 h1 { margin: 8px 0; font-size: clamp(2rem, 5vw, 3.4rem); }
.error-404 > p { color: var(--sn2-muted); }
.error-404__search { max-width: 520px; margin: 24px auto 18px; }
.error-404__home { display: inline-block; padding: 12px 18px; color: #fff; background: var(--sn2-accent); border-radius: 9px; font-weight: 750; }
.error-latest { margin-top: 70px; text-align: left; }
.empty-state { padding: 50px; text-align: center; background: var(--sn2-surface); border-radius: 16px; }
.site-footer { margin-top: 48px; color: #cbd5e1; background: #0f172a; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1fr; gap: clamp(36px, 7vw, 88px); padding-block: 64px; }
.footer-grid h2 { margin: 0 0 20px; color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .09em; }
.footer-brand .custom-logo { max-width: 210px; max-height: 70px; width: auto; filter: brightness(0) invert(1); }
.footer-title { margin: 0; color: #fff; font-size: 1.65rem; font-weight: 850; }
.footer-brand > p:last-child { max-width: 420px; margin: 20px 0 0; color: #94a3b8; font-size: .92rem; }
.footer-links ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.footer-links a { color: #cbd5e1; font-size: .9rem; font-weight: 650; transition: color .2s, transform .2s; }
.footer-links a:hover { color: #fff; }
.footer-social__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.footer-social__list a { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 11px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 10px; color: #e2e8f0; font-size: .8rem; font-weight: 700; transition: border-color .2s, background .2s, transform .2s; }
.footer-social__list a:hover { border-color: rgb(255 255 255 / 25%); background: rgb(255 255 255 / 7%); transform: translateY(-2px); }
.footer-social__list a.is-disabled { opacity: .4; pointer-events: none; }
.footer-social__list span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: #fff; background: var(--sn2-accent); }
.footer-social__list svg { width: 15px; height: 15px; fill: currentColor; }
.footer-social__list .social-youtube span { background: #ff0000; }
.footer-social__list .social-instagram span { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.footer-social__list .social-tiktok span, .footer-social__list .social-x span, .footer-social__list .social-threads span { background: #050505; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgb(255 255 255 / 8%); color: #64748b; font-size: .78rem; }
@media (max-width: 800px) {
  body.mobile-menu-open { overflow: hidden; }
  .header-brand-row__grid { min-height: 0; padding-block: 16px; grid-template-columns: 1fr auto; gap: 14px; }
  .header-brand { grid-column: 1; grid-row: 1; }
  .header-date { display: none; }
  .header-brand .custom-logo { max-width: 170px; max-height: 55px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .mobile-menu-toggle { grid-column: 2; grid-row: 1; display: grid; place-content: center; gap: 4px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #171717; }
  .mobile-menu-toggle > span:not(.screen-reader-text) { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; }
  .header-nav-stack { position: fixed; z-index: 100001; inset: 0 0 0 auto; width: min(88vw, 360px); padding: 18px; background: #fff; box-shadow: -12px 0 40px rgb(15 23 42 / 16%); overflow-y: auto; transform: translateX(110%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .header-nav-stack.is-open { transform: translateX(0); visibility: visible; }
  .mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--sn2-border); }
  .mobile-menu-logo { display: flex; align-items: center; min-width: 0; }
  .mobile-menu-logo .custom-logo-link { display: block; }
  .mobile-menu-logo .custom-logo { display: block; width: auto; max-width: 165px; max-height: 52px; }
  .mobile-menu-logo > a { color: var(--sn2-accent); font-size: 1.25rem; font-weight: 800; }
  .mobile-menu-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: #171717; font-size: 1.6rem; }
  .mobile-menu-backdrop { position: fixed; z-index: 100000; inset: 0; display: block; background: rgb(15 23 42 / 48%); backdrop-filter: blur(3px); }
  .mobile-menu-backdrop[hidden] { display: none; }
  .primary-nav, .secondary-nav { border: 0; }
  .primary-nav .container, .secondary-nav .container { width: 100%; padding: 0; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .primary-nav li { min-width: 0; }
  .primary-nav a { padding: 12px 10px; border-radius: 8px; font-size: 13px; text-align: center; white-space: normal; }
  .primary-nav a:hover, .primary-nav .current-menu-item > a { color: #fff; background: var(--sn2-accent); }
  .secondary-nav { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--sn2-border); }
  .secondary-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
  .secondary-nav a { padding: 8px 4px; border-radius: 8px; font-size: 13px; text-align: center; }
  .breaking-news__inner { gap: 14px; }
  .breaking-news__label { font-size: 0; }
  .breaking-news__label::after { content: "News"; font-size: .7rem; }
  .header-ad-row { padding: 10px 0; }
  .header-ad-row__inner img { min-height: 70px; border-radius: 10px; }
  .content-layout, .home-layout { grid-template-columns: 1fr; }
  .home-layout > .sidebar { position: static; }
  .home-grid--three { grid-template-columns: 1fr; }
  .home-category-slider { width: calc(100vw - 32px); }
  .home-category-slider .home-card { width: calc(100vw - 32px); max-width: none; }
  .home-list-card { grid-template-columns: 130px minmax(0, 1fr); gap: 14px; }
  .home-list-card p { display: none; }
  .archive-card { grid-template-columns: 130px minmax(0, 1fr); gap: 14px; }
  .archive-card p { display: none; }
  .single-article__body { grid-template-columns: 1fr; }
  .article-share { position: static; display: flex; flex-wrap: wrap; align-items: center; }
  .article-share--labels b { display: inline; }
  .article-share--icons b { display: none; }
  .article-navigation { grid-template-columns: 1fr; }
  .archive-hero, .page-hero { padding: 24px; }
  .sidebar { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 48px; }
  .footer-social__list { grid-template-columns: repeat(2, minmax(0, 160px)); }
}
