/* =========================
   RT PORTAL FINAL STYLE
   ========================= */

:root {
  --green: #2d6a4f;
  --green-mid: #40916c;
  --green-lt: #74c69d;
  --green-soft: #b7e4c7;
  --green-pale: #d8f3dc;
  --white: #ffffff;
  --off: #f8faf9;
  --gray: #6b7280;
  --gray-lt: #e5e7eb;
  --dark: #1a1a2e;
  --text: #374151;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, .08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --trans: .2s ease;
  --font: 'Plus Jakarta Sans', sans-serif;
}

/* =========================
   RESET
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: scroll;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--green);
}

.container {
  max-width: 1140px;
  margin: auto;
  padding: 0 1.5rem;
}

/* =========================
   NAVBAR
   ========================= */

.navbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-lt);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.5rem;
}

@media (max-width: 768px) {
  .nav-inner {
    padding: .75rem 1.75rem !important;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-logo-img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .15));
}

.nav-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
  display: block;
}

.nav-sub {
  font-size: .7rem;
  color: var(--gray);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav-links a {
  padding: .45rem .8rem;
  border-radius: 8px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--gray);
  transition: var(--trans);
}

.nav-links a:hover, .nav-links a.active {
  background: var(--green-pale);
  color: var(--green);
}

/* Teks "Akun" di desktop disembunyikan, hanya ikon */
.nav-akun-text {
  display: none;
}

.btn-nav {
  background: transparent;
  color: var(--green) !important;
  padding: .45rem .8rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  line-height: 1;
  transition: var(--trans);
}

.btn-nav:hover {
  background: var(--green-pale);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  padding: .3rem;
  border-radius: 8px;
  transition: background var(--trans);
  line-height: 1;
}

.nav-toggle:hover {
  background: var(--green-pale);
  color: var(--green);
}

/* =========================
   HERO
   ========================= */

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../../Kantor_Kecamatan_Pontianak_Utara,_Pontianak.jpg') center/cover no-repeat;
  padding: 8rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  border-radius: 4px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(116, 198, 157, .15) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  max-width: 600px;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, .78);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

/* =========================
   BUTTON
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--trans);
  font-size: .9rem;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-mid);
}

.btn-white {
  background: #fff;
  color: #1b4332 !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
}

.btn-white:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, .45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .8);
}

/* =========================
   SECTION
   ========================= */

.section {
  padding: 4rem 0;
}

.section-alt {
  padding: 4rem 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: .5rem;
}

.section-header p {
  color: var(--gray);
}

/* =========================
   CARD
   ========================= */

.card {
  background: #fff;
  border: 1px solid var(--gray-lt);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
  height: 100%;
  box-sizing: border-box;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--dark);
}

.card p {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.65;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
  align-items: stretch;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-img {
  border-radius: 8px;
  margin-bottom: 10px;
  height: 160px;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   STATISTIK
   ========================= */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--gray-lt);
  border-radius: var(--radius);
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-lt));
}

.stat-box::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-pale);
  opacity: .5;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-lt);
}

.stat-box .val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
}

.stat-box .lbl {
  font-size: .78rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  position: relative;
  z-index: 1;
}

/* =========================
   SAMBUTAN
   ========================= */

.sambutan-card {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.sambutan-img {
  width: 130px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.sambutan-content h3 {
  margin: 10px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.55;
  border-left: 3px solid var(--green-lt);
  padding-left: .9rem;
}

.sambutan-content p {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.7;
}

.sambutan-author {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.sambutan-author b {
  color: var(--dark);
  font-weight: 700;
}

.label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: #1b4332;
  background: var(--green-pale);
  padding: .25rem .75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

/* =========================
   GRID / CONTACT
   ========================= */

.grid-2 {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-info {
  background: #fff;
  border: 1px solid var(--gray-lt);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.contact-info h3 {
  margin-bottom: .5rem;
  font-size: 1.2rem;
}

.contact-info p {
  color: var(--gray);
  font-size: .9rem;
}

.contact-info:hover {
  transform: translateY(-3px);
  transition: .2s;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: .8rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.contact-item div:first-child {
  font-size: 1.2rem;
  margin-top: 2px;
}

/* =========================
   FORM
   ========================= */

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .3rem;
}

.form-control {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--gray-lt);
  border-radius: 8px;
  font-size: .9rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, .1);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* =========================
   STRUKTUR ORGANISASI MODERN
   ========================= */

.org-grid-modern {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.org-card-modern {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  width: 100%;
  max-width: 280px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.org-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.org-img-wrapper {
  position: relative;
  width: 100%;
  height: 290px;
}

.org-img-wrapper::after {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 45px;
  height: 45px;
  background: var(--bg);
  /* Matches site background perfectly */
  border-radius: 50%;
}

.org-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.org-card-body {
  padding: 1.4rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Color Themes - White Background */
.org-bg-purple {
  background-color: #ffffff;
}

.org-bg-purple .org-name {
  color: #1e293b;
}

.org-bg-purple .org-role {
  color: var(--green);
}

.org-bg-pink {
  background-color: #ffffff;
}

.org-bg-pink .org-name {
  color: #1e293b;
}

.org-bg-pink .org-role {
  color: var(--green);
}

.org-bg-mint {
  background-color: #ffffff;
}

.org-bg-mint .org-name {
  color: #1e293b;
}

.org-bg-mint .org-role {
  color: var(--green);
}

.org-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-family: inherit;
}

.org-role {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.org-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex: 1;
}

.org-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.org-contact div {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.org-contact .material-symbols-outlined {
  font-size: 0.9rem;
}

.org-border {
  height: 3px;
  width: 85%;
  background: linear-gradient(to right, var(--green), var(--green-lt));
  border-radius: 2px;
}

/* =========================
   LOGIN
   ========================= */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  padding: 2rem;
}

.auth-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo .icon {
  font-size: 2rem;
}

.auth-logo h1 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: .4rem;
  color: var(--dark);
}

.auth-logo p {
  font-size: .85rem;
  color: var(--gray);
}

.auth-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--gray);
}

/* =========================
   FOOTER
   ========================= */

.footer {
  background: var(--green);
  color: var(--white);
  padding: 2rem 0 0;
  margin-top: 3rem;
  border-top: 1px solid var(--gray-lt);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr 1.4fr;
  gap: 3rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.footer h4 {
  color: #ffffff;
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* --- Brand Column --- */

.footer-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .3));
}

.footer-logo-name {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.25;
  display: block;
}

.footer-logo-sub {
  font-size: .72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-top: 1px;
}

.footer-logo-name small {
  font-size: .72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  display: block;
}

.footer-desc {
  font-size: .83rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 1.3rem;
}

.footer-socials {
  display: flex;
  gap: .5rem;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all .2s;
  line-height: 1;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* --- Quick Links (Tautan Cepat) --- */
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer ul li {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer ul li a:hover {
  color: #ffffff;
}

/* --- Contact List with Icons --- */
.footer .contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer .contact-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .84rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gray-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--off);
  color: var(--green);
}

/* --- Map --- */
.footer-map .map-container {
  width: 100%;
  height: 145px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-lt);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- Footer Bottom --- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
  text-decoration: none;
  transition: color .2s;
}

.footer-bottom-links a:hover {
  color: var(--green);
}

/* Responsive */
@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
    column-gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {

  .nav-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .sambutan-card {
    flex-direction: column;
    text-align: center;
  }

  .sambutan-img {
    width: 100px;
  }

  .sambutan-content h3 {
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--green-lt);
    padding-top: .7rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    flex-direction: column;
  }
}

/* =========================
   HIDE SCROLLBAR
   ========================= */

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* =========================
   DASHBOARD
   ========================= */

.dash-wrap {
  display: flex;
  min-height: 100vh;
  background: var(--off);
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: var(--dark);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 1.5rem 1.2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.sidebar-brand .icon {
  font-size: 1.8rem;
  margin-bottom: .3rem;
}

.sidebar-brand h2 {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.sidebar-brand p {
  font-size: .72rem;
  color: rgba(255, 255, 255, .4);
  margin-top: .1rem;
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.nav-section {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  padding: .8rem 1.2rem .3rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.2rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  transition: var(--trans);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.sidebar-nav a.active {
  background: rgba(116, 198, 157, .12);
  color: var(--green-lt);
  border-left-color: var(--green-lt);
}

/* MAIN */
.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-topbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-lt);
  padding: 1rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dash-topbar h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .88rem;
  color: var(--gray);
}

.dash-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}

.dash-content {
  padding: 1.8rem;
  flex: 1;
}

/* STAT BOXES DASHBOARD */
.dash-content .stat-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1.8rem;
}

.stat-box.blue {
  border-top-color: #378add;
}

.stat-box.blue .val {
  color: #378add;
}

.stat-box.amber {
  border-top-color: #ef9f27;
}

.stat-box.amber .val {
  color: #ef9f27;
}

.stat-box.green {
  border-top-color: var(--green);
}

.stat-box.green .val {
  color: var(--green);
}

/* TABLE WRAP */
.table-wrap {
  background: #fff;
  border: 1px solid var(--gray-lt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--gray-lt);
}

.table-header h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
  white-space: nowrap;
}

.table-wrap thead th {
  background: var(--off);
  padding: .7rem 1.2rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray);
  border-bottom: 1px solid var(--gray-lt);
}

.table-wrap tbody td {
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--gray-lt);
  color: var(--text);
  vertical-align: middle;
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.table-wrap tbody tr:hover td {
  background: var(--off);
}

/* BADGE */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .22rem .7rem;
  border-radius: 100px;
  letter-spacing: .04em;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* BTN SM */
.btn-sm {
  padding: .35rem .85rem;
  font-size: .8rem;
}

/* RESPONSIVE DASHBOARD */
@media (max-width: 768px) {
  .dash-wrap {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    padding: .5rem;
  }

  .sidebar-nav a {
    padding: .4rem .8rem;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .sidebar-nav a.active {
    border-bottom-color: var(--green-lt);
    border-left: none;
  }

  .nav-section {
    display: none;
  }

  .dash-content .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   DASHBOARD ADMIN FINAL
   ========================= */

.dash-wrap {
  display: flex;
  min-height: 100vh;
  background: var(--off);
}

/* SIDEBAR */

.sidebar {
  width: 250px;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand .icon {
  font-size: 1.8rem;
  margin-bottom: .3rem;
}

.sidebar-brand h2 {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
}

.sidebar-brand p {
  font-size: .75rem;
  color: rgba(255, 255, 255, .5);
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.nav-section {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  padding: .8rem 1.2rem .3rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.2rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .65);
  transition: .2s;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.sidebar-nav a.active {
  background: rgba(116, 198, 157, .12);
  color: var(--green-lt);
  border-left-color: var(--green-lt);
}

/* MAIN */

.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */

.dash-topbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-lt);
  padding: 1rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-topbar h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
}

/* USER */

.dash-user {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .88rem;
  color: var(--gray);
}

.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* CONTENT */

.dash-content {
  padding: 1.8rem;
}

/* STAT */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--gray-lt);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: .2s;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-box .val {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .3rem;
}

.stat-box .lbl {
  font-size: .75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* COLOR */

.stat-box.blue .val {
  color: #3b82f6;
}

.stat-box.amber .val {
  color: #f59e0b;
}

.stat-box.green .val {
  color: #16a34a;
}

.stat-box.red .val {
  color: #dc2626;
}

/* TABLE */

.table-wrap {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-lt);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--gray-lt);
}

.table-header h3 {
  font-size: .95rem;
  font-weight: 700;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.table-wrap th {
  background: var(--off);
  padding: .7rem 1.2rem;
  font-size: .75rem;
  text-transform: uppercase;
  color: var(--gray);
  text-align: left;
}

.table-wrap td {
  padding: .8rem 1.2rem;
  border-bottom: 1px solid var(--gray-lt);
  font-size: .85rem;
}

.table-wrap tr:hover {
  background: var(--off);
}

/* RESPONSIVE */

@media(max-width:768px) {

  .nav-inner {
    padding: 0.75rem 1.75rem !important;
  }

  /* .nav-inner {
    padding: .75rem 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
  } */

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.5rem 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-top: 2px solid var(--green-pale);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 999;
    pointer-events: none;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    text-align: left;
    padding: .8rem .4rem;
    border-bottom: 1px solid var(--gray-lt);
    color: var(--text);
    font-size: .93rem;
    font-weight: 500;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links a:hover {
    background: var(--green-pale);
    color: var(--green);
    padding-left: .8rem;
    border-radius: 6px;
  }

  /* Tampilkan teks "Akun" di dropdown mobile */
  .nav-akun-text {
    display: inline;
  }

  .btn-nav {
    display: flex !important;
    align-items: center;
    gap: .5rem;
    background: none !important;
    color: var(--text) !important;
    margin-top: 0;
    border-radius: 0;
    padding: .8rem .4rem !important;
    font-size: .93rem;
    font-weight: 500;
    width: 100%;
    border-bottom: 1px solid var(--gray-lt);
  }

  .btn-nav .material-symbols-rounded {
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text);
  }

  .nav-links li:last-child .btn-nav {
    border-bottom: none;
  }

  .dash-wrap {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* --- WEB INDEX CSS --- */
/* HERO */
.hero {
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.88), rgba(64, 145, 108, 0.85)), url('Kantor_Kecamatan_Pontianak_Utara,_Pontianak.jpg') center/cover no-repeat;
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: block;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 650px;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta .btn-primary {
  background: #ffffff;
  color: var(--green);
  border: 1px solid #ffffff;
  padding: .5rem 1.2rem;
  font-size: 0.9rem;
}

.hero-cta .btn-primary:hover {
  background: #f8fafc;
}

.btn-outline {
  background: transparent;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  padding: .5rem 1.2rem;
  border-radius: var(--radius);
  transition: var(--trans);
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* SAMBUTAN */
.sambutan-section {
  padding: 4rem 0;
  background: #fff;
}

.sambutan-card {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  border: 1px solid var(--gray-lt);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.sambutan-photo {
  width: 120px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.sambutan-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sambutan-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .8rem;
}

.sambutan-quote {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.6;
  border-left: 3px solid var(--green-lt);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.sambutan-body {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.sambutan-author b {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--dark);
}

.sambutan-author span {
  font-size: .82rem;
  color: var(--gray);
}

/* STATISTIK */
.stats-section {
  padding: 3.5rem 0;
  background: var(--off);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--gray-lt);
  border-radius: 12px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-lt));
}

.stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: .5rem;
}

.stat-lbl {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* BERITA */
.berita-section {
  padding: 4rem 0;
  background: #fff;
}

.berita-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.berita-card {
  border: 1px solid var(--gray-lt);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: var(--trans);
}

.berita-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.berita-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.berita-body {
  padding: 1.2rem 1.3rem;
}

.berita-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  padding: .2rem .65rem;
  border-radius: 100px;
  margin-bottom: .65rem;
}

.berita-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: .5rem;
}

.berita-desc {
  font-size: .84rem;
  color: var(--gray);
  line-height: 1.65;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .section,
  .section-alt {
    padding: 2.5rem 0 !important;
  }

  .sambutan-card {
    flex-direction: column;
    text-align: center;
  }

  .sambutan-quote {
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--green-lt);
    padding-top: .8rem;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .berita-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4rem 0 3rem !important;
  }
}