/*!
Theme Name: heedeng
Theme URI: /
Author: heedeng
Author URI: /
Description: heedeng
Version: 1.0.0
Text Domain: heedeng
Tags: custom-background

*/

/* thai */
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 400;
  src: url(./assets/fonts/nKKZ-Go6G5tXcraBGwCYdA.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
  font-display: swap;
}
/* latin-ext */
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 400;
  src: url(./assets/fonts/nKKZ-Go6G5tXcrabGwCYdA.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
/* latin */
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 400;
  src: url(./assets/fonts/nKKZ-Go6G5tXcraVGwA.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
/* thai (bold) */
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 700;
  src: url(./assets/fonts/nKKU-Go6G5tXcr4uPhWzVaF5NQ.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
  font-display: swap;
}
/* latin-ext (bold) */
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 700;
  src: url(./assets/fonts/nKKU-Go6G5tXcr4uPhWpVaF5NQ.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
/* latin (bold) */
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 700;
  src: url(./assets/fonts/nKKU-Go6G5tXcr4uPhWnVaE.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

footer {
  padding: 3rem 1.5rem 3.5rem !important;
}

/*  body.tag */
body.tag {
  background-color: initial;
  display: block;
  font-size: initial;
  white-space: initial;
  height: initial;
  padding: initial;
  color: var(--bulma-body-color);
  border-radius: initial;
}

/** Loop Video **/

.loop-video .post-header {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-thumbnail {
  position: relative;
}

.post-thumbnail {
  border-radius: 5px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  display: block;
}

.post-category {
  text-transform: uppercase;
  padding: 1px 9px 1px 9px;
  font-size: 16px;
  line-height: 19px;
  color: #fff;
  background: #780070;
  top: 5px;
  right: 0px;
  position: absolute;
}

.post-duration {
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 14px;
  line-height: 1rem;
  color: #ccc;
  background: rgba(0, 0, 0, 0.7);
  bottom: 5px;
  right: 5px;
  position: absolute;
}

.post-views {
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 14px;
  line-height: 1rem;
  color: #ccc;
  background: rgba(0, 0, 0, 0.7);
  bottom: 5px;
  left: 5px;
  position: absolute;
}

.post-views i{
	font-size: 12px;
	margin-right: 2px;
}

.thumb-block .post-header h3 {
  color: hsl(0, 0%, 71%);
  transition: color 0.2s ease; /* Add transition for smooth color change */
}

.thumb-block a:hover .post-header h3 {
  color: var(--bulma-link-text);
}

/* Hot Videos */
.hot-video-loop.is-skeleton {
  max-width: 255px;
  margin-right: 10px;
}

.swiper-container {
  width: 100%;
  overflow: hidden;
}

.responsive-player {
  height: 550px;
}

@media (max-width: 480px) {
  .responsive-player {
    height: 250px;
  }
}

/** Search **/

.search-container {
  position: relative;
}

#results {
  padding: 0.5em;
  position: absolute;
  top: 100%; /* Positions the results directly below the input field */
  left: 0;
  right: 0;
  z-index: 10;
  display: none; /* Initially hidden */
  overflow: hidden;
}

#mobile-search-results {
  padding: 5px;
  position: absolute;
  top: 100%; /* Positions the results directly below the input field */
  left: 0;
  right: 0;
  z-index: 10;
  display: none; /* Initially hidden */
  overflow: hidden;
}

.result-item {
  font-size: 14px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.search-result-cate {
  color: var(--bulma-primary);
}

#mobile-search-toggle {
  text-decoration: none;
}

@media screen and (max-width: 999px) {
  #burger-button {
    order: -1;
    margin-inline-end: auto;
    margin-inline-start: 0.375rem;
  }

  #mobile-search-toggle {
    margin-inline-end: 0.375rem;
    margin-inline-start: auto;
  }

  .main-logo {
    margin-inline-end: auto;
    margin-inline-start: auto;
  }
}

/* SP navbar */

#primaryNavbar .navbar-end #searchform input {
  width: 450px;
  max-width: 100%;
}

/* Tags */

.tags-container {
  position: relative;
  padding: 0 40px;
  border-radius: 6px;
}

.tags-wrapper {
  overflow: hidden;
  padding: 0.5rem 0;
  position: relative;
}

.tags-scroll {
  display: flex;
  white-space: nowrap;
  transition: transform 0.3s ease;
  padding: 0 0.25rem;
}

.tags-scroll .tag {
  background: #2c2c2c;
  color: #e0e0e0;
  border: 1px solid #3a3a3a;
  margin: 0;
  flex-shrink: 0;
  height: auto;
  padding: 0.5rem 1rem;
}

.tags-scroll .tag:hover {
  background: #363636;
  border-color: #4a4a4a;
  color: #ffffff;
}

.tag-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: #2c2c2c;
  border: 1px solid #3a3a3a;
  color: #e0e0e0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
}

.tag-nav-button:hover {
  background: #363636;
  border-color: #4a4a4a;
  color: #ffffff;
}

.tag-nav-button.prev {
  left: 8px;
}

.tag-nav-button.next {
  right: 8px;
}

.tag-nav-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.tags-wrapper::-webkit-scrollbar {
  display: none;
}

.tags-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 768px) {
  .tags-container {
    padding: 0;
    background: transparent;
  }
  .tag-nav-button {
    display: none;
  }
  .tags-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .tags-scroll a.button {
    scroll-snap-align: start;
  }

  .hot-video-loop.is-skeleton {
    max-width: 170px;
    margin-right: 10px;
  }
}

