:root {
    --app-max: 1200px;
    --bs-primary: #004e98;
    --bs-primary-rgb: 233, 30, 99;
}

body {
    font-family: 'Prompt', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: #fff
}

/* .container-max {
    max-width: var(--app-max)
} */

.logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%
}

.site-title {
    line-height: 1.1
}

.nav-scroller {
    overflow-x: auto;
    white-space: nowrap
}

.card-thumb {
    aspect-ratio: 16/9;
    object-fit: cover
}

.news-thumb {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: .5rem
}

.hashtag a {
    text-decoration: none
}

.footer a {
    text-decoration: none
}

.copyright{
    background-color: #b22124 !important
}

.navbar{
  background-color: #4b0081 !important
}
.footer {
    background: #4b0081;
   
}

.my-gradient {
  background: linear-gradient(to right, #4b0081, #b22124);
}


.badge-soft {background: #ab2c2c;color: #fff4f4;border: 1px solid #ab2c2c}

.navbar .nav-link {
    color: #fff !important;
    font-weight: 600
}

.navbar .nav-link:hover {
    color: #ff6700 !important;
    font-weight: 600
}


.navbar .nav-link.active {
    color: #ff6700 !important;
    font-weight: 600
}

.btn-primary {
    background: linear-gradient(to right, #b22124, #4b0081);
    border-color: #ff6700
}

.btn-outline-primary {
    color: #ff6700;
    border-color: #ff6700
}

.btn-outline-primary:hover {
    background: linear-gradient(to right, #b22124, #4b0081);
    color: #fff
}

a {
    color: #ff6700
}

a:hover {
    color: #ff6d00
}

.g_item{position:relative; overflow:hidden; border-radius:12px}
.g_item img{display:block; width:100%; height:auto}

.g_item::after{
  content: attr(data-alt);
  position:absolute; left:0; right:0; bottom:0;
  padding:10px 12px;
  font-weight:600; font-size:14px; color:#fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 80%);
  transform: translateY(100%);
  opacity:0; transition: all .22s ease-in-out;
  pointer-events:none;
}
.g_item:hover::after{
  transform: translateY(0);
  opacity:1;
}

.bg1{background-color: #fffcf8;}
.bg1 .badge-soft {background: #d58f34;color: #fffcf8;border: 1px solid #d58f34}
.text-bg1{color: #333;}

.bg2{background-color: #f0f7ff;}
.bg2 .badge-soft {background: #5695de;color: #f0f7ff;border: 1px solid #5695de}
.text-bg2{color: #333;}

.bg3{background-color: #f2ffff;}
.bg3 .badge-soft {background: #38b1b1;color: #f2ffff;border: 1px solid #38b1b1}
.text-bg3{color: #333;}




/* blog-box layout */
.blog-box {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  margin-bottom: 1.5rem;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* social icons overlay */
.blog-social {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 5;
}
.blog-social li {
  display: inline-block;
}
.blog-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  color: #0d6efd;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.blog-social a:hover {
  background: #0d6efd;
  color: #fff;
}

/* image holder */
.blog-img-holder {
  position: relative;
}
.blog-img-holder img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* date tag */
.blog-content-holder {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(13,110,253,0.85);
  color: #fff;
  font-size: .85rem;
  padding: .35rem .75rem;
  border-top-right-radius: .5rem;
}

/* bottom content */
.blog-bottom-content-holder {
  padding: 1rem;
}
.blog-bottom-content-holder h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.blog-bottom-content-holder h3 a {
  text-decoration: none;
  color: #212529;
}
.blog-bottom-content-holder h3 a:hover {
  color: #0d6efd;
}
.blog-bottom-content-holder p {
  color: #6c757d;
  font-size: .9rem;
  margin: 0;
}


/* Cover Area */
.inner-page-banner-area {
  background: #b22124;
  padding: 60px 0;
  border-bottom: 4px solid #eadb01;
  position: relative;
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}
.inner-page-banner-area::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25); /* เพิ่ม layer ทึบเล็กน้อย */
}
.inner-page-banner-area .container {
  position: relative;
  z-index: 2;
}

/* Title */
.pagination-area h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

/* Breadcrumb */
.breadcrumb {
  justify-content: center;
  background: transparent;
  margin-bottom: 0;
}
.breadcrumb-item a {
  color: #f8f9fa;
  text-decoration: none;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #dee2e6;
}

/* blog item wrapper */
.blog-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* thumbnail (ซ้าย) */
.blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

/* body (ขวา) */
.blog-body {
  padding: 1rem 1.25rem;
}
.blog-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.blog-title a {
  text-decoration: none;
  color: #212529;
}
.blog-title a:hover {
  color: #0d6efd;
}
.blog-meta {
  font-size: .875rem;
  color: #6c757d;
  margin-bottom: .75rem;
}
.blog-meta span {
  margin-right: 1rem;
}
.blog-desc {
  font-size: .95rem;
  color: #495057;
  margin-bottom: .75rem;
}

/* ปรับ responsive */
@media (max-width: 767.98px) {
  .blog-thumb {
    border-radius: 8px 8px 0 0; /* เวลา stack ลงมา */
  }
  .blog-body {
    padding: 1rem;
  }
}
@media (max-width: 575.98px) {
    .site-title .en {
        display: block;
        font-size: .9rem
    }
}