/* ==================== RESET & GLOBAL ==================== */
html, body { margin: 0; padding: 0; width: 100%; font-family: 'Poppins', sans-serif; background: #f9f9f9; color: #333; scroll-behavior: smooth; overflow-x: hidden; }

/* Animations */
@keyframes slideDown { 0% { opacity: 0; transform: translateY(-100%); } 60% { opacity: 1; transform: translateY(20%); } 100% { transform: translateY(0); } }
@keyframes growLine { from { width: 0; opacity: 1; } to { width: 100%; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll-short { 0% { transform: translateX(0); } 50% { transform: translateX(-20%); } 100% { transform: translateX(0); } }
@keyframes slideDownFromTop { from { transform: translateY(-6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==================== HEADER ==================== */
header { width: 100%; background: linear-gradient(135deg, #d62828, #f77f00); color: #fff; padding: 20px 0 0 0; display: flex; flex-direction: column; align-items: center; box-sizing: border-box; position: relative; z-index: 100; }

/* Header-top: logo + judul dalam satu baris */
.header-top { width: 100%; max-width: 1200px; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; padding: 0 20px 10px 20px; box-sizing: border-box; margin: 0 auto; }

/* Logo */
.header-top img { width: 210px; height: 210px; margin-right: 15px; flex-shrink: 0; }

/* Title wrapper di sebelah kanan */
.title-wrapper { flex: 1; display: flex; flex-direction: column; align-items: flex-start; margin-left: 30px; min-width: 0; max-width: calc(100% - 240px); }

/* Judul utama */
.title-wrapper p { margin: 0; font-size: 60px; font-family: 'Bebas Neue', sans-serif; letter-spacing: 3px; background: linear-gradient(90deg, #ffffff, #ffe6cc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 2px 2px 4px rgba(0,0,0,0.25); animation: slideDown 1s ease-out; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Divider */
.title-wrapper .divider { width: 100%; height: 4px; background: #fff; margin: 5px 0; border-radius: 2px; animation: growLine 2s ease-out; }

/* Tagline */
.title-wrapper .tagline { font-size: 20px; font-weight: 400; letter-spacing: 1px; color: #fff; opacity: 0.9; animation: fadeIn 1.5s ease-in; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ==================== NAVBAR UTAMA ==================== */
.navbar { width: 100%; background: #fff; display: flex; justify-content: center; align-items: center; padding: 12px 0; margin: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-radius: 0; position: relative; box-sizing: border-box; border-top: 1px solid rgba(0,0,0,0.05); z-index: 1000; overflow: visible; }

/* Container untuk konten navbar */
.navbar-content { width: 100%; max-width: 1200px; padding: 0 20px; display: flex; justify-content: flex-end; align-items: center; box-sizing: border-box; margin: 0 auto; position: relative; overflow: visible; }

/* navbar saat sticky */
.navbar.stuck { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 9999; background: rgba(255,255,255,0.98); backdrop-filter: blur(4px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); animation: slideDownFromTop 180ms ease; margin: 0; border-radius: 0; justify-content: center; overflow: visible; }

/* placeholder mencegah konten loncat */
.navbar-placeholder { height: 0; width: 100%; }

/* nav links */
.nav-links { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1001; overflow: visible; }
.nav-links a { color: #333; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 5px; transition: .3s ease; }
.nav-links a:hover { background: #f77f00; color: #fff; box-shadow: 0 3px 6px rgba(0,0,0,0.1); }

/* search */
.search-box { display: flex; align-items: center; gap: 5px; }
.search-box input { padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px; outline: none; transition: .3s ease; }
.search-box input:focus { border-color: #f77f00; box-shadow: 0 0 5px rgba(247,127,0,0.4); }
.search-box button { background: #f77f00; color: #fff; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; transition: .3s ease; }
.search-box button:hover { background: #d62828; }

/* ===== MENU TOGGLE (BURGER) ===== */
.menu-toggle { display: none; font-size: 26px; line-height: 1; color: #333 !important; cursor: pointer; background: transparent; border: none; padding: 6px 10px; border-radius: 6px; position: relative; z-index: 10001; transition: .15s; }
.navbar.stuck .menu-toggle { color: #333 !important; background: rgba(255,255,255,0.95); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }



/* ============================================================ RESPONSIVE DESIGN ============================================================ */
/* TABLET (601px - 900px) */
@media (min-width: 601px) and (max-width: 900px) {
.header-top { padding: 0 16px 10px 16px; max-width: 100%; }
.title-wrapper { max-width: calc(100% - 180px); }
.title-wrapper p { font-size: 44px; letter-spacing: 2px; }
.title-wrapper .tagline { font-size: 16px; }
.header-top img { width: 160px; height: 160px; margin-right: 10px; }
.navbar { width: 100%; padding: 12px 0; margin: 0; }
.navbar-content { padding: 0 16px; justify-content: space-between; max-width: 100%; }
.navbar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; background: #fff; z-index: -1; }
.nav-links { gap: 10px; }
.nav-links a { font-size: 14px; padding: 6px 10px; }
.search-box input { width: 120px; padding: 5px 8px; font-size: 14px; }
.search-box button { padding: 5px 10px; font-size: 14px; }

}

/* HANDPHONE (≤600px) - PERBAIKAN PRESISI & PROPORSIONAL */
@media (max-width: 600px) {
header { padding: 15px 0 0 0; }
.header-top { flex-direction: column; align-items: center; text-align: center; padding: 0 15px 5px 15px; max-width: 100%; }
.header-top img { width: 150px; height: 150px; margin-right: 0; margin-bottom: 10px; }
.title-wrapper { margin-left: 0; align-items: center; max-width: 100%; }
.title-wrapper p { font-size: 36px; white-space: normal; text-align: center; line-height: 1.1; }
.title-wrapper .tagline { font-size: 14px; white-space: normal; text-align: center; line-height: 1.3; }

/* NAVBAR MOBILE - PERBAIKAN PRESISI */
.navbar { width: 100%; padding: 0; margin: 0; position: relative; background: #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.navbar-content { padding: 12px 15px; justify-content: space-between; width: 100%; max-width: 100%; align-items: center; }
.navbar::before { content: ''; position: absolute; top: 0; left: -50vw; right: -50vw; width: 200vw; height: 100%; background: #fff; z-index: -1; }
.menu-toggle { display: block; margin-right: 0; }

/* Menu tersembunyi default */
.nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; flex-direction: column; gap: 12px; padding: 0; box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-radius: 0 0 10px 10px; display: none; z-index: 9999; max-height: 0; overflow: hidden; opacity: 0; transition: all .3s ease; border-top: 2px solid #f77f00; }

/* Menu terbuka - PERBAIKAN PROPORSIONAL */
.nav-links.show { display: flex; max-height: 500px; opacity: 1; padding: 18px 15px; align-items: center; }

/* Link di mobile - PRESISI RATA TENGAH */
.nav-links a { width: 100%; padding: 12px 0; text-align: center; font-size: 16px; border-radius: 8px; margin: 2px 0; display: flex; justify-content: center; align-items: center; }

/* Search box di mobile */
.search-box { width: 100%; justify-content: center; margin-top: 15px; padding-top: 10px; border-top: 1px solid #eee; }
.search-box input { width: 100%; padding: 10px; font-size: 15px; border: 2px solid #ddd; }
.search-box button { padding: 10px 15px; font-size: 16px; }

/* Sticky navbar di mobile */
.navbar.stuck { width: 100%; padding: 0; margin: 0; border-radius: 0; background: rgba(255,255,255,0.98) !important; }
.navbar.stuck::before { background: rgba(255,255,255,0.98); }
.navbar.stuck .navbar-content { padding: 10px 15px; justify-content: space-between; }
.navbar.stuck .menu-toggle { background: rgba(255,255,255,0.85); }
}

/* DESKTOP (>900px) */
@media (min-width: 901px) { .navbar-content { max-width: 1200px; } }

/* VERY WIDE DESKTOP (>1200px) */
@media (min-width: 1201px) { .header-top, .navbar-content { max-width: 1200px; } }







/*style tabel kota */
.wilayah-header {
    display:flex; justify-content:space-between; align-items:center;
    background:#fff3e5; border:1px solid #ffd4a3;
    padding:12px 16px; border-radius:10px 10px 0 0;
  }
  .wilayah-header h3 {
    margin:0; font-size:1.1rem; color:#ff7b00; font-weight:600;
  }
  .logo-kota {
    width:80px; height:80px; object-fit:contain;
  }

  .wilayah-table {
    border:1px solid #eee; border-top:0; border-radius:0 0 10px 10px; overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
  }
  .wilayah-table table {
    width:100%; border-collapse:collapse; font-size:0.95rem;
  }
  .wilayah-table thead {
    background:#ffeed8; color:#222;
  }
  .wilayah-table th, .wilayah-table td {
    text-align:left; padding:10px 12px; border-bottom:1px solid #f2f2f2;
  }
  .wilayah-table tbody tr:nth-child(odd) {
    background:#fffdf9;
  }
  .wilayah-table tbody tr:hover {
    background:#fff2e0;
    transition:0.2s;
  }
  .highlight {
    background:#ffb366;
    color:#fff;
    padding:1px 3px;
    border-radius:3px;
  }
  @media (max-width:768px) {
    .grid-jakarta { grid-template-columns:1fr; }
    .logo-kota { width:40px; height:40px; }
    #jangkauan-jakarta img[alt="Logo Jakarta"] { width:90px; }
  }
  .img-jangkauan {
  width: 100%;
  max-width: 700px; /* Batas maksimum di layar besar */
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto; /* supaya selalu di tengah */
}

/* Penyesuaian tambahan untuk tablet dan HP */
@media (max-width: 768px) {
  .img-jangkauan {
    max-width: 95%;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .img-jangkauan {
    max-width: 100%;
    border-radius: 6px;
  }
}

/* Artikel Bawah */
#artikel {
  padding: 20px 20px;
  max-width: 1300px;
  margin: 80px auto;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Judul ARTIKEL */
#artikel .artikel-title {
  font-size: 42px;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  color: #222;
  letter-spacing: 2px;
  margin-bottom: 50px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

#artikel .artikel-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #d62828, #f77f00);
  border-radius: 2px;
}

/* Grid Layout */
.artikel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* default */
  gap: 30px;
}


/* Artikel Card */
.artikel-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.artikel-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 28px rgba(214, 40, 40, 0.25);
}

/* Gambar Artikel */
.artikel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.artikel-item:hover img {
  transform: scale(1.05);
}

/* Konten Artikel */
.artikel-date {
  font-size: 14px;
  color: #777;
  margin: 15px 20px 5px;
  text-align: left;
}

.artikel-heading {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin: 0 20px 20px;
  text-align: left;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.artikel-item:hover .artikel-heading {
  color: #d62828;
}




    /* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(135deg, #d62828, #f77f00);
  color: #ddd;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  position: relative;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

.footer-col {
  flex: 1;
  min-width: 260px;
}

.footer-col h3 {
  color: #ffcc00;
  margin-bottom: 12px;
  font-size: 1.15em;
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 6px;
}

.footer-col p,
.footer-col ul li {
  text-align: left;
  line-height: 1.6;
  font-size: 0.95em;
  color: #eee;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-col ul li svg {
  flex-shrink: 0;
}

.logofooter {
  margin-bottom: 10px;
}

.logofooter img {
  width: 200px;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  display: block;
}


.social-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 0.95em;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: translateX(5px);
}

.social-icons img {
  width: 28px;
  height: 28px;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85em;
  margin-top: 25px;
  color: #eee;
}

.music-player {
  position: absolute;
  bottom: 130px;
  right: 160px;
  max-width: 400px;
  background: none;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 1000;
}

.music-player button {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.controls button:hover {
  transform: scale(1.2);
}

.music-player #progress {
  width: 50%;
  margin-right: 90px;
  box-sizing: border-box;
}

.music-player .controls {
  display: flex;
  gap: 6px;
  margin-right: 80px;
}

.music-player .scrolling-text {
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  animation: scroll-short 5s linear infinite alternate;
}

/* ==================== WHATSAPP FLOAT ==================== */
.wa-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #25D366;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-float img {
  width: 40px;
  height: 40px;
  display: block;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}



/* ==================== RESPONSIVE FOOTER ==================== */
@media (max-width: 992px) {
  .footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    gap: 35px;
  }

  .footer-col {
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
  }

  .footer-col ul li {
    justify-content: center;
    text-align: center;
  }

  .footer .social-icons a {
    justify-content: center;
  }

  .logofooter img {
    margin: 0 auto;
    display: block;
  }

  .music-player {
    width: 100%;
    max-width: 420px;
    margin: 30px auto 10px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .footer-col p,
  .footer-col li,
  .footer-col a {
    font-size: 14px;
  }

  .social-icons a img {
    width: 20px;
    height: 20px;
  }

  .footer-col ul li {
    flex-direction: column;
    align-items: center;
  }

  .footer-col ul li svg {
    margin-bottom: 6px;
  }
  
  .footer-bottom p {
    font-size: 13px;
  }

  .music-player {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 20px auto 0;
    align-items: center;
    width: 100%;
    max-width: 300px;
  }

  .music-player #progress,
  .music-player .controls {
    margin-right: 0;
  }
}

/* ==================== HIGHLIGHT SEARCH ==================== */
mark {
  background-color: yellow;
  font-weight: bold;
}

