/* ============================================
   MODERN THEME - Website Desa
   Bootstrap 5 Ready | CSS Variables | Premium
   ============================================ */

/* --- FONT IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* --- CSS VARIABLES (warna diinjeksikan oleh PHP) --- */
:root {
  --primary: #1a6e3c;
  --primary-dark: #124e2a;
  --primary-light: #25a558;
  --secondary: #f4a820;
  --secondary-dark: #d4880a;
  --accent: #0d9488;
  --bg-dark: #0f172a;
  --bg-dark2: #1e293b;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-hero: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-colored: 0 8px 30px rgba(26, 110, 60, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --mobile-nav-height: 80px;
  /* Base mobile nav height */
}

/* --- GLOBAL RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
  max-width: 100% !important;
}

/* Strict fix for any horizontal scroll - refined to avoid clipping */
html,
body {
  overflow-x: hidden !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0;
  padding: 0;
}

.container,
.container-fluid {
  padding-left: 16px !important;
  padding-right: 16px !important;
  width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.row>* {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

@media (max-width: 576px) {

  .container,
  .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
}

/* ============ NAVBAR ============ */
.modern-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

.modern-navbar .topbar {
  background: var(--primary-dark);
  padding: 6px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
}

.modern-navbar .topbar a {
  color: rgba(255, 255, 255, 0.8);
}

.modern-navbar .topbar a:hover {
  color: var(--secondary);
}

.modern-navbar .mainbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: 0;
}

.modern-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.modern-navbar .navbar-brand img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  .modern-navbar .navbar-brand img {
    height: 40px;
    width: 40px;
  }
}

.modern-navbar .brand-text .desa-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  .modern-navbar .brand-text .desa-name {
    font-size: 12px;
  }
}

.modern-navbar .brand-text .desa-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  .modern-navbar .brand-text .desa-sub {
    font-size: 9px;
  }
}

.modern-navbar .nav-link {
  font-size: 14px;
  font-weight: 600;
  padding: 18px 16px !important;
  color: var(--text-dark) !important;
  position: relative;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.modern-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-navbar .nav-link:hover::after,
.modern-navbar .nav-link.active::after {
  transform: scaleX(1);
}

.modern-navbar .nav-link:hover {
  color: var(--primary) !important;
  text-shadow: 0 0 1px rgba(26, 110, 60, 0.2);
}

.modern-navbar .dropdown-menu {
  border: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 12px;
  min-width: 250px;
  margin-top: 15px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.03);
  animation: dropdownFade 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform-origin: top;
  display: none;
}

.modern-navbar .dropdown-menu.show {
  display: block;
}

@keyframes dropdownFade {
  0% {
    opacity: 0;
    transform: translateY(15px) scaleY(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.modern-navbar .dropdown-item {
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--text-dark);
  transition: all 0.25s ease;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}

.modern-navbar .dropdown-item i {
  color: var(--primary);
  width: 22px;
  text-align: center;
  margin-right: 8px;
  opacity: 0.75;
  transition: all 0.25s ease;
}

.modern-navbar .dropdown-item:hover {
  background: linear-gradient(135deg, rgba(26, 110, 60, 0.05), rgba(37, 165, 88, 0.02));
  color: var(--primary);
  transform: translateX(5px);
}

.modern-navbar .dropdown-item:hover i {
  opacity: 1;
  transform: scale(1.15);
}

.modern-navbar .btn-aspirasi {
  background: var(--gradient-primary);
  color: white !important;
  border-radius: 25px;
  padding: 8px 20px !important;
  font-size: 13px;
  box-shadow: var(--shadow-colored);
  margin-left: 8px;
}

.modern-navbar .btn-aspirasi:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(26, 110, 60, 0.35);
}

.modern-navbar .btn-aspirasi::after {
  display: none;
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============ PAGE TOP OFFSET ============ */
.page-content {
  padding-top: 110px;
  /* Increased for desktop */
}

@media (max-width: 991px) {
  .page-content {
    padding-top: 90px;
  }
}

@media (max-width: 576px) {
  .page-content {
    padding-top: 85px;
  }
}

.page-content-with-topbar {
  padding-top: 165px;
}

.hero-section,
.slider-modern,
#heroCarousel {
  margin-top: 0;
  /* Reset margin top as we use padding instead for better control */
}

/* ============ HERO / SLIDER ============ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="20"/></svg>');
  background-size: 400px;
  opacity: 0.5;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70'%3E%3Cpath fill='%23f8fafc' d='M0,70L1440,0L1440,70Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

/* ============ SECTION STYLES ============ */
.section-modern {
  padding: 80px 0;
  overflow: hidden;
  /* Prevent AOS overflow */
}

.section-modern.bg-alt {
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title .badge-label {
  display: inline-block;
  background: rgba(26, 110, 60, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.section-title h2 span {
  color: var(--primary);
}

.section-title p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

.title-line {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ============ SAMBUTAN SECTION ============ */
.sambutan-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(26, 110, 60, 0.08);
}

.sambutan-card .kades-photo-wrap {
  position: relative;
  text-align: center;
  padding: 0;
}

.sambutan-card .kades-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px 12px 0 0;
  border: none;
  box-shadow: none;
}

.sambutan-card .kades-name-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 12px 20px;
  text-align: center;
  margin-top: 0;
}

.sambutan-card .kades-name-badge h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.sambutan-card .kades-name-badge span {
  font-size: 12px;
  opacity: 0.85;
}

.sambutan-content {
  padding: 30px;
}

.sambutan-content h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.sambutan-content h2 span {
  color: var(--primary);
}

.sambutan-content p {
  color: var(--text-muted);
  line-height: 1.8;
  text-align: justify;
}

/* ============ FEATURE ICONS ============ */
.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid rgba(26, 110, 60, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 16px;
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 110, 60, 0.2);
}

.feature-box .icon-wrap {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, rgba(26, 110, 60, 0.1), rgba(37, 165, 88, 0.15));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}

.feature-box h6 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.feature-box p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============ STATS COUNTER ============ */
.stats-section {
  background: var(--gradient-primary);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.stat-card {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.stat-card .stat-icon {
  margin-bottom: 20px;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-icon i {
  font-size: 36px;
}

.stat-card .stat-icon img {
  height: 45px !important;
  width: auto;
  object-fit: contain;
}

.stat-card .stat-number {
  font-size: 2.5rem;
  /* Reduced from 3rem for better balance */
  font-weight: 800;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Mini Stats (for sub-sections) */
.stat-mini-label {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0;
}

.stat-mini-number {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (max-width: 767px) {
  .stat-mini-label {
    font-size: 10px;
    letter-spacing: 0.3px;
  }

  .stat-mini-number {
    font-size: 1.1rem;
  }
}

.stat-card .stat-divider {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  margin: 10px auto;
}

/* ============ NEWS CARDS ============ */
.news-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-card .thumb-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.news-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .thumb-wrap img {
  transform: scale(1.07);
}

.news-card .card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card .card-body {
  padding: 20px;
}

.news-card .card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-card .card-meta i {
  color: var(--primary);
}

.news-card h5 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.news-card .btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 25px;
  box-shadow: var(--shadow-colored);
  transition: var(--transition);
}

.news-card .btn-readmore:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(26, 110, 60, 0.35);
}

/* ============ PAGINATION ============ */
.pagination-modern .page-link {
  border: none;
  border-radius: 8px;
  margin: 0 4px;
  color: var(--text-dark);
  font-weight: 600;
  padding: 8px 16px;
  transition: var(--transition);
  background-color: transparent;
}

.pagination-modern .page-link:hover {
  background-color: rgba(26, 110, 60, 0.08);
  color: var(--primary);
}

.pagination-modern .page-item.active .page-link {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-colored);
}

.pagination-modern .page-item.disabled .page-link {
  color: var(--text-muted);
  background-color: transparent;
  opacity: 0.5;
}

/* ============ TEAM CARDS ============ */
.team-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(26, 110, 60, 0.08);
  transition: var(--transition);
  height: 100%;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-card .team-photo-wrap {
  background: var(--gradient-primary);
  padding: 30px 20px 20px;
  position: relative;
}

.team-card .team-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.team-card .team-body {
  padding: 20px;
}

.team-card h5 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}

.team-card .jabatan-badge {
  background: rgba(26, 110, 60, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.team-card .nipd-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.team-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.team-card .btn-detail {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 22px;
  border-radius: 25px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-block;
  box-shadow: var(--shadow-colored);
}

.team-card .btn-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(26, 110, 60, 0.35);
}

/* ============ PAGE BANNER ============ */
.page-banner {
  background: var(--gradient-hero);
  padding: 160px 20px 60px;
  /* Added inner padding for symmetry */
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-banner {
    padding: 140px 15px 50px;
    /* Ensure text doesn't hit the navbar */
  }
}

@media (max-width: 576px) {
  .page-banner {
    padding: 140px 15px 40px;
    /* Increased from 120px */
  }
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50'%3E%3Cpath fill='%23f8fafc' d='M0,50L1440,0L1440,50Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.page-banner h1 {
  color: white;
  font-size: 2.2rem;
  margin: 0 0 12px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .page-banner h1 {
    font-size: 1.5rem;
  }
}

.page-banner .breadcrumb-modern {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.page-banner .breadcrumb-modern li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.page-banner .breadcrumb-modern li a {
  color: var(--secondary);
}

.page-banner .breadcrumb-modern li+li::before {
  content: '/';
  margin-right: 8px;
}

/* ============ FOOTER ============ */
.modern-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 70px;
  font-size: 14px;
}

.modern-footer h5 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.modern-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}

.modern-footer p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
}

.modern-footer a {
  color: rgba(255, 255, 255, 0.65);
}

.modern-footer a:hover {
  color: var(--secondary);
}

.modern-footer .footer-brand img {
  height: 60px;
  opacity: 1;
  margin-bottom: 10px;
}

.modern-footer .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-footer .contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.65);
}

.modern-footer .contact-list li i {
  color: var(--primary-light);
  min-width: 18px;
}

.modern-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-footer .footer-links li {
  margin-bottom: 10px;
}

.modern-footer .footer-links li::before {
  content: '›';
  color: var(--primary-light);
  margin-right: 8px;
  font-weight: 700;
  font-size: 16px;
}

.modern-footer .social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.modern-footer .social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.modern-footer .social-links a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.modern-footer .ext-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 4px;
  transition: var(--transition);
}

.modern-footer .ext-logo:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.modern-footer .ext-logo img {
  height: 36px;
  object-fit: contain;
  opacity: 1;
}

.modern-footer .footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  margin-top: 50px;
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.modern-footer .stat-visitor {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-footer .stat-visitor li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.modern-footer .stat-visitor li:last-child {
  border-bottom: none;
}

.modern-footer .stat-visitor li b {
  color: var(--secondary);
}

.modern-footer .staff-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-footer .staff-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.modern-footer .staff-list li span:last-child {
  color: var(--secondary);
  font-size: 11px;
}

.modern-footer .jam-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-footer .jam-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.modern-footer .jam-list li:last-child {
  border-bottom: none;
}

.modern-footer .jam-list li span:last-child {
  color: var(--secondary);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-colored);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  color: white;
  box-shadow: 0 12px 35px rgba(26, 110, 60, 0.4);
}

/* ============ GALLERY ============ */
.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-card:hover .overlay {
  opacity: 1;
}

.gallery-card .overlay p {
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

/* ============ DOWNLOAD LIST ============ */
.download-item {
  background: white;
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border: 1px solid rgba(26, 110, 60, 0.1);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.download-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.download-item .file-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-item .file-icon {
  width: 48px;
  height: 48px;
  background: rgba(26, 110, 60, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}

.download-item h6 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.download-item small {
  color: var(--text-muted);
  font-size: 12px;
}

.download-item .btn-dl {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-colored);
}

.download-item .btn-dl:hover {
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 8px 25px rgba(26, 110, 60, 0.35);
}

/* ============ ASPIRASI FORM ============ */
.form-modern .form-control,
.form-modern .form-select {
  border-radius: 10px;
  border: 1px solid rgba(26, 110, 60, 0.2);
  padding: 12px 16px;
  font-size: 14px;
  transition: var(--transition);
  background: rgba(248, 250, 252, 0.8);
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 110, 60, 0.1);
  background: white;
}

.form-modern .form-label {
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-modern .btn-submit {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 36px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-colored);
  transition: var(--transition);
}

.form-modern .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(26, 110, 60, 0.4);
}

/* ============ SLIDER MODERN (hero fallback) ============ */
.slider-modern {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.slider-modern .slide {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.slider-modern .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 40%, rgba(26, 110, 60, 0.5) 100%);
}

.slider-modern .slide-content {
  position: relative;
  z-index: 2;
  color: white;
}

.slider-modern .slide-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.slider-modern .slide-content p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 500px;
  margin-bottom: 28px;
}

/* ============ ICON CIRCLE UTILITY ============ */
.icon-circle {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Size Variations */
.icon-circle.sm {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
}

.icon-circle.md {
  width: 50px;
  height: 50px;
}

.icon-circle:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.icon-circle img {
  height: 60%;
  width: 60%;
  object-fit: contain;
}

/* ============ UTILS ============ */
.text-primary-custom {
  color: var(--primary) !important;
}

.bg-primary-custom {
  background: var(--gradient-primary) !important;
}

.btn-primary-custom {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: var(--shadow-colored);
  transition: var(--transition);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 12px 35px rgba(26, 110, 60, 0.4);
}

.divider-wave {
  height: 60px;
  background-size: cover;
  background-repeat: no-repeat;
}

.section-alt {
  background: white;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .modern-navbar .nav-link::after {
    display: none;
  }

  .modern-navbar .nav-link {
    padding: 10px 16px !important;
  }

  .modern-navbar .mainbar {
    padding: 8px 0;
  }

  .modern-navbar .btn-aspirasi {
    margin: 8px 16px;
    border-radius: 10px;
  }

  .section-modern {
    padding: 50px 0;
  }

  .slider-modern .slide-content h1 {
    font-size: 2rem;
  }

  .stat-card .stat-number {
    font-size: 1.8rem;
  }

  .stat-card .stat-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }

  .icon-circle {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
  }

  .icon-circle.sm {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 767px) {
  .stat-card {
    padding: 0.75rem !important;
    /* Even more compact */
  }

  .stat-card .stat-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
  }

  .stat-card .stat-number {
    font-size: 1.4rem !important;
    /* Precise sizing */
    margin-bottom: 4px;
  }

  .stat-card .stat-label {
    font-size: 10px !important;
    letter-spacing: 0.3px;
    font-weight: 600;
  }

  .stat-divider {
    margin: 4px auto !important;
  }

  .icon-circle {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 8px;
  }

  .icon-circle.sm {
    width: 28px !important;
    height: 28px !important;
  }

  .page-content,
  .page-content-with-topbar {
    padding-top: 85px;
    /* Balanced for mobile */
  }

  .section-title h2 {
    font-size: 1.4rem;
  }

  .hero-section {
    min-height: 320px;
  }
}

/* ============ PPID PORTAL STYLES ============ */
.ppid-header-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1;
}

.ppid-description {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
}

.btn-ppid-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 8px;
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
}

.btn-ppid-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(var(--primary), 0.2);
  color: var(--primary-light);
}

.ppid-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
}

@media (max-width: 991px) {
  .ppid-cat-grid {
    grid-template-columns: 1fr;
  }
}

.ppid-cat-card {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.ppid-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.ppid-cat-card.active {
  border: 1.5px solid var(--primary);
  background: rgba(var(--primary), 0.02);
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.ppid-cat-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.ppid-cat-icon.icon-berkala {
  color: #2563eb;
}

/* Blue */
.ppid-cat-icon.icon-sertamerta {
  color: #f59e0b;
}

/* Orange/Yellow */
.ppid-cat-icon.icon-setiapsaat {
  color: #059669;
}

/* Green */

.ppid-cat-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.ppid-section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.ppid-section-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.ppid-file-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.ppid-file-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

.ppid-file-info {
  flex: 1;
}

.ppid-file-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.ppid-file-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: #64748b;
}

.ppid-file-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ppid-file-meta i {
  font-size: 11px;
}

.ppid-file-actions {
  display: flex;
  gap: 12px;
}

.btn-ppid-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: white;
  color: #1e293b;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-ppid-action:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  color: var(--primary) !important;
}

.btn-ppid-action i {
  font-size: 14px;
}

@media (max-width: 767px) {
  .ppid-file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .ppid-file-actions {
    width: 100%;
  }

  .btn-ppid-action {
    flex: 1;
    justify-content: center;
  }
}

/* ============ TV DESA (HOME) ============ */
.video-item-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.video-item-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.video-thumb-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.thumb-responsive {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.thumb-responsive img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-item-card:hover .thumb-responsive img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.play-overlay i {
  width: 50px;
  height: 50px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.video-item-card:hover .play-overlay {
  background: rgba(46, 125, 50, 0.4);
  opacity: 1;
}

.video-item-card:hover .play-overlay i {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.video-info {
  padding: 15px 20px 20px;
}

.video-info h5 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}