@charset "utf-8";
:root {
  --font-main: 'Kanit', sans-serif;
  --header-bg-start: #001f4d;
  --header-bg-mid: #0056b3;
  --header-bg-end: #00a8e8;
  --bg-body: #f4f7f9;
  --card-bg: #ffffff;
  --text-main: #2c3e50;
  --text-secondary: #4a5568;
  --title-color: #1a2a44;
  --meta-bar-bg: #f8f9fa;
  --meta-border: #eef0f2;
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --primary-color: #0056b3;
  --divider-color: #e0e0e0;
}
[data-theme="dark"] {
  --bg-body: #121212;
  --card-bg: #1e1e1e;
  --text-main: #e0e0e0;
  --text-secondary: #b0b0b0;
  --title-color: #60cfff;
  --meta-bar-bg: #2d2d2d;
  --meta-border: #3d3d3d;
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  --divider-color: #444;
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.7);
}
body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: background-color 0.3s, color 0.3s;
}
a {
  text-decoration: none;
}
.detail-header-banner {
  background: linear-gradient(135deg, var(--header-bg-start), var(--header-bg-mid), var(--header-bg-end));
  padding-top: 6rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}
.detail-header-banner::before, .detail-header-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.detail-header-banner::before {
  background: #00d2ff;
  width: 300px;
  height: 300px;
  top: -50px;
  right: -50px;
}
.detail-header-banner::after {
  background: #001f4d;
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
}
.content-container {
  position: relative;
  z-index: 10;
}
.mt-n5 {
  margin-top: -3rem !important;
}
.premium-card {
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow) !important;
  border: 1px solid rgba(0, 0, 0, 0.02) !important;
  transition: background-color 0.3s ease;
}
.detail-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--title-color) !important;
}
.premium-meta-bar {
  background-color: var(--meta-bar-bg);
  border-radius: 50px;
  padding: 10px 25px;
  border: 1px solid var(--meta-border);
  transition: background-color 0.3s;
}
.news-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.meta-item i {
  margin-right: 6px;
}
.meta-divider {
  color: var(--text-secondary);
  opacity: 0.5;
}
.share-label {
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--text-secondary);
}
.news-cover-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.news-cover-image:hover {
  transform: scale(1.01);
}
.detail-content {
  font-family: 'Kanit', sans-serif;
  font-size: 1.15rem; /* ขนาดตัวอักษรพอดีตา */
  line-height: 1.5; /* ระยะห่างบรรทัดมาตรฐาน (ไม่ห่างเกินไป) */
  color: var(--text-secondary);
  text-align: left;
  white-space: pre-wrap; /* รักษารูปแบบการเว้นวรรคและการขึ้นบรรทัดใหม่ตามต้นฉบับ */
  word-break: break-word;
}
.detail-content br {
  display: block;
  content: "";
  margin-top: 5px;
}
.detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.premium-divider {
  border-top: 1px dashed var(--divider-color);
  margin: 1.5rem 0;
}
.btn-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.btn-facebook {
  background: #3b5998;
}
.btn-x {
  background: #000000;
}
.btn-line {
  background: #00c300;
}
.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}
.btn-facebook:hover {
  background: #314b87;
}
.btn-x:hover {
  background: #333333;
}
.btn-line:hover {
  background: #009900;
}
.gallery-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--title-color);
  display: flex;
  align-items: center;
}
.gallery-icon-bg {
  width: 40px;
  height: 40px;
  background: rgba(0, 86, 179, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary-color);
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 31, 77, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay {
  opacity: 1;
}
.gallery-item .overlay i {
  color: white;
  font-size: 2rem;
}
.btn-back {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-back:hover {
  background: var(--primary-color);
  color: white;
}
[data-theme="dark"] .breadcrumb-item a {
  color: #60cfff !important;
}
[data-theme="dark"] .breadcrumb-item.active {
  color: #b0b0b0 !important;
}
[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.7) !important;
}
@media (max-width: 768px) {
  .detail-header-banner {
    padding-top: 5rem;
  }
  .detail-title {
    font-size: 1.6rem;
  }
  .gallery-item img {
    height: 200px;
  }
}
@media (max-width: 576px) {
  .premium-meta-bar {
    border-radius: 15px;
    padding: 15px;
    flex-direction: column;
    align-items: flex-start !important;
  }
  .share-group {
    margin-top: 15px;
    width: 100%;
    justify-content: space-between;
  }
}