/* ================= GLOBAL ================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ================= WRAPPER ================= */
.container,
.menu-navbar-top,
.navbar,
.header,
.headline-wrapper {
  max-width: 1100px;
  margin: auto;
  box-sizing: border-box;
}

.mobile-header,
.hamburger,
.search-icon,
#drawer,
#overlay {
  display: none;
}

/* ================= MENU TOP ================= */
.menu-top {
  border-bottom: 1px solid #333;
  font-size: 14px;
}

.menu-navbar-top {
  display: flex;
  justify-content: space-between;
  padding: 5px 15px;
}

.menu-right a {
  margin-left: 10px;
  position: relative;
}

.menu-right a:not(:first-child)::before {
  content: "|";
  position: absolute;
  left: -6px;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  background: linear-gradient(0deg, #ff8c00, #cf7704, #ff8c00);
}

.navbar a {
  padding: 12px 15px;
  color: #fff;
  font-weight: bold;
}

/* ================= HEADER ================= */
.header {
  display: flex;
  align-items: center; /* 🔥 biar sejajar */
  justify-content: space-between;
  gap: 20px;
}

.header img {
  height: 40px;
}

 
/* Kontainer utama */
.search-boks form {
    display: flex;
    max-width:300px;
    border:0px solid #ddd;
    border-radius: 25px; /* Membuat sudut melengkung/capsule */
    overflow: hidden;
    transition: border-color 0.3s;
}

/* Kotak Input */
.search-boks input[type="text"] {
    flex: 1;
        padding: 8px 10px;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: #fff;
    min-width: 0; /* 🔥 penting biar ga overflow */
}

/* Tombol Cari */
.search-boks button {
    background-color: #fafafa;
    color: white;
    padding: 0 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-boks button:hover {
    background-color: #fafafa;
}

/* Efek saat diklik */
.search-boks form:focus-within {
    border-color: #fafafa;
}    
 


/* ================= HEADLINE ================= */
.headline-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 15px;
}

/* ================= GRID BERITA ================= */
.grid-berita {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ================= MAIN ================= */
.main {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.left {
  width: 250px;
}

.content {
  flex: 1;
}

.content { margin:0px 20px 0 20px;}

.right {
  width: 300px;
}

/* ================= INDEX ARTIKEL ================= */
.container_teks {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  align-items: flex-start;
}



/* GAMBAR KIRI (FIX SESUAI REQUEST) */
.gambar-index {
  width: 200px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.gambar-index img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================*/
.rubrik-indek { font-size: 18px;
    font-weight:600;
    text-transform:uppercase;
}


/* ================= SIDEBAR IMAGE ================= */

/* LEFT & RIGHT IMAGE */
.gambar-side {
  width: 110px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.gambar-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* TEKS KANAN */
.content-index {
  flex: 1;
  
}


        
.judul-index {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.kategori-tanggal {
  font-size: 11px;
  color: #B05F04;
  margin-bottom: 5px;
  font-weight:600;
  text-transform:capitalize;
}

.ringkasan-side {
  font-size: 12px;
  color: #555;
  margin-top: 5px;
}

/* ================= SIDEBAR ================= */
.item-side,
.item-right {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
  font-size:14px;
  line-height:1.6;
font-weight:600;}


.number-badge { 
        width:35px;
        height:35px;
        display:flex;
        align-items:center;
        justify-content:center;
        color:#555;
        border-radius:50%;
        font-weight:bold;
        margin-right:5px;
        font-size:20px;
        padding-left:10px;
        font-style: italic;}

.isi-popular { font-size:14px; line-height:1.6;   color:#555;}

/* ===============VIEW ================== */
 

.breadcrumb {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
    font-weight:600;
}

h1 {
    font-size: 28px;
    margin: 10px 0;
}

.rub-tgl-view {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height:1.8;
    text-transform: capitalize;  
}

.img-view {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 10px;
}

.ket-fot-view {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.berita-view {
    font-size: 17px;
    line-height: 1.7;
    color: #222;
}
 

/*==============Pencarian =============*/
 

/* ================= PAGINATION ================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.pagination a, .pagination span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 25px;
    margin: 0 5px;
    text-decoration: none;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 10%;
    font-size: 11px;
    transition: background-color 0.3s, color 0.3s;
    font-weight:bold;
}

.pagination a:hover {
    background-color: #fafafa;
    color: #333;
}

.pagination .active {
    background-color: #ddd;
    color: #333;
    font-weight: bold;
}

.pagination .disabled {
    color: #ddd;
    pointer-events: none;
    border-color: transparent;
}

/*=================GALERI Top*/
       
 @font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
}
 

/* RESET DASAR */
* {
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

/* JUDUL KATEGORI */
.category-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* CONTAINER GRID */
.con-galeri {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 5px;
     margin-top: 15px;
}

/* ITEM */
.art-galeri {
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    background: #fff;
    transition: 0.2s;
}

/* HOVER EFFECT */
.art-galeri:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* GAMBAR */
.art-galeri img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* JUDUL */
.art-galeri h3 {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* LINK */
.art-galeri {
    position: relative;
}
.art-galeri a {
    text-decoration: none;
    color: inherit;
} 
.label-ads {
     top: 8px;
    left: 8px;
    font-size: 19px;
    background: rgba(184,0,0,0.9);
    color: #fff;
    padding: 6px;
    border-radius: 4px;
    font-weight:600;
    
}

.art-galeri:active {
    transform: scale(0.98);
}

.halaman-statis {
    font-size: 15px;
    line-height: 1.8;
    color: #222;
        border:1px solid #fff;
        padding:10px;

}

.halaman-statis h1 {
    margin-bottom: 15px;
}

.halaman-statis p {
    margin-bottom: 10px;
}

/*-------------MEDSOS------------*/
.share-box {
    margin-top: 15px;
    margin-bottom: 20px;
}

.share-title { color: #fff;
    font-weight: 600;
    margin-right: 10px;
}

.share {
    display: inline-block;
    padding: 6px 20px;
    margin: 3px;
    font-size: 17px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
}

.share.fb { background: #1877f2;  color: #fff; }
.share.tw { background: #1da1f2;  color: #fff; }
.share.wa { background: #25d366;  color: #fff;}
.share.tg { background: #0088cc;  color: #fff;}

.share:hover { color: #fff;
    opacity: 0.8;
}

.share.x { background: #000;  color: #fff; }       /* X */
.share.tt { background: #000;  color: #fff; }      /* TikTok */

.share.tt {
    border: 1px solid #000;
    color: #fff;
    background: #000;
}

.full-width {
    width: 100%;
    max-width: 1100px;
    margin: auto;
}
/* ================= BANNER ================= */
 .iklan-top {
  width: 100%;
  margin:10px auto;
  padding: 30 12px;
}

 
.iklan-top img {
  max-height: 120px;
  object-fit: cover;
  margin:auto;
}


/* ================= RESPONSIVE ===================================================================================== */
@media (max-width: 768px) {
.iklan-top img {
  max-height: 120px;
  object-fit: cover;
  margin:auto;
 padding-top:80px;
}
 

  /* MENU */
  .menu-top {display:none;}
   
 
 
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* HEADER */
  .header {
    flex-direction: column;
    gap: 10px;
  }

  .search-box {
    width: 100%;
  }

  /* HEADLINE */
  .headline-wrapper {
    grid-template-columns: 1fr;
  }

  /* GRID */
  .grid-berita {
    grid-template-columns: 1fr;
  }

  /* MAIN */
  .main {
    flex-direction: column;
  }

  .left,
  .right {
    width: 100%;
  }

 

/* ubah jadi: content, right, left */
.content { order: 1; }
.right { order: 2; }
.left { order: 3; }


 
  
  /* ðŸ”¥ PENTING: INDEX TETAP KIRI-KANAN */
  .container_teks {
    flex-direction: row;
    border:1px solid #ddd;
    margin-bottom:6px;
    border-radius:6px;
  }

  .rubrik-indek { font-size: 18px;
    font-weight:600;
    text-transform:uppercase;
    margin-left:5px;
}

  .gambar-index {
   width: 140px;
    height: 95px;
      object-fit: cover;
  }

  .judul-index, .isi-popular {
    font-size: 15px;
  }
  

  /* MOBILE */
 
    .con-galeri {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .con-galeri {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {
    .con-galeri {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-title {
        font-size: 18px;
        margin-top: 30px;
    }
}

/*===============CSS PERBAIKAN================================*/ 

@media (max-width: 768px) {

  /* 🔥 BIKIN SEMUA FULL WIDTH */
  .container,
  .menu-navbar-top,
  .navbar,
  .header,
  .headline-wrapper,
  .full-width {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }


  /* 🔥 KASIH JARAK BIAR GA KETIMPA HEADER */
  body {
    padding-top: 70px;
  }

  /* 🔥 HEADER: MENU - LOGO - SEARCH */
  .header {
    flex-direction: row;
    justify-content: space-between;
   }

  .header img {
    height: 30px;
  }

  .search-box {
    width: 120px;
  }

  .search-box input {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* 🔥 NAVBAR JADI SCROLL */
  .navbar {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .navbar a {
    display: inline-block;
    white-space: nowrap;
    font-size: 13px;
    padding: 10px 12px;
  }

  /* 🔥 HEADLINE BIAR GA GEDE */
  .headline-wrapper img {
    height: auto;
    max-height: 220px;
    object-fit: cover;
  }

  h1 {
    font-size: 20px;
    line-height: 1.4;
  }

  /* 🔥 KONTEN BIAR GA NEMPEL */
  .content,
  .container_teks,
  .item-side,
  .item-right {
    padding-left: 5px;
    padding-right: 5px;
     font-size: 15px;
   }
 
  .content { margin:0px !important;}
 
  .berita-view {
    font-size: 15px;
  }

  /* 🔥 GAMBAR INDEX */
  
  
  .gambar-index, .gambar-side {
    width: 140px;
    height: 95px;
      object-fit: cover;
  } 
  

/* ================= SEARCH ICON ================= */
.search-icon {
  font-size: 20px;
  cursor: pointer;
}

/* ================= OVERLAY ================= */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9998;
}

/* ================= DRAWER ================= */
#drawer {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transition: 0.3s;
  padding: 15px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

/* HEADER DRAWER */
.drawer-header {
  display: flex;
  justify-content: flex-end;
  font-size: 22px;
  margin-bottom: 15px;
}

/* MENU ITEM */
#drawer a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

#drawer a:hover {
  background: #f5f5f5;
}

/* ================= ACTIVE ================= */
#drawer.active {
  left: 0;
}

#overlay.active {
  display: block;
}
}



 
 @media (max-width: 768px) {

  .desktop-header,
  .navbar,
  .menu {
    display: none !important;
  }

 
     .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 80px !important; 
    padding: 0 12px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background: #fafafa;
    z-index: 9999;
    border-bottom: 1px solid #ddd;
  }
  

  .hamburger,
  .search-icon {
    font-size: 22px;
    cursor: pointer;
  }

  #drawer.active {
    display: block;
  }
 
  .logo-mobil img {
    height: 30px;
  }

  body {
    padding-top: 60px;
  }


/* ================= NAVBAR ================= */
.navbar {
  display: none;
 }

}
