
/* ==========================================
   CUSTOM STATS SECTION
========================================== */

.cse-custom-stats-section {
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
  box-sizing: border-box;
}

.cse-custom-stats-section *,
.cse-custom-stats-section *::before,
.cse-custom-stats-section *::after {
  box-sizing: border-box;
}


/* ==========================================
 STATS GRID
========================================== */

.cse-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
  padding-bottom: 30px;
}

.cse-stat-item {
  position: relative;
  padding: 0 15px;
  min-width: 0;
}

.cse-stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: #d1d1d1;
}


/* ==========================================
 COUNTER ICON CIRCLE
========================================== */

.cse-stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 32px;
  overflow: hidden;

  background-color: var(--cse-icon-bg);
  color: var(--cse-icon-color);
}

.cse-stat-icon i {
  color: var(--cse-icon-color);
  font-size: 32px;
}

.cse-stat-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Counter Custom Image */

.cse-stat-icon img.cse-stat-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* ==========================================
 COUNTER NUMBER
========================================== */

.cse-stat-number {
  font-size: 54px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 10px;
}

.cse-number-pink {
  color: #d9534f;
}

.cse-number-green {
  color: #4b8b4b;
}

.cse-number-orange {
  color: #e67e22;
}

.cse-number-blue {
  color: #4a6fa5;
}


/* ==========================================
 COUNTER TITLE
========================================== */

.cse-stat-title {
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
}


/* ==========================================
 COUNTER DESCRIPTION
========================================== */

.cse-stat-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.3;
}

.cse-stat-desc p {
  margin: 0;
}


/* ==========================================
 SERVICES BAR
========================================== */

.cse-services-bar {
  border-top: 1px solid #d1d1d1;
  padding-top: 25px;

  display: flex;
  align-items: stretch;
  gap: 20px;
}


/* ==========================================
 SERVICES TITLE
========================================== */

.cse-services-title {
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;

  padding-right: 20px;
  border-right: 1px solid #d1d1d1;

  display: flex;
  align-items: center;

  white-space: nowrap;
}


/* ==========================================
 SERVICES GRID
========================================== */

.cse-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;

  justify-content: space-between;
  align-items: center;

  gap: 10px 20px;
}


/* ==========================================
 SERVICE ITEM
========================================== */

.cse-service-item {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 15px;
  font-weight: 500;

  min-width: 0;
}

.cse-service-item i {
  font-size: 18px;
  color: #555;

  width: 22px;
  min-width: 22px;

  text-align: center;
}

.cse-service-item svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  fill: currentColor;
}

/* Services Custom Image */

.cse-service-item img.cse-service-image {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* ==========================================
 TABLET
========================================== */

@media (max-width: 992px) {

  .cse-services-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
  }

}


/* ==========================================
 MOBILE
========================================== */

@media (max-width: 768px) {

  .cse-stats-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 30px 10px;
  }

  .cse-stat-item:nth-child(2)::after {
      display: none;
  }

  .cse-services-bar {
      flex-direction: column;
  }

  .cse-services-title {
      border-right: none;
      border-bottom: 1px solid #d1d1d1;

      padding-right: 0;
      padding-bottom: 10px;
  }

  .cse-services-grid {
      grid-template-columns: 1fr;
  }

}


/* ==========================================
 SMALL MOBILE
========================================== */

@media (max-width: 480px) {

  .cse-stat-item {
      padding: 0 8px;
  }

  .cse-stat-icon {
      width: 70px;
      height: 70px;
  }

  .cse-stat-number {
      font-size: 42px;
  }

  .cse-stat-title {
      font-size: 14px;
      letter-spacing: 1.5px;
  }

  .cse-stat-desc {
      font-size: 12px;
  }

}


/* Icon wrapper - ใช้ร่วมกันทั้ง Icon และ Image */
.cse-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

/* Font Awesome / Elementor Icon */
.cse-stat-icon i,
.cse-stat-icon svg {
  color: var(--cse-icon-color);
  font-size: 32px;
  width: 32px;
  height: 32px;
}

/* Uploaded Image */
.cse-stat-icon img.cse-stat-image {
  display: block;
  width: 32px;
  height: 32px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Services Icon */
.cse-service-icon i,
.cse-service-icon svg {
  color: var(--cse-icon-color);
  font-size: 30px;
}

.cse-service-icon img.cse-service-image {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Counter Icon */
.cse-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Elementor Icon */
.cse-stat-icon i {
  font-size: 32px;
}

/* SVG Icon */
.cse-stat-icon svg {
  width: 32px;
  height: 32px;
}

/* Uploaded Image */
.cse-stat-icon img.cse-stat-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}