.news-page,
.news-detail-page {
  background: #f5f8fb;
}

.news-hero {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 45%, rgba(32,183,170,.2), transparent 27%),
    linear-gradient(115deg, var(--blue-950), #0a4e82 70%, #0b668a);
}

.news-hero::after {
  position: absolute;
  top: -160px;
  right: 9%;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(113,215,205,.17);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 55px rgba(113,215,205,.025), 0 0 0 110px rgba(113,215,205,.018);
}

.news-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.news-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.news-hero .breadcrumb {
  margin-bottom: 25px;
  color: rgba(255,255,255,.52);
}

.breadcrumb a {
  transition: color .2s ease;
}

.breadcrumb a:hover {
  color: var(--cyan-300);
}

.news-hero-inner > p {
  margin: 0 0 7px;
  color: var(--cyan-300);
  font: 10px Arial, sans-serif;
  letter-spacing: .22em;
}

.news-hero-inner h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: .08em;
}

.news-hero-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: rgba(255,255,255,.57);
  font-size: 13px;
}

.news-hero-line i {
  width: 30px;
  height: 2px;
  background: var(--cyan-500);
}

.featured-news-section {
  padding: 76px 0 88px;
  background: #fff;
}

.news-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}

.news-section-title p {
  margin: 0 0 6px;
  color: var(--blue-600);
  font: 10px Arial, sans-serif;
  letter-spacing: .2em;
}

.news-section-title h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 30px;
}

.news-section-title > a {
  padding-bottom: 4px;
  color: #768697;
  font-size: 12px;
}

.news-section-title > a span {
  margin-left: 7px;
  color: var(--blue-600);
}

.news-section-title > a:hover {
  color: var(--blue-600);
}

.featured-news-grid {
  display: grid;
  min-height: 480px;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.featured-news-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: var(--blue-900);
}

.featured-main {
  grid-row: 1 / 3;
}

.featured-media,
.featured-media img,
.featured-media .news-image-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-media img {
  object-fit: cover;
  transition: transform .55s ease;
}

.featured-news-card:hover .featured-media img {
  transform: scale(1.035);
}

.featured-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(3,24,43,.92) 100%);
  content: "";
}

.featured-overlay {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 34px;
}

.featured-side .featured-overlay {
  padding: 20px 24px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.6);
  font-size: 11px;
}

.featured-meta span {
  padding: 4px 8px;
  color: #d2fbf7;
  background: rgba(32,183,170,.7);
}

.featured-overlay h3 {
  max-width: 720px;
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
}

.featured-side h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-overlay h3 a:hover {
  color: var(--cyan-300);
}

.featured-overlay p {
  display: -webkit-box;
  max-width: 680px;
  margin: 13px 0 0;
  overflow: hidden;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-loading-card {
  min-height: 220px;
  background: linear-gradient(105deg, #e9f0f5 20%, #f5f8fa 38%, #e9f0f5 55%);
  background-size: 200% 100%;
  animation: loading-shine 1.3s linear infinite;
}

.news-loading-card:first-child {
  grid-row: 1 / 3;
}

@keyframes loading-shine {
  to { background-position-x: -200%; }
}

.news-list-section {
  padding: 82px 0 100px;
  background: #f5f8fb;
}

.news-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.news-section-title.compact {
  margin-bottom: 0;
}

.news-filter-search {
  display: flex;
  width: 310px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #d1dde7;
  background: #fff;
}

.news-filter-search:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(23,111,192,.08);
}

.news-filter-search input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.news-filter-search button {
  display: grid;
  width: 48px;
  place-items: center;
  border: 0;
  color: #fff;
  background: var(--blue-700);
}

.news-filter-search svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 20px;
  padding: 8px;
  background: #eaf0f5;
}

.news-filter-button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  color: #5d7083;
  background: transparent;
  font-size: 13px;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.news-filter-button span {
  margin-left: 6px;
  color: #9aa8b5;
  font-size: 10px;
}

.news-filter-button:hover,
.news-filter-button.active {
  color: var(--blue-700);
  background: #fff;
  box-shadow: 0 4px 14px rgba(21,61,96,.08);
}

.news-filter-button.active span {
  color: var(--cyan-500);
}

.news-result-meta {
  margin-bottom: 17px;
  color: #8795a4;
  font-size: 12px;
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dde6ed;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-card:hover {
  border-color: #c8dbe8;
  box-shadow: 0 20px 42px rgba(19,58,94,.11);
  transform: translateY(-6px);
}

.news-card-media {
  position: relative;
  display: block;
  height: 218px;
  overflow: hidden;
  background: var(--blue-900);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.045);
}

.news-card-category {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 7px 12px;
  color: #fff;
  background: rgba(15,92,168,.9);
  font-size: 11px;
}

.news-image-fallback {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(32,183,170,.26), transparent 35%),
    linear-gradient(135deg, #0a3e69, #0d7192);
}

.news-image-fallback::before,
.news-image-fallback::after {
  position: absolute;
  border: 1px solid rgba(113,215,205,.2);
  border-radius: 50%;
  content: "";
}

.news-image-fallback::before { width: 145px; height: 145px; }
.news-image-fallback::after { width: 95px; height: 95px; }

.news-image-fallback i {
  position: relative;
  z-index: 2;
  color: var(--cyan-300);
  font: 11px Arial, sans-serif;
  letter-spacing: .25em;
}

.news-image-fallback b {
  position: relative;
  z-index: 2;
  margin-top: 7px;
  font-size: 16px;
}

.news-card-body {
  padding: 24px 24px 26px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: #94a1ae;
  font-size: 10px;
}

.news-card-meta span {
  color: var(--blue-600);
}

.news-card h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--blue-950);
  font-size: 18px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card h3 a:hover {
  color: var(--blue-600);
}

.news-card-body > p {
  display: -webkit-box;
  min-height: 68px;
  margin: 0;
  overflow: hidden;
  color: #758494;
  font-size: 12px;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 600;
}

.news-read-more span {
  transition: transform .2s ease;
}

.news-read-more:hover span {
  transform: translateX(4px);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 48px;
}

.pagination button {
  min-width: 39px;
  height: 39px;
  padding: 0 11px;
  border: 1px solid #d4dfe8;
  color: #647588;
  background: #fff;
  font-size: 12px;
}

.pagination button:not(:disabled):hover,
.pagination button.active {
  color: #fff;
  border-color: var(--blue-700);
  background: var(--blue-700);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.pagination-ellipsis {
  padding: 0 3px;
  color: #9ba8b5;
}

.news-empty,
.news-load-error {
  grid-column: 1 / -1;
  padding: 75px 20px;
  color: #82909e;
  background: #fff;
  text-align: center;
}

.news-empty strong {
  display: block;
  margin-bottom: 9px;
  color: var(--blue-950);
  font-size: 20px;
}

.detail-breadcrumb-bar {
  padding: 24px 0;
  border-bottom: 1px solid #dfe7ed;
  color: #8391a0;
  background: #fff;
}

.news-article {
  max-width: 920px;
  margin-top: 54px;
  margin-bottom: 80px;
  padding: 62px 72px 70px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(24,59,91,.08);
}

.article-header {
  padding-bottom: 31px;
  border-bottom: 1px solid #dde5eb;
  text-align: center;
}

.article-category {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 13px;
  color: var(--blue-700);
  background: #eaf3f9;
  font-size: 11px;
}

.article-header h1 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.55;
  letter-spacing: .02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 22px;
  color: #929eaa;
  font-size: 11px;
}

.article-lead-image {
  margin: 36px 0 0;
}

.article-lead-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.article-content {
  padding-top: 38px;
  color: #34475a;
  font-size: 16px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.article-content p {
  margin: 0 0 20px;
  text-align: justify;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 38px 0 18px;
  color: var(--blue-950);
  line-height: 1.55;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--cyan-500);
  color: #536b80;
  background: #f2f7fa;
}

.article-content ul,
.article-content ol {
  padding-left: 2em;
}

.article-content a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content table {
  display: block;
  max-width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 8px 12px;
  border: 1px solid #d7e0e7;
}

.article-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding: 18px 20px;
  color: #7c8a99;
  background: #f2f6f9;
  font-size: 12px;
}

.article-source a {
  color: var(--blue-600);
  font-weight: 600;
}

.article-siblings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 42px;
  background: #dce4eb;
}

.article-siblings a,
.article-sibling-empty {
  display: flex;
  min-height: 105px;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
  background: #fff;
}

.article-siblings a:last-child {
  text-align: right;
}

.article-siblings small {
  margin-bottom: 8px;
  color: var(--blue-600);
}

.article-siblings span {
  display: -webkit-box;
  overflow: hidden;
  color: #4e6071;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-siblings a:hover span {
  color: var(--blue-600);
}

.article-loading,
.article-error {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #81909f;
  text-align: center;
}

.article-loading i {
  width: 36px;
  height: 36px;
  border: 2px solid #dbe5ec;
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: article-spin .8s linear infinite;
}

.article-loading p {
  margin-top: 15px;
  font-size: 13px;
}

@keyframes article-spin { to { transform: rotate(360deg); } }

.article-error span {
  color: #e4ebf0;
  font: 90px Arial, sans-serif;
  font-weight: 800;
}

.article-error h1 {
  margin: 0 0 10px;
  color: var(--blue-950);
}

.article-error p {
  margin: 0 0 25px;
}

.related-news-section {
  padding: 76px 0 96px;
  background: #fff;
}

.related-grid {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .featured-news-grid { min-height: 600px; grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr; }
  .featured-main { grid-column: 1 / 3; grid-row: 1; }
  .featured-side { grid-row: 2; }
  .news-card-grid { grid-template-columns: 1fr 1fr; }
  .news-article { width: min(100% - 36px, 920px); padding: 50px 48px 60px; }
}

@media (max-width: 640px) {
  .news-hero,
  .news-hero-inner { min-height: 235px; }
  .news-hero-inner h1 { font-size: 34px; }
  .featured-news-section { padding: 58px 0 66px; }
  .news-section-title h2 { font-size: 25px; }
  .featured-news-grid { min-height: 780px; grid-template-columns: 1fr; grid-template-rows: 1.25fr 1fr 1fr; }
  .featured-main { grid-column: 1; grid-row: 1; }
  .featured-side { grid-row: auto; }
  .featured-overlay,
  .featured-side .featured-overlay { padding: 22px; }
  .featured-overlay h3 { font-size: 18px; }
  .featured-overlay p { display: none; }
  .news-list-section { padding: 62px 0 72px; }
  .news-list-heading { align-items: stretch; flex-direction: column; gap: 22px; }
  .news-filter-search { width: 100%; }
  .news-filters { flex-wrap: nowrap; overflow-x: auto; }
  .news-filter-button { flex: 0 0 auto; }
  .news-card-grid { grid-template-columns: 1fr; }
  .news-card-media { height: 225px; }
  .pagination-direction { flex: 1; }
  .detail-breadcrumb-bar { padding: 18px 0; }
  .news-article { width: 100%; margin-top: 0; margin-bottom: 45px; padding: 40px 20px 48px; box-shadow: none; }
  .article-header h1 { font-size: 26px; }
  .article-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .article-content { padding-top: 30px; font-size: 15px; line-height: 1.95; }
  .article-source { align-items: flex-start; flex-direction: column; }
  .article-siblings { grid-template-columns: 1fr; }
  .article-siblings a:last-child { text-align: left; }
  .article-sibling-empty { display: none; }
  .related-news-section { padding: 60px 0 72px; }
}
