/* ============================================================
   ACEH KREATIF — main.css
   Tema: Biru · Putih · Oranye
   ============================================================ */

/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #003876;
  --blue:    #0055A5;
  --sky:     #0072CE;
  --orange:  #F4830A;
  --orange2: #FF9F3E;
  --white:   #FFFFFF;
  --gray50:  #F4F7FB;
  --gray100: #E4EBF4;
  --gray300: #B0BDD0;
  --gray600: #5D6E86;
  --gray900: #1A2333;
  --red:     #D62B2B;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,55,118,.10);
  --shadow-lg: 0 8px 40px rgba(0,55,118,.16);
  --transition: .25s ease;
}

body { font-family: var(--font-body); background: var(--gray50); color: var(--gray900); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { width: 92%; max-width: 1280px; margin: 0 auto; }

/* ─── TOP BAR ─────────────────────────────────────────── */
.top-bar { background: var(--navy); padding: 8px 0; font-size: 12px; color: var(--gray300); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-date { letter-spacing: .5px; }
.top-bar-socials a { color: var(--gray300); margin-left: 14px; transition: color var(--transition); }
.top-bar-socials a:hover { color: var(--orange); }

/* ─── HEADER ──────────────────────────────────────────── */
.header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,55,118,.08);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 3px solid var(--orange);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 20px; }
.logo-area { display: flex; align-items: center; }
.logo-area img { height: 56px; width: auto; object-fit: contain; }

/* Search button */
.search-toggle-btn {
  width: 44px; height: 44px; border: none;
  background: var(--sky); color: var(--white);
  border-radius: 50%; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--transition), transform var(--transition);
}
.search-toggle-btn:hover { background: var(--orange); transform: scale(1.08); }

/* Search overlay */
.search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,56,118,.55); backdrop-filter: blur(5px);
  z-index: 1200; align-items: flex-start; justify-content: center; padding-top: 90px;
}
.search-overlay.open { display: flex; }
.search-panel {
  background: var(--white); border-radius: 16px; padding: 28px 28px 20px;
  width: 90%; max-width: 580px; box-shadow: 0 20px 60px rgba(0,55,118,.28);
  animation: panelDown .22s ease;
}
@keyframes panelDown { from { opacity:0; transform:translateY(-18px); } to { opacity:1; transform:translateY(0); } }
.search-panel-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.search-form {
  display: flex; align-items: center; background: var(--gray50);
  border: 1.5px solid var(--gray100); border-radius: 50px; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(0,114,206,.12); }
.search-form input { flex: 1; border: none; background: transparent; padding: 13px 20px; font-size: 15px; font-family: var(--font-body); color: var(--gray900); outline: none; }
.search-form input::placeholder { color: var(--gray300); }
.search-form button {
  width: 48px; height: 48px; border: none; background: var(--sky); color: var(--white);
  cursor: pointer; font-size: 16px; border-radius: 50px; margin: 2px;
  display: flex; align-items: center; justify-content: center; transition: background var(--transition);
}
.search-form button:hover { background: var(--orange); }
.search-close { display: block; margin-top: 12px; text-align: right; font-size: 12px; color: var(--gray600); cursor: pointer; transition: color var(--transition); }
.search-close:hover { color: var(--red); }

/* ─── NAVBAR ──────────────────────────────────────────── */
.navbar { background: var(--navy); position: sticky; top: 82px; z-index: 998; }
.navbar-inner { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.navbar-inner::-webkit-scrollbar { display: none; }
.navbar-inner a {
  color: rgba(255,255,255,.75); font-size: 12.5px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase; padding: 14px 20px;
  white-space: nowrap; position: relative; transition: color var(--transition);
}
.navbar-inner a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--orange); border-radius: 3px 3px 0 0; transition: width var(--transition);
}
.navbar-inner a:hover, .navbar-inner a.active { color: var(--white); }
.navbar-inner a:hover::after, .navbar-inner a.active::after { width: calc(100% - 40px); }

/* ─── TICKER ──────────────────────────────────────────── */
.ticker-bar { background: var(--white); border-bottom: 1px solid var(--gray100); display: flex; align-items: stretch; overflow: hidden; }
.ticker-label {
  background: var(--red); color: var(--white); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 10px 18px;
  white-space: nowrap; display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}
.ticker-label i { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.ticker-scroll { flex: 1; overflow: hidden; padding: 0 16px; display: flex; align-items: center; }
.ticker-scroll marquee a { color: var(--gray900); font-size: 13px; font-weight: 500; margin-right: 50px; transition: color var(--transition); }
.ticker-scroll marquee a:hover { color: var(--blue); }
.ticker-scroll marquee a::before { content: '●'; color: var(--orange); margin-right: 8px; font-size: 8px; vertical-align: middle; }

/* ─── HERO SLIDER ─────────────────────────────────────── */
.hero-section { background: var(--navy); padding: 28px 0; }
.hero-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; align-items: start; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.slide { display: none; }
.slide.active { display: block; }
.slide a { display: block; position: relative; }
.slide img { width: 100%; height: 480px; object-fit: cover; transition: transform .8s ease; }
.slide:hover img { transform: scale(1.03); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,56,118,.95) 0%, rgba(0,56,118,.45) 45%, rgba(0,56,118,.05) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
}
.slide-category {
  background: var(--orange); color: var(--white); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px;
  border-radius: 20px; display: inline-block; margin-bottom: 12px; width: fit-content;
}
.slide-title { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--white); line-height: 1.25; margin-bottom: 12px; }
.slide-excerpt { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-meta { font-size: 12px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 16px; }
.slide-meta i { color: var(--orange); }

.slider-controls { position: absolute; bottom: 32px; right: 32px; display: flex; align-items: center; gap: 10px; z-index: 20; }
.slider-btn {
  width: 36px; height: 36px; border: none;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); color: var(--white);
  border-radius: 50%; cursor: pointer; font-size: 13px; transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: var(--orange); border-color: var(--orange); }
.dots { display: flex; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all var(--transition); }
.dot.active { background: var(--orange); width: 20px; border-radius: 6px; }

/* Popular box */
.popular-box-header i { color: var(--orange); font-size: 14px; }
.popular-box-header span { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); }
.popular-list { padding: 8px 0; }
.popular-item { display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start; border-bottom: 1px solid rgba(255,255,255,.05); transition: background var(--transition); }
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: rgba(255,255,255,.05); }
.popular-num { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: rgba(255,255,255,.12); line-height: 1; flex-shrink: 0; width: 26px; text-align: center; margin-top: 2px; }
.popular-thumb { width: 68px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.popular-title { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.88); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── CONTENT SECTION ─────────────────────────────────── */
.content-section { padding: 40px 0; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }

/* Section label */
.section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.section-label-bar { width: 4px; height: 26px; background: linear-gradient(180deg, var(--orange), var(--blue)); border-radius: 2px; flex-shrink: 0; }
.section-label h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--navy); }
.section-label-divider { flex: 1; height: 1px; background: var(--gray100); }

/* Page header (for kategori pages) */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 28px 0;
  margin-bottom: 0;
}
.page-header-inner { display: flex; align-items: center; gap: 14px; }
.page-header-icon { width: 48px; height: 48px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--white); flex-shrink: 0; }
.page-header h1 { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--white); line-height: 1; }
.page-header p { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 4px; }
.page-header-breadcrumb { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 6px; }
.page-header-breadcrumb a { color: var(--orange2); }
.page-header-breadcrumb a:hover { color: var(--white); }

/* ─── NEWS CARDS ──────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,55,118,.07); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card-img { position: relative; overflow: hidden; }
.news-card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-cat { position: absolute; top: 12px; left: 12px; background: var(--navy); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.news-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-card-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--transition); }
.news-card:hover .news-card-title { color: var(--blue); }
.news-card-excerpt { font-size: 13px; color: var(--gray600); line-height: 1.6; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--gray100); gap: 8px; }

.btn-read { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 7px 14px; border-radius: 20px; transition: opacity var(--transition), transform var(--transition); white-space: nowrap; }
.btn-read:hover { opacity: .88; transform: translateY(-1px); }

/* Share */
.share-wrapper { position: relative; }
.btn-share { background: none; border: 1px solid var(--gray100); border-radius: 20px; color: var(--gray600); cursor: pointer; font-size: 11px; font-weight: 600; padding: 7px 12px; display: flex; align-items: center; gap: 5px; transition: border-color var(--transition), color var(--transition); white-space: nowrap; }
.btn-share:hover { border-color: var(--blue); color: var(--blue); }
.share-popup { display: none; position: absolute; bottom: calc(100% + 8px); right: 0; background: var(--white); border: 1px solid var(--gray100); border-radius: var(--radius); width: 200px; box-shadow: var(--shadow); z-index: 99; overflow: hidden; }
.share-popup a, .share-popup button { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--gray900); background: none; border: none; border-bottom: 1px solid var(--gray100); width: 100%; cursor: pointer; font-size: 13px; font-family: var(--font-body); transition: background var(--transition); }
.share-popup a:last-child, .share-popup button:last-child { border-bottom: none; }
.share-popup a:hover, .share-popup button:hover { background: var(--gray50); }
.share-popup .fa-facebook { color: #1877F2; }
.share-popup .fa-whatsapp { color: #25D366; }
.share-popup .fa-x-twitter { color: #000; }
.share-popup .fa-link { color: var(--blue); }
.show-share { display: block; }

/* ─── SIDEBAR ─────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,55,118,.07); overflow: hidden; }
.widget-header { background: var(--navy); padding: 13px 18px; display: flex; align-items: center; gap: 8px; }
.widget-header i { color: var(--orange); font-size: 14px; }
.widget-header span { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); }
.widget-list { padding: 8px 0; }
.widget-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--gray100); align-items: flex-start; transition: background var(--transition); }
.widget-item:last-child { border-bottom: none; }
.widget-item:hover { background: var(--gray50); }
.widget-item-img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.widget-item-title { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-list { padding: 8px 0; }
.cat-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--gray100); font-size: 13px; font-weight: 500; color: var(--gray900); transition: background var(--transition), color var(--transition); }
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { background: var(--gray50); color: var(--blue); }
.cat-item i { color: var(--gray300); font-size: 12px; }

/* Iklan */
.sidebar-widget .ads-img { width: 100%; display: block; }

/* ─── LOAD MORE ───────────────────────────────────────── */
.load-more-wrap { text-align: center; margin-top: 30px; }
.btn-loadmore { background: transparent; border: 2px solid var(--navy); color: var(--navy); font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .5px; padding: 12px 36px; border-radius: 50px; cursor: pointer; transition: all var(--transition); }
.btn-loadmore:hover { background: var(--navy); color: var(--white); }

/* ─── FOOTER ──────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 48px 0 0; border-top: 4px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand-name { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-brand-tagline { font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 14px; transition: background var(--transition); }
.footer-social-btn:hover { background: var(--orange); }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links li a { font-size: 13px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links li a::before { content: '›  '; color: var(--orange); }
.footer-links li a:hover { color: var(--white); }
.footer-bottom { padding: 18px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom span { color: var(--orange); }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .popular-box { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .top-bar, .footer-grid { display: none; }
  .header-inner { gap: 10px; }
  .logo-area img { height: 44px; }
  .navbar { top: 0; }
  .slide img { height: 280px; }
  .slide-title { font-size: 18px; }
  .slide-excerpt { display: none; }
  .slide-overlay { padding: 20px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card-img img { height: 180px; }
  .section-label h2 { font-size: 18px; }
  .page-header h1 { font-size: 22px; }
}
@media (max-width: 480px) {
  .container { width: 95%; }
  .slide img { height: 230px; }
  .slider-controls { bottom: 16px; right: 16px; }
}
