/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  overflow-x: hidden;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Page transition styles */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #09d6f5;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
}
.page-transition.active {
  opacity: 1;
  pointer-events: all;
}
body.page-loading {
  overflow: hidden;
}
/* Header Styles */
.header {
  background-color: #049fff;
  padding: 20px 0;
  border-bottom: 3px solid #000000;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}
.school-logo {
  width: 100%;
  height: 101px;
  object-fit: contain;
}
.school-logo-large {
  width: 340px;       /* diperbesar */
  height: auto;
  margin-bottom: 20px;   /* supaya tidak mendorong box ke bawah */
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}
.logo-placeholder {
  font-size: 40px;
  line-height: 1;
}
.site-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  color: #000000;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.nav-link:hover,
.nav-link.active {
  color: #0034df;
}
.nav-separator {
  color: #000000;
  font-size: 8px;
}
.btn-login {
  background-color: #14ea00;
  color: #000000;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  transition: transform 0.3s;
  border: 3px solid #000000;
}
.btn-login:hover {
  transform: scale(1.05);
}
/* Hero Section */
.hero-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
}

.hero-image-box {
  background-color: #eac300;
  border-radius: 40px;
  padding: 30px;
  border: 5px solid #000000;
  box-shadow: 15px 15px 0 #ff1d60;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.hero-title-image {
  display: flex;
  justify-content: center;   /* Tengah horizontal */
  align-items: center;       /* Tengah vertikal (opsional) */
  width: 100%;               /* Pastikan full width */
  text-align: center;        /* Jaga konten di dalam ikut rata */
 
  width: 100%;
  height: 100%;
}


.title-small {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 2px;
}

.title-large {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero-description {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 30px;
  border: 4px solid #000000;
  box-shadow: 10px 10px 0 #0034df;
}

.hero-description p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-schedule {
  background-color: #eac300;
  color: #000000;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  border: 3px solid #000000;
  transition: transform 0.3s;
  width: fit-content;
}
.btn-schedule:hover {
  transform: translateY(-3px);
}
/* Services/Ekskul Section */
.services-section {
  padding: 80px 0;
  position: relative;
}
.grid-background {
  background-color: #0034df;
  background-image: linear-gradient(#ffffff 1px, transparent 1px), linear-gradient(90deg, #ffffff 1px, transparent 1px);
  background-size: 50px 50px;
  padding: 60px 0;
}
.section-title {
  text-align: center;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 60px;
  color: #ffffff;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}
.service-card {
  background-color: #ffffff;
  border-radius: 40px;
  padding: 40px 30px;
  text-align: center;
  border: 5px solid #000000;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-10px);
}
.service-icon {
  font-size: 80px;
  margin-bottom: 20px;
  display: block;
}
.service-card h3 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.service-card p {
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: normal;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333333;
  display: -webkit-box;
  
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 65px; 
}
.btn-detail {
  background-color: #eac300;
  color: #000000;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  border: 3px solid #000000;
  transition: transform 0.3s;
}
.btn-detail:hover {
  transform: scale(1.05);
}
/* Ekskul buttons grid */
.ekskul-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 15px;
}
.ekskul-button {
  background-color: #eac300;
  color: #000000;
  border: 3px solid #000000;
  padding: 15px 20px;
  border-radius: 15px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ekskul-button:hover {
  background-color: #1443ff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.ekskul-button.active {
  background-color: #1443ff;
  color: #ffffff;
}
.services-button {
  text-align: center;
  position: relative;
}
.btn-book {
  background-color: #eac300;
  color: #000000;
  padding: 20px 50px;
  border-radius: 40px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 2px;
  border: 5px solid #000000;
  cursor: pointer;
  transition: transform 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
}
.btn-book:hover {
  transform: translateY(-5px);
}
.btn-icon {
  font-size: 28px;
  background-color: #0034df;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000000;
}
/* Gallery Section */
.gallery-section {
  background-color: #000000;
  padding: 80px 0;
  position: relative;
}
.gallery-title {
  text-align: center;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 40px;
  line-height: 1.2;
}
.title-white {
  color: #ffffff;
  display: block;
}
.title-pink {
  color: #049fff;
  display: block;
}
.paw-prints {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
}
.paw {
  color: #ffffff;
  font-size: 24px;
  opacity: 0.6;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: 40px;
  overflow: hidden;
  border: 4px solid #000000;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item.pink {
  background-color: #0034df;
}
.gallery-item.lime {
  background-color: #eac300;
}
.gallery-item.black {
  background-color: #1a1a1a;
}
/* Events Section */
.events-section {
  background: #049fff;
  padding: 80px 0;
  position: relative;
}
.events-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.events-image {
  position: relative;
}
.event-img {
  width: 70%;
  height: 50%;
  border-radius: 40px;
  border: 5px solid #000000;
  box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.2);
  margin-left: 100px;
}
.events-text {
  position: relative;
}
.star-decor {
  position: absolute;
  font-size: 40px;
  color: #ffffff;
  top: -20px;
  left: -20px;
}
.star-2 {
  top: auto;
  bottom: -20px;
  left: auto;
  right: -20px;
}
.scissors-decor {
  position: absolute;
  font-size: 30px;
  top: 50%;
  right: -30px;
  transform: rotate(45deg);
}
.events-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 30px;
  color: #ffffff;
}
.events-list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.events-list::-webkit-scrollbar {
  display: none;
}

.event-item {
  background-color: #ffffff;      /* putih */
  color: #000000;                 /* teks hitam */
  padding: 25px;
  border-radius: 25px;
  border: 4px solid #000000;      /* garis hitam tebal */
  box-shadow: 8px 8px 0 rgba(0,0,0,0.2); /* efek pop up */
  flex: 0 0 100%;
  scroll-snap-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 5px;
}



.event-item h4 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}
.event-date {
  color: #0034df;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
  display: block;
}
.event-item p {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.5;
  color: #333333;
}
.event-nav {
  text-align: center;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.event-nav button {
  background: #eac300;
  border: 3px solid #000;
  padding: 10px 20px;
  font-weight: 900;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.2s;
}

.event-nav button:hover {
  transform: scale(1.1);
}

.event-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.event-indicators .dot {
  width: 10px;
  height: 10px;
  background: #bfbfbf;
  border: 3px solid #000;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.event-indicators .dot.active {
  background: #eac300; /* hijau aktif */
  transform: scale(1.3);
}

/* Photo status */
.photo-status {
  display: inline-block;
  margin-right: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  border: 2px solid #000000;
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
}
.photo-status.has-photo {
  background-color: #eac300;
  color: #000000;
}
.photo-status.no-photo {
  background-color: #ffffff;
  color: #000000;
}
/* Schedule Section */
.schedule-section {
  background-color: #ffffff;
  padding: 80px 0;
}
.section-title-dark {
  text-align: center;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 60px;
  color: #000000;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.schedule-card {
  background: linear-gradient(135deg, #b3d1ff 0%, #0034df 100%);
  padding: 30px;
  border-radius: 30px;
  border: 4px solid #000000;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}
.schedule-card h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 15px;
  color: #000000;
}
.schedule-card p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
}
/* Subscribe Section */
.subscribe-section {
  background-color: #049fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.subscribe-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  position: relative;
}
.subscribe-left {
  flex: 1;
}
.subscribe-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.star-icon {
  font-size: 48px;
}
.subscribe-subtitle {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.subscribe-text {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.6;
}
.subscribe-form {
  display: flex;
  gap: 15px;
  flex: 1;
  max-width: 500px;
}
.email-input {
  flex: 1;
  padding: 18px 25px;
  border-radius: 30px;
  border: 4px solid #000000;
  font-size: 16px;
  font-weight: bold;
  background-color: #ffffff;
}
.email-input::placeholder {
  color: #999999;
}
.btn-subscribe {
  background-color: #0034df;
  color: #ffffff;
  padding: 18px 40px;
  border-radius: 30px;
  border: 4px solid #000000;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.3s;
  white-space: nowrap;
}
.btn-subscribe:hover {
  transform: scale(1.05);
}
.paw-decorations {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.paw-small {
  font-size: 30px;
  opacity: 0.6;
}
/* Footer */
.footer {
  color: #ffffff;
  padding: 60px 0 20px;
  background-color: #000000;
  background-image: 
    linear-gradient(white 2px, transparent 2px),
    linear-gradient(90deg, white 2px, transparent 2px);
  background-size: 40px 40px;
  padding-bottom: 80px;
}

/* === CONTAINER KHUSUS DI FOOTER === */
.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* === FOOTER CARD / BOX === */
.footer-col {
  background-color: #000000;      /* background hitam */
  border: 2px solid #ffffff;       /* border putih tebal */
  border-radius: 20px;             /* sedikit rounded, bisa diubah */
  padding: 20px;                   /* ruang dalam */
  overflow: visible
}

.footer-col:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 0 #ffffff; /* efek pop lebih kuat saat hover */
}

/* Bubble animasi */
.footer-col::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  top: -50px;
  left: -50px;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.footer-col:hover::before {
  transform: scale(2.5);
}

/* === FOOTER GOOEY BUBBLE belakang card === */
.footer-bubble {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eac300;
  border: 3px solid #000;
  pointer-events: none;
  animation: footerSlimePop 0.85s ease-out forwards;
  z-index: -1;  /* ⬅️ rendah agar berada di belakang card */
  opacity: 0.9;
}

@keyframes footerSlimePop {
  0% { transform: scale(0.3); opacity: 0.9; }
  60% { transform: scale(1.7) translateY(-10px); opacity: 1; }
  100% { transform: scale(0.2) translateY(20px); opacity: 0; }
}

.footer-col, .social-icon {
  position: relative;
}
/* === FIX: Bubble tidak terpotong container footer === */
.footer,
.footer .container,
.footer-content {
  overflow: visible !important;
}


.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible !important;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: #eac300;
}
.footer-col p {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.8;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-links a {
  color: #ffffff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  transition: color 0.3s;
}
.social-links a:hover {
  color: #1447ff;
}
.map-container {
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid #eac300;
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 2px solid #333333;
}
.footer-bottom p {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: normal;
}

.container { max-width: 100%; overflow: hidden; }

/* Detail Page */
.detail-section {
  padding: 60px 0;
  min-height: 60vh;
}
.back-link {
  display: inline-block;
  color: #000000;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 30px;
  transition: color 0.3s;
}
.back-link:hover {
  color: #0034df;
}
.detail-content {
  background-color: #ffffff;
  border-radius: 40px;
  padding: 50px;
  border: 5px solid #000000;
  box-shadow: 15px 15px 0 #0034df;
}
.detail-header {
  text-align: center;
  margin-bottom: 40px;
}
.detail-icon {
  font-size: 100px;
  margin-bottom: 20px;
}
.detail-header h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.detail-schedule {
  background-color: #eac300;
  padding: 15px 30px;
  border-radius: 25px;
  display: inline-block;
  font-weight: 900;
  border: 3px solid #000000;
}
.detail-body {
  margin-bottom: 40px;
  max-height: 250px;        /* batas tinggi konten */
  overflow-y: auto;         /* scroll vertikal */
  overflow-x: hidden;       /* cegah scroll samping */
  padding-right: 10px;  
}
.detail-body h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.detail-body p {
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333333;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.detail-body::-webkit-scrollbar {
  width: 10px;
}

.detail-body::-webkit-scrollbar-thumb {
  background: #eac300;
  border-radius: 10px;
  border: 2px solid #000;
}

.detail-body::-webkit-scrollbar-track {
  background: #000;
  border-radius: 10px;
}

.detail-gallery {
  margin-bottom: 40px;
}
.detail-gallery h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
.gallery-images {
  display: grid;
  grid-template-columns: repeat(2, 40px); /* kecilkan nilai */
  gap: 10px;
  justify-content: center; /* biar rapi di tengah */
}



/* === FIX FINAL GAMBAR GALLERY DETAIL === */
.gallery-images img {
  width: 100% !important;
  aspect-ratio: 1/1 !important;
  height: auto !important;    /* pastikan tidak ada height lain */
  object-fit: cover !important;
  border-radius: 15px !important;
}


.detail-cta {
  text-align: center;
}
.btn-register {
  background-color: #0034df;
  color: #ffffff;
  padding: 20px 60px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2px;
  display: inline-block;
  border: 5px solid #000000;
  transition: transform 0.3s;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
}
.btn-register:hover {
  transform: translateY(-5px);
}
/* Login Page */
.login-page {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-container {
  width: 100%;
  max-width: 1000px;
}
.login-box {
  background-color: #00d2ce;
  color: #ffffff;
  border-radius: 40px;
  padding: 50px;
  border: 5px solid #000000;
  box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.3);
}
.login-header {
  text-align: center;
  margin-bottom: 40px;
}
.logo-placeholder-large {
  font-size: 80px;
  margin-bottom: 20px;
}
.login-header h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.login-header p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-group label {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
}
.form-group input,
.form-group textarea {
  padding: 15px 20px;
  border-radius: 20px;
  border: 3px solid #000000;
  font-size: 16px;
  font-family: Arial, sans-serif;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0034df;
}
.error-message {
  color: #000;                /* hitam = jelas */
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  display: none;              /* tetap none awalnya */
  background: #ffdddd;        /* merah muda lembut */
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 8px;
}

.error-message.show {
  display: block !important;  /* paksa muncul */
}

.btn-submit {
  background-color: #eac300;
  color: #000;
  padding: 18px;
  border-radius: 30px;
  border: 4px solid #000000;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.3s;
}
.btn-submit:hover {
  transform: translateY(-3px);
}
.login-info {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 20px;
  border: 2px solid #000000;
  text-align: center;
}
.login-info p {
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin: 5px 0;
}
.back-to-home {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #000000;
  text-decoration: none;
  font-weight: 900;
  transition: color 0.3s;
}
.back-to-home:hover {
  color: #0034df;
}
/* Admin Dashboard */
.admin-header {
  background-color: #049fff;
  border-bottom: 3px solid #000000;
}
.admin-header .site-name {
  color: #ffffff;
}
.admin-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.admin-welcome {
  color: #ffffff;
  font-weight: 900;
}
.btn-logout {
  background-color: #0034df;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 25px;
  border: 3px solid #ffffff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.3s;
}
.btn-logout:hover {
  transform: scale(1.05);
}
.dashboard-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - 100px);
}
.sidebar {
  background-color: #0d4e90;
  padding: 30px 0;
  border-right: 2px solid #333333;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
}
.sidebar-link {
  color: #ffffff;
  text-decoration: none;
  padding: 20px 30px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  transition: background-color 0.3s;
  border-left: 4px solid transparent;
  cursor: pointer;
}
.sidebar-link:hover,
.sidebar-link.active {
  background-color: #008ada;
  
}
.dashboard-main {
  overflow-y: auto;
  padding: 30px;
}
.dashboard-section {
  display: none;
}
.dashboard-section.active {
  display: block;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid #000000;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
}
.section-note {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #666666;
  margin-top: 10px;
}
.btn-add {
  background-color: #eac300;
  color: #000000;
  border: 3px solid #000000;
  padding: 12px 25px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-add:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.form-container {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 20px;
  border: 3px solid #000000;
  margin-bottom: 30px;
}
.form-container h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 2px solid #000000;
  font-size: 14px;
  font-family: Arial, sans-serif;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0034df;
  box-shadow: 0 0 0 3px rgba(0, 52, 223, 0.1);
}
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}
.btn-cancel {
  background-color: #ffffff;
  color: #000000;
  border: 3px solid #000000;
  padding: 12px 25px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-cancel:hover {
  background-color: #f0f0f0;
  transform: scale(1.02);
}
.data-table {
  background-color: #ffffff;
  border-radius: 15px;
  border: 3px solid #000000;
  overflow: hidden;
  margin-bottom: 30px;
}
.data-table table {
  width: 100%;
  border-collapse: collapse;
}
.data-table thead {
  background-color: #0034df;
  color: #ffffff;
}
.data-table th {
  padding: 15px;
  font-weight: 900;
  font-size: 13px;
  text-align: left;
  border-bottom: 3px solid #000000;
}
.data-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}
.data-table tbody tr:hover {
  background-color: #f5f5f5;
}
.data-table td {
  padding: 12px 15px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.btn-edit,
.btn-delete {
  background-color: #1443ff;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 12px;
  border: 2px solid #000000;
  font-weight: 900;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 5px;
}
.btn-edit:hover,
.btn-delete:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.btn-delete {
  background-color: #ff4444;
}
/* Styling untuk button download Excel dan table responsive */
.btn-primary {
  background-color: #1443ff;
  color: #ffffff;
  border: 3px solid #000000;
  padding: 12px 25px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: #0034df;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.data-table-responsive {
  overflow-x: auto;
  border-radius: 15px;
  border: 3px solid #000000;
}
.student-table-compact {
  width: 100%;
  border-collapse: collapse;
}
.student-table-compact thead {
  background-color: #333333;
  color: #ffffff;
}
.student-table-compact th {
  padding: 12px 15px;
  font-weight: 900;
  font-size: 12px;
  text-align: left;
  border-bottom: 2px solid #000000;
}
.student-table-compact tbody tr {
  border-bottom: 1px solid #e0e0e0;
}
.student-table-compact tbody tr:hover {
  background-color: #f9f9f9;
}
.student-table-compact td {
  padding: 10px 15px;
  font-family: Arial, sans-serif;
  font-size: 12px;
}
.student-data-section {
  background-color: #ffffff;
  border-radius: 15px;
  border: 3px solid #000000;
  padding: 25px;
}
.student-data-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #0034df;
}
.student-data-header h3 {
  font-size: 18px;
  font-weight: 900;
}
.data-actions {
  display: flex;
  gap: 10px;
}
.empty-message {
  text-align: center;
  padding: 40px;
  color: #666666;
  font-family: Arial, sans-serif;
}
/* Image upload section */
.image-upload-section {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 20px;
  border: 3px solid #000000;
  margin-bottom: 30px;
}
.image-upload-section h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 10px;
}
.upload-instruction {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #666666;
  margin-bottom: 20px;
}
.btn-upload-img {
  background-color: #eac300;
  color: #000000;
  border: 3px solid #000000;
  padding: 12px 25px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-upload-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.upload-grid,
.upload-grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin: 25px 0;
}
.upload-slot-gallery img,
.gallery-item img,
#galleryPreview0,
#galleryPreview1,
#galleryPreview2,
#galleryPreview3,
#galleryPreview4,
#galleryPreview5,
#galleryPreview6,
#galleryPreview7,
#galleryPreview8,
#galleryPreview9 {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.upload-slot:hover,
.upload-slot-gallery:hover {
  background-color: #f0f0f0;
}
.image-preview {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center; /* ini bikin crop rapi */
    display: block;
    background-color: #f3f3f3;
}

.upload-placeholder {
  text-align: center;
  color: #999999;
}
.upload-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}
.upload-placeholder p {
  font-family: Arial, sans-serif;
  font-size: 12px;
}
.delete-photo-btn,
.btn-remove-slot {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff4444;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #000000;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.delete-photo-btn:hover,
.btn-remove-slot:hover {
  transform: scale(1.1);
}
.upload-note {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #999999;
  margin-bottom: 20px;
}
.gallery-upload-container {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 20px;
  border: 3px solid #000000;
}
/* Responsive */
@media (max-width: 1024px) {
  .dashboard-container {
    grid-template-columns: 200px 1fr;
  }
  .sidebar-link {
    padding: 15px 20px;
    font-size: 12px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .dashboard-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .hero-content {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .events-content {
    grid-template-columns: 1fr;
  }
  .subscribe-content {
    flex-direction: column;
  }
  .data-table-responsive {
    overflow-x: auto;
  }
  .upload-grid,
  .upload-grid-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .title-large {
    font-size: 48px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .upload-grid,
  .upload-grid-gallery {
    grid-template-columns: 1fr;
  }
}
/* --- FIX RESPONSIVE CARD EKSUL 2 KOLOM & LAYOUT --- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image-box {
    width: 90%;
    margin: 0 auto 30px;
  }
  .hero-title-img {
    max-width: 90%;
    height: auto;
  }
  .hero-description {
    padding: 20px;
  }
  /* Tetap 2 kolom pada tablet & hp besar */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
/* --- Tampilan HP kecil, tetap 2 kolom tapi rapi --- */
@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  /* Hero section responsif */
  .hero-image-box {
    width: 100%;
    padding: 10px;
  }
  .hero-title-img {
    width: 100%;
    height: auto;
  }
  .hero-description p {
    font-size: 14px;
  }
  /* Card ekskul tetap dua kolom tapi rapi */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .service-card {
    padding: 20px 10px;
    overflow: hidden; /* cegah keluar dari card */
    word-wrap: break-word;
  }
  .service-icon {
    font-size: 48px;
    margin-bottom: 10px;
  }
  .service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .service-card p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .btn-detail {
    font-size: 13px;
    padding: 10px 18px;
    border-width: 2px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  img, iframe {
    max-width: 100%;
    height: auto;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* --- Pastikan card tidak bocor di semua resolusi --- */
.service-card * {
  max-width: 100%;
  box-sizing: border-box;
}
/* --- FIX RESPONSIVE TEKS, GRID, DAN HILANGKAN SCROLL HORIZONTAL --- */
/* Hilangkan scroll horizontal global */
html, body {
  overflow-x: hidden !important;
  width: 100%;
}
/* Pastikan semua elemen tidak melewati layar */
* {
  max-width: 100%;
  box-sizing: border-box;
}
/* Responsif untuk judul besar */
.section-title,
.section-title-dark,
.gallery-title {
  word-wrap: break-word;
  text-align: center;
  width: 100%;
  overflow: hidden;
}
/* Gunakan ukuran font yang menyesuaikan layar */
@media (max-width: 992px) {
  .section-title,
  .section-title-dark {
    font-size: 36px;
    line-height: 1.1;
  }
  .gallery-title {
    font-size: 42px;
    line-height: 1.1;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image-box {
    width: 90%;
    margin: 0 auto 30px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
/* Untuk HP kecil: semua font menyesuaikan agar tidak terpotong */
@media (max-width: 600px) {
  .section-title,
  .section-title-dark {
    font-size: 28px;
    letter-spacing: 1px;
  }
  .gallery-title {
    font-size: 32px;
    letter-spacing: 1px;
  }
  .title-white,
  .title-pink {
    display: block;
    text-align: center;
    word-break: break-word;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .service-card {
    padding: 20px 10px;
    overflow: hidden;
  }
  .service-icon {
    font-size: 50px;
  }
  .service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .service-card p {
    font-size: 13px;
    line-height: 1.4;
  }
  .btn-detail {
    font-size: 12px;
    padding: 10px 18px;
    border-width: 2px;
  }
  .hero-title-img,
  img,
  iframe {
    width: 100%;
    height: auto;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  /* Hilangkan semua margin atau padding horizontal besar */
  .container {
    padding: 0 12px;
  }
}
/* Pastikan semua grid rapih dan tidak overflow */
.services-grid,
.gallery-grid,
.schedule-grid,
.footer-content {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
/* === FINAL RESPONSIVE FIX UNTUK GALERI & JADWAL LATIHAN === */
/* --- Galeri Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #000000;
  transition: transform 0.3s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item:hover {
  transform: scale(1.04);
}
/* Tablet */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .gallery-item {
    border-radius: 15px;
  }
}
/* HP kecil (3 kolom dengan ukuran seimbang) */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 100%;
  }
  .gallery-item {
    border-radius: 10px;
    border-width: 2px;
  }
  .gallery-item img {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}
/* --- Jadwal Latihan (Schedule Section) --- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.schedule-card {
  background: linear-gradient(135deg, #b3d1ff 0%, #0034df 100%);
  padding: 25px;
  border-radius: 25px;
  border: 4px solid #000000;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden; /* Supaya isi tidak keluar */
  word-wrap: break-word;
  text-align: center;
  transition: transform 0.3s;
}
.schedule-card:hover {
  transform: translateY(-5px);
}
.schedule-card h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
  color: #000000;
}
.schedule-card p {
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: #000000;
  line-height: 1.5;
}
/* Tablet */
@media (max-width: 992px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .schedule-card {
    padding: 20px;
  }
}
/* HP kecil tetap 2 kolom tapi lebih kecil */
@media (max-width: 600px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .schedule-card {
    padding: 15px;
    border-radius: 18px;
    border-width: 3px;
  }
  .schedule-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }
  .schedule-card p {
    font-size: 13px;
  }
}
/* --- Pastikan tidak ada geser kanan kiri --- */
html, body {
  overflow-x: hidden !important;
}
.container, .services-section, .gallery-section, .schedule-section {
  max-width: 100%;
  overflow: hidden;
}
/* --- HAMBURGER MENU STYLE --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  position: relative;
  z-index: 2001;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #000000;
  border-radius: 5px;
  transition: all 0.4s ease;
}
/* Animasi berubah jadi X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #0034df;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #0034df;
}
/* --- RESPONSIVE NAVBAR MENU (UNTUK HP) --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: right 0.4s ease-in-out;
    z-index: 2000;
    border-left: 3px solid #0034df;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.1);
  }
  .nav-menu.show {
    right: 0;
  }
  .nav-link {
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .nav-link:hover {
    color: #0034df;
    transform: scale(1.1);
  }
  .nav-separator {
    display: none;
  }
  .btn-login {
    display: none;
  }
  /* Saat menu aktif, beri overlay */
  body.menu-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
  }
}
/* === FIX NAVBAR MOBILE MODERN & TIDAK BURAM SEMUA === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  position: relative;
  z-index: 3001; /* pastikan di atas segalanya */
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #000;
  border-radius: 5px;
  transition: all 0.4s ease;
}
/* Animasi jadi X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #0034df;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #0034df;
}
/* === NAV MENU MOBILE === */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 3000; /* lebih tinggi dari overlay */
    border-left: 4px solid #0034df;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.3);
  }
  .nav-menu.show {
    right: 0;
  }
  .nav-link {
    font-size: 18px;
    color: #000;
    text-decoration: none;
    font-weight: 900;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .nav-link:hover {
    color: #0034df;
    transform: scale(1.08);
  }
  .btn-login {
    display: none;
  }
  /* Overlay efek blur lembut hanya di belakang menu */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 2000;
  }
  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}
/* === NAVBAR RESPONSIVE FIX FINAL === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 3001;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 5px;
  transition: all 0.4s ease;
}
/* Animasi X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: #0034df;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: #0034df;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -75%;
    width: 75%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: right 0.4s ease-in-out;
    z-index: 3002; /* lebih tinggi dari overlay */
    border-left: 4px solid #0034df;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.3);
  }
  .nav-menu.show {
    right: 0;
  }
  .nav-link {
    font-size: 18px;
    color: #000;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
  }
  .nav-link:hover {
    transform: scale(1.05);
    color: #0034df;
  }
  .btn-login {
    display: none;
  }
  /* Overlay belakang menu */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 3000;
  }
  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}
/* === NAVBAR RESPONSIVE TANPA EFEK BLUR === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 3001;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 5px;
  transition: all 0.4s ease;
}
/* Animasi tombol jadi X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: #0034df;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: #0034df;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -75%;
    width: 75%;
    height: 100vh;
    background: #fff; /* warna solid putih, tidak transparan */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: right 0.4s ease-in-out;
    z-index: 3002; /* di atas overlay */
    border-left: 4px solid #0034df;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.2);
  }
  .nav-menu.show {
    right: 0;
  }
  .nav-link {
    font-size: 18px;
    color: #000;
    text-decoration: none;
    font-weight: 900;
    transition: transform 0.3s, color 0.3s;
  }
  .nav-link:hover {
    color: #0034df;
    transform: scale(1.05);
  }
  .btn-login {
    display: none;
  }
  /* Overlay hitam polos tanpa blur */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3); /* tanpa blur */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 3000;
  }
  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}
/* Hapus efek blur overlay dari body */
body.menu-open::after {
  content: none !important;
}
/* Animasi tombol jadi X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: #0034df;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: #0034df;
}
/* NAV MENU */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -75%;
    width: 75%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: right 0.4s ease-in-out;
    z-index: 3002; /* di atas overlay */
    border-left: 4px solid #0034df;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.2);
  }
  .nav-menu.show {
    right: 0;
  }
  .nav-link {
    font-size: 18px;
    color: #000;
    text-decoration: none;
    font-weight: 900;
    transition: transform 0.3s, color 0.3s;
  }
  .nav-link:hover {
    color: #0034df;
    transform: scale(1.05);
  }
  .btn-login {
    display: none;
  }
  /* Overlay polos tanpa blur */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 3000;
  }
  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3); /* hanya sedikit gelap, tidak burem */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 3000;
}
.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}
/* === TOMBOL GARIS 3 DI DALAM CONTAINER HEADER === */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    position: absolute;     /* diatur dalam konteks header */
    top: 50%;
    right: 20px;            /* jarak dari kanan dalam container */
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 4000;
    background: none;
    border: none;
    box-shadow: none;
  }
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 3px;
    transition: all 0.4s ease;
  }
  /* Animasi saat aktif jadi X */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #0034df;
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #0034df;
  }
}
/* === MEDIA SOSIAL HORIZONTAL DENGAN WARNA HIJAU === */
.social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.social-icon {
  color: #eac300; /* warna hijau utama */
  transition: transform 0.3s ease, color 0.3s ease;
}
.social-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor; /* penting agar pakai warna dari .social-icon */
}
.social-icon:hover {
  transform: scale(1.15);
  color: #c09600; /* hijau lebih gelap saat hover */
}
/* Ukuran lebih kecil di HP */
@media (max-width: 600px) {
  .social-media {
    gap: 18px;
  }
  .social-icon svg {
    width: 24px;
    height: 24px;
  }
}
/* === RESPONSIVE TEKS JUDUL EKSTRAKURIKULER === */
/* Untuk layar HP kecil */
@media (max-width: 600px) {
  /* Tulisan "EKSTRAKURIKULER KAMI" */
  .section-title,
  .ekskul-title,
  h2.section-title {
    font-size: 22px !important;
    line-height: 1.2;
    text-align: center;
    word-wrap: break-word;
  }
  /* Tulisan "WHERE TALENT MEET ACHIEVEMENT" */
  .hero-subtitle,
  .sub-heading,
  .tagline {
    font-size: 14px !important;
    line-height: 1.4;
    text-align: center;
    padding: 0 15px; /* sedikit jarak kiri-kanan agar tidak nabrak */
    word-wrap: break-word;
  }
}
/* Untuk layar HP menengah (misal 601px – 768px) */
@media (max-width: 768px) and (min-width: 601px) {
  .section-title,
  .ekskul-title,
  h2.section-title {
    font-size: 26px !important;
    line-height: 1.3;
  }
  .hero-subtitle,
  .sub-heading,
  .tagline {
    font-size: 16px !important;
    line-height: 1.4;
  }
}
/* === PERKECIL TEKS "WHERE TALENT MEETS ACHIEVEMENT" UNTUK HP === */
@media (max-width: 600px) {
  .hero-subtitle,
  .sub-heading,
  .tagline {
    font-size: 12px !important; /* ukuran kecil, tidak menabrak layar */
    line-height: 1.3;
    text-align: center;
    padding: 0 20px;
    word-break: break-word;
  }
}
/* Lebih kecil lagi untuk layar sangat kecil (≤400px) */
@media (max-width: 400px) {
  .hero-subtitle,
  .sub-heading,
  .tagline {
    font-size: 10px !important;
    line-height: 1.3;
  }
}
/* === RESPONSIVE DETAIL EKSKUL === */
.detail-header {
  text-align: center;
  margin-bottom: 20px;
}
.detail-header h1 {
  font-size: 36px;
  color: #0034df;
}
.detail-header .detail-icon {
  font-size: 60px;
  display: block;
  margin-bottom: 10px;
}
.detail-header .detail-schedule {
  font-size: 18px;
  color: #333;
  margin-top: 8px;
}
.detail-body {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: justify;
  font-size: 16px;
  line-height: 1.7;
  color: #000;
  padding: 0 15px;
}
.detail-gallery {
  text-align: center;
  margin-top: 40px;
}
.detail-gallery h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #0034df;
}
/* === Grid untuk gambar galeri === */
.gallery-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 kolom */
  gap: 15px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.gallery-images img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-images img:hover {
  transform: scale(1.05);
}
/* Tombol daftar */
.detail-cta {
  text-align: center;
  margin-top: 40px;
}
.btn-register {
  background-color: #eac300;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-register:hover {
  background-color: #eac300;
  transform: scale(1.05);
}
/* === Responsif untuk tablet & HP === */
@media (max-width: 768px) {
  .detail-header h1 {
    font-size: 28px;
  }
  .detail-header .detail-icon {
    font-size: 48px;
  }
  .detail-header .detail-schedule {
    font-size: 16px;
  }
  .detail-body {
    font-size: 14px;
  }
  .gallery-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gallery-images img {
    border-radius: 10px;
  }
}
/* === Responsif untuk HP kecil === */
@media (max-width: 500px) {
  .detail-header h1 {
    font-size: 22px;
  }
  .detail-header .detail-icon {
    font-size: 40px;
  }
  .detail-header .detail-schedule {
    font-size: 14px;
  }
  .detail-body {
    font-size: 13px;
    line-height: 1.6;
  }
  .gallery-images {
    grid-template-columns: repeat(2, 1fr); /* tetap 2 kolom di HP */
    gap: 8px;
  }
  .gallery-images img {
    border-radius: 8px;
  }
  .btn-register {
    font-size: 14px;
    padding: 10px 20px;
  }
}
/* === PERBAIKAN RESPONSIVE DETAIL EKSKUL === */
/* Deskripsi utama */
.detail-body {
  max-width: 850px;
  margin: 0 auto 40px;
  text-align: justify;
  font-size: 16px;
  line-height: 1.7;
  color: #000;
  padding: 0 20px;
}
.detail-body h2 {
  font-size: 22px;
  color: #0034df;
  text-align: center;
  margin-bottom: 15px;
}
/* Tombol daftar */
.detail-cta {
  text-align: center;
  margin-top: 40px;
}
.btn-register {
  background-color: #eac300;
  color: #000;
  border: none;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-register:hover {
  background-color: #c09600;
  transform: scale(1.05);
}
/* === RESPONSIVE UNTUK TABLET === */
@media (max-width: 768px) {
  .detail-body {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 15px;
  }
  .detail-body h2 {
    font-size: 20px;
  }
  .btn-register {
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 25px;
  }
}
/* === RESPONSIVE UNTUK HP === */
@media (max-width: 500px) {
  .detail-body {
    font-size: 13px;
    line-height: 1.5;
    padding: 0 10px;
  }
  .detail-body h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .btn-register {
    font-size: 12px;
    padding: 8px 18px;
    border-radius: 20px;
  }
}
/* === PERBAIKAN CARD DETAIL EKSKUL === */
.gallery-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* tetap 2 kolom */
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
  justify-content: center;
}
.gallery-images img {
  width: 100%;
  height: 180px; /* batasi tinggi agar tidak panjang */
  border-radius: 15px;
  object-fit: cover; /* gambar tidak gepeng, tetap proporsional */
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.gallery-images img:hover {
  transform: scale(1.05);
}
/* === RESPONSIVE UNTUK TABLET === */
@media (max-width: 768px) {
  .gallery-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gallery-images img {
    height: 150px; /* sedikit lebih kecil di tablet */
    border-radius: 10px;
  }
}
/* === RESPONSIVE UNTUK HP === */
@media (max-width: 500px) {
  .gallery-images {
    grid-template-columns: repeat(2, 1fr); /* tetap 2 kolom di HP */
    gap: 8px;
  }
  .gallery-images img {
    height: 120px; /* lebih pendek lagi di HP */
    border-radius: 8px;
  }
}
/* === NAVBAR STYLE === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo a {
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  color: #0034df;
}
/* Menu utama */
.nav-menu {
  display: flex;
  gap: 30px;
}
.nav-menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 20px;
}
.nav-menu a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-menu a:hover {
  color: #eac300;
}
/* Tombol garis tiga (hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}
.menu-toggle span {
  width: 26px;
  height: 3px;
  background-color: #000000;
  border-radius: 3px;
  transition: all 0.3s ease;
}
/* Responsif */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    flex-direction: column;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 25px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }
  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 15px;
  }
}
/* === PERBAIKAN CARD DETAIL EKSKUL AGAR TIDAK TERLALU PANJANG === */
.detail-content {
  background-color: #fff;
  border-radius: 25px;
  padding: 30px;
  border: 4px solid #000;
  box-shadow: 10px 10px 0 #0034df;
  max-width: 900px;
  margin: 30px auto;
  overflow: hidden;
}
/* Header ikon & judul */
.detail-header {
  text-align: center;
  margin-bottom: 20px;
}
.detail-header h1 {
  font-size: 28px;
  font-weight: 900;
  color: #0034df;
  margin-bottom: 10px;
}
.detail-icon {
  font-size: 50px;
  margin-bottom: 10px;
}
/* Deskripsi lebih ringkas */
.detail-body {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  max-height: 300px; /* batasi tinggi deskripsi */
  overflow-y: auto;  /* beri scroll kecil jika isi panjang */
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #0034df #eaeaea;
}
.detail-body::-webkit-scrollbar {
  width: 6px;
}
.detail-body::-webkit-scrollbar-thumb {
  background-color: #0034df;
  border-radius: 4px;
}
/* Galeri lebih proporsional */
.gallery-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 700px;
  margin: 20px auto;
}
.gallery-images img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #000;
  transition: transform 0.3s ease;
}
.gallery-images img:hover {
  transform: scale(1.05);
}
/* Tombol daftar */
.btn-register {
  background-color: #eac300;
  color: #000;
  border: 3px solid #000;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.3s ease;
}
.btn-register:hover {
  transform: translateY(-2px);
}
/* Responsif tablet */
@media (max-width: 768px) {
  .detail-content {
    padding: 20px;
  }
  .detail-header h1 {
    font-size: 22px;
  }
  .detail-body {
    font-size: 13px;
    max-height: 250px;
  }
  .gallery-images img {
    height: 110px;
  }
}
/* Responsif HP kecil */
@media (max-width: 500px) {
  .detail-content {
    padding: 15px;
  }
  .detail-header h1 {
    font-size: 18px;
  }
  .detail-body {
    font-size: 12px;
    max-height: 220px;
  }
  .gallery-images {
    gap: 8px;
  }
  .gallery-images img {
    height: 100px;
  }
}


.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.edit-modal-content {
    background: white;
    padding: 20px;
    width: 350px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}


/* ================================
   TOMBOL CETAK PDF (FINAL)
   ================================ */
.student-data-header .data-actions .btn-print {
    background: #3b82f6 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 3px 10px rgba(59,130,246,0.3) !important;
    transition: 0.25s ease !important;
}

.student-data-header .data-actions .btn-print:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 6px 14px rgba(29,78,216,0.4) !important;
    transform: translateY(-2px) !important;
}

.student-data-header .data-actions .btn-print:active {
    transform: scale(0.96) !important;
}


.emoji-input-wrapper {
    display: flex;
    gap: 10px;
}

.emoji-btn {
    padding: 6px 10px;
    font-size: 20px;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #aaa;
    border-radius: 6px;
}

.emoji-picker {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.emoji-search {
    width: 100%;
    padding: 5px 10px;
    margin-bottom: 10px;
    border: 1px solid #aaa;
    border-radius: 6px;
}

.emoji-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 5px;
}

.emoji-item {
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    border-radius: 6px;
}

.emoji-item:hover {
    background: #eef;
}



/* ------------------ */



@media (max-width: 600px) {
  .event-item {
    width: 220px; /* menyesuaikan layar kecil */
  }
}

.event-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.event-indicators .dot {
  width: 12px;
  height: 12px;
  background-color: #fff;
  border: 3px solid #000;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.event-indicators .dot.active {
  background-color: #eac300;
  transform: scale(1.3);
}

/* === TOMBOL SLIDER EVENT === */
.event-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #eac300;
  border: 3px solid #000;
  padding: 10px 15px;
  border-radius: 100%;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  z-index: 10;
  transition: 0.2s;
}

.event-nav:hover {
  transform: translateY(-50%) scale(1.1);
}

.event-nav.prev { left: -15px; }
.event-nav.next { right: -15px; }

/* === GOOEY NAV STYLE (SLIME BUBBLE STYLE) === */
.gooey-nav {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 10px 16px;
  border-radius: 40px;
  background: #ffffff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  overflow: hidden;
  z-index: 10;
}

.gooey-nav a {
  position: relative;
  padding: 10px 22px;
  font-weight: 900;
  text-decoration: none;
  font-size: 15px;
  color: #000;
  z-index: 3;
  transition: 0.15s;
  cursor: pointer;
  text-shadow: 1px 1px 0px #eac300;
}

.gooey-nav a:hover {
  transform: scale(1.05);
}

.gooey-nav a.active {
  color: #000;
  text-shadow: none;
}

.gooey-highlight {
  position: absolute;
  background: #eac300;
  border: 3px solid #000;
  border-radius: 80px;
  width: 100px;
  height: 40px;
  transition: 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  pointer-events: none;
  box-shadow: 4px 4px 0 #0034df; /* BIRU */
}

/* BUBBLE SLIME EXPLOSION */
.gooey-nav .bubble {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  animation: slimePop 0.7s ease-out forwards;
  border: 2px solid #000;
}

@keyframes slimePop {
  0% { transform: scale(0.2); opacity: 1; }
  60% { transform: scale(1.5) translateY(-20px); opacity: 0.9; }
  100% { transform: scale(0.3) translateY(-50px); opacity: 0; }
}

/* MOBILE RESPONSIVE NAV */
@media (max-width: 768px) {
  .gooey-nav {
    gap: 12px;
    padding: 10px 12px;
  }
  .gooey-nav a {
    padding: 8px 14px;
    font-size: 13px;
  }
  .gooey-highlight {
    border-width: 2px;
  }
}
.gooey-nav a:hover {
  text-shadow: 1px 1px 0px #eac300;
}

/* ==== RESPONSIVE NAV ==== */

/* Default: HP memakai nav lama, Gooey disembunyikan */
.gooey-nav {
  display: none;
}
#navMenu {
  display: flex;
}

/* Laptop / PC */
@media (min-width: 1024px) {
  .gooey-nav {
    display: flex !important;
  }
  #navMenu, .menu-toggle, .menu-overlay {
    display: none !important;
  }
  .btn-login {
    display: inline-block;
  }
}

/* Mobile: tombol login ikut masuk menu */
@media (max-width: 1023px) {
  .btn-login {
    display: none;
  }
}
/* ==== RESPONSIVE NAV ==== */

/* Default: HP memakai nav lama, Gooey disembunyikan */
.gooey-nav {
  display: none;
}
#navMenu {
  display: flex;
}

/* Laptop / PC */
@media (min-width: 1024px) {
  .gooey-nav {
    display: flex !important;
  }
  #navMenu, .menu-toggle, .menu-overlay {
    display: none !important;
  }
  .btn-login {
    display: inline-block;
  }
}

/* Mobile: tombol login ikut menu */
@media (max-width: 1023px) {
  .btn-login {
    display: none;
  }
}


.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

#ekskulList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* From Uiverse.io by imtausef */ 
.parent {
  width: 300px;
  padding: 20px;
  perspective: 1000px;
}

.card {
  padding-top: 50px;
  /* border-radius: 10px; */
  border: 3px solid #141414;
  transform-style: preserve-3d;
  background: linear-gradient(135deg, #0000 18.75%, #f3f3f3 0 31.25%, #0000 0),
    repeating-linear-gradient(45deg, #f3f3f3 -6.25% 6.25%, #141414 0 18.75%);
  background-size: 60px 60px;
  background-position:
    0 0,
    0 0;
  background-color: #141414;
  width: 100%;
  box-shadow: rgba(142, 142, 142, 0.3) 0px 30px 30px -10px;
  transition: all 0.5s ease-in-out;
  border-radius: 20px;
}

.card:hover {
  background-position:
    -100px 100px,
    -100px 100px;
  transform: rotate3d(0.5, 1, 0, 30deg);
}

.content-box {
  background: #8ed500;
  /* border-radius: 10px 100px 10px 10px; */
  transition: all 0.5s ease-in-out;
  padding: 60px 25px 25px 25px;
  transform-style: preserve-3d;
  border-radius: 20px;
}

.content-box .card-title {
  display: inline-block;
  color: #141414;
  font-size: 25px;
  font-weight: 900;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 50px);
}

.content-box .card-title:hover {
  transform: translate3d(0px, 0px, 60px);
}

.content-box .card-content {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #141414;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 30px);
}

.content-box .card-content:hover {
  transform: translate3d(0px, 0px, 60px);
}

.content-box .see-more {
  cursor: pointer;
  margin-top: 1rem;
  display: inline-block;
  font-weight: 900;
  font-size: 9px;
  text-transform: uppercase;
  color: #8ed500;
  /* border-radius: 5px; */
  background: #141414;
  padding: 0.5rem 0.7rem;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 20px);
}

.content-box .see-more:hover {
  transform: translate3d(0px, 0px, 60px);
}

.date-box {
  position: absolute;
  top: 30px;
  right: 30px;
  height: 60px;
  width: 60px;
  background: #141414;
  border: 2px solid #8ed500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 17px 10px -10px;
}

.date-box .date-icon {
  font-size: 28px;
}


.date-box span {
  display: block;
  text-align: center;
}

.date-box .month {
  color: #8ed500;
  font-size: 9px;
  font-weight: 700;
}

.date-box .date {
  font-size: 20px;
  font-weight: 900;
  color: #8ed500;
}

/* === FIX LOGO RESPONSIVE MOBILE === */
@media (max-width: 768px) {
    .school-logo {
        width: 200px !important;   /* ukuran aman untuk HP */
        height: auto !important;
    }

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

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* HP ukuran kecil (420px ke bawah) */
@media (max-width: 420px) {
    .school-logo {
        width: 200px !important;    /* makin kecil biar aman */
    }
}

/* === CENTER GOOEY NAVBAR DI DESKTOP === */
@media (min-width: 769px) {
    .header-content {
        display: flex;
        align-items: center;
        justify-content: center; /* Tengah semua */
        gap: px;
    }

    .gooey-nav {
        position: relative;
        display: flex;
        gap: 25px;
        margin: 0 auto;          /* Biar benar-benar ketengah */
        transform: translateX(0);
    }

    .menu-toggle {
        margin-left: auto; /* tetap di kanan */
    }

    .logo-section {
        margin-right: auto; /* tetap di kiri */
    }
}





/* #eventsList {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px;
}

#eventsList .event-item {
    flex: 0 0 auto;
    width: 320px; /* Sesuaikan lebar card */
    /* scroll-snap-align: center;
} */ 

.event-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.event-indicators .dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.event-indicators .dot.active {
  background: #eac300;
  transform: scale(1.3);
}

/* === FIX EVENT SLIDER BUTTONS === */
.event-btn {
  background: #eac300;
  color: #000;
  font-weight: 900;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border: 4px solid #000;
  border-radius: 15px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

#prevEvent {
  left: -20px;
}

#nextEvent {
  right: -20px;
}

.event-btn:hover {
  background: #1443ff;
  color: #fff;
}
 
.btn-delete, .btn-upload-img {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000 !important;
    background-color: #f7ff0a !important;
    border: 2px solid black !important;
    padding: 6px 12px !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

/* Tombol EDIT = Biru */
.btn-edit {
    background-color: #0096FF; /* Biru terang */
    color: white;
    border: 2px solid black;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* Tombol HAPUS = Merah */
.btn-delete {
    background-color: #FF4747; /* Merah */
    color: white;
    border: 2px solid black;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* Hover Effect (biar keren) */
.btn-edit:hover {
    background-color: #0077CC;
}

.btn-delete:hover {
    background-color: #D93636;
}


/* === FORCE TAMPIL KARTU UPLOAD GALERI ADMIN === */

.gallery-upload-container {
  margin-top: 20px;
}

/* Grid 10 slot */
.upload-grid-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

/* Kotak masing-masing foto */
.upload-slot-gallery {
  position: relative;
  border: 2px dashed #000;
  border-radius: 12px;
  padding: 12px;
  min-height: 130px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdfdfd;
}

/* Isi di dalam slot ketika belum ada foto */
.upload-placeholder {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-align: center;
}

.upload-placeholder .upload-icon {
  font-size: 28px;
}

/* Preview foto */
.upload-slot-gallery .image-preview {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

/* Tombol X di pojok */
.btn-remove-slot {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: none;
  font-weight: 900;
  cursor: pointer;
  background: #ff4d4f;
  color: #fff;
}
