* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: #eceef0;
  color: #333;
}
.top-nav {
  background: #232f3e;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}
.logo {
  font-weight: bold;
  font-size: 20px;
  letter-spacing: -1px;
  text-decoration: none;
  color: white;
}
.logo span {
  color: #ff9900;
}
.nav-right a {
  color: white;
  text-decoration: none;
  font-size: 10px;
  padding: 6px 12px;
  border-radius: 2px;
  font-weight: bold;
  text-transform: uppercase;
}
.btn-webu {
  background: #0073bb;
  margin-right: 5px;
}
.btn-console {
  background: #ff9900;
}

/* 2. TIGHT TICKER */
.breaking-bar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  font-size: 12px;
}
.breaking-label {
  color: #d00;
  font-weight: 900;
  text-transform: uppercase;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid #ccc;
}
.breaking-text {
  font-weight: bold;
  color: #444;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 3. TIGHT LAYOUT GRID (DESKTOP) */
.container {
  max-width: 1080px;
  margin: 10px auto;
  padding: 0 10px;
  width: 100%;
}
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
main {
  flex: 2.5;
  min-width: 0;
}
aside {
  flex: 1;
  min-width: 300px;
}

/* 4. COMPACT ARTICLE CARD */
.article-card {
  background: white;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  overflow: hidden;
}
.article-img-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #eee;
}
.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-header {
  padding: 12px 15px;
}
.article-category {
  font-size: 10px;
  color: #ff9900;
  font-weight: 900;
  text-transform: uppercase;
}
.article-title {
  font-size: 22px;
  font-weight: 900;
  color: #000;
  margin: 4px 0;
  text-decoration: none;
  display: block;
  line-height: 1.2;
  letter-spacing: -0.5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-title:hover {
  color: #0073bb;
}
.article-meta {
  font-size: 11px;
  color: #777;
  margin-top: 2px;
}
.article-body {
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #0073bb;
  font-weight: bold;
  text-decoration: none;
  font-size: 12px;
}

/* 5. TIGHT SIDEBAR */
.sidebar-box {
  background: white;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
}
.sidebar-title {
  font-weight: 900;
  font-size: 13px;
  color: #000;
  margin-bottom: 10px;
  border-bottom: 2px solid #ff9900;
  display: inline-block;
  padding-bottom: 2px;
  text-transform: uppercase;
}
.trending-item {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 8px;
}
.trend-rank {
  color: #ddd;
  font-size: 18px;
  font-weight: 900;
}
.status-widget {
  background: #232f3e;
  color: white;
  padding: 15px;
  font-size: 11px;
}
.status-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #3a4758;
}
.sidebar-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 70px; /* Jarak dari navigasi atas */
}
/* 6. FOOTER BAR (DESKTOP) */
.footer-bar {
  background: #232f3e;
  color: white;
  padding: 20px 30px;
  margin-top: 40px;
  width: 100%;
  font-size: 12px;
  border-top: 4px solid #ff9900;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  text-align: left;
}
.footer-right {
  text-align: right;
}
.footer-bar span {
  color: #ff9900;
  font-weight: bold;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}
.footer-links a {
  color: #bbb;
  text-decoration: none;
  font-weight: bold;
}

/* ============================================= */
/* 7. RESPONSIVE DESIGN           */
/* ============================================= */
@media screen and (max-width: 800px) {
  /* FIX: Paksa Berita & Sidebar jadi Atas-Bawah */
  .news-grid {
    flex-direction: column !important;
  }
  main,
  aside {
    width: 100% !important;
    min-width: 100% !important;
    border: none !important; /* Hapus garis pembatas desktop di HP */
    padding-right: 0 !important;
  }

  /* Slider Adjustment */
  .slide {
    height: 220px !important;
  }
  .slide-caption h2 {
    font-size: 16px !important;
    line-height: 1.3;
  }
  .slide-caption {
    padding: 20px 10px 10px !important;
  }
  .slide-caption span {
    font-size: 8px !important;
    padding: 1px 5px !important;
  }
  .headline-container {
    margin-bottom: 15px;
  }

  /* Footer Adjustment */
  .footer-bar {
    flex-direction: column !important;
    padding: 30px 15px !important;
    text-align: center !important;
    gap: 20px !important;
  }
  .footer-left,
  .footer-right {
    width: 100% !important;
    text-align: center !important;
  }
  .footer-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
  }
}

/* Khusus halaman baca berita */
.single-body {
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 15px !important;
  box-sizing: border-box;
}
.single-body img {
  max-width: 100%;
  height: auto;
}

/* HEADLINE SLIDER (CERITA GESER) */
.headline-container {
  width: 100%;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%;
  position: relative;
  height: 400px;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 40px 20px 20px;
}
.slide-caption h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

/* KHUSUS DESKTOP: Ramein Kiri & Kanan */
@media screen and (min-width: 1024px) {
  .news-grid {
    gap: 20px;
  }
  main {
    border-right: 1px solid #ddd;
    padding-right: 20px;
  }
}

/* MENU DRAWER (GESER) - SATU ATURAN SAJA */
.side-menu {
  position: fixed;
  top: 0;
  left: -350px; /* Kita mundurkan lebih jauh agar bayangannya hilang total */
  width: 280px;
  height: 100%;
  background: #232f3e;
  z-index: 1001;
  transition: 0.3s;
  padding: 20px;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
  border: none;
  outline: none;
}

/* Muncul pas aktif */
.side-menu.active {
  left: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

.menu-overlay.active {
  display: block;
}

.menu-items a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #3a4758;
  font-weight: bold;
}

/* SEARCH BAR DI NAV */
.search-box {
  display: flex;
  background: #fff;
  border-radius: 3px;
  padding: 2px;
  margin-left: 15px;
}
.search-box input {
  border: none;
  padding: 5px 10px;
  outline: none;
  width: 150px;
  font-size: 12px;
}
.search-box button {
  background: #ff9900;
  border: none;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  .search-box {
    display: none;
  } 
}

.stories-wrapper::-webkit-scrollbar {
    display: none; /* Biar scrollbar-nya gak kelihatan tapi tetep bisa digeser */
}

.aws-grid-rame {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Tetap 2 kolom */
        gap: 12px;
        margin: 20px 0;
    }

    .aws-item-rame {
        display: flex; 
        background: #fff; 
        border: 1px solid #ddd; 
        text-decoration: none; 
        color: inherit; 
        height: 90px; /* Tinggi standar Desktop */
        overflow: hidden; 
        border-radius: 4px;
        transition: 0.2s;
    }

    .aws-item-rame:hover {
        border-color: #ff9900;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .aws-img-mini {
        width: 100px; /* Foto standar Desktop */
        height: 100%; 
        flex-shrink: 0;
    }

    .aws-text-mini {
        padding: 10px 15px; 
        display: flex; 
        align-items: center; 
        overflow: hidden;
    }

    .aws-text-mini h4 {
        margin: 0; 
        font-size: 14px; /* Font standar Desktop (Enak dibaca) */
        font-weight: 900; 
        line-height: 1.3; 
        color: #232f3e;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* --- KHUSUS SETTINGAN HP (MOBILE) --- */
    @media (max-width: 600px) {
        .aws-item-rame {
            height: 70px; /* Lebih pendek di HP biar padat */
        }
        .aws-img-mini {
            width: 70px; /* Foto mengecil di HP */
        }
        .aws-text-mini {
            padding: 5px 8px;
        }
        .aws-text-mini h4 {
            font-size: 10px; /* Font mengecil cuma di HP biar gak nabrak */
            -webkit-line-clamp: 3; /* Kasih ruang 3 baris di HP */
        }
    }

    .article-card-clean {
        background: #fff;
        border-bottom: 1px solid #eee; /* Garis tipis antar berita */
        margin-bottom: 0;
        transition: 0.2s;
    }

    .clean-link {
        display: flex;
        gap: 15px;
        padding: 15px;
        text-decoration: none;
        color: inherit;
        align-items: center;
    }

    .article-card-clean:hover {
        background: #f9f9f9;
    }

    .clean-img-box {
        width: 100px;
        height: 70px;
        flex-shrink: 0;
        border-radius: 4px;
        overflow: hidden;
    }

    .clean-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .clean-info {
        flex: 1;
    }

    .clean-cat {
        font-size: 10px;
        color: #ff9900; /* Warna Oranye AWS */
        font-weight: bold;
        text-transform: uppercase;
        display: block;
        margin-bottom: 4px;
    }

    .clean-title {
        margin: 0;
        font-size: 15px;
        font-weight: 900;
        line-height: 1.3;
        color: #232f3e;
        /* Batasi judul maksimal 2 baris agar tetap rapi */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .clean-date {
        font-size: 11px;
        color: #999;
        margin-top: 5px;
    }

    /* KHUSUS HP: Judul lebih kecil dikit biar gak sesak */
    @media (max-width: 600px) {
        .clean-title { font-size: 13px; }
        .clean-img-box { width: 80px; height: 60px; }
    }

    /* Style buat Kotak Besar hasil RNG */
    .article-card-big {
        background: #fff;
        border: 1px solid #ddd;
        margin: 15px 0;
        overflow: hidden;
        border-radius: 4px;
        transition: 0.3s;
    }
    
    .article-card-big:hover {
        border-color: #ff9900;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .big-img-wrapper {
        width: 100%;
        height: 250px; /* Gambar besar biar gagah */
        position: relative;
        overflow: hidden;
    }

    .big-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .big-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: #ff9900;
        color: white;
        padding: 4px 10px;
        font-size: 10px;
        font-weight: bold;
        border-radius: 2px;
    }

    .big-info {
        padding: 20px;
    }

    .big-title {
        margin: 5px 0 10px 0;
        font-size: 22px; /* Judul gede banget */
        font-weight: 900;
        line-height: 1.2;
        color: #232f3e;
    }

    /* Penyesuaian HP buat Kotak Besar */
    @media (max-width: 600px) {
        .big-img-wrapper { height: 180px; }
        .big-title { font-size: 18px; }
    }