/* ====== Global Reset ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #ffffff;
  color: #1c1c1c;
}

/* ====== Root Vars ====== */
:root {
  --bg: #ffffff;
  --card: #151a21;
  --text: #1c1c1c;
  --muted: #6c7a91;
  --brand: #43c6ac;
  --brand-2: #191654;
  --accent: #5eead4;
  --ring: rgba(94, 234, 212, .35);
  --shadow: 0 15px 35px rgba(0,0,0,.1);
  --radius: 16px;
  --gap: 24px;
}

/* ================= HERO SLIDER ================= */
.hero-slider {
  position: relative;
  height: 85vh;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: zoomOut 8s infinite ease-in-out;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 40, 90, 0.6);
  z-index: 1;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
@keyframes zoomOut {
  0% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
}
.hero-content h1 {
  font-size: 40px;
  font-weight: bold;
}
.hero-content p {
  font-size: 16px;
  margin: 10px 0 20px;
}
.hero-content .btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-content .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
}

/* ================= EXCELLENCE SECTION ================= */
.excellence-section {
  padding: 60px 20px;
  background: #f9f9f9;
  color: #222;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.image-side, .text-side {
  flex: 1 1 45%;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease-out;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.image-side img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.text-side h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #002b5c;
}
.text-side p {
  font-size: 18px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .container { flex-direction: column; }
  .image-side, .text-side { flex: 1 1 100%; }
  .text-side h2 { font-size: 28px; text-align: center; margin-top: 20px; }
  .text-side p { text-align: center; }
}

/* ================= TRENDING COURSES ================= */
.trending-courses {
  padding: clamp(48px, 6vw, 96px) 0;
  text-align: center;
}
.trending-courses .container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Title */
.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0 auto 6px;
  display: inline-block; /* 🔹 width = text only */
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.title-divider {
  height: 4px;
  width: 100%; /* 🔹 equal to title width */
  margin: 8px auto 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  display: block;
}
.section-subtitle {
  margin: 0 auto 34px;
  max-width: 65ch;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

/* Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
/* Card */
.course-card {
  background: #ffffff;
  border: 1px solid rgba(68, 139, 231, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .3s;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(99, 95, 95, 0.2);
  border-color: rgba(94, 234, 212, .4);
}
.course-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.course-card:hover img { transform: scale(1.05); }
.course-title {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  margin: 16px 18px 10px;
  color: #000;
  font-weight: 700;
}
.course-divider {
  height: 1px;
  margin: 0 18px 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.15), rgba(255,255,255,.08));
  border-radius: 999px;
}
.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
  margin-top: auto;
}
.course-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #000;
  font-weight: 600;
  font-size: 14px;
}
.course-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px rgba(25,22,84,.35);
  transition: transform .25s ease, box-shadow .35s ease;
  border: 0;
}
.course-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(25,22,84,.4); }
.course-btn:active { transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .courses-grid { grid-template-columns: 1fr; }
  .section-subtitle { margin-bottom: 26px; padding: 0 6px; }
  .course-title { margin: 14px 14px 10px; }
  .course-meta { padding: 0 14px 14px; }
  .title-divider { width: 100%; height: 3px; }
}
.btn-group {
  display: flex;
  gap: 14px;          /* दोनों बटन के बीच spacing */
  justify-content: center;  /* बीच में align */
  margin-top: 20px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Apply Now Button */
.apply-btn {
  background: #28a745;       /* Green */
  color: #fff;
}
.apply-btn:hover {
  background: #218838;
}

/* View All Courses Button */
.view-btn {
  background: #007bff;       /* Blue */
  color: #fff;
}
.view-btn:hover {
  background: #0056b3;
}
