:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#6b7280;
  --primary:#0a3ca8;
  --primary-600:#0b2f82;
  --accent:#ffd100;
  --surface:#f3f4f6;
  --border:#e5e7eb;
  --danger:#ef4444;
}
:root.dark{
  --bg:#0c1118;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --primary:#2f67ff;
  --primary-600:#1e3a8a;
  --accent:#ffd100;
  --surface:#111827;
  --border:#1f2937;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block;height:auto}
.container{max-width:1200px;margin:0 auto;padding:0 16px}

/*==== BANNER HEADER ====*/
.banner {
  width:100%;
  position:relative;
  overflow:hidden;
  height: 300px;
}
.banner-slideshow {
  position:absolute;
  top:0;left:0;
  width:100%;
  height:100%;
}
.banner-slideshow img {
  position:absolute;
  top:0;left:0;
  width:100%;height:100%;
  object-fit:cover;
  opacity:0;
  animation:fadeSlide 20s infinite;
}
.banner-slideshow img:nth-child(1){animation-delay:0s}
.banner-slideshow img:nth-child(2){animation-delay:10s}
@keyframes fadeSlide{
  0%,45%{opacity:1;}
  50%,95%{opacity:0;}
  100%{opacity:1;}
}

/* ===== NAVBAR ===== */
.nav{background:var(--primary);position:sticky;top:0;z-index:1000;}
.nav .inner{display:flex;justify-content:center;flex-wrap:wrap;}
.menu{display:flex;gap:0;align-items:center;flex-wrap:wrap;}
.menu>a,.dropdown>a{color:#fff;padding:14px 12px;display:block;font-weight:600;font-size:14px;}
.menu a:hover,.menu a.active{background:var(--primary-600)}

/* === HAMBURGER NAV === */
.nav-toggle {
  display: none;            /* default: hidden di desktop */
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;        /* dorong ke kanan */
}

/* Dropdown */
.dropdown{position:relative}
.dropdown-content{
  display:none;position:absolute;top:100%;left:0;background:#fff;min-width:200px;
  border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.15);z-index:1000;
}
.dropdown-content a{padding:10px;white-space:nowrap;}
.dropdown-content a:hover{background:#f0f0f0}
.dropdown:hover>.dropdown-content{display:block}
.dropdown-sub{position:relative}
.dropdown-sub-content{
  display:none;position:absolute;top:0;left:100%;
  background:#fff;min-width:200px;border-radius:4px;
  box-shadow:0 2px 8px rgba(0,0,0,.15);z-index:1000;
}
.dropdown-sub-content a{padding:10px 14px;display:block;color:#333}
.dropdown-sub-content a:hover{background:#f0f0f0}
.dropdown-sub:hover>.dropdown-sub-content{display:block}

/* ===== TOPBAR ===== */
.topbar{background:#111;color:#fff;padding:5px 15px;font-size:14px}
.topbar-inner{display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:10px 0}

/* ===== BREAKING NEWS ===== */
.breaking{padding:10px 15px;border-bottom:1px solid var(--border);
  display:flex;align-items:center;gap:12px;overflow:hidden;flex-wrap:wrap}
.breaking .label{background:#ef4444;color:#fff;font-weight:800;border-radius:6px;padding:6px 12px;white-space:nowrap}
.ticker{overflow:hidden;flex:1;position:relative}
.track{display:flex;width:max-content;animation:marquee 72s linear infinite}
.item{display:inline-flex;gap:8px;align-items:center;margin-right:40px;opacity:.95;white-space:nowrap}
.dot{width:6px;height:6px;border-radius:50%;background:var(--primary)}
@keyframes marquee{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ===== MAIN ===== */
.main{padding:24px 0}
.grid{display:grid;grid-template-columns:2fr 1fr;gap:24px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden}
.card .thumb{ position: relative;width: 100%;height: 350px;overflow: hidden;}
.card .thumb img {width: 100%;height: 100%;object-fit: cover;       /* isi penuh, potong proporsional */display: block;}
.card .body{padding:16px}
.badge{display:inline-block;background:var(--primary);color:#fff;font-size:12px;font-weight:700;border-radius:999px;padding:6px 10px;margin-right:8px}
.meta{color:var(--muted);font-size:14px;margin-top:6px}
.cards-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:16px}
.card.sm .thumb{height:140px}

/* ===== SIDEBAR ===== */
.side{display:flex;flex-direction:column;gap:16px;width:90%;max-width:800px;
  margin:20px auto;margin-right:8px;padding:6px 10px;border:1px solid #ccc;
  background-color:#f9f9f9;text-align:center}
.side .title{font-weight:800;font-size:18px}

/* ===== VIDEO SECTION ===== */
.video-section-container{margin:30px;width:100%;}
.video-section-title{font-size:22px;font-weight:bold;margin-bottom:20px;
  text-align:center;color:var(--primary);border-bottom:2px solid var(--accent);padding-bottom:10px}
.video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:20px}
.video-player{background:var(--surface);border-radius:12px;overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);transition:transform 0.3s ease}
.video-player:hover{transform:translateY(-5px)}
.video-nav{display:flex;justify-content:center;gap:15px;margin-top:20px}
.video-nav button{padding:10px 20px;font-size:16px;cursor:pointer;border:none;
  border-radius:6px;background-color:var(--primary);color:white;
  transition:background-color 0.3s}
.video-nav button:hover{background-color:var(--primary-600)}

/* ===== GALERI ===== */
.gallery-title{text-align:center;font-size:28px;font-weight:800;color:var(--primary);
  margin-bottom:30px;position:relative;padding-bottom:15px}
.gallery-title::after{content:'';position:absolute;bottom:0;left:50%;
  transform:translateX(-50%);width:100px;height:4px;background:var(--accent);border-radius:2px}
.gallery-container{margin:30px;width:100%}
.gallery-track{display:flex;transition:transform 0.5s ease;gap:20px;flex-wrap:wrap}
.gallery-item{flex:1 1 calc(25% - 15px);border-radius:12px;overflow:hidden;
  box-shadow:0 4px 15px rgba(0,0,0,0.1);transition:transform 0.3s ease, box-shadow 0.3s ease}
.gallery-item:hover{transform:translateY(-5px);box-shadow:0 8px 25px rgba(0,0,0,0.15)}
.gallery-img{width:100%;height:200px;object-fit:cover;background:linear-gradient(45deg,#93c5fd,#60a5fa);
  display:flex;align-items:center;justify-content:center;color:white;font-weight:bold}
.gallery-caption{padding:15px;background:var(--surface);text-align:center}
.gallery-nav{display:flex;justify-content:center;gap:15px;margin-top:20px}
.gallery-nav button{padding:10px 20px;font-size:16px;cursor:pointer;border:none;
  border-radius:6px;background-color:var(--primary);color:white;
  transition:background-color 0.3s}
.gallery-nav button:hover{background-color:var(--primary-600)}

/* === FOTO KABAN === */
.fotokaban {width:100%;border-radius:12px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,0.1);}
.fotokaban img {width:100%;height:auto;object-fit:cover}

/* === PROFIL MEDIA SOSIAL === */
.social-profiles {background: var(--surface);border: 1px solid var(--border);border-radius: 12px;padding: 16px;margin-top: 20px;}
.social-title {font-size: 18px;font-weight: 700;margin: 0 0 16px 0;padding-bottom: 10px;border-bottom: 2px solid var(--primary);color: var(--text);text-align: center;}
.social-tabs {display: flex;border-bottom: 1px solid var(--border);margin-bottom: 16px;}
.social-tab {flex: 1;padding: 10px;background: none;border: none;cursor: pointer;font-weight: 600;color: var(--muted);display: flex;align-items: center;justify-content: center;gap: 8px;transition: all 0.3s ease;}
.social-tab.active {color: var(--primary);border-bottom: 2px solid var(--primary);}
.social-tab.youtube.active {color: #FF0000;border-bottom-color: #FF0000;}
.social-tab.instagram.active {color: #E1306C;border-bottom-color: #E1306C;}
.social-content {display: none;}
.social-content.active {display: block;animation: fadeIn 0.5s ease;}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tampilan profil YouTube */
.youtube-profile {text-align: center;}
.youtube-profile img {width: 80px;height: 80px;border-radius: 50%;object-fit: cover;margin: 0 auto 12px;border: 3px solid #FF0000;}
.youtube-profile h4 {margin: 0 0 8px 0;font-size: 16px;color: var(--text);}
.youtube-profile p {margin: 0 0 16px 0;color: var(--muted);font-size: 14px;line-height: 1.4;}
.youtube-stats {display: flex;justify-content: space-around;margin-bottom: 16px; flex-wrap: wrap;}
.youtube-stat {text-align: center; margin: 5px;}
.youtube-stat .number {font-size: 16px;font-weight: 700;color: #FF0000;}
.youtube-stat .label {font-size: 12px;color: var(--muted);}
.youtube-link {display: inline-block;padding: 8px 16px;background: #FF0000;color: white;border-radius: 20px;font-size: 14px;font-weight: 600;text-decoration: none;transition: background 0.3s ease;}
.youtube-link:hover {background: #CC0000;}

/* Tampilan profil Instagram */
.instagram-profile {text-align: center;}
.instagram-profile img {width: 80px;height: 80px;border-radius: 50%;object-fit: cover;margin: 0 auto 12px;border: 3px solid #E1306C;}
.instagram-profile h4 {margin: 0 0 8px 0;font-size: 16px;color: var(--text);}
.instagram-profile p {margin: 0 0 16px 0;color: var(--muted);font-size: 14px;line-height: 1.4;}
.instagram-stats {display: flex;justify-content: space-around;margin-bottom: 16px; flex-wrap: wrap;}
.instagram-stat {text-align: center; margin: 5px;}
.instagram-stat .number {font-size: 16px;font-weight: 700;color: #E1306C;}
.instagram-stat .label {font-size: 12px;color: var(--muted);}
.instagram-link {display: inline-block;padding: 8px 16px;background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);color: white;border-radius: 20px;font-size: 14px;font-weight: 600;text-decoration: none;transition: opacity 0.3s ease;}
.instagram-link:hover {opacity: 0.9;}

/* ===== FOOTER ===== */
footer{margin-top:32px;border-top:1px solid var(--border);padding:24px 0;color:var(--muted)}

/* ===== PDF VIEWER ===== */
.pdf-wrapper{max-width:1200px;margin:40px auto;padding:0 16px}
.pdf-header{text-align:center;margin-bottom:20px}
.pdf-header h1{font-size:28px;color:var(--primary);margin:0 0 10px}
.pdf-container{border:1px solid var(--border);border-radius:12px;overflow:hidden;
  background:var(--surface);box-shadow:0 4px 12px rgba(0,0,0,0.08)}
.pdf-container iframe{width:100%;height:80vh;border:none}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width:1024px){
  .banner{ aspect-ratio: 16 / 6; min-height: 200px; }
  .grid{grid-template-columns:1fr;}
  .cards-grid{grid-template-columns:1fr}
  .video-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:768px){
  .banner{ aspect-ratio: 16 / 7; min-height: 180px; }
  .video-grid{grid-template-columns:1fr}
  .gallery-item{flex:1 1 calc(50% - 10px)}
  .breaking{flex-direction:column;align-items:flex-start;gap:10px}
  .pdf-header h1{font-size:22px}
  .pdf-container iframe{height:70vh} 
  .nav .inner {justify-content: space-between;}
  .nav-toggle {display: block;}
  .menu {display: none;flex-direction: column; width: 100%;background: var(--primary);}
  .menu.show {display: flex;/* muncul saat toggle aktif */}
  .menu>a,.dropdown>a {padding: 14px;text-align: center;width: 100%;}
  .dropdown-content {position: static;/* agar dropdown turun ke bawah */width: 100%;box-shadow: none;background: var(--primary-600);}
  .dropdown-content a {color:#fff;}
  .dropdown-sub-content {position: static;background: var(--primary-600)}
}
@media (max-width:480px){
  .banner{ aspect-ratio: 16 / 9; min-height: 160px; }
  .menu{flex-direction:column;width:100%;}
  .menu>a,.dropdown>a{width:100%;text-align:center;padding:12px;}
  .dropdown-content{position:static;width:100%;}
  .badge{font-size:10px;padding:4px 8px}
  .video-section-title{font-size:18px}
  .gallery-title{font-size:22px}
  .gallery-item{flex:1 1 100%}
}