/**
 * BBPVP Serang — Modern Override CSS v2
 * Perbaikan UI Web & Mobile
 */


/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --accent-color: #1a56db;
  --nav-hover-color: #1a56db;
  --nav-dropdown-hover-color: #1a56db;
  --heading-color: #1e293b;
  --default-color: #475569;
  --navy: #0f2557;
  --blue: #1a56db;
  --light: #eff6ff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15,37,87,.10);
  --radius: 14px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --default-font: 'Inter', system-ui, sans-serif;
  --heading-font: 'Inter', system-ui, sans-serif;
  --nav-font: 'Inter', system-ui, sans-serif;
}

/* ── BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  font-family: var(--default-font);
  -webkit-font-smoothing: antialiased;
  color: #475569;
  overflow-x: hidden !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
}

/* Responsive containers & alignment */
.container, .container-fluid, .container-xl {
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important; /* px-4 */
  padding-right: 1rem !important; /* px-4 */
}

@media (max-width: 1199px) {
  .container, .container-fluid, .container-xl {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 1200px) {
  .container, .container-xl {
    max-width: 1280px !important; /* Aligns with max-w-7xl */
    padding-left: 2rem !important; /* px-8 */
    padding-right: 2rem !important; /* px-8 */
  }
}

.header {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  letter-spacing: -.02em;
}

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

section, .section { padding: 80px 0; overflow: hidden; }

/* ── SYMMETRY FIXES ─────────────────────────────────── */
#struktur img, 
#profil-pejabat-struktural img, 
#alur-pelayanan img, 
#maklumat-pelayanan img, 
#standar-pelayanan img, 
#kompensasi-pelayanan img, 
#waktu-pelayanan img {
  margin: 0 auto !important;
  display: block !important;
  max-width: 100% !important;
}

.service-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

/* ── SECTION TITLE ──────────────────────────────────── */
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 4px;
  background: var(--blue) !important;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto !important; /* Perfect Center */
}

.section-title p {
  margin-bottom: 0;
  margin-top: 10px;
}

/* ── HEADER ─────────────────────────────────────────── */
.header {
  padding: 0;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 20px rgba(15,37,87,.07);
  transition: var(--transition);
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.header .logo img:first-child {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

/* Logo tulisan BBPVP */
.header .logo h1 {
  margin: 0;
  line-height: 1;
  border-left: 4px solid var(--blue);
  padding-left: 15px;
  margin-left: 12px;
  display: flex;
  align-items: center;
  height: 48px;
}

.header .logo h1 img {
  height: 48px;
  width: auto;
  display: block;
}

/* Mobile: shrink logo */
@media (max-width: 575px) {
  .header .logo img:first-child { height: 32px !important; }
  .header .logo h1 img { height: 32px !important; }
  .header .logo { gap: 10px !important; }
  .header .logo h1 { padding-left: 15px !important; margin-left: 10px !important; border-left-width: 4px !important; }
}

/* ── NAV DESKTOP ─────────────────────────────────────── */
@media (min-width: 1200px) {
  .navmenu a, .navmenu a:focus {
    color: #1e293b;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 8px;
    transition: var(--transition);
  }
  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--blue);
    background: var(--light);
  }
  .navmenu .dropdown ul {
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px;
    min-width: 220px;
    top: calc(100% + 6px);
  }
  .navmenu .dropdown ul a {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    color: #475569;
  }
  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--blue);
    background: var(--light);
  }
}

/* ── NAV MOBILE (DASHBOARD SIDEBAR STYLE) ───────────── */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 32px !important;
    color: #1e293b !important;
    z-index: 10001 !important;
    cursor: pointer !important;
    display: block !important;
  }

  body.mobile-nav-active { overflow: hidden !important; }

  /* Solid Opaque Background for the Sidebar */
  .navmenu ul {
    position: fixed !important;
    top: 75px !important;
    left: 15px !important;
    right: 15px !important;
    width: auto !important;
    height: calc(100vh - 100px) !important; /* Forced Height */
    background: #0f172a !important; /* Solid Dark Navy */
    display: none !important;
    z-index: 9999 !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    overflow-y: auto !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
  }

  /* Compact Reset */
  .navmenu li, .navmenu a {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    flex: none !important;
  }

  .mobile-nav-active .navmenu > ul {
    display: block !important;
  }

  /* Reset template borders/lines */
  .navmenu, .navmenu * {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
  }

  /* Nav Links Styling */
  .navmenu a {
    color: #f1f5f9 !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    background: none !important;
    transition: all 0.2s !important;
    text-align: left !important;
    line-height: 1.4 !important;
  }

  /* Inject Icons via CSS - Mobile Only */
  .navmenu a::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    width: 24px !important;
    min-width: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.6) !important;
  }

  /* Icon Mapping based on URL fragments */
  .navmenu a[href*="home"]::before { content: "\f015"; }
  .navmenu a[href*="sejarah"]::before { content: "\f02d"; }
  .navmenu a[href*="struktur"]::before { content: "\f0e8"; }
  .navmenu a[href*="profil"]::before { content: "\f2bd"; }
  .navmenu a[href*="visi"]::before { content: "\f05b"; }
  .navmenu a[href*="tugas"]::before { content: "\f0b1"; }
  .navmenu a[href*="alur"]::before { content: "\f0e8"; }
  .navmenu a[href*="maklumat"]::before { content: "\f15b"; }
  .navmenu a[href*="standar"]::before { content: "\f046"; }
  .navmenu a[href*="berita"]::before { content: "\f1ea"; }
  .navmenu a[href*="ppid"]::before { content: "\f05a"; }

  /* Active Item */
  .navmenu .active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    margin: 6px 15px !important;
    padding: 14px 20px !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
  }
  .navmenu .active::before { color: #ffffff !important; }

  /* Dropdown Handling - Style as sub-items */
  .navmenu .dropdown ul {
    position: static !important;
    display: none !important;
    background: rgba(255,255,255,0.02) !important;
    padding: 0 0 0 15px !important;
    margin: 0 !important; /* Removed vertical margin to tighten layout */
  }
  
  .navmenu .dropdown ul.dropdown-active {
    display: block !important;
  }
  
  .navmenu .dropdown > a {
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    padding-top: 10px !important; /* Final tightest spacing */
    padding-bottom: 4px !important;
    margin-top: 4px !important;
  }
  .navmenu .dropdown > a::before { content: "\f078"; font-size: 12px !important; }

  .mobile-nav-active .mobile-nav-toggle {
    color: #ffffff !important;
    top: 30px !important;
    right: 25px !important;
  }
}

/* ── DESKTOP RESTORE ────────────────────────────────── */
@media (min-width: 1200px) {
  .navmenu a::before { display: none !important; }
}
}

/* ── HERO ────────────────────────────────────────────── */
.hero .carousel-item {
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 60vh;
  width: 100% !important;
}

.hero .carousel-container {
  padding: 0 20px !important;
  width: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto !important;
  z-index: 3 !important;
}

@media (min-width: 1200px) {
  .hero .carousel-container {
    max-width: 1280px !important;
    padding: 0 2rem !important;
  }
}

.hero .carousel-container h2 {
  font-size: clamp(1.4rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-shadow: none !important;
  text-align: center !important;
  width: 100% !important;
  background: none !important;
  color: #ffffff !important;
  margin: 0 auto 20px auto !important;
  padding: 0 !important;
  display: block !important;
}

.hero .carousel-container p {
  font-size: clamp(.85rem, 2vw, 1.05rem);
  line-height: 1.75;
  text-shadow: none !important;
  max-width: 600px;
  margin: 0 auto !important;
  text-align: center !important;
  color: rgba(255,255,255,0.9) !important;
}

.hero .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 12px 24px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1;
  box-shadow: 0 16px 30px rgba(37, 99, 235, .3);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hero .hero-cta:hover,
.hero .hero-cta:focus {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, .38);
}

@media (max-width: 575px) {
  .hero .carousel-container { padding: 0 16px; }
  .hero .carousel-container p { display: none; } /* hide on very small screens for cleaner look */
  .hero .hero-cta {
    margin-top: 18px;
    min-height: 42px;
    padding: 11px 18px;
    font-size: .86rem;
  }
}

/* ── SECTION TITLES ─────────────────────────────────── */
.section-title { padding-bottom: 40px; }

.section-title h2 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -.03em;
  padding-bottom: 14px;
  display: inline-block;
  margin-bottom: 0;
}

.section-title h2::before {
  width: 100%;
  height: 1px;
  background: var(--border);
  bottom: 2px;
}

.section-title h2::after {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  bottom: 0;
  left: 0;
  margin: 0;
  border-radius: 99px;
}

.section-title p { color: #64748b; font-size: 14px; margin-top: 10px; }

/* ── ABOUT / SEJARAH ────────────────────────────────── */
.about .content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}

.about .content ul { padding: 0; list-style: none; }

.about .content ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(15,37,87,.04);
  word-break: break-word;
}

.about .content ul li:hover {
  box-shadow: var(--shadow);
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.about .content ul li .bi-check-circle {
  color: var(--blue);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.about .content ul li span {
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
}

/* ── STATS / COUNTER ────────────────────────────────── */
#call-to-action {
  background: linear-gradient(135deg, #0f2557 0%, #1a56db 60%, #1d4ed8 100%) !important;
  position: relative;
}

#call-to-action > img {
  opacity: .05;
  mix-blend-mode: overlay;
  object-fit: cover;
}

#call-to-action .text-center > h3:first-of-type {
  color: rgba(255,255,255,.65) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px !important;
}

#call-to-action .text-center > h3:last-of-type {
  color: #fff !important;
  font-size: clamp(20px, 4vw, 26px) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em;
  margin-bottom: 28px !important;
}

.counter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 0 8px;
}

.counter-box {
  background: rgba(255,255,255,.12) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 18px !important;
  padding: 24px 20px !important;
  flex: 1 1 140px;
  max-width: 220px;
  min-width: 0;
  transition: var(--transition);
  text-align: center;
}

.counter-box:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.18) !important;
}

.counter-box i {
  font-size: 30px !important;
  color: rgba(255,255,255,.9) !important;
  margin-bottom: 10px;
  display: block;
}

.counter-box .counter-number {
  font-size: clamp(28px, 5vw, 40px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.counter-box p {
  color: rgba(255,255,255,.7) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}

/* ── SERVICES ───────────────────────────────────────── */
.services .service-item {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  padding: 30px !important;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15,37,87,.04);
  transition: var(--transition);
  gap: 20px;
  flex-wrap: nowrap;
  height: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
}

.services .service-item:hover {
  box-shadow: var(--shadow);
  border-color: #bfdbfe !important;
  transform: translateY(-3px);
}

.services .service-item .icon {
  font-size: 32px;
  color: var(--blue) !important;
  background: var(--light);
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0 !important;
}

.services .service-item .title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--navy);
  position: relative;
}

.services .service-item .description {
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 8px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.5;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.services .service-item .description:hover {
  background: #fff;
  border-color: var(--border);
  color: var(--blue);
}

.services .service-item .description .bi-check-circle { 
  color: #22c55e; 
  flex-shrink: 0; 
  font-size: 14px;
}

/* CTA banner */
.services .container.text-center.mb-4 {
  background: var(--light);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 28px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #bfdbfe;
  flex-wrap: wrap;
  text-align: center;
}

.services .container.text-center.mb-4 a {
  background: var(--blue);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: var(--transition);
}

.services .container.text-center.mb-4 a:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

/* ── PORTFOLIO ──────────────────────────────────────── */
.portfolio .portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0 12px;
  margin-bottom: 28px;
}

.portfolio .portfolio-filters li {
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  background: var(--light);
  color: #475569;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.portfolio .portfolio-filters li.filter-active,
.portfolio .portfolio-filters li:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.portfolio .portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
}

.portfolio .portfolio-item img {
  width: 100%;
  border-radius: var(--radius);
  transition: var(--transition);
  object-fit: cover;
}

.portfolio .portfolio-item:hover img { transform: scale(1.04); }

.portfolio .portfolio-info {
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(to top, rgba(15,37,87,.9), transparent);
}

/* ── CONTACT ─────────────────────────────────────────── */
.complaint-channel {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.complaint-channel .section-title {
  padding-bottom: 44px;
}

.complaint-channel .section-title h2::after {
  background: var(--blue) !important;
}

.complaint-card {
  height: 100%;
  min-height: 270px;
  padding: 30px 22px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(30, 64, 175, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.complaint-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 18px 38px rgba(30, 64, 175, 0.14);
}

.complaint-icon {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.complaint-icon i {
  font-size: 29px;
  line-height: 1;
}

.complaint-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #172554;
  margin-bottom: 12px;
}

.complaint-card p {
  min-height: 48px;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 22px;
}

.complaint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  background: #1d4ed8;
  color: #ffffff !important;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.22);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.complaint-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.3);
}

.complaint-social {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.complaint-social a {
  color: #1d4ed8;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.complaint-social a:hover {
  color: #1e40af;
}

@media (max-width: 575px) {
  .complaint-card {
    min-height: 240px;
    padding: 26px 18px;
  }

  .complaint-social {
    gap: 12px;
    flex-direction: column;
  }
}

.contact .info-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: 0 1px 4px rgba(15,37,87,.04);
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

.contact .info-item:hover {
  box-shadow: var(--shadow);
  border-color: #bfdbfe;
  transform: translateY(-2px);
}

.contact .info-item i {
  font-size: 26px;
  color: var(--blue);
  background: var(--light);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.contact .info-item h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.contact .info-item p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.6; }

/* Remove fixed borders on mobile */
@media (max-width: 991px) {
  .contact .info-item-borders { border: 1px solid var(--border) !important; }
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer { background: #0f172a !important; color: #94a3b8; }

.footer .footer-top { border-top: none; padding: 50px 0 32px; }

.footer .sitename {
  color: #f1f5f9;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

@media (max-width: 768px) {
  .footer .sitename { font-size: 16px; }
  .footer .copyright p { font-size: 13px; line-height: 1.6; }
}

.footer .footer-contact p { color: #94a3b8; font-size: 13px; line-height: 1.8; }

.footer h4 {
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer .footer-links ul li { padding: 6px 0; border: none; }
.footer .footer-links ul a { color: #94a3b8; font-size: 13px; transition: var(--transition); }
.footer .footer-links ul a:hover { color: #60a5fa; padding-left: 4px; }

.footer .social-links a {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.1);
  color: #94a3b8;
  border-radius: 10px;
  transition: var(--transition);
}

.footer .social-links a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.footer .copyright { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer .copyright p { color: #64748b; font-size: 12px; }

/* Footer fix for mobile */
@media (max-width: 768px) {
  .footer .footer-top { padding-top: 30px; }
  .footer .footer-links { margin-bottom: 20px; }
  .footer .footer-about { margin-bottom: 30px; }
  .footer .footer-contact p { font-size: 12px; }
  .footer h4 { font-size: 14px; padding-bottom: 10px; margin-bottom: 10px; }
  .footer .footer-links ul li { padding: 4px 0; }
}

/* ── SCROLL TOP ─────────────────────────────────────── */
.scroll-top {
  background: var(--blue);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  box-shadow: 0 4px 14px rgba(26,86,219,.4);
  transition: var(--transition);
}

.scroll-top:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

/* ── VISI MISI & TUGAS FUNGSI ───────────────────────── */
#visimisi .content ul li,
#tugasfungsi .content ul li {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #475569;
  transition: var(--transition);
  word-break: break-word;
}

#visimisi .content ul li:hover,
#tugasfungsi .content ul li:hover { border-color: #bfdbfe; background: var(--light); }

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

.numbered-ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  transition: var(--transition);
  word-break: break-word;
}

.numbered-ul li:hover { border-color: #bfdbfe; background: var(--light); }
.numbered-ul .num { color: var(--blue); font-weight: 700; flex-shrink: 0; min-width: 20px; }

/* ── CARA PENDAFTARAN ───────────────────────────────── */
#cara-pendaftaran .ratio {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

#cara-pendaftaran .table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

#cara-pendaftaran .table thead th {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  border: none;
  white-space: nowrap;
}

#cara-pendaftaran .table td {
  vertical-align: middle;
  font-size: 13px;
  color: #475569;
  padding: 12px 14px;
  border-color: var(--border);
}

#cara-pendaftaran .table tbody tr:hover { background: var(--light); }

/* ── STRUKTUR ORGANISASI IMAGES ─────────────────────── */
#struktur img,
#profil-pejabat-struktural img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ── SERVICE IMAGES (alur pelayanan dll) ──────────── */
.services .service-item img.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ══════════════════════════════════════════════════════
   MOBILE RESPONSIVE — COMPREHENSIVE FIXES
   ══════════════════════════════════════════════════════ */

/* Tablet 768px–1199px */
@media (max-width: 1199px) {
  .header { height: 64px; }

  section, .section { padding: 56px 0; }

  .counter-box {
    flex: 1 1 calc(50% - 16px);
    max-width: none;
  }
}

/* Mobile 768px */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  body, html { overflow-x: hidden; }

  .container { padding-left: 16px; padding-right: 16px; }

  section, .section { padding: 48px 0; }

  /* Hero */
  .hero .carousel-container { padding: 0 16px; text-align: center; }
  .hero .carousel-container h2 { font-size: 1.5rem; }
  .hero .carousel-container p { font-size: .85rem; }

  /* Section title */
  .section-title { padding-bottom: 32px; }
  .section-title h2 { font-size: 20px; }

  /* About cards - full width */
  .about .content ul li { padding: 12px 14px; gap: 10px; }
  .about .content ul li span { font-size: 13px; }

  /* Counter - 2 column */
  .counter-container { gap: 12px; padding: 0 4px; }
  .counter-box {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 6px);
    padding: 20px 12px !important;
    border-radius: 14px !important;
  }
  .counter-box .counter-number { font-size: 26px !important; }
  .counter-box i { font-size: 24px !important; margin-bottom: 8px; }
  .counter-box p { font-size: 10px !important; }

  /* Services - stack icon & text */
  .services .service-item {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px 14px !important;
    gap: 12px;
  }

  /* Portfolio filters wrap nicely */
  .portfolio .portfolio-filters { gap: 6px; padding: 0 8px; }
  .portfolio .portfolio-filters li { font-size: 12px; padding: 5px 12px; }

  /* Contact info stacked */
  .contact .row.gy-4 > div { margin-bottom: 4px; }

  /* Footer columns */
  .footer .footer-top .row > div { margin-bottom: 24px; }

  /* Table responsive scroll */
  #cara-pendaftaran .table-responsive,
  #cara-pendaftaran .table { font-size: 12px; }
  #cara-pendaftaran .table thead th { padding: 10px 10px; }
  #cara-pendaftaran .table td { padding: 10px 10px; }

  /* Glow fix - remove any excessive side shadows */
  * { box-shadow: none !important; }
  .counter-box, .service-item, .info-item, .portfolio-item, .navmenu ul, #cara-pendaftaran .ratio, #struktur img, #profil-pejabat-struktural img {
     box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  }

  /* Force everything into the viewport */
  * { max-width: 100vw !important; box-sizing: border-box !important; }
}

/* Small mobile 480px */
@media (max-width: 480px) {
  .header { height: 58px; }

  /* Counter 1 column on very small */
  .counter-box {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* Hero hide paragraph */
  .hero .carousel-container p { display: none; }
  .hero .carousel-container h2 { 
    font-size: 1.3rem; 
    text-align: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .hero .carousel-container {
    text-align: center !important;
    padding: 0 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    position: relative !important;
  }
  .hero .carousel-item {
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
  }

  /* Services full column */
  .services .service-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px !important;
  }

  /* Navbar menu full screen */
  .navmenu ul {
    inset: 58px 8px 8px 8px;
  }

  /* Section padding tighter */
  section, .section { padding: 40px 0; }
}

/* ── MICRO-ANIMATIONS ───────────────────────────────── */
.service-item, .info-item, .counter-box, .portfolio-item {
  will-change: transform;
}

[data-aos] {
  transition-timing-function: cubic-bezier(.4,0,.2,1) !important;
}

/* Disable hover transform on touch devices */
@media (hover: none) {
  .services .service-item:hover,
  .contact .info-item:hover,
  .about .content ul li:hover,
  .counter-box:hover { transform: none; }
}

/* ── FAQ ACCORDION PREMIUM STYLES ──────────────────── */
.faq {
  background-color: #ffffff !important; /* Changed to Solid White */
  padding: 80px 0;
}
.faq .faq-item {
  background: #ffffff !important;
  border: 1px solid var(--border) !important; /* #e2e8f0 */
  border-radius: var(--radius) !important; /* 14px */
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
  transition: var(--transition) !important;
}
.faq .faq-item:hover {
  border-color: var(--blue) !important; /* #1a56db */
  box-shadow: 0 8px 30px rgba(26, 86, 219, 0.08) !important;
  transform: translateY(-2px);
}
.faq .faq-btn {
  font-family: var(--heading-font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--heading-color) !important; /* #1e293b */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 20px 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-align: left !important;
  width: 100% !important;
  border-radius: 0 !important;
  transition: color 0.2s ease !important;
}
.faq .faq-btn:not(.collapsed) {
  color: var(--blue) !important;
  border-bottom: 1px solid var(--border) !important;
}
.faq .faq-btn::after {
  margin-left: auto !important;
  flex-shrink: 0 !important;
  width: 20px !important;
  height: 20px !important;
  background-size: 1.1rem !important;
  transition: transform .25s ease-in-out !important;
}
.faq .faq-number {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: var(--light) !important; /* #eff6ff */
  color: var(--blue) !important;
  font-size: 15px !important;
  flex-shrink: 0 !important;
}
.faq .faq-body,
.faq .faq-body *,
.faq .accordion-body,
.faq .accordion-body * {
  color: #334155 !important; /* Forced slate-700 dark text on all nested items for perfect readability */
  opacity: 1 !important;
}
.faq .faq-body {
  padding: 22px 24px !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  background: #f8fafc !important; /* Soft distinct background */
  border-top: none !important;
}
.faq .faq-body ul, .faq .faq-body ol {
  margin: 0 !important;
  padding-left: 20px !important;
}
.faq .faq-body li {
  margin-bottom: 8px !important;
}
.faq .faq-body li:last-child {
  margin-bottom: 0 !important;
}

/* High Contrast mode compatibility */
body.a11y-contrast .faq .faq-body,
body.a11y-contrast .faq .faq-body * {
  color: #ffff00 !important;
  background-color: #000000 !important;
}

/* Specific responsive padding for mobile FAQ */
@media (max-width: 768px) {
  .faq {
    padding: 50px 0 !important;
  }
  .faq .faq-btn {
    font-size: 14px !important;
    padding: 16px 18px !important;
    gap: 10px !important;
  }
  .faq .faq-body {
    padding: 16px 18px !important;
    font-size: 13.5px !important;
  }
}
