/* ===== CSS Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #184A32;
  --secondary: #5E9B63;
  --light: #EEF6EE;
  --gold: #D7B56D;
  --text-dark: #263238;
  --text-gray: #666666;
  --bg-white: #FFFFFF;
  --bg-section: #FAFBFA;
  --font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background: var(--bg-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light);
}

.navbar .container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  height: 40px;
  width: auto;
  aspect-ratio: 4 / 5;
}

.logo-slogan {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
  border-left: 2px solid var(--secondary);
  padding-left: 10px;
  line-height: 1.3;
  max-width: 220px;
}

.footer-slogan {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--secondary);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: white;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-nav:hover {
  background: #4d8652;
}

.nav-login {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .nav-login {
    display: none;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
}

.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid var(--light);
  padding: 8px 16px 20px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 20px 20px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.2s;
  font-size: 15px;
}

.mobile-menu a:hover {
  background: var(--bg-section);
}

.mobile-menu .btn-nav {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.mobile-menu a:last-child {
  margin-top: 4px;
}

/* ===== Hero ===== */
.hero {
  min-height: 90vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  background: white;
}

.hero .container {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  width: fit-content;
}

.badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--primary);
}

.hero-title .highlight {
  color: var(--secondary);
}

.hero-desc {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: white;
  font-weight: 500;
  font-size: 15px;
  padding: 16px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 4px 14px rgba(94, 155, 99, 0.2);
}

.btn-primary:hover {
  background: #4d8652;
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-weight: 500;
  font-size: 15px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid var(--secondary);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: var(--light);
}

.btn-secondary svg {
  width: 20px;
  height: 20px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 16px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-gray);
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
}

.hero-image-border {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  border: 4px solid var(--gold);
  opacity: 0.7;
  clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%);
}

.hero-image-inner {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--light);
  position: relative;
}

.hero-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(24, 74, 50, 0.4) 0%, rgba(94, 155, 99, 0.2) 50%, rgba(215, 181, 109, 0.15) 100%);
  pointer-events: none;
}

/* ===== Section Styles ===== */
.section {
  padding: 96px 0;
}

.section-bg {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.section-title {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 12px;
}

/* ===== Programs ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-circle svg {
  width: 30px;
  height: 30px;
  color: var(--secondary);
}

.program-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.program-card p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Keunggulan ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
  max-width: 220px;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  cursor: pointer;
}

.gallery-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.gallery-card-inner {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.5s;
}

.gallery-card:hover .gallery-card-content {
  transform: scale(1.05);
}

.gallery-card-content svg {
  width: 52px;
  height: 52px;
  color: var(--secondary);
}

.gallery-card-content span {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
}

/* ===== CTA Banner ===== */
.cta-section {
  padding: 96px 0;
  background: white;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(160deg, #184A32 0%, #1d5a3a 30%, #2d6b4a 60%, #3a7d55 100%);
  padding: 64px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(215, 181, 109, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 50%, rgba(94, 155, 99, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.cta-ornament {
  position: absolute;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  object-fit: contain;
}

.cta-ornament-left {
  left: 0;
  top: 0;
  height: auto;
  width: 18%;
  transform: scaleX(-1);
}

.cta-ornament-right {
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
}

.cta-content,
.cta-action {
  position: relative;
  z-index: 10;
}

.cta-title {
  font-size: 40px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  max-width: 500px;
}

.cta-title .highlight {
  color: var(--gold);
}

.cta-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin-top: 16px;
  max-width: 480px;
}

.cta-action {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 8px 24px rgba(215, 181, 109, 0.3);
}

.btn-cta:hover {
  background: #c9a85d;
}

.btn-cta svg {
  width: 22px;
  height: 22px;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: white;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
  gap: 12px;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 20px;
  color: white;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

.footer h4 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: white;
}

.footer ul li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

.stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-item:nth-child(2) { transition-delay: 0.1s; }
.stagger-item:nth-child(3) { transition-delay: 0.2s; }
.stagger-item:nth-child(4) { transition-delay: 0.3s; }

/* ===== Registration Form ===== */
.form-container {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

.required {
  color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e8ece8;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-section);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  background: white;
}

.form-group textarea {
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 12px;
}

/* ===== Success Page ===== */
.success-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: white;
  border-radius: 24px;
  padding: 56px 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--secondary);
}

.success-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.success-desc {
  color: var(--text-gray);
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.reg-number-card {
  background: var(--light);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border: 2px dashed var(--secondary);
}

.reg-number-label {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
  margin-bottom: 8px;
}

.reg-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
}

.success-info {
  background: #fff8e1;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.success-info p {
  color: #8d6e2b;
  font-size: 14px;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ===== Floating WhatsApp ===== */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  animation: wa-pulse 2s infinite;
}

.floating-wa:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.floating-wa svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  #installBanner {
    right: 16px !important;
    bottom: 80px !important;
  }
  #installAppFloat {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
}

#installAppFloat:hover {
  background: #1d5a3a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(24,74,50,0.4) !important;
}

@keyframes wa-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
  }
}

/* ===== Admin Login ===== */
.login-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-error {
  background: #FDE8E8;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #c8e6c9;
}

/* ===== Admin Dashboard ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
}

.table-container {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead {
  background: var(--bg-section);
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 13px;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-dark);
}

.admin-table tbody tr:hover {
  background: #f8faf8;
}

.search-input {
  padding: 10px 16px;
  border: 2px solid #e8ece8;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-section);
  outline: none;
  min-width: 240px;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--secondary);
  background: white;
}

.status-select {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.status-select.registered {
  background: #FFF3E0;
  color: #E65100;
}

.status-select.confirmed {
  background: #E3F2FD;
  color: #1565C0;
}

.status-select.tashih {
  background: #E8EAF6;
  color: #3949AB;
}

.status-select.wawancara {
  background: #F3E5F5;
  color: #7B1FA2;
}

.status-select.active {
  background: #E8F5E9;
  color: #2E7D32;
}

.form-control {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font-family);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--secondary);
  background: white;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-wa {
  background: #E8F5E9;
  color: #25D366;
}

.btn-wa:hover {
  background: #c8e6c9;
}

.btn-danger {
  background: #FDE8E8;
  color: #e74c3c;
}

.btn-danger:hover {
  background: #f5c6cb;
}

/* ===== Settings Dropdown ===== */
.settings-btn:hover {
  background: var(--light) !important;
  color: var(--primary) !important;
}

.settings-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 8px;
  z-index: 100;
  border: 1px solid var(--light);
}

.settings-dropdown.open {
  display: block;
}

.settings-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.2s;
}

.settings-dropdown a:hover {
  background: var(--bg-section);
  color: var(--primary);
}

.settings-dropdown a svg {
  flex-shrink: 0;
  color: var(--text-gray);
}

.settings-dropdown a:hover svg {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-input {
    min-width: 160px;
  }
}

@media (max-width: 640px) {
  .login-card {
    padding: 32px 24px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
  .programs-grid,
  .features-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .btn-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-image-frame {
    max-width: 400px;
  }

  .section-title {
    font-size: 36px;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }

  .cta-title {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .programs-grid,
  .features-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 32px;
  }

  .section {
    padding: 64px 0;
  }

  .stats {
    gap: 16px;
  }
}

/* ===== Responsive Admin Table ===== */
/* On mobile, transform table into cards using data-label */
@media (max-width: 767px) {
  .table-responsive table.admin-table,
  .table-responsive table.admin-table tbody,
  .table-responsive table.admin-table tr,
  .table-responsive table.admin-table td {
    display: block;
  }

  .table-responsive table.admin-table thead {
    display: none;
  }

  .table-responsive table.admin-table tr {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
  }

  .table-responsive table.admin-table td {
    padding: 6px 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
  }

  .table-responsive table.admin-table td::before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 500;
    flex-shrink: 0;
  }

  .table-responsive table.admin-table td:first-child {
    padding-top: 0;
  }

  .table-responsive table.admin-table td:last-child {
    padding-bottom: 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
    padding-top: 10px;
    justify-content: flex-end;
  }

  .table-responsive table.admin-table td:last-child::before {
    display: none;
  }

  /* Status select on mobile - toggle between label and dropdown */
  .table-responsive table.admin-table td[data-label="Status"] {
    justify-content: flex-start;
    gap: 8px;
  }

  .table-responsive table.admin-table td[data-label="Status"] select {
    max-width: 140px;
  }

  /* Tahapan progress bar stays compact */
  .table-responsive table.admin-table td[data-label="Tahapan"] {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Admin Mobile ===== */
@media (max-width: 640px) {
  main {
    padding: 20px 16px !important;
  }
  .table-container {
    padding: 16px !important;
    border-radius: 16px !important;
  }
  .stat-card {
    padding: 16px !important;
  }
  .stat-card-value {
    font-size: 22px !important;
  }
  .admin-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .admin-header h1 {
    font-size: 20px !important;
  }
  .admin-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .admin-filters a {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  form[style*="max-width: 400px"] {
    max-width: 100% !important;
  }
}
