/* === Base Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f5f5f5;
  --color-text: #070505;
  --color-light: #fff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius: 16px;
}

/* === General Typography === */
body {
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

h2 {
  font-weight: 600;
  text-align: left;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(to bottom right, #e0f2fe, #bae6fd);
  color: #111;
    padding:5%;

    padding-top:  173px ;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  gap: 4rem;
}

.hero-text {
  flex: 1 1 45%;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 700;
  color: rgb(24, 24, 24);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text h1 i {
  color: #0369a1;
}

.hero-text p {
  font-size: 1.6rem;
  color: #374151;
  margin-bottom: 30px;
  font-weight: 500;
}

.hero-text .btn {
  background-color: #111827;
  color: #fff;
  padding: 14px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-text .btn i {
  margin-left: 10px;
  transition: transform 0.3s ease;
  margin-top: 2px;
}

.hero-text .btn:hover {
  background-color: #1f2937;
  transform: translateY(-2px);
}

.hero-image {
  flex: 0 1 50%;
  max-width: 750px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  align-self: flex-start;
}

.hero-image img {
  width: 100%;
  max-width: 750px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  height: auto;
}

/* ===== Training Programs Section ===== */
.training-programs {
  /* background-color: #1f2937; */
  padding: 150px 5%;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start; /* Prevent other cards from stretching */
}

.training-card {
  border-radius: 20px;
  padding: 25px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  min-height: 180px;
}

.training-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.training-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.training-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
    color: rgb(24, 24, 24);
  margin-right: 25px;
}

.card-summary {
  font-size: 1.5rem;
  color: #111;
    font-weight: 500 !important;
    opacity: 100%;
      color: rgba(24, 24, 24, 0.842);

}

.card-details {
    font-size: 1.5rem;
  display: none;
  margin-top: 15px;
  color: rgb(24, 24, 24);
}


.card-details p{
    font-weight: 500 !important;
}

.expand-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: absolute;
  right: 18px;
  top: 28px;
}

.expand-btn i {
  transition: transform 0.3s ease;
}

.training-card.expanded .card-details {
  display: block;
}

.training-card.expanded .expand-btn i {
  transform: rotate(180deg);
}

/* .training-card[data-color="coral"] { background-color: #e06c75; color: white; }
.training-card[data-color="gold"] { background-color: #f2c94c; color: black; }
.training-card[data-color="teal"] { background-color: #18a18a; color: white; }
.training-card[data-color="indigo"] { background-color: #3b82f6; color: white; }
.training-card[data-color="purple"] { background-color: #9b5de5; color: white; }
.training-card[data-color="orange"] { background-color: #f18f01; color: black; } */

.training-card{
  background-color:#ffffff;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .hero {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4rem;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: left;
    padding:5%;

    padding-top:  173px ;
  }

  .hero-text {
    order: 2;
    margin-bottom: 60px;
  }

  .hero-image {
    order: 1;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text .btn {
    font-size: 1.3rem;
    padding: 12px 25px;
  }

  .training-programs {
    padding: 70px 5%;
  }

  .training-card {
    padding: 20px;
  }
}
