/* ========================================
   IKKM NEWS — Official Brand Stylesheet
   Palette: Gold #C89B3C · Green #2E6B3D
            Black #1A1A1A · White #F5F5F5
   ======================================== */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; background: #F0F2F5; color: #1A1A1A; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ===== BRAND TOKENS ===== */
:root {
  --gold:        #C89B3C;
  --gold-light:  #DEB96A;
  --gold-dark:   #A07828;
  --green:       #2E6B3D;
  --green-light: #3A8A4E;
  --green-dark:  #1D4A28;
  --black:       #1A1A1A;
  --black-soft:  #111111;
  --off-white:   #F5F5F5;
  --white:       #FFFFFF;
  --gray:        #6B7280;
  --gray-light:  #E8EAED;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow:      0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.14);
  --transition:  0.25s ease;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ===== UTILITY BAR ===== */
.util-bar { background: var(--black-soft); border-bottom: 1px solid rgba(200,155,60,0.22); }
.util-bar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }

.util-links { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.util-links a { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.58); padding: 0 11px; display: flex; align-items: center; gap: 5px; transition: color var(--transition); white-space: nowrap; }
.util-links a i { font-size: 0.68rem; }
.util-links a:hover { color: var(--gold); }
.util-cta { background: var(--gold) !important; color: var(--black) !important; border-radius: 4px; padding: 4px 12px !important; font-weight: 800 !important; transition: background var(--transition) !important; }
.util-cta:hover { background: var(--gold-light) !important; color: var(--black) !important; }
.util-div { width: 1px; height: 14px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

.util-right { display: flex; align-items: center; gap: 10px; font-size: 0.7rem; color: rgba(255,255,255,0.45); white-space: nowrap; flex-shrink: 0; }
.util-right i { color: var(--gold); margin-right: 3px; }
#datetime { color: rgba(255,255,255,0.55); font-weight: 500; }

/* ===== HEADER (compact −30%) ===== */
.header { background: var(--black); box-shadow: 0 2px 16px rgba(0,0,0,0.45); position: sticky; top: 0; z-index: 200; }
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }

/* LOGO */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-emblem { flex-shrink: 0; transition: transform var(--transition); }
.logo:hover .logo-emblem { transform: scale(1.05); }
.logo-img        { height: 56px; max-height: 56px; width: auto; object-fit: contain; flex-shrink: 0; }
.logo-img-footer { height: 60px; max-height: 60px; width: auto; object-fit: contain; }
.logo-img-sm     { height: 32px; max-height: 32px; width: auto; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; gap: 0; }
.logo-name { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 900; color: var(--gold); line-height: 1; letter-spacing: 2px; }
.logo-tagline { font-size: 0.56rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; margin-top: 1px; }
.logo-subtag { font-size: 0.52rem; color: var(--gold); opacity: 0.65; letter-spacing: 0.6px; font-weight: 500; font-style: italic; display: none; }

/* SEARCH */
.search-box { flex: 1; max-width: 340px; display: flex; background: rgba(255,255,255,0.07); border: 1.5px solid rgba(200,155,60,0.3); border-radius: 50px; overflow: hidden; transition: border-color var(--transition), background var(--transition); margin-left: auto; }
.search-box:focus-within { border-color: var(--gold); background: rgba(255,255,255,0.11); }
.search-box input { flex: 1; background: transparent; border: none; outline: none; padding: 7px 14px; font-size: 0.84rem; color: var(--white); }
.search-box input::placeholder { color: rgba(255,255,255,0.38); }
.search-box button { background: var(--gold); border: none; padding: 7px 14px; color: var(--black); font-size: 0.85rem; transition: background var(--transition); }
.search-box button:hover { background: var(--gold-light); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 5px; margin-left: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--gold); border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* NAVBAR */
.navbar { background: var(--green); border-top: 1px solid rgba(200,155,60,0.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; }
.nav-links li a { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,0.8); padding: 9px 13px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2px; transition: all var(--transition); position: relative; }
.nav-links li a i { font-size: 0.74rem; opacity: 0.8; }
.nav-links li a:hover { color: var(--gold); background: rgba(0,0,0,0.15); }
.nav-links li a.active { color: var(--gold); }
.nav-links li a.active::after { content: ''; position: absolute; bottom: 0; left: 13px; right: 13px; height: 2px; background: var(--gold); border-radius: 2px 2px 0 0; }
.nav-meta { padding-right: 4px; }
.nav-edition { font-size: 0.72rem; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-edition i { color: var(--gold); }

/* ===== HERO SLIDER ===== */
.slider-section { position: relative; height: 520px; overflow: hidden; background: var(--black); }
.slider-track { display: flex; height: 100%; transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.slide { min-width: 100%; height: 100%; position: relative; }
.slide-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.90); transition: transform 8s linear; }
.slide.active .slide-img { transform: scale(1.04); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 45%, transparent 100%); }
.slide-overlay-left { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.32) 0%, transparent 55%); }
.slide-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 60px; color: var(--white); }
.slide-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--black); font-size: 0.7rem; font-weight: 800; padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.slide-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; line-height: 1.25; margin-bottom: 10px; max-width: 760px; text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 24px rgba(0,0,0,0.7); }
.slide-excerpt { font-size: 0.9rem; opacity: 0.8; max-width: 580px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-meta { display: flex; align-items: center; gap: 20px; font-size: 0.78rem; opacity: 0.7; }
.slide-meta i { color: var(--gold); }
.slide-read-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--black); font-size: 0.8rem; font-weight: 800; padding: 9px 20px; border-radius: 6px; transition: all var(--transition); border: none; margin-top: 14px; }
.slide-read-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Slider Controls */
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); border: 1.5px solid rgba(200,155,60,0.5); color: var(--gold); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; z-index: 10; transition: all var(--transition); }
.slider-btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots { position: absolute; bottom: 22px; right: 60px; display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; transition: all var(--transition); }
.slider-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

.slider-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--gold); transition: width 0.1s linear; z-index: 10; }

/* ===== BANNER AD 970x250 ===== */
.banner-ad-section { background: var(--white); padding: 14px 0; border-bottom: 1px solid var(--gray-light); }
.banner-ad-970 { max-width: 970px; height: 250px; margin: 0 auto; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border: 2px dashed #ced4da; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gray); font-size: 0.8rem; gap: 6px; position: relative; overflow: hidden; }
.banner-ad-970::before { content: 'SLOT IKLAN'; position: absolute; top: 10px; left: 14px; font-size: 0.65rem; font-weight: 800; letter-spacing: 1px; color: #adb5bd; }
.banner-ad-970 .ad-size { font-size: 1.4rem; font-weight: 800; color: #ced4da; }
.banner-ad-970 .ad-label { font-size: 0.72rem; color: #adb5bd; }

/* ===== TICKER ===== */
.ticker-wrap { display: flex; align-items: center; overflow: hidden; background: var(--black); border-bottom: 2px solid var(--gold); height: 40px; }
.ticker-label { background: var(--gold); color: var(--black); padding: 0 16px; height: 100%; display: flex; align-items: center; gap: 7px; font-size: 0.7rem; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.ticker-mask { flex: 1; overflow: hidden; }
.ticker-text { white-space: nowrap; animation: ticker-scroll 50s linear infinite; color: rgba(255,255,255,0.85); font-size: 0.82rem; display: inline-block; padding-left: 100%; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ===== MAIN LAYOUT ===== */
.main-content { padding: 28px 0 60px; background: #F0F2F5; }
.main-grid { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
.main-left { display: flex; flex-direction: column; gap: 0; }

/* ===== CATEGORY SECTIONS ===== */
.category-sections { display: flex; flex-direction: column; gap: 20px; }

.cat-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
}

.cat-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px;
  background: var(--black);
  border-bottom: 3px solid var(--gold);
}

.cat-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 8px; margin: 0;
}
.cat-section-title i { color: var(--gold); font-size: 0.88rem; }

.cat-view-all {
  font-size: 0.72rem; font-weight: 700;
  color: rgba(255,255,255,0.55);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; transition: color var(--transition);
}
.cat-view-all:hover { color: var(--gold); }
.cat-view-all i { font-size: 0.6rem; }

/* Grid: featured 3fr + small list 2fr */
.cat-article-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
}
.cat-article-grid.single-col { grid-template-columns: 1fr; }

/* --- Featured big card --- */
.cat-feat {
  cursor: pointer;
  border-right: 1px solid var(--gray-light);
  display: flex; flex-direction: column;
  transition: background var(--transition);
}
.cat-feat:hover { background: #FAFAF8; }

.cat-feat-img {
  position: relative; height: 222px; overflow: hidden; flex-shrink: 0;
}
.cat-feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.42s ease; }
.cat-feat:hover .cat-feat-img img { transform: scale(1.04); }
.cat-feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.48) 0%, transparent 55%);
  pointer-events: none;
}
.cat-feat-badge {
  position: absolute; top: 11px; left: 11px;
  background: var(--gold); color: var(--black);
  font-size: 0.65rem; font-weight: 800;
  padding: 3px 9px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.4px;
  display: flex; align-items: center; gap: 4px;
}

.cat-feat-body { padding: 15px 18px 18px; flex: 1; }
.cat-feat-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--black); line-height: 1.4; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--transition);
}
.cat-feat:hover .cat-feat-title { color: var(--green); }
.cat-feat-excerpt {
  font-size: 0.81rem; color: var(--gray); line-height: 1.6; margin-bottom: 11px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-feat-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.7rem; color: var(--gray); }
.cat-feat-meta i { color: var(--gold); margin-right: 2px; }

/* --- Small cards --- */
.cat-smalls { display: flex; flex-direction: column; }

.cat-small {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px;
  border-bottom: 1px solid var(--gray-light);
  cursor: pointer; flex: 1;
  transition: background var(--transition);
}
.cat-small:last-child { border-bottom: none; }
.cat-small:hover { background: #FAFAF8; }

.cat-small-img { flex-shrink: 0; width: 88px; height: 63px; border-radius: var(--radius-sm); overflow: hidden; }
.cat-small-img img { width: 100%; height: 100%; object-fit: cover; }

.cat-small-body { flex: 1; min-width: 0; }
.cat-small-title {
  font-size: 0.81rem; font-weight: 700; line-height: 1.38;
  color: var(--black); margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--transition);
}
.cat-small:hover .cat-small-title { color: var(--green); }
.cat-small-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 0.67rem; color: var(--gray); }
.cat-small-meta i { color: var(--gold); margin-right: 1px; }

/* --- Sidebar ad slot --- */
.sidebar-ad-slot {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-light);
  min-height: 250px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; padding: 20px;
  text-align: center;
}
.sidebar-ad-slot .ad-size-label { font-size: 1.05rem; font-weight: 800; color: var(--gold); }
.sidebar-ad-slot .ad-contact { font-size: 0.75rem; color: var(--gray); line-height: 1.5; }

/* SECTION HEADER */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-header-left { display: flex; align-items: center; gap: 12px; }
.section-accent { width: 4px; height: 26px; background: linear-gradient(to bottom, var(--gold), var(--green)); border-radius: 2px; flex-shrink: 0; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--black); }
.result-count { font-size: 0.75rem; color: var(--gray); background: var(--gray-light); padding: 4px 12px; border-radius: 20px; font-weight: 600; }

/* ===== NEWS GRID ===== */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.news-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); cursor: pointer; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.05); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.news-card-img { height: 188px; overflow: hidden; position: relative; }
.news-card-img img { height: 100%; transition: transform 0.45s ease; }
.news-card:hover .news-card-img img { transform: scale(1.07); }
.news-card-badge { position: absolute; top: 12px; left: 12px; background: var(--green); color: var(--white); font-size: 0.67rem; font-weight: 800; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.news-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-card-title { font-family: 'Playfair Display', serif; font-size: 0.98rem; font-weight: 700; color: var(--black); margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--transition); }
.news-card:hover .news-card-title { color: var(--green); }
.news-card-excerpt { font-size: 0.81rem; color: var(--gray); margin-bottom: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }

.news-card-meta { font-size: 0.71rem; color: #9CA3AF; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--gray-light); padding-top: 11px; margin-top: auto; flex-wrap: wrap; gap: 4px; }
.news-card-meta span { display: flex; align-items: center; gap: 4px; }
.news-card-meta i { color: var(--gold); }

/* NO RESULT */
.no-result { text-align: center; padding: 70px 20px; color: var(--gray); }
.no-result i { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.2; display: block; color: var(--green); }
.no-result p { margin-bottom: 16px; font-size: 0.95rem; }
.no-result button { background: var(--green); color: var(--white); border: none; padding: 10px 24px; border-radius: var(--radius); font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: background var(--transition); }
.no-result button:hover { background: var(--green-light); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 22px; }

.widget { background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); }

.widget-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-light); }
.widget-accent { width: 3px; height: 20px; background: linear-gradient(to bottom, var(--gold), var(--green)); border-radius: 2px; flex-shrink: 0; }
.widget-title h3 { font-size: 0.92rem; font-weight: 800; color: var(--black); display: flex; align-items: center; gap: 7px; }
.widget-title h3 i { color: var(--gold); }

/* Popular */
.popular-list li { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--gray-light); cursor: pointer; align-items: flex-start; }
.popular-list li:last-child { border-bottom: none; padding-bottom: 0; }
.popular-list li:hover .pop-title { color: var(--green); }
.pop-num { background: var(--green); color: var(--white); min-width: 26px; height: 26px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 900; flex-shrink: 0; margin-top: 1px; }
.popular-list li:nth-child(1) .pop-num { background: var(--gold); color: var(--black); }
.pop-title { font-size: 0.82rem; font-weight: 600; line-height: 1.35; color: var(--black); transition: color var(--transition); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop-date { font-size: 0.68rem; color: var(--gray); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.pop-date i { color: var(--gold); }

/* Category */
.category-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-light); cursor: pointer; font-size: 0.86rem; font-weight: 500; color: #444; transition: color var(--transition); }
.category-list li:last-child { border-bottom: none; }
.category-list li:hover { color: var(--green); }
.category-list li:hover .cat-count { background: var(--green); color: var(--white); }
.cat-icon { width: 28px; height: 28px; border-radius: var(--radius-sm); background: rgba(46,107,61,0.08); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; margin-right: 8px; flex-shrink: 0; }
.cat-label-wrap { display: flex; align-items: center; }
.cat-count { background: var(--gray-light); color: var(--gray); padding: 2px 9px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; transition: all var(--transition); }

/* About Widget */
.widget-about .widget-about-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.widget-about .widget-about-logo strong { font-size: 1rem; font-weight: 800; color: var(--black); }
.widget-about p { font-size: 0.83rem; color: var(--gray); line-height: 1.75; margin-bottom: 14px; }
.about-social { display: flex; gap: 8px; }
.about-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(46,107,61,0.1); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: all var(--transition); }
.about-social a:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }

/* Weather Widget */
.weather-card { text-align: center; }
.weather-main { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 6px; }
.weather-icon { font-size: 2.8rem; color: var(--gold); }
.weather-temp { font-size: 3rem; font-weight: 900; color: var(--black); line-height: 1; }
.weather-temp sup { font-size: 1.2rem; color: var(--gray); }
.weather-desc { font-size: 0.88rem; color: var(--gray); font-weight: 500; margin-bottom: 14px; }
.weather-details { display: flex; justify-content: center; gap: 20px; font-size: 0.78rem; color: var(--gray); }
.weather-details i { color: var(--gold); margin-right: 4px; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: var(--radius-lg); max-width: 780px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; transform: translateY(24px) scale(0.97); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal::-webkit-scrollbar { width: 5px; }
.modal::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.modal-close { position: sticky; top: 16px; left: calc(100% - 52px); float: right; background: var(--gray-light); border: none; width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; color: var(--gray); transition: all var(--transition); z-index: 10; display: flex; align-items: center; justify-content: center; margin: 16px 16px 0 0; }
.modal-close:hover { background: var(--black); color: var(--white); }

.modal-content { padding: 12px 32px 36px; clear: both; }
.modal-cat { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: var(--white); padding: 5px 14px; border-radius: 5px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.modal-content h2 { font-family: 'Playfair Display', serif; font-size: 1.65rem; font-weight: 900; color: var(--black); margin-bottom: 12px; line-height: 1.3; }
.modal-meta { color: var(--gray); font-size: 0.8rem; margin-bottom: 20px; display: flex; gap: 18px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--gray-light); }
.modal-meta i { color: var(--gold); }
.modal-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; height: 320px; }
.modal-img img { height: 100%; }
.modal-body { font-size: 0.96rem; color: #2D2D2D; line-height: 1.9; }
.modal-body p { margin-bottom: 16px; }

/* ===== FOOTER ===== */
.footer { background: var(--black-soft); color: rgba(255,255,255,0.6); }
.footer-top { padding: 52px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }

.footer-brand .footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-logo-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; color: var(--gold); display: block; line-height: 1; }
.footer-logo-sub { font-size: 0.62rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: 2px; }
.footer-brand p { font-size: 0.83rem; line-height: 1.8; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 1px solid rgba(200,155,60,0.2); color: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: all var(--transition); }
.footer-social a:hover { background: var(--gold); color: var(--black); border-color: var(--gold); transform: translateY(-2px); }

.footer-col h4 { color: var(--gold); font-size: 0.88rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(200,155,60,0.2); }
.footer-col ul li { margin-bottom: 9px; font-size: 0.83rem; }
.footer-col ul li a { display: flex; align-items: center; gap: 7px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col ul li a i { font-size: 0.6rem; color: var(--green-light); }

.footer-contact li { display: flex; gap: 10px; margin-bottom: 11px; font-size: 0.82rem; align-items: flex-start; }
.footer-contact li i { color: var(--gold); width: 16px; margin-top: 2px; flex-shrink: 0; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 16px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--white); border: none; font-size: 1rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 100; opacity: 0; pointer-events: none; transition: all var(--transition); transform: translateY(10px); }
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--black); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .util-right { display: none; }
  .main-grid { grid-template-columns: 1fr 290px; }
}
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .sidebar-ad-slot { min-height: 160px; }
  /* Category sections — stack featured + smalls vertically */
  .cat-article-grid { grid-template-columns: 1fr; }
  .cat-feat { border-right: none; border-bottom: 1px solid var(--gray-light); }
  .cat-feat-img { height: 200px; }
  .cat-smalls { flex-direction: row; flex-wrap: wrap; }
  .cat-small { width: 50%; border-bottom: 1px solid var(--gray-light); }
  .cat-small:nth-child(2n) { border-left: 1px solid var(--gray-light); }
}
@media (max-width: 860px) {
  .util-links a { font-size: 0.68rem; padding: 0 8px; }
  .slider-section { height: 400px; }
  .slide-content { padding: 28px 32px; }
  .slide-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .util-bar { display: none; }
  .header-inner { height: 48px; }
  .logo-img { height: 44px; max-height: 44px; }
  .logo-name { font-size: 1.15rem; }
  .logo-tagline { display: none; }
  .logo-subtag { display: none; }
  .banner-ad-970 { height: 120px; }
  .banner-ad-970 .ad-size { font-size: 0.95rem; }
  .search-box { display: none; }
  .hamburger { display: flex; }
  .navbar .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--green-dark); z-index: 300; box-shadow: var(--shadow-lg); }
  .navbar .nav-links.open { display: flex; }
  .navbar { position: relative; }
  .nav-meta { display: none; }
  .slider-section { height: 300px; }
  .slide-content { padding: 20px 20px; }
  .slide-title { font-size: 1.1rem; }
  .slide-excerpt { display: none; }
  .slider-btn { width: 36px; height: 36px; font-size: 0.85rem; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
  .slider-dots { right: 20px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .cat-feat-img { height: 180px; }
  .cat-smalls { flex-direction: column; }
  .cat-small { width: 100%; }
  .cat-small:nth-child(2n) { border-left: none; }
  .cat-small-img { width: 76px; height: 55px; }
  .news-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 10px 18px 28px; }
  .modal-content h2 { font-size: 1.2rem; }
}

/* ===== AD PAGE LAYOUT (3-COLUMN: iklan kiri | konten | iklan kanan) ===== */
.ad-page-layout {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.ad-page-center {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ad-sidebar-left,
.ad-sidebar-right {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
  align-self: flex-start;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Ad slot placeholder */
.ad-slot {
  background: var(--white);
  border: 2px dashed rgba(0,0,0,0.10);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
  width: 230px;
}

.ad-slot:hover {
  border-color: var(--gold);
  background: rgba(200,155,60,0.04);
}

.ad-slot-label {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0,0,0,0.22);
  background: rgba(0,0,0,0.04);
  padding: 3px 10px;
  border-radius: 20px;
}

.ad-slot-size {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(0,0,0,0.18);
  line-height: 1;
}

.ad-slot-contact {
  font-size: 0.62rem;
  color: rgba(0,0,0,0.28);
  line-height: 1.6;
}

.ad-slot-contact a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

/* Outer sidebar (konten sidebar dipindah ke kolom kanan luar) */
.outer-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
  align-self: flex-start;
  padding: 16px 10px 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  scrollbar-width: none;
}
.outer-sidebar::-webkit-scrollbar { display: none; }

/* Inner grid jadi 1-kolom karena sidebar sudah di luar */
.ad-page-center .main-grid { grid-template-columns: 1fr; }

/* Responsive: sembunyikan sidebar kiri di < 1440px, sidebar kanan di < 1200px */
@media (max-width: 1439px) {
  .ad-sidebar-left { display: none; }
}

@media (max-width: 1199px) {
  .outer-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    overflow-y: visible;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 20px 20px;
    gap: 18px;
  }
  .outer-sidebar .widget,
  .outer-sidebar .sidebar-ad-slot,
  .outer-sidebar .ad-slot-300x250 { flex: 1 1 280px; }
  .ad-page-layout { display: block; }
}

/* ===== PORTAL NEWS LAYOUT OVERRIDE ===== */
body {
  background: #ECEFF3;
}

.container {
  max-width: 1180px;
}

.util-bar {
  display: none;
}

.header {
  background: rgba(0,0,0,0.96);
  position: sticky;
  top: 0;
}

.header-inner {
  height: 92px;
}

.logo-img {
  height: 72px;
  max-height: 72px;
}

.logo-name {
  font-family: 'Inter', sans-serif;
  font-size: 2.15rem;
  letter-spacing: 1px;
  color: var(--gold);
  line-height: 0.95;
}

.logo-tagline {
  display: block;
  color: rgba(255,255,255,0.9);
  font-size: 0.74rem;
}

.search-box {
  max-width: 260px;
  border-color: rgba(255,255,255,0.24);
  background: transparent;
  border-radius: 3px;
}

.search-box button {
  background: var(--gold);
}

.navbar {
  background: var(--green);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  justify-content: flex-start;
}

.nav-links li a {
  min-height: 48px;
  padding: 0 15px;
  color: rgba(255,255,255,0.96);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  border-left: 1px solid rgba(0,0,0,0.12);
}

.nav-links li:last-child a {
  border-right: 1px solid rgba(0,0,0,0.12);
}

.nav-links li a:hover,
.nav-links li a.active {
  background: var(--green-dark);
  color: var(--gold);
}

.nav-links li a.active::after {
  left: 0;
  right: 0;
  height: 4px;
}

.nav-meta {
  margin-left: auto;
}

.slider-section,
.banner-ad-section,
.ticker-wrap {
  display: none;
}

.ad-page-layout {
  max-width: 1280px;
  margin: 44px auto 0;
  gap: 18px;
  padding: 0 18px;
}

.ad-page-center {
  background: var(--white);
  border: 1px solid #DDE1E7;
}

.main-content {
  background: transparent;
  padding: 0;
}

.main-content .container {
  padding: 0;
}

.main-left {
  gap: 0;
}

.ad-sidebar-left {
  position: sticky;
  top: 158px;
  padding-top: 0;
}

.ad-slot {
  width: 230px;
  min-height: 520px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(46,107,61,0.88), rgba(0,0,0,0.9)),
    url('assets/logo-ikkm.png') center 36px / 120px auto no-repeat;
  color: var(--white);
  border-left: 8px solid var(--gold);
}

.ad-slot-label,
.ad-slot-size,
.ad-slot-contact {
  color: rgba(255,255,255,0.82);
}

.outer-sidebar {
  width: 300px;
  top: 158px;
  padding-top: 0;
}

.widget,
.sidebar-ad-slot,
.ad-slot-300x250 {
  border-radius: 0;
  box-shadow: none;
  border: 0;
  background: var(--white);
}

.widget {
  padding: 0;
}

.widget-title {
  display: block;
  border-bottom: 3px solid var(--green);
  margin-bottom: 14px;
  padding-bottom: 7px;
}

.widget-accent {
  display: none;
}

.widget-title h3 {
  color: var(--gold-dark);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.popular-list li {
  gap: 0;
  padding: 0;
  border: 1px solid #ECEFF3;
  border-bottom: 0;
}

.popular-list li:last-child {
  border-bottom: 1px solid #ECEFF3;
}

.pop-num {
  width: 58px;
  min-width: 58px;
  height: auto;
  min-height: 72px;
  border-radius: 0;
  font-size: 1.7rem;
  background: var(--green);
  color: var(--white);
}

.popular-list li:nth-child(1) .pop-num {
  background: var(--gold);
  color: var(--black);
}

.pop-title {
  padding: 12px 12px 4px;
  font-size: 0.86rem;
  color: var(--green-dark);
  font-weight: 800;
}

.pop-date {
  padding: 0 12px 12px;
}

.latest-list li {
  border-bottom: 1px solid #ECEFF3;
}

.latest-list li:last-child {
  border-bottom: 0;
}

.latest-list a {
  display: block;
  padding: 16px 28px;
}

.latest-cat {
  display: block;
  color: var(--gold-dark);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.latest-list strong {
  display: block;
  color: var(--black);
  font-size: 0.9rem;
  line-height: 1.35;
  transition: color var(--transition);
}

.latest-list a:hover strong {
  color: var(--green);
}

.latest-list small {
  display: block;
  color: #9299A2;
  font-size: 0.72rem;
  margin-top: 5px;
}

.latest-list small i {
  color: var(--gold);
}

.portal-lead {
  border-bottom: 1px solid #DDE1E7;
}

.portal-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 4px solid var(--gold);
  background: #D6D8DB;
  align-items: stretch;
}

.portal-tab {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 170px;
  color: #333;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
}

.portal-tab:last-child {
  border-right: 0;
}

.portal-tab img {
  height: 84px;
  width: 100%;
  object-fit: cover;
  flex: 0 0 84px;
}

.portal-tab span {
  min-height: 78px;
  padding: 9px 10px 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.portal-tab.active {
  background: var(--green);
  color: var(--white);
}

.portal-lead-main {
  display: block;
  position: relative;
  min-height: 452px;
  color: var(--white);
  overflow: hidden;
}

.portal-lead-main img {
  position: absolute;
  inset: 0;
  filter: brightness(0.78);
}

.portal-lead-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.86), rgba(0,0,0,0.08) 58%);
}

.portal-lead-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 1;
  background: var(--gold);
  color: var(--black);
  padding: 8px 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-lead-main h2 {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 1;
  font-family: 'Inter', sans-serif;
  font-size: 2.15rem;
  line-height: 1.18;
  max-width: 760px;
  text-shadow: 0 3px 18px rgba(0,0,0,0.7);
}

.portal-feed {
  background: var(--white);
}

.portal-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px 12px;
}

.portal-section-title h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.28rem;
  text-transform: uppercase;
  font-weight: 900;
}

.portal-section-title span {
  flex: 1;
  height: 1px;
  background: #D9DDE3;
}

.portal-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 24px;
  padding: 22px 28px;
  border-top: 1px solid #DDE1E7;
}

.portal-item:hover {
  background: #FAFBFC;
}

.portal-item-body {
  min-width: 0;
}

.portal-item-cat {
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-item h3 {
  margin: 4px 0 9px;
  font-size: 1.36rem;
  line-height: 1.22;
  font-weight: 900;
}

.portal-item h3 a:hover {
  color: var(--green);
}

.portal-item p {
  color: #4E555D;
  font-size: 0.95rem;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 9px;
  color: #9299A2;
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-item-meta i {
  color: var(--gold);
}

.portal-item-img {
  height: 112px;
  margin-top: 6px;
  overflow: hidden;
  background: #E6E9EE;
}

.portal-item-img img {
  transition: transform var(--transition);
}

.portal-item:hover .portal-item-img img {
  transform: scale(1.05);
}

.inline-ad,
.cat-inline-ad {
  margin: 0 28px 0;
  min-height: 96px;
  background: #EEF1F4;
  border: 1px dashed #C8CDD4;
  color: #9299A2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-transform: uppercase;
}

.inline-ad strong,
.cat-inline-ad strong {
  color: var(--gold-dark);
}

.has-live-ad {
  padding: 0 !important;
  border-style: solid !important;
  overflow: hidden;
  background: #07100A;
}

.live-ad-link,
.live-ad-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #07100A;
}

.live-ad-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.banner-ad-970.has-live-ad::before,
.has-live-ad .ad-slot-label,
.has-live-ad .ad-slot-size,
.has-live-ad .ad-slot-contact,
.has-live-ad .ad-size,
.has-live-ad .ad-label,
.has-live-ad .ad-size-label,
.has-live-ad .ad-contact,
.has-live-ad .ad-sub {
  display: none;
}

.inline-ad.has-live-ad,
.cat-inline-ad.has-live-ad {
  min-height: 96px;
  background: #07100A;
}

.portal-more {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 28px 28px;
  border-top: 1px solid #DDE1E7;
}

.portal-more a {
  border: 1px solid #DDE1E7;
  color: var(--green);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.footer {
  margin-top: 40px;
  background: #020202;
}

.footer-top {
  padding-top: 64px;
}

@media (max-width: 1199px) {
  .ad-page-layout {
    display: block;
    padding: 0 18px;
  }

  .outer-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    padding: 0;
  }
}

@media (max-width: 1060px) {
  .header-inner {
    height: 72px;
  }

  .logo-img {
    height: 56px;
    max-height: 56px;
  }

  .logo-name {
    font-size: 1.55rem;
  }

  .logo-tagline {
    font-size: 0.62rem;
  }

  .search-box {
    max-width: 230px;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    position: relative;
  }

  .navbar .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--green-dark);
    z-index: 300;
    box-shadow: var(--shadow-lg);
  }

  .navbar .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    min-height: 44px;
    border-left: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links li:last-child a {
    border-right: 0;
  }

  .nav-meta {
    display: none;
  }

  .ad-page-layout {
    margin-top: 26px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .logo-img {
    height: 48px;
    max-height: 48px;
  }

  .logo-name {
    font-size: 1.2rem;
  }

  .portal-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-tab {
    min-height: 154px;
  }

  .portal-tab img {
    height: 78px;
    flex-basis: 78px;
  }

  .portal-tab span {
    min-height: 72px;
    -webkit-line-clamp: 3;
  }

  .portal-tab:nth-child(n+5) {
    display: none;
  }

  .portal-lead-main {
    min-height: 300px;
  }

  .portal-lead-main h2 {
    font-size: 1.35rem;
    left: 18px;
    right: 18px;
  }

  .portal-lead-badge {
    left: 18px;
  }

  .portal-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 18px;
  }

  .portal-item-img {
    order: -1;
    height: 180px;
  }

  .outer-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ===== RMOL-STYLE HEADLINE CAROUSEL, IKKM COLORS ===== */
.portal-carousel {
  background: #fff;
  border-bottom: 1px solid #DDE1E7;
}

.portal-hero-stage {
  position: relative;
  height: 470px;
  overflow: hidden;
  background: #111;
}

.portal-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  transition: opacity 0.42s ease;
}

.portal-hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.portal-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
  transform: scale(1.01);
}

.portal-hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.58) 34%, rgba(0,0,0,0.08) 68%),
    linear-gradient(to right, rgba(0,0,0,0.28), transparent 58%);
}

.portal-hero-slide .portal-lead-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  background: var(--gold);
  color: #111;
  padding: 10px 20px;
  font-size: 0.96rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.portal-hero-slide h2 {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 30px;
  z-index: 2;
  max-width: 780px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 2.35rem;
  line-height: 1.13;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0,0,0,0.75);
}

.portal-hero-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 58px;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,0.34);
  color: #fff;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.portal-hero-btn:hover {
  background: var(--gold);
  color: #111;
}

.portal-hero-prev { left: 0; }
.portal-hero-next { right: 0; }

.portal-thumb-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 1fr);
  overflow-x: auto;
  border-top: 4px solid var(--gold);
  background: #D6D8DB;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.portal-thumb-strip::-webkit-scrollbar {
  display: none;
}

.portal-thumb {
  display: block;
  min-width: 0;
  border: 0;
  border-right: 1px solid rgba(0,0,0,0.12);
  background: #D6D8DB;
  color: #282828;
  padding: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
}

.portal-thumb img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  display: block;
  filter: saturate(0.94);
}

.portal-thumb span {
  min-height: 74px;
  padding: 8px 8px 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.32;
  font-weight: 600;
}

.portal-thumb.active {
  background: var(--green);
  color: #fff;
}

.portal-thumb.active img {
  filter: brightness(0.86) saturate(1.06);
}

@media (max-width: 760px) {
  .portal-hero-stage {
    height: 380px;
  }

  .portal-hero-slide .portal-lead-badge {
    top: 22px;
    left: 20px;
    padding: 9px 17px;
    font-size: 0.86rem;
  }

  .portal-hero-slide h2 {
    left: 20px;
    right: 18px;
    bottom: 28px;
    font-size: 1.82rem;
    line-height: 1.13;
  }

  .portal-hero-btn {
    width: 34px;
    height: 50px;
  }

  .portal-thumb-strip {
    grid-auto-columns: 50%;
  }

  .portal-thumb img {
    height: 86px;
  }

  .portal-thumb span {
    min-height: 82px;
    font-size: 0.94rem;
    line-height: 1.22;
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 420px) {
  .portal-hero-stage {
    height: 350px;
  }

  .portal-hero-slide h2 {
    font-size: 1.55rem;
  }
}

/* ===== SIDEBAR READABILITY FIX ===== */
.popular-list li,
.popular-list li a {
  width: 100%;
  min-width: 0;
}

.popular-list li a {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.popular-list li > div,
.popular-list li a > div {
  min-width: 0;
  flex: 1;
}

.pop-title {
  display: block;
  overflow: visible;
  color: var(--green-dark);
  line-height: 1.28;
  word-break: normal;
  overflow-wrap: anywhere;
  white-space: normal;
}

.latest-list strong,
.category-list li,
.cat-label-wrap {
  min-width: 0;
}

.latest-list strong {
  overflow-wrap: anywhere;
  white-space: normal;
}

.category-list li {
  gap: 14px;
  padding: 16px 28px;
}

.category-list .cat-label-wrap {
  flex: 1;
}

.category-list .cat-count {
  flex-shrink: 0;
}

.outer-sidebar .widget-title {
  padding: 16px 28px 14px;
}

.outer-sidebar .popular-list li > div,
.outer-sidebar .popular-list li a > div {
  padding-right: 18px;
}

.outer-sidebar .widget-about {
  padding: 28px;
}

.outer-sidebar .sidebar-ad-slot {
  margin: 0;
}

@media (max-width: 1439px) {
  .ad-sidebar-left {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  .ad-page-layout {
    max-width: 760px;
    padding: 0 22px;
  }
}

@media (max-width: 900px) {
  .outer-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ad-page-layout {
    padding: 0 16px;
  }

  .latest-list a,
  .category-list li,
  .outer-sidebar .widget-title {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 1240px) {
  .hamburger {
    display: flex;
  }

  .navbar {
    position: relative;
  }

  .navbar .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--green-dark);
    z-index: 300;
    box-shadow: var(--shadow-lg);
  }

  .navbar .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    min-height: 44px;
    border-left: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links li:last-child a {
    border-right: 0;
  }

  .nav-meta {
    display: none;
  }
}
