/* =====================================================
   DUSUN LEGOK NO'ONG - MAIN STYLESHEET
   Palette: Biru Laut #1e3a8a | Putih #ffffff | Emas #d4af37
   ===================================================== */

:root {
  --green: #1e3a8a;
  --green-dark: #0f1e4d;
  --green-light: #3b5fc4;
  --green-soft: #e8eef9;
  --gold: #d4af37;
  --gold-dark: #b8941f;
  --gold-soft: #fdf6e3;
  --cream: #faf8f3;
  --text-dark: #1a2b22;
  --text-muted: #5b6b8c;
  --bg-light: #f5f7fb;
  --border-light: #dde4f0;
  --shadow-sm: 0 2px 8px rgba(30,58,138,.06);
  --shadow-md: 0 8px 24px rgba(30,58,138,.10);
  --shadow-lg: 0 20px 50px rgba(30,58,138,.15);
  --radius: 14px;
  --radius-lg: 22px;
  --transition: all .35s cubic-bezier(.25,.8,.25,1);
  --header-h: 80px;
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
  --green-soft: #0a2a1c;
  --gold-soft: #2a2410;
  --cream: #121815;
  --text-dark: #e8f0eb;
  --text-muted: #9babc7;
  --bg-light: #0e1726;
  --border-light: #1f2a44;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
}

/* ============= LOADING SCREEN ============= */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity .8s ease, visibility .8s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-logo {
  font-size: 36px; font-weight: 700; color: #fff; text-align: center;
  letter-spacing: 1px;
}
.loading-logo .accent { color: var(--gold); }
.loading-spinner {
  width: 64px; height: 64px;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading-text {
  color: rgba(255,255,255,.8); font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============= BASE ============= */
* { scroll-behavior: smooth; }
body {
  font-family: 'Inter','Segoe UI',system-ui,sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.7;
}
[data-bs-theme="dark"] body { background: #080d1c; color: var(--text-dark); }

h1,h2,h3,h4,h5,h6 { font-weight: 700; letter-spacing: -.5px; }
a { transition: var(--transition); color: var(--green); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
section { position: relative; }

::selection { background: var(--gold); color: #fff; }

/* ============= SCROLLBAR ============= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }

/* ============= CONTAINER ============= */
.container { max-width: 1240px; }

/* ============= STICKY HEADER ============= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1030;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
[data-bs-theme="dark"] .site-header {
  background: rgba(10,16,13,.92);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,.98);
}
[data-bs-theme="dark"] .site-header.scrolled { background: rgba(10,16,13,.98); }

.header-top {
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; font-size: 13px; padding: 7px 0;
}
.header-top a { color: #fff; }
.header-top .top-info i { color: var(--gold); margin-right: 6px; }
.header-top .social-links a {
  display: inline-flex; width: 28px; height: 28px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.15); border-radius: 50%;
  margin-left: 4px; font-size: 13px;
}
.header-top .social-links a:hover { background: var(--gold); color: #fff; }

.navbar-custom { padding: 14px 0; }
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; color: var(--green); font-size: 22px;
}
.navbar-brand img { width: 50px; height: 50px; object-fit: cover; border-radius: 12px; }
.navbar-brand .brand-name { line-height: 1.2; display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.navbar-brand .brand-title { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.navbar-brand .brand-name small {
  display: inline-block; font-size: 11px; color: var(--gold); font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap;
}
.navbar-custom .nav-link {
  color: var(--text-dark); font-weight: 500; padding: 10px 16px !important;
  border-radius: 10px; position: relative; white-space: nowrap;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--green); background: var(--green-soft);
}
.navbar-custom .nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 3px; background: var(--gold); border-radius: 2px;
}

/* Dark mode toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-soft); border: 1px solid var(--border-light);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green); cursor: pointer; font-size: 18px;
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--green); color: #fff; transform: rotate(20deg); }

.navbar-toggler { border: 1px solid var(--border-light); padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: none; }

/* ============= HERO SLIDER ============= */
.hero-slider {
  margin-top: var(--header-h);
  position: relative; height: 92vh; min-height: 600px;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
  opacity: 0; transition: opacity 1.5s ease-in-out;
  z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,30,77,.85) 0%, rgba(30,58,138,.6) 50%, rgba(0,0,0,.3) 100%);
}
.hero-slide-content {
  position: relative; z-index: 3; color: #fff;
  max-width: 760px; padding: 0 20px;
  animation: fadeUp 1.2s ease both;
}
.hero-slide-content .badge {
  background: var(--gold); color: #000;
  padding: 8px 18px; border-radius: 30px;
  font-weight: 600; letter-spacing: 1px; margin-bottom: 18px;
  text-transform: uppercase; font-size: 12px;
}
.hero-slide-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero-slide-content p {
  font-size: 1.15rem; margin-bottom: 28px;
  text-shadow: 0 2px 15px rgba(0,0,0,.4);
  max-width: 600px;
}
.hero-slide-content .btn {
  padding: 13px 30px; border-radius: 50px;
  font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; font-size: 14px;
}
.btn-gold { background: var(--gold); border-color: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(212,175,55,.4); }
.btn-outline-light:hover { background: #fff; color: var(--green); }

.hero-indicators {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 10px;
}
.hero-indicator {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: 2px solid #fff;
  cursor: pointer; transition: var(--transition);
}
.hero-indicator.active { background: var(--gold); border-color: var(--gold); transform: scale(1.2); }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 50px; height: 50px;
  border-radius: 50%; background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 22px; backdrop-filter: blur(10px);
  transition: var(--transition);
}
.hero-nav:hover { background: var(--gold); border-color: var(--gold); color: #000; }
.hero-nav.prev { left: 30px; }
.hero-nav.next { right: 30px; }

.scroll-down {
  position: absolute; bottom: 30px; right: 30px; z-index: 10;
  color: #fff; font-size: 30px;
  animation: bounce 2s infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ============= PAGE HEADER (inner pages) ============= */
.page-header {
  margin-top: var(--header-h);
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.15) 0%, transparent 70%);
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-header h1 { font-size: 2.6rem; margin-bottom: 8px; }
.page-header .breadcrumb {
  display: inline-flex; background: rgba(255,255,255,.1);
  padding: 8px 20px; border-radius: 50px; margin-bottom: 0;
}
.page-header .breadcrumb-item a { color: rgba(255,255,255,.85); }
.page-header .breadcrumb-item a:hover { color: var(--gold); }
.page-header .breadcrumb-item.active { color: var(--gold); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ============= SECTION ============= */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title {
  text-align: center; margin-bottom: 50px; position: relative;
}
.section-title h2 {
  font-size: 2.3rem; color: var(--text-dark); margin-bottom: 12px;
  position: relative; display: inline-block;
}
[data-bs-theme="dark"] .section-title h2 { color: #fff; }
.section-title h2::after {
  content: ''; position: absolute; bottom: -10px; left: 50%;
  transform: translateX(-50%); width: 80px; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 4px;
}
.section-title p {
  color: var(--text-muted); max-width: 700px; margin: 20px auto 0;
}
.section-title.text-start h2::after { left: 0; transform: none; }
.section-title.text-start p { margin-left: 0; }

/* ============= CARD ============= */
.card-custom {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); height: 100%;
}
[data-bs-theme="dark"] .card-custom { background: #141b30; border-color: var(--border-light); }
.card-custom:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.card-custom .card-img-top {
  height: 220px; object-fit: cover; transition: var(--transition);
}
.card-custom:hover .card-img-top { transform: scale(1.05); }
.card-custom .card-body { padding: 24px; }
.card-custom .card-title {
  font-size: 1.15rem; margin-bottom: 10px; color: var(--text-dark);
  font-weight: 700;
}
.card-custom .card-text { color: var(--text-muted); font-size: .92rem; }
.card-custom .badge-category {
  background: var(--green-soft); color: var(--green);
  padding: 5px 12px; border-radius: 20px; font-size: 11px;
  font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
}

/* ============= BUTTONS ============= */
.btn { font-weight: 600; transition: var(--transition); border-radius: 8px; padding: 10px 22px; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(30,58,138,.3); }
.btn-outline-green { color: var(--green); border-color: var(--green); background: transparent; }
.btn-outline-green:hover { background: var(--green); color: #fff; }

/* ============= STATS / COUNTER ============= */
.stats-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: #fff; padding: 60px 0; position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 0L60 30L30 60L0 30Z" fill="rgba(255,255,255,0.03)"/></svg>');
}
.stat-item { text-align: center; padding: 20px; position: relative; }
.stat-item .stat-icon {
  width: 70px; height: 70px; margin: 0 auto 16px;
  background: rgba(212,175,55,.2); border: 2px solid var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--gold);
}
.stat-item .stat-number {
  font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1;
  margin-bottom: 6px;
}
.stat-item .stat-label {
  color: rgba(255,255,255,.85); text-transform: uppercase;
  letter-spacing: 2px; font-size: .85rem; font-weight: 500;
}

/* ============= ABOUT SECTION ============= */
.about-img-wrap { position: relative; padding-right: 30px; padding-bottom: 30px; }
.about-img-wrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-img-wrap::before {
  content: ''; position: absolute; top: 30px; left: 30px;
  right: 0; bottom: 0; border: 3px solid var(--gold);
  border-radius: var(--radius-lg); z-index: -1;
}
.about-img-wrap .experience-badge {
  position: absolute; bottom: -10px; right: -10px;
  background: var(--gold); color: #000;
  padding: 18px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-md); text-align: center;
}
.about-img-wrap .experience-badge .number {
  font-size: 1.8rem; font-weight: 800; line-height: 1; display: block;
}
.about-img-wrap .experience-badge .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
}

/* ============= POTENSI / FEATURE BOX ============= */
.feature-box {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 24px; height: 100%;
  border: 1px solid var(--border-light);
  transition: var(--transition); position: relative; overflow: hidden;
}
[data-bs-theme="dark"] .feature-box { background: #141b30; }
.feature-box::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.feature-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-box:hover::before { transform: scaleX(1); }
.feature-box .feature-icon {
  width: 70px; height: 70px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--gold); border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: 0 10px 25px rgba(30,58,138,.3);
}
.feature-box h4 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-box p { color: var(--text-muted); margin-bottom: 0; }

/* ============= NEWS / ARTICLE ============= */
.news-card .card-img-wrap { overflow: hidden; position: relative; }
.news-card .card-img-wrap .date-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: #000;
  padding: 6px 14px; border-radius: 8px;
  font-weight: 600; font-size: 12px; z-index: 2;
}
.news-card .card-img-wrap .category-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--green); color: #fff;
  padding: 5px 12px; border-radius: 8px;
  font-size: 11px; font-weight: 600; z-index: 2;
}
.news-card .card-meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; gap: 14px; margin-bottom: 10px;
}
.news-card .card-meta i { color: var(--gold); margin-right: 4px; }

/* ============= GALLERY ============= */
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,58,138,.85), transparent 50%);
  opacity: 0; transition: var(--transition);
}
.gallery-item .gallery-caption {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  color: #fff; z-index: 2; opacity: 0;
  transform: translateY(20px); transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-item .gallery-icon {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.2); backdrop-filter: blur(10px);
  color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-icon { opacity: 1; }

/* ============= AGENDA / EVENT ============= */
.agenda-item {
  display: flex; gap: 20px; padding: 24px;
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: var(--transition); margin-bottom: 20px;
}
[data-bs-theme="dark"] .agenda-item { background: #141b30; }
.agenda-item:hover { box-shadow: var(--shadow-md); transform: translateX(6px); border-color: var(--gold); }
.agenda-date {
  flex-shrink: 0; width: 80px; text-align: center;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; border-radius: var(--radius); padding: 14px 10px;
  display: flex; flex-direction: column; justify-content: center;
}
.agenda-date .day { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.agenda-date .month { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.agenda-date .year { font-size: 11px; opacity: .8; margin-top: 4px; }

/* ============= UMKM ============= */
.umkm-card .umkm-img {
  height: 240px; object-fit: cover; transition: var(--transition);
}
.umkm-card:hover .umkm-img { transform: scale(1.05); }
.umkm-card .umkm-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: #000;
  padding: 6px 14px; border-radius: 8px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px;
}

/* ============= WISATA ============= */
.wisata-card { overflow: hidden; }
.wisata-card .wisata-img {
  height: 260px; object-fit: cover; transition: var(--transition);
}
.wisata-card:hover .wisata-img { transform: scale(1.08); }
.wisata-card .wisata-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px; color: #fff; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  transform: translateY(0); transition: var(--transition);
}
.wisata-card .wisata-info h4 { margin-bottom: 6px; font-size: 1.3rem; }
.wisata-card .wisata-info .meta { font-size: 13px; opacity: .9; }

/* ============= CONTACT FORM ============= */
.contact-info-box {
  background: #fff; padding: 30px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); height: 100%;
  transition: var(--transition);
}
[data-bs-theme="dark"] .contact-info-box { background: #141b30; }
.contact-info-box:hover { box-shadow: var(--shadow-md); border-color: var(--gold); }
.contact-info-box .icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--gold); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.form-control, .form-select {
  border-radius: 10px; padding: 12px 16px;
  border: 1px solid var(--border-light); background: #fff;
  color: var(--text-dark);
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select { background: #0e1726; color: var(--text-dark); border-color: var(--border-light); }
.form-control:focus, .form-select:focus {
  border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(30,58,138,.15);
}
.form-label { font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }

/* ============= TOAST ============= */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast-custom {
  background: #fff; border-radius: 12px; padding: 16px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15); margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  border-left: 4px solid var(--green); min-width: 300px;
  animation: slideInRight .4s ease;
}
.toast-custom.success { border-left-color: #28a745; }
.toast-custom.error { border-left-color: #dc3545; }
.toast-custom.warning { border-left-color: #ffc107; }
.toast-custom.info { border-left-color: #17a2b8; }
.toast-custom .toast-icon { font-size: 22px; }
.toast-custom.success .toast-icon { color: #28a745; }
.toast-custom.error .toast-icon { color: #dc3545; }
.toast-custom.warning .toast-icon { color: #ffc107; }
.toast-custom.info .toast-icon { color: #17a2b8; }
@keyframes slideInRight { from { transform: translateX(120%); } to { transform: translateX(0); } }
@keyframes slideOutRight { from { transform: translateX(0); } to { transform: translateX(120%); } }
.toast-custom.hide { animation: slideOutRight .4s ease forwards; }

/* ============= BACK TO TOP ============= */
#back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--green); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; z-index: 999;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: var(--transition); box-shadow: 0 10px 25px rgba(30,58,138,.3);
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--gold); color: #000; transform: translateY(-5px); }

/* ============= WHATSAPP FLOAT ============= */
.whatsapp-float {
  position: fixed; bottom: 30px; left: 30px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; z-index: 999; box-shadow: 0 10px 30px rgba(37,211,102,.5);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.7); }
  70% { box-shadow: 0 10px 30px rgba(37,211,102,.5), 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============= FOOTER ============= */
.site-footer {
  background: linear-gradient(135deg, #0a1a3d 0%, #050f2a 100%);
  color: rgba(255,255,255,.75); padding: 0;
  position: relative;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--green));
}
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  padding: 22px 0;
  font-size: 14px; color: rgba(255,255,255,.7);
}
.footer-bottom a { color: var(--gold); }

/* ============= POPUP MODAL ============= */
.popup-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.75); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.popup-modal.show { opacity: 1; visibility: visible; }
.popup-content {
  background: #fff; border-radius: var(--radius-lg);
  max-width: 560px; width: 100%; overflow: hidden;
  position: relative; transform: scale(.8);
  transition: var(--transition); max-height: 90vh;
}
.popup-modal.show .popup-content { transform: scale(1); }
.popup-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px;
}
.popup-close:hover { background: var(--gold); color: #000; }
.popup-image { width: 100%; height: 240px; object-fit: cover; }
.popup-body { padding: 30px; text-align: center; }
.popup-body h3 { color: var(--green); margin-bottom: 12px; }
.popup-body p { color: var(--text-muted); margin-bottom: 20px; }

/* ============= PAGINATION ============= */
.pagination .page-link {
  color: var(--green); border: 1px solid var(--border-light);
  padding: 10px 16px; margin: 0 3px; border-radius: 8px !important;
}
.pagination .page-link:hover { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .page-item.active .page-link {
  background: var(--green); border-color: var(--green); color: #fff;
}
.pagination .page-item.disabled .page-link { color: var(--text-muted); }

/* ============= DETAIL PAGE ============= */
.detail-page { padding: 80px 0; }
.detail-page .detail-image {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: var(--radius-lg); margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}
.detail-page h1 { font-size: 2.4rem; margin-bottom: 14px; }
.detail-page .detail-meta {
  display: flex; gap: 20px; color: var(--text-muted);
  font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.detail-page .detail-meta i { color: var(--gold); margin-right: 5px; }
.detail-page .detail-content { font-size: 16px; line-height: 1.85; color: var(--text-dark); }
.detail-page .detail-content p { margin-bottom: 16px; }
.detail-page .detail-content h2,
.detail-page .detail-content h3 { margin-top: 30px; margin-bottom: 14px; color: var(--green); }
.detail-page .detail-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px 0; }
.detail-page .detail-content ul, .detail-page .detail-content ol { padding-left: 24px; margin-bottom: 16px; }
.detail-page .detail-content blockquote {
  background: var(--green-soft); border-left: 4px solid var(--gold);
  padding: 16px 24px; border-radius: 8px; margin: 20px 0;
  font-style: italic;
}

/* ============= SIDEBAR ============= */
.sidebar-widget {
  background: #fff; border-radius: var(--radius); padding: 24px;
  margin-bottom: 24px; border: 1px solid var(--border-light);
}
[data-bs-theme="dark"] .sidebar-widget { background: #141b30; }
.sidebar-widget h4 {
  font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gold); color: var(--green);
}
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget ul li { padding: 8px 0; border-bottom: 1px dashed var(--border-light); }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--text-dark); display: block; }
.sidebar-widget ul li a:hover { color: var(--green); }

/* ============= ANIMATION ON SCROLL ============= */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s ease, transform .8s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(40px); transition: opacity .8s ease, transform .8s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.zoom-in { opacity: 0; transform: scale(.9); transition: opacity .8s ease, transform .8s ease; }
.zoom-in.visible { opacity: 1; transform: scale(1); }

/* ============= RESPONSIVE ============= */
@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse {
    background: #fff; padding: 20px; border-radius: 12px; margin-top: 12px;
    box-shadow: var(--shadow-md);
  }
  [data-bs-theme="dark"] .navbar-custom .navbar-collapse { background: #141b30; }
  .hero-slider { height: 80vh; min-height: 500px; }
  .hero-nav { display: none; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 1.8rem; }
  .page-header { padding: 60px 0 40px; }
  .page-header h1 { font-size: 1.9rem; }
  .about-img-wrap { padding: 0; margin-bottom: 30px; }
  .stat-item .stat-number { font-size: 2rem; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 24px; bottom: 20px; left: 20px; }
  #back-to-top { width: 44px; height: 44px; bottom: 20px; right: 20px; }
}

@media (max-width: 575.98px) {
  .hero-slide-content h1 { font-size: 1.8rem; }
  .hero-slide-content p { font-size: 1rem; }
  .navbar-brand { font-size: 16px; gap: 8px; }
  .navbar-brand img { width: 38px; height: 38px; }
  .navbar-brand .brand-title { font-size: .85rem; }
  .navbar-brand .brand-name small { font-size: 8px; letter-spacing: .5px; }
  .navbar-brand .brand-name { gap: 5px; }
  .header-top { display: none; }
  .toast-custom { min-width: 260px; }
}

/* ============= PRINT ============= */
@media print {
  .site-header, .site-footer, #back-to-top, .whatsapp-float,
  .popup-modal, .toast-container, #loading-screen, .hero-nav, .hero-indicators { display: none !important; }
  .hero-slider { height: auto; }
}
