/* Home page layout polish */

.hero-actions button[data-scroll-target]{border-radius:999px}
.hero-actions button[data-scroll-target]:hover{background:rgba(15,23,42,0.03)}

/* ---- Hero image block ---- */
.hero-aside{
  min-height:380px;
}
.hero-aside-media{
  flex:1;
  min-height:0;
}
.hero-aside-visual{
  position:relative;
  min-height:280px;
  height:100%;
  aspect-ratio:4/3;
  display:block;
  isolation:isolate;
}
.hero-aside-visual img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 40%;
  display:block;
  z-index:0;
  filter:saturate(1.05) contrast(1.04);
}
.hero-aside-visual::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(to top,rgba(15,23,42,0.75) 0%,rgba(15,23,42,0.2) 45%,rgba(15,23,42,0.08) 100%);
  mix-blend-mode:normal;
  opacity:1;
}
.hero-aside-overlay{
  z-index:1;
  background:
    radial-gradient(circle at 18% 12%,rgba(96,165,250,0.18) 0,transparent 42%),
    radial-gradient(circle at 82% 88%,rgba(185,28,28,0.16) 0,transparent 48%);
}
.hero-aside-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:var(--space-5);
  gap:var(--space-4);
  align-items:flex-end;
  background:linear-gradient(to top,rgba(15,23,42,0.92) 0%,rgba(15,23,42,0.55) 70%,transparent 100%);
  backdrop-filter:blur(8px);
}
.hero-aside-title{
  font-size:var(--text-base);
  line-height:1.35;
  max-width:28ch;
}
.hero-aside-footer{
  gap:var(--space-4);
  flex-wrap:wrap;
  padding:var(--space-4) var(--space-5);
}
.hero-aside-footer > div{
  flex:1 1 200px;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.hero-aside-footer strong{
  color:#f8fafc;
  letter-spacing:0.04em;
}

/* ---- Shared feature sections (schedule / editorial / live) ---- */
.schedule-grid,
.editorial-grid,
.live-grid{
  align-items:stretch;
  gap:var(--space-8);
}

.schedule-visual,
.editorial-visual,
.live-visual{
  margin:0;
  border-radius:var(--radius-xl);
  overflow:hidden;
  border:1px solid var(--color-border-subtle);
  background:var(--color-surface-elevated);
  box-shadow:var(--shadow-md);
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:100%;
}

.schedule-visual img,
.editorial-visual img,
.live-visual img{
  width:100%;
  height:auto;
  aspect-ratio:16/11;
  object-fit:cover;
  object-position:center;
  display:block;
  flex:1 1 auto;
  min-height:220px;
}

.schedule-visual-caption,
.editorial-visual-caption,
.live-visual-caption{
  padding:var(--space-5);
  font-size:var(--text-sm);
  line-height:1.55;
  color:var(--color-text-muted);
  border-top:1px solid var(--color-border-subtle);
  background:linear-gradient(to bottom,#f9fafb,#ffffff);
}

/* Stack cards instead of cramped 3-col masonry */
.schedule-grid > .masonry-grid,
.editorial-grid > .masonry-grid{
  column-count:1;
  display:flex;
  flex-direction:column;
  gap:var(--space-5);
  min-width:0;
}

.schedule-grid .masonry-item,
.editorial-grid .masonry-item{
  break-inside:auto;
  margin-bottom:0;
  height:auto;
  padding:var(--space-6);
  gap:var(--space-4);
}

.schedule-grid .card-header,
.editorial-grid .card-header{
  margin-bottom:var(--space-3);
  flex-wrap:wrap;
  gap:var(--space-3);
}

.schedule-grid .card-body,
.editorial-grid .card-body{
  display:flex;
  flex-direction:column;
  gap:var(--space-3);
}

.schedule-grid .card-body p,
.editorial-grid .card-body p{
  margin:0;
  line-height:1.65;
}

.schedule-grid .card-footer,
.editorial-grid .card-footer,
.live-grid .card-footer,
.data-grid .card-footer{
  margin-top:auto;
  padding-top:var(--space-4);
  flex-wrap:wrap;
  gap:var(--space-3);
  align-items:flex-start;
}

.schedule-grid .card-kpi-value,
.editorial-grid .card-kpi-value{
  font-size:var(--text-base);
  line-height:1.35;
  white-space:normal;
}

.contact-grid{align-items:flex-start}
.contact-inline-form{display:flex;flex-direction:column;gap:var(--space-4);margin-top:var(--space-3)}
.contact-inline-fields{display:flex;gap:var(--space-4);flex-wrap:wrap}
.contact-inline-field{flex:1 1 180px;min-width:0}
.contact-list{display:flex;flex-direction:column;gap:var(--space-4)}
.contact-list h4{font-family:var(--font-serif);font-size:var(--text-lg);margin-bottom:4px;color:var(--color-text)}

/* ---- Crop / overflow guards ---- */
.hero-grid > *,
.grid-2 > *,
.grid-3 > *,
.schedule-grid > *,
.editorial-grid > *,
.live-grid > *,
.data-grid > *{
  min-width:0;
  max-width:100%;
}

.section-header{
  flex-wrap:wrap;
  align-items:flex-start;
}
.section-actions{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-3);
  min-width:0;
}
.ticker-row{
  flex-wrap:wrap;
  border-radius:16px;
  max-width:100%;
}
.ticker-pills{
  min-width:0;
  max-width:100%;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-3);
}
.hero-actions .btn{
  max-width:100%;
}
.card{
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}

@media (max-width:1024px){
  .hero-aside{order:0 !important;min-height:0}
  .hero-aside-visual{aspect-ratio:16/10;min-height:240px}
  .schedule-grid,
  .editorial-grid,
  .live-grid{
    grid-template-columns:1fr;
    gap:var(--space-6);
  }
  .schedule-visual img,
  .editorial-visual img,
  .live-visual img{
    min-height:200px;
    aspect-ratio:16/10;
  }
}

@media (max-width:768px){
  .contact-inline-fields{flex-direction:column}
  .hero-aside-caption{
    flex-direction:column;
    align-items:flex-start;
  }
  .hero-aside-footer{
    flex-direction:column;
    align-items:stretch;
  }
  .hero-aside-footer .btn{
    width:100%;
    justify-content:center;
  }
  .section-header{
    flex-direction:column;
    align-items:flex-start;
  }
  .section-actions{
    width:100%;
  }
  .section-actions .btn{
    width:100%;
    justify-content:center;
  }
  .hero-actions .btn{
    width:100%;
    justify-content:center;
  }
  .card-footer{
    flex-direction:column;
    align-items:stretch;
  }
  .card-footer .btn{
    width:100%;
    justify-content:center;
  }
  .data-grid{
    grid-template-columns:1fr;
  }
  .ticker-row{
    padding:12px 14px;
  }
}

@media (max-width:480px){
  .hero-aside-visual{min-height:200px}
  .schedule-grid .masonry-item,
  .editorial-grid .masonry-item{
    padding:var(--space-5);
  }
}
