/* ── On-Demand Education Page ── */

.ondemand-hero,
.live-events-hero {
  background: linear-gradient(135deg, #1a2744 0%, #2c3e6b 50%, #1a2744 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ondemand-hero::before,
.live-events-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('') center/cover no-repeat;
  opacity: 0.3;
}

.ondemand-hero-overlay,
.live-events-hero-overlay {
  position: relative;
  z-index: 1;
}

.ondemand-hero h1,
.live-events-hero h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .ondemand-hero,
  .live-events-hero {
    padding: 50px 15px;
  }
  .ondemand-hero h1,
  .live-events-hero h1 {
    font-size: 28px;
  }
}

/* ── Intro Section ── */

.ondemand-intro,
.live-events-intro {
  padding: 40px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.ondemand-disclaimer {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  border-left: 4px solid #a89072;
  padding-left: 16px;
  margin-bottom: 20px;
}

.ondemand-explore {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.ondemand-explore a {
  color: #a89072;
  font-weight: 600;
  text-decoration: underline;
}

.ondemand-explore a:hover {
  color: #8a7560;
}

/* ── On-Demand Course Grid ── */

.ondemand-courses {
  padding: 0 20px 60px;
}

.ondemand-courses .container-mor {
  max-width: 960px;
  margin: 0 auto;
}

.ondemand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 640px) {
  .ondemand-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.ondemand-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.ondemand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.ondemand-card-image {
  width: 100%;
  overflow: hidden;
}

.ondemand-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.ondemand-card:hover .ondemand-card-image img {
  transform: scale(1.03);
}

.ondemand-card-info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ondemand-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a2744;
  line-height: 1.4;
}

.ondemand-card-meta {
  font-size: 13px;
  color: #888;
}

/* ── Live Events Page ── */

.live-events-intro {
  text-align: center;
}

.live-events-intro h2 {
  color: #1a2744;
  font-size: 28px;
  margin-bottom: 16px;
}

.live-events-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.live-events-list {
  padding: 0 20px 60px;
}

.live-events-list .container-mor {
  max-width: 960px;
  margin: 0 auto;
}

.live-events-list h2 {
  font-size: 24px;
  color: #1a2744;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #a89072;
}

.live-events-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.live-event-card {
  display: grid;
  grid-template-columns: 200px 1fr 160px;
  gap: 20px;
  align-items: start;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #a89072;
  transition: box-shadow 0.2s ease;
}

.live-event-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .live-event-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.live-event-date {
  display: flex;
  flex-direction: column;
}

.live-event-day {
  font-weight: 700;
  font-size: 15px;
  color: #1a2744;
}

.live-event-time {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.live-event-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-event-title {
  font-size: 17px;
  font-weight: 600;
  color: #a89072;
  text-decoration: none;
  line-height: 1.4;
}

.live-event-title:hover {
  color: #8a7560;
  text-decoration: underline;
}

.live-event-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: #666;
}

.live-event-meta strong {
  color: #444;
}

.live-event-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
  align-self: center;
}

.live-event-location .fas {
  color: #a89072;
  font-size: 16px;
}

@media (max-width: 768px) {
  .live-event-location {
    align-self: start;
  }
}
