/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #0d0d1f;
  color: #e1e1f1;
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ===== BACKGROUND DECORATION ===== */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0ea5e9, transparent);
  top: 30%;
  right: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #f59e0b, transparent);
  bottom: 10%;
  left: 20%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ===== LAYOUT WRAPPER ===== */
.hero-section,
.section,
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

/* Profile Photo */
.profile-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
}

.profile-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #0ea5e9, #f59e0b);
  animation: spin 4s linear infinite;
  z-index: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.my-photo {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid #0d0d1f;
  display: block;
  margin: 5px;
}

.profile-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  z-index: 2;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0d0d1f;
}

.profile-badge i {
  font-size: 0.85rem;
  color: white;
}

/* Hero Text */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #a78bfa;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-tag i {
  font-size: 0.9rem;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.highlight {
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  color: #8787a3;
  font-size: 0.95rem;
  font-style: italic;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.7rem;
  color: #8787a3;
  text-align: center;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 2rem 1.25rem;
  margin-bottom: 0.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.section-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon i {
  color: white;
  font-size: 1rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ===== ABOUT SECTION ===== */
.about-text {
  color: #a0a0c0;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(14,165,233,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
}

.feature-icon i {
  font-size: 1.3rem;
  color: #a78bfa;
}

.feature-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #e1e1f1;
}

.feature-card p {
  font-size: 0.72rem;
  color: #8787a3;
  line-height: 1.4;
}

/* ===== PROGRAMS SECTION ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.program-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.1rem 0.85rem;
  position: relative;
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.4);
}

.program-featured {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(14,165,233,0.1));
  border-color: rgba(124, 58, 237, 0.4);
}

.program-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.program-level {
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.program-card h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e1e1f1;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.program-card > p {
  font-size: 0.7rem;
  color: #8787a3;
  margin-bottom: 0.75rem;
}

.program-subjects {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.program-subjects li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #a0a0c0;
}

.program-subjects li i {
  color: #7c3aed;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ===== SCHEDULE SECTION ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.schedule-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.schedule-card:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-3px);
}

.schedule-day {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e1e1f1;
  margin-bottom: 0.5rem;
}

.schedule-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #0ea5e9;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.schedule-time i {
  font-size: 0.9rem;
}

.schedule-desc {
  font-size: 0.7rem;
  color: #8787a3;
}

/* ===== LOCATION SECTION ===== */
.location-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.location-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.location-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(239,68,68,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon i {
  font-size: 1.5rem;
  color: #f59e0b;
}

.location-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.location-info p {
  font-size: 0.82rem;
  color: #a0a0c0;
  line-height: 1.5;
}

.location-note {
  font-size: 0.75rem !important;
  color: #8787a3 !important;
  font-style: italic;
}

/* ===== LINKS SECTION ===== */
.links-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.1rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.link-card:hover {
  transform: translateX(4px);
}

.link-whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.4);
}

.link-instagram:hover {
  background: rgba(225, 48, 108, 0.1);
  border-color: rgba(225, 48, 108, 0.4);
}

.link-daftar:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.4);
}

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

.link-whatsapp .link-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.link-instagram .link-icon {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.link-daftar .link-icon {
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
}

.link-icon i {
  color: white;
  font-size: 1.3rem;
}

.link-info {
  flex: 1;
}

.link-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e1e1f1;
}

.link-sub {
  font-size: 0.75rem;
  color: #8787a3;
  margin-top: 0.1rem;
}

.link-action {
  color: #8787a3;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.link-card:hover .link-action {
  color: #e1e1f1;
  transform: translateX(3px);
}

/* ===== TESTIMONIAL SLIDESHOW ===== */
.testimonial-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.testimonial-card {
  min-width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

/* Dot navigation for testimonials */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.testimonial-dot.active {
  background: #f59e0b;
  transform: scale(1.3);
}

.testimonial-dot:hover {
  background: rgba(245,158,11,0.6);
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

.testimonial-stars i {
  color: #f59e0b;
  font-size: 0.85rem;
}

.testimonial-text {
  font-size: 0.8rem;
  color: #a0a0c0;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e1e1f1;
}

.author-role {
  font-size: 0.7rem;
  color: #8787a3;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.footer-logo {
  width: 2.5rem;
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.footer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e1e1f1;
}

.footer-tagline {
  font-size: 0.78rem;
  color: #8787a3;
  font-style: italic;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  color: #8787a3;
}

.social-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.5);
  color: #a78bfa;
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.72rem;
  color: #8787a3;
}

/* ===== TOAST ===== */
#toast {
  width: max-content;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

.toast-container {
  background-color: white;
  color: #0f0f25;
  padding: 0.75rem 1.25rem;
  margin-top: 1rem;
  border-radius: 1rem;
  animation: muncul 300ms ease-in-out;
  font-size: 0.85rem;
  font-weight: 500;
}

.toast-gone {
  animation: hilang 1s ease-in-out 1s forwards;
}

@keyframes muncul {
  from {
    opacity: 0;
    transform: translateY(-4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hilang {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
  h1 {
    font-size: 1.75rem;
  }

  /* Hero */
  .hero-section {
    padding-top: 2.5rem;
  }

  .hero-stats {
    gap: 0.5rem;
    padding: 0.75rem 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-number {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-divider {
    display: none;
  }

  /* About */
  .about-features {
    grid-template-columns: 1fr;
  }

  /* Programs */
  .programs-grid {
    grid-template-columns: 1fr;
  }

  /* Schedule */
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  /* Section padding — lebih besar di mobile agar tidak terlalu rapat */
  .section {
    padding: 1.75rem 1rem;
    margin-bottom: 0.25rem;
  }

  /* Section header */
  .section-header h2 {
    font-size: 1.1rem;
  }

  /* Back to top button */
  #back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  /* Very small screens */
  .hero-stats {
    gap: 0.4rem;
  }

  .stat-item {
    min-width: 60px;
  }

  .profile-ring {
    width: 130px;
    height: 130px;
  }

  .my-photo {
    width: 110px;
    height: 110px;
  }
}

@media (min-width: 521px) and (max-width: 640px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== GALLERY SLIDESHOW ===== */
.gallery-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  width: 100%;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

/* Setiap "slide" menampilkan 2 gambar berdampingan */
.gallery-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  min-width: 100%;
  padding: 0 0.1rem;
}

/* Jika hanya 1 gambar dalam slide, tampilkan full width */
.gallery-slide.single {
  grid-template-columns: 1fr;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  /* Fixed aspect ratio — semua gambar sama tingginya */
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: border-color 0.3s ease;
  /* Pastikan tidak ada yang bisa mengubah ukuran */
  flex-shrink: 0;
  min-width: 0;
}

.gallery-item:hover {
  border-color: rgba(124,58,237,0.4);
}

.gallery-item img {
  /* Paksa gambar mengisi seluruh container dengan crop tengah */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: white;
  font-size: 0.72rem;
  padding: 1rem 0.6rem 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-caption {
  opacity: 1;
}

/* Dot navigation */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-dot.active {
  background: #a78bfa;
  transform: scale(1.3);
}

.gallery-dot:hover {
  background: rgba(167,139,250,0.6);
}

.gallery-empty {
  text-align: center;
  padding: 2rem;
  color: #8787a3;
  font-size: 0.85rem;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 16px;
}

.gallery-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== ADMIN LINK ===== */
.admin-link {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
  margin-top: 0.25rem;
}

.admin-link:hover {
  color: rgba(255,255,255,0.4);
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  border: none;
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.6);
}

#back-to-top:active {
  transform: translateY(0);
}

/* ===== EVENTS / PROGRAM LAIN ===== */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.event-card:hover {
  border-color: rgba(124,58,237,0.3);
}

.event-card-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.event-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e1e1f1;
  line-height: 1.3;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(124,58,237,0.2);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #8787a3;
  margin-bottom: 0.6rem;
}

.event-meta i {
  font-size: 0.85rem;
}

.event-description {
  font-size: 0.85rem;
  color: #a0a0c0;
  line-height: 1.6;
}

/* Event photo grid */
.event-photos {
  padding: 1rem 1.25rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.event-photo-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.event-photo-item:hover {
  transform: scale(1.02);
}

.event-photo-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.event-photo-item:hover img {
  transform: scale(1.05);
}

.event-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: white;
  font-size: 0.7rem;
  padding: 1rem 0.6rem 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-photo-item:hover .event-photo-caption {
  opacity: 1;
}

.event-empty {
  text-align: center;
  padding: 1.5rem;
  color: #8787a3;
  font-size: 0.82rem;
  font-style: italic;
}

.events-empty {
  text-align: center;
  padding: 2rem;
  color: #8787a3;
  font-size: 0.85rem;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 16px;
}

.events-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}
