

.container, main {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}


/* ================== Reset & Base ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #121212;
  color: #f0f0f0;
}

/* ================== Header ======================== */
#address {
  font-size: clamp(0.6rem, 3vw, 1rem);
  white-space: nowrap;
  text-align: center;
  color: rgb(53, 201, 53);
  display: flex;
  justify-self: center;
  margin-top: 1rem;
}

/* =================== Footer ======================= */
footer {
  background-color: #222;
  color: #eee;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-section h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-section p,
.footer-section a {
  margin: 0.25rem 0;
  color: #ccc;
  text-decoration: none;
}

.footer-section.social a {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.footer-section a:hover {
  color: #fff;
  text-decoration: underline;

}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
}



/* ================== Hero Section ================== */
.hero {
  
  text-align: center;
  padding: 0rem 1rem 3rem 1rem;
  background-color: #1a1a1a;
}

.hero-img {
  max-width: 1080px;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-bottom: 4px solid #ff5252;
  margin-bottom: 1rem;
  
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero .btn {
  display: inline-block;
  margin: 0.5rem;
}


/* ================== Button ================== */
.btn {
  background-color: #ff5252;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #ff7979;
}

/* ================== Services Section ================== */
.services {
  background-color: #181818;
  padding: 4rem 2rem;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #ff5252;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Force 2-column layout on desktop */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background-color: #262626;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.5;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.service-card.active {
  border: 2px solid #6a1b9a;
  box-shadow: 0 0 12px rgba(106, 27, 154, 0.5);
  transform: translateY(-5px);
  transition: 0.3s ease;
}

.service-icon {
  font-size: 2.5rem;
  color: #ff5252;
  margin-bottom: 1rem;
}

/* ================== Service Details Section ================== */
.service-details {
  max-width: 800px;
  margin: 3rem auto 0;
  background-color: #262626;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: none;
  animation: fadeInDetails 0.3s ease-in-out;
}

/* ================== Trainers Section ================== */
.trainers {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid #ccc;
}

.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.trainer-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 4px solid purple;
}

.trainer-card:hover {
  transform: translateY(-5px);
}

.trainer-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.trainer-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.1rem;
  color: #333;
}

.trainer-card p {
  font-size: 0.95rem;
  color: #666;
}

/* ================== Classes Section ================== */
.classes {
  margin-top: 2rem;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.class-card {
  background: #f0f0f0;
  border-left: 5px solid #6a1b9a;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.class-card:hover {
  transform: translateY(-4px);
}

.class-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.class-card p {
  font-size: 0.95rem;
  color: #666;
}

.class-list {
  margin-top: 1rem;
  padding-left: 1rem;
  list-style: none;
}

.class-list li {
  font-size: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
}

#classImg {
  width: 100%;                 /* Scale to container width */
  max-width: 300px;            /* Optional: limit how big it can get */
  height: auto;                /* Maintain aspect ratio */
  display: block;              /* Removes extra space below image */
  margin: 0 auto 1rem auto;    /* Center image and add space below */
  border-radius: 0.75rem;      /* Rounded corners */
  object-fit: cover;           /* Ensures good cropping if needed */
  box-shadow: 0 0 10px rgba(0,0,0,0.15); /* Subtle shadow */
}

/* ============= Nutrition Section ===========*/
#nutritionImg {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.nutrition-card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.nutrition-card:hover {
  transform: scale(1.03);
}

.nutrition-card h3 {
    color: #111;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.nutrition-card p {
  font-size: 0.95rem;
  color: #555;
}

/* ======= Events & Challenges Section ======= */
.event {
  margin-top: 2rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.event-card {
  background-color: #2c2c2c;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.event-card h3 {
  color: #ff5252;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.event-card p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.4;
}

.event-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

/* =================== Gallery ======================= */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

#galleryModal .modal-content {
  background-color: #4A314D; /* dark background */
  color: white; /* optional: makes text readable */
  position: relative;
}


.gallery-img {
  width: 100%;
  max-width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.gallery-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  z-index: 9999;
}

@media screen and (max-width: 600px) {
  .gallery-close {
    font-size: 3rem;
    right: 15px;
    top: 5px;
  }
}

#galleryModal .modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}



/* =============== Lightbox =============== */
#lightboxModal img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1001;
  padding: 0 15px;
}

#prevBtn {
  left: 10px;
}

#nextBtn {
  right: 10px;
}

.lightbox-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== Mobile: Put buttons under image ========== */
@media (max-width: 768px) {
  #lightboxModal {
    display: none;
    justify-content: center;
    align-items: center;
  }

  #lightboxModal .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: auto;
    max-width: 90%;
    width: auto;
    background: transparent;
  }

  .lightbox-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: 70vh;
    background-color: #000;
  }

  #lightboxModal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .lightbox-nav {
    position: static;
    margin: 10px 5px 0;
    font-size: 2.5rem;
  }

  #prevBtn,
  #nextBtn {
    display: inline-block;
  }
}

.lightbox-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px; /* Adjust this value as needed */
}


/* ================== Modal ================== */
.modal {
  position: fixed;
  top: 1px;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none; /* gets set to flex in JS */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: visible;
}

.modal-content {
  background-color: #fff;
  color: #111;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: sticky;
  animation: fadeInModal 0.3s ease;
  overflow-y: auto;
  
  margin-top: 100px;
  margin-bottom: 50px;
}

#modalImg {
  width: 100%;
  max-width: 200px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* =========== Mobile modal ==================== */
@media screen and (max-width: 600px) {
  .modal-content {
    animation: slideUp 0.5s ease-out;
    bottom: 10%;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* ================== Utilities & Animations ================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMoveUp 0.5s ease-out forwards;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #444;
  cursor: pointer;
}

@keyframes fadeInMoveUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDetails {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
