/* =========================
   THEME 1 — home.css
   Home-specific layout only
========================= */

/* TOP GRID (Big left + side list) */
.topGrid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  align-items: start;
}

/* LEFT BIG */
.lead{
  border: 0;
}

.lead__media{
  display:block;
  border-radius: var(--media-radius);
  overflow: hidden;
  background: var(--surface);
}

.lead__media img,
.lead__media picture img{
  width: 100%;
  height: auto;
  display:block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.lead__body{
  padding-top: 14px;
}

.lead__title{
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.lead__title a:hover{ text-decoration: underline; }

.lead__desc{
  margin: 8px 0 10px;
  color: var(--text);
  font-weight: 400;
  opacity: 0.85;
  max-width: 70ch;
}

.lead__meta{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* RIGHT LIST (4 stacked) */
.side{
  display:flex;
  flex-direction: column;
  gap: 14px;
}

/* whole row is the link */
.sideItem{
  display:flex;
  align-items:flex-start;
  gap: 14px;
  color: inherit;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sideItem:hover .sideItem__title{ text-decoration: underline; }

.sideItem:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}

.sideItem__text{
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  flex-direction: column;
  gap: 4px;
}

.sideItem__title{
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.sideItem__desc{
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--text);
  opacity: 0.78;
  max-width: 42ch;
}

.sideItem__meta{
  margin-top: 2px;
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.sideItem__thumb{
  flex: 0 0 92px;
  width: 92px;
  height: 62px;
  border-radius: var(--media-radius);
  overflow:hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.sideItem__thumb img,
.sideItem__thumb picture img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Browse by category blocks (Home only) */
.categoryBlocks{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.catBlock{
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--bg);
}

.catBlock__head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.catBlock__title{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.catBlock__link{
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}
.catBlock__link:hover{ color: var(--text); text-decoration: none; }

.catBlock__list{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.mini{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  color: inherit;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.mini:hover{ filter: brightness(0.98); text-decoration: none; }

.mini__title{
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.mini__date{
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  margin-top: 2px;
}

.empty{
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 0 2px;
}

/* Responsive */
@media (max-width: 980px){
  .topGrid{ grid-template-columns: 1fr; }

  .side{
    border-top: 1px solid var(--border);
    padding-top: 14px;
  }
}

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

  .sideItem__thumb{
    flex-basis: 84px;
    width: 84px;
    height: 56px;
  }
}

/* =========================
   HERO SLIDER (Home)
========================= */

.hero{
  position: relative;
  width: 100%;
}

/* Slides stack */
.hero__slides{
  position: relative;
}

.hero__slide{
  display: none;
}

.hero__slide.is-active{
  display: block;
}

/* Media */
.hero__media{
  position: relative; /* anchor for shade + dots */
  display: block;
  border-radius: var(--media-radius, var(--radius-xl));
  overflow: hidden;
  background: var(--surface);
}

/* Image */
.hero__media img,
.hero__media picture img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Readability gradient */
.hero__shade{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0)
  );
  pointer-events: none;
  z-index: 2;
}

/* Dots INSIDE the image */
.hero__media .hero__dots{
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: inline-flex;
  gap: 8px;
  z-index: 3;          /* above shade */
  pointer-events: auto; /* clickable */
}

.heroDot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.9;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.heroDot.is-active{
  background: rgba(255,255,255,0.95);
  transform: scale(1.25);
  opacity: 1;
}

.heroDot:focus-visible{
  outline: 2px solid rgba(255,255,255,0.85);
  outline-offset: 3px;
}

/* Text under image */
.hero__body{
  padding-top: 14px;
}

.hero__title{
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.hero__title a:hover{
  text-decoration: underline;
}

.hero__desc{
  margin: 8px 0 10px;
  color: var(--text);
  opacity: 0.85;
  max-width: 70ch;
}

.hero__meta{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Arrows */
.hero__arrows{
  position: absolute;
  right: 16px;
  top: 16px;
  display: flex;
  gap: 10px;
  z-index: 5;
  pointer-events: auto;
}

.heroArrow{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.heroArrow:hover{
  background: rgba(0,0,0,0.35);
}

.heroArrow:focus-visible{
  outline: 2px solid rgba(255,255,255,0.85);
  outline-offset: 3px;
}

@media (max-width: 720px){
  .hero__media .hero__dots{
    left: 14px;
    bottom: 14px;
  }

  .hero__title{
    font-size: 22px;
  }
}
