/* ============================================================
   assets/css/style.css — PSNU Pagar Nusa PAC Kepohbaru
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --hijau:        #1a4a2e;
  --hijau-mid:    #2d6b47;
  --hijau-light:  #4a9e6b;
  --hijau-pale:   #e8f5ee;
  --kuning:       #c8a030;
  --kuning-light: #e8c060;
  --kuning-pale:  #fdf6e3;
  --putih:        #f8f5ee;
  --abu:          #e2ddd4;
  --abu-mid:      #cdc8bc;
  --teks:         #1e1a14;
  --teks-muted:   #5a5040;
  --shadow-sm:    0 2px 8px rgba(26,74,46,.10);
  --shadow-md:    0 6px 24px rgba(26,74,46,.14);
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --transition:   0.22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--putih);
  color: var(--teks);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === UTILITIES === */
.container       { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm    { max-width: 780px;  margin: 0 auto; padding: 0 1.5rem; }
.text-center     { text-align: center; }
.mt-1  { margin-top: .5rem; }  .mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; } .mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; cursor: pointer; border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary  { background: var(--kuning); color: var(--hijau); }
.btn-primary:hover  { background: var(--kuning-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--hijau); color: #fff; }
.btn-secondary:hover { background: var(--hijau-mid); transform: translateY(-2px); }
.btn-outline  {
  background: transparent; color: var(--hijau);
  border: 1.5px solid var(--hijau-light);
}
.btn-outline:hover { background: var(--hijau-pale); }
.btn-danger   { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #b02a37; }
.btn-sm       { padding: 8px 18px; font-size: 12px; }
.btn-block    { width: 100%; justify-content: center; }

/* === SECTION HEADERS === */
.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--hijau-light);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: .6rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, var(--hijau-light), transparent);
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600; color: var(--hijau);
  line-height: 1.2; margin-bottom: .9rem;
}
.section-desc {
  font-family: 'Lora', serif;
  font-size: 15px; color: var(--teks-muted);
  max-width: 560px; line-height: 1.85;
}

/* === DIVIDER === */
.gold-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--kuning), var(--hijau-light), var(--kuning), transparent);
}

/* === BADGE === */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.badge-green  { background: var(--hijau-pale); color: var(--hijau-mid); }
.badge-gold   { background: var(--kuning-pale); color: #7a5c00; }
.badge-rutin  { background: #e8f5ee; color: #1a4a2e; }
.badge-kajian { background: #eef2ff; color: #3730a3; }
.badge-kompetisi { background: #fff3cd; color: #856404; }
.badge-sosial { background: #fde8e8; color: #9b1c1c; }
.badge-lainnya { background: var(--abu); color: var(--teks-muted); }

/* === ALERTS === */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 1.25rem;
}
.alert-success { background: #d1e7dd; color: #0a3622; border-left: 4px solid #198754; }
.alert-danger  { background: #f8d7da; color: #58151c; border-left: 4px solid #dc3545; }
.alert-info    { background: #cff4fc; color: #055160; border-left: 4px solid #0dcaf0; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26,74,46,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,160,48,.3);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.emblem {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--kuning);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700;
  color: var(--hijau); flex-shrink: 0;
}
.emblem-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--kuning);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 700;
  color: var(--hijau); flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-title {
  font-family: 'Cinzel', serif; font-size: 14px; font-weight: 600;
  color: var(--kuning-light); line-height: 1.2;
}
.nav-sub { font-size: 11px; color: rgba(248,245,238,.6); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: rgba(248,245,238,.8); font-size: 13px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  transition: color var(--transition); padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--kuning-light); border-color: var(--kuning-light); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--kuning-light); transition: var(--transition);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, rgba(15,35,20,.95) 0%, rgba(26,74,46,.8) 50%, rgba(15,35,20,.92) 100%),
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(200,160,48,.02) 40px, rgba(200,160,48,.02) 80px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 2rem 5rem;
  position: relative; overflow: hidden;
}
.hero-ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(200,160,48,.12);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.hero-ring:nth-child(1) { width: 500px; height: 500px; }
.hero-ring:nth-child(2) { width: 700px; height: 700px; opacity: .7; }
.hero-ring:nth-child(3) { width: 900px; height: 900px; opacity: .4; }

.hero-badge {
  display: inline-block;
  background: rgba(200,160,48,.18); border: 1px solid rgba(200,160,48,.45);
  color: var(--kuning-light); padding: 6px 20px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-shield {
  width: 110px; height: 130px; margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--kuning), #9a7010);
  clip-path: polygon(50% 0%, 100% 18%, 100% 65%, 50% 100%, 0% 65%, 0% 18%);
  display: flex; align-items: center; justify-content: center;
}
.hero-shield-inner {
  width: 80px; height: 95px;
  background: var(--hijau);
  clip-path: polygon(50% 0%, 100% 18%, 100% 65%, 50% 100%, 0% 65%, 0% 18%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.hero-shield-inner span {
  font-family: 'Cinzel', serif; font-size: 9px; font-weight: 700;
  color: var(--kuning-light); letter-spacing: .06em;
}
.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700; color: #fff; line-height: 1.15;
  margin-bottom: .6rem;
}
.hero h1 .accent { color: var(--kuning-light); }
.hero-tagline {
  font-family: 'Lora', serif; font-style: italic;
  font-size: clamp(.9rem, 2vw, 1.1rem);
  color: rgba(248,245,238,.7); margin-bottom: .5rem;
}
.hero-location {
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--kuning-light); margin-bottom: 2rem;
}
.hero-desc {
  font-size: 16px; color: rgba(248,245,238,.75);
  max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.8;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === STATS BAR === */
.stats-bar {
  background: var(--hijau); padding: 2.5rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(200,160,48,.2);
}
.stat-item {
  background: var(--hijau); padding: 1.75rem 1.5rem; text-align: center;
}
.stat-num {
  font-family: 'Cinzel', serif; font-size: 2.2rem; font-weight: 700;
  color: var(--kuning-light); line-height: 1;
}
.stat-label { font-size: 13px; color: rgba(248,245,238,.6); margin-top: 6px; }

/* === TENTANG === */
.section-tentang { padding: 6rem 0; background: #fff; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; margin-top: 3rem;
}
.about-card {
  background: var(--hijau); border-radius: var(--radius-md);
  padding: 3rem 2.5rem; position: relative; overflow: hidden;
}
.about-card::before {
  content: '"'; position: absolute;
  top: -20px; left: 10px;
  font-size: 8rem; color: var(--kuning);
  opacity: .2; font-family: Georgia, serif; line-height: 1;
}
.about-card blockquote {
  font-family: 'Lora', serif; font-size: 1.15rem; font-style: italic;
  color: rgba(248,245,238,.9); line-height: 1.8;
  position: relative; z-index: 1;
}
.about-card cite {
  display: block; margin-top: 1.25rem;
  font-style: normal; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--kuning-light);
  position: relative; z-index: 1;
}
.stat-boxes {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 12px;
}
.stat-box {
  background: var(--putih); border: 1px solid var(--abu);
  border-radius: var(--radius-sm); padding: 1.2rem 1.5rem;
}
.stat-box .num {
  font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 700;
  color: var(--hijau); line-height: 1;
}
.stat-box .lbl { font-size: 12px; color: var(--teks-muted); margin-top: 4px; }
.about-text p {
  font-family: 'Lora', serif; font-size: 15px;
  color: var(--teks-muted); line-height: 1.9; margin-bottom: 1.25rem;
}

/* === VISI MISI === */
.section-visimisi { padding: 6rem 0; background: var(--putih); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.vm-card { border-radius: var(--radius-md); padding: 2.5rem; }
.vm-card.visi { background: var(--hijau); color: #fff; }
.vm-card.misi { background: #fff; border: 1px solid var(--abu); }
.vm-label {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.vm-card.visi .vm-label { color: var(--kuning-light); }
.vm-card.misi .vm-label { color: var(--hijau-light); }
.vm-card h3 {
  font-family: 'Cinzel', serif; font-size: 1.35rem;
  font-weight: 600; line-height: 1.4; margin-bottom: 1.25rem;
}
.vm-card.visi h3 { color: #fff; }
.vm-card.misi h3 { color: var(--hijau); }
.misi-list li {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--abu);
  font-family: 'Lora', serif; font-size: 14px;
  line-height: 1.6; color: var(--teks-muted);
}
.misi-list li:last-child { border-bottom: none; }
.misi-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--kuning); flex-shrink: 0; margin-top: 8px;
}
.vm-card.visi p {
  font-family: 'Lora', serif; font-size: 15px;
  color: rgba(248,245,238,.85); line-height: 1.85;
}

/* === PROGRAM === */
.section-program { padding: 6rem 0; background: #fff; }
.program-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.prog-card {
  background: var(--putih); border: 1px solid var(--abu);
  border-radius: var(--radius-md); padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.prog-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--hijau), var(--kuning));
  opacity: 0; transition: opacity var(--transition);
}
.prog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.prog-card:hover::after { opacity: 1; }
.prog-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(26,74,46,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 1.25rem;
}
.prog-card h4 {
  font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600;
  color: var(--hijau); margin-bottom: .75rem; line-height: 1.4;
}
.prog-card p { font-size: 13.5px; color: var(--teks-muted); line-height: 1.7; }

/* === KEPENGURUSAN === */
.section-pengurus { padding: 6rem 0; background: var(--hijau); }
.section-pengurus .section-label { color: var(--kuning-light); }
.section-pengurus .section-label::after { background: linear-gradient(to right, var(--kuning-light), transparent); }
.section-pengurus .section-title { color: #fff; }
.section-pengurus .section-desc { color: rgba(248,245,238,.65); }
.pengurus-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.pengurus-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(200,160,48,.25);
  border-radius: var(--radius-md); padding: 2rem 1.25rem;
  text-align: center; transition: background var(--transition);
}
.pengurus-card:hover { background: rgba(255,255,255,.14); }
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--kuning); margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700;
  color: var(--hijau); border: 3px solid rgba(200,160,48,.4);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.pengurus-jabatan {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--kuning-light); margin-bottom: .4rem;
}
.pengurus-nama {
  font-family: 'Lora', serif; font-size: 15px; font-weight: 500;
  color: #fff; line-height: 1.4;
}
.pengurus-periode { font-size: 12px; color: rgba(248,245,238,.45); margin-top: 4px; }

/* === AGENDA === */
.section-agenda { padding: 6rem 0; background: var(--putih); }
.agenda-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 3rem; }
.agenda-item {
  display: flex; gap: 1.5rem;
  background: #fff; border: 1px solid var(--abu);
  border-radius: var(--radius-md); padding: 1.5rem 1.75rem;
  align-items: flex-start; transition: border-color var(--transition);
}
.agenda-item:hover { border-color: var(--hijau-light); }
.agenda-date {
  background: var(--hijau); border-radius: var(--radius-sm);
  padding: .75rem 1rem; text-align: center;
  min-width: 64px; flex-shrink: 0;
}
.agenda-date .day {
  font-family: 'Cinzel', serif; font-size: 1.6rem; font-weight: 700;
  color: var(--kuning-light); line-height: 1;
}
.agenda-date .month {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(248,245,238,.65); margin-top: 2px;
}
.agenda-info { flex: 1; }
.agenda-info h4 {
  font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600;
  color: var(--hijau); margin-bottom: .4rem;
}
.agenda-info p { font-size: 13.5px; color: var(--teks-muted); line-height: 1.6; }
.agenda-meta {
  display: flex; align-items: center; gap: .75rem;
  margin-top: .6rem; flex-wrap: wrap;
}
.agenda-loc { font-size: 12px; color: var(--teks-muted); }

/* === KONTAK === */
.section-kontak { padding: 6rem 0; background: #fff; }
.kontak-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 4rem; margin-top: 3rem; align-items: start;
}
.kontak-info h3 {
  font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 600;
  color: var(--hijau); margin-bottom: 1.5rem;
}
.kontak-item {
  display: flex; gap: 14px; margin-bottom: 1.25rem; align-items: flex-start;
}
.kontak-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--hijau-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.kontak-item-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--teks); }
.kontak-item-text span   { font-size: 13px; color: var(--teks-muted); }

/* FORM */
.form-card {
  background: var(--putih); border: 1px solid var(--abu);
  border-radius: var(--radius-md); padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--teks-muted); margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--abu); border-radius: var(--radius-sm);
  font-size: 14.5px; font-family: 'Source Sans 3', sans-serif;
  background: #fff; color: var(--teks);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--hijau-light);
  box-shadow: 0 0 0 3px rgba(74,158,107,.15);
}
.form-control::placeholder { color: #b0a898; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* === TABLE === */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--abu); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--hijau); color: #fff; }
thead th {
  padding: 13px 16px; text-align: left;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--abu); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--hijau-pale); }
tbody td { padding: 13px 16px; vertical-align: middle; color: var(--teks-muted); }
.table-empty { text-align: center; padding: 3rem; color: var(--teks-muted); }

/* === CARDS === */
.card {
  background: #fff; border: 1px solid var(--abu);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 1.5rem; }
.card-title { font-family: 'Cinzel', serif; font-size: 1rem; color: var(--hijau); margin-bottom: .5rem; }
.card-text  { font-size: 13.5px; color: var(--teks-muted); line-height: 1.65; }

/* === PAGINATION === */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--abu); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; transition: var(--transition); color: var(--teks-muted);
  text-decoration: none;
}
.page-btn:hover   { background: var(--hijau-pale); border-color: var(--hijau-light); color: var(--hijau); }
.page-btn.active  { background: var(--hijau); color: #fff; border-color: var(--hijau); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* === ADMIN LAYOUT === */
.admin-wrap { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--hijau); min-height: 100vh;
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 200; overflow-y: auto;
}
.sidebar-brand {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(200,160,48,.25);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-brand-text { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600; color: var(--kuning-light); line-height: 1.3; }
.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-section {
  padding: .4rem 1.5rem .2rem;
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(200,160,48,.6);
  margin-top: .75rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: .75rem 1.5rem;
  color: rgba(248,245,238,.75); font-size: 14px;
  transition: background var(--transition), color var(--transition);
}
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-link.active { background: rgba(200,160,48,.2); color: var(--kuning-light); border-right: 3px solid var(--kuning); }
.sidebar-link .icon { font-size: 16px; width: 20px; text-align: center; }
.sidebar-footer {
  padding: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px; color: rgba(248,245,238,.4);
}
.main-content {
  margin-left: 260px; flex: 1; display: flex; flex-direction: column;
}
.topbar {
  background: #fff; border-bottom: 1px solid var(--abu);
  padding: 1rem 2rem; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.topbar h1 { font-family: 'Cinzel', serif; font-size: 1.2rem; color: var(--hijau); }
.admin-body { padding: 2rem; flex: 1; }
.stat-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.stat-card {
  background: #fff; border: 1px solid var(--abu);
  border-radius: var(--radius-md); padding: 1.5rem;
  border-top: 3px solid var(--hijau);
}
.stat-card .num {
  font-family: 'Cinzel', serif; font-size: 2.2rem; font-weight: 700;
  color: var(--hijau); line-height: 1;
}
.stat-card .lbl { font-size: 12px; color: var(--teks-muted); margin-top: 6px; }
.stat-card .icon-wrap { float: right; font-size: 2rem; opacity: .15; }

/* === FOOTER === */
.footer { background: #0b2217; color: rgba(248,245,238,.65); padding: 4rem 0 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2rem;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: .75rem; }
.footer-logo span { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600; color: var(--kuning-light); }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(248,245,238,.5); max-width: 280px; }
.footer-alamat { margin-top: .6rem; font-size: 12px; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--kuning-light); margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(248,245,238,.5); transition: color var(--transition); }
.footer-col ul li a:hover { color: rgba(248,245,238,.9); }
.footer-col ul li { font-size: 13px; }
.footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(248,245,238,.3);
}
.footer-bottom strong { color: var(--kuning-light); }

/* === PAGE HEADER === */
.page-header {
  background: linear-gradient(135deg, var(--hijau) 0%, var(--hijau-mid) 100%);
  padding: 7rem 0 3rem; text-align: center;
}
.page-header h1 {
  font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff; margin-bottom: .5rem;
}
.page-header p { font-family: 'Lora', serif; font-style: italic; color: rgba(248,245,238,.7); }
.breadcrumb { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; font-size: 12px; color: rgba(248,245,238,.5); }
.breadcrumb a { color: var(--kuning-light); }

/* === SEARCH/FILTER BAR === */
.filter-bar {
  background: #fff; border: 1px solid var(--abu);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-bar .form-control { max-width: 280px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .pengurus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(26,74,46,.98); padding: 1rem; gap: .5rem; z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .about-grid, .vm-grid, .kontak-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { width: 220px; }
  .main-content { margin-left: 0; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .program-grid { grid-template-columns: 1fr; }
  .pengurus-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
  .stat-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   TAMBAHAN: Print, Animasi, Sidebar Overlay, Utility
   ============================================================ */

/* Sidebar overlay (mobile) */
#sidebarOverlay {
  display: none;
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.45);
}

/* Sidebar mobile open */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.3); }
  .main-content { margin-left: 0 !important; }
  .topbar { padding: .85rem 1rem; }
  .topbar h1 { font-size: 1rem; }
  .admin-body { padding: 1rem; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

/* Topbar hamburger for admin */
.topbar-ham {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 4px; padding: 4px;
}
.topbar-ham span {
  display: block; width: 22px; height: 2px;
  background: var(--hijau); border-radius: 2px;
}
@media (max-width: 768px) { .topbar-ham { display: flex; } }

/* Animasi fade-in section */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .5s ease both; }
.fade-in-1 { animation-delay: .1s; }
.fade-in-2 { animation-delay: .2s; }
.fade-in-3 { animation-delay: .3s; }
.fade-in-4 { animation-delay: .4s; }

/* Hover card lift */
.lift { transition: transform .2s, box-shadow .2s; }
.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* Focus ring accessibility */
:focus-visible {
  outline: 3px solid var(--hijau-light);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--abu) 25%, #f0ede6 50%, var(--abu) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.4s infinite;
  border-radius: 4px;
}
@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: rgba(26,74,46,.92); color: #fff;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  padding: 4px 10px; border-radius: 4px;
  pointer-events: none; opacity: 0; transition: opacity .15s;
  z-index: 50;
}
[data-tooltip]:hover::after { opacity: 1; }

/* Print styles */
@media print {
  .navbar, .footer, .btn, .filter-bar,
  .sidebar, .topbar, #scrollTop,
  .no-print, nav { display: none !important; }

  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .container { max-width: 100% !important; padding: 0 !important; }

  .card { box-shadow: none !important; border: 1px solid #ccc !important; }
  .section-title { font-size: 16pt !important; }
  a[href]::after { content: '' !important; } /* Jangan print URL */

  .page-header {
    background: none !important; color: #000 !important;
    border-bottom: 2px solid #000; padding: 1rem 0 !important;
  }
  .page-header h1 { color: #000 !important; font-size: 18pt !important; }
  .page-header p  { color: #555 !important; }
  .breadcrumb { display: none !important; }
}

/* Scrollbar custom */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--putih); }
::-webkit-scrollbar-thumb { background: var(--abu-mid); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--hijau-light); }

/* Chips/Tags */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--hijau-pale); color: var(--hijau-mid);
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.chip-remove {
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--hijau-mid); line-height: 1;
}
.chip-remove:hover { color: #c00; }

/* Empty state */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  color: var(--teks-muted);
}
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { font-family:'Cinzel',serif; font-size:1.1rem; color:var(--hijau); margin-bottom:.5rem; }
.empty-state p  { font-size: 13.5px; max-width: 360px; margin: 0 auto; line-height: 1.7; }

/* Section divider dengan teks */
.divider-text {
  display: flex; align-items: center; gap: 1rem;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; color: var(--teks-muted); margin: 2rem 0;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--abu);
}

/* Form inline */
.form-inline { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.form-inline .form-control { width: auto; }

/* Tag list */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--teks-muted); pointer-events: none;
}
.input-icon-wrap .form-control { padding-left: 36px; }

/* Progress */
.progress { height: 8px; background: var(--abu); border-radius: 20px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 20px; background: var(--hijau); transition: width .5s ease; }

/* Avatar group */
.avatar-group { display: flex; }
.avatar-group .avatar { margin-right: -12px; border: 2px solid #fff; width: 40px; height: 40px; font-size: .9rem; }
.avatar-group .avatar:last-child { margin-right: 0; }

/* Step indicator */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; }
.step {
  flex: 1; text-align: center; position: relative;
  font-size: 12px; color: var(--teks-muted);
}
.step::before {
  content: attr(data-step);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--abu); color: var(--teks-muted);
  font-weight: 700; margin: 0 auto .5rem;
  border: 2px solid var(--abu);
}
.step.active::before  { background: var(--hijau); color: #fff; border-color: var(--hijau); }
.step.done::before    { background: var(--kuning); color: var(--hijau); border-color: var(--kuning); content: '✓'; }
.step + .step::after {
  content: ''; position: absolute;
  top: 16px; right: 50%; left: -50%; height: 2px;
  background: var(--abu); z-index: -1;
}
.step.done + .step::after { background: var(--kuning); }

/* ============================================================
   Fitur Baru: Berita, Prestasi, Absensi
   ============================================================ */

/* Badge kategori berita */
.badge-berita      { background: #e0f2fe; color: #0369a1; }
.badge-pengumuman  { background: #fef3c7; color: #92400e; }
.badge-kegiatan    { background: #e8f5ee; color: #1a4a2e; }
.badge-prestasi    { background: #fdf4ff; color: #7e22ce; }

/* Grid berita responsive */
@media (max-width: 768px) {
  .berita-grid,
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Artikel konten tipografi */
.artikel-konten {
  font-family: 'Lora', serif;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--teks-muted);
}
.artikel-konten p { margin-bottom: 1.25rem; }
.artikel-konten h2,
.artikel-konten h3 { font-family: 'Cinzel', serif; color: var(--hijau); margin: 1.75rem 0 .75rem; }
.artikel-konten ul,
.artikel-konten ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.artikel-konten li { margin-bottom: .4rem; }
.artikel-konten blockquote {
  border-left: 4px solid var(--kuning);
  padding: .75rem 1.25rem;
  background: var(--kuning-pale);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  margin: 1.5rem 0;
}
.artikel-konten img {
  max-width: 100%; border-radius: 8px; margin: 1rem 0;
}
.artikel-konten strong { color: var(--teks); }
.artikel-konten a { color: var(--hijau-mid); text-decoration: underline; }
.artikel-konten a:hover { color: var(--hijau); }

/* Absensi row colors */
tr.hadir   td { background: transparent; }
tr.izin    td { background: #fffbeb; }
tr.sakit   td { background: #eef2ff; }
tr.alpha   td { background: #f9fafb; }

/* Status select absensi */
.status-select option[value="Hadir"]  { background: #e8f5ee; }
.status-select option[value="Izin"]   { background: #fffbeb; }
.status-select option[value="Sakit"]  { background: #eef2ff; }
.status-select option[value="Alpha"]  { background: #f1f5f9; }

/* Prestasi card hover */
.prestasi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* EasyMDE editor dalam admin */
.EasyMDEContainer .CodeMirror {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  min-height: 200px;
  border-color: var(--abu);
}
.EasyMDEContainer .editor-toolbar {
  border-color: var(--abu);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.editor-preview { font-family: 'Lora', serif; font-size: 15px; line-height: 1.8; }

/* Sticky form card in admin */
.sticky-card { position: sticky; top: 84px; }

/* Absensi stat ring */
.stat-ring-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap; margin: 1.5rem 0;
}
.stat-ring {
  width: 90px; height: 90px; border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 6px solid var(--abu); position: relative;
}
.stat-ring .ring-num {
  font-family: 'Cinzel', serif; font-size: 1.5rem;
  font-weight: 700; line-height: 1;
}
.stat-ring .ring-lbl { font-size: 10px; color: var(--teks-muted); }

/* Badge kehadiran persentase */
.pct-hadir { color: var(--hijau); }
.pct-warning { color: #f59e0b; }
.pct-danger  { color: #ef4444; }

/* Print-specific for absensi */
@media print {
  .status-select, .btn, #filterBox, .topbar, .sidebar { display: none !important; }
  table { page-break-inside: auto; }
  tr { page-break-inside: avoid; }
}

/* ============================================================
   MOBILE IMPROVEMENTS & UTILITY TAMBAHAN
   ============================================================ */

/* Kalender responsive */
@media (max-width: 640px) {
  .sertifikat { transform: scale(0.45); transform-origin: top left; }
  .preview-wrap { overflow-x: auto; }
}

/* Input search di navbar */
.nav-search:focus {
  outline: none;
  background: rgba(255,255,255,.22) !important;
  border-color: rgba(200,160,48,.6) !important;
  width: 180px !important;
  transition: width .3s, border-color .3s;
}
.nav-search::placeholder { color: rgba(255,255,255,.5); }

/* Notifikasi banner */
.notif-banner {
  animation: slideDown .3s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* Iuran grid bulan */
.iuran-month-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
}
@media (max-width: 480px) {
  .iuran-month-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Card hover subtle */
.card-hover {
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Kalender tanggal responsive */
@media (max-width: 768px) {
  .kalender-grid { font-size: 11px; }
  .kalender-grid .event-label { display: none; }
}

/* Form inline search */
.nav-search-form {
  display: flex;
  align-items: center;
}
@media (max-width: 768px) {
  .nav-search-form { display: none; }
}

/* Admin topbar mobile */
@media (max-width: 768px) {
  .topbar { padding: .75rem 1rem; }
  .topbar h1 { font-size: .9rem; }
  .admin-body { padding: 1rem; }
  .stat-cards { grid-template-columns: 1fr 1fr !important; }
  .berita-layout { grid-template-columns: 1fr !important; }
  .form-sticky { position: static; max-height: none; }
}

/* Cetak absensi / sertifikat mobile preview */
@media (max-width: 900px) {
  .sertifikat { width: 100%; min-height: auto; }
  .cert-name { font-size: 20px; }
}

/* Artikel konten mobile */
@media (max-width: 768px) {
  .artikel-konten { font-size: 14.5px; }
  .artikel-konten .arabic { font-size: 1.4em; }
}

/* Tabel responsive wrapper */
@media (max-width: 640px) {
  .table-wrapper table { font-size: 11px; }
  .table-wrapper th, .table-wrapper td { padding: 6px 8px; }
}

/* Badge hover */
.badge[href]:hover { opacity: .85; cursor: pointer; }

/* Sidebar scroll smooth */
.sidebar { scrollbar-width: thin; scrollbar-color: rgba(200,160,48,.3) transparent; }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(200,160,48,.3); border-radius: 10px; }

/* Color picker label */
.color-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--teks-muted);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--abu);
  background: var(--putih);
  transition: border-color .15s;
}
.color-label:hover { border-color: var(--hijau-light); }

/* Status dot indicator */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.online  { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.status-dot.offline { background: #9ca3af; }
.status-dot.warning { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }

/* Floating action button */
.fab {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--hijau);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(26,74,46,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  z-index: 400;
  text-decoration: none;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(26,74,46,.45); }

/* Highlight search result */
mark {
  background: #fef08a;
  border-radius: 2px;
  padding: 0 2px;
  color: inherit;
}

/* Responsive grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
