/* ============================================
   KampusToday - Style CSS
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1E3A8A;
  --primary-dark: #152C6B;
  --primary-light: #2E4A9A;
  --secondary: #2563EB;
  --accent: #F97316;
  --accent-hover: #EA580C;
  --background: #FFFFFF;
  --light: #F8FAFC;
  --border: #E5E7EB;
  --text: #111827;
  --text-light: #4B5563;
  --muted: #6B7280;
  --muted-light: #9CA3AF;
  --white: #FFFFFF;
  --dark: #0F172A;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.3s ease;
}

/* --- Dark Mode Variables --- */
[data-theme="dark"] {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #60A5FA;
  --secondary: #60A5FA;
  --background: #0F172A;
  --light: #1E293B;
  --border: #334155;
  --text: #F1F5F9;
  --text-light: #CBD5E1;
  --muted: #94A3B8;
  --muted-light: #64748B;
  --white: #1E293B;
  --dark: #F8FAFC;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text);
  background-color: var(--background);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* --- Utility --- */
.section-title {
  position: relative;
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent);
}

.section-title-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }

.bg-light { background-color: var(--light); }
.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header-scrolled {
  box-shadow: var(--shadow-md);
}

.top-header {
  background: var(--primary);
  color: var(--white);
  font-size: 0.8125rem;
  padding: 0.375rem 0;
  display: none;
}

.top-header a {
  color: rgba(255,255,255,0.85);
}

.top-header a:hover {
  color: var(--white);
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-header-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-header-social {
  display: flex;
  gap: 0.75rem;
}

.top-header-social a {
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.top-header-social a:hover {
  opacity: 0.8;
}

.navbar {
  padding: 0.75rem 0;
  background: var(--white);
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  padding: 0;
}

.navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-brand span {
  color: var(--primary);
}

.navbar-brand .accent {
  color: var(--accent);
}

.navbar .nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  padding: 0.5rem 0.875rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
  background: rgba(30, 58, 138, 0.06);
}

.navbar .nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.navbar .nav-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--light);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.nav-icon-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-subscribe {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
}

.btn-subscribe:hover {
  background: var(--accent-hover) !important;
  color: var(--white) !important;
}

/* --- Mega Menu --- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-xl);
  padding: 2rem 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1040;
}

.nav-item:hover .mega-menu,
.nav-item.show-mega .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.mega-menu-column h6 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.mega-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-column ul li {
  margin-bottom: 0.5rem;
}

.mega-menu-column ul li a {
  font-size: 0.9375rem;
  color: var(--text);
  transition: var(--transition);
  display: block;
  padding: 0.25rem 0;
}

.mega-menu-column ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.mega-menu-featured {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.mega-menu-featured .news-card {
  margin-bottom: 0;
}

/* --- Mobile Offcanvas --- */
.offcanvas {
  background: var(--white);
}

.offcanvas-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.offcanvas-body {
  padding: 1.5rem;
}

.offcanvas-body .nav-link {
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
}

.offcanvas-body .nav-link:last-child {
  border-bottom: none;
}

.offcanvas-body .nav-sub {
  list-style: none;
  padding-left: 1.25rem;
  margin: 0;
  display: none;
}

.offcanvas-body .nav-sub.show {
  display: block;
}

.offcanvas-body .nav-sub .nav-link {
  font-size: 0.875rem;
  padding: 0.5rem 0 !important;
  border-bottom: none;
  font-weight: 400;
}

/* --- Hero Slider --- */
.hero-section {
  padding: 1.5rem 0;
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  min-height: 400px;
}

.hero-slide {
  position: relative;
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}

.hero-overlay .category-badge {
  margin-bottom: 0.75rem;
  display: inline-block;
}

.hero-overlay h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.hero-overlay h2 a {
  color: #fff;
}

.hero-overlay h2 a:hover {
  color: rgba(255,255,255,0.85);
}

.hero-meta {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-dots {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

.hero-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-thumb-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--light);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.hero-thumb-item.active {
  border-color: var(--accent);
  background: var(--white);
}

.hero-thumb-item:hover {
  background: var(--white);
  border-color: var(--border);
}

.hero-thumb-item img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.hero-thumb-content {
  flex: 1;
  min-width: 0;
}

.hero-thumb-content h6 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-thumb-content .text-muted {
  font-size: 0.75rem;
}

/* --- Breaking News --- */
.breaking-news {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.breaking-label {
  background: var(--danger);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.breaking-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 24px;
}

.breaking-text {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: breakingTicker 30s linear infinite;
  font-size: 0.875rem;
  font-weight: 500;
}

.breaking-news:hover .breaking-text {
  animation-play-state: paused;
}

.breaking-text a {
  color: var(--text);
  white-space: nowrap;
}

.breaking-text a:hover {
  color: var(--primary);
}

.breaking-text span {
  margin: 0 1.5rem;
  color: var(--danger);
}

@keyframes breakingTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- News Card --- */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 1.25rem;
}

.news-card-body .category-badge {
  margin-bottom: 0.625rem;
  display: inline-block;
}

.news-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.news-card-title a {
  color: var(--text);
}

.news-card-title a:hover {
  color: var(--primary);
}

.news-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  font-size: 0.8125rem;
  color: var(--muted-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-card-meta .author-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* News Card Large */
.news-card-lg .news-card-img {
  aspect-ratio: 16/9;
}

.news-card-lg .news-card-title {
  font-size: 1.375rem;
}

/* News Card Small */
.news-card-sm {
  display: flex;
  flex-direction: row;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.news-card-sm:last-child {
  border-bottom: none;
}

.news-card-sm:hover {
  transform: none;
  box-shadow: none;
}

.news-card-sm .news-card-img {
  width: 100px;
  min-width: 100px;
  height: 75px;
  border-radius: var(--radius-sm);
  aspect-ratio: auto;
}

.news-card-sm .news-card-body {
  padding: 0 0 0 1rem;
}

.news-card-sm .news-card-title {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.news-card-sm .category-badge {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  margin-bottom: 0.375rem;
}

/* Horizontal Card */
.news-card-horizontal {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.news-card-horizontal:hover {
  box-shadow: var(--shadow-md);
}

.news-card-horizontal .news-card-img {
  width: 280px;
  min-width: 280px;
  aspect-ratio: auto;
  height: auto;
}

.news-card-horizontal .news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Category Badge --- */
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  transition: var(--transition);
}

.category-badge:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.category-badge-accent {
  background: var(--accent);
}

.category-badge-accent:hover {
  background: var(--accent-hover);
}

.category-badge-success {
  background: var(--success);
}

.category-badge-warning {
  background: var(--warning);
  color: var(--dark);
}

.category-badge-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

/* --- Editor's Choice Ribbon --- */
.editor-choice {
  position: relative;
}

.editor-choice::before {
  content: "Editor's Choice";
  position: absolute;
  top: 0.75rem;
  left: -0.25rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  z-index: 2;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- Pagination --- */
.pagination {
  gap: 0.375rem;
}

.pagination .page-link {
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm) !important;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--white);
  transition: var(--transition);
}

.pagination .page-link:hover {
  background: var(--light);
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.pagination .page-item.disabled .page-link {
  color: var(--muted-light);
  pointer-events: none;
  opacity: 0.5;
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: transparent;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: var(--muted);
}

.breadcrumb-item.active {
  color: var(--text);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--muted-light);
  content: '/';
}

/* --- Author Card --- */
.author-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card-info .name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

.author-card-info .role {
  font-size: 0.8125rem;
  color: var(--muted);
}

.author-card-lg img {
  width: 80px;
  height: 80px;
}

.author-card-lg .author-card-info .name {
  font-size: 1.125rem;
}

/* --- Tag --- */
.tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  background: var(--light);
  color: var(--text);
  border-radius: 50px;
  transition: var(--transition);
  margin: 0.25rem;
  border: 1px solid var(--border);
}

.tag:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.tag-active,
.tag.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* --- Newsletter Box --- */
.newsletter-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
}

.newsletter-box h4 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.newsletter-box p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 50px;
  font-size: 0.9375rem;
  outline: none;
}

.newsletter-form .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: var(--accent);
  border: none;
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form .btn:hover {
  background: var(--accent-hover);
}

.newsletter-message {
  max-width: 480px;
  margin: 0.75rem auto 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #fff;
}

.newsletter-message.success {
  color: #d1fae5;
}

.newsletter-message.error {
  color: #fecaca;
}

.newsletter-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  z-index: 1080;
  max-width: min(92vw, 420px);
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.newsletter-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.newsletter-toast.success {
  background: #059669;
}

.newsletter-toast.error {
  background: #dc2626;
}

/* --- Ad Banner --- */
.ad-banner {
  background: var(--light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-banner-side {
  min-height: 250px;
}

/* --- Skeleton Loader --- */
.skeleton {
  background: linear-gradient(90deg, var(--light) 25%, var(--border) 50%, var(--light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 0.5rem;
  width: 100%;
}

.skeleton-text-sm {
  width: 60%;
}

.skeleton-image {
  aspect-ratio: 16/10;
  width: 100%;
  border-radius: var(--radius);
}

.skeleton-title {
  height: 20px;
  margin-bottom: 0.625rem;
  width: 90%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--muted-light);
}

.empty-state h5 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* --- Sidebar --- */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.sidebar-widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

/* --- Social Media Widget --- */
.social-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.social-widget a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: var(--transition);
}

.social-widget a:hover {
  opacity: 0.9;
  color: #fff;
}

.social-widget .facebook { background: #1877F2; }
.social-widget .twitter { background: #1DA1F2; }
.social-widget .instagram { background: #E4405F; }
.social-widget .youtube { background: #FF0000; }
.social-widget .linkedin { background: #0A66C2; }
.social-widget .whatsapp { background: #25D366; }

/* --- Article Page --- */
.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.article-meta .separator {
  color: var(--border);
}

.article-featured-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-light);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2, .article-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  width: 100%;
}

.article-body figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* --- Table of Contents --- */
.toc {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.375rem;
}

.toc-list a {
  font-size: 0.9375rem;
  color: var(--text-light);
  display: block;
  padding: 0.25rem 0;
  padding-left: 1rem;
  border-left: 2px solid transparent;
  transition: var(--transition);
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--primary);
  border-left-color: var(--primary);
}

.toc-list .toc-h2 { padding-left: 1rem; }
.toc-list .toc-h3 { padding-left: 2rem; font-size: 0.875rem; }

/* --- Reading Progress Bar --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --- Share Buttons --- */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.share-btn-facebook { background: #1877F2; }
.share-btn-twitter { background: #1DA1F2; }
.share-btn-whatsapp { background: #25D366; }
.share-btn-telegram { background: #0088CC; }
.share-btn-copy { background: var(--muted); }

/* Sticky Share */
.sticky-share {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 100;
}

.sticky-share .share-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
}

/* --- Author Box --- */
.author-box {
  display: flex;
  gap: 1.5rem;
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.author-box img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-body h5 {
  margin-bottom: 0.375rem;
}

.author-box-body .role {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.author-box-body p {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

/* --- Comments --- */
.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-body .name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.comment-body .date {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.comment-body .text {
  font-size: 0.9375rem;
  color: var(--text-light);
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
  margin-top: 3rem;
}

.footer h5 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.625rem;
}

.footer ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo .accent {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--accent);
}

/* --- Back To Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.3s ease;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.back-to-top.clicked {
  animation: backToTopBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes backToTopBounce {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-10px) scale(0.94); }
  70% { transform: translateY(-2px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}

/* --- Cookie Consent --- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: rgba(255,255,255,0.9);
  padding: 1rem 1.5rem;
  z-index: 9998;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent.show {
  display: block;
  transform: translateY(0);
}

.cookie-consent .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-consent p {
  font-size: 0.875rem;
  margin: 0;
}

.cookie-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.cookie-btn:hover {
  background: var(--accent-hover);
}

/* --- Dark Mode Toggle --- */
.dark-mode-toggle {
  position: relative;
}

/* --- Search Overlay --- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1050;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  backdrop-filter: blur(4px);
}

.search-overlay.show {
  display: flex;
}

.search-overlay-content {
  width: 100%;
  animation: searchFadeIn 0.3s ease;
}

@keyframes searchFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Live Search --- */
.live-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 1rem;
  display: none;
  z-index: 1050;
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.live-search-results.show {
  display: block;
}

.live-search-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.live-search-item:last-child {
  border-bottom: none;
}

.live-search-item:hover {
  background: var(--light);
  margin: 0 -0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
}

.live-search-item img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.live-search-item .content h6 {
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.live-search-item .content .text-muted {
  font-size: 0.75rem;
}

/* --- Contact Page --- */
.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h6 {
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

.form-control {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  outline: none;
}

.form-label {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}

/* --- Error Page (404) --- */
.error-page {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  text-align: center;
  overflow: hidden;
}

.error-code {
  display: block;
  font-family: var(--font-primary);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--primary);
  opacity: 0.14;
  margin-bottom: -2rem;
  user-select: none;
}

.error-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.error-text {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.error-actions .btn {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  transition: var(--transition);
}

.error-actions .btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.error-actions .btn-primary:hover,
.error-actions .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.error-actions .btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background-color: transparent;
}

.error-actions .btn-outline-primary:hover,
.error-actions .btn-outline-primary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

@media (max-width: 575.98px) {
  .error-actions .btn {
    width: 100%;
  }
}

/* --- About Page --- */
.about-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
}

.about-hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.team-card h5 {
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* --- Category Page --- */
.category-header {
  background: var(--light);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.category-header h1 {
  margin-bottom: 0.5rem;
}

.category-header p {
  color: var(--muted);
  margin: 0;
}

/* --- Shared Page Hero --- */
.page-hero {
  background: var(--light);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
  max-width: 900px;
}

.page-hero p {
  color: var(--muted);
  max-width: 820px;
  margin-bottom: 1rem;
}

.page-hero .breadcrumb {
  margin-bottom: 0;
}

.page-hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

/* --- Search Page --- */
.search-form-large {
  position: relative;
  margin-bottom: 2rem;
}

.search-form-large input {
  width: 100%;
  padding: 1rem 1.25rem;
  padding-right: 3.5rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1.0625rem;
  outline: none;
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}

.search-form-large input:focus {
  border-color: var(--primary);
}

.search-form-large button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.search-form-large button:hover {
  background: var(--accent);
}

/* --- Author Page --- */
.author-header {
  background: var(--light);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.author-header-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.author-header-inner img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-header-info h1 {
  margin-bottom: 0.5rem;
}

.author-header-info .role {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.author-header-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.author-stats {
  display: flex;
  gap: 2rem;
}

.author-stats .stat {
  text-align: center;
}

.author-stats .stat .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.author-stats .stat .label {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --- Privacy & Terms --- */
.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.legal-content .last-updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.about-hero .last-updated {
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.legal-content .about-hero p {
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 0.75rem;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Print Styles --- */
@media print {
  .header, .footer, .sidebar, .share-buttons, .sticky-share,
  .reading-progress, .back-to-top, .cookie-consent,
  .newsletter-box, .related-articles, .comments-section,
  .ad-banner, .nav-icons, .navbar-toggler, .breaking-news {
    display: none !important;
  }
  .article-body {
    font-size: 12pt;
  }
  .article-title {
    font-size: 24pt;
  }
  body {
    background: white;
    color: black;
  }
}

/* --- Page Builder Output --- */
.pb-page {
  padding: 1.5rem 0 3rem;
}

.pb-page .pb-figure {
  margin: 0 0 1.5rem;
}

.pb-page .pb-figure img {
  height: auto;
}

.pb-page .pb-list {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.pb-page .pb-list li {
  margin-bottom: 0.4rem;
}

.pb-page .pb-divider {
  border-color: var(--border);
  opacity: 0.9;
  margin: 2rem 0;
}

.pb-page .pb-cols {
  margin-bottom: 1.5rem;
}

.pb-page .pb-col > p:last-child {
  margin-bottom: 0;
}

.pb-page .pb-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.pb-page .pb-cta {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.06), rgba(30, 58, 138, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 1.5rem 0;
}

.pb-page .pb-cta h3 {
  margin-bottom: 0.75rem;
}

.pb-page .pb-cta p:last-of-type {
  margin-bottom: 1.25rem;
}

/* Brand buttons (dipakai halaman hasil Page Builder) */
.btn-brand {
  display: inline-block;
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

.btn-outline-brand {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .pb-page .pb-cta {
    padding: 1.5rem;
  }
}

/* --- Iklan (Ads) --- */
.ad-item {
  position: relative;
}

.ad-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.ad-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-sidebar-widget {
  padding: 0.75rem;
}

.ad-container-top,
.ad-container-bottom {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Fallback iklan sidebar pada halaman tanpa sidebar */
.ad-container-sidebar-fallback {
  max-width: 360px;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.ad-item-top img,
.ad-item-bottom img {
  max-height: 200px;
  object-fit: cover;
}

/* Popup iklan */
.ad-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ad-popup.is-open {
  display: flex;
}

.ad-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(2px);
}

.ad-popup-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 640px);
  max-height: 90vh;
  overflow: auto;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.ad-popup-content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.ad-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ad-popup-close:hover {
  background: rgba(15, 23, 42, 0.16);
}

body.ad-popup-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .ad-popup-dialog {
    padding: 1rem;
  }

  .ad-item-top img,
  .ad-item-bottom img {
    max-height: 140px;
  }
}

/* ============================================
   EVENT / KEGIATAN
   ============================================ */
.event-section { padding: 2.5rem 0 4rem; }

.event-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.event-search { flex: 1 1 320px; max-width: 520px; }
.event-search .input-group-text { border-right: 0; color: var(--muted); }

.event-filter-links { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.event-filter-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
}
.event-filter-links a:hover,
.event-filter-links a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.event-filter-links .event-ticket-link { color: var(--accent); border-color: var(--accent); }
.event-filter-links .event-ticket-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.event-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.event-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
}
.event-chip:hover,
.event-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.event-card-cover { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--light); overflow: hidden; }
.event-card-cover img { width: 100%; height: 100%; object-fit: cover; }

.event-date-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--shadow);
}
.event-date-badge b { display: block; font-size: 1.25rem; }
.event-date-badge small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }

.event-phase {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: #fff;
}
.event-card-cover .event-phase { position: absolute; top: 0.75rem; right: 0.75rem; }
.event-badge-upcoming { background: var(--secondary); }
.event-badge-ongoing { background: var(--success); }
.event-badge-done { background: var(--muted); }

.event-card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.event-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin: 0.5rem 0; }
.event-card-title a { color: var(--text); text-decoration: none; }
.event-card-title a:hover { color: var(--primary); }
.event-card-excerpt { color: var(--text-light); font-size: 0.9rem; margin-bottom: 0.85rem; }

.event-card-meta { list-style: none; padding: 0; margin: 0 0 0.9rem; display: grid; gap: 0.35rem; }
.event-card-meta li { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }
.event-card-meta i { color: var(--primary); }

.event-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.event-open-tag, .event-closed-tag { font-size: 0.75rem; font-weight: 600; }
.event-open-tag { color: var(--success); }
.event-closed-tag { color: var(--muted); }
.event-detail-link { font-size: 0.82rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.event-detail-link:hover { color: var(--accent); }

.event-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.event-empty i { font-size: 3rem; color: var(--muted-light); }
.event-empty h3 { margin-top: 1rem; color: var(--text); }

/* --- Detail --- */
.event-detail-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 1.75rem; }
.event-detail-cover { position: relative; aspect-ratio: 16 / 8; background: var(--light); overflow: hidden; }
.event-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-detail-cover .event-phase { position: absolute; top: 1rem; right: 1rem; }
.event-detail-body { padding: 1.5rem; }

.event-info-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  background: var(--light);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.event-info-item { display: flex; gap: 0.65rem; align-items: flex-start; }
.event-info-item > i { font-size: 1.15rem; color: var(--primary); line-height: 1.2; }
.event-info-item small { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.event-info-item strong { font-size: 0.9rem; color: var(--text); font-weight: 600; }

.event-description { color: var(--text-light); line-height: 1.8; }
.event-description img { max-width: 100%; height: auto; border-radius: var(--radius); }

.event-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.75rem; box-shadow: var(--shadow-sm); }
.event-panel-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.event-panel-title i { color: var(--accent); }

/* --- Timeline --- */
.event-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.event-timeline::before { content: ''; position: absolute; left: 74px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.event-timeline-item { display: flex; gap: 1rem; padding-bottom: 1.25rem; position: relative; }
.event-timeline-item:last-child { padding-bottom: 0; }
.event-timeline-time { width: 60px; flex: 0 0 60px; text-align: right; }
.event-timeline-time b { display: block; font-size: 0.95rem; color: var(--primary); }
.event-timeline-time small { color: var(--muted); font-size: 0.75rem; }
.event-timeline-body { position: relative; padding-left: 1.35rem; flex: 1; }
.event-timeline-body::before { content: ''; position: absolute; left: -5px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); }
.event-timeline-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.event-timeline-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.15rem; }
.event-timeline-desc { font-size: 0.88rem; color: var(--text-light); margin-top: 0.4rem; margin-bottom: 0; }

/* --- Klasemen --- */
.event-standings-table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); background: var(--light); border-bottom: 1px solid var(--border); }
.event-standings-table td { vertical-align: middle; font-size: 0.9rem; }
.event-rank { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--light); color: var(--text-light); font-weight: 700; font-size: 0.8rem; }
.event-rank-1 { background: #FEF3C7; color: #B45309; }
.event-rank-2 { background: #E5E7EB; color: #374151; }
.event-rank-3 { background: #FDE68A; color: #92400E; }

/* --- Form --- */
.event-form .form-label { font-weight: 600; font-size: 0.88rem; }
.event-registered-note { display: flex; gap: 0.85rem; background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: var(--radius); padding: 1rem; color: #065F46; }
.event-registered-note > i { font-size: 1.4rem; }
.event-registered-note p { margin: 0.35rem 0; }

/* --- Sidebar --- */
.event-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.event-side-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.event-side-title { font-size: 1.2rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.6rem; }
.event-side-heading { font-size: 1rem; font-weight: 700; margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.45rem; }
.event-side-heading i { color: var(--accent); }
.event-side-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.65rem; }
.event-side-list li { display: flex; gap: 0.6rem; font-size: 0.88rem; color: var(--text-light); }
.event-side-list i { color: var(--primary); margin-top: 0.15rem; }

.event-checkin-code-box { background: var(--light); border: 1px dashed var(--border); border-radius: var(--radius); padding: 0.85rem; text-align: center; margin-top: 0.75rem; }
.event-checkin-code-box small { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.event-checkin-code-box b { display: block; font-size: 1.4rem; letter-spacing: 0.08em; color: var(--primary); }
.event-checkin-code-box span { display: block; font-size: 0.75rem; color: var(--muted); }

.event-share { display: flex; gap: 0.6rem; }
.event-share a { width: 40px; height: 40px; border-radius: 50%; background: var(--light); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; text-decoration: none; transition: var(--transition); }
.event-share a:hover { background: var(--primary); color: #fff; }

.event-my-ticket { text-align: center; background: var(--light); border-radius: var(--radius); padding: 1rem; }
.event-my-ticket small { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.event-ticket-code { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.08em; color: var(--primary); background: transparent; padding: 0; }

/* --- Tiket --- */
.event-ticket-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.event-ticket-head { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; padding: 1.35rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.event-ticket-head small { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; opacity: 0.8; }
.event-ticket-head h2 { font-size: 1.15rem; margin: 0.2rem 0 0; color: #fff; }
.event-ticket-head > i { font-size: 2rem; opacity: 0.7; }
.event-ticket-body { padding: 1.25rem 1.5rem; }
.event-ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.event-ticket-row:last-child { border-bottom: 0; }
.event-ticket-row > span:first-child { color: var(--muted); }
.event-ticket-foot { padding: 1rem 1.5rem; background: var(--light); display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 991.98px) {
  .event-info-strip { grid-template-columns: 1fr; }
  .event-sidebar { margin-top: 0.5rem; }
}

@media (max-width: 575.98px) {
  .event-timeline::before { left: 56px; }
  .event-timeline-time { width: 46px; flex-basis: 46px; }
  .event-timeline-body { padding-left: 1.1rem; }
  .event-ticket-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}
