@import url('theme-vars.css');

/* ═══════════════════════════════════════════════════════════════
   News — Professional AI Company Style
   Namespace: news-
   Design: Clean, professional, dynamic but not overly modern
   Maintains corporate credibility of a leading AI company
   ═══════════════════════════════════════════════════════════════ */

:root {
  --font-base: 'Poppins', 'Inter', 'Nunito', sans-serif;
  --font-prose: 'CerebriSans', -apple-system, system-ui, Roboto, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 12px 32px rgba(30, 58, 95, 0.12);
  --shadow-xl: 0 24px 56px rgba(30, 58, 95, 0.16);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --news-primary: var(--primary-color);
  --news-primary-dark: color-mix(in srgb, var(--primary-color) 85%, black);
  --news-primary-deeper: color-mix(in srgb, var(--primary-color) 60%, black);
  --news-primary-light: color-mix(
    in srgb,
    var(--primary-color) 10%,
    transparent
  );
  --news-primary-container: color-mix(in srgb, var(--primary-color) 8%, white);
  --news-secondary: var(--secondary-color);
  --news-secondary-light: color-mix(in srgb, var(--secondary-color) 60%, white);
  --news-on-surface: #181c1e;
  --news-on-surface-variant: #424750;
  --news-surface: #f7fafd;
  --news-surface-low: #f1f4f7;
  --news-surface-lowest: #ffffff;
  --news-surface-high: #e5e8eb;
  --news-outline: #c2c6d2;
  --news-accent: #10b981;
  --news-accent-light: color-mix(in srgb, #10b981 10%, transparent);
}

/* ═══════════════════════════════════════════════════════════════
   1. NEWS RIBBON (Ticker)
   ═══════════════════════════════════════════════════════════════ */
.news-ribbon {
  background: var(--news-secondary);
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 10;
  height: 40px;
  display: flex;
  align-items: center;
}

.news-ribbon__inner {
  width: 100%;
  overflow: hidden;
}

.news-ribbon__track {
  display: flex;
  gap: 3.2rem;
  animation: news-ribbon-scroll 40s linear infinite;
  width: max-content;
}

.news-ribbon__track:hover {
  animation-play-state: paused;
}

.news-ribbon__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  font-size: 1.3rem;
  font-family: var(--font-base);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.news-ribbon__badge {
  background: var(--news-primary);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-ribbon__text {
  color: rgba(255, 255, 255, 0.9);
}

@keyframes news-ribbon-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════════════════════════════
   2. NEWS HERO
   ═══════════════════════════════════════════════════════════════ */
.news-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(
    135deg,
    var(--news-surface-low) 0%,
    var(--news-surface) 100%
  );
  position: relative;
  overflow: hidden;
}

.news-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    ellipse,
    var(--news-primary-light) 0%,
    transparent 70%
  );
  opacity: 0.4;
  pointer-events: none;
}

.news-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.news-hero__content {
  position: relative;
  z-index: 2;
}

.news-hero__title {
  font-family: var(--font-base);
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--news-on-surface);
  margin-bottom: 1.6rem;
}

.news-hero__title-line {
  display: block;
}

.news-hero__title-line:last-child {
  color: var(--news-primary);
}

.news-hero__subtitle {
  font-family: var(--font-base);
  font-size: 1.8rem;
  line-height: 1.6;
   color: var(--news-on-surface-variant);
   margin-bottom: 1.8rem;
  max-width: 520px;
}

.news-hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
}

.news-hero__highlight {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--news-surface-lowest);
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 10px 20px rgba(30, 58, 95, 0.05);
  font-family: var(--font-base);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--news-on-surface);
}

.news-hero__search {
  margin-bottom: 0;
}

.news-search-form {
  width: 100%;
}

.news-search-form__wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--news-surface-lowest);
  border: 2px solid var(--news-outline);
  border-radius: var(--radius-xl);
  padding: 0.4rem;
  min-width: 0;
  transition:
    border-color var(--ease) 0.3s,
    box-shadow var(--ease) 0.3s;
}

.news-search-form__wrapper:focus-within {
  border-color: var(--news-primary);
  box-shadow: 0 0 0 4px var(--news-primary-light);
}

.news-search-form__wrapper i {
  padding-left: 1.6rem;
  color: var(--news-on-surface-variant);
  font-size: 1.6rem;
}

.news-search-form__wrapper input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  padding: 1.2rem 1.6rem;
  font-family: var(--font-base);
  font-size: 1.5rem;
  color: var(--news-on-surface);
  background: transparent;
}

.news-search-form__wrapper input::placeholder {
  color: var(--news-on-surface-variant);
  opacity: 0.6;
}

.news-search-form__btn {
  background: var(--news-primary);
  color: #fff;
  border: none;
  padding: 1.2rem 2.4rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-base);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--ease) 0.2s,
    transform var(--ease) 0.2s;
  white-space: nowrap;
}

.news-search-form__btn:hover {
  background: var(--news-primary-dark);
  transform: translateY(-1px);
}

.news-search-form__quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
  font-family: var(--font-base);
  font-size: 1.3rem;
  color: var(--news-on-surface-variant);
}

.news-search-form__quick-links span {
  font-weight: 500;
}

.news-search-form__quick-links a {
  color: var(--news-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  transition:
    background var(--ease) 0.2s,
    color var(--ease) 0.2s;
}

.news-search-form__quick-links a:hover {
  background: var(--news-primary-container);
}

.news-hero__visual {
  position: relative;
  z-index: 2;
}

.news-hero__showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  min-height: 400px;
}

.news-hero__showcase-item {
  position: relative;
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  padding: 2.2rem;
  border-radius: calc(var(--radius-xl) + 0.2rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 50px rgba(30, 58, 95, 0.12);
  transition: all var(--ease-bounce) 0.5s;
  text-decoration: none;
  cursor: default;
}

.news-hero__showcase-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 62%);
  pointer-events: none;
  transition: opacity var(--ease) 0.4s;
}

.news-hero__showcase-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 64px rgba(30, 58, 95, 0.2);
  border-color: var(--news-primary);
  z-index: 10;
}

.news-hero__showcase-item--main:hover {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15), 0 0 40px var(--news-primary-light);
}

.news-hero__showcase-item:hover::before {
  opacity: 0.8;
}

.news-hero__showcase-item--main {
  grid-row: 1 / 3;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(145deg, var(--news-primary-dark) 0%, var(--news-primary) 100%);
  color: #fff;
}

.news-hero__showcase-item--secondary {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f6f8fc 100%);
  color: var(--news-on-surface);
}

.news-hero__showcase-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.news-hero__showcase-item--secondary .news-hero__showcase-icon {
  background: rgba(234, 116, 12, 0.1);
}

.news-hero__showcase-icon i {
  font-size: 2.6rem;
  color: #fff;
}

.news-hero__showcase-item--secondary .news-hero__showcase-icon i {
  color: var(--news-primary);
}

.news-hero__showcase-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.news-hero__showcase-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 2.8rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.news-hero__showcase-item--secondary .news-hero__showcase-label {
  background: rgba(30, 58, 95, 0.08);
  color: var(--news-primary);
}

.news-hero__showcase-title {
  margin: 0;
  font-family: var(--font-base);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-hero__showcase-item--main .news-hero__showcase-title {
  font-size: 2.2rem;
  max-width: 28rem;
}

.news-hero__showcase-desc {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.65;
  opacity: 0.92;
  max-width: 32rem;
}

.news-hero__showcase-points,
.news-hero__showcase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.news-hero__showcase-points span,
.news-hero__showcase-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.6rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

.news-hero__showcase-points span {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.96);
}

.news-hero__showcase-pills span {
  background: rgba(30, 58, 95, 0.08);
  color: var(--news-primary);
}

.news-hero__showcase-list {
  margin: 0;
  padding-left: 1.7rem;
  display: grid;
  gap: 0.7rem;
  color: var(--news-on-surface-variant);
  font-size: 1.35rem;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   3. FEATURED SLIDER
   ═══════════════════════════════════════════════════════════════ */
.news-featured-slider {
  padding: 6rem 0;
  background: var(--news-surface-lowest);
}

.news-featured-slider__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.2rem;
}

.news-featured-slider__title {
  font-family: var(--font-base);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--news-on-surface);
  position: relative;
}

.news-featured-slider__title::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--news-primary);
  border-radius: 2px;
}

.news-featured-slider__nav {
  display: flex;
  gap: 0.8rem;
}

.news-featured-slider__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--news-outline);
  background: var(--news-surface-lowest);
  color: var(--news-on-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease) 0.2s;
  font-size: 1.4rem;
}

.news-featured-slider__btn:hover {
  background: var(--news-primary);
  border-color: var(--news-primary);
  color: #fff;
}

.news-featured-card {
  background: var(--news-surface-lowest);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--ease) 0.3s,
    box-shadow var(--ease) 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-featured-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-featured-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease) 0.6s;
  transform-origin: center;
}

.news-featured-card:hover .news-featured-card__image img {
  transform: scale(1.1);
}

.news-featured-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.news-featured-card__badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--news-primary);
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  font-family: var(--font-base);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 2;
}

.news-featured-card__content {
  padding: 2rem 2.4rem 2.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-featured-card__meta {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-base);
  font-size: 1.3rem;
  color: var(--news-on-surface-variant);
}

.news-featured-card__date i,
.news-featured-card__readtime i {
  margin-right: 0.4rem;
}

.news-featured-card__title {
  font-family: var(--font-base);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--news-on-surface);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured-card__excerpt {
  font-family: var(--font-base);
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--news-on-surface-variant);
  margin-bottom: 1.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-featured-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-base);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--news-primary);
  transition: gap var(--ease) 0.2s;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--news-surface-high);
}

.news-featured-card:hover .news-featured-card__cta {
  gap: 1.2rem;
}

/* Override Swiper default overflow:hidden so hover translateY is not clipped */
.news-featured-swiper {
  overflow: visible !important;
  padding-top: 1.5rem;
  padding-bottom: 4.5rem;
}

.news-featured-swiper .swiper-wrapper {
  overflow: visible !important;
}

.news-featured-swiper .swiper-slide {
  height: auto;
  align-self: stretch;
  position: relative;
  z-index: 1;
  overflow: visible !important;
}

.news-featured-swiper .swiper-slide:hover {
  z-index: 10;
}

.news-featured-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--news-outline);
  opacity: 1;
  transition: all var(--ease) 0.3s;
}

.news-featured-swiper .swiper-pagination-bullet-active {
  background: var(--news-primary);
  width: 24px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   4. SOLUTIONS SHOWCASE
   ═══════════════════════════════════════════════════════════════ */
.news-solutions {
  padding: 6rem 0;
  background: var(--news-surface-low);
}

.news-solutions__header {
  text-align: center;
  margin-bottom: 4rem;
}

.news-solutions__title {
  font-family: var(--font-base);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--news-on-surface);
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.news-solutions__title::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--news-primary);
  border-radius: 2px;
}

.news-solutions__subtitle {
  font-family: var(--font-base);
  font-size: 1.7rem;
  color: var(--news-on-surface-variant);
  max-width: 600px;
  margin: 2rem auto 0;
  line-height: 1.6;
}

.news-solutions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem;
}

.news-solutions__card {
  background: var(--news-surface-lowest);
  border-radius: var(--radius-xl);
  padding: 3.2rem 2.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--ease) 0.3s,
    box-shadow var(--ease) 0.3s;
  border: 1px solid var(--news-surface-high);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-solutions__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transition: height var(--ease) 0.3s;
}

.news-solutions__card--ai-vision::before {
  background: var(--news-primary);
}
.news-solutions__card--knowledge-agent::before {
  background: var(--news-accent);
}
.news-solutions__card--cloud-ai::before {
  background: var(--news-secondary);
}
.news-solutions__card--iot-ai::before {
  background: #8b5cf6;
}

.news-solutions__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.news-solutions__card:hover::before {
  height: 6px;
}

.news-solutions__card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.4rem;
  transition: transform var(--ease) 0.3s;
}

.news-solutions__card:hover .news-solutions__card-icon {
  transform: scale(1.1);
}

.news-solutions__card--ai-vision .news-solutions__card-icon {
  background: var(--news-primary-light);
  color: var(--news-primary);
}

.news-solutions__card--knowledge-agent .news-solutions__card-icon {
  background: var(--news-accent-light);
  color: var(--news-accent);
}

.news-solutions__card--cloud-ai .news-solutions__card-icon {
  background: color-mix(in srgb, var(--news-secondary) 10%, transparent);
  color: var(--news-secondary);
}

.news-solutions__card--iot-ai .news-solutions__card-icon {
  background: color-mix(in srgb, #8b5cf6 10%, transparent);
  color: #8b5cf6;
}

.news-solutions__card-title {
  font-family: var(--font-base);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--news-on-surface);
  margin-bottom: 1.2rem;
}

.news-solutions__card-desc {
  font-family: var(--font-base);
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--news-on-surface-variant);
  margin-bottom: 2rem;
  flex: 1;
}

.news-solutions__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-base);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--news-primary);
  text-decoration: none;
  transition: gap var(--ease) 0.2s;
  margin-top: auto;
  padding-top: 1.6rem;
  border-top: 1px solid var(--news-surface-high);
}

.news-solutions__card-link:hover {
  gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   5. CATEGORY FILTERS
   ═══════════════════════════════════════════════════════════════ */
.news-categories {
  padding: 6rem 0;
  background: var(--news-surface-lowest);
}

.news-categories__header {
  text-align: center;
  margin-bottom: 4rem;
}

.news-categories__title {
  font-family: var(--font-base);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--news-on-surface);
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.news-categories__title::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--news-primary);
  border-radius: 2px;
}

.news-categories__subtitle {
  font-family: var(--font-base);
  font-size: 1.7rem;
  color: var(--news-on-surface-variant);
  margin-top: 2rem;
}

.news-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.news-categories__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.2rem 2rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: all var(--ease) 0.3s;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--news-surface-high);
  background: var(--news-surface-lowest);
}

.news-categories__card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--ease) 0.3s;
}

.news-categories__card--ai::before,
.news-categories__card--theme-1::before {
  background: linear-gradient(
    135deg,
    var(--news-primary-light) 0%,
    transparent 60%
  );
}

.news-categories__card--vision::before,
.news-categories__card--theme-2::before {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #3b82f6 10%, transparent) 0%,
    transparent 60%
  );
}

.news-categories__card--case::before,
.news-categories__card--theme-3::before {
  background: linear-gradient(
    135deg,
    var(--news-accent-light) 0%,
    transparent 60%
  );
}

.news-categories__card--company::before,
.news-categories__card--theme-4::before {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #8b5cf6 10%, transparent) 0%,
    transparent 60%
  );
}

.news-categories__card:hover::before {
  opacity: 1;
}

.news-categories__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.news-categories__card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 1;
  transition: transform var(--ease) 0.3s;
}

.news-categories__card:hover .news-categories__card-icon {
  transform: scale(1.1);
}

.news-categories__card--ai .news-categories__card-icon,
.news-categories__card--theme-1 .news-categories__card-icon {
  background: var(--news-primary-light);
  color: var(--news-primary);
}

.news-categories__card--vision .news-categories__card-icon,
.news-categories__card--theme-2 .news-categories__card-icon {
  background: color-mix(in srgb, #3b82f6 10%, transparent);
  color: #3b82f6;
}

.news-categories__card--case .news-categories__card-icon,
.news-categories__card--theme-3 .news-categories__card-icon {
  background: var(--news-accent-light);
  color: var(--news-accent);
}

.news-categories__card--company .news-categories__card-icon,
.news-categories__card--theme-4 .news-categories__card-icon {
  background: color-mix(in srgb, #8b5cf6 10%, transparent);
  color: #8b5cf6;
}

.news-categories__card-title {
  font-family: var(--font-base);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--news-on-surface);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.news-categories__card-count {
  font-family: var(--font-base);
  font-size: 1.3rem;
  color: var(--news-on-surface-variant);
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   6. ARTICLES GRID
   ═══════════════════════════════════════════════════════════════ */
.news-articles {
  padding: 6rem 0;
  background: var(--news-surface);
}

.news-articles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.2rem;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.news-articles__title {
  font-family: var(--font-base);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--news-on-surface);
  position: relative;
}

.news-articles__title::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--news-primary);
  border-radius: 2px;
}

.news-articles__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.news-articles__filter-select {
  padding: 1rem 1.6rem;
  border: 2px solid var(--news-surface-high);
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 1.4rem;
  color: var(--news-on-surface);
  background: var(--news-surface-lowest);
  cursor: pointer;
  transition: border-color var(--ease) 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23424750'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  padding-right: 3.2rem;
}

.news-articles__filter-select:focus {
  border-color: var(--news-primary);
  outline: none;
}

.news-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.news-article-card {
  background: var(--news-surface-lowest);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(30, 58, 95, 0.08);
  transition:
    transform var(--ease) 0.3s,
    box-shadow var(--ease) 0.3s,
    border-color var(--ease) 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(30, 58, 95, 0.08);
}

.news-article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(241, 118, 12, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--ease) 0.3s;
  pointer-events: none;
}

.news-article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(30, 58, 95, 0.14);
  border-color: rgba(241, 118, 12, 0.16);
}

.news-article-card:hover::before {
  opacity: 1;
}

.news-article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

.news-article-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease) 0.5s;
}

.news-article-card:hover .news-article-card__image img {
  transform: scale(1.05);
}

.news-article-card__category {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--news-primary);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  font-family: var(--font-base);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 2;
}

.news-article-card__date {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  font-family: var(--font-base);
  font-size: 1.2rem;
  z-index: 2;
}

.news-article-card__content {
  padding: 2.2rem 2rem 2.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-article-card__title {
  font-family: var(--font-base);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--news-on-surface);
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--ease) 0.2s;
}

.news-article-card:hover .news-article-card__title {
  color: var(--news-primary);
}

.news-article-card__excerpt {
  font-family: var(--font-base);
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--news-on-surface-variant);
  margin-bottom: 1.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--news-surface-high);
}

.news-article-card__readtime {
  font-family: var(--font-base);
  font-size: 1.2rem;
  color: var(--news-on-surface-variant);
}

.news-article-card__readtime i {
  margin-right: 0.4rem;
}

.news-article-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-base);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--news-primary);
  transition: gap var(--ease) 0.2s;
}

.news-article-card:hover .news-article-card__cta {
  gap: 1rem;
}

.news-articles__empty {
  text-align: center;
  padding: 6rem 0;
  color: var(--news-on-surface-variant);
}

.news-articles__empty i {
  font-size: 4rem;
  margin-bottom: 1.6rem;
  display: block;
  color: var(--news-outline);
}

.news-articles__empty h3 {
  font-family: var(--font-base);
  font-size: 2rem;
  font-weight: 600;
  color: var(--news-on-surface);
  margin-bottom: 0.8rem;
}

.news-articles__empty p {
  font-family: var(--font-base);
  font-size: 1.5rem;
}

.news-articles__pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.news-filter-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 2rem;
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--news-primary-container) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 12px 24px rgba(30, 58, 95, 0.06);
}

.news-filter-note__text {
  font-family: var(--font-base);
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--news-on-surface);
}

.news-filter-note__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.8rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--news-surface-lowest);
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 10px 20px rgba(30, 58, 95, 0.05);
  color: var(--news-primary);
  font-family: var(--font-base);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.news-filter-note__clear:hover {
  color: #fff;
  background: var(--news-primary);
  border-color: var(--news-primary);
}

/* ═══════════════════════════════════════════════════════════════
   7. PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.news-pagination {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.news-pagination__prev,
.news-pagination__next {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--ease) 0.2s;
  border: 2px solid var(--news-surface-high);
  color: var(--news-on-surface);
  background: var(--news-surface-lowest);
}

.news-pagination__prev:hover,
.news-pagination__next:hover {
  border-color: var(--news-primary);
  color: var(--news-primary);
}

.news-pagination__pages {
  display: flex;
  gap: 0.4rem;
}

.news-pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--news-on-surface);
  transition: all var(--ease) 0.2s;
}

.news-pagination__page:hover {
  background: var(--news-primary-container);
  color: var(--news-primary);
}

.news-pagination__page--active {
  background: var(--news-primary);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   8. RELATED CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.news-related-carousel {
  padding: 6rem 0;
  background: var(--news-surface-low);
}

.news-related-carousel__header {
  text-align: center;
  margin-bottom: 4rem;
}

.news-related-carousel__title {
  font-family: var(--font-base);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--news-on-surface);
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.news-related-carousel__title::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--news-primary);
  border-radius: 2px;
}

.news-related-carousel__subtitle {
  font-family: var(--font-base);
  font-size: 1.7rem;
  color: var(--news-on-surface-variant);
  margin-top: 2rem;
}

.news-related-card {
  background: var(--news-surface-lowest);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(30, 58, 95, 0.08);
  transition:
    transform var(--ease) 0.3s,
    box-shadow var(--ease) 0.3s,
    border-color var(--ease) 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(30, 58, 95, 0.08);
}

.news-related-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(241, 118, 12, 0.04) 100%);
  opacity: 0;
  transition: opacity var(--ease) 0.3s;
  pointer-events: none;
}

.news-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(30, 58, 95, 0.12);
  border-color: rgba(241, 118, 12, 0.14);
}

.news-related-card:hover::before {
  opacity: 1;
}

.news-related-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

.news-related-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease) 0.5s;
}

.news-related-card:hover .news-related-card__image img {
  transform: scale(1.05);
}

.news-related-card__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--news-primary);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-base);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.news-related-card__content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-related-card__title {
  font-family: var(--font-base);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--news-on-surface);
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--ease) 0.2s;
}

.news-related-card:hover .news-related-card__title {
  color: var(--news-primary);
}

.news-related-card__excerpt {
  font-family: var(--font-base);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--news-on-surface-variant);
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-related-card__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-base);
  font-size: 1.2rem;
  color: var(--news-on-surface-variant);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--news-surface-high);
}

.news-related-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--news-outline);
  opacity: 1;
}

.news-related-swiper .swiper-pagination-bullet-active {
  background: var(--news-primary);
  width: 24px;
  border-radius: 4px;
}

.news-related-swiper .swiper-slide {
  height: auto;
}

/* ═══════════════════════════════════════════════════════════════
   9. NEWSLETTER
   ═══════════════════════════════════════════════════════════════ */
.news-newsletter {
  padding: 6rem 0;
  background: var(--news-surface-lowest);
}

.news-newsletter__card {
  background: linear-gradient(
    135deg,
    var(--news-secondary) 0%,
    color-mix(in srgb, var(--news-secondary) 70%, var(--news-primary)) 100%
  );
  border-radius: var(--radius-2xl);
  padding: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.news-newsletter__card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.news-newsletter__content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.news-newsletter__title {
  font-family: var(--font-base);
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.news-newsletter__desc {
  font-family: var(--font-base);
  font-size: 1.6rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.4rem;
  max-width: 500px;
}

.news-newsletter__form {
  width: 100%;
  max-width: 480px;
}

.news-newsletter__form-group {
  display: flex;
  gap: 0.8rem;
}

.news-newsletter__form-group input {
  flex: 1;
  padding: 1.4rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-base);
  font-size: 1.4rem;
  outline: none;
  transition:
    border-color var(--ease) 0.2s,
    background var(--ease) 0.2s;
}

.news-newsletter__form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.news-newsletter__form-group input:focus {
  border-color: var(--news-primary);
  background: rgba(255, 255, 255, 0.15);
}

.news-newsletter__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 2.4rem;
  background: var(--news-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-base);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--ease) 0.2s,
    transform var(--ease) 0.2s;
  white-space: nowrap;
}

.news-newsletter__submit:hover {
  background: var(--news-primary-dark);
  transform: translateY(-2px);
}

.news-newsletter__privacy {
  font-family: var(--font-base);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1.2rem;
}

.news-newsletter__privacy a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.news-newsletter__illustration {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.news-newsletter__icon {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.8);
  animation: news-newsletter-pulse 3s ease-in-out infinite;
}

@keyframes news-newsletter-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ═══════════════════════════════════════════════════════════════
   10. ARTICLE DETAIL PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ─── Breadcrumb ─── */
.news-detail-bar {
  background: var(--news-surface-lowest);
  border-bottom: 1px solid var(--news-surface-high);
  padding: 1.4rem 0;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-base);
  font-size: 1.3rem;
  color: var(--news-on-surface-variant);
}

.news-breadcrumb a {
  color: var(--news-on-surface-variant);
  text-decoration: none;
  transition: color var(--ease) 0.2s;
}

.news-breadcrumb a:hover {
  color: var(--news-primary);
}

.news-breadcrumb__sep {
  color: var(--news-outline);
  font-size: 1rem;
}

.news-breadcrumb__current {
  color: var(--news-primary);
  font-weight: 600;
}

/* ─── Article Hero ─── */
.news-article-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.news-article-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.news-article-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.02);
  transition: transform 6s var(--ease);
}

.news-article-hero:hover .news-article-hero__bg-img {
  transform: scale(1.06);
}

.news-article-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.25) 0%,
    rgba(15, 23, 42, 0.55) 40%,
    rgba(15, 23, 42, 0.92) 100%
  );
  z-index: 1;
}

.news-article-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6rem 0 4rem;
}

.news-article-hero__content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: news-hero-fade-up 0.8s var(--ease) both;
}

@keyframes news-hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-article-hero__badge {
  display: inline-flex;
}

.news-article-hero__category {
  display: inline-block;
  background: var(--news-primary);
  color: #fff;
  font-family: var(--font-base);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.5rem 1.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  overflow: hidden;
}

.news-article-hero__category::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.news-article-hero__title {
  font-family: var(--font-base);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.news-article-hero__lead {
  font-family: var(--font-prose);
  font-size: 1.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.news-article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-base);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.75);
}

.news-article-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.news-article-hero__meta-item i {
  color: var(--news-primary);
  font-size: 1.3rem;
}

.news-article-hero__meta-divider {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 1.2rem;
}

.news-article-hero:not(:has(.news-article-hero__bg)) {
  background: linear-gradient(
    135deg,
    var(--news-secondary) 0%,
    var(--news-primary-deeper) 100%
  );
}

.news-article-hero:not(:has(.news-article-hero__bg))
  .news-article-hero__meta-divider {
  background: rgba(255, 255, 255, 0.3);
}

/* ── Topics Ribbon ── */
.news-detail-topics-ribbon {
  background: var(--news-surface-lowest);
  border-bottom: 1px solid var(--news-surface-high);
  padding: 1.6rem 0;
}

.news-detail-topics-ribbon__inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.4rem;
}

.news-detail-topics-ribbon__inner::-webkit-scrollbar {
  display: none;
}

.news-detail-topics-ribbon__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-base);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--news-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-detail-topics-ribbon__label i {
  font-size: 1.2rem;
}

.news-detail-topics-ribbon__cloud {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
}

.news-detail-topics-ribbon__tag {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border-radius: 100px;
  background: var(--news-surface-low);
  color: var(--news-on-surface-variant);
  font-family: var(--font-base);
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--news-surface-high);
  transition: all var(--ease) 0.25s;
}

.news-detail-topics-ribbon__tag:hover {
  background: var(--news-primary);
  color: #fff;
  border-color: var(--news-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px
    color-mix(in srgb, var(--news-primary) 30%, transparent);
}

.news-detail-topics-ribbon__tag--active {
  background: var(--news-primary);
  color: #fff;
  border-color: var(--news-primary);
  font-weight: 600;
}

/* ─── Layout ─── */
.news-detail-layout {
  padding: 4rem 0 6rem;
  /* background: var(--news-surface); */
}

.news-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .news-detail-grid {
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
  }
}

/* ─── Main Content ─── */
.news-detail-main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.news-detail__prose {
  font-family: var(--font-prose);
  font-size: 1.8rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--news-on-surface);
}

.news-detail__prose h2,
.news-detail__prose h3,
.news-detail__prose h4 {
  font-family: var(--font-base);
  color: var(--news-primary);
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.news-detail__prose h2 {
  font-size: 2.4rem;
  border-bottom: 2px solid var(--news-surface-high);
  padding-bottom: 0.8rem;
}

.news-detail__prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 2.4rem 0;
}

.news-detail__prose pre {
  background: #181c1e;
  color: #f1f4f7;
  padding: 2rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-size: 1.5rem;
}

.news-detail__prose blockquote {
  border-left: 4px solid var(--news-primary);
  padding: 1.6rem 2.4rem;
  margin: 2.4rem 0;
  background: var(--news-primary-container);
  font-style: italic;
}

.news-detail__actions {
  border-top: 1px solid var(--news-surface-high);
  padding-top: 3rem;
}

.news-detail__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

.news-detail__share span {
  font-family: var(--font-base);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--news-on-surface-variant);
}

.news-detail__share-buttons {
  display: flex;
  gap: 0.8rem;
}

.news-detail__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: var(--news-surface-high);
  color: var(--news-on-surface);
  text-decoration: none;
  transition: all var(--ease) 0.2s;
  font-size: 1.4rem;
}

.news-detail__share-btn:hover {
  transform: translateY(-2px);
}

.news-detail__share-btn--facebook:hover {
  background: #1877f2;
  color: #fff;
}

.news-detail__share-btn--linkedin:hover {
  background: #0077b5;
  color: #fff;
}

.news-detail__share-btn--twitter:hover {
  background: #1da1f2;
  color: #fff;
}

.news-detail__share-btn--copy:hover {
  background: var(--news-primary);
  color: #fff;
}

/* ─── Related Articles (Detail Page Carousel) ─── */
.news-detail-related {
  border-top: 1px solid var(--news-surface-high);
  padding-top: 4rem;
}

.news-detail-related__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

.news-detail-related__header-left {
  flex: 1;
}

.news-detail-related__title {
  font-family: var(--font-base);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--news-on-surface);
  margin: 0 0 0.6rem;
  position: relative;
  display: inline-block;
}

.news-detail-related__title::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--news-primary);
  border-radius: 2px;
}

.news-detail-related__subtitle {
  font-family: var(--font-base);
  font-size: 1.5rem;
  color: var(--news-on-surface-variant);
  margin: 0;
}

.news-detail-related__nav {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.news-detail-related__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--news-surface-high);
  background: var(--news-surface-lowest);
  color: var(--news-on-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease) 0.25s;
  font-size: 1.3rem;
}

.news-detail-related__btn:hover {
  background: var(--news-primary);
  border-color: var(--news-primary);
  color: #fff;
  transform: scale(1.08);
}

.news-detail-related-card {
  background: var(--news-surface-lowest);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--ease) 0.35s,
    box-shadow var(--ease) 0.35s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-detail-related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.news-detail-related-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-detail-related-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-detail-related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease) 0.5s;
}

.news-detail-related-card:hover .news-detail-related-card__image img {
  transform: scale(1.08);
}

.news-detail-related-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0;
  transition: opacity var(--ease) 0.3s;
}

.news-detail-related-card:hover .news-detail-related-card__overlay {
  opacity: 1;
}

.news-detail-related-card__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--news-primary);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-family: var(--font-base);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}

.news-detail-related-card__content {
  padding: 1.8rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-detail-related-card__title {
  font-family: var(--font-base);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--news-on-surface);
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--ease) 0.2s;
}

.news-detail-related-card:hover .news-detail-related-card__title {
  color: var(--news-primary);
}

.news-detail-related-card__excerpt {
  font-family: var(--font-base);
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--news-on-surface-variant);
  margin-bottom: 1.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-detail-related-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--news-surface-high);
}

.news-detail-related-card__meta {
  display: flex;
  gap: 1.2rem;
  font-family: var(--font-base);
  font-size: 1.2rem;
  color: var(--news-on-surface-variant);
}

.news-detail-related-card__meta i {
  margin-right: 0.4rem;
}

.news-detail-related-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-base);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--news-primary);
  transition: gap var(--ease) 0.2s;
}

.news-detail-related-card:hover .news-detail-related-card__cta {
  gap: 1rem;
}

.news-detail-related-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--news-outline);
  opacity: 1;
  transition: all var(--ease) 0.3s;
}

.news-detail-related-swiper .swiper-pagination-bullet-active {
  background: var(--news-primary);
  width: 24px;
  border-radius: 4px;
}

.news-detail-related-swiper .swiper-slide {
  height: auto;
}

.news-article-card--compact {
  background: var(--news-surface-lowest);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--ease) 0.3s,
    box-shadow var(--ease) 0.3s;
}

.news-article-card--compact:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ─── Sidebar ─── */
.news-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ─── Search ─── */
.news-detail-search {
  background: var(--news-primary-container);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
}

.news-detail-search__title {
  font-family: var(--font-base);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--news-primary);
  margin: 0 0 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.news-detail-search__form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.news-detail-search__input {
  width: 100%;
  padding: 1.2rem 1.6rem;
  background: #fff;
  border: 1px solid var(--news-surface-high);
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 1.4rem;
  color: var(--news-on-surface);
  transition: border-color var(--ease) 0.2s;
}

.news-detail-search__input:focus {
  outline: none;
  border-color: var(--news-primary);
}

.news-detail-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--news-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease) 0.2s;
}

.news-detail-search__btn:hover {
  background: var(--news-primary-dark);
}

/* ─── Topics ─── */
.news-detail-topics {
  background: var(--news-surface-lowest);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  border: 1px solid var(--news-surface-high);
}

.news-detail-topics__title {
  font-family: var(--font-base);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--news-primary);
  margin: 0 0 1.6rem;
}

.news-detail-topics__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.news-detail-topic {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  background: var(--news-surface-low);
  color: var(--news-on-surface);
  font-family: var(--font-base);
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--ease) 0.2s;
}

.news-detail-topic:hover {
  background: var(--news-primary);
  color: #fff;
}

.news-detail-topic--all {
  background: var(--news-primary);
  color: #fff;
  font-weight: 600;
}

/* ─── Table of Contents ─── */
.news-detail-toc {
  position: sticky;
  top: 100px;
  background: var(--news-surface-lowest);
  border-radius: var(--radius-xl);
  padding: 2.4rem 2rem;
  border: 1px solid var(--news-surface-high);
  overflow: hidden;
}

.news-detail-toc__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.news-detail-toc__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--news-primary-light);
  color: var(--news-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.news-detail-toc__title {
  font-family: var(--font-base);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--news-on-surface);
  margin: 0;
}

.news-detail-toc__progress {
  width: 100%;
  height: 3px;
  background: var(--news-surface-high);
  border-radius: 2px;
  margin-bottom: 1.6rem;
  overflow: hidden;
}

.news-detail-toc__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--news-primary) 0%,
    var(--news-accent) 100%
  );
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}

.news-detail-toc__nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-detail-toc__nav li {
  margin-bottom: 0;
}

.news-detail-toc__nav a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--news-on-surface-variant);
  text-decoration: none;
  font-family: var(--font-base);
  font-size: 1.35rem;
  line-height: 1.4;
  border-left: 3px solid transparent;
  margin-left: -3px;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: all var(--ease) 0.25s;
}

.news-detail-toc__nav a:hover {
  color: var(--news-primary);
  background: var(--news-primary-container);
  border-left-color: var(--news-primary);
}

.news-detail-toc__nav a.is-active {
  color: var(--news-primary);
  font-weight: 600;
  background: var(--news-primary-container);
  border-left-color: var(--news-primary);
}

.news-detail-toc__nav a.news-detail-toc__link--h3 {
  font-size: 1.25rem;
  padding-left: 2rem;
}

/* ─── Sidebar Card ─── */
.news-detail-sidebar-card {
  background: linear-gradient(
    135deg,
    var(--news-primary) 0%,
    var(--news-primary-dark) 100%
  );
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  color: #fff;
}

.news-detail-sidebar-card__title {
  font-family: var(--font-base);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1.6rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.news-detail-sidebar-article {
  margin-bottom: 2rem;
}

.news-detail-sidebar-article__title {
  font-family: var(--font-base);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.news-detail-sidebar-article__title a {
  color: #fff;
  text-decoration: none;
}

.news-detail-sidebar-article__title a:hover {
  text-decoration: underline;
}

.news-detail-sidebar-article__excerpt {
  font-family: var(--font-base);
  font-size: 1.3rem;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0 0 1rem;
}

.news-detail-sidebar-article__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-base);
  font-size: 1.2rem;
  opacity: 0.8;
}

.news-detail-sidebar-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-base);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  transition: background var(--ease) 0.2s;
}

.news-detail-sidebar-card__more:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   11. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .news-hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .news-hero__visual {
    display: block;
  }

  .news-hero__showcase {
    min-height: 0;
  }

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

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

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

@media (max-width: 768px) {
  .news-hero {
    padding: 4rem 0 3rem;
  }

  .news-hero__title {
    font-size: 3.2rem;
  }

  .news-hero__subtitle {
    font-size: 1.5rem;
  }

  .news-search-form__wrapper {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .news-search-form__wrapper i {
    display: none;
  }

  .news-search-form__wrapper input {
    min-width: 0;
    width: 100%;
    padding: 1.4rem 1.6rem;
    border: 1px solid rgba(30, 58, 95, 0.08);
    border-radius: var(--radius-lg);
    margin-bottom: 0;
    background: var(--news-surface-low);
  }

  .news-search-form__btn {
    width: 100%;
    padding: 1.4rem;
    border-radius: var(--radius-lg);
  }

  .news-search-form__quick-links {
    flex-wrap: wrap;
  }

  .news-hero__showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .news-hero__showcase-item {
    padding: 2rem;
  }

  .news-hero__showcase-item--main {
    grid-row: auto;
  }

  .news-featured-slider__title,
  .news-solutions__title,
  .news-categories__title,
  .news-articles__title,
  .news-related-carousel__title {
    font-size: 2.4rem;
  }

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

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

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

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

  .news-filter-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-articles__filter {
    width: 100%;
  }

  .news-articles__filter-select {
    flex: 1;
    min-width: 0;
  }

  .news-newsletter__card {
    flex-direction: column;
    padding: 3rem 2rem;
    text-align: center;
  }

  .news-newsletter__title {
    font-size: 2.4rem;
  }

  .news-newsletter__form-group {
    flex-direction: column;
  }

  .news-newsletter__icon {
    width: 100px;
    height: 100px;
    font-size: 4rem;
  }

  .news-featured-slider__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }

  .news-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Detail page mobile adjustments */
  .news-article-hero {
    min-height: 340px;
  }

  .news-article-hero__inner {
    padding: 4rem 0 3rem;
  }

  .news-article-hero__title {
    font-size: 2.8rem;
  }

  .news-article-hero__lead {
    font-size: 1.5rem;
  }

  .news-article-hero__meta {
    font-size: 1.2rem;
  }

  .news-article-hero__meta-divider {
    margin: 0 0.8rem;
  }

  .news-detail-topics-ribbon__inner {
    flex-wrap: nowrap;
  }

  .news-detail-topics-ribbon__tag {
    font-size: 1.2rem;
    padding: 0.5rem 1.2rem;
  }

  .news-detail-main {
    gap: 3rem;
  }

  .news-detail__prose {
    font-size: 1.6rem;
    line-height: 1.7;
  }

  .news-detail__prose h2 {
    font-size: 2rem;
  }

  .news-detail-toc {
    position: static;
    margin-top: 2rem;
  }

  .news-detail-sidebar {
    gap: 2rem;
  }

  .news-detail-related__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .news-detail-related__title {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
  .news-hero__title {
    font-size: 2.6rem;
  }

  .news-hero__highlights {
    margin-bottom: 2rem;
  }

  .news-hero__highlight {
    width: 100%;
    justify-content: center;
  }

  .news-filter-note {
    padding: 1.4rem;
  }

  .news-filter-note__clear {
    width: 100%;
  }

  .news-featured-card__content {
    padding: 1.6rem;
  }

  .news-featured-card__title {
    font-size: 1.6rem;
  }

  .news-article-card__content {
    padding: 1.6rem;
  }

  .news-newsletter__card {
    padding: 2.4rem 1.6rem;
  }
}
