/* ================================================
   Dinas Pertanian Kabupaten Bantaeng
   Main Stylesheet — Modern & Responsive
   ================================================ */

:root {
  --green-900: #1b4332;
  --green-800: #2d6a4f;
  --green-700: #40916c;
  --green-600: #52b788;
  --green-400: #74c69d;
  --green-200: #b7e4c7;
  --green-100: #d8f3dc;
  --green-50:  #f0faf4;
  --gold:     #e9c46a;
  --gold-dark: #c8a44a;
  --red:      #e63946;
  --text-dark: #1a2e1a;
  --text-mid:  #3d5c3d;
  --text-mute:  #6b7c6b;
  --white:    #ffffff;
  --shadow-sm: 0 2px 8px rgba(27,67,50,0.08);
  --shadow-md: 0 8px 32px rgba(27,67,50,0.12);
  --shadow-lg: 0 20px 60px rgba(27,67,50,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  --font-base: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-base); color: var(--text-dark); background: #f8fdf9; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-800); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-600); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-base); border: none; background: none; }
input, textarea, select { font-family: var(--font-base); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* === ACCESSIBILITY TOOLBAR === */
.access-toolbar { position: fixed; bottom: 100px; left: 0; z-index: 9999; }
.access-toggle {
  background: var(--green-800); color: white; padding: 10px 14px;
  border-radius: 0 8px 8px 0; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  transition: var(--transition); writing-mode: vertical-rl;
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  writing-mode: horizontal-tb;
}
.access-toggle:hover { background: var(--green-700); transform: translateY(-50%) scale(1.05); }
.access-panel {
  position: absolute; left: 0; bottom: 0; background: white;
  border-radius: 0 12px 12px 0; box-shadow: var(--shadow-lg); padding: 0;
  width: 220px; display: none; overflow: hidden;
}
.access-panel.open { display: block; animation: slideRight 0.3s ease; }
@keyframes slideRight { from { opacity:0; transform:translateX(-20px); } to { opacity:1; transform:translateX(0); } }
.access-panel-header {
  background: var(--green-800); color: white; padding: 12px 16px;
  display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
}
.access-close { margin-left: auto; color: white; font-size: 20px; cursor: pointer; }
.access-options { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; }
.access-options button {
  background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-200);
  padding: 8px 6px; border-radius: 8px; font-size: 11px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
  transition: var(--transition);
}
.access-options button:hover, .access-options button.active { background: var(--green-800); color: white; }
.access-options button i { font-size: 14px; }
.access-note { font-size: 11px; color: var(--text-mute); padding: 8px 12px; border-top: 1px solid var(--green-100); }
.access-note kbd { background: var(--green-100); padding: 1px 5px; border-radius: 3px; font-size: 10px; }

/* High contrast mode */
body.high-contrast { background: #000 !important; color: #fff !important; filter: contrast(2); }
body.grayscale { filter: grayscale(100%); }
body.underline-links a { text-decoration: underline !important; }

/* === TOPBAR === */
.topbar { background: var(--green-900); color: rgba(255,255,255,0.85); padding: 7px 0; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-left .sep { color: rgba(255,255,255,0.3); }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-right a { color: rgba(255,255,255,0.8); transition: var(--transition); font-size: 14px; }
.topbar-right a:hover { color: var(--gold); }
.btn-admin-top {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9) !important;
  padding: 4px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; gap: 6px;
}
.btn-admin-top:hover { background: var(--gold) !important; color: var(--green-900) !important; }

/* === RUNNING TEXT === */
.running-text-bar { background: var(--green-800); color: white; padding: 8px 0; overflow: hidden; }
.running-text-bar .container { display: flex; align-items: center; gap: 0; }
.run-label {
  white-space: nowrap; background: var(--gold); color: var(--green-900);
  padding: 4px 16px; font-size: 11px; font-weight: 800; border-radius: 4px;
  margin-right: 16px; letter-spacing: 0.5px; text-transform: uppercase; flex-shrink: 0;
}
.run-wrap { flex: 1; overflow: hidden; }
.run-track {
  display: flex; align-items: center; gap: 32px; white-space: nowrap;
  animation: runScroll 60s linear infinite;
  font-size: 13px;
}
.run-track a { color: rgba(255,255,255,0.9); text-decoration: none; }
.run-track a:hover { color: var(--gold); text-decoration: underline; }
.run-track .run-sep { color: var(--green-400); font-size: 10px; }
@keyframes runScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.run-track:hover { animation-play-state: paused; }

/* === HEADER === */
.main-header {
  background: white; position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 20px rgba(27,67,50,0.1); transition: var(--transition);
}
.main-header.scrolled { box-shadow: 0 4px 30px rgba(27,67,50,0.15); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 0; }

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 52px; height: 52px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--green-800); line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--text-mute); letter-spacing: 0.5px; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  color: var(--text-dark); font-weight: 600; font-size: 13.5px;
  padding: 8px 14px; border-radius: 8px; display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active {
  background: var(--green-50); color: var(--green-800);
}
.main-nav > ul > li > a .fa-chevron-down { font-size: 10px; transition: var(--transition); }
.main-nav > ul > li:hover > a .fa-chevron-down { transform: rotate(180deg); }

.nav-konsultasi { background: var(--green-800) !important; color: white !important; border-radius: 20px !important; }
.nav-konsultasi:hover { background: var(--green-700) !important; color: white !important; }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; background: white;
  border-radius: var(--radius); min-width: 220px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: var(--transition); z-index: 1000; overflow: hidden;
  border: 1px solid var(--green-100);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block; padding: 10px 18px; font-size: 13px; color: var(--text-dark);
  font-weight: 500; border-bottom: 1px solid var(--green-50); transition: var(--transition);
}
.dropdown li a:hover { background: var(--green-50); color: var(--green-800); padding-left: 24px; }
.dropdown li:last-child a { border-bottom: none; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--green-800); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 950; display: none; }
.mobile-overlay.open { display: block; }
.mobile-nav {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
  background: white; z-index: 1000; transition: var(--transition); overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { right: 0; }
.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; background: var(--green-800); color: white; font-weight: 700;
}
.mobile-nav-header button { color: white; font-size: 24px; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--green-50); }
.mobile-nav > ul > li > a { display: block; padding: 14px 20px; font-weight: 600; color: var(--text-dark); }
.mob-has-sub > button { width: 100%; text-align: left; padding: 14px 20px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; color: var(--text-dark); }
.mob-sub { display: none; background: var(--green-50); }
.mob-sub.open { display: block; }
.mob-sub li a { display: block; padding: 10px 32px; font-size: 13.5px; color: var(--text-mid); }

/* === HERO SLIDER === */
.hero-slider { position: relative; overflow: hidden; height: 580px; }
.hero-slider .swiper { height: 100%; }
.hero-slide {
  position: relative; height: 100%;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  overflow: hidden;
}
.hero-slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; opacity: 0.5;
}
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(27,67,50,0.85) 50%, rgba(27,67,50,0.3));
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 80px; max-width: 700px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(233,196,106,0.2); border: 1px solid var(--gold);
  color: var(--gold); padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 20px; width: fit-content;
}
.hero-title {
  font-family: var(--font-display); font-size: 42px; font-weight: 800;
  color: white; line-height: 1.2; margin-bottom: 16px;
}
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 500px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--gold); color: var(--green-900); padding: 14px 28px;
  border-radius: 8px; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition); box-shadow: 0 4px 16px rgba(233,196,106,0.4);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(233,196,106,0.5); color: var(--green-900); }
.btn-hero-outline {
  background: rgba(255,255,255,0.1); color: white; padding: 14px 28px;
  border-radius: 8px; font-weight: 600; font-size: 14px; border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px); transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.2); color: white; transform: translateY(-2px); }

/* Swiper Controls */
.hero-slider .swiper-pagination-bullet { background: white; opacity: 0.6; width: 10px; height: 10px; }
.hero-slider .swiper-pagination-bullet-active { opacity: 1; background: var(--gold); width: 24px; border-radius: 5px; }
.hero-slider .swiper-button-next, .hero-slider .swiper-button-prev {
  color: white; background: rgba(255,255,255,0.15); border-radius: 50%;
  width: 44px; height: 44px; backdrop-filter: blur(10px);
}
.hero-slider .swiper-button-next::after, .hero-slider .swiper-button-prev::after { font-size: 16px; }

/* === STATS BAR === */
.stats-bar { background: white; box-shadow: var(--shadow-md); margin: 0; position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  padding: 24px 20px; text-align: center; border-right: 1px solid var(--green-100);
  transition: var(--transition); cursor: default;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--green-50); }
.stat-number { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--green-800); line-height: 1; }
.stat-number sup { font-size: 18px; }
.stat-label { font-size: 12px; color: var(--text-mute); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* === SECTION STYLES === */
.section { padding: 80px 0; }
.section-alt { background: white; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-50); color: var(--green-700); padding: 6px 16px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
  border: 1px solid var(--green-200);
}
.section-title { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.section-sub { font-size: 16px; color: var(--text-mute); max-width: 560px; margin: 0 auto; }
.section-line { width: 60px; height: 4px; background: linear-gradient(to right, var(--green-700), var(--green-400)); border-radius: 2px; margin: 16px auto 0; }

/* === BERITA CARDS === */
.berita-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.berita-featured { grid-template-columns: 1.6fr 1fr 1fr; }

.card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--green-100);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-200); }

.card-img { position: relative; overflow: hidden; height: 200px; background: var(--green-100); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img.tall { height: 360px; }

.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--green-800); color: white; padding: 4px 12px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
}
.card-badge.featured { background: var(--gold); color: var(--green-900); }

.card-body { padding: 20px; }
.card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.card-date { font-size: 12px; color: var(--text-mute); display: flex; align-items: center; gap: 5px; }
.card-cat { font-size: 11px; font-weight: 700; color: var(--green-700); background: var(--green-50); padding: 2px 10px; border-radius: 20px; }
.card-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; line-height: 1.4; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--green-700); }
.card-excerpt { font-size: 13.5px; color: var(--text-mute); line-height: 1.6; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--green-50); display: flex; justify-content: space-between; align-items: center; }
.card-views { font-size: 12px; color: var(--text-mute); display: flex; align-items: center; gap: 5px; }
.btn-read-more { font-size: 13px; font-weight: 700; color: var(--green-700); display: flex; align-items: center; gap: 6px; }
.btn-read-more:hover { color: var(--green-800); }
.btn-read-more i { font-size: 11px; transition: var(--transition); }
.btn-read-more:hover i { transform: translateX(4px); }

/* === LAYANAN CARDS === */
.layanan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.layanan-card {
  background: white; border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; border: 2px solid var(--green-100); transition: var(--transition);
  cursor: pointer; position: relative; overflow: hidden;
}
.layanan-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, var(--green-700), var(--green-400));
  transform: scaleX(0); transition: var(--transition);
}
.layanan-card:hover::before { transform: scaleX(1); }
.layanan-card:hover { border-color: var(--green-400); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.layanan-icon {
  width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 28px; transition: var(--transition);
}
.layanan-card:hover .layanan-icon { transform: scale(1.1) rotate(-5deg); }
.layanan-card h4 { font-weight: 700; font-size: 15px; color: var(--text-dark); margin-bottom: 8px; }
.layanan-card p { font-size: 13px; color: var(--text-mute); line-height: 1.5; }

/* === GALERI HOME === */
.galeri-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.galeri-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; cursor: pointer;
}
.galeri-item:first-child { grid-column: span 2; grid-row: span 2; }
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.galeri-item:hover img { transform: scale(1.08); }
.galeri-overlay {
  position: absolute; inset: 0; background: rgba(27,67,50,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-overlay i { color: white; font-size: 28px; }

/* === UNDUHAN TABLE === */
.unduhan-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.unduhan-table th { background: var(--green-800); color: white; padding: 14px 18px; text-align: left; font-size: 13px; font-weight: 700; }
.unduhan-table td { padding: 14px 18px; border-bottom: 1px solid var(--green-50); font-size: 13.5px; }
.unduhan-table tr:last-child td { border-bottom: none; }
.unduhan-table tr:hover td { background: var(--green-50); }
.file-icon { font-size: 20px; }
.file-icon.pdf { color: #e63946; }
.file-icon.doc, .file-icon.docx { color: #2563eb; }
.file-icon.xls, .file-icon.xlsx { color: #16a34a; }
.file-icon.zip, .file-icon.rar { color: #d97706; }
.btn-download {
  background: var(--green-800); color: white; padding: 7px 16px;
  border-radius: 8px; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; transition: var(--transition);
}
.btn-download:hover { background: var(--green-700); color: white; transform: translateY(-1px); }

/* === KONSULTASI SECTION === */
.konsultasi-hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); padding: 80px 0; color: white; }
.konsultasi-form-card { background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; color: var(--text-dark); }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--green-100);
  border-radius: 10px; font-size: 14px; transition: var(--transition);
  font-family: var(--font-base);
}
.form-control:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(82,183,136,0.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--transition); border: none; font-family: var(--font-base); }
.btn-primary { background: var(--green-800); color: white; }
.btn-primary:hover { background: var(--green-700); color: white; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(45,106,79,0.3); }
.btn-outline { background: transparent; color: var(--green-800); border: 2px solid var(--green-800); }
.btn-outline:hover { background: var(--green-800); color: white; }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-dark); color: var(--green-900); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 12px; }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-link { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 700; font-size: 14px; border: 2px solid var(--green-100); color: var(--text-dark); transition: var(--transition); }
.page-link:hover, .page-link.active { background: var(--green-800); color: white; border-color: var(--green-800); }

/* === BREADCRUMB === */
.breadcrumb { background: var(--green-50); padding: 14px 0; border-bottom: 1px solid var(--green-100); }
.breadcrumb-list { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; color: var(--text-mute); }
.breadcrumb-list li a { color: var(--green-700); }
.breadcrumb-list li:last-child { color: var(--text-dark); font-weight: 600; }
.breadcrumb-list .sep { color: var(--green-400); }

/* === SIDEBAR === */
.page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.sidebar-widget { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 24px; border: 1px solid var(--green-100); }
.widget-header { background: var(--green-800); color: white; padding: 14px 20px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.widget-body { padding: 16px; }
.sidebar-news-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--green-50); }
.sidebar-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-news-img { width: 68px; height: 54px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.sidebar-news-title { font-size: 13px; font-weight: 600; color: var(--text-dark); line-height: 1.4; margin-bottom: 4px; }
.sidebar-news-title a { color: inherit; }
.sidebar-news-title a:hover { color: var(--green-700); }
.sidebar-news-date { font-size: 11px; color: var(--text-mute); }

/* === ALERT === */
.alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-info { background: var(--green-50); color: var(--green-800); border-left: 4px solid var(--green-600); }

/* === KONSULTASI FLOATING WIDGET === */
.konsultasi-float { position: fixed; bottom: 30px; right: 30px; z-index: 990; }
.konsultasi-fab {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500, #52b788));
  color: white; font-size: 22px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(45,106,79,0.4); cursor: pointer;
  transition: var(--transition); position: relative;
}
.konsultasi-fab:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(45,106,79,0.5); }
.fab-pulse {
  position: absolute; top: 0; right: 0; width: 14px; height: 14px;
  background: var(--gold); border-radius: 50%; border: 2px solid white;
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.konsultasi-tooltip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--green-900); color: white; white-space: nowrap;
  padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  pointer-events: none; opacity: 0; transition: var(--transition);
}
.konsultasi-tooltip::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right: none; border-left-color: var(--green-900); }
.konsultasi-fab:hover ~ .konsultasi-tooltip { opacity: 1; }

.konsultasi-widget {
  position: absolute; bottom: 70px; right: 0; width: 320px;
  background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; display: none;
  border: 1px solid var(--green-100);
}
.konsultasi-widget.open { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.kwid-header {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: white; padding: 16px; display: flex; align-items: center; gap: 12px;
}
.kwid-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.kwid-header strong { display: block; font-size: 14px; }
.kwid-header small { font-size: 11px; opacity: 0.8; }
.kwid-close { margin-left: auto; color: white; font-size: 22px; flex-shrink: 0; }
.kwid-body { padding: 16px; }
.kwid-intro { font-size: 13px; color: var(--text-mute); margin-bottom: 16px; }
.kwid-quick { display: flex; flex-direction: column; gap: 8px; }
.btn-kwid-full, .btn-kwid-outline, .btn-kwid-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 700; transition: var(--transition);
}
.btn-kwid-full { background: var(--green-800); color: white; }
.btn-kwid-full:hover { background: var(--green-700); color: white; }
.btn-kwid-outline { border: 2px solid var(--green-200); color: var(--green-800); }
.btn-kwid-outline:hover { background: var(--green-50); }
.btn-kwid-wa { background: #25D366; color: white; }
.btn-kwid-wa:hover { background: #22c55e; color: white; }
.kwid-jam { font-size: 11px; color: var(--text-mute); margin-top: 12px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* === FOOTER === */
.main-footer { background: var(--green-900); color: rgba(255,255,255,0.85); margin-top: 0; }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo strong { display: block; font-size: 16px; font-weight: 700; color: white; }
.footer-logo small { font-size: 11px; opacity: 0.7; }
.footer-about p { font-size: 13px; line-height: 1.7; opacity: 0.8; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8);
  font-size: 14px; transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--green-900); transform: translateY(-2px); }
.footer-col h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 3px; background: var(--gold); border-radius: 2px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.7); transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.fc-item { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; opacity: 0.8; }
.fc-item i { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 12.5px; opacity: 0.7; }
.footer-bottom p { margin-bottom: 4px; }

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

/* === DETAIL BERITA === */
.detail-content { font-size: 15.5px; line-height: 1.85; color: var(--text-dark); }
.detail-content h2, .detail-content h3 { font-family: var(--font-display); color: var(--green-800); margin: 28px 0 12px; }
.detail-content p { margin-bottom: 16px; }
.detail-content img { border-radius: var(--radius); margin: 20px 0; max-width: 100%; }
.detail-content ul, .detail-content ol { padding-left: 24px; margin-bottom: 16px; }
.detail-content li { margin-bottom: 6px; }
.detail-content blockquote { border-left: 4px solid var(--green-600); padding: 12px 20px; background: var(--green-50); border-radius: 0 8px 8px 0; margin: 20px 0; font-style: italic; }
.share-section { border-top: 1px solid var(--green-100); padding-top: 20px; margin-top: 30px; }
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: white; transition: var(--transition); }
.share-btn:hover { transform: translateY(-2px); color: white; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }

/* === TAG CLOUD === */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--green-50); color: var(--green-700); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid var(--green-200); transition: var(--transition); }
.tag:hover { background: var(--green-800); color: white; }

/* === PAGE HERO === */
.page-hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  padding: 60px 0; color: white; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.page-hero-title { font-family: var(--font-display); font-size: 38px; font-weight: 800; margin-bottom: 8px; }
.page-hero-sub { opacity: 0.85; font-size: 15px; }

/* === KONSULTASI PAGE === */
.konsultasi-list { display: flex; flex-direction: column; gap: 16px; }
.konsultasi-item { background: white; border-radius: var(--radius); padding: 20px; border: 1px solid var(--green-100); box-shadow: var(--shadow-sm); }
.konsultasi-item.answered { border-left: 4px solid var(--green-600); }
.konsultasi-item.pending { border-left: 4px solid var(--gold); }
.konsultasi-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.konsultasi-status { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.status-selesai { background: #d1fae5; color: #065f46; }
.status-menunggu { background: #fef3c7; color: #92400e; }
.status-diproses { background: #dbeafe; color: #1e40af; }

/* === MEDIA QUERIES === */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .layanan-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .berita-grid { grid-template-columns: 1fr 1fr; }
  .berita-featured { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
  .hero-content { padding: 0 40px; }
  .section-title { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .galeri-grid { grid-template-columns: repeat(2, 1fr); }
  .galeri-item:first-child { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 640px) {
  .topbar .container { flex-direction: column; gap: 6px; font-size: 11px; }
  .topbar-left { flex-wrap: wrap; gap: 6px; }
  .hero-slider { height: 420px; }
  .hero-content { padding: 0 24px; max-width: 100%; }
  .hero-title { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .hero-btns { flex-direction: column; }
  .berita-grid, .berita-featured { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .layanan-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .container { padding: 0 16px; }
  .konsultasi-float { bottom: 20px; right: 20px; }
  .konsultasi-widget { width: 290px; right: -10px; }
  .access-toolbar { bottom: 160px; }
  .back-to-top { right: 15px; bottom: 80px; }
  .hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { display: none; }
}
