/* CSS Variables for easy theming */
:root {
  --navy: #001f3f;
  --lighter-navy: #003366;
  --red: #FF4136;
  --gold: #FFDC00;
  --white: #ffffff;
  --gray-light: #f7f7f7;
  --gray-dark: #333333;
  --transition-speed: 0.3s;
}

/* Reset & Global Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;  /* Added to prevent horizontal scrolling */
}

body {
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

  
  /* Navbar Styles */
  .navbar {
    position: absolute; /* Overlays hero section */
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
  }
  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .navbar .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
  }
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  .nav-links li a {
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition-speed);
  }
  .nav-links li a::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background: var(--gold);
    transition: width var(--transition-speed);
    position: absolute;
    bottom: 0;
    left: 0;
  }
  .nav-links li a:hover {
    color: var(--gold);
  }
  .nav-links li a:hover::after {
    width: 100%;
  }
  
  /* Hamburger Menu Styles */
  .hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
  }
  @media (max-width: 768px) {
    .hamburger {
      display: block;
    }
    /* Optionally, if you want to hide the nav-links by default on mobile: */
    .nav-links {
      display: none;
    }
  }
  
  
  
  /* Hero Section */
  .hero {
    position: relative;
    background: url('bg.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
  }
  .hero::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 31, 63, 0.6);
    z-index: 1;
  }
  .hero h1 {
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
  }
  .hero p {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
  }
  
  /* Section Styles */
  section {
    padding: 5rem 0;
  }
  section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.25rem;
    color: var(--navy);
    position: relative;
  }
  section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0.5rem auto 0;
  }
  .section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  
  /* Card Styles for Team Section (used in team.html) */
  .card {
    background: var(--gray-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  .card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }
  .card-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .card-content blockquote {
    font-style: italic;
    color: var(--gray-dark);
    margin: 0;
  }
  .card-content span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--navy);
  }
  
  /* Button Styles (for Events Section) */
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed);
    font-family: 'Montserrat', sans-serif;
  }
  .btn:hover {
    background: #e6c200;
    transform: translateY(-2px);
  }
  
  /* Contact Form Styles */
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
  }
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: var(--navy);
    outline: none;
  }
  
  /* Footer Styles */
  footer {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .nav-links {
      position: absolute;
      top: 100%;
      right: 0;
      background: rgba(0, 31, 63, 0.9); /* Semi-transparent background */
      flex-direction: column;
      width: 200px;
      padding: 1rem;
      display: none;
    }
    .nav-links.active {
      display: flex;
    }
    .nav-links li {
      margin-bottom: 1rem;
    }
    .nav-links li:last-child {
      margin-bottom: 0;
    }
    .hamburger {
      display: block;
    }
  }
  
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @media (min-width: 992px) {
    .image-column {
      display: block;
      width: 45%;
      margin-left: 5%;
    }
  }
  @media (max-width: 991px) {
    .image-column {
      display: none;
    }
  }
/* ----- Two-Column Layouts for Cause and Mission ----- */
.cause-container,
.mission-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cause-text, 
.cause-image,
.mission-text, 
.mission-image {
  flex: 1;
}

.cause-image img,
.mission-image img {
  width: 100%;
  border-radius: 8px;
}

/* For smaller screens, stack columns vertically */
@media (max-width: 768px) {
  .cause-container,
  .mission-container {
    flex-direction: column;
  }
}

/* ----- How We Work Cards with Blurred Backgrounds ----- */
.work-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  min-height: 250px;
  /* The background image is provided via a CSS custom property */
  background: var(--bg-image) no-repeat center center/cover;
  transition: transform var(--transition-speed);
  margin: 1rem 0;
}

.work-card:hover {
  transform: translateY(-5px);
}

/* Create a colored overlay with blur using an inner element */
.work-card .card-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 31, 63, 0.5); /* semi-transparent navy overlay */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

/* Ensure the card content sits on top of the overlay */
.work-card .card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
  color: var(--white);
}
    /* Modal Container */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
  }
  
  /* ----------------- Fixed Logo in Top Right ----------------- */
.page-logo {
    position: fixed;
    top: 5px;
    left: 5px;
    z-index: 3000;
    width: 100px; /* Adjust as needed */
  }
  .page-logo img {
    width: 100%;
    height: auto;
  }
  @media (max-width: 768px) {
    .page-logo {
      display: none;
    }
  }
  
  /* ----------------- Contact Modal Styles ----------------- */
  .modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Dark background with opacity */
    animation: fadeIn 0.3s;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  
  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  
  .modal-header {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .modal-logo {
    width: 60px;
    margin-bottom: 0.5rem;
  }
  
  .close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .close:hover {
    color: #000;
  }
  
  /* Contact form inputs styling (if not already styled) */
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: var(--navy);
    outline: none;
  }
  
  /* Responsive adjustments for modal */
  @media (max-width: 600px) {
    .modal-content {
      margin: 20% auto;
      padding: 1rem;
    }
  }
  
  /* Grid Layout for Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  /* Event Card Styling */
  .event-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  .event-card:hover {
    transform: scale(1.02);
  }
  
  /* Background Image for Event Card */
  .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
  }
  .event-card:hover .card-bg {
    filter: brightness(0.8);
  }
  
  /* Overlay for Event Details */
  .card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 31, 63, 0.8), transparent);
    color: #fff;
  }
  .card-overlay h3 {
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
  }
  .event-date,
  .event-location {
    font-size: 0.9rem;
    margin: 0.3rem 0;
    color: var(--gold);
  }
  
  
  /* Reuse existing button styling */
  .btn {
    margin-top: 1rem;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .event-card {
      height: 300px;
    }
  }
  
  /* Sign up form */
  /* Form Box Container */
.form-box {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 2rem auto;
}

/* Form Group Styling */
.signup-form .form-group {
  margin-bottom: 1.5rem;
}

.signup-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--navy);
}

/* Input Field Styling */
.signup-form input[type="text"],
.signup-form input[type="date"],
.signup-form input[type="email"],
.signup-form input[type="tel"],
.signup-form input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}

/* Adjust file input padding if necessary */
.signup-form input[type="file"] {
  padding: 0.5rem;
}

/* Button Styling */
.signup-form .btn {
  display: block;
  width: 100%;
  background-color: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.signup-form .btn:hover {
  background-color: #e6c200;
}
/* Coachs */
/* Lead Coach Section - Desktop */
.lead-coach {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.lead-coach img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 20px;
}

.lead-coach-text {
  max-width: 600px;
}

.lead-coach-text h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.lead-coach-text ul {
  list-style-type: none;
  padding: 0;
  font-size: 14px;
}

/* Mobile Responsive - Stack Lead Coach Like Others */
@media (max-width: 768px) {
  .lead-coach {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .lead-coach img {
    margin: 0 0 15px 0;
    width: 100%;
    height: auto;
    max-width: 300px;
  }

  .lead-coach-text {
    max-width: 100%;
  }

  .lead-coach-text ul {
    padding: 0;
    text-align: left;
    display: inline-block;
  }
}

/* Other Coaches (Box Layout) */
.coach-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.coach-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  width: 250px;
}

.coach-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.coach-box h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #333;
}

.coach-box p {
  font-size: 14px;
  color: #666;
}
