* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background: #fff;
  color: var(--brand-text-dark);
  line-height: 1.6;
}

.hero {
  position: relative;
  text-align: center;
  color: #fff;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}
.hero-content h1 {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.hero-content h1 span {
  color: var(--brand-highlight);
}
.hero-content p {
  color: #ddd;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- COURSES SECTION --- */
.courses {
  background: #fff;
  color: white;
  padding: 100px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.courses h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- GRID --- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

/* --- CARD --- */
.course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 350px;
  /* height: 460px; */
  margin: auto;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* --- IMAGE --- */
.course-card img {
  width: 100%;
  height: 180px;
  object-fit: fill;
}

/* --- INFO --- */
.course-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

.course-info p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 8px;
}

/* Details row */
.course-detail {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #555;
  font-size: 0.95rem;
}

.course-detail img {
  width: auto;
  height: 33px;
  object-fit: cover;
  margin-right: 5px;
}

/* --- BUTTON --- */
.course-info button {
  align-self: center;
  margin-top: 10px;
  background: #ffffff;
  color: #000;
  font-weight: 600;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease, box-shadow 0.4s ease;
  position: relative;
  z-index: 0;
}

/* 3D hover with subtle glow */
.course-info button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 12px rgba(255, 255, 255, 0.6);
  background: #fefefe;
}

/* Add a soft inner glow focus effect */
.course-info button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Closed state (disabled button) */
.course-info button.closed {
  background: #f3f3f3;
  color: #777;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.course-info button.closed:hover {
  transform: none;
  box-shadow: none;
  background: #f3f3f3;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 0.8rem;
  }
}
