:root {
  --news-surface: rgba(11, 10, 8, 0.94);
  --news-surface-2: rgba(15, 12, 8, 0.96);
  --news-line: rgba(201, 150, 42, 0.1);
  --news-line-strong: rgba(201, 150, 42, 0.22);
  --news-text: #f8f5ee;
  --news-muted: rgba(214, 205, 190, 0.68);
  --news-gold: #c9962a;
  --news-gold-2: #f1cd7a;
  --news-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.portal-news-page {
  color: var(--news-text);
}

.portal-news-page .container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   HERO / TOOLBAR
========================= */

.portal-news-hero {
  position: relative;
  padding: 28px 0 18px;
  overflow: hidden;
}

.portal-news-hero-bg {
  display: none;
}

.portal-news-hero-inner {
  position: relative;
  z-index: 1;
}

.portal-news-headline h1 {
  margin: 0;
  font-family: "Rajdhani", Inter, system-ui, sans-serif;
  font-size: clamp(2.35rem, 3.4vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  text-transform: uppercase;
}

.portal-news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-news-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(231, 247, 239, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.portal-news-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(241, 205, 122, 0.18);
  color: #fff;
}

.portal-news-filter-chip.is-active {
  background: linear-gradient(135deg, #c9962a, #e7c267);
  border-color: rgba(255, 220, 140, 0.2);
  color: #1b1408;
  box-shadow: 0 10px 24px rgba(201, 150, 42, 0.22);
}

.portal-news-search {
  position: relative;
  width: min(100%, 300px);
  flex: 0 0 auto;
}

.portal-news-search input {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  outline: none;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.portal-news-search input::placeholder {
  color: rgba(214, 205, 190, 0.5);
}

.portal-news-search button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: rgba(214, 205, 190, 0.68);
  cursor: pointer;
}

/* =========================
   LAYOUT
========================= */

.portal-news-layout-section {
  padding: 8px 0 42px;
}

.portal-news-layout {
  display: block;
}

.portal-news-main {
  min-width: 0;
}

.portal-news-below {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.portal-news-sidebar {
  min-width: 0;
}

/* =========================
   SHARED CARDS
========================= */

.portal-news-featured-card,
.portal-news-card,
.portal-news-sidebar-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--news-line);
  background:
    radial-gradient(circle at top left, rgba(201, 150, 42, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(15, 12, 8, 0.96), rgba(8, 6, 4, 0.985));
  box-shadow: var(--news-shadow);
}

.portal-news-featured-card,
.portal-news-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.portal-news-featured-card:hover,
.portal-news-card:hover {
  transform: translateY(-4px);
  border-color: var(--news-line-strong);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 22px rgba(201, 150, 42, 0.12);
}

/* =========================
   FEATURED
========================= */

.portal-news-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  height: 260px;
  min-height: 260px;
  max-height: 260px;
  margin-bottom: 22px;
  overflow: hidden;
}

.portal-news-featured-media {
  position: relative;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.portal-news-featured-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-news-featured-media,
.portal-news-card-media {
  position: relative;
  overflow: hidden;
  background: #15110c;
}

.portal-news-featured-media::after,
.portal-news-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 14, 0.02) 0%,
    rgba(5, 8, 14, 0.12) 48%,
    rgba(5, 8, 14, 0.34) 100%
  );
}

.portal-news-featured-image,
.portal-news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portal-news-featured-card:hover .portal-news-featured-image,
.portal-news-card:hover .portal-news-card-image {
  transform: scale(1.04);
}

.portal-news-featured-body,
.portal-news-card-body {
  position: relative;
  z-index: 2;
}

.portal-news-featured-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.9)
  );
}

.portal-news-featured-body h2 {
  margin: 14px 0 10px;
  font-family: "Rajdhani", Inter, system-ui, sans-serif;
  font-size: 1.75rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
}

.portal-news-featured-body p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--news-muted);
}

.portal-news-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}

.portal-news-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(231, 247, 239, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.portal-news-author img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================
   NEWS GRID
========================= */

.portal-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.portal-news-card-media {
  aspect-ratio: 16 / 7.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-news-card-body {
  padding: 14px 15px 15px;
}

.portal-news-card h3 {
  margin: 11px 0 8px;
  font-family: "Rajdhani", Inter, system-ui, sans-serif;
  font-size: 1.12rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.portal-news-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--news-muted);
}

.portal-news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.portal-news-card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   META / BADGES
========================= */

.portal-news-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  row-gap: 8px;
  flex-wrap: wrap;
}

.portal-news-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c9962a 0%, #e7c267 100%);
  color: #1b1408;
  border: 1px solid rgba(255, 220, 140, 0.18);
  box-shadow:
    0 6px 16px rgba(201, 150, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(214, 205, 190, 0.62);
}

.portal-news-meta-item i {
  font-size: 0.82em;
  color: #d7ae52;
}

/* =========================
   SIDEBAR
========================= */

.portal-news-sidebar-card {
  padding: 18px;
  position: sticky;
  top: 104px;
  border: 1px solid rgba(201, 150, 42, 0.12);
  background:
    radial-gradient(circle at top, rgba(201, 150, 42, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(18, 14, 10, 0.96), rgba(8, 6, 4, 0.98));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(201, 150, 42, 0.08);
}

.portal-news-sidebar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-news-sidebar-head h3 {
  margin: 0;
  font-family: "Rajdhani", Inter, system-ui, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.portal-news-sidebar-head i {
  color: var(--news-gold);
  font-size: 14px;
}

.portal-popular-list {
  display: grid;
  gap: 14px;
}

.portal-popular-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  position: relative;
  padding: 8px;
  margin: -8px;
  border-radius: 12px;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}


.portal-popular-item:hover {
  background:
    radial-gradient(
      circle at left center,
      rgba(201, 150, 42, 0.14),
      transparent 65%
    ),
    rgba(201, 150, 42, 0.06);
  transform: translateX(3px);
  /* box-shadow: inset 3px 0 0 rgba(201, 150, 42, 0.9); */
}

.portal-popular-item:hover .portal-popular-content h4 a {
  color: var(--news-gold-2);
}

.portal-popular-item:hover .portal-popular-thumb-image {
  transform: scale(1.05);
}

.portal-popular-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #15110c;
}

.portal-popular-thumb-image {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.22s ease;
}

.portal-popular-content h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 800;
  color: #fff;
}

.portal-popular-content h4 a:hover {
  color: var(--news-gold-2);
}

.portal-popular-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(214, 205, 190, 0.56);
  font-size: 0.8rem;
}

.portal-popular-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* =========================
   LINKS / STRETCHED
========================= */

.portal-news-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-indent: -9999px;
}

.portal-news-featured-body,
.portal-news-card-body,
.portal-news-featured-footer,
.portal-news-card-footer {
  position: relative;
  z-index: 2;
}

.portal-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--news-gold-2);
  transition: color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.portal-text-link:hover {
  color: #fff;
  transform: translateX(2px);
}

.portal-text-link::after {
  content: "→";
  font-size: 0.95em;
  line-height: 1;
}

/* =========================
   PAGINATION / EMPTY
========================= */

.portal-news-pagination {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.portal-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0 4px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(231, 247, 239, 0.74);
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.portal-news-pagination .page-numbers:hover {
  transform: translateY(-1px);
  border-color: rgba(241, 205, 122, 0.18);
  color: #fff;
}

.portal-news-pagination .page-numbers.current {
  background: linear-gradient(135deg, #c9962a, #e7c267);
  border-color: rgba(255, 220, 140, 0.2);
  color: #1b1408;
}

.portal-news-empty {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--news-line);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.portal-news-empty h3 {
  margin: 0 0 10px;
  font-family: "Rajdhani", Inter, system-ui, sans-serif;
  font-size: 1.5rem;
  color: #fff;
}

.portal-news-empty p,
.portal-news-sidebar-empty {
  margin: 0;
  color: var(--news-muted);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .portal-news-below {
    grid-template-columns: 1fr;
  }

  .portal-news-sidebar-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 900px) {
  .portal-news-toolbar {
  	flex-direction: column;
	align-items: stretch;
  }

  .portal-news-search {
  	width: min(100%, 300px);
  }

  .portal-news-featured-card {
    grid-template-columns: 1fr;
  	height: auto;
  	min-height: 0;
  	max-height: none;
  }

  .portal-news-featured-media {
  	height: auto;
  	min-height: 0;
  	max-height: none;
  	aspect-ratio: 16 / 7.2;
  }
	
  .portal-news-featured-image {
  	position: static;
  	width: 100%;
  	height: 100%;
  	object-fit: cover;
  }

  .portal-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-news-featured-body h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 700px) {
  .portal-news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-news-page .container {
    width: min(1180px, calc(100% - 22px));
  }

  .portal-news-hero {
    padding: 26px 0 16px;
  }

  .portal-news-headline h1 {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
  }

  .portal-news-featured-body {
    padding: 15px;
  }

  .portal-news-featured-body h2 {
    font-size: 1.34rem;
  }

  .portal-news-featured-body p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .portal-news-card-body {
    padding: 13px 14px 15px;
  }

  .portal-news-card h3 {
    font-size: 1.05rem;
  }

  .portal-news-card p {
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .portal-news-sidebar-card {
    padding: 15px;
  }

  .portal-popular-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .portal-popular-thumb-image {
    height: 64px;
  }
}