/* ==================================================
   COMPONENTS
   Buttons • Cards • Hero • Carousel • Forms • Gallery
   Cleaned + Unified Design System
================================================== */

/* ==================================================
   BUTTONS
================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  min-height: var(--tap-target-min);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:focus-visible {
  outline: var(--focus-outline-width) solid var(--color-focus);
  outline-offset: var(--focus-outline-offset);
}

.btn-primary {
  background: var(--color-lemon);
  color: var(--color-green-dark);
  border: 2px solid var(--color-green-dark);
}

.btn-primary:hover {
  background: var(--color-lemon-hover);
}

.btn-secondary {
  background: var(--color-green-dark);
  color: var(--color-lemon);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-green-dark);
  color: var(--color-green-dark);
}

.btn-outline:hover {
  background: var(--color-green-dark);
  color: var(--color-lemon);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-register {
  display: inline-block;
  background-color: #166534; /* Theme Green */
  color: #ffffff !important;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #FCD34D; /* Theme Yellow Border */
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-register:hover {
  background-color: #14532d;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ==================================================
   CARDS
================================================== */

.card {
  background: var(--color-white);
  border: 2px solid var(--color-lemon);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card-body {
  padding: var(--space-lg);
}

.card-title a {
  color: var(--color-green-dark);
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

/* ==================================================
   HERO
================================================== */

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-dark);
  color: var(--color-lemon);
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}

.hero h1 {
  color: var(--color-lemon);
}

.hero-ctas {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* ==================================================
   GRID
================================================== */

.grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==================================================
   FORMS
================================================== */

/* JOIN FORM - MATCHES SCREENSHOT */
/* 📸 SCREENSHOT PERFECT FORM */
#joinForm { 
  max-width: 520px !important;
  margin: 40px auto !important;
  padding: 30px !important;
  background: #FFFFFF !important;
  border: 4px solid #FCD34D !important;  /* THICK lemon */
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(252,211,77,0.3) !important;
}
.form-group { margin-bottom: 24px !important; }
.form-group label { 
  color: #166534 !important; 
  font-weight: 700 !important; 
  font-size: 15px !important;
  margin-bottom: 8px !important;
}
.join-container { max-width: 600px; margin: 0 auto; padding: 0 20px; }


.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border-radius: 6px;
  border: 2px solid var(--color-lemon);
  background: var(--color-white);     /* ✅ WHITE like screenshot */
  color: var(--color-green-dark);
  min-height: var(--tap-target-min);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-green-dark);
  box-shadow: 0 0 0 3px rgba(22,101,52,0.15);
  outline: none;
}

.form-error {
  color: #b71c1c;
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

.form-success {
  background: #E8F5E9;
  color: var(--color-green-dark);
  padding: var(--space-md);
  border-radius: 6px;
  margin-bottom: var(--space-lg);
}

/* Consent */

.form-consent {
  margin: var(--space-lg) 0;
}

.consent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.consent-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-green-dark);
}

/* ==================================================
   FILE UPLOAD
================================================== */

/* ===== DRAG & DROP UPLOAD - Big White Grid ===== */
.upload-box {
  border: 3px dashed var(--color-lemon);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 16px;
  background: var(--color-white);
  transition: all 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  cursor: pointer;
}

.upload-box:hover,
.upload-box.dragover {
  border-color: var(--color-green-dark);
  background: #FFFDF5;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(253,216,53,0.2);
}

.upload-label {
  cursor: pointer;
  font-weight: 500;
  color: var(--color-green-dark);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.upload-label svg {
  color: var(--color-lemon);
}

.upload-label p {
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--color-green-dark);
}

.upload-label span {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.upload-preview {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--color-green-med);
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

/* ==================================================
   GALLERY
================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  cursor: pointer;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 300px;           /* TALLER thumbnails */
  object-fit: cover;       /* Perfect fill */
  border-radius: 12px;
  border: 2px solid var(--color-lemon);
  display: block;
}

.gallery-item figcaption {
  font-weight: 600;
  color: var(--color-green-dark);
  text-align: center;
  font-size: var(--font-size-lg);
  padding-top: var(--space-xs);
  margin: 0;
}

/* ===== GALLERY HEADING CENTER ===== */
.page-gallery .container h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Add space between sections */
.school-section {
  clear: both; /* Ensures it starts on a new line */
  padding-top: 60px; /* Fixes the "cropped" look by adding space above the title */
  margin-bottom: 40px; /* Space before the footer */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the title and grid */
}

.school-section .section-title {
  margin-bottom: 30px; /* Space between the title and the school images */
}

/* Make school captions slightly distinct */
.school-section figcaption {
  font-size: 0.9rem;
  color: #166534;
  line-height: 1.4;
}

/* Hover effect for a "Gallery" feel */
.gallery-item {
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.gallery-item:hover {
  transform: scale(1.02);
}
/* ==================================================
   LIGHTBOX - NO HOVER EFFECTS
================================================== */

.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: absolute;
  background: var(--color-lemon);
  color: var(--color-green-dark);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* NO HOVER - Static buttons */
}

.lightbox-prev { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 2rem; right: 2rem; font-size: 2rem; }

/* ==================================================
   CONTACT FORM WRAPPER
================================================== */

#contactForm {
  max-width: 500px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--color-white);
  border: 3px solid var(--color-lemon);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(253,216,53,0.25);
}

/* ===== CONTACT PAGE - PERFECT SPACING & COLORS ===== */

.container h2 { margin-bottom: 0.5rem !important; }

#location-heading {
  margin-top: 0rem !important;  /* Lifted UP */
  color: #1b5e20 !important;
  text-align: left !important;
}


#query-heading { 
  text-align: center !important; 
  margin-top: 0rem !important; 
  color: #1b5e20 !important;
}

.contact-info > p:last-child {  /* ← NEW Instagram fix */
  margin-bottom: 0.5rem !important;
}


.location-info p {
  color: #1b5e20;
  text-align: left;
}

iframe {
  border-radius: 8px;
  border: 0;
}

/* Fix iframe container */
.location-info + iframe {
  margin-top: 0.5rem;
  display: block;
}

/* Success popup styles */
#contact-success-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.lightbox-content {
  background: white;
  z-index: 10000;
  margin: auto;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 768px) {
  .btn {
    width: 100%;
  }
}

/* ==================================================
   JOIN PAGE – PROFESSIONAL ALIGNMENT
================================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-instructions {
  background: rgba(252,211,77,0.1);
  border-left: 4px solid #FCD34D;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* 🔥 FIX ALL BLACK TEXT INSTANTLY */
.page-join h1, .page-join h2, .page-join .page-title,
.page-join .page-subtitle, #joinForm label,
.consent-label, .btn, button {
  color: #166534 !important;  /* Dark green */
}

#joinForm button[type="submit"] {
  background: #FCD34D !important;  /* Lemon yellow */
  color: #166534 !important;       /* Dark green text */
  border: 2px solid #166534 !important;
}

.btn-large {
  background: #FCD34D !important;
  color: #166534 !important;
  border: 2px solid #166534 !important;
}

/* 🏐 BIG CENTERED SUBMIT BUTTON */
#joinForm button[type="submit"],
.btn-large {
  display: block !important;
  width: 100% !important;
  max-width: 320px !important;
  margin: 2rem auto 0 !important;
  padding: 1.25rem 2rem !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  background: #FCD34D !important;
  color: #166534 !important;
  border: 3px solid #166534 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 25px rgba(252,211,77,0.4) !important;
}

#joinForm button[type="submit"]:hover {
  background: #EAB308 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 35px rgba(252,211,77,0.5) !important;
}

/* 🔥 CORRECTED - VISIBLE INPUTS + GREEN TEXT */
#joinForm select,
.consent-label span {
  color: #166534 !important;
}

.consent-label input[type="checkbox"] {
  accent-color: #166534 !important;
  width: 20px !important;
  height: 20px !important;
}

#joinForm input,
#joinForm select {
  color: #166534 !important;
  background: #FFFFFF !important;
  border: 2px solid #FCD34D !important;
}

/* Placeholder text */
#joinForm input::placeholder {
  color: #9CA3AF !important;
}

/* 🏐 BIGGER INPUTS + ADDRESS + UPLOAD BORDER */
#joinForm input,
#joinForm select,
#joinForm textarea {
  height: 50px !important;      /* BIGGER height */
  padding: 16px 20px !important; /* MORE padding */
  font-size: 16px !important;   /* BIGGER text */
}

/* ADDRESS TEXTAREA - TALLER */
#joinForm textarea#address {
  height: 120px !important;
  resize: vertical;
}

/* UPLOAD BOX - THICK LEMON BORDER */
#joinForm .upload-box {
  border: 3px solid #FCD34D !important;
  border-style: dashed !important;
}

/* 🚨 ADDRESS TEXTAREA - FORCE VISIBLE */
#joinForm textarea#address {
  display: block !important;
  visibility: visible !important;
  height: 120px !important;
  width: 100% !important;
  padding: 16px 20px !important;
  background: #FFFFFF !important;
  border: 2px solid #FCD34D !important;
  border-radius: 8px !important;
  color: #166534 !important;
  font-family: inherit !important;
  font-size: 16px !important;
  resize: vertical !important;
}

/* ENSURE ALL TEXTAREAS VISIBLE */
#joinForm textarea {
  opacity: 1 !important;
  background: #FFFFFF !important;
  color: #166534 !important;
}

#join-success-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}


/* 🏐 EVENTS PAGE - LEFT ALIGN + VISIBLE BUTTON */
#summer-camp-heading,
#location-heading,
.events-left-label {
  text-align: left !important;
  margin-left: 0 !important;
}

#open-maps-btn,
.open-google-maps,
.btn-google-maps {
  color: #166534 !important;
  background: #FCD34D !important;
  border: 2px solid #166534 !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  display: inline-block !important;
  border-radius: 8px !important;
}

#open-maps-btn:hover {
  background: #EAB308 !important;
  color: #166534 !important;
}

.btn-secondary[href*="google.com/maps"] {
  color: #166534 !important;
  background: #FCD34D !important;
  border: 2px solid #166534 !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  display: inline-block !important;
  border-radius: 8px !important;
  margin-top: 1rem !important;
}

.btn-secondary[href*="google.com/maps"]:hover {
  background: #EAB308 !important;
}

/* 🏐 EVENTS PAGE - UL LIST SPACING */
.event-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.375rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 2rem 0 !important;
}

.event-list li {
  margin: 0 !important;
}

@media (min-width: 769px) {
  .event-list {
    gap: 0.375rem !important;
  }
}

/* 🏐 EVENTS HEADING - MOVE DOWN FROM HEADER */
main .section h2 {
  margin-top: 0rem !important;
  padding-top: 0rem !important;
}

/* Override inline styles */
main .section h2[style*="margin-top"] {
  margin-top: 0rem !important;
  padding-top: 0rem !important;
  position: static !important;
  top: 0 !important;
}

/* ==================================================
   MOBILE EVENTS CARDS - PERFECT FIX
================================================== */

/* Homepage/Events cards mobile */
@media (max-width: 768px) {
  .grid-2 .card,
  .event-list .card {
    padding: 0.375rem !important;  /* More breathing room */
  }
  
  .card h3 {
    font-size: 1.15rem !important;  /* Smaller title */
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
  }
  
  .card-meta,
  .card p {
    font-size: 0.875rem !important;  /* Smaller body text */
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Fix long venue lines */
  .card p strong {
    display: block;  /* Venue/Fees on own line */
  }
  
  /* Button full width mobile */
  .card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
  }
}

/* Desktop keeps original spacing */
@media (min-width: 769px) {
  .grid-2 .card {
    padding: var(--space-lg);
  }
}

/* ==================================================
   TIGHTER EVENTS GRID - PERFECT SPACING
================================================== */


/* Fix for the View Details Link */
.view-details-link {
  color: #166534 !important;
  font-weight: 700;
  text-decoration: underline;
  margin-top: auto; /* Pushes link to the bottom of the card */
  display: inline-block;
  cursor: pointer;
  background: none !important; /* Removes the box look */
  border: none !important;
  padding: 0 !important;
}

.view-details-link:hover {
  color: #14532d !important;
  text-decoration: none;
}

/* Ensure Event Headings match Testimonial styling */
.testimonial-card h3 {
  color: #166534;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  text-align: left;
}

.testimonial-card p {
  text-align: left;
  margin-bottom: 0.5rem;
}
/* Homepage events - Reduce gap */
.upcoming-events .grid-2 {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.375rem !important; /* EXACT match to Latest News gap */
  justify-content: center;
  flex-wrap: nowrap !important;
}

/* Desktop cards closer together */
@media (min-width: 769px) {
  .upcoming-events .card {
    flex: 1; 
    max-width: 450px;
    margin: 0 !important;
  }
} 

.upcoming-events .card {
  width: 100% !important;           /* Full width - no more half-cards */
  max-width: 100% !important;
  margin: 0 0 0.375rem 0 !important;
  display: block !important;
}

  /* Homepage events - Ensure they stack and fit the screen */
  @media (max-width: 768px) {
    .upcoming-events .grid-2 {
      flex-direction: column !important; /* Forces stacking like Latest News */
      gap: 0.375rem !important;          /* Tiny gap between stacked cards */
      padding: 0 1rem !important;
    }
  }

/* ==================================================
   CENTER HOMEPAGE EVENTS TITLE
================================================== */

.upcoming-events .section-title,
.upcoming-events h2 {
  text-align: center !important;
  margin-bottom: 1rem !important;
}

/* Ensure section title stays centered */
.section-title {
  text-align: center;
}

/* ==================================================
   LATEST NEWS - SMALLER CARDS + TIGHT GAP
================================================== */

/* Title perfect */
.latest-news .section-title,
.latest-news h2 {
  text-align: center !important;
  margin: 1rem 0 1.25rem 0 !important;
}

/* GRID SIZES TO IMAGES - NO EXTRA SPACE */
.latest-news .grid-2 {
  display: grid !important;
  gap: 0.375rem !important;
  justify-content: center !important;
  align-items: stretch !important;
  grid-template-columns: repeat(2, auto) !important;  /* ← AUTO to image size */
  max-width: max-content !important;                   /* ← SHRINK WRAP */
  margin: 0 auto !important;
}

/* IMAGE FULL WIDTH OF CARD */
.latest-news .card img {
  width: 100% !important;
  height: 200px !important;        /* Fixed height for consistency */
  object-fit: cover !important;    /* Perfect crop */
  object-position: center !important;
}

/* CARD HEIGHT MATCHES IMAGE */
.latest-news .card {
  width: auto !important;          /* ← Image determines width */
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.latest-news .card-body {
  padding: 1rem !important;
  flex-grow: 1 !important;
}

/* Desktop */
@media (min-width: 769px) {
  .latest-news .grid-2 { gap: 0.5rem !important; }
  .latest-news .card img { height: 220px !important; }
}

/* Mobile */
@media (max-width: 768px) {
  .latest-news .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0.375rem !important;
  }
}

/* ==================================================
   GALLERY - NO WHITE SPACE + PERFECT FILL
================================================== */

/* Gallery Title */
.page-gallery h2.section-title {
  text-align: center !important;
  margin: 3rem 0 4rem 0 !important;
}

/* 2-COLUMN GRID - NO WHITESPACE */
.page-gallery .gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2.5rem !important;
  justify-content: center !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
}

/* TIGHT CONTAINERS - NO PADDING */
.page-gallery .gallery-item {
  display: flex !important;
  flex-direction: column !important;
  height: 480px !important;
  border: 4px solid var(--color-lemon) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;              /* ← NO PADDING */
  background: var(--color-white) !important;
  cursor: pointer !important;
  box-shadow: 0 12px 40px rgba(252,211,77,0.25) !important;
}

/* IMAGE FILLS SPACE COMPLETELY */
.page-gallery .gallery-item img {
  width: 100% !important;
  height: 380px !important;
  object-fit: cover !important;     /* FULL IMAGE */
  object-position: center !important;
  display: block !important;
  margin: 0 !important;               /* ← NO MARGIN */
  padding: 0 !important;  
  border-radius: 16px 16px 0 0 !important;            /* ← NO PADDING */
}

/* TIGHT CAPTION */
.page-gallery figcaption {
  height: 100px !important;
  padding: 1rem !important;
  margin: 0 !important;
  background: var(--color-white) !important;
  text-align: center !important;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 0 16px 16px !important;  
}

/* Hover */
.page-gallery .gallery-item:hover {
  box-shadow: 0 20px 60px rgba(252,211,77,0.4) !important;
}

/* Mobile */
@media (max-width: 768px) {
  .page-gallery .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .page-gallery .gallery-item {
    height: 440px !important;
  }
  .page-gallery .gallery-item img {
    height: 340px !important;
  }
  .page-gallery figcaption {
    height: 100px !important;
  }
}

/* ==================================================
   LEADERSHIP TEAM
================================================== */

.leadership {
  text-align: center;
  padding: 60px 20px;
}

.team-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  max-width: 800px;
  margin: 50px auto 0;
}

.team-member {
  flex: 0 0 45%;   /* Forces 2 items per row */
  max-width: 300px;
  text-align: center;
}

.photo {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* prevents head cut */
}

.team-member h3 {
  font-size: 22px;
  margin-bottom: 6px;
  color: #166534;
}

.role {
  font-size: 20px;
  font-weight: 600;
  color: #4f8ecb;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .photo {
    width: 180px;
    height: 180px;
  }

  .team-wrapper {
    gap: 40px;
  }
  .team-member {
    flex: 0 0 100%;
  }
}

.training-section {
  padding: 1rem 0 4.5rem 0;
  background-color: #fdebc2; /* softer grey like screenshot */
}

.training-section h2 {
  text-align: center;
  color: #166534;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 0rem;
  margin-top: 0rem;
}

.training-subtitle {
  text-align: left !important;
  max-width: 1200px;
  padding: 0 !important;
  margin: 1.5rem 0 2rem 0 !important;
  color: #166534;
  line-height: 1.6;
}

.training-subtitle p {
  text-align: left !important;
  margin: 0 0 1.5rem 0 !important;
  padding: 0 !important;
  line-height: 1.7 !important;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.training-card {
  padding: 1.3rem;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.training-card:hover {
  transform: translateY(-6px);
}

.training-card h3 {
  color: #166534;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.training-card p {
  color: #166534;
  line-height: 1.5;
  font-size: 0.95rem;
}

.training-note {
  max-width: 1200px !important;
  width: 78%;             /* Adjust this % to match the top text's width */
  margin: 2rem auto !important; 
  padding: 0 15px !important;  /* Standard Bootstrap/Common container padding */
  text-align: left !important;
  display: block !important;
}


@media (max-width: 950px) {
  .training-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
}

.testimonial-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important; /* Prevents Abinaya from being cut off */
}

.testimonial-card {
  flex: 0 0 100%; /* Default: 1 card per view (Mobile) */
  box-sizing: border-box;
  padding: 1.5rem;
  background: white;
  border: 2px solid #FCD34D;
  border-radius: 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px; /* Compact height */
}

/* Quote styling to ensure 2-3 lines visibility */
.testimonial-card .quote {
  font-size: 1.05rem;
  color: #166534;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 1rem;
  display: -webkit-box; /* Limits lines if text is too long */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-card .author {
  font-weight: 700;
  color: #166534;
  text-align: right;
  font-size: 0.95rem;
}

/* Desktop View: 3 Cards */
@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(33.33% - 20px); /* Exactly 3 cards */
    margin-right: 20px;
  }
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 1rem;
}

.btn-slider {
  background: #FCD34D;
  border: 2px solid #166534;
  color: #166534;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

/* ==================================================
   UPCOMING EVENTS SLIDER (CENTERED)
================================================== */
.event-slider {
  position: relative;
  overflow: hidden;
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto !important; /* Forces centering of the window */
}

.event-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  justify-content: center !important; /* Centers cards on Desktop */
  gap: 20px;
}

.event-card {
  flex: 0 0 100%; /* Mobile: Full width */
  box-sizing: border-box;
  padding: 2rem;
  background: white;
  border: 2px solid #FCD34D;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.event-card h3 {
  color: #166534;
  margin-bottom: 1rem;
  text-align: left;
}

/* Responsive adjustments */
@media (min-width: 1024px) {
  .event-card {
    flex: 0 0 calc(33.33% - 20px); /* 3 cards on desktop */
  }
}

@media (max-width: 1023px) {
  .event-track {
    justify-content: flex-start !important; /* Align left for mobile sliding */
    gap: 0;
  }
}