/* =========================================================
   RESET
========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   HEADER UTAMA
========================================================= */
/* =========================================================
   HEADER (PERSIS HOMEPAGE)
========================================================= */

.header {
  background: #fff;
  border-bottom: 2px solid #ddd;
  text-align: center;
}

.header-top {
  background: #ffffff;
  color: #605e5e;
  text-align: center;
  font-size: 14px;
  padding: 6px;
}

.header-main {
  max-width: 1150px;
  margin: auto;
  padding: 12px 16px;
  display: grid;
  justify-content: space-between;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
}

.header-main .left,
.header-main .center,
.header-main .right {
  display: flex;
  align-items: center;
}

.weather {
  font-size: 14px;
  color: #555;
}

.center {
  flex-direction: column;
  text-align: center;
}

.logo-img {
  max-height: 60px;
  margin-bottom: 5px;
}

.tagline {
  font-size: 13px;
  color: #666;
  font-style: italic;
}

/* =========================================================
   NAVIGATION (PERSIS HOMEPAGE)
========================================================= */

.nav {
  background: #ffffff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px 0;
  list-style: none;
  margin: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: #040404;
  font-weight: bold;
  transition: 0.3s;
  font-size: 16px;
}

.nav-links a:hover {
  color: #ff0000;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

main {
  max-width: 1150px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 32px;
}

/* =========================================================
   ARTICLE CONTENT
========================================================= */

.content {
  flex: 3;
}

.category-tag {
  background: #d71920;
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.content h2 {
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 700;
}

.date {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}

.content img {
  width: 100%;
  border-radius: 10px;
  margin: 14px 0 24px;
}

.content p {
  font-size: 15px;
  margin-bottom: 18px;
  text-align: justify;
  color: #333;
}

/* =========================================================
   SIDEBAR — COMMENT BOX
========================================================= */

.sidebar {
  flex: 1;
  background: #fff;
  padding: 26px;
  border-radius: 14px;
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  height: fit-content;
}

.sidebar h3 {
  font-size: 16px;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 2px solid #d71920;
}

.input-name,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  margin-bottom: 14px;
}

textarea {
  height: 90px;
  resize: none;
}

button {
  background: #d71920;
  border: none;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.25s;
  margin-top: 4px;
}

button:hover {
  background: #b11218;
}

/* ===== COMMENTS LIST ===== */

.comments {
  margin-top: 25px;
}

.comments h3 {
  border-bottom: 2px solid #d71920;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.comment {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  font-size: 24px;
}

.comment-body {
  background: #fafafa;
  padding: 12px 14px;
  border-radius: 8px;
}

.comment-body .name {
  font-weight: bold;
  font-size: 14px;
}

.comment-body p {
  font-size: 14px;
  margin: 4px 0;
}

.comment-body small {
  color: #777;
  font-size: 11px;
}

/* =========================================================
   FIND MORE
========================================================= */

.find-more {
  max-width: 1150px;
  padding: 0 20px;
  margin: 60px auto 40px;
}

.find-more h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.find-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.find-card {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  display: flex;
  gap: 14px;
  transition: 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.find-card:hover {
  transform: translateY(-4px);
}

.find-card img {
  width: 150px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
}

.find-content h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.find-content p {
  font-size: 13px;
  color: #555;
}

/* FOOTER */
.footer {
  background: #f1f1f1;
  padding: 30px 20px 15px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  display: flex;
  align-items: flex-start;      /* posisikan sedikit naik */
  justify-content: center;
  margin-top: -10px;            /* dorong logo ke atas */
}

.footer-logo-img {
  width: 260px;                 /* perbesar ukuran logo */
  height: auto;
  object-fit: contain;
  transform: translateY(-5px);  /* sedikit naik */
  filter: brightness(0.95);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.08) translateY(-5px);
  filter: brightness(1);
}

/* QUICK LINKS */
.footer-links h4 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, auto); /* ✅ bikin dua kolom */
  gap: 6px 20px; /* jarak antar item */
}

.footer-links ul li a {
  color: #555;
  text-decoration: none;
  font-size: 13px;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #e74c3c;
}

/* FOLLOW US (perbaikan ikon sosial media) */
.footer-social {
  text-align: left;
}

.social-links {
  display: flex;
  align-items: center;       /* sejajarkan ikon secara vertikal */
  justify-content: flex-start;
  gap: 12px;                 /* jarak antar logo */
}

.social-links a img {
  width: 26px;               /* ukuran lebar ikon */
  height: 26px;              /* tinggi disamakan */
  object-fit: contain;       /* jaga proporsi logo */
  filter: grayscale(40%);    /* efek elegan sedikit abu */
  transition: transform 0.2s, filter 0.2s;
}

.social-links a img:hover {
  transform: scale(1.15);    /* efek zoom saat hover */
  filter: grayscale(0%);
}

.copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #777;
}

.top3-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 40px 0;
}

.top3-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top3-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.top3-content {
    padding: 15px;
}

.top3-content h2 {
    font-size: 18px;
    margin: 10px 0 5px;
}

.top3-content p {
    font-size: 14px;
    color: #666;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.search-btn {
    padding: 8px 14px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.search-btn:hover {
    background: #c0392b;
}
/* SEARCH BOX WRAPPER */
.search-box {
    display: flex;
    width: 100%;
    margin-bottom: 15px;
    gap: 8px;
}

/* INPUT SEARCH */
.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.25s;
}

.search-input:focus {
    border-color: #e63946;
    box-shadow: 0 0 4px rgba(230, 57, 70, 0.3);
}

/* SEARCH BUTTON */
.search-btn {
    background: #e63946;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.25s;
}

.search-btn:hover {
    background: #d62839;
}

/* ICON SEARCH */
.search-btn i {
    color: white;
    font-size: 18px;
}
ini tambahin di detail-isi-berita.css

/* =====================================
   DETAIL BERITA — MOBILE CLEAN FIX
===================================== */
@media (max-width: 768px) {

  /* MAIN LAYOUT JADI 1 KOLOM */
  main {
    display: block !important;
    padding: 0 14px;
  }

  /* ARTIKEL */
  .berita-detail,
  .article-detail,
  .content-detail {
    width: 100% !important;
    margin: 0;
  }

  /* JUDUL */
  .berita-detail h1,
  .article-detail h1 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  /* META INFO */
  .berita-meta,
  .article-meta {
    font-size: 12px;
    margin-bottom: 10px;
    color: #777;
  }

  /* GAMBAR UTAMA */
  .berita-detail img,
  .article-detail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 12px 0;
  }

  /* ISI ARTIKEL */
  .berita-detail p,
  .article-detail p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  /* SIDEBAR / KOMENTAR TURUN */
  .sidebar,
  .comment-box,
  .write-comment {
    width: 100% !important;
    margin-top: 24px;
  }

  /* FORM KOMENTAR */
  .write-comment input,
  .write-comment textarea {
    width: 100%;
    font-size: 13px;
  }

  .write-comment button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }
}