*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   background-color: black;
   color: white;
}


/*=============================== NAVBAR =============================*/
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

/* LOGO */
.logo {
  font-size: 1.5em;
  font-weight: bold;
}

/* NAV LINKS (desktop, centered) */
.nav-links {
  display: flex;
  list-style: none;
  gap: 8em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 2em;
  cursor: pointer;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    transform: none;
    width: 100%;
    background: black;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding: 1em 0;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/*=================================SECTION 1(INTRODUCTION SEC)==============================*/
    .introduction {
  position: relative;
  text-align: center;
  padding: 200px 20px;
}

.intro-content {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

/* Responsive text */
.intro-content h1 {
  font-size: clamp(3rem, 20vw, 12rem); /* scales with screen */
  color: red;
  background: transparent;
  position: relative;
  z-index: 2; /* text on top */
  margin: 0;
  line-height: 1.1;
  word-wrap: break-word;
}

/* Responsive image */
.intro-content img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8; /* optional for better readability */
}

/* Extra adjustments for small screens */
@media (max-width: 768px) {
  .intro-content h1 {
    font-size: clamp(2.5rem, 18vw, 6rem);
  }

  .intro-content img {
    max-width: 100%;
  }
}




/*===========================About section=========================*/
    .About {
  text-align: center;
  margin: 2em;
  padding: 1em;
}

.About h2 {
  font-size: 3em;
}

.About-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* allow items to wrap on small screens */
  margin-top: 2em;
  gap: 3em;
}

.content-About {
  flex: 1 1 250px; /* responsive sizing */
  max-width: 300px;
}

.content-About img {
  background-color: white;
  border-radius: 10px;
  padding: 10px;
}

.content-About h3 {
  color: red;
  margin-top: 1em;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .About h2 {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .About h2 {
    font-size: 2em;
  }

  .About-content {
    gap: 2em;
  }
}

@media (max-width: 480px) {
  .About {
    margin: 1em;
  }

  .About h2 {
    font-size: 1.8em;
  }

  .About-content {
    flex-direction: column; /* stack items */
    align-items: center;
  }

  .content-About {
    max-width: 90%;
  }
}


/*================================story section===========================*/
.story {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6em;
    margin: 4em;
    flex-wrap: wrap; /* allows items to wrap on small screens */
}

.story img {
    border-radius: 10px;
    max-width: 100%; /* keeps image inside screen */
    height: auto; /* maintains aspect ratio */
}

.story-content {
    max-width: 600px; /* keeps content readable */
}

.story-content h2 {
    font-size: 3em;
    color: red;
}

.story-content button {
    padding: 1em 3em;
    border: none;
    border-radius: 20px;
    background-color: red;
    color: white;
    margin: 2em 0;
    cursor: pointer;
    transition: 0.3s;
}

.story-content button:hover {
    background-color: darkred;
}

/* 📱 Small screens */
@media (max-width: 768px) {
    .story {
        flex-direction: column;
        text-align: center;
        gap: 2em;
        margin: 2em;
    }

    .story-content h2 {
        font-size: 2.5em;
    }

    .story-content p {
        font-size: 1em;
        line-height: 1.5;
    }

    .story-content button {
        width: 100%; /* full-width button for mobile */
    }
}

/* 📱 Extra small screens */
@media (max-width: 480px) {
    .story-content h2 {
        font-size: 2em;
    }

    .story-content p {
        font-size: 0.9em;
    }

    .story-content button {
        padding: 0.8em 2em;
        font-size: 0.9em;
    }
}


/*==============================Analytics section===========================*/
.Analytics {
    text-align: center;
    margin: 2em;
}

.Analytics-content {
    display: flex;
    justify-content: center;
    gap: 4em;
    flex-wrap: wrap; /* lets items wrap on smaller screens */
}

.content-Analytics {
    flex: 1 1 250px; /* allows responsive resizing */
    max-width: 300px; /* prevents items from stretching too wide */
}

.content-Analytics img {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
}

/* Media query for tablets */
@media (max-width: 768px) {
    .Analytics-content {
        gap: 2em;
    }
    .content-Analytics {
        flex: 1 1 100%;
    }
}

/* Media query for phones */
@media (max-width: 480px) {
    .Analytics-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5em;
    }
    .content-Analytics {
        max-width: 90%;
    }
}




/*==============================services section==========================*/
.services {
    margin: 4em 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4em;
    flex-wrap: wrap; /* allows stacking on smaller screens */
}

.services img {
    margin: 0.2em;
    border-radius: 20px;
    max-width: 100%; /* ensures images don’t overflow */
    height: auto;
}

.services-img {
    display: flex;
    flex-direction: column; /* stack images vertically */
    gap: 1em;
}

.services-content {
    max-width: 600px;
}

.services-content h2 {
    font-size: 2em;
    color: red;
    margin-bottom: 1em;
}

.services-content p {
    line-height: 1.6;
    margin-bottom: 1em;
}

.services-content button {
    padding: 1em 4em;
    border: none;
    border-radius: 20px;
    background-color: red;
    color: white;
    margin: 2em 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.services-content button:hover {
    background-color: darkred;
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
    .services {
        flex-direction: column;
        text-align: center;
    }

    .services-img {
        flex-direction: row; /* show side by side on tablets */
        justify-content: center;
        flex-wrap: wrap;
    }

    .services-content {
        max-width: 90%;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .services {
        gap: 2em;
    }

    .services-img {
        flex-direction: column;
        align-items: center;
    }

    .services-content h2 {
        font-size: 1.5em;
    }

    .services-content button {
        width: 100%;
        padding: 1em;
    }
}





/*======================================trainers section===========================*/
.Trainers {
    text-align: center;
    margin: 2em;
}

.Trainers h2 {
    font-size: 3em;
}

.trainers-content {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    margin: 2em auto;
    max-width: 1200px;
}

.content-trainer {
    flex: 1 1 250px; /* Each trainer takes at least 250px */
    max-width: 350px;
    text-align: center;
}

.content-trainer img {
    width: 100%; /* Responsive image scaling */
    height: auto;
    border-radius: 10px;
}

.content-trainer h3 {
    margin-top: 0.5em;
    font-size: 1.2em;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .Trainers h2 {
        font-size: 2.5em;
    }
    .trainers-content {
        gap: 1.5em;
    }
}

@media (max-width: 768px) {
    .Trainers h2 {
        font-size: 2em;
    }
    .content-trainer {
        flex: 1 1 45%; /* Two per row */
    }
}

@media (max-width: 480px) {
    .Trainers h2 {
        font-size: 1.8em;
    }
    .content-trainer {
        flex: 1 1 100%; /* One per row */
    }
}



/*========================banner section=======================*/
.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em 1em;
}

.banner-content {
  text-align: center;
  max-width: 1000px;
  margin: auto;
}

.banner-content h2 {
  font-size: 3em;
  background-color: red;
  min-height: 4em;
  padding: 1.5em 1em;
  color: white;
  border-radius: 10px;
  line-height: 1.4;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .banner-content h2 {
    font-size: 2.5em;
    padding: 1.2em 1em;
  }
}

@media (max-width: 768px) {
  .banner-content h2 {
    font-size: 2em;
    min-height: auto;
    padding: 1em;
  }
}

@media (max-width: 480px) {
  .banner-content h2 {
    font-size: 1.5em;
    padding: 0.8em;
  }
}


/*=========================================schedule section========================*/
.working {
    text-align: center;
    margin: 2em;
}

.working h2 {
    font-size: 3em;
    text-align: center;
}

table {
    width: 100%;
    max-width: 800px;
    margin: auto;
    border-collapse: collapse;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

caption {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px 16px;
    text-align: center;
}

thead th {
    background-color: #222;
    color: #fff;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.holiday {
    background-color: #ffefc2;
    font-weight: bold;
}

.trainer-info {
    font-size: 0.95em;
    color: #555;
}

/* Scrollable container for small screens */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Adjust fonts for smaller screens */
@media (max-width: 700px) {
    table, th, td {
        font-size: 14px;
    }
    caption {
        font-size: 20px;
    }
    .working h2 {
        font-size: 2.5em;
    }
}

/* Turn table into stacked cards on very small screens */
@media (max-width: 500px) {
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none; /* hide headers */
    }

    tr {
        margin-bottom: 1em;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    td {
        border: none;
        text-align: left;
        padding: 8px 10px;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #222;
    }
}



/*=======================================news section===============================*/
.News {
  margin: 2em;
}

.News-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* allows stacking on small screens */
  gap: 1em;
}

.News-intro h2 {
  font-size: 2em;
}

.News-intro button {
  padding: 1em 2.5em;
  border: none;
  border-radius: 20px;
  background-color: red;
  color: white;
  cursor: pointer;
}

.news-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.content-news {
  position: relative;
}

.content-news img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

.content-news p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6); /* better contrast */
  color: #fff;
  padding: 10px;
  margin: 0;
  font-size: 0.9em;
  border-radius: 0 0 20px 20px;
  text-align: center;
}

.hidden {
  display: none;
}

.content-news {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.content-news.show {
  opacity: 1;
  transform: translateY(0);
}


/*=================================form styles======================================*/
.form-body{
          font-family: Arial, sans-serif;
      background: black;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      margin: 0;
}
    .booking-form {
      background: black;
      padding: 2em;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(225, 224, 224, 0.1);
      width: 100%;
      max-width: 400px;
    }

    .booking-form h2 {
      text-align: center;
      margin-bottom: 1em;
      color: #e63946;
    }

    .booking-form label {
      display: block;
      margin: 0.5em 0 0.2em;
      font-weight: bold;
    }

    .booking-form input,
    .booking-form select {
      width: 100%;
      padding: 0.8em;
      margin-bottom: 1em;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 1em;
    }

    .booking-form button {
      width: 100%;
      padding: 1em;
      background: #e63946;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 1em;
      cursor: pointer;
      transition: background 0.3s;
    }

    .booking-form button:hover {
      background: #d62828;
    }

    /* Custom Success Popup */
    .popup {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.6);
      display: flex;
      justify-content: center;
      align-items: center;
      visibility: hidden;
      opacity: 0;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .popup.active {
      visibility: visible;
      opacity: 1;
    }

    .popup-content {
      background: black;
      color: white;
      padding: 2em;
      border-radius: 12px;
      text-align: center;
      max-width: 350px;
      box-shadow: 0 4px 12px rgba(252, 250, 250, 0.2);
      animation: popIn 0.3s ease;
    }

    .popup-content h3 {
      margin: 0 0 0.5em;
      font-size: 1.4em;
      color: #2d6a4f;
    }

    .popup-content p {
      font-size: 1em;
      color: white;
      margin-bottom: 1em;
    }

    .popup-content button {
      padding: 0.7em 1.5em;
      background: red;
      color: #fff;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .popup-content button:hover {
      background: #1b4332;
    }

    @keyframes popIn {
      from { transform: scale(0.7); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

/*==============================footer section===================================*/
.footer {
    text-align: center;
    padding: 4em 2em;
    background-color: black;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 4em;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
}

.content-footer {
    margin: 1.5em;
    min-width: 200px; /* ensures blocks don’t shrink too much */
}

.content-footer h4 {
    margin-bottom: 1.2em;
    font-size: 1.2em;
}

.content-footer ul {
    list-style: none;
    padding: 0;
}

.content-footer ul li {
    margin: 0.5em 0;
}

.content-footer ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.content-footer ul li a:hover {
    color: red;
}

/* Responsive styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* stack vertically */
        align-items: center;
        gap: 2em;
    }

    .content-footer {
        margin: 0;
    }
}
