/* ====================================== 
   TRAINING & COURSES PAGE STYLES
====================================== */

/* Body class is set in HTML.
   Global stylesheet defines --primary, --accent, --dark, and brand variables.
*/

/* ---------- HERO SECTION ---------- */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: var(--brand-purple);
  color: #333;
  border-radius: 0 0 12px 12px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 15px;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  margin: 15px auto;
  max-width: 800px;
  line-height: 1.6;
}

/* ---------- SERVICE CONTENT ---------- */
.service-content {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.service-content h2 {
  color: var(--primary);
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 20px;
  text-align: center;
}

/* Service overview sections */
.service-overview {
  margin-bottom: 40px;
}

.service-overview p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 850px;
  margin: 0 auto 40px;
}

/* ---------- SERVICE COMPONENTS (Cards) ---------- */
.service-components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.service-card {
  background: #f7f9fb;
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid var(--accent);
  border-top: 5px solid #06D6A0; /* ✅ Added green top border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.service-card li {
  font-size: 0.95rem;
  color: #555;
  padding: 5px 0;
}

/* ---------- WHY CHOOSE SECTION ---------- */
.why-choose {
  margin-bottom: 40px;
  text-align: center;
}

.why-choose ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.why-choose li {
  background: #e9eff5;
  padding: 15px 25px;
  border-radius: 8px;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  text-align: center;
  background: #f7f9fb;
  padding: 40px 20px;
  border-radius: 12px;
  margin-top: 40px;
}

.cta-section h2 {
  color: var(--primary);
  margin-bottom: 10px;
}

.cta-section p {
  color: #555;
  margin-bottom: 20px;
}

/* ---------- CTA BUTTON ---------- */
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.25s ease;
}

.cta-btn:hover {
  background: var(--brand-purple-dark);
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 768px) {
  .hero {
    padding: 60px 15px;
  }

  .service-content {
    padding: 0 15px;
  }

  .service-components {
    grid-template-columns: 1fr;
  }

  .why-choose ul {
    grid-template-columns: 1fr; /* Stack items on small screens */
  }
}
