/* =================================================
OS HERO
================================================= */

/* Base */
.oshero{
  width:100%;
}

.oshero,
.oshero *{
  box-sizing:border-box;
}

/* Card */
.oshero-card{
  position:relative;
  height:100%;
  min-height:260px;
}

.oshero-card__link{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  text-decoration:none;
  color:inherit;
  border-radius:26px;
  overflow:hidden;
  background:#121212;
  cursor:pointer;
}

/* Background */
.oshero-card__bg{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-size:cover;
  background-position:center;
  transform:scale(1);
  transition:transform 450ms ease;
}

.oshero-card__link:hover .oshero-card__bg{
  transform:scale(1.04);
}

/* Overlay */
.oshero-card__overlay{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0.10),
    rgba(0,0,0,0.28),
    rgba(0,0,0,0.72)
  );
}

/* Badges */
.oshero-card__badges{
  position:absolute;
  top:16px;
  left:16px;
  right:16px;
  z-index:6;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.oshero-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:0.02em;
  text-transform:uppercase;
  line-height:1;
}

/* Colors */
.oshero-badge--cat{
  background:#0082bb;
  color:#ffffff;
}

.oshero-badge--sub{
  background:#42d7db;
  color:#071019;
}

/* Content */
.oshero-card__content{
  position:absolute;
  left:18px;
  right:18px;
  bottom:16px;
  z-index:4;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-top:96px;
}

/* Title */
.oshero-title{
  margin:0;
  color:#ffffff;
  font-weight:900;
  line-height:1.10;
  text-shadow:0 10px 24px rgba(0,0,0,0.55);
}

/* Meta */
.oshero-meta{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,0.90);
  font-weight:600;
}

.oshero-dot{
  opacity:0.85;
}

/* =================================================
SLIDER
================================================= */

.oshero--slider{
  width:100%;
}

.oshero--slider .swiper-slide{
  height:520px;
}

.oshero--slider .oshero-card__content{
  left:24px;
  right:24px;
  bottom:22px;
  padding-top:96px;
}

/* Slider keeps rounded corners */
.oshero--slider .oshero-card__link{
  border-radius:26px;
}

/* Slider arrows */
.oshero-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:20;
  width:48px;
  height:48px;
  border:0;
  border-radius:14px;
  cursor:pointer;
  background:rgba(0,0,0,0.35);
  color:#ffffff;
  line-height:48px;
  text-align:center;
}

.oshero-prev{
  left:12px;
}

.oshero-next{
  right:12px;
}

.oshero-nav:hover{
  background:rgba(0,0,0,0.55);
}

/* =================================================
GRID
Full width
No rounded corners
50/50 layout:
Left = 1 big article
Right = 4 smaller articles
================================================= */

.oshero--grid{
  width:100%;
}

.oshero--grid .oshero-grid{
  width:100%;
}

.oshero--grid .oshero-grid--5{
  display:grid;
  width:100%;
  gap:20px;
  grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;
  align-items:stretch;
}

/* Left side big article spans 2 rows */
.oshero--grid .oshero-grid__hero{
  grid-column:1;
  grid-row:1 / span 2;
}

/* Right side 4-card block */
.oshero--grid .oshero-grid__a{
  grid-column:2;
  grid-row:1;
}

.oshero--grid .oshero-grid__b{
  grid-column:2;
  grid-row:1;
}

/* Nested feel by splitting the right side cards themselves */
.oshero--grid .oshero-grid__a,
.oshero--grid .oshero-grid__b,
.oshero--grid .oshero-grid__c,
.oshero--grid .oshero-grid__d{
  min-width:0;
}

.oshero--grid .oshero-grid__c{
  grid-column:2;
  grid-row:2;
}

.oshero--grid .oshero-grid__d{
  grid-column:2;
  grid-row:2;
}

/* Make right side actually 2x2 */
.oshero--grid .oshero-grid__a,
.oshero--grid .oshero-grid__b,
.oshero--grid .oshero-grid__c,
.oshero--grid .oshero-grid__d{
  position:relative;
}

.oshero--grid .oshero-grid__a{
  margin-right:calc(50% + 10px);
}

.oshero--grid .oshero-grid__b{
  margin-left:calc(50% + 10px);
}

.oshero--grid .oshero-grid__c{
  margin-right:calc(50% + 10px);
}

.oshero--grid .oshero-grid__d{
  margin-left:calc(50% + 10px);
}

/* Remove rounded corners only in grid */
.oshero--grid .oshero-card__link{
  border-radius:0;
}

/* Full bleed card feel in grid */
.oshero--grid .oshero-card{
  min-height:300px;
}

.oshero--grid .oshero-card--xl{
  min-height:620px;
}

.oshero--grid .oshero-card--sm{
  min-height:300px;
}

/* Grid spacing for small cards */
.oshero--grid .oshero-card--sm .oshero-card__content{
  left:16px;
  right:16px;
  bottom:14px;
  padding-top:96px;
}

.oshero--grid .oshero-card--sm .oshero-card__badges{
  top:14px;
  left:14px;
}

/* =================================================
Prevent click blocking
================================================= */

.oshero-card__bg,
.oshero-card__overlay,
.oshero-card__content,
.oshero-card__badges{
  pointer-events:none;
}

/* Prevent text selection */
.oshero-card__link,
.oshero-card__content,
.oshero-title,
.oshero-meta,
.oshero-card__badges{
  user-select:none;
  -webkit-user-select:none;
}

/* =================================================
Responsive
================================================= */

@media (max-width:1100px){

  .oshero--grid .oshero-grid--5{
    grid-template-columns:1fr;
    grid-template-rows:auto;
  }

  .oshero--grid .oshero-grid__hero,
  .oshero--grid .oshero-grid__a,
  .oshero--grid .oshero-grid__b,
  .oshero--grid .oshero-grid__c,
  .oshero--grid .oshero-grid__d{
    grid-column:1;
    grid-row:auto;
    margin-left:0;
    margin-right:0;
  }

  .oshero--grid .oshero-card--xl{
    min-height:520px;
  }

  .oshero--grid .oshero-card--sm{
    min-height:300px;
  }
}

@media (max-width:768px){

  .oshero--slider .swiper-slide{
    height:420px;
  }

  .oshero--grid .oshero-card--xl{
    min-height:420px;
  }

  .oshero--grid .oshero-card--sm{
    min-height:280px;
  }

  .oshero-card__content{
    padding-top:104px;
  }
}

@media (max-width:899px){
  .oshero-nav{
    width:42px;
    height:42px;
    line-height:42px;
  }
}