.nones {
  display: none;
}

.imgsd {
  width: 100%;
}
.break-tag {
  display: none;
}

/* CSS for mobile */
@media only screen and (max-width: 600px) {
  .break-tag {
    display: block;
  }
}

.mbmove {
  right: -1112px;
  position: fixed;
  top: 800px;
}

/*/* มือถือขนาดเล็ก (ต่ำกว่า 576px) */

/* มือถือขนาดเล็ก (ต่ำกว่า 576px) */
@media only screen and (max-width: 575.98px) {
  .mbmovepcclaft {
    position: fixed;
    bottom: 23%;
    left: 0%;
    z-index: 9999;
  }

  .-luckyside {
    width: 85px;
  }
}

/* มือถือขนาดกลางถึงแท็บเล็ตแนวตั้ง (576px - 767.98px) */
@media only screen and (min-width: 576px) and (max-width: 767.98px) {
  .mbmovepcclaft {
    position: fixed;
    bottom: 23%;
    left: 0%;
    z-index: 9999;
  }

  .-luckyside {
    width: 95px;
  }
}

/* แท็บเล็ตแนวนอนถึงแล็ปท็อปเล็ก (768px - 991.98px) */
@media only screen and (min-width: 768px) and (max-width: 991.98px) {
  .mbmovepcclaft {
    position: fixed;
    bottom: 25%;
    left: 0%;
    z-index: 9999;
  }

  .-luckyside {
    width: 105px;
  }
}

/* เดสก์ท็อปปกติ (992px - 1199.98px) */
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
  .mbmovepcclaft {
    position: fixed;
    bottom: 32%;
    left: 0%;
    z-index: 9999;
  }

  .-luckyside {
    width: 110px;
  }
}

/* เดสก์ท็อปใหญ่ (1200px - 1919.98px) */
@media only screen and (min-width: 1200px) and (max-width: 1919.98px) {
  .mbmovepcclaft {
    position: fixed;
    bottom: 1%;
    left: 1%;
    z-index: 9999;
  }

  .-luckyside {
    width: 120px;
  }
}

/* จอ 4K, TV, Ultra-wide (1920px ขึ้นไป) */
@media only screen and (min-width: 1920px) {
  .mbmovepcclaft {
    position: fixed;
    bottom: 1%;
    left: 1%;
    z-index: 9999;
  }

  .-luckyside {
    width: 130px;
  }
}

.main {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: main-loadup 1s forwards linear, main-loadup-bg 10s forwards linear;
  animation-delay: 7s, 8s;
}

@keyframes main-loadup {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes main-loadup-bg {
  from {
    background-size: 100% 100%;
    background-position: 0% 0%;
  }

  to {
    background-size: 400% 400%;
    background-position: 0% 100%;
  }
}

.mbmovepcclaft img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mbmovepcclaft img:hover {
  transform: scale(1.1);
}

.book {
  position: fixed;
  display: flex;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 750px;
  pointer-events: none;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  rotate: 1 0 0 30deg;
  z-index: 9999;
  display: none;
  /* เริ่มต้นซ่อนไว้ */
}

/* ปรับตำแหน่งเมื่อเปิดหนังสือให้ left เป็น 43% */
.book[style*="--c:1"],
.book[style*="--c:2"],
.book[style*="--c:3"],
.book[style*="--c:4"] {
  transform: translate(0%, -50%);
  left: 43%;
}

/* สำหรับ mobile */
@media screen and (max-width: 768px) {
  .book {
    width: 215px;
    height: 370px;
  }

  /* ใช้ค่า left เดียวกันคือ 43% สำหรับ mobile */
  .book[style*="--c:1"],
  .book[style*="--c:2"],
  .book[style*="--c:3"],
  .book[style*="--c:4"] {
    transform: translate(0%, -50%);
    left: 43%;
  }
}

.book-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}

.page {
  --thickness: 4;
  flex: none;
  display: flex;
  width: 100%;
  font-size: 2cqmin;
  pointer-events: all;
  user-select: none;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 1s,
    rotate 1s ease-in
      calc((min(var(--i), var(--c)) - max(var(--i), var(--c))) * 50ms);
  translate: calc(var(--i) * -100%) 0px 0px;
  transform: translateZ(
    calc((var(--c) - var(--i) - 0.5) * calc(var(--thickness) * 0.23cqmin))
  );
  rotate: 0 1 0 calc(clamp(0, var(--c) - var(--i), 1) * -180deg);
  z-index: 1;
  /* Added to ensure proper stacking within the book component */
}

.front,
.back {
  position: relative;
  flex: none;
  width: 100%;
  backface-visibility: hidden;
  overflow: hidden;
  background-color: #fff;
  /* Fix backface visibility Firefox: */
  translate: 0px;
  color: white;
}

.back {
  translate: -100% 0;
  rotate: 0 1 0 180deg;
}

/* That's it. Your FlipBook customization styles: */

.book {
  counter-reset: page -1;

  & a {
    color: inherit;
  }
}

.page {
  box-shadow: 0em 0.5em 1em -0.2em #00000020;
}

.front,
.back {
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  padding: 2em;
  border: 1px solid #0002;

  &:has(img) {
    padding: 0;
  }

  & img {
    width: 100%;
    height: 115%;
  }

  &::after {
    position: absolute;
    bottom: 1em;
    counter-increment: page;
    content: counter(page) ".";
    font-size: 0.8em;
  }
}

.cover {
  &::after {
    content: "";
  }
}

.front {
  &::after {
    right: 1em;
  }

  background: linear-gradient(to left, #f7f7f7 80%, #eee 100%);
  border-radius: 0.1em 0.5em 0.5em 0.1em;
}

.back {
  &::after {
    left: 1em;
  }

  background-image: linear-gradient(to right, #f7f7f7 80%, #eee 100%);
  border-radius: 0.5em 0.1em 0.1em 0.5em;
}

.cover {
  background: radial-gradient(
      circle farthest-corner at 80% 20%,
      hsl(150 80% 20% / 0.3) 0%,
      hsl(170 60% 10% / 0.1) 100%
    ),
    hsl(231, 32%, 29%) url("/../pic/Untitled-1sss.png") 50% / cover;
  color: hsl(200 30% 98%);
}

.close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background-color: darkred;
  transform: scale(1.1);
}

#slideshow > div {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
}

#slideshow {
  margin-left: -10px;
  position: relative;
  width: 1173px;
  height: 295px;
  padding: 10px;
}

ul#menu-footer-menu {
  display: inline-block;
  padding: 0px;
  list-style-type: none;
}

#menu-footer-menu > li > a {
  margin-bottom: 6px;
  padding: 10px 10px;
  border-radius: 2px;
  color: #ffffff;
  background: #ffffff24;
  transition: all 0.2s;
  display: inline-block;
}

#menu-footer-menu > li {
  display: inline-block;
}

.col-12.-tags.center {
  text-align: center;
}

.scroll-bg {
  background-color: black;
  width: 400px;
  margin: 0% auto;
}

.scroll-object {
  color: red;
}
.srcoll-div {
  width: 400px;
  background: black;
  height: 152px;
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .srcoll-div {
    width: 400px;
    background: black;
    height: 160px;
    overflow: hidden;
  }
}

/*home
**/
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.popup-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  z-index: 1001;
}

.popup-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.close-x {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background-color: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.close-x:hover {
  background-color: #cc0000;
}

.popup-content {
  text-align: center;
}

.popup-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
}

.checkbox-wrapper {
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-wrapper label {
  cursor: pointer;
  user-select: none;
}

.close-button {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.close-button:hover {
  background-color: #0056b3;
}

.popup-show {
  animation: fadeIn 0.3s ease-in;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.bosscol {
  width: 5%;
}

.btngreen {
  max-width: 100%;
}

@media only screen and (max-width: 849px) {
  .bosscol {
    width: 17%;
  }

  .btngreen {
    max-width: 80%;
  }
}

.tv-ch-online {
  float: left;
  margin: 4px;
  width: 122px;
  height: auto;
}

.tv-ch-online:hover {
  animation-name: tv-ch-glowAnim;
  animation-duration: 500ms;
  animation-iteration-count: infinite;
}

.tv-cate-online {
  float: left;
  background-color: #222222;
  margin-top: 15px;
  margin-bottom: 15px;
}

.poslive {
  position: absolute;
  right: 33%;
  top: 255%;
  width: 75px;
  height: 75px;
}

@media only screen and (max-width: 500px) {
  .tv-ch-online {
    float: left;
    margin: 3px;
    width: 23%;
    height: auto;
  }
}

.tv-img {
  background-color: #fff;
}

.scroll-bgs {
  background-color: black;
  width: 400px;
  margin: 1% auto;
}

.btn__primary {
  grid-column: 1/2;
  grid-row: 4/5;
  background: var(--primary);
  box-shadow: inset 0.2rem 0.2rem 1rem var(--primary-light),
    inset -0.2rem -0.2rem 1rem var(--primary-dark),
    0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
  color: var(--greyLight-1);
}

.btn__primary:hover {
  color: var(--white);
}

.btn__primary:active {
  box-shadow: inset 0.2rem 0.2rem 1rem var(--primary-dark),
    inset -0.2rem -0.2rem 1rem var(--primary-light);
}

.srcoll-divs {
  width: 400px;
  background: black;
  height: 150px;
  overflow: hidden;
  overflow-y: scroll;
}

.sizesh3 {
  font-size: 18px;
}

@media (max-width: 575.98px) {
  .srcoll-divs {
    width: 400px;
    background: black;
    height: 368px;
    overflow: hidden;
    overflow-y: scroll;
  }
}

/* Responsive iframe container */
.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 70%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow-x: auto; /* เปิด scroll แนวนอน */
  overflow-y: hidden; /* ปิด scroll แนวตั้ง */
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 20px;
  -webkit-overflow-scrolling: touch; /* smooth scrolling บน iOS */
}

/* Iframe styles */
.iframe-container iframe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
  min-height: 100%;
}

/* ซ่อน scrollbar แนวตั้งใน iframe */
.iframe-container iframe::-webkit-scrollbar-y {
  display: none;
}

/* Alternative fixed height approach */
.iframe-fixed {
  width: 100%;
  height: 600px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 20px;
  overflow-x: auto; /* เปิด scroll แนวนอน */
  overflow-y: hidden; /* ปิด scroll แนวตั้ง */
  -webkit-overflow-scrolling: touch; /* smooth scrolling บน iOS */
}

/* Mobile responsive */
@media (max-width: 768px) {
  .iframe-fixed {
    height: 400px;
  }
  .iframe-container {
    padding-bottom: 115.2%;
  }
}

@media (max-width: 480px) {
  .iframe-fixed {
    height: 350px;
  }
  .iframe-container {
    padding-bottom: 200%;
  }
}


    .news-item {
            margin-bottom: 2rem;
        }

        .btn {
            padding: 8px 10px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
        }

        .panel-body {
            padding: 0px;
            color: #ddd;
            padding-bottom: 10px;
            padding-top: 10px;
        }

        .btn-primary {
            color: #fff;
            background-color: #f30429;
            /* text-align: center; */
            display: block;
            margin: auto;

        }

        .btn-primary:hover {
            color: #fff;
            background-color: #f30429;
            /* text-align: center; */
            display: block;
            display: block;
            margin: auto;
            margin-top: 10px;
            box-shadow: 0px 0px 11px -3px rgba(, 255, 0, 0.2);
        }

        .read-more-btn {
            margin-top: 10px;
            /* เพิ่มระยะห่างระหว่างไตเติ้ลและปุ่ม */
            /*display: inline-block;  ทำให้ปุ่มอยู่ในบรรทัดเดียวกับไตเติ้ล */
        }

        .page-item {
            margin: 0 calc(0.1em + 0.2vw);
            background-color: #545c6c40;
            border-radius: 10px;
            -webkit-border-radius: 10px;
        }

        .page-item.active .page-link {
            border-radius: 10px;
            -webkit-border-radius: 10px;

        }

        .page-link,
        .page-link:hover {
            border-radius: 10px;
            -webkit-border-radius: 10px;
        }

        .news-title {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-top: .9rem;
            margin-bottom: .2rem;
            font-weight: bold;
            height: 3rem;
        }

        .newsgap {
            padding: 24px;
            background-color: #161f2c;
            border-radius: 3px;
            margin-top: -3px;

        }

        .page-item.active .page-link {
            background-color: #22377d;
            border: 0;
            box-shadow: 0 3px 16px #0c0e3f80, inset 0 4px 3px #ffffff4 -webkit-transition: all .2s linear;
            transition: all .2s linear
        }

        .news-titleall {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-top: 0.9rem;
            margin-bottom: .2rem;
            font-weight: bold;
            height: 3rem;
        }

        .news-lnames {
            color: black;
            font-size: .8rem;

            background-color: white;
            border-radius: 20px;
            align-items: center;
            background-color: var(--tag-background-color, rgba(42, 53, 70, .5));
            border-radius: 20px;
            color: #ffffff;
            cursor: pointer;
            margin-top: -52%;

            /* margin-right: 12%; */
            position: absolute;
            display: inline-flex;
            font-feature-settings: "tnum" on, "lnum" on;
            gap: 8px;
            letter-spacing: -.02em;
            padding: 4px 10px 5px;
            text-decoration: none;
            transition: background-color .1s ease-in-out;
            width: fit-content;

            left: 5px;
        }

        .big-size {
            transition: transform .70s;
            position: relative;
            -webkit-transform: translateZ(0);

            height: 200px;
        }

        .newsall {
            color: #fff;

        }

        .news {
            color: #fff;
            line-height: initial;
        }

        .news:hover {
            color: #fb3535;
            line-height: initial;
        }

        .news-time {
            color: #94afda;
            font-size: 12px;
            font-weight: 500;
            line-height: 18px;
            margin-right: auto;
        }

        .news-timeall {
            color: #fff;
            font-size: .8rem;
        }

        .pagination-lg .page-item:first-child .page-link,
        .pagination-sm .page-item:first-child .page-link {
            border-radius: 10px;
        }

        @media only screen and (max-width: 600px) {
            .newsgap {
                padding: 24px;
                background-color: #161f2c;
                border-radius: 3px;
                margin-top: -3px;

            }

            .news-lnames {
                font-size: .8rem;
                align-items: center;
                background-color: var(--tag-background-color, rgba(42, 53, 70, .5));
                color: #ffffff;
                cursor: pointer;
                font-feature-settings: "tnum" on, "lnum" on;
                gap: 8px;
                letter-spacing: -.02em;
                padding: 4px 10px 5px;
                text-decoration: none;
                transition: background-color .1s ease-in-out;
                display: inline-block;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                position: absolute;
                margin-top: -46%;

            }

            .pagination-lg .page-link {
                padding: .75rem 1.5rem;
                font-size: 0.75rem;
            }

            .page-item:not(:first-child) .page-link {
                margin-left: -2px;
            }
        }

        @media screen and (max-width: 1120px) {
            .news-lnames {
                margin-top: -57%;
            }

        }

        @media screen and (max-width: 1040px) {
            .news-lnames {
                margin-top: -61%;
            }

        }

        @media screen and (max-width: 991px) {
            .news-lnames {
                margin-top: -41%;
            }

        }

        @media screen and (max-width: 891px) {
            .news-lnames {
                margin-top: -47%;
            }

        }

        @media screen and (max-width: 773px) {
            .news-lnames {
                margin-top: -54%;
            }

        }

        @media screen and (max-width: 767px) {
            .news-lnames {
                margin-top: -26%;
            }

        }

        @media screen and (max-width: 699px) {
            .news-lnames {
                margin-top: -29%;
            }

        }

        @media screen and (max-width: 617px) {
            .news-lnames {
                margin-top: -47%;
            }

        }

         .btn {
            padding: 8px 10px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
        }

        .btn-primary {
            color: #fff;
            background-color: #f30429;
            /* text-align: center; */
            display: block;
            margin: auto;

        }

        .btn-primary:hover {
            color: #fff;
            background-color: #f30429;
            /* text-align: center; */
            display: block;
            display: block;
            margin: auto;
            margin-top: 10px;
            box-shadow: 0px 0px 11px -3px rgba(, 255, 0, 0.2);
        }