/* ===== News Listing Page — Premium Medical Luxury ===== */

:root {
  --news-white: #FFFFFF;
  --news-dark: #635943;
  --news-cream: #F7EBE4;
  --news-text: #2B2B2B;
  --news-gold: #AC8D62;
  --news-transition: all 0.3s ease;
  --news-radius: 16px;
  --news-font: 'Hanken Grotesk', 'Be Vietnam Pro', 'Noto Sans Thai', sans-serif;
}

.news-hero,
.news-featured,
.news-card,
.news-pagination,
.news-popular,
.news-cta,
.news-promo-section {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.news-hero__content h1,
.news-hero__content p,
.news-featured__title,
.news-featured__excerpt,
.news-card__title,
.news-card__excerpt,
.news-cta__inner h2,
.news-cta__inner p,
.dc-promo-card__title,
.dc-promo-card__desc {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: pretty;
}

/* ===== LABEL ===== */
.news-label {
  display: inline-block;
  font-family: var(--news-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--news-gold);
}

/* ===== HERO ===== */
.news-hero {
  position: relative;
  padding: 80px 0 64px;
  background: var(--news-cream);
  overflow: hidden;
}
.news-hero__bg {
  position: absolute;
  inset: 0;
  background: url('assets/images/dc-clinic-background-1200x960.png') center/cover no-repeat;
  opacity: 0.08;
}
.news-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.news-hero__content h1 {
  font-family: var(--news-font);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--news-dark);
  margin: 0 0 16px;
  line-height: 1.2;
}
.news-hero__content p {
  font-size: 1.05rem;
  color: var(--news-text);
  opacity: 0.7;
  line-height: 1.6;
  margin: 0;
}

/* ===== CATEGORY FILTER ===== */
.news-category-section {
  padding: 34px 0 18px;
  background: var(--news-white);
  border-bottom: 1px solid rgba(172,141,98,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.news-category-section__header {
  margin-bottom: 16px;
}
.news-categories {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.news-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 24px;
  font-family: var(--news-font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--news-text);
  opacity: 0.6;
  background: transparent;
  border: 1px solid rgba(172,141,98,0.2);
  cursor: pointer;
  text-decoration: none;
  transition: var(--news-transition);
  white-space: normal;
  line-height: 1.45;
  text-align: center;
}
.news-cat-pill:hover {
  border-color: var(--news-gold);
  color: var(--news-gold);
  opacity: 1;
}
.news-cat-pill.is-active {
  background: var(--news-dark);
  color: var(--news-white);
  border-color: var(--news-dark);
  opacity: 1;
}

/* ===== FEATURED ===== */
.news-featured-section {
  padding: 48px 0;
}
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--news-white);
  border-radius: var(--news-radius);
  overflow: hidden;
  border: 1px solid rgba(172,141,98,0.1);
  box-shadow: 0 4px 24px rgba(99,89,67,0.04);
}
.news-featured__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.news-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-featured__body {
  padding: 40px 40px 40px 0;
}
.news-featured__category {
  display: inline-block;
  font-family: var(--news-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--news-gold);
  margin-bottom: 16px;
}
.news-featured__title {
  font-family: var(--news-font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--news-dark);
  margin: 0 0 16px;
  line-height: 1.3;
}
.news-featured__excerpt {
  font-size: 0.95rem;
  color: var(--news-text);
  opacity: 0.7;
  line-height: 1.7;
  margin: 0 0 24px;
}
.news-featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.news-featured__date {
  font-size: 0.85rem;
  color: var(--news-gold);
}
.news-featured__author {
  font-size: 0.85rem;
  color: var(--news-text);
  opacity: 0.6;
}
.news-featured__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--news-dark);
  color: var(--news-white);
  text-decoration: none;
  transition: var(--news-transition);
}
.news-featured__btn:hover {
  background: var(--news-gold);
}
.news-featured__btn .material-symbols-outlined {
  font-size: 18px;
}

/* ===== NEWS GRID ===== */
.news-grid-section {
  padding: 48px 0;
  background: var(--news-cream);
}
.news-grid-section__header {
  margin-bottom: 32px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--news-white);
  border-radius: var(--news-radius);
  overflow: hidden;
  border: 1px solid rgba(172,141,98,0.08);
  box-shadow: 0 2px 12px rgba(99,89,67,0.03);
  text-decoration: none;
  transition: var(--news-transition);
}
.news-card:hover {
  box-shadow: 0 8px 28px rgba(99,89,67,0.08);
  transform: translateY(-2px);
}
.news-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card__image img {
  transform: scale(1.04);
}
.news-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card__category {
  font-family: var(--news-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--news-gold);
  margin-bottom: 8px;
}
.news-card__title {
  font-family: var(--news-font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--news-dark);
  margin: 0 0 10px;
  line-height: 1.5;
}
.news-card__excerpt {
  font-size: 0.85rem;
  color: var(--news-text);
  opacity: 0.65;
  line-height: 1.7;
  margin: 0 0 18px;
  flex: 1;
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.news-card__date {
  font-size: 0.8rem;
  color: var(--news-gold);
}
.news-card__author {
  font-size: 0.8rem;
  color: var(--news-text);
  opacity: 0.5;
}
.news-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--news-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--news-transition);
}
.news-card:hover .news-card__link {
  color: var(--news-gold);
}
.news-card__link .material-symbols-outlined {
  font-size: 16px;
}

/* ===== PAGINATION ===== */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
.news-page-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--news-font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--news-text);
  opacity: 0.6;
  background: var(--news-white);
  border: 1px solid rgba(172,141,98,0.15);
  cursor: pointer;
  transition: var(--news-transition);
}
.news-page-btn:hover {
  border-color: var(--news-gold);
  color: var(--news-gold);
  opacity: 1;
}
.news-page-btn.is-active {
  background: var(--news-dark);
  color: var(--news-white);
  border-color: var(--news-dark);
  opacity: 1;
}
.news-page-btn--nav {
  width: auto;
  padding: 0 16px;
  gap: 4px;
}
.news-page-btn .material-symbols-outlined {
  font-size: 18px;
}
.news-load-more {
  display: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: var(--news-font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--news-white);
  background: var(--news-dark);
  border: none;
  cursor: pointer;
  transition: var(--news-transition);
}
.news-load-more:hover {
  background: var(--news-gold);
}

/* ===== POPULAR ===== */
.news-popular-section {
  padding: 56px 0;
  background: var(--news-white);
}
.news-popular-section__header {
  margin-bottom: 32px;
}
.news-popular {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== CTA ===== */
.news-cta {
  padding: 72px 0;
  background: var(--news-dark);
}
.news-cta__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.news-cta__inner h2 {
  font-family: var(--news-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--news-white);
  margin: 0 0 12px;
}
.news-cta__inner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0 0 32px;
}
.news-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.news-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--news-transition);
}
.news-cta__btn .material-symbols-outlined {
  font-size: 20px;
}
.news-cta__btn--primary {
  background: var(--news-gold);
  color: var(--news-white);
}
.news-cta__btn--primary:hover {
  background: var(--news-white);
  color: var(--news-dark);
}
.news-cta__btn--outline {
  background: transparent;
  color: var(--news-white);
  border: 1px solid rgba(255,255,255,0.3);
}
.news-cta__btn--outline:hover {
  border-color: var(--news-white);
}

/* ===== RESPONSIVE: Tablet (<=1024px) ===== */
@media (max-width: 1024px) {
  .news-featured {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .news-featured__image {
    aspect-ratio: 16/9;
  }
  .news-featured__body {
    padding: 32px;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-popular {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== RESPONSIVE: Mobile (<=768px) ===== */
@media (max-width: 768px) {
  .news-hero {
    padding: 48px 0 40px;
  }
  .news-hero__content h1 {
    font-size: 1.6rem;
  }
  .news-hero__content p {
    font-size: 0.9rem;
  }

  /* Category: horizontal scroll */
  .news-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
    gap: 8px;
  }
  .news-categories::-webkit-scrollbar { display: none; }
  .news-cat-pill {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Featured: single column */
  .news-featured-section {
    padding: 32px 0;
  }
  .news-featured__body {
    padding: 24px;
  }
  .news-featured__title {
    font-size: 1.3rem;
  }

  /* Grid: single column */
  .news-grid-section {
    padding: 32px 0;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-grid.owl-carousel {
    display: block;
    grid-template-columns: none;
  }
  .news-grid.owl-carousel .news-card {
    width: 100%;
  }
  .news-card__body {
    padding: 16px 20px 20px;
  }
  .news-card__title {
    font-size: 1rem;
    line-height: 1.55;
  }
  .news-card__excerpt {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  /* Pagination: hidden on mobile when Owl is active */
  .news-pagination {
    gap: 6px;
  }
  .news-grid.owl-carousel ~ .news-pagination {
    display: none;
  }
  .news-page-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  /* Popular: horizontal scroll */
  .news-popular-section {
    padding: 40px 0;
  }
  .news-popular {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .news-popular::-webkit-scrollbar { display: none; }
  .news-popular .news-card {
    flex: 0 0 80%;
  }

  /* CTA */
  .news-cta {
    padding: 56px 0;
  }
  .news-cta__inner h2 {
    font-size: 1.4rem;
  }
  .news-cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .news-cta__btn {
    justify-content: center;
  }
}

/* ===== RESPONSIVE: Small Mobile (<=480px) ===== */
@media (max-width: 480px) {
  .news-hero__content h1 {
    font-size: 1.4rem;
  }
  .news-popular .news-card {
    flex: 0 0 85%;
  }
}

/* ===== Owl Carousel Styling (Mobile Popular) ===== */
@media (max-width: 768px) {
  .news-popular.owl-carousel .news-card {
    width: 100%;
    margin: 0;
  }
  .news-popular .owl-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  .news-popular .owl-nav button.owl-prev,
  .news-popular .owl-nav button.owl-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--news-white);
    border: 1px solid rgba(172,141,98,0.25);
    color: var(--news-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--news-transition);
  }
  .news-popular .owl-nav button.owl-prev:hover,
  .news-popular .owl-nav button.owl-next:hover {
    background: var(--news-gold);
    color: var(--news-white);
    border-color: var(--news-gold);
  }
  .news-popular .owl-nav button span {
    font-size: 20px;
  }
  .news-popular .owl-dots {
    text-align: center;
    margin-top: 12px;
  }
  .news-popular .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(172,141,98,0.25);
    margin: 0 4px;
    transition: var(--news-transition);
  }
  .news-popular .owl-dots .owl-dot.active span {
    background: var(--news-gold);
    width: 24px;
    border-radius: 4px;
  }
}
