/* =========================================================
   Catrawarta v5.4.4 — Homepage Flash News
   Scope: Flash News homepage only.
   Card form is preserved; category/footer/hover/title header are aligned with
   the approved Catrawarta visual language (white + navy, clean metadata).
   ========================================================= */
.catra-home-editorial .catra-flash-custom{
  --catra-flash-navy:#00293e;
  --catra-flash-ink:#0b0b0b;
  --catra-flash-muted:rgba(0,41,62,.58);
  --catra-flash-divider:rgba(0,41,62,.10);
  --catra-flash-border:rgba(0,41,62,.16);
  position:relative;
  width:100%;
  margin:44px auto 0;
  padding:0;
}

.catra-home-editorial .catra-flash-custom .mc-flash{
  position:relative;
  padding:0;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* Section header: ornament stays; long horizontal rule is removed. */
.catra-home-editorial .catra-flash-custom .mc-flash-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding:0;
  border:0!important;
  border-bottom:0!important;
}
.catra-home-editorial .catra-flash-custom .mc-flash-title,
.catra-home-editorial .catra-flash-custom .mc-flash-title.catra-home-ornament-title{
  position:relative!important;
  isolation:isolate;
  display:inline-flex!important;
  align-items:center!important;
  min-height:52px!important;
  margin:0!important;
  padding:10px 12px 10px 14px!important;
  overflow:visible!important;
  border:0!important;
  background:none!important;
  color:var(--catra-home-title-navy,var(--catra-header-bg,#00293e))!important;
  font-family:"Reddit Sans",Arial,Helvetica,sans-serif!important;
  font-size:24px!important;
  line-height:1.08!important;
  font-weight:750!important;
  letter-spacing:-.025em!important;
}
.catra-home-editorial .catra-flash-custom .mc-flash-title::before,
.catra-home-editorial .catra-flash-custom .mc-flash-title.catra-home-ornament-title::before{
  content:""!important;
  position:absolute!important;
  z-index:0!important;
  left:0!important;
  top:50%!important;
  display:block!important;
  width:var(--catra-home-title-ornament-size,110px)!important;
  height:var(--catra-home-title-ornament-size,110px)!important;
  margin:0!important;
  background-image:var(--catra-home-title-ornament,var(--catra-popular-ornament,var(--catra-section-icon)))!important;
  background-repeat:no-repeat!important;
  background-position:left center!important;
  background-size:contain!important;
  pointer-events:none!important;
  transform:translateY(-50%)!important;
}
.catra-home-editorial .catra-flash-custom .mc-flash-title::after,
.catra-home-editorial .catra-flash-custom .mc-flash-title.catra-home-ornament-title::after,
.catra-home-editorial .catra-flash-custom .mc-flash-rule{
  content:none!important;
  display:none!important;
  border:0!important;
}
.catra-home-editorial .catra-flash-custom .mc-flash-title>span{
  position:relative;
  z-index:1;
  display:inline-block;
}

/* Minimal right-arrow icon for the section CTA. */
.catra-home-editorial .catra-flash-custom .mc-flash-more{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:32px;
  margin:0;
  padding:6px 0;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--catra-flash-navy)!important;
  font-family:"Reddit Sans",Arial,Helvetica,sans-serif!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:650!important;
  text-decoration:none!important;
  white-space:nowrap;
}
.catra-home-editorial .catra-flash-custom .mc-flash-more::after{
  content:""!important;
  display:inline-block!important;
  flex:0 0 auto;
  width:15px!important;
  height:15px!important;
  margin:0!important;
  background:var(--catra-flash-navy)!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .18s ease!important;
}
.catra-home-editorial .catra-flash-custom .mc-flash-more:hover::after,
.catra-home-editorial .catra-flash-custom .mc-flash-more:focus-visible::after{
  transform:translateX(2px)!important;
}

/* Grid follows Theme Panel column settings. */
.catra-home-editorial .catra-flash-custom .catra-flash-grid{
  display:grid;
  gap:16px;
  align-items:stretch;
}
.catra-home-editorial .catra-flash-custom.catra-flash-cols-1 .catra-flash-grid{grid-template-columns:1fr;}
.catra-home-editorial .catra-flash-custom.catra-flash-cols-2 .catra-flash-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.catra-home-editorial .catra-flash-custom.catra-flash-cols-3 .catra-flash-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.catra-home-editorial .catra-flash-custom.catra-flash-cols-4 .catra-flash-grid{grid-template-columns:repeat(4,minmax(0,1fr));}

/* Existing card silhouette retained. */
.catra-home-editorial .catra-flash-custom .catra-flash-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  overflow:hidden;
  border:1px solid var(--catra-flash-card-border,var(--catra-flash-border))!important;
  border-radius:var(--catra-home-card-radius,4px)!important;
  background:#fff!important;
  box-shadow:0 3px 14px rgba(0,42,64,.045)!important;
  transform:none!important;
  transition:border-color .2s ease,box-shadow .2s ease!important;
}
.catra-home-editorial .catra-flash-custom .catra-flash-card::after{display:none!important;}
.catra-home-editorial .catra-flash-custom .catra-flash-card:hover,
.catra-home-editorial .catra-flash-custom .catra-flash-card:focus-within{
  transform:none!important;
  border-color:var(--catra-flash-card-border,var(--catra-flash-border))!important;
  box-shadow:0 3px 14px rgba(0,42,64,.045)!important;
  background:#fff!important;
}

.catra-home-editorial .catra-flash-custom .catra-flash-card-media{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16/9;
  height:auto!important;
  overflow:hidden;
  background:#edf1f3;
}
.catra-home-editorial .catra-flash-custom.catra-flash-image-fixed .catra-flash-card-media{
  height:var(--catra-flash-image-height,180px)!important;
  aspect-ratio:auto;
}
.catra-home-editorial .catra-flash-custom .catra-flash-card-media::after{display:none!important;content:none!important;}
.catra-home-editorial .catra-flash-custom .catra-flash-card-media img,
.catra-home-editorial .catra-flash-custom .catra-flash-card-media .catra-image-placeholder{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#edf1f3;
  transform:none!important;
  transition:none!important;
}
/* Explicitly neutralize any zoom effect selected in old Theme Panel settings. */
.catra-home-editorial .catra-flash-custom[class*="catra-flash-effect-"] .catra-flash-card:hover .catra-flash-card-media img,
.catra-home-editorial .catra-flash-custom[class*="catra-flash-effect-"] .catra-flash-card:focus-within .catra-flash-card-media img{
  transform:none!important;
}

.catra-home-editorial .catra-flash-custom .catra-flash-card-body{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-width:0;
  padding:13px 13px 11px!important;
  border:0!important;
  background:#fff;
}

/* Category language matches the approved top section: clean navy eyebrow. */
.catra-home-editorial .catra-flash-custom .catra-flash-category-badge,
.catra-home-editorial .catra-flash-custom .catra-flash-category-badge--body{
  position:static!important;
  display:inline-flex!important;
  align-self:flex-start;
  max-width:100%;
  margin:0 0 8px!important;
  padding:0!important;
  overflow:hidden;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--catra-flash-navy)!important;
  box-shadow:none!important;
  font-family:"Reddit Sans",Arial,Helvetica,sans-serif!important;
  font-size:10px!important;
  line-height:1.15!important;
  font-weight:700!important;
  letter-spacing:.065em!important;
  text-transform:uppercase;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.catra-home-editorial .catra-flash-custom .catra-flash-category-badge::before{display:none!important;content:none!important;}

.catra-home-editorial .catra-flash-custom .catra-flash-card-title{
  display:-webkit-box;
  margin:0!important;
  overflow:hidden;
  color:var(--catra-flash-article,var(--catra-flash-ink))!important;
  font-family:"Reddit Sans",Arial,Helvetica,sans-serif!important;
  font-size:15px!important;
  line-height:1.30!important;
  font-weight:650!important;
  letter-spacing:-.018em!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.catra-home-editorial .catra-flash-custom .catra-flash-card-title a{
  color:inherit!important;
  text-decoration:none!important;
  background:none!important;
}
.catra-home-editorial .catra-flash-custom .catra-flash-card-title a:hover,
.catra-home-editorial .catra-flash-custom .catra-flash-card-title a:focus-visible{
  color:var(--catra-flash-navy)!important;
  text-decoration:none!important;
}

/* Footer metadata is pinned to the bottom across cards. */
.catra-home-editorial .catra-flash-custom .catra-flash-card-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-width:0;
  margin-top:auto!important;
  padding-top:10px!important;
  border-top:1px solid var(--catra-flash-divider)!important;
  color:var(--catra-flash-muted)!important;
  font-family:"Reddit Sans",Arial,Helvetica,sans-serif!important;
  font-size:10.5px!important;
  line-height:1.25!important;
}
.catra-home-editorial .catra-flash-custom .catra-flash-author,
.catra-home-editorial .catra-flash-custom .catra-flash-date{
  color:inherit!important;
  white-space:nowrap;
}
.catra-home-editorial .catra-flash-custom .catra-flash-author{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:500!important;
  text-decoration:none!important;
}
.catra-home-editorial .catra-flash-custom .catra-flash-author:hover,
.catra-home-editorial .catra-flash-custom .catra-flash-author:focus-visible{
  color:inherit!important;
  text-decoration:none!important;
}
.catra-home-editorial .catra-flash-custom .catra-flash-date{flex:0 0 auto;}

@media (max-width:991.98px){
  .catra-home-editorial .catra-flash-custom{margin-top:36px;}
  .catra-home-editorial .catra-flash-custom.catra-flash-cols-3 .catra-flash-grid,
  .catra-home-editorial .catra-flash-custom.catra-flash-cols-4 .catra-flash-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .catra-home-editorial .catra-flash-custom .catra-flash-card-title{font-size:14.5px!important;}
}

@media (max-width:767.98px){
  body.catra-mobile-hide-flash .catra-flash-custom{display:none!important;}
  .catra-home-editorial .catra-flash-custom{
    width:calc(100% - 24px);
    margin:30px auto 0;
  }
  .catra-home-editorial .catra-flash-custom .mc-flash-head{
    align-items:center;
    gap:12px;
    margin-bottom:14px;
  }
  .catra-home-editorial .catra-flash-custom .mc-flash-title,
  .catra-home-editorial .catra-flash-custom .mc-flash-title.catra-home-ornament-title{
    min-height:44px!important;
    padding:8px 12px 8px 14px!important;
    font-size:21px!important;
    line-height:1.1!important;
    letter-spacing:-.025em!important;
  }
  .catra-home-editorial .catra-flash-custom .mc-flash-title::before,
  .catra-home-editorial .catra-flash-custom .mc-flash-title.catra-home-ornament-title::before{
    width:min(var(--catra-home-title-ornament-size,110px),92px)!important;
    height:min(var(--catra-home-title-ornament-size,110px),92px)!important;
  }
  .catra-home-editorial .catra-flash-custom .mc-flash-more{
    min-height:28px;
    padding:5px 0;
    font-size:11px!important;
  }
  .catra-home-editorial .catra-flash-custom .mc-flash-more::after{width:14px!important;height:14px!important;}
  .catra-home-editorial .catra-flash-custom.catra-flash-mobile-cols-1 .catra-flash-grid{
    grid-template-columns:1fr!important;
    gap:13px;
  }
  .catra-home-editorial .catra-flash-custom.catra-flash-mobile-cols-2 .catra-flash-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px;
  }
  .catra-home-editorial .catra-flash-custom .catra-flash-card{border-radius:var(--catra-home-card-radius,4px)!important;}
  .catra-home-editorial .catra-flash-custom .catra-flash-card-body{padding:11px 11px 10px!important;}
  .catra-home-editorial .catra-flash-custom .catra-flash-card-title{font-size:13.5px!important;line-height:1.3!important;}
  .catra-home-editorial .catra-flash-custom .catra-flash-card-meta{gap:6px;padding-top:9px!important;font-size:9.5px!important;}
  .catra-home-editorial .catra-flash-custom .catra-flash-category-badge,
  .catra-home-editorial .catra-flash-custom .catra-flash-category-badge--body{font-size:9px!important;margin-bottom:7px!important;}
}

@media (max-width:440px){
  .catra-home-editorial .catra-flash-custom.catra-flash-mobile-cols-2 .catra-flash-grid{
    grid-template-columns:1fr!important;
    gap:12px;
  }
  .catra-home-editorial .catra-flash-custom .catra-flash-card-title{font-size:14px!important;}
  .catra-home-editorial .catra-flash-custom .catra-flash-card-meta{font-size:10px!important;}
}

@media (prefers-reduced-motion:reduce){
  .catra-home-editorial .catra-flash-custom .catra-flash-card,
  .catra-home-editorial .catra-flash-custom .mc-flash-more::after{transition:none!important;}
}
