* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Ubuntu", system-ui;
  font-weight: 300;
  font-style: normal;
  box-sizing: border-box;
  /* background-color: #f4f4f4; */
}

hr {
  margin: 2rem 0;
}
/* Header Section */
header {
  text-align: center;
  background-color: #fff;
  color: #004d40;
  padding: 2rem 0;
  background-image: url(./assets/exercise-gif.gif);
  height: 70vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 90vh;
  position: relative;
  /* border-bottom: 2px solid #333; */
}

.header-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* height: 70vh; */
  background-color: rgba(40, 210, 71, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
}

.exercise-purpose-section {
  /* Similar structure as diet-purpose-section */
  padding: 20px; /* Padding for spacing */
  border-radius: 8px; /* Rounded corners */

  margin: 20px auto; /* Centered with margin */
  max-width: 800px; /* Maximum width for readability */
  text-align: justify; /* Centered text */
}

@media (max-width: 768px) {
  .exercise-purpose-section {
    margin: 20px;
  }
}

.exercise-purpose-section h2 {
  font-size: 28px; /* Size of the heading */
  margin-bottom: 15px; /* Space below the heading */
  text-align: center; /* Center the heading */
}

.exercise-purpose-section p {
  font-size: 18px; /* Font size for the paragraph */
  line-height: 1.6; /* Increased line height for readability */
}

/* Exercise Categories Section */
.exercise-categories {
  padding: 1rem 2rem;
  text-align: center;
}

.exercise-categories h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.category-link {
  text-decoration: none;
  color: inherit;
  flex: 0 0 25%;
  max-width: 300px;
}

.category-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(10, 10, 10, 0.5);
  text-align: center;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  border-radius: 10px;
  height: 200px;
  object-fit: cover;
}

.category-card h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
}

.category-card p {
  margin-top: 1rem;
  font-size: 1rem;
  color: #666;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(10, 10, 10, 0.5);
}

@media (max-width: 768px) {
  .category-link {
    flex: 1 1 100%;
  }
}

/* Exercise Roadmap Section */
.exercise-roadmap {
  /* background-color: rgb(217, 225, 228); */
  padding: 1.5rem 1rem;
  text-align: center;
}

.exercise-roadmap h2 {
  font-size: 2.5rem;
  color: rgb(56, 55, 55);
  margin-bottom: 2rem;
}

.roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.roadmap-step {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 8px rgba(10, 10, 10, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 80%;
}

.roadmap-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ffe0b2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1.5rem;
  font-size: 2rem;
  color: rgb(56, 55, 55);
}

.cardio-icon {
  background-color: #c5e1a5;
}
.flexibility-icon {
  background-color: #81d4fa;
}
.strength-icon {
  background-color: #ffccbc;
}
.hiit-icon {
  background-color: #d1c4e9;
}
.core-icon {
  background-color: aquamarine;
}

.roadmap-content h3 {
  font-size: 1.8rem;
  color: rgb(56, 55, 55);
  margin-bottom: 0.5rem;
}

.roadmap-content p {
  font-size: 1rem;
  color: #666;
}

.roadmap-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(10, 10, 10, 0.5);
}

@media (max-width: 768px) {
  .roadmap-step {
    flex-direction: column;
    text-align: center;
  }

  .roadmap-icon {
    margin-bottom: 1rem;
  }
}

/* Workout Videos Section */
.workout-section {
  margin: 0 auto;
  padding: 20px 0;
  /* background-color: rgb(217, 225, 228); */
  text-align: center;
}

.workout-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(10, 10, 10, 0.5);
  overflow: hidden;
  width: 250px;
}

.card iframe {
  width: 100%;
  height: auto;
}

.card-text {
  padding: 15px;
}

.card-text h3 {
  margin: 10px 0 5px;
  font-size: 1.2em;
}

.card-text p {
  font-size: 0.9em;
  color: #555;
}

.explore-channel {
  margin-top: 30px;
}

.explore-channel p {
  font-size: 1em;
}

.explore-channel a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

@media (max-width: 600px) {
  .workout-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* Exercises Container */
.exercise-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.exercise-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(10, 10, 10, 0.5);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  flex: 1 1 calc(33.333% - 40px);
  max-width: calc(33.333% - 40px);
}

.exercise-card img {
  width: 120px;
  height: 70px;
  object-fit: contain;
}

.exercise-info h3 {
  margin: 0;
  font-size: 1.25rem;
  color: rgb(56, 55, 55);
}

.exercise-info p {
  margin: 0;
  font-size: 1rem;
  color: #666;
}

.exercise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(10, 10, 10, 0.5);
}

@media (max-width: 768px) {
  .exercise-card {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .exercise-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Gym equipments and their alternative */
.gym-equipment-alternatives {
  padding: 2rem;
}

.gym-equipment-alternatives h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.equipment-section {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 1.5rem;
  margin: 2rem 4rem;
  /* margin-bottom: 2rem; */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(10, 10, 10, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

@media (max-width: 768px) {
  .equipment-section {
    margin: 2rem;
  }
}

.equipment-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(10, 10, 10, 0.5);
}

.equipment-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.equipment-img.left {
  margin-right: 1rem;
}

.equipment-img.right {
  margin-left: 1rem;
}

.equipment-info {
  flex: 1;
  text-align: center;
}

.equipment-info h2 {
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.equipment-info p {
  font-size: 1.1rem;
  color: #333;
}

@media (max-width: 768px) {
  .equipment-section {
    flex-direction: column;
    text-align: center;
  }

  .equipment-img {
    margin: 0 0 1rem 0;
    width: 100%;
  }

  .equipment-info {
    margin-bottom: 1rem;
  }
}

/* faq-section */
.faq-section {
  margin: 0 10%;
  /* padding: 2rem; */
  margin-bottom: 2rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-question {
  width: 100%;
  background-color: #f1f1f1;
  border: none;
  outline: none;
  padding: 1rem;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: #ddd;
}

.faq-answer {
  display: none;
  padding: 1rem;
  background-color: #ffffff;
  border-top: 1px solid #ccc;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-icon {
  font-size: 1.5rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.section {
  padding: 50px 0px;
  text-align: center;
  border-bottom: 2px solid #333;
}

.section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.section p {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}