/* =========================================================
   CLASSICX FM - FRONT PAGE
   Eén bron voor de frontpage en hero.
========================================================= */

/* De hero is het enige frontpage-element dat volledig tegen
   header/subheader en sidebar mag aansluiten. */
main.site-content.front-page-content {
  padding: 0;
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  max-width: none;
  box-sizing: border-box;
}

/* Alles NA de hero krijgt weer normale binnenruimte. */
.front-page-content .news-section {
  width: 100%;
  margin: 0;
  padding: 2rem;
  box-sizing: border-box;
}

.front-page-content .cookie-preferences-page,
.front-page-content .cookie-policy-page {
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.front-page-content .cookie-preferences-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
}

.front-page-content .cookie-preferences-content,
.front-page-content .cookie-policy-content {
  max-width: 1125px;
  margin: 0 auto;
}

.programs-section {
  padding: 2rem 2rem 2.5rem;
  background: #f7f7f8;
  overflow: hidden;
}

.programs-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
}

.programs-heading h2 {
  margin: 0;
  color: var(--purple-main);
  font-size: 1.35rem;
  font-weight: 900;
}

.programs-heading h2::before,
.news-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  margin-right: .45rem;
  vertical-align: -.12em;
  background: var(--accent-color);
}

.heading-accent { color: var(--accent-color); }

.programs-controls {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.programs-link {
  margin-right: .35rem;
  color: var(--accent-color);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.programs-arrow {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d7d7da;
  border-radius: 50%;
  background: #ffffff;
  color: #222222;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.programs-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  grid-template-rows: 1fr;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.programs-grid::-webkit-scrollbar { display: none; }

.programs-grid > .program-card { scroll-snap-align: start; }

@media (min-width: 901px) {
  .programs-grid { grid-auto-columns: 190px; }
}

.program-card {
  display: block;
  min-width: 0;
  background: transparent;
  border-radius: 4px;
  overflow: hidden;
}

.program-image-link { display: block; }

.program-image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 4px;
}

.program-image-placeholder {
  display: grid;
  place-items: center;
  background: var(--purple-dark);
  color: var(--accent-color);
  font-size: 3.5rem;
  font-weight: 900;
}

.program-card-body {
  min-width: 0;
  padding: .45rem 0 0;
}

.program-card h3 { margin: 0 0 .3rem; font-size: 1rem; line-height: 1.2; }
.program-card h3 a { color: var(--purple-main); text-decoration: none; }
.program-host { margin: 0; color: var(--text-muted); font-size: .78rem; line-height: 1.3; }
.program-time { display: none; }
.programs-empty { margin: 0; color: var(--text-muted); }

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: stretch;
  background: #ffffff;
}

.schedule-main { min-width: 0; }

.schedule-menu {
  margin: 1.5rem 2rem 1.5rem 0;
  min-height: 230px;
  padding: 1.4rem 1.5rem;
  border-radius: 7px;
  background: #1b1b1b;
  color: #ffffff;
}

.schedule-menu h2 {
  margin: 0 0 1rem;
  color: #30333d;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-menu h2 span {
  display: inline-block;
  margin-right: .35rem;
  padding: .15rem .3rem;
  background: var(--accent-color);
  color: #101116;
}

.schedule-menu nav { display: flex; flex-direction: column; }

.schedule-menu a {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #ffffff;
  font-size: .95rem;
  text-decoration: none;
}

.schedule-menu a:last-child { border-bottom: 0; }
.schedule-menu a:hover { color: var(--accent-color); }

.schedule-section {
  padding: 1.5rem 2rem 2rem;
  background: #ffffff;
}

.schedule-heading { margin-bottom: 1rem; }

.schedule-heading h2 {
  margin: 0;
  color: var(--purple-main);
  font-size: 1.35rem;
  font-weight: 900;
}

.schedule-heading h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  margin-right: .45rem;
  vertical-align: -.12em;
  background: var(--accent-color);
}

.schedule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem 1rem;
}

.schedule-card {
  min-height: 52px;
  position: relative;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .8rem;
  border: 2px solid transparent;
  border-radius: 5px;
  background: #292e3c;
  color: #ffffff;
  overflow: visible;
}

.schedule-card.is-live { border-color: var(--accent-color); }
.schedule-card-link { position: absolute; inset: 0; z-index: 1; }

.schedule-time {
  position: relative;
  z-index: 2;
  padding: .25rem .35rem;
  background: #090c14;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 900;
}

.schedule-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.schedule-avatar-placeholder {
  display: grid;
  place-items: center;
  background: #737b8e;
  color: #ffffff;
  font-size: .7rem;
  font-weight: 900;
}

.schedule-show-name {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-live {
  position: absolute;
  top: -11px;
  right: -.1rem;
  z-index: 3;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: var(--accent-color);
  color: #ffffff;
  font-size: .65rem;
  font-weight: 900;
}

.schedule-empty { margin: 0; color: var(--text-muted); }

.news-section-title {
  margin: 0 0 1.2rem;
  color: var(--purple-main);
  font-size: 1.35rem;
  font-weight: 800;
}

.front-post-card {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.5rem;
  background-color: var(--card-bg);
}

.post-thumbnail-wrapper {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 8px;
}

.post-thumbnail-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .3s ease;
}

.post-thumbnail-wrapper a:hover img {
  transform: scale(1.02);
}

.post-card-title { margin: 0 0 .5rem; }

.post-card-title a {
  color: var(--purple-main);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  transition: color .2s ease;
}

.post-card-title a:hover { color: var(--accent-color); }

.post-meta-data {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: .85rem;
}

.entry-excerpt {
  color: var(--text-color);
  line-height: 1.6;
}

.read-more-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: none;
}

.read-more-link:hover { color: var(--accent-hover); }

@media (max-width: 900px) {
  main.site-content.front-page-content {
    margin-left: 0;
    width: 100%;
    padding: 0;
  }

  .front-page-content .news-section {
    padding: 1rem;
  }

  .front-page-content .cookie-preferences-hero { min-height: 230px; padding: 2.5rem 1rem; }
  .front-page-content .cookie-preferences-content,
  .front-page-content .cookie-policy-content { padding-left: 1rem; padding-right: 1rem; }

  .programs-section { padding: 2rem 1rem 1.5rem; }
  .programs-heading { align-items: flex-start; flex-direction: column; }
  .programs-controls { align-self: stretch; justify-content: space-between; }
  .programs-grid { grid-auto-columns: minmax(170px, 42vw); }
  .program-image { height: 180px; }
  .schedule-section { padding: 1.25rem 1rem 1.5rem; }
  .schedule-list { grid-template-columns: 1fr; }
  .schedule-layout { display: block; }
  .schedule-menu { margin: 0 1rem 1.5rem; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .programs-section,
  .news-section { padding-left: 1.25rem; padding-right: 1.25rem; }

  .schedule-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .schedule-menu { margin-right: 1.25rem; }
  .schedule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
