:root {
  --primary: #e41a2b;
  --secondary: #bdbdbf;
  --light: #f4f5f8;
  --dark: #222429;
}

.link-btn {
  background: var(--primary);
  padding: 10px 50px;
  border-radius: 5px;
  color: var(--light);
  text-decoration: none;
}

.link-btn:hover {
  background: var(--dark);
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* header */

section.haeder-home {
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

section.haeder-home .header-content {
  display: table;
  width: 100%;
  height: 100vh;
  text-align: center;
  height: 100vh;
}

section.haeder-home .header-content .content-deacription {
  display: table-cell;
  vertical-align: middle;
  color: var(--light);
}

section.haeder-home .header-content .content-deacription .description {
  padding: 100px 50px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(15, 15, 16, 0.6);
  border-radius: 10px;
}

section.haeder-home .header-content .content-deacription .description h1 {
  font-size: 72px;
}

section.haeder-home .header-content .content-deacription .description p {
  opacity: 50%;
}

/* category */
section.category {
  padding: 200px 0;
}

section.category .grid-category {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

section.category .grid-category .box-item {
  padding: 25px 50px;
  background: var(--primary);
  color: var(--light);
  margin: 10px;
  border-radius: 10px;
  text-align: center;
}

section.category .grid-category .box-item .icon {
  margin-bottom: 15px;
  box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

section.category .grid-category .box-item .icon i {
  font-size: 48px;
  transition: 0.3s ease-in-out;
}

section.category .grid-category .box-item h3 {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

section.category .grid-category .box-item:hover .icon i {
  transform: scale(1.5);
  transition: 0.3s ease-in-out;
}

section.category .grid-category .box-item .icon img {
  width: 50px;
  transition: 0.3s ease-in-out;
}

section.category .grid-category .box-item:hover .icon img {
  transform: scale(1.5);
  transition: 0.3s ease-in-out;
}

/* product */
section.product {
  padding: 100px 0;
}

section.product .box-description {
  margin: auto;
  text-align: center;
  margin-bottom: 50px;
}
section.product .grid-product .card {
  border: none;
  padding: 10px;
  width: 100%;
}
section.product .grid-product .card img {
  width: 100%;
  border-radius: 5px;
}
section.product .grid-product .card .card-body {
  width: 100%;
}
section.product .grid-product .card .card-body h5.card-title {
  text-align: left;
  font-size: 18px;
}

section.product .grid-product .card .card-body p.card-text {
  text-align: left;
  font-size: 16px;
}

section.product .swiper .swiper-button-next::after,
section.product .swiper .swiper-button-prev::after {
  font-size: 24px;
  color: var(--light);
  background: var(--primary);
  padding: 10px 15px;
  font-weight: bold;
  border-radius: 5px;
  position: absolute;
  top: -50px;
  z-index: 100;
}

section.model {
  padding: 100px 0;
}

section.model .grid-model {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

section.model .grid-model .box-discription {
  margin: auto;
  text-align: center;
}

section.model .grid-model .box-discription h1 {
  color: var(--primary);
}

section.model .grid-model .box-model {
  margin: 10px;
}

section.model .grid-model .box-model a {
  text-decoration: none;
}

section.model .grid-model .box-model .card {
  border: none;
  overflow: hidden;
  height: 100%;
}

section.model .grid-model .box-model .card:hover img {
  transform: scale(1.2);
}

section.model .grid-model .box-model .card img {
  border-radius: 5px;
  transition: 0.5s;
  height: 100%;
}

section.model .grid-model .box-model .card .card-body {
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 100%;
}

section.model .grid-model .box-model .card .card-body h5.card-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
}

section.model .grid-model .box-model .team-overlay {
  position: absolute;
  top: 50%;
  right: 50%;
  bottom: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(34, 36, 41, 0.9); */
  transition: 0.5s;
  opacity: 0;
}

section.model .grid-model .box-model:hover .team-overlay {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 1;
}

section.model .grid-model .box-model:hover .card .card-body {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* about */
section.about {
  background: var(--dark);
}

section.about .grid-about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

section.about .grid-about .box-about-img {
  width: 100%;
}

section.about .grid-about .box-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.about .grid-about .box-about-description {
  padding: 50px;
  color: var(--light);
}

section.about .grid-about .box-about-description h1 {
  font-size: 48px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: bold;
}

section.about .grid-about .box-about-description p {
  color: var(--light);
  text-indent: 50px;
  text-align: justify;
}

/* gallery */
section.gallery {
  padding: 100px 0;
}

section.gallery h1 {
  font-size: 48px;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary);
}

section.gallery .swiper {
  width: 100%;
}

section.gallery .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

section.gallery .swiper-slide img {
  display: block;
  width: 100%;
  height: auto; /* ให้ขนาดเป็นไปตามธรรมชาติ */
  object-fit: cover; /* ทำให้ภาพเต็มโดยไม่ผิดสัดส่วน */
  border-radius: 5px;
}

/* ปรับแต่งปุ่ม Next และ Prev */
section.gallery .swiper .swiper-button-next::after,
section.gallery .swiper .swiper-button-prev::after {
  font-size: 24px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  font-weight: bold;
  border-radius: 5px;
}

/* youtube-video */
section.youtube-video {
  background-color: var(--dark);
  padding: 100px 0;
}

section.youtube-video iframe {
  width: 100%;
  min-height: 650px;
  border-radius: 10px;
}

section.tiktok-video {
  background-color: var(--dark);
  padding: 100px 0;
}
section.tiktok-video .grid-video {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

section.tiktok-video .grid-video .box-item {
  padding: 15px;
}

section.blog {
  padding: 100px 0;
}

section.blog h1 {
  font-weight: bold;
}

section.blog .grid-blog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

section.blog .grid-blog .card {
  border: none;

  overflow: hidden;
}

section.blog .grid-blog .box-blog {
  margin: 10px;
}

section.blog .grid-blog .box-img {
  overflow: hidden;
  height: 270px;
  /* กำหนดความสูงที่ต้องการ */
  display: flex;
  align-items: center;
  justify-content: center;
  /* จัดกลาง */
}

section.blog .grid-blog .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ครอบภาพเพื่อให้เต็มพื้นที่ */
  transition: transform 0.5s ease;
}

section.blog .grid-blog .card:hover .box-img img {
  transform: scale(1.1);
  /* เพิ่มขนาดภาพเมื่อ hover */
}

section.blog .grid-blog .card .card-body {
  background-color: var(--dark);
  overflow: hidden;
  color: var(--light);
}

.home-content-one * {
  box-sizing: border-box;
}

.home-content-one {
  line-height: 1.6;
}

.home-content-one .about-section {
  padding: 5rem 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.home-content-one .about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23bdbdbf" stroke-width="0.3" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
  opacity: 0.5;
}

.home-content-one .section-content {
  position: relative;
  z-index: 2;
}

.home-content-one .section-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 1rem;
  position: relative;
}

.home-content-one .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.home-content-one .section-subtitle {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

.home-content-one .about-text {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.home-content-one .highlight-text {
  color: var(--primary);
  font-weight: 600;
}

.home-content-one .media-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(34, 36, 41, 0.1);
  background: var(--dark);
  transition: all 0.3s ease;
}

.home-content-one .media-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(228, 26, 43, 0.2);
}

.home-content-one .media-content {
  width: 100%;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-content-one .media-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-content-one .media-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-content-one .media-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--dark), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  position: relative;
}

.home-content-one .btn-primary-custom {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.home-content-one .btn-primary-custom:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(228, 26, 43, 0.2);
}

.home-content-one .btn-outline-custom {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-left: 1rem;
}

.home-content-one .btn-outline-custom:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

.home-content-one .floating-elements {
  position: absolute;
  top: 20%;
  right: 5%;
  font-size: 8rem;
  color: var(--primary);
  opacity: 0.05;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.home-content-one .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.home-content-one .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .home-content-one .section-title {
    font-size: 2.5rem;
  }

  .home-content-one .floating-elements {
    display: none;
  }

  .home-content-one .btn-outline-custom {
    margin-left: 0;
    margin-top: 1rem;
    display: block;
    text-align: center;
  }
}

section.blog .grid-blog .card .card-body h5.card-title {
  text-transform: uppercase;
  font-weight: bolder;
}

@media screen and (max-width: 767px) {
  section.haeder-home .header-content .content-deacription .description {
    padding: 25px;
  }

  section.haeder-home .header-content .content-deacription .description h1 {
    font-size: 24px;
  }
  section.haeder-home .header-content .content-deacription .description h2 {
    font-size: 22px;
  }
  section.haeder-home .header-content .content-deacription .description h3 {
    font-size: 20px;
  }
  section.haeder-home .header-content .content-deacription .description h4 {
    font-size: 18px;
  }
  section.haeder-home .header-content .content-deacription .description h5 {
    font-size: 16px;
  }
  section.haeder-home .header-content .content-deacription .description h6 {
    font-size: 14px;
  }
  section.haeder-home .header-content .content-deacription .description p {
    font-size: 14px;
  }

  section.category {
    padding: 100px 0;
  }

  section.category .grid-category {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  section.category .grid-category .box-item {
    padding: 10px;
  }

  section.category .grid-category .box-item .icon i {
    font-size: 38px;
  }

  section.category .grid-category .box-item h3 {
    font-size: 16px;
  }

  section.category .grid-category .box-item:hover .icon i {
    transform: scale(1.05);
  }

  section.product .grid-product {
    display: block;
  }

  section.product .grid-product .box-description {
    margin-bottom: 50px;
  }

  section.product .grid-product .box-product {
    display: block;
  }

  section.product .box-product {
    display: block;
  }

  section.dashboard .row .col-lg-3 .d-flex {
    margin: 0;
  }

  section.model .grid-model {
    display: block;
  }

  section.model .grid-model .box-discription {
    margin-bottom: 50px;
  }

  section.about .grid-about {
    display: block;
  }

  section.about .grid-about .box-about-description h1 {
    font-size: 24px;
  }
  section.about .grid-about .box-about-description h2 {
    font-size: 22px;
  }
  section.about .grid-about .box-about-description h3 {
    font-size: 20px;
  }
  section.about .grid-about .box-about-description h4 {
    font-size: 18px;
  }
  section.about .grid-about .box-about-description h5 {
    font-size: 16px;
  }
  section.about .grid-about .box-about-description h6 {
    font-size: 14px;
  }
  section.about .grid-about .box-about-description p {
    font-size: 14px;
  }

  section.youtube-video iframe {
    width: 100%;
    min-height: 315px;
    border-radius: 10px;
  }

  section.blog .grid-blog {
    display: block;
  }
}

@media screen and (min-width: 767px) and (max-width: 1023px) {
  section.category {
    padding: 50px 0;
  }

  section.haeder-home .header-content .content-deacription .description h1 {
    font-size: 32px;
  }
  section.haeder-home .header-content .content-deacription .description h2 {
    font-size: 28px;
  }
  section.haeder-home .header-content .content-deacription .description h3 {
    font-size: 26px;
  }
  section.haeder-home .header-content .content-deacription .description h4 {
    font-size: 24px;
  }
  section.haeder-home .header-content .content-deacription .description h5 {
    font-size: 22px;
  }
  section.haeder-home .header-content .content-deacription .description h6 {
    font-size: 20px;
  }
  section.haeder-home .header-content .content-deacription .description p {
    font-size: 18px;
  }

  section.category .grid-category {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  section.category .grid-category .box-item {
    padding: 25px;
  }

  section.category .grid-category .box-item .icon i {
    font-size: 48px;
  }

  section.category .grid-category .box-item h3 {
    font-size: 16px;
  }

  section.category .grid-category .box-item:hover .icon i {
    transform: scale(1.1);
  }

  section.product .grid-product {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  section.product .grid-product .box-description {
    margin-bottom: 50px;
    margin: auto;
  }

  section.product .grid-product .box-product {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  section.product .box-product {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  section.product
    .grid-product
    .box-product
    .product-item
    .card
    .card-body
    h5.card-title {
    font-size: 14px;
  }

  section.dashboard .row .col-lg-3 .d-flex {
    margin: 0;
  }

  section.model .grid-model {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  section.model .grid-model .box-discription {
    margin: auto;
  }

  section.about .grid-about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  section.about .grid-about .box-about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  section.about .grid-about .box-about-description h1 {
    font-size: 32px;
  }
  section.about .grid-about .box-about-description h2 {
    font-size: 28px;
  }
  section.about .grid-about .box-about-description h3 {
    font-size: 26px;
  }
  section.about .grid-about .box-about-description h4 {
    font-size: 24px;
  }
  section.about .grid-about .box-about-description h5 {
    font-size: 22px;
  }
  section.about .grid-about .box-about-description h6 {
    font-size: 20px;
  }
  section.about .grid-about .box-about-description p {
    font-size: 18px;
  }

  section.youtube-video iframe {
    width: 100%;
    min-height: 315px;
    border-radius: 10px;
  }

  section.blog .grid-blog {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
}
