/* HERO carousel layout */
.hero-carousel{
  position: relative;
  overflow: hidden;
}

.hero-track{
  position: relative;
  display: flex;
  transition: transform 0.6s ease;
}

.hero-slide{
  flex: 0 0 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-slide.is-active{
  opacity: 1;
}

/* card base */
.hero-card{
  border-radius: 18px;
  overflow: hidden;
  background: #f6f6f6;
}

/* styles: split vs wide */
.hero-card.hero-split{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.hero-card.hero-wide{
  display: grid;
  grid-template-columns: 1fr;
}

/* image */
.hero-image img{
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* text */
.hero-text{
  padding: 24px;
}

.hero-title{
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.hero-subtitle{
  margin: 0 0 16px;
  opacity: .8;
}

/* arrows */
.hero-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.hero-prev{ left: 12px; }
.hero-next{ right: 12px; }

/* dots */
.hero-dots{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.hero-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.2);
  cursor: pointer;
}
.hero-dot.is-active{
  background: rgba(0,0,0,.75);
}

/* mobile */
@media (max-width: 768px){
  .hero-card.hero-split{
    grid-template-columns: 1fr;
  }
  .hero-title{
    font-size: 28px;
  }
  .hero-image img{
    max-height: 320px;
  }
}

.home-hero .hero-card{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f6f6;
}

.hero-wide{
  grid-template-columns: 1fr;
}
.hero-split{
  grid-template-columns: 1fr 1fr;
}

.home-hero .hero-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero .hero-text{
  padding: 24px;
  margin: auto;
}

.hero-title{
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.hero-subtitle{
  margin: 0 0 16px;
  opacity: .8;
}

@media (max-width: 768px){
  .home-hero .hero-card{
    grid-template-columns: 1fr;
  }
  .hero-title{ font-size: 28px; }
}

.section-title{
  font-size: 22px;
  font-weight: 700;
}

.tabs-strip{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.tab-btn{
  border: 0;
  background: var(--bg-light);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn.active{
  background: #111;
  color: #fff;
}

.tab-panel{ 
  display: none; 
  position: relative;
}

.tab-panel.active{ display: block; }

.hscroll{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.card-mini{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--bg-light);
  border: 1px solid #eee;
}
.card-mini img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.card-mini-body{ padding: 12px; }
.card-mini-title{ 
  font-weight: 700; 
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-grid{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--bg-light);
  border: 1px solid #eee;
}
.card-grid img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.card-grid-body{ padding: 12px; }
.card-grid-title{ 
  font-weight: 800; 
  line-height: 1.2;
  margin-bottom: 10px;
}
.card-grid-subtitle{ opacity: .7; font-size: 13px; }
