/*
 * Catrawarta – Homepage Top Featured
 * v5.7.4
 *
 * Single owner untuk section atas homepage.
 * Featured utama memakai signature navy yang sama dengan header;
 * outer frame tetap dipertahankan, sedangkan inner card/frame dibersihkan.
 * Ornament/background asset tetap dikontrol Catra Theme.
 */

.catra-home-top-featured{
  --catra-top-surface:#ffffff;
  --catra-top-navy:var(--catra-header-bg,#00293e);
  --catra-top-ink:#0b0b0b;
  --catra-top-muted:rgba(0,41,62,.62);
  --catra-top-muted-soft:rgba(0,41,62,.48);
  --catra-top-divider:rgba(0,41,62,.10);
  --catra-top-border:rgba(0,41,62,.12);
  --catra-top-shadow:0 8px 22px rgba(0,41,62,.055);
  --catra-top-radius-card:var(--catra-home-card-radius,4px);
  --catra-top-radius-image:var(--catra-home-media-radius,4px);
  --catra-top-font:"Reddit Sans",Arial,Helvetica,sans-serif;
  position:relative;
  isolation:isolate;
  width:min(1180px,calc(100% - 24px));
  max-width:1180px;
  margin:calc(18px + var(--catra-top-margin,0px)) auto 0;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible;
}

/* Legacy wrappers: presentation dimiliki file ini saja. */
.catra-home-top-featured .catra-top-shell,
.catra-home-top-featured .catra-top-outer,
.catra-home-top-featured .mc-home-widget,
.catra-home-top-featured .mc-hs2-wrap{
  position:relative;
  z-index:2;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible;
}

/* Asset background tetap aktif dan tetap mengikuti setting Theme Panel. */
.catra-home-top-featured .catra-top-ornament{
  position:absolute;
  z-index:1;
  pointer-events:none;
  left:calc(50% + var(--catra-ornament-x,0%));
  top:var(--catra-ornament-y,-28%);
  width:var(--catra-ornament-width,145%);
  max-width:none;
  opacity:var(--catra-ornament-opacity,.18);
  transform:translateX(-50%);
}
.catra-home-top-featured .catra-top-ornament img{
  display:block;
  width:100%;
  height:auto;
  transform:rotate(var(--catra-ornament-rotate,0deg));
  transform-origin:center center;
  image-rendering:auto;
  -webkit-image-rendering:auto;
}

.catra-home-top-featured .catra-top-panel{
  position:relative;
  z-index:2;
  width:100%!important;
  margin:0!important;
  padding:15px!important;
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(0,41,62,.10)!important;
  border-radius:var(--catra-home-card-radius,4px)!important;
  box-shadow:0 14px 34px rgba(0,41,62,.055)!important;
  -webkit-backdrop-filter:blur(9px) saturate(96%);
  backdrop-filter:blur(9px) saturate(96%);
  overflow:visible;
}

.catra-home-top-featured .widget-title,
.catra-home-top-featured .widgettitle,
.catra-home-top-featured .home-widget-title,
.catra-home-top-featured .mc-home-widget-title,
.catra-home-top-featured .catra-section-heading{display:none!important;}

/* Desktop composition. */
.catra-home-top-featured .mc-hs2-grid{
  position:relative;
  z-index:2;
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:13px;
  align-items:stretch;
}
.catra-home-top-featured .mc-hs2-col,
.catra-home-top-featured .mc-hs2-col--featured{
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.catra-home-top-featured .mc-hs2-col--featured{
  display:flex;
  min-width:0;
  align-self:stretch;
}

/* Shared category signature: clean navy eyebrow, no decorative line. */
.catra-home-top-featured .mc-hs2-category-row{
  display:flex;
  align-items:center;
  min-height:13px;
}
.catra-home-top-featured .mc-hs2-category-row::before{content:none!important;display:none!important;}
.catra-home-top-featured .mc-hs2-cat{
  display:inline-flex;
  align-items:center;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  box-shadow:none!important;
  color:var(--catra-top-navy)!important;
  font-family:var(--catra-top-font)!important;
  font-size:10px!important;
  line-height:1.15;
  font-weight:700!important;
  letter-spacing:.07em;
  text-transform:uppercase;
  text-decoration:none!important;
  opacity:.82;
}
.catra-home-top-featured .mc-hs2-cat::before{content:none!important;}
.catra-home-top-featured .mc-hs2-cat:hover,
.catra-home-top-featured .mc-hs2-cat:focus-visible{
  color:var(--catra-top-navy)!important;
  opacity:.82;
  text-decoration:none!important;
}

/* Featured card. */
.catra-home-top-featured .mc-hs2-post--featured{
  position:relative;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-width:0;
  height:100%;
  padding:0!important;
  overflow:hidden;
  border:0!important;
  border-radius:var(--catra-home-card-radius,4px)!important;
  background:var(--catra-top-navy)!important;
  box-shadow:none!important;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-thumb-link{
  display:block;
  margin:0!important;
  overflow:hidden;
  border-radius:var(--catra-home-card-radius,6px) var(--catra-home-card-radius,6px) 0 0!important;
  background:#eef1f3;
}
.catra-home-top-featured .mc-hs2-col--featured .mc-hs2-img{
  display:block;
  width:100%;
  height:250px!important;
  object-fit:cover;
  border:0;
  border-radius:var(--catra-home-card-radius,6px) var(--catra-home-card-radius,6px) 0 0!important;
  box-shadow:none!important;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-thumb-link:hover,
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-thumb-link:focus-visible{
  opacity:1!important;
  filter:none!important;
}
.catra-home-top-featured .mc-hs2-badge--feature{display:none!important;}

.catra-home-top-featured .mc-hs2-copy--feature{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-height:0;
  padding:15px 15px 13px;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-category-row{
  order:1;
  margin-bottom:8px;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-cat{
  color:var(--catra-gold,#dfbb6f)!important;
  opacity:1;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-cat:hover,
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-cat:focus-visible{
  color:var(--catra-gold,#dfbb6f)!important;
  opacity:1;
}
.catra-home-top-featured .mc-hs2-title--feature{
  order:2;
  margin:0!important;
  width:100%;
  max-width:none;
  color:#ffffff!important;
  font-family:var(--catra-top-font)!important;
  font-size:clamp(21px,1.7vw,26px)!important;
  line-height:1.17!important;
  letter-spacing:-.018em;
  font-weight:700!important;
  text-wrap:wrap;
  word-break:normal;
  overflow-wrap:normal;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-title-link{
  color:inherit!important;
  font:inherit!important;
  background:none!important;
  text-decoration:none!important;
  transition:color .18s ease;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-title-link:hover,
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-title-link:focus-visible{
  color:var(--catra-gold,#dfbb6f)!important;
  text-decoration:none!important;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-excerpt{
  order:3;
  display:-webkit-box;
  max-width:100%;
  margin:10px 0 0!important;
  overflow:hidden;
  color:rgba(255,255,255,.78)!important;
  font-family:var(--catra-top-font)!important;
  font-size:12.75px!important;
  line-height:1.5!important;
  font-weight:400!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-meta{
  order:4;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  width:100%;
  margin-top:auto!important;
  padding:11px 0 0!important;
  border:0!important;
  border-top:1px solid rgba(255,255,255,.16)!important;
  color:rgba(255,255,255,.64);
  font-family:var(--catra-top-font)!important;
  font-size:10.5px!important;
  line-height:1.3;
  font-weight:500;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-author,
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-time{
  min-width:0;
  color:rgba(255,255,255,.66)!important;
  text-decoration:none!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-time{
  border-left:0!important;
  padding-left:0!important;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-time::before{
  content:none!important;
  display:none!important;
}
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-author:hover,
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-author:focus-visible{
  color:rgba(255,255,255,.66)!important;
  text-decoration:none!important;
}
.catra-home-top-featured .mc-hs2-actions,
.catra-home-top-featured .mc-hs2-arrow,
.catra-home-top-featured .mc-hs2-more{display:none!important;}

/* Right editorial cards — balanced against the featured story.
 * Important: side cards own their padding/border here; no legacy reset may zero them out.
 */
.catra-home-top-featured .mc-hs2-sidegrid{
  display:flex!important;
  flex-direction:column;
  gap:8px;
  align-self:stretch;
  min-width:0;
  min-height:0;
  height:100%;
  padding:0!important;
  overflow:visible;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.catra-home-top-featured .mc-hs2-sidegrid::before{
  content:"Terbaru";
  display:block;
  flex:0 0 auto;
  margin:0 0 2px;
  padding:0 0 8px;
  border-bottom:2px solid var(--catra-top-navy);
  color:var(--catra-top-ink);
  font-family:var(--catra-top-font)!important;
  font-size:18px;
  line-height:1.15;
  font-weight:750;
  letter-spacing:-.02em;
}
.catra-home-top-featured .mc-hs2-sidegrid > .mc-hs2-post--side{
  position:relative;
  display:grid!important;
  grid-template-columns:98px minmax(0,1fr);
  grid-template-areas:
    "thumb category"
    "thumb title"
    "thumb meta";
  grid-template-rows:auto auto auto;
  column-gap:12px;
  row-gap:0;
  align-items:start;
  align-content:center;
  flex:1 1 0;
  min-width:0;
  min-height:0;
  height:auto;
  margin:0!important;
  padding:9px 10px!important;
  overflow:hidden;
  border:1px solid rgba(0,41,62,.12)!important;
  border-radius:var(--catra-home-card-radius,4px)!important;
  background:#fff!important;
  box-shadow:0 3px 12px rgba(0,41,62,.025)!important;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.catra-home-top-featured .mc-hs2-sidegrid > .mc-hs2-post--side:hover,
.catra-home-top-featured .mc-hs2-sidegrid > .mc-hs2-post--side:focus-within{
  border-color:rgba(0,41,62,.20)!important;
  box-shadow:0 6px 18px rgba(0,41,62,.045)!important;
  transform:translateY(-1px);
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-thumb-link{
  grid-area:thumb;
  align-self:center;
  display:block;
  width:98px;
  height:66px;
  margin:0!important;
  overflow:hidden;
  border-radius:var(--catra-home-media-radius,4px)!important;
  background:#eef1f3;
}
.catra-home-top-featured .mc-hs2-sidegrid .mc-hs2-img{
  display:block;
  width:100%;
  height:100%!important;
  object-fit:cover;
  border:0;
  border-radius:var(--catra-home-media-radius,4px)!important;
  box-shadow:none!important;
  transition:none!important;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-thumb-link:hover,
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-thumb-link:focus-visible{
  opacity:1!important;
  filter:none!important;
  transform:none!important;
}
.catra-home-top-featured .mc-hs2-side-badge{display:none!important;}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-category-row{
  grid-area:category;
  align-self:end;
  margin:0 0 4px!important;
  min-height:0;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-cat{
  color:var(--catra-top-navy)!important;
  opacity:1;
  font-size:9.5px!important;
  line-height:1.1!important;
  font-weight:800!important;
  letter-spacing:.075em;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-title{
  grid-area:title;
  align-self:start;
  display:-webkit-box;
  margin:0!important;
  padding:0!important;
  overflow:hidden;
  color:#111827!important;
  font-family:var(--catra-top-font)!important;
  font-size:14px!important;
  line-height:1.28!important;
  letter-spacing:-.012em;
  font-weight:700!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-title-link{
  color:inherit!important;
  font:inherit!important;
  background:none!important;
  text-decoration:none!important;
  transition:color .18s ease;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-title-link:hover,
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-title-link:focus-visible{
  color:var(--catra-top-navy)!important;
  text-decoration:none!important;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-meta{
  grid-area:meta;
  align-self:end;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  gap:0 7px;
  min-width:0;
  margin:7px 0 0!important;
  padding:0!important;
  border:0!important;
  color:var(--catra-top-muted-soft);
  font-family:var(--catra-top-font)!important;
  font-size:10px!important;
  line-height:1.25;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-author,
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-time{
  min-width:0;
  color:var(--catra-top-muted-soft)!important;
  text-decoration:none!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-author{
  font-weight:500;
  max-width:66%;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-time{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  border-left:0!important;
  padding-left:0!important;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-time::before{
  content:"•"!important;
  display:inline-block!important;
  margin-right:7px;
  color:rgba(0,41,62,.34)!important;
  font-weight:700;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-author:hover,
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-author:focus-visible{
  color:var(--catra-top-muted-soft)!important;
  text-decoration:none!important;
}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-author--empty{display:none!important;}
/* Arrow removed in v5.7.4 to give article titles more usable width. */
.catra-home-top-featured .mc-hs2-side-actions,
.catra-home-top-featured .mc-hs2-mini-arrow{display:none!important;}
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-meta-row,
.catra-home-top-featured .mc-hs2-post--side .mc-hs2-byline,
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-meta-row,
.catra-home-top-featured .mc-hs2-post--featured .mc-hs2-byline{display:none!important;}

@media (min-width:992px){
  .catra-home-top-featured .mc-hs2-grid{
    min-height:430px;
    align-items:stretch;
  }
  .catra-home-top-featured .mc-hs2-col--featured,
  .catra-home-top-featured .mc-hs2-post--featured,
  .catra-home-top-featured .mc-hs2-sidegrid{
    height:100%;
  }
}

/* Tablet: stacked featured + two-column supporting cards. */
@media (max-width:991px){
  .catra-home-top-featured{
    width:min(100% - 20px,780px);
    margin-top:max(18px,calc(12px + var(--catra-top-margin,0px)));
  }
  .catra-home-top-featured .catra-top-panel{padding:12px!important;}
  .catra-home-top-featured .mc-hs2-grid{
    grid-template-columns:1fr;
    gap:13px;
  }
  .catra-home-top-featured .mc-hs2-col--featured{display:block;}
  .catra-home-top-featured .mc-hs2-post--featured{height:auto;}
  .catra-home-top-featured .mc-hs2-col--featured .mc-hs2-img{height:248px!important;}
  .catra-home-top-featured .mc-hs2-sidegrid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    height:auto;
  }
  .catra-home-top-featured .mc-hs2-sidegrid::before{
    grid-column:1 / -1;
    margin-bottom:0;
    font-size:17px;
  }
  .catra-home-top-featured .mc-hs2-sidegrid > .mc-hs2-post--side{
    grid-template-columns:88px minmax(0,1fr);
    min-height:106px;
    padding:10px!important;
    border-radius:var(--catra-home-card-radius,4px)!important;
  }
  .catra-home-top-featured .mc-hs2-post--side .mc-hs2-thumb-link{
    width:88px;
    height:66px;
  }
  .catra-home-top-featured .mc-hs2-post--side .mc-hs2-title{
    font-size:12.5px!important;
    -webkit-line-clamp:3;
  }
  .catra-home-top-featured .mc-hs2-post--side .mc-hs2-meta{
    font-size:9px!important;
  }
}

/* Mobile: featured + compact editorial cards, readable and touch-safe. */
@media (max-width:640px){
  .catra-home-top-featured{
    width:calc(100% - 16px);
    margin-top:max(18px,calc(12px + var(--catra-top-margin,0px)));
  }
  .catra-home-top-featured .catra-top-panel{
    width:100%!important;
    margin:0!important;
    padding:9px!important;
    border-radius:var(--catra-home-card-radius,4px)!important;
  }
  .catra-home-top-featured .catra-top-ornament{display:none;}
  .catra-home-top-featured .catra-top-ornament.catra-top-ornament--mobile{
    display:block;
    left:calc(50% + var(--catra-ornament-x,0%));
    top:var(--catra-ornament-y,-28%);
    width:var(--catra-ornament-width,145%);
    opacity:var(--catra-ornament-opacity,.18);
    transform:translateX(-50%);
  }
  .catra-home-top-featured .mc-hs2-post--featured{
    padding:0!important;
    border-radius:var(--catra-home-card-radius,4px)!important;
  }
  .catra-home-top-featured .mc-hs2-col--featured .mc-hs2-img{
    height:214px!important;
    border-radius:var(--catra-home-card-radius,6px) var(--catra-home-card-radius,6px) 0 0!important;
  }
  .catra-home-top-featured .mc-hs2-copy--feature{padding:13px 12px 11px;}
  .catra-home-top-featured .mc-hs2-title--feature{
    font-size:19.5px!important;
    line-height:1.18!important;
  }
  .catra-home-top-featured .mc-hs2-post--featured .mc-hs2-excerpt{
    max-width:100%;
    margin-top:8px!important;
    font-size:12.25px!important;
    -webkit-line-clamp:3;
  }
  .catra-home-top-featured .mc-hs2-post--featured .mc-hs2-meta{
    margin-top:auto!important;
    padding:9px 0 0!important;
    font-size:10px!important;
  }
  .catra-home-top-featured .mc-hs2-sidegrid{
    display:flex!important;
    flex-direction:column;
    gap:8px;
    height:auto;
  }
  .catra-home-top-featured .mc-hs2-sidegrid::before{
    margin-bottom:0;
    padding-bottom:7px;
    font-size:17px;
  }
  .catra-home-top-featured .mc-hs2-sidegrid > .mc-hs2-post--side{
    grid-template-columns:82px minmax(0,1fr);
    grid-template-rows:auto auto auto;
    flex:0 0 auto;
    min-height:96px;
    padding:9px!important;
    border:1px solid rgba(0,41,62,.12)!important;
    border-radius:var(--catra-home-card-radius,4px)!important;
    box-shadow:none!important;
  }
  .catra-home-top-featured .mc-hs2-post--side .mc-hs2-thumb-link{
    width:82px;
    height:62px;
    border-radius:var(--catra-home-media-radius,4px)!important;
  }
  .catra-home-top-featured .mc-hs2-sidegrid .mc-hs2-img{border-radius:var(--catra-home-media-radius,4px)!important;}
  .catra-home-top-featured .mc-hs2-post--side .mc-hs2-category-row{margin-bottom:3px!important;}
  .catra-home-top-featured .mc-hs2-post--side .mc-hs2-cat{font-size:9px!important;}
  .catra-home-top-featured .mc-hs2-post--side .mc-hs2-title{
    font-size:12.5px!important;
    line-height:1.27!important;
    -webkit-line-clamp:3;
  }
  .catra-home-top-featured .mc-hs2-post--side .mc-hs2-meta{
    margin-top:4px!important;
    font-size:8.75px!important;
    gap:0 5px;
  }
  .catra-home-top-featured .mc-hs2-post--side .mc-hs2-time::before{
    margin-right:5px;
  }
}

@media (prefers-reduced-motion:reduce){
  .catra-home-top-featured .mc-hs2-post--featured,
  .catra-home-top-featured .mc-hs2-post--side,
  .catra-home-top-featured .mc-hs2-img,
  .catra-home-top-featured .mc-hs2-more::after{transition:none!important;}
}


.catra-home-top-featured .catra-top-outer{position:relative;z-index:2;}
