/* โหลดฟอนต์ PSLKandaModernBold */
@font-face {
  font-family: 'PSLKanda';
  src: url('fonts/PSLKandaModernBold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ใช้ฟอนต์ทั้งเว็บ */
body {
  margin: 0;
  padding: 0;
  font-family: 'PSLKanda', 'Tahoma', sans-serif;
}

.banner-slide {
  background-color: #f5f5f5;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-item {
  display: flex;
  align-items: center;
  padding: 0 10px;
  position: relative;
}

/* เส้นคั่น */
.navbar-nav .nav-item:not(:first-child)::before {
  content: "";
  display: block;
  width: 1px;
  height: 24px;
  background-color: white;
  margin-right: 10px;
}

.navbar-nav .nav-link {
  font-size: 30px;
  color: white;
  padding: 0;
}

.navbar-nav .nav-link:hover {
  color: #f0c040 !important;
}

.carousel-item img {
  max-height: 500px;
  object-fit: cover;
}

.radio-player {
  border: 2px solid #ccc;
  max-width: 100%;
  margin: 0 auto;
  background: #f8f9fa;
}

.radio-player h5 {
  font-size: 20px;
  color: #333;
}

.radio-player button {
  font-size: 18px;
  min-width: 120px;
}

.fixed-radio-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: #430a6f;
  color: #fff;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(67,10,111,0.13), 0 -1px 8px rgba(0,0,0,0.08);
  padding: 0 24px;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.player-title {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
}

.circle-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #430a6f;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(67,10,111,0.11);
  outline: none;
}
.circle-btn:hover, .circle-btn:focus {
  background: #edb7ff;
  color: #2b0846;
}

.volume-control input[type="range"] {
  width: 120px;
  accent-color: #edb7ff;
  height: 8px;
  background: transparent;
  border-radius: 6px;
  outline: none;
}

@media (max-width: 767px) {
  .fixed-radio-player {
    flex-direction: column;
    height: auto;
    padding: 12px 6px;
    gap: 10px;
    font-size: 16px;
    border-radius: 14px 14px 0 0;
  }
  .player-title {
    font-size: 18px;
  }
  .circle-btn {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  .volume-control input[type="range"] {
    width: 70px;
  }
}

.news-card {
  min-height: 270px;
  background: #eee;
}

.news-image {
  min-height: 270px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.news-card:hover .news-image {
  transform: scale(1.05);
}

.news-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 85%, rgba(0,0,0,0.08) 100%);
  z-index: 1;
}

.news-content {
  z-index: 2;
  color: #fff;
}

.news-title {
  font-size: 30px;
  margin-bottom: 0.1em;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.33);
}

.news-detail {
  font-size: 23px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
