body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364); /* deep blue gradient */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.1);
   }
  
  .navbar {
    background-color: #003366;
    color: white;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100vw;
  }
  
  .navbar .logo a {
    color: white;
    margin-left: 1rem;
    padding-top: 0.2rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0.3rem;
  }
  
  .nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
  }
  
  .nav-links li a:hover {
    color: #ffcc00;
  }
  
  .hero-sports {
    position: relative;
    height: 600px;  
    width: 100vw;   
    margin-top: 0;
    min-height: 350px;   
    background-image: url('Images/FOSLogo.JPG');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    display: flex;           /* use flexbox to center content */
    flex-direction: column;
    justify-content: center; 
    padding: 1 2rem;        
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.6);
  }
  
  .hero-sports h1 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 900;
    background: linear-gradient(45deg, #ffffff, #e3f2fd, #ffffff, #bbdefb);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    overflow: hidden;
    text-shadow: none;
    animation: title-glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) 
            drop-shadow(0 0 20px rgba(0, 119, 204, 0.3))
            drop-shadow(0 0 30px rgba(0, 170, 255, 0.2));
  }

  @keyframes title-glow {
    0% {
      background-position: 0% 50%;
      filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) 
              drop-shadow(0 0 20px rgba(0, 119, 204, 0.3))
              drop-shadow(0 0 30px rgba(0, 170, 255, 0.2));
    }
    100% {
      background-position: 100% 50%;
      filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)) 
              drop-shadow(0 0 25px rgba(0, 119, 204, 0.5))
              drop-shadow(0 0 35px rgba(0, 170, 255, 0.4))
              drop-shadow(0 0 45px rgba(255, 255, 255, 0.3));
    }
  }

  .hero-sports h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 1),
      rgba(0, 170, 255, 0.8),
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0.8),
      transparent
    );
    animation: title-shimmer 2.5s infinite;
    z-index: 1;
    pointer-events: none;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    mix-blend-mode: overlay;
  }

  .hero-sports h1::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(0, 119, 204, 0.6),
      rgba(0, 170, 255, 0.9),
      rgba(255, 255, 255, 0.7),
      rgba(0, 170, 255, 0.9),
      rgba(0, 119, 204, 0.6),
      transparent
    );
    animation: title-shimmer 2.5s infinite 0.8s;
    z-index: 2;
    pointer-events: none;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    mix-blend-mode: screen;
  }

  @keyframes title-shimmer {
    0% {
      left: -150%;
    }
    100% {
      left: 100%;
    }
  }
  
  .hero-sports p {
    font-size: 1.3rem;
    margin-top: 1rem;
    padding: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  }
  
  .hero-sports select {
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 250px;
    margin-top: 1rem;
  }
  
  /* Menu Button */
  .menu-btn, .secondary-menu-btn {
    position: fixed;
    top: 20px;
    left: 12px;   
    background-color: #0077cc;
    border: none;
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
    border-radius: 8px;
  }

  .menu-btn:hover,
  .secondary-menu-btn:hover {
    background: linear-gradient(135deg, #0059b3, #0073e6); 
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px); 
  }

  .secondary-menu-btn {
    position: static;
    margin-top: 1rem;
    background: linear-gradient(135deg, #004080, #0059b3); /* vibrant gradient */
    color: #ffffff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    box-sizing: border-box;
    text-decoration: none;
    align-self: center;
    margin-bottom: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* soft pop-out effect */
  }
  
  /* Sidebar */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 220px;
    background: linear-gradient(to right, #ffffff, #92d0fc); 
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-right: 3px solid #160a0a;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar h2 {
    margin-top: 55px;
    color: #05396b; /* deep navy blue */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6); /* subtle light halo */
    font-weight: 700;
    font-size: 1.6rem;
    text-align: center;
  }

  .sidebar p.sidebar-info1,
.sidebar p.sidebar-sec {
  margin-top: 10px; 
  font-size: 1.2rem;
  color: #102a43;
  text-align: center;
}

  /* Filter controls for time/day */
  .filter-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1rem;
  }
  
  .filter-controls select,
  .filter-controls input[type="range"] {
    width: 80%;
    max-width: 200px;
    padding: 0.4rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  #example-text {
    font-size: 0.9rem;
    color: #33475b;
  }
  
  #time-display {
    font-size: 1rem;
    font-weight: 500;
    color: #003366;
  }
  
  #time-label {
    min-width: 120px;
  }

  .modal-content {
    max-height: 70vh;
    max-width: 90vw;
    overflow: auto;
    padding: 20px;
    background: #fff; /* keep top area light */
    color: #000;
  }
  
  /* Wrap just the calendar in a container with dark bg */
  .schedule-container {
    background-color: #222;
    color: #fff;
    padding: 10px;
    margin-top: 15px;
    border-radius: 6px;
    overflow: auto;
  }
  
  .schedule-table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    font-size: 0.75rem;
  }
  
  .schedule-table th,
  .schedule-table td {
    border: 1px solid #555;
    padding: 8px 4px; /* taller padding */
    text-align: center;
    user-select: none;
    vertical-align: middle;
    height: 30px; /* taller rows */
    min-width: 30px; /* narrower columns */
    max-width: 40px;
    overflow: hidden;
    white-space: nowrap;
  }

  /* Header row for days */
.schedule-table thead th:not(:first-child) {
  min-width: 90px;
  max-width: 110px;
  height: 30px; 
  white-space: normal;
  font-size: 0.85rem;
  vertical-align: bottom;
  color: #fff;
}

/* Time column header */
.schedule-table th:first-child {
  width: 70px;
  white-space: nowrap;
  font-weight: 600;
  color: #222;
  background-color: #eee;
  text-align: right;
  padding-right: 10px;
}
  
  .schedule-table th:first-child,
  .schedule-table td:first-child {
    /* Time column wider so times show nicely */
    min-width: 60px;
    max-width: 70px;
    font-weight: 600;
    color: #222;
    background-color: #eee;
    text-align: right;
    padding-right: 10px;
  }
  
  .schedule-table th {
    background-color: #333;
    position: sticky;
    top: 0;
    z-index: 2;
  }
  
  .schedule-table td.available {
    background-color: #28a745;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    position: relative;
    overflow: hidden;
  }

  .schedule-table td.available::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
    animation: shimmer 2s infinite;
  }

  @keyframes shimmer {
    0% {
      left: -100%;
    }
    100% {
      left: 100%;
    }
  }
  
  .schedule-table td.unavailable {
    background-color: #dc3545;
    color: #aaa;
    cursor: default;
  }
  
  .schedule-table td:hover.available {
    background-color: #218838;
  }
  
  
  .day-buttons button:hover {
    background-color: #005fa3;
  }
  
  /* Checkbox styles */
  .day-checkboxes-group label {
    display: block;
    margin: 0.4rem 0;
    cursor: pointer;
  }
  
  /* Main content */
  .main-content {
    margin-left: 0; 
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364); /* deep blue gradient */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: margin-left 0.3s ease;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: .2rem; 
  }
  
  .hero-section {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    min-height: 300px;
    padding: 1rem;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364); /* deep blue gradient */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.1);
    color: #003366;
    text-align: center; 
    overflow: hidden;
    position: relative;
  }

  .hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 1;
    border-radius: 0;
    backdrop-filter: blur(6px);
  }

  .hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    flex-direction: row;
  }
  
  .hero-image {
    flex: 1; 
    max-width: 30%; 
    min-width: 200px;
    margin-left: 1rem;
    margin-right: 4rem;
    align-items: center;
    justify-content: center;
  }
  
  .hero-image img {
    width: 100%;
    min-width: 250px;
    height: 100%;
    min-height: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    display: block;
  }
  
  .hero-text {
    color: #c5c8cb;
    margin-right: 1rem;
    margin-left: 1rem;
    position: relative;
    z-index: 2;
    animation: fadeSlideUp 1.5s ease-out both;
    flex: 4;
  }

  @keyframes fadeSlideUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .hero-section h1 {
    color: #ffffff;
    font-size: 2.8rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
  }
  
  .hero-section blockquote {
    max-width: 100%;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ffffffd1;
    margin: 0 auto;
    font-style: italic;
    border-left: 4px solid #1776ba;
    padding-left: 1rem;
  }
  
  .hero-section footer {
    margin-top: 1rem;
    font-weight: 700;
    color: #1776ba;
    font-style: normal;
  }  

  .cta-testimonials-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding: 2rem;
    max-width: 100vw;
    margin: 0 auto;
    flex-wrap: wrap; 
    background: linear-gradient(to right, #ffffff, #92d0fc);
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.1);
  }
  
  .cta, .testimonials {
    flex: 1 1 45%; 
    min-width: 300px;
  }
  
  .cta h2, .testimonials h2 {
    margin-bottom: 1rem;
    color: #003366;
    font-weight: 700;
    font-size: 1.8rem;
  }
  
  .cta p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #333;
  }
  
  .btn-primary {
    background-color: #003366;
    color: white;
    padding: 0 8px;              
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 20px;            
    box-sizing: border-box;
    width: auto;
    text-decoration: none;
    align-self: center;
    margin-bottom: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: #258cf4;
  }
  
  .testimonials blockquote {
    background-color: #f5f8fb;
    border-left: 5px solid #003366;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #555;
    border-radius: 4px;
  }
  
  .testimonials footer {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #003366;
    font-style: normal;
    font-size: 0.9rem;
  } 
  
  .coach-wrapper {
    max-width: 1400px;      
    margin: 0 auto;         
    padding: 0 1.5rem;      
    box-sizing: border-box;
    justify-content: center;
  }
  
  /* Grid container for coach cards */
  #coach-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 350px));
    justify-content: center; /* center the grid track(s) */
    justify-items: center;   /* center items inside their grid cells */
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  
#coach-section {
  width: 100%;
  display: block; 
  padding: 0;
  transition: padding 0.3s ease;
  box-sizing: border-box;
  justify-content: center;
  }

  /* Adds padding for coach cards */ 
  #coach-section.has-padding {
    padding: 1rem 0; 
  }

/* Individual coach card */
.coach-card {
  position: relative;
  background-size: cover;
  background-position: center;
  width: 100%;
  max-width: 350px;
  height: 400px;
  padding: 2rem; 
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  text-align: center;
  box-shadow: inset 0 0 0 300px rgba(0, 0, 0, 0.5); 
  box-sizing: border-box;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #111;
  border: 7px solid rgba(255, 255, 255, 0.2); 
  border-radius: 7px;
  backdrop-filter: blur(2px); 
}

/* Coach card overlay */
.coach-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
}

/* Overlay content */
.card-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

/* Text styling */
.card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.card-overlay h3 {
  margin-top: -1rem;
  color: #1776ba;
  font-size: 1.2rem;
  font-weight: 800;
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff,
     1px  0   0 #fff,
    -1px  0   0 #fff,
     0    1px 0 #fff,
     0   -1px 0 #fff,
     1px  1px 4px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.card-overlay p {
  color: white;
  font-weight: 400;
  font-size: 0.85rem;
  margin: 0.5rem 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,1);
  margin-bottom: 0rem;
}

.coach-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  border-color: #fff;
}

#coach {
  margin-bottom: 0.1rem;
}

.coach-instruction-wrapper {
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}

.coach-instruction {
  font-size: 1.3rem;
  font-weight: 700;
  color: #003366;
  background-color: #e0f0ff;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15);
  animation: popIn 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

.coach-card .click-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; 
}

.coach-card:hover .click-hint {
  opacity: 1;
}

/* Shimmer effect for coach cards with availability */
.coach-card.has-availability::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: coach-shimmer 3s infinite;
  z-index: 3;
  pointer-events: none;
}

/* Circling blue shimmer border for coach cards with availability */
.coach-card.has-availability {
  animation: rotating-border-glow 4s linear infinite;
}

@keyframes rotating-border-glow {
  0% {
    box-shadow: 
      inset 0 0 0 300px rgba(0, 0, 0, 0.5),
      0 0 0 4px #0077cc,
      0 0 20px #0077cc,
      0 0 35px rgba(0, 119, 204, 0.5);
  }
  25% {
    box-shadow: 
      inset 0 0 0 300px rgba(0, 0, 0, 0.5),
      3px 0 0 0 #0077cc,
      0 3px 0 0 #00aaff,
      -3px 0 0 0 #0077cc,
      0 -3px 0 0 #00aaff,
      0 0 25px #00aaff,
      0 0 40px rgba(0, 170, 255, 0.4);
  }
  50% {
    box-shadow: 
      inset 0 0 0 300px rgba(0, 0, 0, 0.5),
      0 0 0 4px #00aaff,
      0 0 20px #00aaff,
      0 0 35px rgba(0, 170, 255, 0.5);
  }
  75% {
    box-shadow: 
      inset 0 0 0 300px rgba(0, 0, 0, 0.5),
      -3px 0 0 0 #00aaff,
      0 -3px 0 0 #0077cc,
      3px 0 0 0 #00aaff,
      0 3px 0 0 #0077cc,
      0 0 25px #0077cc,
      0 0 40px rgba(0, 119, 204, 0.4);
  }
  100% {
    box-shadow: 
      inset 0 0 0 300px rgba(0, 0, 0, 0.5),
      0 0 0 4px #0077cc,
      0 0 20px #0077cc,
      0 0 35px rgba(0, 119, 204, 0.5);
  }
}

@keyframes coach-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}


.no-results {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: #555;
  margin: 2rem auto;
}

  .services-section {
    width: 100%;
    margin: 1rem auto;
    padding: 0 2rem;
    text-align: center;
    box-sizing: border-box;
  }
  
  .services-section h2 {
    display: block;
    width: 100%;
    font-size: 2rem;
    color: #1776ba;
    text-shadow:
      -1px -1px 0 #fff,
      1px -1px 0 #fff,
      -1px  1px 0 #fff,
      1px  1px 0 #fff,
      1px  0   0 #fff,
      -1px  0   0 #fff,
      0    1px 0 #fff,
      0   -1px 0 #fff,
      1px  1px 6px rgba(0, 0, 0, 1);
    font-weight: 700;
    text-align: center;
  }

  .services-section h3 {
    margin-left: 2.5rem;
    margin-right: .7rem;
  }
  
  .services-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-right: 2rem;
  }
  
  .service-item {
    flex: 1 1 calc(33.33% - 2rem); /* three items with spacing */
    max-width: 300px;
    text-align: center;
    margin: 0 auto;
    color: #1776ba;
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 1rem;
    text-shadow:
      -1px -1px 0 #fff,
      1px -1px 0 #fff,
      -1px  1px 0 #fff,
      1px  1px 0 #fff,
      1px  0   0 #fff,
      -1px  0   0 #fff,
      0    1px 0 #fff,
      0   -1px 0 #fff,
      1px  1px 6px rgba(0, 0, 0, 1);
  }
  
  .service-item img {
    width: 100%;
    margin-left: 1rem;
    margin-right: 1rem;
    height: 200px;
    border-radius: 8px;
    display: block;
  }
  
  .info-section {
    max-width: 700px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
  }

  .info-section a {
    color: #1776ba;
    text-decoration: underline;
    word-break: break-word; 
  }  

  .main-contact {
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
  }

  .contact-wrapper {
    color: white;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .contact-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: fadeSlideUp 1.5s ease-out both;
  }
  
  .contact-subtext {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  .contact-section {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 2rem;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto; 
    border: 2px solid rgba(255, 255, 255, 0.4);
  }
  
  .contact-item {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
  }
  
  .contact-link {
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.25rem;
    color: #1776ba;
    text-decoration: underline;
  }
  
  .contact-link svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: #ffffff; 
    display: inline-block;
    visibility: visible;
    overflow: visible;
  }

  .contact-link.stacked {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .info-block.pricing-contact {
    background: #0077cc;
    color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 119, 204, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
  }
  
  .info-block.pricing-contact h2 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  }
  
  .info-block.pricing-contact p {
    font-size: 1.1rem;
    margin: 0.6rem 0;
  }
  
  .info-block.pricing-contact a {
    color: #f5e1c6; 
    text-decoration: none;
    font-weight: 600;
  }
  
  .info-block.pricing-contact a:hover {
    text-decoration: underline;
  }

  .about-me-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 3rem 2rem;
    background: linear-gradient(to right, #8cd8f6, #ffffff);
    color: white;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.5);
    margin-top: 3rem;
    text-align: left;
    flex-wrap: wrap;
  }
  
  .about-me-image {
    width: 160px;
    height: auto;
    border-radius: 80px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }
  
  .about-me-text {
    max-width: 600px;
    flex: 1;
    min-width: 250px;
  }
  
  .about-me-text h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 1px rgba(19, 10, 197, 0.8);
  }
  
  .about-me-text p {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 4px rgba(10, 49, 205, 0.6);
  }
  
  .about-me-text a {
    color: #f0f0f0;
    text-decoration: underline;
  }
  
  .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to right, #ffd4bf, #a8e3fb);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 70vw;
    width: 90%;
    z-index: 2000;
  }

  .modal-content form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .login-container form{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modal-content input,
  .modal-content select,
  .modal-content textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
  }

  #delete-booking-btn {
    background-color: #e74c3c; /* soft red */
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #delete-booking-btn:hover {
    background-color: #c0392b; /* darker red on hover */
  }  
  
  .modal h2 {
    margin-top: 0;
    color: #0077cc;
  }
  
  .modal p {
    margin: 0.5rem 0;
    color: #333;
  }
  
  .modal .close-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 45px;
    font-weight: bold;
    color: #000000;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px 10px;
    line-height: 1;
    transition: transform 0.2s ease;
  }
  
  .modal .close-btn:hover {
    transform: scale(1.2);
    color: #ff4d4d;
  }
  

  .hidden {
    display: none;
  }

  /* No coaches available popup */
  .no-coaches-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
  }

  .no-coaches-content {
    background: linear-gradient(to right, #ffd4bf, #a8e3fb);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
  }

  .no-coaches-content h3 {
    margin-top: 0;
    color: #0077cc;
    font-size: 1.5rem;
  }

  .no-coaches-content p {
    color: #333;
    margin: 1rem 0;
    line-height: 1.5;
  }

  .no-coaches-content .close-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 45px;
    font-weight: bold;
    color: #000000;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px 10px;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .no-coaches-content .close-btn:hover {
    transform: scale(1.2);
    color: #ff4d4d;
  }

  .form-section {
    width: 60vw;
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }

  .form-section input,
  .form-section textarea,
  .form-section select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
  }

  
  .form-section h2 {
    text-align: center;
    color: #0077cc;
  }

  .form-section p {
    text-align: center;
    color: black;
  }
  
  form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
  }
  
  form input,
  form textarea {
    width: 100%;
    padding: .75rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 0.5rem;
  }
  
  form button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
  
  form button:hover {
    background-color: #005fa3;
  }

  form button[type="submit"] {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    font-size: 16px;
    background-color: #6772e5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  form button[type="submit"]:hover {
    background-color: #5469d4;
  }
  
  #confirmation-message {
    margin-top: 1rem;
    text-align: center;
    color: green;
    font-weight: bold;
  }
  
 .contact-info {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 2rem;
    text-align: center;
  }

  .nav-links li.active a {
    color: yellow;
    font-weight: bold;
  }
  
  .contact-section h2 {
    text-align: center;
    color: #0077cc;
    margin-bottom: 0.5rem;
  }

  .contact-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem; 
  }
  
  .login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
  }
  
  input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
  }
  
  button {
    background-color: #0077cc;
    color: white;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #005fa3;
  }

  .story-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .story-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    animation: popIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    -webkit-text-stroke: 1px black; /* thin black border */
  }
  
  @keyframes popIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-sports h1,
  .services-section h2,
  .contact-section h2,
  .about-me-text h2 {
    animation: popIn .5s ease-out forwards;
    opacity: 0;
    transform: translateY(15px);
  }
  
  /* Optional: subtle underline */
  .story-title::after {
    content: "";
    display: block;
    width: 300px;
    height: 4px;
    background: #4dadf7;
    margin: 0.5rem auto 0;
    border-radius: 2px;
  }

  .story-subtitle {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  animation: popIn 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  
  -webkit-text-stroke: 1px black; /* thin black border */
  }  
  
  .story-section p {
    color: #d5d5d5;
    text-indent: 1.5em; 
    margin-bottom: 1rem;
  }

  .story-section h3 {
    color: #ededede6;
  }

  .story-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* centers both image + text */
    padding: 2rem 1rem; /* top/bottom and side spacing */
    flex-wrap: wrap; /* wraps on smaller screens */
    text-align: center;
  }
  
  .story-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    margin: 2rem auto 1rem auto;
  }
  
  .story-text {
    max-width: 500px;
    margin: 0 1rem;
  }
  
  .story-title,
  .story-subtitle {
    margin: 0.5rem 0;
  }
  
  #calendar {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    /* Prevent zoom on double tap */
    touch-action: manipulation;
  }

  /* Ensure FullCalendar event colors display correctly */
  .fc-event {
    border: 2px solid transparent !important;
    font-weight: bold !important;
  }
  
  .fc-event.fc-bg-event {
    opacity: 0.8 !important;
  }
  
  /* Style background events properly */
  .fc-bg-event {
    opacity: 0.8 !important;
  }

  /* Force orange color for no-availability-set events */
  .fc-event[style*="background-color: rgb(255, 152, 0)"],
  .fc-event[style*="background-color: #ff9800"],
  .fc-daygrid-event[style*="background-color: #ff9800"] {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
    color: #fff !important;
  }

  /* Ensure orange events are visible */
  .fc-event.fc-daygrid-event {
    opacity: 1 !important;
  }

  /* Target by title for extra specificity */
  .fc-event[title*="No availability set"] {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
    color: #fff !important;
  }
  
  /* Make sure day cells show background events clearly */
  .fc-daygrid-day {
    position: relative;
  }
  
  /* Override FullCalendar's default blue color for events */
  .fc-event-main {
    color: inherit !important;
  }
  
  /* Ensure all-day events show their background colors */
  .fc-daygrid-event {
    border-radius: 4px !important;
    margin: 1px !important;
  }
  
  /* Make sure event titles are visible */
  .fc-event-title {
    color: inherit !important;
    font-weight: bold !important;
  }
  
  /* Mobile FullCalendar optimizations */
  @media (max-width: 768px) {
    .fc-daygrid-day {
      font-size: 0.8rem;
    }
    
    .fc-event {
      font-size: 0.7rem !important;
      padding: 2px !important;
    }
    
    .fc-daygrid-day-number {
      font-size: 0.9rem;
    }
    
    .fc-col-header-cell {
      font-size: 0.8rem;
    }
    
    /* Prevent zooming on calendar taps */
    .fc-daygrid-day,
    .fc-event,
    .fc-daygrid-day-frame {
      touch-action: manipulation;
    }
  }

  .calendar-grid {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1em;
  }
  
  .calendar-grid th, .calendar-grid td {
    border: 1px solid #ccc;
    text-align: center;
    padding: 4px;
    font-size: 0.8rem;
  }
  
  .slot.available {
    background-color: #b3e6b3; /* light green */
  }
  
  .slot.unavailable {
    background-color: #cdcdb8; /* light red */
    color: #666;
  } 
  .schedule-table td.noavailabilityset {
    background-color: #e8811a; /* light orange */
    color: #fff;
    cursor: default;
  }
  
  .slot.noavailabilityset {
    background-color: #e8811a; /* light orange */
    color: #666;
  } 

  /* Error Message Styling */
  #card-errors {
    color: #e53e3e;
    margin-top: 8px;
    font-size: 14px;
  }

  .payment-box {
    max-width: 420px;
    margin: 30px auto;
    padding: 24px;
    background: linear-gradient(to right, white, rgb(220, 248, 219));
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  
  .payment-box:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }
  
  .payment-box h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
  }

  /* When the card element (or its input) gains focus */  
  #card-element {
    margin-top: 1rem;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: border 0.3s ease;
    box-shadow: 0 0 0 2px #3182ce; /* a subtle blue glow */
  }
  
  #card-element.StripeElement--focus {
    border-color: #3b82f6; /* Blue border on focus */
  }

  .trust-container {
    text-align: center;
    margin-top: 20px;
  }
  
  .trust-row {
    margin-top: 10px;
    display: inline-flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
  }
  
  .trust-row img {
    height: 30px;
    opacity: 0.9;
    transition: transform 0.2s ease;
  }
  
  .trust-row img:hover {
    transform: scale(1.05);
    opacity: 1;
  }
  
  .secure-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4CAF50; /* soft green */
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 auto 0 auto;
    padding: 4px 8px;
    border-radius: 8px;
    background-color: #f1fdf4;
    border: 1px solid #d9f0e1;
    width: fit-content;
  }
  
  .lock-icon {
    width: 20px;
    height: 20px;
  }
  

  .secure-label img {
    margin-right: 6px;
  }

  /* Button Styling (if needed) */
  button[type="submit"] {
    background-color: #0077cc;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
  }

  button[type="submit"]:hover {
    background-color: #005fa3;
  }

  #lesson-counts-section {
    margin-top: 40px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  #lesson-counts-section h2 {
    text-align: center;
    margin-bottom: 16px;
    color: #333;
  }
  
  #lesson-counts-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
  }
  
  #lesson-counts-table th,
  #lesson-counts-table td {
    border: 1px solid #ddd;
    padding: 12px 10px;
    text-align: center;
    font-size: 0.95rem;
  }
  
  #lesson-counts-table th {
    background-color: #4CAF50;
    color: white;
  }
  
  #lesson-counts-table tr:nth-child(even) {
    background-color: #f2f2f2;
  }  

  /* Coach page calendar */
  #editModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    z-index: 1000;
    min-width: 450px;
    max-width: 90vw;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  #editModal input {
    margin-bottom: 1rem;
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    transition: border-color 0.3s ease;
  }
  
  #editModal input:focus {
    outline: none;
    border-color: #0077cc;
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
  }
  
  #modalBackdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
  }

  .btn.danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: 10px;
  }

  /* General resets */
* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

button.danger {
  background-color: #cc0000;
}

button.danger:hover {
  background-color: #a30000;
}

/* Form Styling */
#login-container,
#editModal {
  max-width: 400px;
  margin: 4rem auto 0 auto;
  background: white;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#coach-dashboard h2 {
  margin: 6rem auto 0;
  text-align: center;
  color: white;
}

.logout-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.logout-btn {
  display: block;
  margin: 20px auto 0;
}

#coach-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input[type="text"],
input[type="password"],
input[type="number"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

#editModal label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
  font-size: 16px;
  text-align: left;
}

#editModal h3 {
  color: #0077cc;
  margin-bottom: 20px;
  font-size: 20px;
}

#editModal button {
  margin: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#editModal #saveAvailabilityBtn {
  background-color: #28a745;
  color: white;
  border: none;
}

#editModal #saveAvailabilityBtn:hover {
  background-color: #218838;
  transform: translateY(-1px);
}

#editModal #removeAvailabilityBtn {
  background-color: #dc3545;
  color: white;
  border: none;
}

#editModal #removeAvailabilityBtn:hover {
  background-color: #c82333;
  transform: translateY(-1px);
}

#editModal button[onclick="closeModal()"] {
  background-color: #6c757d;
  color: white;
  border: none;
}

#editModal button[onclick="closeModal()"]:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
}

  /* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
  
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
  }

   .navbar .logo a {
    margin-left: 1rem;
    padding-top: 0.8rem;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding-top: 0.8rem;
    margin-left: -2rem;
  }

  .hero-sports h1 {
    font-size: 2rem;
  }

  .hero-sports p,
  .hero-sports select {
    font-size: 1rem;
    width: 90%;
    margin: 0.5rem auto;
  }

  .cta-testimonials-container {
    flex-direction: column;
    padding: 1rem;
  }

  .cta, .testimonials {
    flex: 1 1 100%;
    min-width: unset;
    width: 100%;
  }

  .coach-card {
    height: auto;
    min-height: 350px;
  }

  .schedule-btn {
    width: 80%;
    font-size: 0.5rem;
    padding: 0.6rem 1rem;
    margin: 1rem auto;
  }

  .services-container {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    max-width: 100%;
    font-size: 1rem;
    text-align: center;
  }

  .service-item h3 {
    margin-left: 2rem;
    font-size: 1.2rem;
  }

  .service-item img {
    width: 100%;
    height: auto;
    margin-left: 1rem;
    display: block;
  }

  .info-block.pricing-contact p,
  .info-block.pricing-contact a {
    word-wrap: break-word; 
    overflow-wrap: break-word;
    white-space: normal; 
  }

  .form-section {
    width: 90vw;
    padding: 1rem;
  }

  #coach-container {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 1rem;
  }

  .modal {
    padding: 1rem;
    width: 95%;
    /* Improve mobile modal */
    max-height: 85vh;
    overflow-y: auto;
    touch-action: manipulation;
  }

  .info-section {
    max-width: 90vw;
    padding: 0 1.5rem;
    overflow-x: visible;
    flex-direction: column;
    align-items: center;
  }

  .info-section a {
    max-width: 90vw;
    padding: 0 1.5rem;
    overflow-x: visible;
    flex-direction: column;
    align-items: center;
  }

  .hide-on-sidebar {
    display: none;
  }

  .story-header {
    flex-direction: column;
  }

  .story-text {
    margin: 1rem 0;
  }

  .story-title,
  .story-subtitle {
    text-align: center;
  }

  .about-me-section {
    flex-direction: column;
    text-align: center;
  }

  .about-me-image {
    margin-bottom: 1rem;
  }

  .hero-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-wrapper {
      width: 90%;
      margin-right: 0;
      padding: 1.5rem 1rem;
  }

  .contact-section {
    padding: .5rem;
    border-radius: 20px;
    gap: 1rem;
  }

  .contact-item {
    font-size: 0.95rem;
    word-break: break-word;
  }

  .contact-link {
    flex-wrap: wrap;
    font-size: 0.95rem;
    word-break: break-all;
  }

  .calendar-scroll {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    /* Prevent zoom on double tap */
    touch-action: pan-x pan-y;
    user-select: none;
  }

  .schedule-table {
    min-width: 600px;
    border-collapse: collapse;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 8px;
    text-align: center;
    white-space: nowrap;
    /* Prevent zoom on tap */
    touch-action: manipulation;
  }

  .modal-content {
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    /* Prevent zoom on double tap in modal */
    touch-action: manipulation;
  }

  #coach-dashboard h2 {
    font-size: 1.3rem;
  }

  #calendar {
    padding: 0.5rem;
    /* Prevent zoom on double tap */
    touch-action: manipulation;
  }

  #editModal {
    position: fixed;
    top: 20%; 
    left: 50%;
    transform: translate(-50%, -30%);
    /* Improve mobile modal */
    min-width: 280px;
    max-width: 95vw;
    max-height: 80vh;
    overflow-y: auto;
    touch-action: manipulation;
  }  

  button,
  .btn.danger,
  .logout-btn {
    font-size: 0.95rem;
  }
  
}

  /* Fix horizontal overflow */
  html, body {
    overflow-x: hidden;
  }

  /* Prevent image overflow */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Ensure buttons are touch-friendly */
  button, .btn-primary, .schedule-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 1rem;
  }


  .filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-row label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
  }

  .filter-row select {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    min-width: 120px;
  }

  .filter-row select:focus {
    outline: none;
    border-color: #0066cc;
  }

  @media (max-width: 768px) {
    .filter-row {
      flex-direction: column;
      align-items: stretch;
      gap: 0.5rem;
    }
    
    .filter-row select {
      width: 100%;
    }

  }

  
  