.roboto {
  font-family: "Roboto", sans-serif;
}

.bg-blue-2 {
  background-color: #272c40;
}

.bg-gray-2 {
  background-color: #f2f2f0;
}

.bg-gold {
  background-color: #c2bcae;
}

.bg-gray-3 {
  background-color: #eeeeee !important;
}

.box-shadow-gold-2 {
  box-shadow: 0px 2px #c1b497 !important;
}

.text-blue-2 {
  color: #272c3f;
}

.text-gold {
  color: #d3b184;
}

.text-gold-2 {
  color: #907e4c;
}

.text-gold-3 {
  color: #c0b596;
}

.text-gray-2 {
  color: #bbbbbb;
}

.text-gray-3 {
  color: #999999;
}

.border-color-extra-medium-gold {
  border-color: #857f71 !important;
}

.btn-header-custom {
  font-size: 18px;
  padding: 5px 10px;
  font-weight: 500;
  background-color: transparent;
  border-width: 1px !important;
  border-color: #c0b596 !important;
  color: #c0b596;
}

.btn-header-custom:hover {
  background-color: #c0b596;
  color: var(--white);
}

.btn-lag,
.btn-lag a {
  font-size: 18px;
  color: #b4b4b4;
  font-weight: 400;
  letter-spacing: 1px;
}

.btn-lag a.active,
.btn-lag a:hover {
  color: #fff;
  font-weight: 700;
  opacity: 1;
}

/* banner */
.btn-banner-custom {
  font-size: 24px;
  padding: 10px 17px;
  font-weight: 400;
  background-color: #bfb595;
  border-width: 1px !important;
  border-color: #bfb595 !important;
  color: #272c3f;
}

.btn-banner-custom:hover {
  background-color: transparent;
  border-color: #bfb595 !important;
  color: #bfb595;
}

.btn-banner-custom-outline {
  font-size: 24px;
  padding: 10px 40px;
  font-weight: 400;
  background-color: #272c3f;
  border-width: 1px !important;
  border-color: #bfb595 !important;
  color: #bfb595 !important;
}

.btn-banner-custom-outline:hover {
  background-color: #bfb595;
  border-color: #272c3f !important;
  color: #272c3f !important;
}

/* contact form */
.bth-contact {
  color: #fff;
  background-color: #c0b597;
  border: 1px solid #c0b597;
  font-size: 20px;
  font-weight: 400;
  padding: 10px 30px;
  border-radius: 4px;
}

.bth-contact:hover {
  color: #c0b597;
  background-color: transparent;
  border: 1px solid #c0b597;
}

.icon-with-text-style-01 {
  background-color: #f9f8f6;
}

.icon-with-text-style-01 .feature-box-icon::after {
  content: "";
  background-color: #c2bcae;
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  width: 100px;
  border-radius: 15px 0 0 15px;
  z-index: -1;
}

/* home about */
.btn-about {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  background-color: #c0b597;
  border: 1px solid #c0b597;
  padding: 15px 20px;
  border-radius: 5px;
}

.btn-about:hover {
  color: #c0b597;
  background-color: transparent;
  border: 1px solid #c0b597;
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* home service */

.service-radial {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
}

/* Center logo */
.center-logo {
  position: absolute;
  width: 200px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radial items */
:root {
  --total: 12;
  --angle: calc(360deg / var(--total));
}

.radial-item {
  transform: rotate(calc(var(--angle) * var(--i) - 90deg)) translate(450px)
    rotate(calc(-1 * (var(--angle) * var(--i) - 90deg)));
  position: absolute;
  z-index: 1;
  transition: 0.4s;
  cursor: pointer;
}

.radial-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  text-align: center;
  z-index: 1;
}

.radial-item img {
  width: 40px;
  margin-bottom: 15px;
  z-index: 1;
}

/* popup description */
.service-popup {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 250px;
  padding: 14px 12px;
  background: #c0b597;
  border: 1px solid #c0b597;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 100;
}

/* show on hover */
.radial-item:hover .service-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(10px);
  z-index: 100;
}

/* Hover */
.radial-item:hover a {
  color: #c0b597 !important;
}

.radial-item:hover {
  transform: rotate(calc(var(--angle) * var(--i) - 90deg)) translate(430px)
    rotate(calc(-1 * (var(--angle) * var(--i) - 90deg))) scale(1.08);
}

/* Responsive */
@media (max-width: 768px) {
  .service-radial {
    height: auto;
    padding: 40px 20px;
    display: block;
  }

  .center-logo {
    display: none;
  }

  .radial-item {
    position: relative;
    transform: none !important;
    width: 100%;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 10px;
  }

  .radial-item img {
    margin-bottom: 10px;
  }

  .radial-item a {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
  }

  /* popup → แสดงเป็น content ปกติ */
  .service-popup {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    margin-top: 10px;
    background: transparent;
    color: #fff;
  }

  .radial-item:hover .service-popup {
    transform: none;
  }

  /* ไม่ต้อง hover */
  .radial-item:hover {
    transform: none;
  }
}

@media (max-width: 992px) {
  .radial-item {
    transform: rotate(calc(var(--angle) * var(--i) - 90deg)) translate(270px)
      rotate(calc(-1 * (var(--angle) * var(--i) - 90deg)));
  }
}

@media (max-width: 1199px) {
  .radial-item {
    transform: rotate(calc(var(--angle) * var(--i) - 90deg)) translate(400px)
      rotate(calc(-1 * (var(--angle) * var(--i) - 90deg)));
  }
}

/* end */

/* blog */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-portfolio a {
  display: block;
  background-color: transparent;
  border: 1px solid #cbbc99;
  padding: 5px 20px;
  margin-bottom: 15px;
  color: #232323;
  font-size: 16px;
  font-weight: 500;
}

.category-portfolio a:hover,
.category-portfolio a.active {
  background-color: #cbbc99;
  border: 1px solid #cbbc99;
  color: #fff;
}

@media (max-width: 991px) {
  .category-portfolio a {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .tabs-mobile {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .tabs-mobile a {
    flex: 0 0 auto;
    display: inline-block;
    margin-bottom: 0;
    font-size: 14px;
  }

  /* ซ่อน scrollbar */
  .tabs-mobile::-webkit-scrollbar {
    display: none;
  }
}

/* end */

@media (max-width: 991px) {
  header .navbar-brand {
    padding: 10px 0;
  }

  header .navbar-brand img {
    max-height: 46px;
  }

  .btn-lag,
  .btn-lag a {
    font-size: 16px;
  }

  .navbar .navbar-nav .nav-link {
    font-size: 18px;
  }

  .navbar-collapse {
    background: #272c40;
  }

  /* banner */

  .btn-banner-custom {
    font-size: 14px;
    padding: 10px 17px;
  }

  .btn-banner-custom-outline {
    font-size: 14px;
    padding: 10px 30px;
  }
}

.text-editer p,
.text-editer h1,
.text-editer h2,
.text-editer h3,
.text-editer h4,
.text-editer h5,
.text-editer h6 {
  margin-bottom: 0;
}

.text-editer ul li {
  list-style: inherit;
}

/* service */
.list-style-02 li a {
  font-size: 16px;
}

.list-style-02 li.active a {
  color: #907e4c;
  font-weight: 600;
}
