/* ✅ 1. General Setup */
body {
  font-family: "IBM Plex Sans Thai", sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

/* Typography & Colors */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #032c70;
}

.text-primary-dark { color: #032c70 !important; }
.text-primary-blue { color: #2248b5 !important; }
.bg-light-blue { background-color: #eef4fa !important; }

.text-paragraph {
  font-size: 1.05rem;
  color: #555555;
}

/* Headings */
.main-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.section-heading span {
  color: #062c70c4;
}
.section-heading::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: #2248b5;
  bottom: 0;
  left: 0;
}

.text-center .section-heading::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ✅ 2. UI Elements & Buttons */
.badge-premium {
  display: inline-block;
  background-color: #eef4fa;
  color: #2248b5;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(34, 72, 181, 0.2);
}

.btn-custom-primary {
  background-color: #2248b5;
  color: #ffffff;
  border: 2px solid #2248b5;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-custom-primary:hover {
  background-color: #032c70;
  border-color: #032c70;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 44, 112, 0.2);
}

.btn-custom-outline {
  background-color: transparent;
  color: #032c70;
  border: 2px solid #032c70;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-custom-outline:hover {
  background-color: #032c70;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ✅ 3. Layout Sections */

/* Hero */
.hero-section {
  padding: 80px 0 50px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fa 100%);
}

.lead-text {
  font-size: 1.15rem;
  color: #555555;
  max-width: 800px;
  margin: 0 auto;
}

.hero-image-wrapper img {
  border-radius: 12px;
  border: 4px solid #ffffff;
}
.image_stikker_set{
  width: 100%;
}

/* Value Cards */
.value-card {
  background-color: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.value-card .icon-circle {
  width: 70px;
  height: 70px;
  background-color: #eef4fa;
  color: #2248b5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.value-card:hover .icon-circle {
  background-color: #2248b5;
  color: #ffffff;
}

/* ✅ 4. Auto Slider Portfolio */
.auto-slider-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 20px 0;
  background-color: #ffffff;
}

.auto-slider-track {
  display: flex;
  gap: 20px; /* ช่องว่างระหว่างชุดที่ 1 และชุดที่ 2 */
  width: max-content;
  animation: scrollAuto 35s linear infinite; /* ปรับเวลาให้ช้าลงนิดนึงเพราะรูปเยอะขึ้น */
}

.auto-slider-track:hover,
.auto-slider-track:active {
  animation-play-state: paused;
}

.slide-set {
  display: flex;
  gap: 20px; /* ช่องว่างระหว่างแต่ละรูปภายในชุด */
}

.slide-item {
  width: 280px;
  height: 280px;
  border-radius: 12px;
  background-color: #eef4fa;
  border: 2px dashed #2248b5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2248b5;
  font-weight: bold;
  font-size: 1.1rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.slide-item:hover {
  transform: scale(1.02);
  border: 2px solid #032c70;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
@keyframes scrollAuto {
  0% { transform: translateX(0); }
  /* คำนวณเลื่อนไปทางซ้าย 50% ของ track ทั้งหมด และหักลบช่องว่างเพื่อให้รอยต่อตรงกันพอดีเป๊ะ */
  100% { transform: translateX(calc(-50% - 10px)); }
}

/* Article Lists */
.content-box {
  background-color: #ffffff;
}

.custom-list {
  padding-left: 0;
}

.custom-list li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  color: #555555;
}

.custom-list li::before {
  content: "\eaeb";
  font-family: 'boxicons';
  color: #2248b5;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.1rem;
}

/* Pricing Table */
.table-primary-custom {
  background-color: #032c70;
  color: #ffffff;
}
.table-primary-custom th {
  background-color: #032c70 !important;
  color: #ffffff !important;
  font-weight: 500;
  border-bottom: none;
}
.table-hover tbody tr:hover {
  background-color: #eef4fa;
}

/* Contact Form */
.border-top-custom {
  border-top: 5px solid #2248b5;
}

.form-control {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 10px 15px;
}

.form-control:focus {
  border-color: #2248b5;
  box-shadow: 0 0 0 0.25rem rgba(34, 72, 181, 0.15);
}

/* ✅ 5. Animations & Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(3, 44, 112, 0.1);
}

.hover-lift-slight {
  transition: transform 0.2s ease;
}
.hover-lift-slight:hover {
  transform: translateY(-4px);
}

.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ 6. Footer All */
.FOOTER-ALL {
  background-color: #032c70;
  color: #ffffff;
  padding-top: 60px;
}

.btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2248b5;
  color: #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  background: #032c70;
  transform: translateY(-5px);
  color: #ffffff;
}
.portfolio-slider-section{
        padding-top: 3rem ;
    padding-bottom: 3rem ;
  }
  .text_mobile_v2{
    text-align: center;
  }
  .article-section{
    padding-top: 3rem ;
    padding-bottom: 3rem ;
  }
/* ✅ 7. Responsive Fixes */
@media (max-width: 768px) {
  .article-section{
    padding-top: unset !important ;
    padding-bottom:unset !important ;
  }
  .text_mobile_v2{
    text-align: start;
  }
  .section-heading{
    /* text-align: center !important;
    display: flex;
    justify-content: center; */
  }
  .text_mobile{
        text-align: justify;
  }
  .portfolio-slider-section{
    padding-top: unset !important;
    padding-bottom: unset !important ;
  }
  .hero-section {
    padding: 75px 0 40px;
  }
  
  .main-title {
    font-size: 1.5rem;
  }
  
  .lead-text {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .slide-item {
    width: 200px;
    height: 200px;
  }

  .FOOTER-ALL {
    text-align: center;
  }
  
  .FOOTER-ALL-TEXT-START {
    text-align: center !important;
  }
  
  .FOOTER-ALL-TEXT-START-DIV {
    display: flex;
    justify-content: center;
  }
}

/* ✅ 8. Sticker Types Full Width Banner Showcase */
.sticker-types-section {
  background-color: #ffffff;
}

.banner-showcase {
  width: 100%;
  height: 400px; /* ความสูงของ Banner แต่ละชิ้น */
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 20px;
}

.showcase-content-box {
  background-color: rgba(255, 255, 255, 0.95); /* สีขาวโปร่งแสงนิดๆ ให้อ่านง่าย */
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* ป้าย Badge สำหรับแต่ละกล่อง */
.badge-pill {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
}

.badge-green { background-color: #28a745; color: #fff; }
.badge-blue { background-color: #007bff; color: #fff; }
.badge-yellow { background-color: #ffc107; color: #333; }
.badge-gray { background-color: #6c757d; color: #fff; }

@media (max-width: 768px) {
  .banner-showcase {
    height: 300px; /* ลดความสูงลงในมือถือ */
  }
  .showcase-content-box {
    padding: 20px;
  }
  .btn-custom-primary{
    background-color: #2248b5;
    color: #ffffff;
    height: 44px !important;
    border: 2px solid #2248b5;
    border-radius: 8px;
    padding: 0px 19px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 17px;
    align-items: center;
    display: flex;
  }
  .btn-custom-outline {
      height: 44px;
      border: 2px solid #032c70;
      border-radius: 8px;
      padding: 10px 24px;
      font-weight: 500;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      font-size: 17px;
  }
}

/* ✅ 9. Portfolio Gallery (New) */
.gallery-section {
    background-color: #ffffff;
}

.gallery-item {
    background-color: #eef4fa; /* สีพื้นหลังเผื่อรูปโหลดไม่ทัน */
    aspect-ratio: 1 / 1; /* กำหนดให้เป็นสี่เหลี่ยมจัตุรัสเสมอ */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ทำให้รูปเต็มกรอบโดยไม่เสียสัดส่วน */
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08); /* เอฟเฟกต์ซูมรูปนิดหน่อยตอนเอาเมาส์ชี้ */
}