/* public/modules/frontend/css/frontend.css */
body, p, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, #mainMenu nav>ul>li>a, #footer, button.btn,
.btn:not(.close):not(.mfp-close), a.btn:not([href]):not([tabindex]), .article-name span, #footer p {
  font-family: "Roboto", "Noto Sans Thai", sans-serif;
}

button.btn,
.btn:not(.close):not(.mfp-close),
a.btn:not([href]):not([tabindex]),
.btn:not(.btn-left) {
  background: #000000;
  background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(33, 39, 41, 1) 80%, rgba(41, 49, 51, 1) 100%);
}

.hero-slider .slide-content {
  position: absolute;
  /* top:0; */
  bottom: 20%;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 2;
  align-content: center;
  align-items: center;
}

.hero-slider .slide-content .container {
  padding-right: 40%;
  z-index: 5;
}

.hero-slider .slide-content .container h2 {
  font-size: 2em;
  line-height: 1.5;
  letter-spacing: 0;
}

/* .hero-slider .slide-content .btn{ 
  transition: all .4s ease-in-out;
  margin-right: 20px;
  position: relative;
  z-index: 2;
}
.hero-slider .slide-content .btn:hover{ transform: scale(1.1); } */


/* Empathy Section Styles */
.sect-empathy {
  padding: 80px 0;
  background: #fff;
}

.sect-empathy .cleft {
  padding-right: 120px;
  display: none;
}

.sect-empathy .cright {
  padding-left: 40px;
  margin: auto;
}

/* Left Column Styles */
.empathy-left-image {
  margin-bottom: 40px;
}

.empathy-left-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* Statistics List */
.empathy-stats-list {
  margin-bottom: 30px;
}

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  flex-shrink: 0;
}

.stat-number img {
  width: 53px;
}

.stat-description {
  flex: 1;
  padding-top: 8px;
}

.btn-empathy-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-empathy-learn-more:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 61, 100, 0.3);
  text-decoration: none;
}

.btn-empathy-learn-more i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn-empathy-learn-more:hover i {
  transform: translateX(4px);
}

/* Right Column Styles */
.empathy-right-image {
  width: 100%;
}

.empathy-right-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* solution-item-icon */
.sect-solutions {
  background: #ECEEF4;
  background: linear-gradient(147deg, rgba(249, 249, 252, 1), rgba(202, 205, 219, 1));
}

@media(min-width:1025px){
  .carousel.mbl-slide .flickity-button{ 
    display: none;
    opacity: 0;
  }
}
.mbl-slide-item{ padding: 10px;}

.solution-item h3 {
  font-size: 20px;
  margin-bottom: 5px;
  margin-top: 20px;
}

.solution-item-icon {
  width: 80px;
  height: 80px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s ease-in-out;
}
.mbl-slide{ padding: 0 20px;}
.solution-item-icon img {
  width: 40px !important;
  height: auto !important;
  filter: brightness(0) invert(0);
}

.solution-item:hover .solution-item-icon {
  transform: scale(1.1);
  background: var(--primary-color)
}

.solution-item:hover img {
  width: 50px;
  filter: brightness(0) invert(1);
}


.bottom-bar.text-center {
  margin-left: -15px;
  margin-right: -15px;
}

.bottom-bar.text-center .btn {
  margin: 0 15px;
}

.bottom-bar .btn-left:not(:hover) {
  background: #60768c !important;
  color: #fff;
}

section .btn {
  line-height: 50px !important;
  padding: 0 30px !important;
  font-size: 16px !important;
}

.sect-benefits .cleft {
  padding-right: 20%;
}

.sect-benefits .cright {
  padding-left: 13%;
}

.sect-benefits .bottom-bar .btn.btn-right:not(:hover) {
  background: #89d113;
}

ul.list-benefits li {
  position: relative;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  transition: all .4s ease-in-out;
  left: 0;
}

ul.list-benefits li.active {
  /* left: -20px; */
  /* transform: scale(1.1); */
}

ul.list-benefits {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(51, 51, 51, 0.13);
}

.problem-issue {
  color: var(--red);
  margin-bottom: 10px;
}

.problem-issue strong {
  color: #0a0a0a;
}

.solve-issue {
  position: relative;
  padding-left: 50px;
  min-height: 50px;
}

.solve-issue::before {
  position: absolute;
  content: "\f00c";
  font-family: 'font awesome 5 free';
  /* font-family: "Font Awesome 6 Free"; */
  font-weight: 900;
  width: 40px;
  height: 40px;
  left: 0;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  text-align: center;
}

.w50 {
  width: 50%;
  display: inline-block;
  float: left;
}

.inner-box {
  display: inline-block;
  float: right;
}

/* usecase */
.sect-usecase {
  background: #f5f6f8;
  background: #F5F6F8;
  background: linear-gradient(to top, rgba(245, 246, 248, 1), rgba(213, 213, 219, 1) 71.85%, rgb(255, 255, 255));
}

.use-case-card.caption-inside {
  position: relative;
}

.use-case-card.caption-inside .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  padding: 20px;
}

.use-case-card.caption-inside .card-content h4 a,
.use-case-card.caption-inside .card-content p {
  color: #fff !important;
  margin-bottom: 0;
}

.use-case-card.caption-inside .card-image {
  position: relative;
  min-height: 400px;
}

.use-case-card.caption-inside .card-image::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.19) 100%);
  opacity: 0.6;
  transition: all .4s ease-in-out;
}

.use-case-card.caption-inside:hover .card-image::before {
  opacity: 0.1;
}

.use-case-card.caption-inside .card-image img {
  /* width: auto; */
  min-width: 100%;
  height: 400px;
  object-fit: cover;
}

.arrows-show .flickity-button {
  opacity: 1 !important;
  margin: 0;
  bottom: -85px;
  top: initial;
}

.use-case-carousel .flickity-button {
  width: 50px;
  height: 50px;
  line-height: 50px;
}

.use-case-carousel:hover .flickity-button.previous,
.use-case-carousel .flickity-button.previous {
  left: initial;
  right: 60px
}

.use-case-carousel:hover .flickity-button.next,
.use-case-carousel .flickity-button.next {
  right: 0;
  left: initial;

}

.news-image-box {
  position: relative;
  min-height: 250px;
}

.news-image-box img {
  width: auto;
  min-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.post-thumbnail-list .post-thumbnail-entry>img {
  border-radius: 6px;
}

.post-thumbnail-list .post-thumbnail-entry .post-thumbnail-content a {
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
}

.post-thumbnail-content {
  margin-top: 10px;
}

.post-thumbnail .post-thumbnail-entry .post-thumbnail-content p {
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
}

#footer {
  background-image: url(../images/bg-footer.jpg) !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#footer .logo-footer {
  margin-top: -40px;
}

#footer a:hover,
#footer .list-links li a:hover {
  color: #60a4d9 !important;
}

/* Button Enhanced Animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  h2, .h2{ font-size: 2.2em;}
  .carousel.mbl-slide .flickity-button.previous, 
  .carousel.mbl-slide .flickity-button.previous:hover{
    left: -40px !important;
  }
  .carousel.mbl-slide .flickity-button.next, 
  .carousel.mbl-slide .flickity-button.next:hover{
    right: -40px !important;
  }
  
  /* service page */
  .introduction-section .cleft,
  .introduction-section .cright{
    width: 100%;
    flex: none;
    max-width: initial;
  }
  .introduction-section .cright{ margin-top: 30px;}
  .introduction-section .cright ul{
    text-align: left;
  }
  .service-new-card{ text-align: left;}

}
@media (max-width: 991px) {
  .sect-empathy .row {
    gap: 30px;
  }

  .empathy-left-image img {
    max-width: 100%;
  }

  .stat-number {
    font-size: 2rem;
    min-width: 150px;
  }

  .stat-description {
    font-size: 0.95rem;
  }
  .stat-item {
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
    width: 50%;
    display: inline-block;
    float: left;
    padding-right: 40px !important;
    padding-bottom: 10px !important;
    border: none;
  }

}

@media (max-width: 768px) {
  .sect-empathy {
    padding: 0px 0;
  }
  .sect-empathy .row {
    flex-direction: column;
    gap: 40px;
  }
  .empathy-left-image {
    margin-bottom: 30px;
  }
  .sect-solutions .col-md-3{
    width: 50%;
    flex: none;
    margin-bottom: 20px;
  }
  .sect-solutions .bottom-bar{
    width: 100%;
  }
  .stat-number {
    font-size: 1.8rem;
    min-width: auto;
  }

  .stat-description {
    padding-top: 0;
  }

  .empathy-cta {
    margin-top: 20px;
  }

  .btn-empathy-learn-more {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
}
@media (max-width: 575px){
  .solution-item-icon{ margin: auto;}
  .mbl-slide-item{ text-align: center;}
  .carousel.mbl-slide .flickity-button.previous, 
  .carousel.mbl-slide .flickity-button.previous:hover{
    left: -10px !important;
  }
  .carousel.mbl-slide .flickity-button.next, 
  .carousel.mbl-slide .flickity-button.next:hover{
    right: -10px !important;
  }
  .sect-solutions .headbar h5,
  .sect-benefits h5{ 
    font-size: 1.78571429em;
  }
  .sect-benefits h5,
  .sect-benefits-cta,
  .sect-usecase .headbar h2{ 
    text-align: center;
  }
  .w50{ width: 100%;}
  .fix-use-case-bottom-bar{
    margin: auto;
    margin-top: 30px;
  }
  .arrows-show .flickity-button{ bottom: -70px;}
  
}

@media (max-width: 480px) {
  .news-image-box img {
    width: 100% !important;
  }
  #scrollTop{ bottom: 56px !important;}
  
  .arrows-show .flickity-button{
    top: 0;
    margin: auto 0 !important;
  }

  .bottom-bar .btn-left:not(:hover) {
    /* line-height: 50px !important; */
    background: #60768c !important;
    color: #fff;
    padding: 0 20px !important;
    height: auto;
  }

  .bottom-bar.text-center {
    margin-left: 0px;
    margin-right: 0px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  a.btn.btn-right {
    line-height: 40px !important;
    height: 40px !important;
  }
  .hero-slider .swiper-pagination {
    bottom: 25px;
    z-index: 20;
    display: none;
}
  .stat-description {
    font-size: 0.9rem;
  }

  .bottom-bar.text-center {
    margin-left: 0px !important;
    margin-right: 0px !important;
  }

  .bottom-bar.text-center .btn {
    margin: 0 0px 15px 0px !important;
  }

  .carousel .flickity-button.previous, .carousel .flickity-button.previous:hover {
    left: 0 !important;
    opacity: 1;
  }
}