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

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

.nd-breadcrumb,
.nd-back,
.nd-hero,
.nd-content,
.nd-related,
.nd-cta {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.nd-breadcrumb a,
.nd-breadcrumb span,
.nd-hero__title,
.nd-content h2,
.nd-content p,
.nd-content blockquote,
.nd-content .nd-list-item,
.nd-cta__inner h2,
.nd-cta__inner p {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: pretty;
}

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

/* ===== BREADCRUMB ===== */
.nd-breadcrumb {
  padding: 20px 0;
  background: var(--nd-cream);
}
.nd-breadcrumb a,
.nd-breadcrumb span {
  font-family: var(--nd-font);
  font-size: 0.85rem;
  color: var(--nd-text);
  opacity: 0.6;
  text-decoration: none;
  transition: var(--nd-transition);
}
.nd-breadcrumb a:hover {
  color: var(--nd-gold);
  opacity: 1;
}
.nd-breadcrumb__sep {
  margin: 0 8px;
  opacity: 0.3;
}
.nd-breadcrumb span:last-child {
  color: var(--nd-dark);
  opacity: 1;
  font-weight: 600;
}

/* ===== BACK LINK ===== */
.nd-back {
  padding: 16px 0;
  background: var(--nd-white);
  border-bottom: 1px solid rgba(172,141,98,0.08);
}
.nd-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nd-font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nd-dark);
  text-decoration: none;
  transition: var(--nd-transition);
}
.nd-back a:hover {
  color: var(--nd-gold);
}
.nd-back .material-symbols-outlined {
  font-size: 18px;
}

/* ===== ARTICLE HERO ===== */
.nd-hero {
  padding: 48px 0 32px;
  background: var(--nd-white);
}
.nd-hero__category {
  display: inline-block;
  font-family: var(--nd-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--nd-gold);
  margin-bottom: 16px;
}
.nd-hero__title {
  font-family: var(--nd-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--nd-dark);
  margin: 0 0 20px;
  line-height: 1.45;
}
.nd-hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nd-hero__date {
  font-size: 0.9rem;
  color: var(--nd-gold);
  font-weight: 600;
}
.nd-hero__author {
  font-size: 0.9rem;
  color: var(--nd-text);
  opacity: 0.6;
}

/* ===== MAIN IMAGE ===== */
.nd-image-section {
  padding: 0 0 48px;
  background: var(--nd-white);
}
.nd-main-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--nd-radius);
}
.nd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== ARTICLE CONTENT ===== */
.nd-content-section {
  padding: 0 0 64px;
  background: var(--nd-white);
}
.nd-content {
  max-width: 760px;
  margin: 0 auto;
}
.nd-content p {
  font-family: var(--nd-font);
  font-size: 1.05rem;
  color: var(--nd-text);
  line-height: 1.9;
  margin: 0 0 28px;
}
.nd-content h2 {
  font-family: var(--nd-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--nd-dark);
  margin: 44px 0 18px;
  line-height: 1.45;
}
.nd-content blockquote {
  border-left: 3px solid var(--nd-gold);
  padding: 16px 0 16px 24px;
  margin: 32px 0;
  font-family: var(--nd-font);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--nd-dark);
  line-height: 1.75;
}
.nd-content .nd-list-item {
  font-family: var(--nd-font);
  font-size: 1.05rem;
  color: var(--nd-text);
  line-height: 1.9;
  margin: 0 0 18px;
  padding-left: 28px;
  position: relative;
}
.nd-content .nd-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nd-gold);
}

/* ===== NOT FOUND ===== */
.nd-not-found {
  text-align: center;
  padding: 80px 0;
}
.nd-not-found h2 {
  font-family: var(--nd-font);
  font-size: 1.6rem;
  color: var(--nd-dark);
  margin: 0 0 16px;
}
.nd-not-found p {
  font-size: 1rem;
  color: var(--nd-text);
  opacity: 0.6;
  margin: 0 0 32px;
}
.nd-not-found a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--nd-dark);
  color: var(--nd-white);
  text-decoration: none;
  transition: var(--nd-transition);
}
.nd-not-found a:hover {
  background: var(--nd-gold);
}

/* ===== RELATED ARTICLES ===== */
.nd-related-section {
  padding: 56px 0;
  background: var(--nd-cream);
}
.nd-related-section__header {
  margin-bottom: 32px;
}
.nd-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== CTA ===== */
.nd-cta {
  padding: 72px 0;
  background: var(--nd-dark);
}
.nd-cta__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.nd-cta__inner h2 {
  font-family: var(--nd-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--nd-white);
  margin: 0 0 12px;
}
.nd-cta__inner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0 0 32px;
}
.nd-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.nd-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(--nd-transition);
}
.nd-cta__btn .material-symbols-outlined {
  font-size: 20px;
}
.nd-cta__btn--primary {
  background: var(--nd-gold);
  color: var(--nd-white);
}
.nd-cta__btn--primary:hover {
  background: var(--nd-white);
  color: var(--nd-dark);
}
.nd-cta__btn--outline {
  background: transparent;
  color: var(--nd-white);
  border: 1px solid rgba(255,255,255,0.3);
}
.nd-cta__btn--outline:hover {
  border-color: var(--nd-white);
}

/* ===== RESPONSIVE: Tablet (<=1024px) ===== */
@media (max-width: 1024px) {
  .nd-related {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== RESPONSIVE: Mobile (<=768px) ===== */
@media (max-width: 768px) {
  .nd-breadcrumb {
    padding: 16px 0;
  }
  .nd-hero {
    padding: 32px 0 24px;
  }
  .nd-hero__title {
    font-size: 1.5rem;
  }
  .nd-hero__meta {
    gap: 12px;
  }
  .nd-hero__date,
  .nd-hero__author {
    font-size: 0.85rem;
  }

  .nd-image-section {
    padding: 0 0 32px;
  }
  .nd-main-image {
    aspect-ratio: 4/3;
    border-radius: 12px;
  }

  .nd-content-section {
    padding: 0 0 48px;
  }
  .nd-content p {
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 24px;
  }
  .nd-content h2 {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 34px 0 14px;
  }
  .nd-content blockquote {
    font-size: 1rem;
    padding: 12px 0 12px 20px;
    margin: 24px 0;
  }
  .nd-content .nd-list-item {
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 14px;
    padding-left: 24px;
  }

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

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

/* ===== RESPONSIVE: Small Mobile (<=480px) ===== */
@media (max-width: 480px) {
  .nd-hero__title {
    font-size: 1.3rem;
  }
  .nd-related .news-card {
    flex: 0 0 85%;
  }
}

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