﻿:root {
  --news-bg: #f8fafc;
  --news-surface: #ffffff;
  --news-border: rgba(31, 42, 55, 0.12);
  --news-text: #1F2F3F;
  --news-muted: rgba(31, 42, 55, 0.72);
  --news-accent: #C8A45A;
  --news-accent-strong: #B8934A;
  --news-primary-strong: #162632;
  --news-shadow-soft: 0 12px 32px -24px rgba(9, 20, 36, 0.3);
  --news-shadow-card: 0 20px 46px -30px rgba(9, 20, 36, 0.33);
}

.news-main {
  padding-top: 104px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(201, 162, 74, 0.15), transparent 36%),
    radial-gradient(circle at 88% 0%, rgba(31, 42, 55, 0.12), transparent 35%),
    var(--news-bg);
}

.news-fluid {
  max-width: 1440px;
}

.news-main section {
  margin: 0.7rem 0.7rem;
  border: 1px solid var(--news-border);
  border-radius: 24px;
  background: var(--news-surface);
  box-shadow: var(--news-shadow-soft);
}

.news-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background:
    linear-gradient(130deg, #1F2F3F 6%, #1A2431 56%, #162632 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.news-hero-card::after {
  content: "";
  position: absolute;
  inset: auto auto -35% -7%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.28), transparent 68%);
  pointer-events: none;
}

.news-kicker {
  display: inline-flex;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  font-weight: 700;
}

.news-hero-card h1 {
  margin: 0.9rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
}

.news-hero-card p {
  margin: 0.65rem 0 0;
  max-width: 66ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-meta {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.9);
}

.news-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 1;
}

.news-stats-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.news-stat-card {
  border: 1px solid var(--news-border);
  border-radius: 14px;
  background: linear-gradient(140deg, #fff, #f3f8ff);
  box-shadow: var(--news-shadow-soft);
  padding: 0.8rem 0.9rem;
}

.news-stat-card span {
  color: var(--news-muted);
  font-size: 0.82rem;
}

.news-stat-card strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--news-text);
  font-size: 1.04rem;
  font-weight: 800;
}

.news-featured,
.news-grid-section,
.news-subscribe {
  padding: 1rem 0;
}

.news-grid-section .container-xxl {
  position: relative;
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
  gap: 1rem;
  border-radius: 20px;
  border: 1px solid var(--news-border);
  padding: 0.9rem;
  background: #fff;
  box-shadow: var(--news-shadow-card);
}

.featured-media {
  border-radius: 14px;
  overflow: hidden;
  background: #eaf3ff;
}

.featured-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.featured-content {
  padding: 0.22rem 0.35rem;
}

.news-badge {
  display: inline-flex;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1F2F3F;
  border: 1px solid rgba(31, 42, 55, 0.15);
  background: #edf5ff;
}

.featured-content h2 {
  margin: 0.6rem 0 0;
  color: var(--news-text);
  font-size: clamp(1.3rem, 2.4vw, 1.92rem);
  line-height: 1.35;
  font-weight: 800;
}

.featured-content p {
  margin: 0.6rem 0 0;
  color: var(--news-muted);
  line-height: 1.75;
}

.featured-meta {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(31, 42, 55, 0.7);
  font-size: 0.88rem;
}

.news-grid-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.news-grid-head h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--news-text);
  font-weight: 800;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 100%;
}

.category-pill {
  border: 1px solid rgba(31, 42, 55, 0.14);
  background: #eef3f9;
  color: var(--news-text);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.38rem 0.82rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-1px);
}

.category-pill:hover,
.category-pill.is-active {
  border-color: rgba(22, 139, 137, 0.4);
  background: var(--news-accent);
  color: #fff;
}

.news-toolbar {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.news-toolbar-search {
  flex: 1;
  min-width: 260px;
}

.news-toolbar-search .form-control,
.news-toolbar-controls .form-select {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 55, 0.16);
}

.news-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.news-toolbar-controls .form-select {
  min-width: 185px;
}

.news-results-meta {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--news-muted);
  font-weight: 700;
}

.news-read-link {
  color: var(--news-accent);
  font-weight: 800;
  border: 1px solid rgba(201, 162, 74, 0.45);
  background: rgba(201, 162, 74, 0.1);
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.45;
  margin-top: auto;
}

.news-card {
  height: 100%;
  border: 1px solid var(--news-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--news-shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px -26px rgba(9, 20, 36, 0.45);
  border-color: rgba(22, 139, 137, 0.28);
}

.news-card-image {
  padding: 0.65rem;
  background: linear-gradient(145deg, #edf4fc, #e4f2f5);
}

.news-card-image img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  border-radius: 12px;
}

.news-card-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.news-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.news-date {
  color: rgba(31, 42, 55, 0.63);
  font-size: 0.83rem;
}

.news-category {
  border-radius: 999px;
  background: #edf6ff;
  color: var(--news-text);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.58rem;
}

.news-card-body h4 {
  margin: 0.48rem 0 0;
  color: var(--news-text);
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.45;
  min-height: 3em;
}

.news-card-body p {
  margin: 0.55rem 0 0.7rem;
  color: var(--news-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-empty {
  border: 1px dashed rgba(31, 42, 55, 0.2);
  border-radius: 14px;
  background: #fbfdff;
  padding: 1.35rem;
}

.news-empty h4 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--news-text);
}

.news-empty p {
  margin: 0.45rem 0 0;
  color: var(--news-muted);
}

.news-subscribe {
  padding-bottom: 1.5rem;
}

.subscribe-card {
  border: 1px solid var(--news-border);
  border-radius: 16px;
  background: linear-gradient(140deg, #f8fbff 0%, #eef6fd 45%, #eaf7f5 100%);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.subscribe-card h3 {
  margin: 0;
  font-size: 1.28rem;
  color: var(--news-text);
  font-weight: 800;
}

.subscribe-card p {
  margin: 0.4rem 0 0;
  color: var(--news-muted);
}

.subscribe-form {
  min-width: min(560px, 100%);
  display: flex;
  gap: 0.6rem;
}

.subscribe-form .form-control {
  min-height: 46px;
  border: 1px solid rgba(31, 42, 55, 0.14);
}

@media (min-width: 992px) {
  .news-grid-head {
    position: sticky;
    top: 92px;
    z-index: 4;
    background: #fff;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
}

.news-modal .modal-content {
  border-radius: 16px;
  border: 1px solid var(--news-border);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.news-modal .modal-header {
  border-bottom-color: rgba(31, 42, 55, 0.08);
}

.modal-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: rgba(31, 42, 55, 0.66);
}

.news-modal .modal-title {
  margin-top: 0.38rem;
  color: var(--news-text);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.45;
}

.modal-cover-image {
  border-radius: 12px;
  overflow: hidden;
}

.modal-cover-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.modal-summary {
  margin: 0.85rem 0 0;
  color: rgba(31, 42, 55, 0.84);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.9;
  border-inline-start: 4px solid rgba(201, 162, 74, 0.75);
  padding-inline-start: 0.7rem;
}

.modal-body-content p {
  margin: 0.7rem 0 0;
  color: rgba(31, 42, 55, 0.8);
  line-height: 2;
  font-size: 1rem;
}

.modal-gallery {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.modal-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(31, 42, 55, 0.08);
}

.modal-gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.news-modal-footer {
  border-top: 1px solid rgba(31, 42, 55, 0.08);
  background: #fff;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-modal-footer .btn {
  min-height: 42px;
  font-weight: 700;
}

.news-modal .modal-body {
  max-height: min(68vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease var(--reveal-delay, 0ms), transform 0.55s ease var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(22, 139, 137, 0.24);
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .news-main {
    padding-top: 92px;
  }

  .news-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-hero-actions {
    width: 100%;
  }

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

  .category-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 0.2rem;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-media img {
    min-height: 220px;
  }

  .news-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .news-toolbar-controls {
    width: 100%;
  }

  .news-toolbar-controls .form-select,
  .news-toolbar-controls .btn {
    width: 100%;
  }

  .news-card-body h4 {
    min-height: auto;
  }

  .subscribe-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscribe-form {
    width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .news-main section {
    margin: 0.55rem 0.45rem;
  }

  .news-grid-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-hero-card {
    padding: 1.25rem 1rem;
  }

  .news-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .news-hero-actions .btn,
  .subscribe-form .cta-btn {
    width: 100%;
  }

  .news-stats-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    flex-direction: column;
  }
}




/* Professional pass v2 */
.news-hero-card {
  border-radius: 24px;
}

.news-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(201, 162, 74, 0.18), transparent 34%);
  pointer-events: none;
}

.news-stat-card {
  background: linear-gradient(145deg, #ffffff, #f8fafd);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.news-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 74, 0.35);
  box-shadow: 0 18px 36px -26px rgba(9, 20, 36, 0.4);
}

.featured-article {
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fcfdff);
}

.featured-media {
  background: #eef2f7;
}

.featured-media img {
  transition: transform 0.45s ease;
}

.featured-article:hover .featured-media img {
  transform: scale(1.03);
}

.news-badge,
.news-category {
  background: rgba(201, 162, 74, 0.16);
}

.category-pill {
  background: #f4f7fb;
}

.category-pill:hover,
.category-pill.is-active {
  border-color: rgba(201, 162, 74, 0.4);
  background: var(--news-accent);
}

.news-toolbar {
  padding: 0.65rem;
  border: 1px solid var(--news-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fafcff);
}

.news-toolbar-search .form-control:focus,
.news-toolbar-controls .form-select:focus {
  border-color: rgba(201, 162, 74, 0.55);
  box-shadow: 0 0 0 0.18rem rgba(201, 162, 74, 0.18);
}

.news-read-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-read-link:hover {
  color: var(--news-accent-strong);
  transform: translateX(-2px);
  background: rgba(201, 162, 74, 0.2);
}

.news-card {
  border-radius: 18px;
}

.news-card:hover {
  border-color: rgba(201, 162, 74, 0.35);
}

.news-card-image {
  background: linear-gradient(145deg, #f4f7fb, #eceff4);
}

.news-card-image img {
  transition: transform 0.45s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.04);
}

.subscribe-card {
  background:
    radial-gradient(circle at 8% 10%, rgba(201, 162, 74, 0.12), transparent 34%),
    linear-gradient(145deg, #f8fafc 0%, #eef2f7 55%, #e9edf3 100%);
}

.news-modal .modal-content {
  box-shadow: 0 22px 44px -26px rgba(9, 20, 36, 0.42);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(201, 162, 74, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .news-stat-card,
  .news-card,
  .news-read-link,
  .featured-media img,
  .news-card-image img {
    transition: none !important;
  }
}

/* News page professional + mobile refinement */
.news-main {
  background:
    radial-gradient(circle at 6% 7%, rgba(201, 162, 74, 0.18), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(22, 32, 43, 0.14), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #f3f6fa 100%);
}

.news-main section {
  border-radius: 26px;
}

.news-grid-head {
  padding: 0.45rem 0;
}

.news-grid-head h3 {
  letter-spacing: -0.01em;
}

.news-toolbar {
  backdrop-filter: blur(8px);
}

.news-card-body h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body p {
  -webkit-line-clamp: 3;
}

.news-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.news-read-link::after {
  content: "\2190";
  font-size: 0.9em;
  transform: translateY(1px);
}

.news-modal .modal-title {
  letter-spacing: -0.01em;
}

.modal-body-content {
  overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
  .news-main {
    padding-top: 88px;
  }

  .news-main section {
    margin: 0.58rem;
    border-radius: 20px;
  }

  .news-hero-card h1 {
    font-size: clamp(1.45rem, 5.5vw, 2.15rem);
  }

  .news-hero-card p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .news-grid-head h3 {
    font-size: 1.26rem;
  }

  .news-toolbar {
    padding: 0.6rem;
    gap: 0.6rem;
  }

  .news-toolbar-search {
    min-width: 0;
    width: 100%;
  }

  .news-toolbar-controls {
    flex-wrap: wrap;
    gap: 0.48rem;
  }

  .news-toolbar-controls .form-select,
  .news-toolbar-controls .btn {
    min-height: 44px;
  }

  .featured-content h2 {
    font-size: clamp(1.16rem, 4.7vw, 1.56rem);
  }

  .featured-content p {
    line-height: 1.82;
  }

  .news-card-image img {
    height: 180px;
  }
}

@media (max-width: 575.98px) {
  .news-main {
    padding-top: 84px;
  }

  .news-main section {
    margin: 0.48rem 0.4rem;
    border-radius: 16px;
  }

  .news-hero-card {
    border-radius: 16px;
    padding: 1.06rem 0.9rem;
  }

  .news-kicker {
    font-size: 0.74rem;
    padding: 0.28rem 0.64rem;
  }

  .hero-meta {
    font-size: 0.82rem;
    gap: 0.35rem 0.7rem;
  }

  .news-stat-card {
    padding: 0.72rem 0.78rem;
  }

  .news-stat-card strong {
    font-size: 0.98rem;
  }

  .featured-media img {
    min-height: 190px;
  }

  .news-toolbar {
    border-radius: 12px;
  }

  .news-toolbar-search .form-control,
  .news-toolbar-controls .form-select {
    min-height: 42px;
    font-size: 0.92rem;
  }

  .news-results-meta {
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
  }

  .news-card {
    border-radius: 14px;
  }

  .news-card-image {
    padding: 0.5rem;
  }

  .news-card-image img {
    height: 165px;
    border-radius: 10px;
  }

  .news-card-body {
    padding: 0.75rem 0.82rem 0.92rem;
  }

  .news-card-body h4 {
    font-size: 1.01rem;
    line-height: 1.5;
  }

  .news-card-body p {
    font-size: 0.89rem;
    line-height: 1.7;
    margin: 0.5rem 0 0.62rem;
  }

  .news-read-link {
    width: 100%;
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
  }

  .subscribe-card {
    border-radius: 14px;
    padding: 1rem 0.85rem;
  }

  .subscribe-card h3 {
    font-size: 1.08rem;
  }

  .subscribe-card p {
    font-size: 0.9rem;
  }

  .modal-cover-image img {
    max-height: 220px;
  }

  .modal-summary {
    font-size: 0.93rem;
    line-height: 1.8;
  }

  .news-modal .modal-title {
    font-size: 1.05rem;
    line-height: 1.5;
  }
}

/* Reader page animation */
.reader-article {
  overflow: hidden;
}

.reader-media img {
  animation: readerImageIn 0.65s cubic-bezier(.2,.8,.2,1) both;
}

.reader-animate {
  opacity: 0;
  transform: translateY(18px);
  animation: readerItemIn 0.55s ease both;
}

.reader-animate-1 { animation-delay: 120ms; }
.reader-animate-2 { animation-delay: 180ms; }
.reader-animate-3 { animation-delay: 240ms; }
.reader-animate-4 { animation-delay: 300ms; }
.reader-animate-5 { animation-delay: 360ms; }
.reader-animate-6 { animation-delay: 420ms; }

@keyframes readerImageIn {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes readerItemIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader-media img,
  .reader-animate {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


