:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #014198; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #014198; /* Color for headings, subheadings and title throughout the website */
  --orange-color: #F57B23; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --accent-color: #014198;
}

.img-container {
  width: 100%;
  height: auto; /* 👈 เพิ่มความสูงเริ่มต้นที่แน่นอน */
  overflow: hidden;
  position: relative;
}

.img-container img {
  width: 100%;
  height: 100%; /* ใช้ได้ เพราะ parent มีความสูงแน่นอนแล้ว */
  transition: transform 0.5s ease;
}

.img-container img:hover {
  transform: scale(1.05); /* ซูมเข้าเมื่อ hover */
}

.custom-height {
    height: 550px; /* ค่า default สำหรับจอเล็ก */
  }

@media (min-width: 992px) { /* จอใหญ่ขึ้นจาก breakpoint 'lg' */
  .custom-height {
    height: 450px;
  }
}

.icon-badge {
  width: 60px;
  height: 60px;
  top: -30px; /* ขึ้นมาครึ่งหนึ่ง */
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-posts article {
  height: 100%;
  transition: all 0.3s ease;
}

.blog-posts .post-img {
  max-height: 440px;
  overflow: hidden;
}

.blog-posts .title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0px;
}

.blog-posts a:hover .title {
  color: var(--orange-color);
}

.blog-posts .meta-top {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-posts .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
}

.blog-posts .meta-top ul li + li {
  padding-left: 10px;
}

.blog-posts .meta-top i {
  margin-right: 5px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-posts .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline-block;
  line-height: 1;
}


/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats i {
  color: var(--accent-color);
  width: 54px;
  height: 54px;
  font-size: 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats .stats-item {
  margin-top: -27px;
  padding: 30px 30px 25px 30px;
  width: 100%;
  position: relative;
  text-align: center;
  border-radius: 4px;
  z-index: 0;
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
}

/*--------------------------------------------------------------
# Work Process Section
--------------------------------------------------------------*/
.our-work .steps-item {
  background: var(--surface-color);
  border-radius: 20px;
  height: 100%;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 5px 20px color-mix(in srgb, var(--default-color), transparent 92%);
}

.our-work .steps-item .steps-image {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.our-work .steps-item .activity-image {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.our-work .steps-item .activity-badge {
  position: absolute;
  top: -16px;
  right: 16px;
  z-index: 3;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  line-height: 1.2;
  white-space: nowrap;
}

.our-work .steps-item .activity-badge--today,
.our-work .steps-item .activity-badge--tomorrow {
  background: #dc3545;
  color: #fff;
}

.our-work .steps-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.our-work .steps-item:hover .steps-number {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.our-work .steps-item:hover .steps-image img {
  transform: scale(1.1);
}

.our-work .steps-image {
  position: relative;
  height: 280px;
}

.our-work .activity-image img {
  object-fit: cover;
  transition: transform 0.6s ease;
}

.our-work .steps-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.our-work .steps-content {
  position: relative;
  padding: 40px 30px 30px;
}

.our-work .steps-content .steps-number {
  position: absolute;
  left: 30px;
  top: -30px;
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50%;
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.our-work .steps-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.our-work .steps-content p {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 25px;
}

.our-work .steps-features .feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.our-work .steps-features .feature-item:last-child {
  margin-bottom: 0;
}

.our-work .steps-features .feature-item i {
  color: var(--accent-color);
  font-size: 18px;
  margin-right: 10px;
}

.our-work .steps-features .feature-item span {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

@media (max-width: 1199px) {
  .our-work .steps-image {
    height: 240px;
  }

  .our-work .steps-content {
    padding: 35px 25px 25px;
  }

  .our-work .steps-content h3 {
    font-size: 22px;
  }
}

@media (max-width: 991px) {
  .our-work .steps-item {
    margin-bottom: 30px;
  }

  .our-work .steps-image {
    height: 220px;
  }

  .our-work .steps-content {
    padding: 30px 20px 20px;
  }

  .our-work .steps-content .steps-number {
    width: 50px;
    height: 50px;
    font-size: 20px;
    left: 25px;
    top: -25px;
  }

  .our-work .steps-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .our-work .steps-content p {
    font-size: 16px;
    margin-bottom: 20px;
  }
}

/*--------------------------------------------------------------
# Steps List
--------------------------------------------------------------*/
.work-process .steps-content {
  padding-right: 30px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .work-process .steps-content {
    padding-right: 0;
  }
}

.work-process .steps-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}

@media (max-width: 768px) {
  .work-process .steps-content h2 {
    font-size: 2rem;
  }
}

.work-process .steps-content .lead {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--default-color);
}

.work-process .steps-content p {
  margin-bottom: 2rem;
  color: var(--default-color);
}

.work-process .steps-content .steps-cta {
  display: flex;
  gap: 15px;
}

@media (max-width: 576px) {
  .work-process .steps-content .steps-cta {
    flex-direction: column;
  }
}

.work-process .steps-content .steps-cta .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.work-process .steps-content .steps-cta .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.work-process .steps-content .steps-cta .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 10%);
  border-color: color-mix(in srgb, var(--accent-color), #000 10%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.work-process .steps-content .steps-cta .btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.work-process .steps-content .steps-cta .btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.work-process .steps-list {
  position: relative;
}

.work-process .steps-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 25px;
  width: 2px;
  background-color: #DBF2FA;
}

@media (max-width: 576px) {
  .work-process .steps-list::before {
    left: 20px;
  }
}

.work-process .steps-list .step-item {
  display: flex;
  margin-bottom: 30px;
  position: relative;
}

.work-process .steps-list .step-item:last-child {
  margin-bottom: 0;
}

.work-process .steps-list .step-item:hover .step-number {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: scale(1.1);
}

.work-process .steps-list .step-item .step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #DBF2FA;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: 20px;
  z-index: 1;
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  .work-process .steps-list .step-item .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

.work-process .steps-list .step-item .step-content {
  padding-top: 5px;
}

.work-process .steps-list .step-item .step-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading-color);
}

@media (max-width: 576px) {
  .work-process .steps-list .step-item .step-content h3 {
    font-size: 1.1rem;
  }
}

.work-process .steps-list .step-item .step-content p {
  color: var(--default-color);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 40%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  margin: 0 15px 15px 15px;
  padding: 20px;
  background-color: var(--surface-color);
  position: relative;
  margin-bottom: 35px;
  border-radius: 6px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid var(--surface-color);
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 40px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Accordion
--------------------------------------------------------------*/
.accordion-button {
  color: var(--default-color);
}
.accordion-button:not(.collapsed) {
  background-color: #FFF;
  color: var(--default-color);
}
.accordion-body {
  color: var(--default-color);
}


/* ===== Gallery Grid — shared (ทั้ง frontend และ admin) ===== */

.gallery-slot {
  padding: 0.75rem;
}

.gallery-slot .gallery-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
}

.gallery-slot.ratio-landscape .gallery-img-wrap {
  aspect-ratio: 4 / 3;
}

.gallery-slot.ratio-portrait .gallery-img-wrap {
  aspect-ratio: 9 / 16;
}

.gallery-slot .gallery-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0.5rem;
}