/* ============================================================
   MITRA AKTUAL NEWS — style.css
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --red:          #DC2626;
  --red-dark:     #B91C1C;
  --red-light:    #FEF2F2;
  --navy:         #0F172A;
  --navy-mid:     #1E293B;
  --navy-soft:    #334155;
  --white:        #FFFFFF;
  --warm-gray:    #F1F0EB;
  --warm-gray2:   #E7E5DF;
  --muted:        #6B7280;
  --muted-light:  #9CA3AF;
  --text:         #111827;
  --text-soft:    #374151;
  --border:       #E5E2DA;
  --font-sans:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,.08);
  --radius:       6px;
  --radius-lg:    10px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--warm-gray);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* ── Breaking Bar ───────────────────────────────────────────── */
.breaking-bar {
  background: var(--red);
  color: #fff;
  font-size: .82rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.breaking-bar .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 34px;
  overflow: hidden;
}
.breaking-label {
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .06em;
  padding-right: 14px;
  border-right: 1px solid rgba(255,255,255,.3);
  margin-right: 14px;
  text-transform: uppercase;
  font-size: .75rem;
}
.breaking-ticker { flex: 1; overflow: hidden; }
.breaking-ticker marquee a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────────── */
header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--red);
}
.header-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-icon {
  width: 52px; height: 52px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.2rem; letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo-text h1 {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.4px;
  line-height: 1.2;
}
.logo-text .tagline {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 2px;
}
.header-meta {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  text-align: right;
  line-height: 1.65;
}

/* ── Search Bar ─────────────────────────────────────────────── */
.search-bar {
  background: var(--navy-mid);
  padding: 10px 20px;
}
.search-form {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  max-width: 480px;
}
.search-form input {
  flex: 1;
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: .88rem;
  background: rgba(255,255,255,.1);
  color: #fff;
  outline: none;
  transition: background .2s;
}
.search-form input::placeholder { color: rgba(255,255,255,.4); }
.search-form input:focus { background: rgba(255,255,255,.18); }
.search-form button {
  padding: 8px 16px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background .15s;
}
.search-form button:hover { background: var(--red-dark); }

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
nav a {
  padding: 11px 14px;
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  transition: color .15s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav a:hover { color: #fff; }
nav a.active {
  color: #fff;
  border-bottom-color: var(--red);
}

/* ── Hero / Featured ────────────────────────────────────────── */
.hero { margin: 28px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  height: 420px;
}
.hero-main {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-main .thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.hero-main:hover .thumb { transform: scale(1.03); }
.hero-main .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
}
.hero-main .meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.hero-side .card {
  flex: 1;
  min-height: 0;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card .thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.card .no-img {
  background: var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
}
.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card .title {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.45;
  margin: 6px 0 6px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .excerpt {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

/* Card horizontal variant */
.card-h { flex-direction: row; }
.card-h .card-body { padding: 12px 14px; }
.card-h .title { font-size: .88rem; -webkit-line-clamp: 2; }

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
}

/* ── Article Meta ───────────────────────────────────────────── */
.art-meta {
  font-size: .76rem;
  color: var(--muted-light);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.art-meta i { margin-right: 3px; }

/* ── Section Title ──────────────────────────────────────────── */
.sec-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 18px;
}
.sec-title-bar {
  width: 4px;
  height: 26px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.sec-title h2 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy);
}

/* ── Grid ───────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ── Main Layout ────────────────────────────────────────────── */
.layout-main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 50px; }
.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.widget-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 4px solid var(--red);
  padding-left: 10px;
  margin-bottom: 14px;
}
.widget-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--warm-gray2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.widget-list li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-list .num {
  font-size: .72rem;
  font-weight: 800;
  color: var(--red);
  width: 22px;
  flex-shrink: 0;
  padding-top: 1px;
}
.widget-list a {
  font-size: .83rem;
  line-height: 1.4;
  color: var(--text-soft);
  transition: color .15s;
}
.widget-list a:hover { color: var(--red); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: .84rem;
  font-weight: 600;
  transition: all .15s;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-soft);
  padding: 0 10px;
}
.pagination a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  margin-top: 56px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 40px;
}
.footer-brand h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.footer-brand p { font-size: .84rem; line-height: 1.7; }
.footer-col h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-left: 3px solid var(--red);
  padding-left: 10px;
}
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a {
  font-size: .83rem;
  color: rgba(255,255,255,.45);
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }
.legal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.legal-badge {
  font-size: .72rem;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px;
  color: rgba(255,255,255,.35);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.25);
}

/* ── Article Page ───────────────────────────────────────────── */
.article-header { margin: 28px 0 20px; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.35;
  font-weight: 900;
  color: var(--navy);
  margin: 10px 0 16px;
}
.article-hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
}
.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-soft);
}
.article-body p { margin-bottom: 1.2em; }
.article-body h2, .article-body h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 1.6em 0 .6em;
}
.article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  background: var(--red-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-soft);
  font-style: italic;
  margin: 1.5em 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; height: auto; }
  .hero-side { display: none; }
  .hero-main { height: 380px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .layout-main { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-main { height: 280px; }
  .header-meta { display: none; }
  .article-header h1 { font-size: 1.5rem; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}