@font-face {
    font-family: 'PSLKandaModernBold';
    src: url('THSarabunNew Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ฟอนต์หลัก */
body, .topbar-police, .topbar-police span, .logo-menu-section, .logo-menu-section *, .content-section, .content-section * {
    font-family: 'PSLKandaModernBold', Arial, sans-serif;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Topbar */
.topbar-police {
    background: #770006;
    color: #fff;
    min-height: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    font-size: 22px;
    padding: 0;
    margin: 0;
}
.topbar-item {
    margin-left: 18px;
    font-size: 25px;
    white-space: nowrap;
}
.topbar-police i {
    color: #fff;
    font-size: 1.1em;
}

/* ซ่อน Topbar บนมือถือ */
@media (max-width: 767.98px) {
    .topbar-police {
        display: none !important;
    }
}

/* Logo + Menu เฉพาะ header */
.logo-menu-section {
    background: #fff;
    height: 100px;
    min-height: 100px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
.logo-police {
    height: auto;
    max-width: 100%;
}
.menu-police {
    font-size: 25px;
    font-family: 'PSLKandaModernBold', Arial, sans-serif;
    display: flex;
    gap: 20px;
}
.menu-link {
    color: #770006;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0 5px;
}
.menu-link:hover {
    color: #c1272d;
    text-decoration: underline;
}
.menu-hamburger {
    background: none;
    border: none;
    color: #770006;
    padding: 0 12px;
    z-index: 1201;
}

/* Mobile slide menu (Hamburger) */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100vh;
    z-index: 1200;
    box-shadow: 2px 0 12px rgba(0,0,0,0.09);
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(.77,0,.18,1), box-shadow 0.3s;
    padding-top: 40px;
    overflow-y: auto;
    border-right: 1px solid #eee;
}
.mobile-menu.open {
    display: flex !important;
    transform: translateX(0);
}
.mobile-menu .menu-link {
    padding: 22px 25px;
    font-size: 22px;
    border-bottom: 1px solid #f4f4f4;
    color: #770006;
    text-align: left;
}
.mobile-menu .menu-link:last-child {
    border-bottom: none;
}
/* ปุ่ม X สำหรับปิด */
.mobile-menu-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 2.2rem;
    color: #770006;
    background: none;
    border: none;
    z-index: 1202;
    padding: 0;
}

@media (max-width: 991.98px) {
    .menu-police {
        font-size: 20px;
        gap: 12px;
    }
}
@media (max-width: 576px) {
    .logo-menu-section {
        height: 70px;
        min-height: 70px;
    }
    .menu-police {
        font-size: 16px;
        gap: 5px;
    }
    .mobile-menu .menu-link {
        font-size: 18px;
        padding: 12px 20px;
    }
}

/* FontAwesome icons */
.fa, .fas, .far, .fab, .fal, .fad {
    font-family: "Font Awesome 5 Free", "FontAwesome", Arial, sans-serif !important;
    font-weight: 900 !important;
}

/* Slide Banner เต็มขอบจอ ไม่เกิด scroll แนวนอน */
.banner-slide-section {
    background: #fff;
    width: 100vw;
    min-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    z-index: 1;
    overflow: hidden;
}

/* ปรับขนาดแบนเนอร์ให้ตรงอัตราส่วน 1920x600 (16:5) */
.banner-img {
    width: 100vw;
    aspect-ratio: 16 / 5;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    background: #fff;
    display: block;
}

/* Bootstrap Carousel custom indicator & control */
.carousel-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.85;
    margin: 0 6px;
    border: 2px solid #fff;
    transition: opacity 0.3s, border-color 0.3s;
}
.carousel-indicators .active {
    opacity: 1;
    background: #fff;
    border-color: #770006;
}

/* ปุ่มเลื่อนซ้ายขวาเป็นสีขาว */
.carousel-control-prev,
.carousel-control-next {
    width: 56px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #fff;
    border-radius: 50%;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    filter: none;
}

/* Responsive Banner */
@media (max-width: 1200px) {
    .banner-img {
        max-height: 380px;
    }
}
@media (max-width: 991.98px) {
    .banner-img {
        max-height: 260px;
    }
}
@media (max-width: 768px) {
    .banner-img {
        max-height: 150px;
    }
}

/* Dropdown menu */
.menu-dropdown {
    position: relative;
    display: inline-block;
}
.menu-link.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.dropdown-menu-custom {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #770006;
    min-width: 230px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 20px rgba(80,0,0,0.08);
    z-index: 999;
    padding: 0.4rem 0;
    margin-top: 0px;
}
.menu-dropdown:hover .dropdown-menu-custom,
.menu-dropdown:focus-within .dropdown-menu-custom {
    display: block;
}
.dropdown-item-custom {
    color: #fff;
    font-size: 25px;
    padding: 14px 30px 3px 20px;
    text-decoration: none;
    display: block;
    transition: background 0.18s, color 0.15s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
}
.dropdown-item-custom:hover,
.dropdown-item-custom:focus {
    background: #aa0009;
    color: #fff;
}
.menu-link.dropdown-toggle .fas {
    margin-left: 8px;
    font-size: 18px;
    color: #770006;
}
/* ป้องกัน dropdown แสดงในมือถือ */
@media (max-width: 991.98px) {
    .dropdown-menu-custom {
        display: none !important;
    }
}

/* เพิ่มเติมสำหรับ section เนื้อหา */
.content-section {
    background: #fff;
    padding-top: 30px;
    padding-bottom: 30px;
}

.mt-10px {
    margin-top: 10px !important;
}

.custom-btn-pr {
  background: #670b27;
  color: #fff !important;
  font-size: 1.5rem;
  border: none;
  padding: 0.2em 1.2em;
  border-radius: 0.5em;
  transition: background 0.2s;
}
.custom-btn-pr:hover, .custom-btn-pr:focus {
  background: #a41944;
  color: #fff !important;
}

.content-message{
    font-size: 1.5rem !important;
}

/* Modal BG transparent (fancybox-like) */
.modal .modal-content.bg-transparent {
  background: rgba(20,20,20,0.8)!important;
  box-shadow: none;
}

.news-message, .news-message * {
    font-size: 1.5rem !important;
    color: #222 !important;
    line-height: 1.8;
}

.data-message, .data-message * {
    font-size: 1.5rem !important;
    color: #000 !important;
    line-height: 1.8;
}

.form-horizontal .form-group {
  margin-bottom: 1.3rem;
}

.form-horizontal label {
  font-weight: bold;
  color: #00224d;
  font-size: 1.14rem;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.02em;
}

.form-horizontal .form-control {
  border-radius: 10px;
  border: 1.2px solid #b5b5b5;
  font-size: 1.08rem;
  padding: 12px 15px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
  background: #fff;
  width: 100%;
  transition: border 0.2s, box-shadow 0.2s;
}

.form-horizontal .form-control:focus {
  border: 1.4px solid #003366;
  box-shadow: 0 0 0 2px #d7e7ff;
  background: #f8fbff;
}

.form-horizontal textarea.form-control {
  min-height: 120px;
}

.form-horizontal .form-control::placeholder {
  color: #c21807;
  font-size: 1.5rem;
  opacity: 1;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.form-horizontal button[type="submit"] {
  background: #003366;
  color: #fff;
  font-weight: bold;
  font-size: 1.18rem;
  padding: 9px 35px;
  border-radius: 999px;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 12px #00336622;
  border: none;
}
.form-horizontal button[type="submit"]:hover {
  background: #b21828;
  color: #fff;
  box-shadow: 0 3px 15px #b2182844;
}

.content-yt iframe {
  margin-bottom: 10px;
  border-radius: 12px;      /* เพิ่มขอบมน (optional) */
  box-shadow: 0 2px 12px #0001; /* เงาเบาๆ (optional) */
}

.btn-gradient-blue {
    background: linear-gradient(90deg, #0047ab 0%, #2196f3 100%);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px #00225522;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-gradient-blue:hover, .btn-gradient-blue:focus {
    background: linear-gradient(90deg, #003580 0%, #1976d2 100%);
    box-shadow: 0 6px 32px #0047ab33;
    color: #fff !important;
}

.btn-gradient-gray {
    background: linear-gradient(90deg, #b0bec5 0%, #eceff1 100%);
    color: #222 !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px #2222;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-gradient-gray:hover, .btn-gradient-gray:focus {
    background: linear-gradient(90deg, #78909c 0%, #cfd8dc 100%);
    color: #111 !important;
    box-shadow: 0 6px 32px #8882;
}
