body {
  font-family: 'Prompt', sans-serif;
  margin: 0;
  background: #fff;
  color: #222;
}
.topbar {
  background: #002366;
  color: #fff;
  font-size: 0.95rem;
  padding: 6px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding-right: 40px;
}
.topbar span, .topbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 16px;
}
.navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 90px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 0 0 32px 32px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #003366;
  letter-spacing: 2px;
}
.logo-sub {
  font-size: 0.9rem;
  color: #888;
  margin-left: 8px;
  letter-spacing: 1px;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a, .dropdown-btn {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  background: none;
  border: none;
  cursor: pointer;
  transition: border 0.2s, color 0.2s;
  position: relative;
}
nav a.active, nav a:hover, .dropdown-btn:hover {
  color: #002366;
  border-bottom: 2px solid #002366;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 100;
  border-radius: 12px;
  top: 36px;
  left: 0;
  padding: 8px 0;
}
.dropdown-content a {
  color: #003366;
  padding: 10px 24px;
  text-decoration: none;
  display: block;
  border-bottom: none;
  font-size: 1rem;
  transition: background 0.2s;
}
.dropdown-content a:hover {
  background: #f0f4fa;
  color: #002366;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.header-btn {
  background: #002366;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: bold;
  margin-left: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.header-btn:hover {
  background: #ffcc00;
  color: #002366;
}
/* HERO SLIDER */
.hero-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 48px 0 0 0;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}
.slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.98);
  transition: 
    opacity 0.7s cubic-bezier(.4,0,.2,1),
    transform 0.7s cubic-bezier(.4,0,.2,1);
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  margin: auto;
  padding: 0 32px;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  position: relative;
  z-index: 2;
}
.slide-content {
  flex: 1;
  min-width: 320px;
  max-width: 520px;
  text-align: left;
  z-index: 2;
}
.slide-title {
  font-size: 2.1rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.2;
}
.slide-desc {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 28px;
}
.slide-btn {
  background: #0033cc;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.slide-btn:hover {
  background: #ffcc00;
  color: #002366;
}
.slide-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  max-width: 480px;
}
.slide-image img {
  width: 380px;
  height: 260px;
  max-width: 100%;
  max-height: 320px;
  min-width: 200px;
  min-height: 120px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  background: #f6f8fa;
  display: block;
  margin: 0 auto;
}
.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 2px solid #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.slider-dot.active {
  background: #0033cc;
}
/* เพิ่มปุ่มภาษา */
.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 24px;
}
.lang-btn {
  background: #f0f4fa;
  color: #003366;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
}
.lang-btn.active, .lang-btn:hover {
  background: #003366;
  color: #fff;
}

/* ปรับขนาดและจัดตำแหน่งไอคอน */
.logo i,
.logo-sub i,
nav a i,
.dropdown-btn i,
.dropdown-content a i,
.header-btn i,
.slide-title i,
.slide-btn i,
.lang-btn i {
  font-size: 1.1em;
  min-width: 1.3em;
  text-align: center;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ให้ข้อความและไอคอนอยู่ตรงกลางแนวตั้ง */
.logo, .logo-area, nav a, .dropdown-btn, .dropdown-content a, .header-btn, .slide-title, .slide-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* HERO SLIDER: ปรับ animation ให้สมูท */
.hero-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 48px 0 0 0;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}
.slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.98);
  transition: 
    opacity 0.7s cubic-bezier(.4,0,.2,1),
    transform 0.7s cubic-bezier(.4,0,.2,1);
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  margin: auto;
  padding: 0 32px;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  position: relative;
  z-index: 2;
}

/* ปรับขนาดไอคอนในปุ่มและสไลด์ */
.slide-title i, .slide-btn i {
  font-size: 1.2em;
  color: #003366;
}
.slide-btn i {
  color: #fff;
}

/* ปรับขนาดไอคอนในเมนู */
nav a i, .dropdown-btn i, .dropdown-content a i {
  font-size: 1em;
  color: #003366;
}

/* ปรับขนาดไอคอนภาษา */
.lang-btn i {
  font-size: 1em;
}

/* ปรับขนาดรูปใน slide-image */
.slide-image img {
  width: 380px;
  height: 260px;
  max-width: 100%;
  max-height: 320px;
  min-width: 200px;
  min-height: 120px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  background: #f6f8fa;
  display: block;
  margin: 0 auto;
}

/* CARD SECTION */
.card-row {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin: 48px 0;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}
.card-box {
  display: flex;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  align-items: stretch;
  min-height: 320px;
  transition: box-shadow 0.2s;
  margin-bottom: 0;
}
.card-box:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.card-box.reverse {
  flex-direction: row-reverse;
}
.card-content {
  flex: 1 1 0;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.card-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #1a2a3a;
  line-height: 1.2;
}
.card-content p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 28px;
  line-height: 1.6;
}
.card-btn {
  display: inline-block;
  background: #0094d8;
  color: #fff;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.card-btn:hover {
  background: #007bb5;
}
.card-img {
  flex: 1 1 0;
  min-width: 320px;
  max-width: 50%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #f6f8fa;
}
.card-img img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* เพิ่มเติมสำหรับ solutions-section */
.solutions-section {
  background: #fafbfc;
}
.solution-card {
  background: #f6f8fa;
  border: none;
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.solution-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  transform: translateY(-4px) scale(1.02);
}
.solution-icon {
  font-size: 2.5rem;
  color: #2056d6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #e3eaff;
  border-radius: 16px;
}

/* INSIGHT SECTION */
.insight-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0 0 18px 0;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.insight-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  transform: translateY(-2px) scale(1.01);
}
.insight-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}
@media (max-width: 767px) {
  .insight-card img {
    height: 140px;
  }
}
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 0 10px;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 10px;
  }
  .slide {
    flex-direction: column;
    padding: 0 8px;
  }
  .slide-content, .slide-image {
    max-width: 100%;
    min-width: 0;
  }
  .slide-image img {
    max-width: 95vw;
  }
  .card-row {
    flex-direction: column;
    align-items: center;
  }
  .card-box {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 1024px) {
  .card-content {
    padding: 32px 20px;
  }
  .card-img {
    min-width: 220px;
  }
}
@media (max-width: 800px) {
  .card-box, .card-box.reverse {
    flex-direction: column;
    min-height: unset;
  }
  .card-img, .card-content {
    max-width: 100%;
    min-width: 0;
    padding: 20px 10px;
  }
  .card-img {
    height: 220px;
    min-width: 0;
  }
  .card-img img {
    min-height: 180px;
    border-radius: 18px 18px 0 0;
  }
}
@media (max-width: 500px) {
  .card-row {
    gap: 28px;
    padding: 0 4px;
  }
  .card-content {
    padding: 16px 6px;
  }
  .card-img {
    height: 140px;
  }
  .card-img img {
    min-height: 100px;
    border-radius: 12px 12px 0 0;
  }
}
@media (max-width: 991px) {
  .card-box, .card-box.reverse {
    flex-direction: column;
    min-height: unset;
  }
  .card-img {
    height: 220px;
  }
}