@import url(../bootstrap/css/bootstrap.min.css);
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Manrope:wght@200..800&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

body {
  font-family: "Manrope", "Kanit", sans-serif;
  font-size: 16px;
}
h1 {
  font-size: 36px;
  font-weight: 600;
}
/* Header */
.top-bar {
  background-color: #06377b;
  color: white;
  font-size: 14px;
  padding: 5px 0;
  text-align: center;
}
.top-bar .text-header {
  font-size: 14px;
  padding: 21px 0;
}
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar-nav .nav-link {
  font-weight: 500;
  color: #000;
}
.navbar-nav .nav-link:hover {
  color: #06377b;
}
.menu-item-has-children > .nav-link::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}
/* Custom Toggler */
.custom-toggler {
  background-color: #06377b;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-toggler i {
  font-size: 24px;
  color: #efefef;
}
.social-icons a {
  color: #efefef;
  font-size: 16px;
}
.social-icons a i {
  font-size: 16px;
}
@media (max-width: 991px) {
  .navbar-brand {
    margin: auto;
  }
}

/* Banner */
.banner {
  margin: 30px 0;
}

/* Section Header */
.section-header {
  margin-bottom: 20px;
}
/* แถวบน: หัวข้อและปุ่มอยู่ระดับเดียวกัน */
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.section-title {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  color: #06377b;
}

/* ปุ่ม VIEW ALL */
.view-all {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: bold;
  color: #06377b;
  text-decoration: none;
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.view-all span {
  color: #3a1759; /* ลูกศรสีม่วง */
  margin-left: 4px;
}

.view-all:hover {
  background-color: #f8f8f8;
}

/* แถวล่าง: เส้นม่วง + สองเส้นบาง */
.section-line {
  display: flex;
  align-items: center;
}

/* เส้นม่วง */
.purple-line {
  width: 30px;
  height: 4px;
  background-color: #3a1759;
  border-radius: 2px;
}
/* เส้นส้ม */
.orange-line {
  width: 30px;
  height: 4px;
  background-color: #f4796c;
  border-radius: 2px;
}

/* สองเส้นบางต่อจากเส้นม่วง */
.double-line {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px; /* ระยะห่างระหว่างสองเส้น */
  margin-left: 5px;
}

.double-line span {
  height: 1px;
  background-color: #ddd;
  width: 100%;
}

.icon-wrapper {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.icon-wrapper .bi,
.icon-wrapper img {
  position: absolute;
  font-size: 18px;
  width: 10px;
}

.top-icon {
  color: #f9a825; /* สีส้ม */
  top: -3px;
  left: 6px;
}

.bottom-icon {
  color: #8d6e63; /* สีน้ำตาล */
  top: 8px;
  left: -4px;
  opacity: 0.6;
}

@media (min-width: 992px) {
  /* .entry-more {
    display: inline-flex;
    text-align: left;
    border-radius: 5px;
  } */
  .icon-wrapper {
    width: 20px;
    height: 20px;
  }
  .top-icon {
    top: 3px;
    left: 0;
  }
  .bottom-icon {
    top: 14px;
    left: -11px;
  }
}

/* มุมเฉียงซ้าย */
.header-tag::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  width: 20px;
  height: 100%;
  background-color: #06377b;
  transform: skewX(-20deg);
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  z-index: -1;
}

/* มุมเฉียงขวา */
.header-tag::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  width: 30px;
  height: 100%;
  background-color: #06377b;
  transform: skewX(-20deg);
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  z-index: -1;
}

/* เส้น 2 เส้น */
.header-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;
  flex: 1;
}

.header-line {
  height: 1px;
  background: #e0e0e0;
  margin: 2px 0;
}

.entry-more {
  background: #06377B;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 14px;
  font-weight: 500;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  display: block;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  text-align: center;
}
.icon-wrapper {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.icon-wrapper .bi,
.icon-wrapper img {
  position: absolute;
  font-size: 18px;
  width: 10px;
}

.top-icon {
  color: #f9a825; /* สีส้ม */
  top: -3px;
  left: 6px;
}

.bottom-icon {
  color: #8d6e63; /* สีน้ำตาล */
  top: 8px;
  left: -4px;
  opacity: 0.6;
}

@media (min-width: 992px) {
  .entry-more {
    display: inline-flex;
    text-align: left;
    border-radius: 5px;
  }
  .icon-wrapper {
    width: 20px;
    height: 20px;
  }
  .top-icon {
    top: 3px;
    left: 0;
  }
  .bottom-icon {
    top: 14px;
    left: -11px;
  }
}

/* Default  */

.breadcrumb-item.active{
  color: #0062EB;
}

.post-card {
  position: relative;
  margin-bottom: 30px;
}
.post-card .post-thumbnail {
  position: relative;
}

.post-card .entry-title a {
  color: #171717;
  text-decoration: none;
}
.post-card .entry-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
  height: 72px;
  overflow: hidden;
  margin-bottom: 20px;
  margin-top: 12px;
}
.post-card.h-card .entry-title {
  font-size: 16px;
  line-height: 26px;
  height: 52px;
  margin-bottom: 10px;
  margin-top: 0;
}
.post-card.h-change .entry-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  height: 52px;
  margin: 10px 0;
}
.post-card.h-card {
  margin-bottom: 15px;
}
.post-card.post-card-highlight {
  margin-bottom: 15px;
}
@media (min-width: 992px) {
  .post-card .entry-title {
    font-size: 28px;
    height: 74px;
    line-height: 36px;
  }
  /* .post-card.h-card .entry-title {
    font-size: 22px;
    line-height: 31px;
    height: 60px;
  } */
}
.post-thumbnail {
  overflow: hidden;
  background-color: #f8f8f8;
}
.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.v-card .post-thumbnail,
.h-card .post-thumbnail {
  border-radius: 5px;
}
.ratio {
  position: relative;
  width: 100%;
}
.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}
.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-1x1 {
  --bs-aspect-ratio: 100%;
}

.ratio-4x3 {
  --bs-aspect-ratio: 75%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

.ratio-21x9 {
  --bs-aspect-ratio: 42.8571428571%;
}

.meta-box {
  margin-top: 22px;
}
.post-card.h-card .meta-box {
  margin-top: 0;
}
a.category {
  font-family: "Inter", "Kanit", sans-serif;
  text-decoration: none;
  color: #6d757f;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid;
  border-radius: 3px;
  padding: 5px 9px;
  display: inline-block;
  margin-bottom: 10px;
}

.meta-info {
  color: #6d757f;
  font-family: "Inter", "Kanit", sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.52px;
  text-transform: uppercase;
}
.meta-info a {
  color: #6d757f;
  text-decoration: none;
}
.meta-info .author {
  margin-right: 5px;
}

@media (min-width: 992px) {
  .meta-info {
    font-weight: 500;
    font-size: 13px;
  }
}

.social {
  margin-top: 10px;
}
.social a {
  background-color: #e8f1f1;
  border-radius: 4px;
  color: #171717;
  padding: 10px 0;
}
.social a:hover {
  background-color: #06377b;
  color: #fff;
}

.breadcrumb a {
  text-decoration: none;
  color: #777777;
}
.breadcrumb .breadcrumb-item.active a {
  color: #06377b;
}

.entry-content {
  margin: 20px 0 30px 0;
}

/* section latest */
.section-latest .category {
  display: none;
}

/* section-spotlight */

@media (min-width: 992px) {
  .section-spotlight .col-lg-8.pd-r {
    padding-right: 18px;
  }
  .section-spotlight .col-lg-4.pd-l {
    padding-left: 80px;
  }
  .section-spotlight {
    padding-bottom: 68px;
  }
}

/* section-weekly */

@media (max-width: 728px) {
  .section-weekly {
    margin-top: 30px;
  }
}

/* Video */
.video-card.video-highlight,
.video-card .entry-thumb,
.post-card.post-card-highlight,
.post-card .entry-thumb {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.video-card.video-highlight .box-meta,
.post-card.post-card-highlight .box-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 15px 15px;
  /* text-align: center; */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}
.video-card.video-highlight .entry-title,
.post-card.post-card-highlight .entry-title {
  color: #fff;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  height: 52px;
  overflow: hidden;
  margin-bottom: 10px;
}
.video-card.video-highlight a.link,
.post-card.post-card-highlight a.link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.video-card.video-highlight .publish-date,
.video-card.video-highlight .publish-date a,
.post-card.post-card-highlight .publish-date,
.post-card.post-card-highlight .publish-date a {
  color: #bacce1;
  text-decoration: none;
  font-family: "Inter", "Kanit", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.52px;
  text-transform: uppercase;
}
.post-card.post-card-highlight .post-thumbnail {
  height: 360px;
}
.post-card.post-card-highlight .post-thumbnail img {
  object-fit: cover;
}

/* section-weekly  */
.section-weekly .post-card.h-change .entry-title {
  height: 30px;
}

/* section football */
.section-football {
  background-color: #06377b;
  padding: 40px 0;
  margin: 30px 0;
}
.section-football .section-title,
.section-football .view-all,
.section-football .post-card .entry-title a {
  color: #ffffff;
}
.section-football .meta-info,
.section-football .meta-info a {
  color: #bacce1;
}
.section-football a.category {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
}
.section-football .entry-more{
  background-color: rgba(255, 255, 255, 0.2)
}

/* Footer */
.footer {
  background-color: #06377b;
  color: #f5f5f5;
  padding: 40px 0 20px 0;
  margin-top: 30px;
  font-size: 16px;
  font-weight: 500;
}
.footer .navbar-footer {
  padding-left: 0;
  list-style-type: none;
  line-height: 2.4;
  text-align: center;
}

.footer .ft-social a {
  color: #f5f5f5;
  text-decoration: none;
}
.footer .sub-footer {
  font-weight: 400;
  font-size: 14px;
  border-top: 4px solid;
  margin-top: 20px;
}
.footer .sub-footer .copy-right-text {
  margin: 20px 0;
}
@media (max-width: 767.98px) {
  .footer-description {
    text-align: center;
    margin-bottom: 10px;
  }
}
@media (min-width: 992px) {
  .footer .navbar-footer {
    column-count: 2;
    display: inline-block;
  }
  .footer .navbar-footer {
    text-align: right;
  }
  .footer .navbar-footer li {
    padding-left: 7rem;
  }
}

/* ปุ่ม Back to Top */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #06377b;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: none; /* เริ่มต้นซ่อน */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  font-size: 16px;
}
#backToTop:hover {
  background: #06377b;
}

/* Single Post */
.single-post .site-main {
  padding-top: 40px;
}
.single-post .entry-header .entry-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 100%;
  color: #121212;
}
.single-post .social {
  margin-top: inherit;
}

.single-post .breadcrumbs-row {
  margin: 40px 0;
}
.single-post .tags-box h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}
.tags-links a {
  border: solid 0.5px #06377b;
  background-color: #06377b;
  border-radius: 60px;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
  margin-right: 10px;
  color: #fff;
  transition: 0.3s;
  font-family: Sarabun, sans-serif;
  font-size: 10px;
  line-height: 20px;
  font-weight: 400;
  padding: 0 10px;
}
.entry-footer .row {
  align-items: center;
}
.entry-footer .ft-social a {
  text-decoration: none;
}
.entry-footer .ft-social .bi-facebook {
  color: #4b7ce5;
}
.entry-footer .ft-social .bi-twitter-x {
  color: #55acee;
}
.entry-footer .ft-social .bi-line {
  color: #12b915;
}
.entry-footer .ft-social .bi-copy {
  color: #06377b;
}
.entry-footer .ft-social .share-on {
  color: #bebebe;
  font-size: 14px;
  padding-right: 10px;
}
.entry-footer .copy-icon {
  cursor: pointer;
}
.entry-footer .copy-icon:hover {
  color: #06377b;
}
.entry-footer .copied {
  color: green;
  font-size: 0.85rem;
  /* margin-left: -8px; */
  display: none;
  font-size: 8px;
}

@media (min-width: 992px) {
  .single-post .entry-header .entry-title {
    font-size: 36px;
  }
}

/* archive */
.archive-header {
    background-color: #06377B;
}
.archive-header {
    background-color: #06377B;
    padding: 40px 0;
    margin-bottom: 70px;
}
.archive .breadcrumb {
  justify-content: center;
}
.archive .page-title {
  text-align: center;
  color: #FFFFFF;
}

/* sidebar */
.home .sidebar-social .header-wrapper {
  display: none;
}

.sidebar-weekly .category {
  display: none;
}

/* pagination */
.pagination {
  justify-content: center;
  margin: 60px 0;
}
.pagination li {
  margin: 0 10px;
}
.pagination a {
  text-decoration: none;
  color: #2c2c2c;
  font-weight: 400;
  display: flex;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #d5d5d5;
  /* border: solid 1px #2C2C2C; */
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.pagination .active a,
.pagination a:hover {
  background-color: #06377b;
  color: #fff;
}

/* ===== Mobile Bottom Bar ===== */
  .mobile-nav { display:none; }
  
  /* แสดงเฉพาะบนมือถือ */
  @media (max-width: 767px) {
    /* ซ่อน footer เดิมบนมือถือ เพื่อไม่ให้ซ้ำกับแถบล่าง */
    .site-footer { display:none; }
  
    .mobile-nav{
      position:fixed; left:0; right:0; bottom:0;
      display:flex; justify-content:space-around; align-items:flex-end;
      padding:8px 10px calc(8px + env(safe-area-inset-bottom));
      background:#ffffff; border-top:1px solid #e5e5e5;
      z-index:9999;
      font-size:12px; line-height:1.1;
    }
  
    .mobile-nav a{
      text-decoration:none; color:#333; text-align:center;
      display:flex; flex-direction:column; align-items:center; gap:4px;
      min-width:56px;
    }
  
    .mobile-nav .mnav-item svg{ display:block; }
  
    /* ปุ่ม Home ตรงกลาง—ลอยขึ้นและใหญ่กว่า */
    .mobile-nav .mnav-home{
      position:relative; transform:translateY(-18px);
      display:flex; flex-direction:column; align-items:center; gap:4px;
    }
    .mobile-nav .mnav-home .mnav-home-btn{
      width:64px; height:64px; border-radius:50%;
      background:#06377b; 
	  color:#fff; 
	  display:flex; 
	  align-items:center; 
	  justify-content:center;
      box-shadow:0 6px 16px rgba(0,0,0,.2);
    }
    .mobile-nav .mnav-home span{ margin-top:2px; }
  }
  
  /* กันเนื้อหาถูกบังด้วยแถบล่างบนมือถือ */
  @media (max-width: 767px) {
    body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .mobile-nav i { font-size: 18px; line-height: 1; display: block; }
    .mobile-nav .mnav-home .mnav-home-btn i { font-size: 24px; }
  }
  
  /* เผื่อกรณีมี WP Admin Bar บนมือถือ */
  @media (max-width: 782px) {
    body.admin-bar .mobile-nav { bottom:0; }
  }