:root {
  --primary: #102444;
  /* --primary: #0d1128; */
  --warning: #ffb900;
  --secondary: #bdbdbf;
  --light: #f4f5f8;
  --dark: #222429;
}

.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: 850px;
  object-fit: cover;
}

.swiper .swiper-pagination-bullet-active {
  background: var(--primary);
}

section.about {
  padding: 50px 0;
}

section.about .grid-about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

section.about .grid-about .about-description {
  margin: auto;
  width: 100%;
  padding-right: 15px;
}
section.about .grid-about .about-img {
  width: 100%;
}
section.about .grid-about .about-img img {
  width: 100%;
}

/* ================================ service start ===================================== */
section.service {
  margin-bottom: 100px;
}
section.service .service-text h2 {
  color: var(--warning);
  font-size: 20px;
  font-weight: bold;
  border-bottom: 3px solid #102444;
  width: fit-content;
  margin: 10px 0;
  margin-bottom: 25px;
}
section.service .service-text h3 {
  color: var(--dark);
  font-size: 40px;
}

section.service .grid-service {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
section.service .grid-service a {
  margin-bottom: 25px;
}
section.service .grid-service .card {
  border: none;
  overflow: hidden;
  height: 100%;
  margin: 20px 5px;
}

section.service .grid-service .card:hover img {
  transform: scale(1.2);
}
section.service .grid-service .card img {
  border-radius: 5px;
  transition: 0.5s;
  height: 100%;
}

section.service .grid-service .card .card-body {
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 100%;
}

section.service .grid-service .card .card-body h5.card-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--light);
}

section.service .grid-service .card .team-overlay {
  position: absolute;
  top: 50%;
  right: 50%;
  bottom: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 36, 68, 0.8);
  transition: 0.5s;
  opacity: 1;
}

section.service .grid-service .card:hover .team-overlay {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 1;
}

section.service .grid-service .card:hover .card-body {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ================================ service end ===================================== */

/* ================================ dashboard start ===================================== */

section.dashboard {
  background-color: var(--primary);
  padding: 50px 0;
}

section.dashboard ul.flex-dashboard {
  display: flex;
  flex-wrap: nowrap;
}
section.dashboard ul.flex-dashboard li.list-dashboard {
  color: var(--light);
  list-style: none;
  text-align: center;
}
section.dashboard ul.flex-dashboard {
  margin: 0;
  padding: 0;
}
section.dashboard ul.flex-dashboard li.list-dashboard p {
  margin-bottom: 0;
  font-size: 26px;
}
section.dashboard ul.flex-dashboard li.list-dashboard i {
  font-size: 48px;
  color: var(--warning);
}
/* ================================ dashboard end ===================================== */

/* ================================ content start ===================================== */
section.content {
  padding: 100px 0;
}

section.content .grid-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 25px;
}
section.content .grid-content .box-content-img {
  width: 95%;
}
section.content .grid-content .box-content-img img {
  width: 100%;
}
section.content .grid-content .box-content-description {
  margin: auto 0;
}
/* ================================ content end ===================================== */

/* ================================ gallery start ===================================== */

section.gallery {
  padding: 50px 0;
}

section.gallery .gallery-text {
  margin-bottom: 25px;
}

section.gallery .gallery-text h2 {
  text-align: center;
  font-weight: bold;
  color: var(--warning);
  font-size: 72px;
}
/* สไตล์สำหรับแกลเลอรี่ */
section.gallery .lightgallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
section.gallery .lightgallery img {
  width: 100%;
}
section.gallery .lightgallery a {
  overflow: hidden;
  height: 400px;
  margin: 15px;
  border-radius: 10px;
}
section.gallery .lightgallery a img {
  object-fit: cover;
  transition: 0.3s;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
section.gallery .lightgallery a img:hover {
  transform: scale(1.1);
  transition: 0.3s;
}
/* ================================ gallery end ===================================== */

/* ================================ page about start ===================================== */
.background-page {
  /* padding: 50px 0; */
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.background-page h1 {
  text-align: center;
  font-weight: bold;
  font-size: 48px;
  color: var(--light);
  background-color: rgba(16, 36, 68, 0.6);
  /* background-color: rgba(34, 36, 41, 0.6); */
  padding: 100px 0;
}

section.faq {
  padding: 50px 0;
}

section.faq h3 {
  font-size: 22px;
  font-weight: bold;
  width: fit-content;
  margin: 15px 0;
  color: var(--primary);
}

/* ================================ page about end ===================================== */

/* ================================ page alldesigns start ===================================== */
section.alldesigns {
  padding: 50px 0;
}

section.alldesigns .category h3 {
  font-weight: bold;
  color: var(--primary);
}

section.alldesigns .category .box-filter {
  margin-top: 25px;
}

section.alldesigns .category .box-filter .accordion .accordion-item {
  border: none;
}

section.alldesigns .grid-alldesigns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

section.alldesigns .grid-alldesigns .card {
  border: none;
  margin: 15px;
}
section.alldesigns .grid-alldesigns .card .box-img {
  overflow: hidden;
  height: 300px;
}
section.alldesigns .grid-alldesigns .card .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

section.alldesigns .grid-alldesigns .card:hover .box-img img {
  transform: scale(1.1);
  transition: 0.3s;
}

section.alldesigns button.btn-load {
  background-color: var(--primary);
  color: var(--light);
  padding: 10px 60px;
  transition: 0.3s ease-in-out;
}
section.alldesigns button.btn-load:hover {
  background-color: var(--dark);
  transition: 0.3s ease-in-out;
}

section.alldesigns .box-view .grid-view {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
section.alldesigns .box-view .grid-view .box-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
section.alldesigns .box-view .accordion {
  --bs-accordion-btn-focus-box-shadow: #fff;
}

section.alldesigns .box-view .accordion .accordion-item {
  border: none;
  padding: 15px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
section.alldesigns .box-view .accordion-button:not(.collapsed) {
  background-color: #fff;
  box-shadow: none;
}
.accordion-button:focus {
  border-color: #fff;
  box-shadow: #fff;
}
/* ================================ page alldesigns end ===================================== */

/* ================================ page contact start ===================================== */
section.contact {
  padding: 50px 0;
}

section.contact .grid-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0;
}

section.contact .grid-contact .box-item {
  padding: 50px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  margin: 15px;
  border-radius: 25px;
}

section.contact .grid-contact .box-item .icon {
  background-color: #f4f6f4;
  padding: 10px 13px;
  width: fit-content;
  margin: 0;
  border-radius: 50%;
}

section.contact .grid-contact .box-item .icon i {
  font-size: 28px;
  color: var(--primary);
  display: flex;
}

section.contact .grid-contact .box-item h4 {
  font-weight: bold;
}

section.contact .grid-contact .box-item p {
  opacity: 50%;
}

section.contact form {
  max-width: 540px;
}

section.contact form button {
  width: 100%;
  border: 2px solid #102444;
  background: var(--primary);
  padding: 10px 50px;
  border-radius: 5px;
  color: #fff;
  transition: 0.3s ease-in-out;
}

section.contact form button:hover {
  background: none;
  color: var(--primary);
  transition: 0.3s ease-in-out;
}

/* ================================ page contact end ===================================== */

@media screen and (max-width: 767px) {
  .swiper-slide img {
    height: 300px;
  }
  section.about .grid-about {
    display: block;
  }
  section.service .service-text h3 {
    color: var(--dark);
    font-size: 28px;
  }
  section.service .grid-service {
    display: block;
  }
  section.dashboard ul.flex-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  section.dashboard ul.flex-dashboard li.list-dashboard {
    margin-bottom: 25px;
  }
  section.content .grid-content {
    display: block;
  }
  section.content .grid-content .box-content-img {
    width: 100%;
  }
  section.gallery .gallery-text h2 {
    font-size: 48px;
  }
  /* สไตล์สำหรับแกลเลอรี่ */
  section.gallery .lightgallery {
    display: block;
  }
  section.gallery .lightgallery a {
    margin: 15px 0;
  }
  section.gallery .lightgallery a img {
    margin: 15px 0;
  }

  footer .row {
    display: block;
  }
  footer .row .col-6 {
    margin: 0;
  }

  /* ================================ page alldesigns start ===================================== */

  section.alldesigns .grid-alldesigns {
    display: block;
  }
  section.alldesigns .box-view .grid-view {
    display: block;
  }
  section.alldesigns .box-view .accordion .accordion-item {
    box-shadow: none;
  }

  /* ================================ page contact start ===================================== */

  section.contact .grid-contact {
    display: block;
  }
}

@media screen and (min-width: 767px) and (max-width: 1023px) {
  section.service .grid-service {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  section.dashboard ul.flex-dashboard li.list-dashboard p {
    margin-bottom: 0;
    font-size: 22px;
  }
  section.dashboard ul.flex-dashboard li.list-dashboard i {
    font-size: 38px;
    color: var(--warning);
  }

  section.alldesigns .grid-alldesigns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  section.contact .grid-contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 25px 0;
  }
  section.gallery .gallery-text h2 {
    font-size: 48px;
  }
  section.gallery .lightgallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  section.alldesigns .box-view .grid-view {
    display: block;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  section.gallery .lightgallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}
