/* ===== Base Styles ===== */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: "Raleway", sans-serif;
}

.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Typography ===== */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.bold {
  font-weight: bold;
}

/* ===== Text Box Styles ===== */
.text-box {
  background: rgba(0, 0, 0, 0.65);
  color: white;
  display: inline-block;
  border-radius: 10px;
  /* max-width: 800px; */
  margin: 0 auto;
  padding: 2rem;
}

/* ===== Home/Navigation ===== */
.top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgb(0, 0, 0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.home-container {
  position: relative;
  display: flex;
  justify-content: center;
  /* Center children horizontally */
  align-items: center;
  padding: 10px 20px;
  width: 100%;
  height: 80px;
  background-color: #01562b;
}

.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* max-width: 200px; */
  height: auto;
  min-width: 100px;
}

.logo-container img {
  height: auto;
  width: 100%;
  max-height: 60px;
  object-fit: contain;
}

/* Hamburger menu - positioned absolutely on the right */
#menuToggle {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: none;
  /* Hidden by default, shown on mobile */
}

#menuToggle:hover #menuIcon {
  color: #000000;
}

#menuIcon {
  color: white;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: #f8f8f8;
  /* padding: 10px 0; */
  border-top: 1px solid #e7e7e7;
}

.nav-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 15px;
}

.button:hover {
  color: #3a3a3a;;
  background-color: #d4af37;
}

/* ===== Hero Section ===== */
.hero-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  /* text-align: center; */
  padding: 2rem;
  margin-top: 100px;
}

.bgimg-1 {
  background-position: center;
  background-size: cover;
  background-image: url("../img/facility.png");
  min-height: 100%;
  width: 100%;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  height: 100%;
  width: 250px;
  transition: left 0.3s ease;
  z-index: 1000;
  background: #000;
  overflow-y: auto;
}

.sidebar.open {
  left: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-overlay.active {
  display: block;
}

/* ===== Userguide Styles ===== */
.instruction-title {
  color: #4caf50;
  text-align: center;
  border-bottom: 2px solid #388e3c;
  padding-bottom: 12px;
  font-weight: 600;
}

.instruction-step-title {
  color: #4caf50;
  margin: 10px 0 0 0;
  font-weight: 500;
  font-size: 1.2em;
}

.instruction-step {
  background-color: #1e1e1e;
  padding: 2px 5px;
  border-left: 4px solid #388e3c;
  margin-bottom: 5px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.instruction-step-important {
  background-color: #332d00;
  border-left: 4px solid #ffc107;
  padding: 2px 5px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.instruction-list {
  padding-left: 22px;
  margin: 0 0 10px 0;
  text-align: left;
}

.instruction-list-item {
  padding-left: 5px;
}

.instruction-list-item::marker {
  color: #4caf50;
}

.instruction-note {
  font-style: italic;
  color: #9e9e9e;
  margin-top: 25px;
  text-align: center;
  font-size: 0.95em;
}

/* FAQ Styles */
.faq-container {
  margin: 0 auto;
  /* padding: 25px; */
  text-align: left;;
}

.faq-title {
  color: #4caf50;
  text-align: left;
  border-bottom: 2px solid #388e3c;
  padding-bottom: 12px;
  margin-bottom: 30px;
  font-weight: 600;
}

.faq-item {
  background-color: #1e1e1e;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  border-left: 4px solid #388e3c;
}

.faq-question {
  color: #4caf50;
  font-weight: 500;
  margin: 0 0 10px 0;
  font-size: 1.1em;
}

.faq-answer {
  margin: 0;
  padding-left: 15px;
  border-left: 2px solid #388e3c;
}

.faq-note {
  font-style: italic;
  color: #9e9e9e;
  margin-top: 30px;
  text-align: center;
  font-size: 0.95em;
}

/* Highlight important FAQ items */
/* .faq-important {
  border-left: 4px solid #ffc107;
  background-color: #332d00;
}

.faq-important .faq-question {
  color: #ffc107;
} */

/* ===== Footer Styles ===== */
footer {
  padding: 1rem .5rem;
  background-color: #01562b;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.social-icons {
  margin-bottom: 0.5rem;
}

.social-icons a {
  margin: 0 0.5rem;
  color: white;
  font-size: 1.25rem;
}

.copyright {
  margin-top: .25rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== Membership Styles =====  */
.benefits {
  text-align: left;
  margin: 20px 0;
  padding: 10px;
  /* background: #eef7ee; */
  border-left: 5px solid #008000;
}

/* ===== Lesson Styles =====  */
.lesson-benefits {
  text-align: left;
  margin: 20px 0;
  padding: 10px;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 18px;
  color: white;
  background-color: #008000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #006400;
}

.full-width-button {
  width: 100%
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
  .nav-container {
    display: none;
  }

  #menuToggle {
    display: block;
  }

  .hero-section {
    margin-top: 80px;
  }

  .logo-container img {
    height: 50px;
  }
}

@media (max-width: 768px) {
  .logo-container img {
    height: 60px;
  }

  .text-box {
    padding: 1rem;
    /* width: 90%; */
  }
}

/* ===== Membership Form Styles ===== */
.form-section {
  background-color: #1e1e1e;
  padding: 4rem 2rem;
  color: white;
}

.form-section h2 {
  color: #4caf50;
  margin-bottom: 1rem;
  text-align: center;
}

.form-section p {
  text-align: center;
  margin-bottom: 2rem;
  color: #ccc;
}

.membership-form {
  max-width: 800px;
  margin: 0 auto;
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.half {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4caf50;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 5px;
  font-size: 1rem;
  font-family: "Raleway", sans-serif;
  color: white;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #d4af37;
}

.checkbox-group {
  display: flex;
  gap: 1rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
  color: #ccc;
}

.checkbox-group input {
  margin-right: 0.5rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Updated cta-button to match your gold hover effect */
.form-section .cta-button {
  margin-top: 1rem;
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  background-color: #01562b;
  color: white;
  border: none;
  transition: background-color 0.3s ease;
}

.form-section .cta-button:hover {
  background-color: #d4af37;
  color: #3a3a3a;
}

.status-message {
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
  display: none;
}

.status-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Ensure checkboxes align with your theme */
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 15px;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alert messages */
.alert {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert i {
  margin-right: 8px;
}

/* Gallery Styles */
.gallery-container {
  padding: 2rem;
  margin-top: 100px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-text-box {
  background: rgba(0, 0, 0, 0.65);
  color: white;
  border-radius: 10px;
  padding: 2rem;
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
}

.gallery-title {
  text-align: center;
  color: white;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-section-title {
  color: #d4af37;
  margin: 3rem 0 1.5rem;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 0.5rem;
  font-size: 1.8rem;
}

/* Form Response Message */
.status-message {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  display: none;
}

/* Loading Spinner */
.spinner {
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  border-top: 2px solid #333;
  width: 15px;
  height: 15px;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  transition: opacity 0.3s ease-in-out;
}

.lightbox-caption {
  color: white;
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0 0 8px 8px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 1rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-prev {
  z-index: inherit;
  left: 2rem;
}

.lightbox-next {
  z-index: inherit;
  right: 2rem;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .gallery-grid {
      grid-template-columns: 1fr;
  }
  
  .gallery-container {
      margin-top: 80px;
      padding: 1rem;
  }
  
  .gallery-text-box {
      padding: 1rem;
  }
  
  .gallery-title {
      font-size: 2rem;
  }
  
  .lightbox-nav {
      font-size: 2rem;
      width: 50px;
      height: 50px;
  }
  
  .lightbox-prev {
      left: 0.5rem;
  }
  
  .lightbox-next {
      right: 0.5rem;
  }
}

/* ===== Animation Enhancements ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.text-box {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-section {
      padding: 2rem 1rem;
  }
  
  .form-row {
      flex-direction: column;
  }
  
  .half {
      width: 100%;
  }
  
  .membership-form {
      padding: 1.5rem;
  }
}
