:root {
  --primary: #e91414;
  --bg: #d41818;
  --text: #0e0707;
  --white: rgb(12, 6, 6);
}

@font-face {
  font-display: swap;
}

* {
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

body {
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
  margin: 0;
  line-height: 1.65;
}

/* navbar */
.navbar {
  background: #e91414;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #070505;
  text-decoration: none;
}

.navbar-logo span {
  color: rgb(245, 242, 242);
}

.navbar-center {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.navbar-center a {
  text-decoration: none;
  color: #0c0101;
  font-size: 1.1rem;
  transition: background-color 0.3s, color 0.3s;
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
}

.navbar-center a:hover {
  background-color: #0a0202;
  color: #ff0606;
  text-shadow: 0 0 5px rgb(250, 248, 248);
}

/* ====== Back Button ====== */
.back-btn-wrap {
  margin: 30px 0;
}

.back-btn {
  display: inline-block;
  background: #f70707;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.back-btn:hover {
  background: #333;
}

.layout-full {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Sidebar kanan */
.sidebar {
  border-radius: 8px;
  border: 1px solid #eee;
  position: sticky;
  flex: 0 0 300px;
  top: 20px;
  width: 100%;
  max-width: 350px;
  background: #f3f3f3;
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar a {
  text-decoration: none;
  color: #007bff;
}

.sidebar h3 {
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  font-size: 15px;
  margin-bottom: 10px;
}

.sidebar ul li a {
  text-decoration: none;
  color: #0077cc;
  transition: all 0.2s ease;
}

.sidebar ul li a:hover {
  color: #005fa3;
}

.sidebar-scroll {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.sidebar-modern {
  flex: 1.2;
}

.sidebar-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.sidebar-item-modern {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
  padding: 10px;
}

.sidebar-item-modern:hover {
  transform: translateX(5px);
}

.sidebar-thumb {
  width: 90px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
}

.sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-info h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
/* === KARTU BERITA === */
.row {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
  display: grid;
  gap: 2rem;
  background: #fafbfc;
}

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-width: 800%;
  background: #f7f3f3;
}

.menu-card-link:hover {
  opacity: 0.95;
}

.menu-card-link:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.01);
  transition: 0.3s;
}

.menu-card-link {
  flex: 1 1 calc(33.333% - 20px);
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  text-decoration: none;
}

.menu-card-link:hover {
  transform: translateY(-5px);
}

/* Mobile search form (hidden desktop) */
#hamburger-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #0a0202;
}

.mobile-search {
  display: none;
  margin-top: 1.5rem;
}

.mobile-search input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.mobile-search button {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  background-color: #d00;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#searchResults {
  margin-top: 1rem;
  text-align: center;
}

/* ====== ARTIKEL GRID ====== */
.main-content {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex: 3;
}

.main-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}

/* ====== GAMBAR ARTIKEL ====== */
.featured-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  border-radius: 5px;
  margin: 15px 0;
  filter: brightness(0.85);
  transition: 0.3s ease;
}

/* ====== ISI KARTU ARTIKEL ====== */
.card-content {
  padding: 1rem;
  flex: 1;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #222;
  line-height: 1.4em;
}

.card-content h3:hover {
  color: #e91414;
}

.card-content .excerpt {
  font-size: 0.95rem;
  line-height: 1.5em;
  color: #666;
}

/* Footer */
footer {
  background: #a7a1a1;
  color: black;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

footer a {
  color: black;
  margin: 0 0.5rem;
}

/* Container untuk social icons */
footer .socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

/* Style dasar untuk link social */
footer .socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e1e1e, #2c2c2c);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  color: white;
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
}

.social-links {
  margin-top: 15px;
}
.social-links a {
  font-size: 24px;
  margin: 0 8px;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #ccc;
}
.social-links a:hover {
  transform: scale(1.2);
  color: #ff8243;
}

/* Warna brand masing-masing */
.social-links a.facebook {
  color: #1877f2;
}
.social-links a.instagram {
  background: -webkit-linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.social-links a.tiktok {
  color: #000;
}
.social-links a.linkedin {
  color: #0a66c2;
}
.social-links a.youtube {
  color: #ff0000;
}

.social-links a.youtube:hover {
  color: #ff4d4d;
  transform: scale(1.2);
}

/* Optional: Icon growing effect */
footer .socials a i {
  transition: transform 0.3s ease;
}

footer .socials a:hover i {
  transform: scale(1.2);
}

footer .credit {
  font-size: 0.8rem;
  margin-top: 1rem;
}

footer .credit a:hover {
  font-size: 0.8rem;
  margin-top: 1rem;
  color: rgb(240, 232, 234);
  text-shadow: 0 0 5px rgba(2, 0, 0, 0.3);
  background-color: #0a0202;
}

/* 🌟 AFFILIATE SECTION */
.affiliate-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 8px;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

.affiliate-section h1 {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  text-align: center;
  margin-bottom: 6px;
}

.affiliate-section p {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

/* 🔳 GRID PRODUK */
.affiliate-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* 🛍️ KARTU PRODUK */
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 🖼️ GAMBAR PRODUK */
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fafafa;
}

/* 🏷️ NAMA PRODUK */
.product-card h3 {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  padding: 8px 10px 0;
  margin: 0;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3em;
}

/* 💰 HARGA PRODUK */
.product-card .price {
  font-size: 14px;
  font-weight: 600;
  color: #ee4d2d;
  padding: 4px 10px 10px;
}

/* 🔘 TOMBOL LIHAT PRODUK */
.btn-affiliate {
  display: block;
  text-align: center;
  background: #ee4d2d;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
  text-decoration: none;
  border-top: 1px solid #f2f2f2;
  transition: background 0.2s ease;
  border-radius: 0 0 10px 10px;
}

.btn-affiliate:hover {
  background: #d93c1b;
}

/* =========================================
   LAYOUT UTAMA ARTIKEL
========================================= */
.layout {
  max-width: 1200px;
  margin: 100px auto 50px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Kolom konten utama */
.how {
  width: 100%;
  max-width: 800px;
}

/* =========================================
   HEADING, META, & FEATURE IMAGE
========================================= */
.article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.meta-info {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

.fetur-img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  margin: 15px 0 25px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

/* =========================================
   KONTEN ARTIKEL
========================================= */
.content {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  color: #222;
  line-height: 1.75;
  text-align: left;
}

.content p {
  margin-bottom: 18px;
  font-size: 17px;
}

/* Gambar di dalam artikel */
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 18px 0;
}

/* =========================================
   HEADING DI DALAM ARTIKEL (SEO Friendly)
========================================= */
.content h1 {
  font-size: 20px;
  margin: 25px 0 12px;
  line-height: 1.35;
}

.content h2 {
  font-size: 20px;
  margin: 25px 0 12px;
  line-height: 1.35;
}

.content h3 {
  font-size: 20px;
  margin: 20px 0 10px;
  line-height: 1.35;
}

.content h4,
.content h5,
.content h6 {
  font-size: 20px;
  margin: 18px 0 10px;
  line-height: 1.4;
  font-weight: 600;
}

/* =========================================
   LIST
========================================= */
.content ul,
.content ol {
  padding-left: 20px;
  margin-bottom: 18px;
}

.content ul li,
.content ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* =========================================
   BLOCKQUOTE
========================================= */
.content blockquote {
  border-left: 4px solid #ccc;
  padding-left: 15px;
  color: #555;
  margin: 25px 0;
  font-style: italic;
}

/* =========================================
   TAG
========================================= */
.tags {
  margin-top: 25px;
}

.tags .tag {
  display: inline-block;
  background: #e6e6e6;
  color: #333;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 4px 4px 0 0;
  font-size: 0.85rem;
  transition: 0.2s;
}

.tags .tag:hover {
  background: #cfcfcf;
}
/* =========================================
   HOME PAGE — Bercap News
   CSS KHUSUS UNTUK pages/home.php SAJA
========================================= */
/* Container */
.container {
  width: 95%;
  max-width: 1250px;
  margin: 40px auto;
  display: flex;
  gap: 35px;
}

/* =============================== */
/*            HERO NEW             */
/* =============================== */
/* CONTAINER */
.hero-ad-modern {
  width: 100%;
  height: 380px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  background: #000;
}

/* GAMBAR */
.hero-ad-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.hero-ad-modern:hover img {
  transform: scale(1.05);
}

/* OVERLAY INFO */
.hero-ad-info {
  position: absolute;
  bottom: 30px;
  left: 30px;
  max-width: 420px;
  padding: 20px 25px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 15px;
  backdrop-filter: blur(4px);
}

/* TITLE */
.hero-ad-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* DESC */
.hero-ad-info p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 12px;
}

/* PRICE */
.price-box {
  display: inline-block;
  padding: 6px 12px;
  background: #ff7b00;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* BUTTON CTA */
.cta-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #1a73e8;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s;
}

.cta-btn:hover {
  background: #0b55b8;
}

/* =============================== */
/*         MAIN + FEATURED         */
/* =============================== */
.featured-article {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  margin-bottom: 35px;
}

.featured-article:hover .featured-img {
  transform: scale(1.05);
  filter: brightness(0.75);
}

.featured-text {
  position: absolute;
  bottom: 25px;
  left: 25px;
  color: #fff;
  max-width: 500px;
  z-index: 10;
}

.featured-text h2 {
  font-size: 32px;
  margin: 5px 0 10px;
  font-weight: 800;
}

.featured-text p {
  font-size: 16px;
  opacity: 0.9;
}

.cat-badge {
  background: #e91414;
  color: #fff;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}

.cat-badge.small {
  font-size: 12px;
  padding: 4px 9px;
}

/* =============================== */
/*           ARTICLE GRID          */
/* =============================== */
.article-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
}

.article-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card-img img {
  height: 170px;
}

.card-body {
  padding: 15px 20px 20px;
}

.card-body h3 {
  font-size: 19px;
  margin: 8px 0;
  font-weight: 700;
  line-height: 1.3;
}

.card-body p {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  line-height: 1.5;
}

/* =============================== */
/*          PAGINATION NEW         */
/* =============================== */
.pagination-new {
  display: flex;
  gap: 8px;
  margin: 35px 0;
  flex-wrap: wrap;
}

.pag-btn {
  padding: 10px 16px;
  background: #fff;
  border-radius: 50px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s;
}

.pag-btn:hover {
  background: #eee;
}

.pag-btn.active {
  background: #e91414;
  color: #fff;
  border-color: #e91414;
}

/* ====== Main Article ====== */
main.how {
  flex: 1 1 700px;
  min-width: 300px;
}

/* ====== Share Buttons ====== */
.share-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 25px 0;
}

.share-label {
  font-weight: 600;
  margin-right: 5px;
  color: #555;
}

.share-icons a {
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, filter 0.25s ease;
  text-decoration: none;
}

/* Hover efek */
.share-icons a:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.2));
}

/* WARNA BRAND ASLI */
.share-icons a.fb { color: #1877f2; }
.share-icons a.tw { color: #000000; }
.share-icons a.wa { color: #25d366; }

.share-icons a.ig {
  background: linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.share-icons a.tt { color: #000000; }
.share-icons a.th { color: #000000; }

/* ====== Related Articles ====== */
.related-section {
  margin-top: 40px;
}

.related-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.related-card h4 {
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Tablet / Laptop kecil: sidebar tetap kanan */
@media (max-width: 1024px) {
  .layout {
    flex-direction: row;
    max-width: 1200px;
    margin: 80px auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
    flex-wrap: wrap;
  }
  main.how {
    flex: 1 1 65%;
  }
  .sidebar {
    flex: 0 0 30%;
    max-width: 350px;
  }
  .layout-full {
    max-width: 1100px;
    margin: 100px auto 50px;
    padding: 0 20px;
  }
  .articles-full {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .how {
    width: 100%;
    max-width: 750px;
  }
}

/* Tablet (992px ke bawah) */
@media (max-width: 992px) {
  .layout {
    flex-direction: column;
    padding: 0 20px;
  }
  .layout-full {
    max-width: 95%;
    margin-top: 90px;
    padding: 0 15px;
  }

  .articles-full {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
  }

  .featured-img {
    height: 200px;
  }

  .card-content h3 {
    font-size: 1.05rem;
  }

  .card-content .excerpt {
    font-size: 0.95rem;
  }
  .sidebar {
    max-width: 100%;
    position: relative;
    top: unset;
    width: 100%;
    margin-top: 20px;
    text-align: left;
  }

  .sidebar h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .sidebar ul li {
    font-size: 14px;
  }

  .content p {
    font-size: 15px;
    line-height: 1.6;
  }
  .affiliate-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .container {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 36px;
  }
}

/* HP / smartphone: sidebar turun */
@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
  }

  #facebook,
  #twitter,
  #instagram {
    display: none;
  }

  .navbar-center {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 50vh;
    background-color: #f7f4f4;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    align-items: flex-start;
    transition: right 0.3s ease;
  }

  .navbar-center.active {
    right: 0;
  }

  .mobile-search {
    display: block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #f7f4f4;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
    margin-top: 0rem;
    z-index: 100000;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    display: block;
    font-style: italic;
    color: #140905;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }

  .navbar-nav a:hover {
    text-shadow: 0 0 5px rgb(238, 9, 9);
  }

  #hamburger-menu:hover {
    text-shadow: 0 0 5px rgb(238, 9, 9);
  }

  .navbar-nav {
    margin-top: 10px;
    background-color: rgb(226, 207, 207);
  }

  .articles-full {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .main-content {
    width: 100%;
    border-radius: 10px;
  }
  .card-content {
    padding: 14px;
  }

  .card-content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .card-content .excerpt {
    font-size: 0.9rem;
    color: #555;
  }
  .fetur-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
    height: 180px;
    height: 300px;
    border-bottom: 1px solid #eee;
  }
  .hero-content {
    left: 20px;
    bottom: 30px;
  }

  .hero-content h1 {
    font-size: 28px;
  }
  .layout-full {
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    margin-top: 90px;
  }
  .layout {
    margin: 70px auto 40px;
    padding: 0 16px;
    gap: 20px;
  }
  .article-title {
    font-size: 1.7rem;
  }
  .content {
    font-size: 1rem;
    line-height: 1.7;
    padding: 0;
  }
  .content p {
    font-size: 1.3rem;
    margin-top: 1rem;
  }
  .content h1,
  .content h2,
  .content h3,
  .content h4,
  .content h6 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  main.how,
  .sidebar {
    width: 100%;
    flex: unset;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .share {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  .affiliate-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .how,
  .sidebar {
    max-width: 100%;
  }
  .how {
    max-width: 100%;
    text-align: left;
  }
  .sidebar {
    width: 100%;
    margin-top: 30px;
    padding: 18px;
  }
  .sidebar h3 {
    font-size: 1.1rem;
  }
  .sidebar ul li {
    font-size: 14px;
  }
  .back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background: #d32f2f;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
  }
  .back-btn:hover {
    background: #b71c1c;
  }
}

/* === PERBAIKAN HOME LAYOUT AGAR HORIZONTAL DI HP (480px) === */
@media (max-width: 480px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  .layout-full {
    padding: 0 10px;
    margin-top: 80px;
  }
  .layout {
    padding: 0 12px;
    gap: 12px;
  }
  .how {
    width: 100%;
    padding: 0;
    text-align: left;
  }
  .how,
  .sidebar {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .how img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .how p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .sidebar {
    padding: 15px;
    border: none;
    box-shadow: none;
    background: #fafafa;
  }
  .sidebar h3 {
    font-size: 1rem;
  }

  .sidebar ul li {
    font-size: 13px;
  }

  .back-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
  .btn-affiliate {
    font-size: 12px;
    padding: 6px 0;
  }
  main.how,
  .sidebar {
    width: 100%;
    flex: unset;
  }
  .featured-img {
    width: 100%;
    height: 300px;
    margin: 15px 0;
    max-height: 280px;
    object-fit: cover;
    border-radius: 10px;
  }
  .affiliate-section {
    padding: 0 5px;
  }

  .affiliate-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .share-buttons {
    gap: 10px;
  }
  .share-icon {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }
  .product-card {
    border-radius: 8px;
  }

  .product-card img {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .product-card h3 {
    font-size: 12px;
    height: 30px;
  }
  .product-card .price {
    font-size: 12.5px;
    padding: 3px 8px 8px;
  }
  .card-content h3 {
    font-size: 1rem;
  }

  .card-content .excerpt {
    font-size: 0.85rem;
  }
  .meta-info {
    font-size: 0.8rem;
  }
  .article-title {
    font-size: 1.7rem;
  }
  .content {
    font-size: 1.3rem;
    line-height: 1.7;
    padding: 0;
  }
  .content p {
    font-size: 1.2rem;
    line-height: 1.7;
    padding: 0;
  }
  .content h1,
  .content h2,
  .content h3,
  .content h4,
  .content h6 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .main-content {
    width: 100%;
    border-radius: 10px;
  }
  .related-grid {
    grid-template-columns: 1fr; /* satu kolom saja */
    gap: 12px;
  }

  .related-card img {
    height: 100px;
  }

  .related-card h4 {
    font-size: 0.8rem;
    padding: 6px 8px;
  }

  .tags .tag {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .share {
    padding: 5px 8px;
    font-size: 0.8rem;
  }

  .back-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  /* Container utama */
  .container {
    padding: 0 10px;
  }
  .card-body h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.35;
  }

  .card-body p {
    font-size: 0.83rem;
    line-height: 1.45;
    color: #555;
  }

  .cat-badge.small {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}
