/*
Theme Name: Harian Empat Lawang
Theme URI: https://harianempatlawang.com/
Author: Sadam H.
Description: Tema premium portal berita profesional dengan warna merah–hitam–putih–cokelat.
Version: 1.0
*/

/* =========================
   RESET & GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f5f5f5;
  color: #222;
  line-height: 1.6;
}

a { color: #b50000; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* WARNA BRAND */
:root {
  --he-red: #b50000;
  --he-red-dark: #7a0000;
  --he-black: #000;
  --he-white: #fff;
  --he-brown: #5b331f;
}

/* WRAPPER */
.container {
  width: 92%;
  max-width: 1080px;
  margin: auto;
}

/* =========================
   HEADER
========================= */
.site-header-top {
  background: linear-gradient(90deg, var(--he-black), #440000, #b50000);
  border-bottom: 4px solid var(--he-brown);
  color: var(--he-white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title-text {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-tagline {
  font-size: 12px;
  opacity: 0.8;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input[type="search"] {
  border: none;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  width: 160px;
}

.header-search input[type="search"]::placeholder {
  color: rgba(255,255,255,0.6);
}

.header-search button {
  border: none;
  background: #ffffff;
  color: #b50000;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
/* NAV MENU */
.site-nav-wrap {
  background: #111;
  border-bottom: 3px solid var(--he-red);
}

.main-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 18px;
  padding: 8px 0;
}

.main-nav a {
  color: #f0f0f0;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 4px;
}

.main-nav a:hover {
  border-bottom: 2px solid var(--he-red);
}

.nav-toggle {
  display: none;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

/* =========================
   BREAKING NEWS BAR
========================= */
.breaking-bar {
  background: linear-gradient(90deg, #4b0000, #b50000, #ff4444);
  color: #fff;
  padding: 6px 0;
  overflow: hidden;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breaking-label {
  background: #ffffff;
  color: #b50000;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 11px;
}

.breaking-ticker {
  white-space: nowrap;
  font-size: 13px;
}

.breaking-ticker a {
  color: #ffecec;
  margin-right: 40px;
}

/* =========================
   SECTION TITLE
========================= */
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  padding: 4px 12px;
  background: linear-gradient(90deg, rgba(181,0,0,0.1), rgba(0,0,0,0.1));
  border-left: 4px solid var(--he-red);
  margin-bottom: 12px;
}

.section-title span {
  font-size: 12px;
  opacity: 0.75;
}



/* =========================
   LIST BERITA TERBARU
========================= */
.list-vertical {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e1e1e1;
}

.list-vertical .thumb {
  flex: 0 0 110px;
}

.list-vertical .thumb img {
  width: 110px;
  height: 75px;
  object-fit: cover;
  border-radius: 5px;
}

.list-vertical .body h3 {
  font-size: 15px;
}

.list-vertical .meta {
  font-size: 11px;
  opacity: 0.7;
}

/* =========================
   GRID REKOMENDASI
========================= */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.grid-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.grid-card-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.grid-card-body {
  padding: 12px 12px;
}

.grid-card-body h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.grid-card-body .meta {
  font-size: 11px;
  opacity: 0.7;
}

/* =========================
   SLIDER PERISTIWA
========================= */
.peristiwa-slider-wrap {
  position: relative;
}

.swiper {
  width: 100%;
}

.swiper-slide {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.peristiwa-item-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.peristiwa-item-body {
  padding: 10px 12px;
}

.peristiwa-item-body h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.peristiwa-item-body .meta {
  font-size: 11px;
  opacity: 0.7;
}

/* NAV SLIDER */
.peristiwa-nav {
  position: absolute;
  top: -34px;
  right: 0;
  display: flex;
  gap: 8px;
}

.peristiwa-nav div {
  background: var(--he-red);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: var(--he-black);
  color: #ccc;
  padding: 40px 0 25px;
  margin-top: 40px;
}

.footer-brand-title {
  font-size: 20px;
  color: #fff;
  font-weight: 900;
}

.footer-links a {
  color: #ddd;
  margin-right: 12px;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.7;
}

/* =========================
   RESPONSIVE MOBILE
========================= */
@media (max-width: 768px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    background: #111;
    padding: 12px;
  }
}
/* ==========================
   HERO PREMIUM – MIRIP DETIK
=========================== */

.hero-wrapper {
    position: relative;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

/* Overlay gelap */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.0) 30%,
        rgba(0,0,0,0.7) 100%
    );
}

/* Posisi text */
.hero-text {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
    color: #fff;
}

/* Category mirip Detik */
.hero-category {
    font-size: 12px;
    background: rgba(255,255,255,0.25);
    padding: 4px 10px;
    display: inline-block;
    border-radius: 20px;
    margin-bottom: 10px;
    backdrop-filter: blur(5px);
}

/* Judul hero */
.hero-title {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

/* Tanggal berita */
.hero-date {
    font-size: 12px;
    opacity: 0.9;
}