/* Home wrapper spacing */
.portal-home{
  padding-top: .25rem !important;
}

/* ====== Breaking ticker ====== */
.breaking-strip{
  display:flex;
  align-items:stretch;
  border: 1px solid rgba(211,47,47,.18);
  background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
}
.breaking-label{
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color:#fff;
  font-weight: 800;
  font-size: .92rem;
  padding: .75rem .9rem;
  display:flex;
  align-items:center;
  gap:.45rem;
  white-space:nowrap;
}
.breaking-items{
  flex:1;
  overflow:hidden;
  display:flex;
  align-items:center;
  padding: .25rem 0;
}
.ticker{
  display:flex;
  gap: 2.25rem;
  white-space:nowrap;
  will-change: transform;
  animation: tickerMove 28s linear infinite;
  padding-left: 1rem;
}
.breaking-strip:hover .ticker{ animation-play-state: paused; }
.ticker a{
  text-decoration:none;
  font-weight: 700;
  color:#15171a;
}
.ticker a:hover{ color: var(--primary); }
@keyframes tickerMove{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* ====== Lead ====== */
.lead-story{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
}
.lead-story-image{
  position: relative;
  background:#eef1f4;
  aspect-ratio: 16/9;
  overflow:hidden;
}
.lead-story-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .35s ease;
}
.lead-story:hover .lead-story-image img{ transform: scale(1.03); }
.lead-story-body{ padding: 1rem 1rem 1.05rem; }
.lead-story-title{
  font-size: 2.05rem;
  line-height: 1.18;
  font-weight: 900;
  margin: .25rem 0 .55rem;
  color:#0f1113;
  letter-spacing: .2px;
}
.lead-story-excerpt{
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 .75rem;
  color: var(--muted);
}

/* ====== Secondary cards ====== */
.headline-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
  transition: transform .18s ease, border-color .18s ease;
  height: 100%;
}
.headline-card:hover{
  transform: translateY(-2px);
  border-color: rgba(16,18,20,.16);
}
.headline-thumb{
  background:#eef1f4;
  aspect-ratio: 4/3;
  overflow:hidden;
  border-radius: 12px;
}
.headline-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.headline-card h6{
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom:.25rem !important;
  font-weight: 800;
}

/* ====== Sidebar widgets ====== */
.portal-sidebar-widget{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.widget-title{
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 0 .85rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--border);
  display:flex;
  align-items:center;
  gap:.5rem;
}
.widget-list-item{
  padding: .65rem 0;
  border-bottom: 1px dashed rgba(0,0,0,.12);
}
.widget-list-item:last-child{
  border-bottom:none;
  padding-bottom:0;
}
.widget-list-item a{
  font-size: .98rem;
  line-height: 1.35;
  font-weight: 700;
  display:block;
  text-decoration:none;
}
.widget-list-item a:hover{ color: var(--primary); }

/* Category chips */
.category-chip{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  text-decoration:none;
  color:#16181b;
  background: #f3f4f7;
  border-radius: 999px;
  padding: .45rem .75rem;
  font-size: .9rem;
  font-weight: 700;
  transition: background .15s ease, transform .15s ease, color .15s ease;
}
.category-chip:hover{
  background: #eceef4;
  color: var(--primary);
  transform: translateY(-1px);
}
.category-chip .count{
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius:999px;
  padding: .05rem .45rem;
  font-size: .78rem;
  line-height: 1.25;
  font-weight: 800;
}

/* ====== Category blocks ====== */
.category-block{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem !important;
}
.category-block-header h4{
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
}
.category-main-story img{
  width:100%;
  aspect-ratio: 16/10;
  height:auto;
  object-fit:cover;
  border-radius: 12px;
}
.headline-list-item{
  padding: .7rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.headline-list-item:last-child{ border-bottom:0; }
.headline-list-item a{
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 800;
  text-decoration:none;
}
.headline-list-item a:hover{ color: var(--primary); }

/* ====== Latest grid cards ====== */
.latest-feed{ margin-top: 1.25rem !important; }

.news-card{
  background: var(--surface);
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
  height:100%;
  display:flex;
  flex-direction:column;
}
.news-card:hover{
  transform: translateY(-2px);
  border-color: rgba(16,18,20,.16);
}
.news-card-image{
  position:relative;
  background:#eef1f4;
  aspect-ratio: 16/10;
  overflow:hidden;
}
.news-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .35s ease;
}
.news-card:hover .news-card-image img{ transform: scale(1.03); }

.badge-featured{
  position:absolute;
  top:.75rem;
  left:.75rem;
  background:#111;
  color:#fff;
  font-size:.72rem;
  font-weight:900;
  padding:.25rem .55rem;
  border-radius:999px;
  z-index:2;
  letter-spacing:.4px;
}
.badge-featured.badge-breaking{
  left:auto;
  right:.75rem;
  background: var(--primary);
}
.news-card-body{
  padding: 1rem 1rem 1.05rem;
  display:flex;
  flex-direction:column;
  flex:1;
}
.news-card-category{
  color: var(--primary);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing:.6px;
  margin-bottom: .45rem;
}
.news-card-title{
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
  margin-bottom: .5rem;
}
.news-card-title a{
  color:#0f1113;
  text-decoration:none;
}
.news-card-title a:hover{ color: var(--primary); }
.news-card-excerpt{
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: .85rem;
}
.news-card-footer{
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: .75rem;
  margin-top: auto;
  color: var(--muted);
  font-size: .85rem;
}

/* ====== Pagination ====== */
.pagination .page-link{
  border-radius: 999px !important;
  margin: 0 .15rem;
  border: 1px solid var(--border);
  color: #15171a;
  font-weight: 700;
}
.pagination .page-item.active .page-link{
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== Premium Ads (home widgets + infeed) ===== */
.ad-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ad-card .ad-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.ad-card .ad-title{
  font-weight: 900;
  margin:0;
  font-size: 1.02rem;
  display:flex;
  align-items:center;
  gap:.5rem;
}
.ad-card .ad-badge{
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  padding: .2rem .55rem;
  border-radius: 999px;
}
.ad-card .ad-body{ padding: 1rem; }
.ad-card .ad-click{ display:block; text-decoration:none; color: inherit; }

.ad-media{
  background:#eef1f4;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.06);
}
.ad-300x250{ aspect-ratio: 6/5; }
.ad-300x600{ aspect-ratio: 1/2; }
.ad-728x90 { aspect-ratio: 728/90; }
.ad-16x9   { aspect-ratio: 16/9; }

.ad-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .35s ease;
}
.ad-card:hover .ad-media img{ transform: scale(1.03); }

.ad-copy{ margin-top: .85rem; }
.ad-copy .ad-brand{ font-weight: 900; font-size: .92rem; margin-bottom: .15rem; }
.ad-copy .ad-text{ color: var(--muted); font-size: .92rem; line-height: 1.55; margin-bottom: .75rem; }
.ad-copy .ad-cta{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  border-radius: 999px;
  padding: .5rem .85rem;
  font-weight: 900;
  border: 1px solid rgba(211,47,47,.25);
  background: rgba(211,47,47,.08);
  color: var(--primary);
}
.ad-copy .ad-cta:hover{ background: rgba(211,47,47,.12); }
.ad-disclaimer{ color: rgba(0,0,0,.45); font-size: .8rem; margin-top: .7rem; }
.infeed-ad-wrap{ margin: .25rem 0 1.25rem; }

@media (max-width: 991.98px){
  .lead-story-title{ font-size: 1.55rem; }
  .ad-300x600{ aspect-ratio: 6/5; }
}
@media (max-width: 575.98px){
  .breaking-label{ font-size: .82rem; padding: .65rem .75rem; }
}