body {
  margin: 0;
  font-family: Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
  background: #fff;
  color: #000;
}

body.dark {
  background: #121212;
  color: #eee;
}

.sticky-header {
  position: sticky;
  top: 0;
  background: #f4f4f4;
  padding: 1rem 5.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.dark .sticky-header  {
  background: #1f1f1f;
}
body.dark h1 {color: rgb(255, 255, 255);}

.theme-toggle input[type="checkbox"] {
  appearance: none;
  width: 40px;
  height: 20px;
  background: #ccc;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  outline: none;
  vertical-align: middle;
  margin: 0 5px;
  transition: background 0.3s;
}

.theme-toggle input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 1px;
  left: 1px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.theme-toggle input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}

.filter-buttons button {
  flex: 0 1 auto;
  padding: 0.5rem 1rem;
  background: #E88717;
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1rem;
}

.filter-buttons button:hover {
  background: #854d0d;
}

@media (max-width: 600px) {
  .filter-buttons {
    padding: 1rem 0.5rem;
    gap: 0.5rem;
  }

  .filter-buttons button {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 726px) {
  .sticky-header {
    padding: 1rem 2rem;
  }
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.gallery-card {
  width: 250px;
  /* height: 320px; */
  background: #f5932356;
  border-radius: 16px 42px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-weight: 900;
  text-align: center;
  border: dotted 2.5px #E88717;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-card .caption {
  height: 30%;
  padding: 1rem;
  font-size: 1rem;
  text-align: center;
  color: #333;
  background-color: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark .gallery-card {
  background: #1f1f1f;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

body.dark .gallery-card .caption {
  color: #eee;
  background-color: #1f1f1f;
}

body.dark .gallery-card:hover {
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.1);
}

.gallery-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

@keyframes zoom-in {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoom-out {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

.gallery-card.zoom-in {
  animation: zoom-in 0.5s forwards;
}

.gallery-card.zoom-out {
  animation: zoom-out 0.5s forwards;
}

.gallery-card.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

.gallery-card.fade-in {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  justify-content: center;
  align-items: center;
  z-index: 1001;
  overflow: hidden;
  animation: fadeInOverlay 0.5s ease forwards;
  padding: 1rem; 
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(30px);
  opacity: 0;
  animation: slideFadeIn 0.6s ease forwards;

  @media (max-width: 768px) {
    flex-direction: column;
  }
}

@keyframes slideFadeIn {
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.lightbox-img {
  max-width: 60%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;

  @media (max-width: 768px) {
    max-width: 100%;
    max-height: 50vh;
  }
}

.lightbox-img:hover {
  transform: scale(1.03);
}

.lightbox-description {
  width: 100%;
  max-width: 450px;
  padding: 20px;
  color: #fff;
  font-size: 1rem;
  text-align: justify;
  overflow-y: auto;
  animation: fadeInText 1s ease forwards;

  @media (max-width: 768px) {
    max-width: 100%;
    padding: 15px;
    font-size: 0.95rem;
    max-height: 40vh;
  }

  @media (max-width: 480px) {
    font-size: 0.9rem;
  }
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lightbox .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 1002;
}

.lightbox .close:hover {
  transform: scale(1.2) rotate(90deg);
  color: #f00;
}

.lightbox .nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1000;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;

  @media (max-width: 480px) {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }
}

.lightbox .nav-button:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.lightbox .prev {
  left: 15px;
}

.lightbox .next {
  right: 15px;
}


/* spotlights css starts here */
.karate-spotlight-carousel {
  background: #f9f9f9;
  padding: 60px 20px;
  position: relative;
  font-family: Arial, sans-serif;
}

.karate-spotlight-carousel .section-title {
  text-align: center;
  font-size: 2rem;
  color: #222;
  margin-bottom: 40px;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

.spotlight-card {
  flex: 0 0 100%;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.spotlight-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.spotlight-card h4 {
  font-size: 1.2rem;
  margin: 10px 0 5px;
  color: #333;
}

.spotlight-card .belt-rank {
  display: inline-block;
  background-color: #04ACEC;
  color: #fff;
  padding: 5px 14px;
  font-size: 0.9rem;
  border-radius: 30px;
  margin-bottom: 10px;
}

.spotlight-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #E88717;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}
.carousel-btn:hover {
  background-color: #04ACEC;
}
.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

@media (min-width: 768px) {
  .spotlight-card {
    flex: 0 0 calc(100% / 2);
  }
}

@media (min-width: 1024px) {
  .spotlight-card {
    flex: 0 0 calc(100% / 3);
  }
}
