/* ECCUBE Website — Cosmic light (hero มืด → เนื้อหาสว่าง) */
/* กันเนื้อหาหายเมื่อโหลด aos.css แต่ aos.js ยังไม่รัน */
body.ec-website [data-aos]:not(.aos-animate) {
  opacity: 1;
  transform: none;
}

body.ec-website {
  --ec-surface: #ffffff;
  --ec-surface-2: #f0f5fc;
  --ec-surface-3: #e8f0fa;
  --ec-text: #1a2744;
  --ec-text-muted: #5a6b8a;
  --ec-border: rgba(26, 39, 68, 0.1);
  --ec-shadow: 0 8px 32px rgba(26, 39, 68, 0.08);
  --ec-shadow-hover: 0 16px 48px rgba(26, 39, 68, 0.12);
  --ec-accent: #243a5e;
  --ec-accent-dark: #1a2744;
  --ec-cta: linear-gradient(135deg, #1e3354 0%, #3d5a8a 100%);
  --ec-cta-hover: linear-gradient(135deg, #243a5e 0%, #4a6f9e 100%);
  background: var(--ec-surface-2);
  color: var(--ec-text);
}

body.ec-website .ec-zone-light {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fc 50%, #f4f8ff 100%);
}

body.ec-website .ec-zone-white {
  background: var(--ec-surface);
}

body.ec-website .section,
body.ec-website section.ec-sec {
  background: transparent;
}

body.ec-website .ec-sec {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
}

/* Section header */
.ec-sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.ec-sec-head h2 {
  color: var(--ec-text);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.ec-sec-head .sub-title {
  color: var(--ec-text-muted);
  margin: 0;
}

.ec-sec-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3d7ab8;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  background: linear-gradient(90deg, rgba(110, 200, 255, 0.2), rgba(184, 156, 255, 0.15));
  border: 1px solid var(--ec-border);
}

/* Hero — กันชิป/รูปล้นทับ section ถัดไป */
body.ec-website .ec-web-hero {
  overflow: hidden;
  isolation: isolate;
}

/* Hero (uses .hero-section--space from style.css) */
.ec-web-hero .hero-space-price {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  background: var(--ec-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ec-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #c8daf8;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.ec-brand-pill strong {
  color: #fff;
  font-weight: 700;
}

.ec-hero-actions .btn-ec-primary {
  background: var(--ec-gradient);
  border: none;
  color: #0d1528;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(110, 200, 255, 0.4);
}

.ec-hero-actions .btn-ec-primary:hover {
  background: var(--ec-gradient-hover);
  color: #0d1528;
  transform: translateY(-2px);
}

.ec-hero-actions .btn-ec-soft {
  background: #fff;
  color: var(--ec-text);
  border: none;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.ec-hero-actions .btn-ec-soft:hover {
  background: #f0f5ff;
  color: var(--ec-text);
}

.ec-hero-actions .btn-ec-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #f0f5ff;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 0.5rem;
}

.ec-hero-actions .btn-ec-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ec-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ec-trust-chips span {
  font-size: 0.78rem;
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  padding: 0.35rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ec-trust-chips i {
  color: var(--ec-primary);
}

/* Stats bar */
.ec-stats-bar {
  background: var(--ec-surface);
  border-bottom: 1px solid var(--ec-border);
  box-shadow: var(--ec-shadow);
  padding: 1.25rem 0;
  margin-top: -1px;
}

.ec-stat-item {
  text-align: center;
  padding: 0.5rem;
}

.ec-stat-item .ec-stat-val {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  color: #243a5e;
}

.ec-stat-item .ec-stat-val .ec-count {
  background: linear-gradient(90deg, #3d7ab8 0%, #6ec8ff 48%, #9b6dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #243a5e;
}

.ec-stat-item .ec-stat-lbl {
  font-size: 0.8rem;
  color: var(--ec-text-muted);
  margin: 0.2rem 0 0;
}

.ec-stat-val .ec-count {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 0.5em;
  transition: transform 0.35s ease;
}

.ec-stats-animated .ec-count.ec-count-done {
  transform: scale(1.02);
}

.ec-stat-val--range {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
}

.ec-stat-val--range .ec-stat-sep {
  font-weight: 700;
  background: linear-gradient(90deg, #3d7ab8 0%, #6ec8ff 48%, #9b6dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #6ec8ff;
  opacity: 0.9;
}

/* Quick nav */
.ec-quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0 0;
}

.ec-quick-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ec-text);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  transition: all 0.2s;
}

.ec-quick-nav a:hover {
  background: var(--ec-gradient);
  color: #0d1528;
  border-color: transparent;
}

/* About panel */
.ec-about-panel {
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--ec-surface);
  box-shadow: var(--ec-shadow);
  border: 1px solid var(--ec-border);
}

.ec-about-panel__copy {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.ec-about-panel__copy h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--ec-text);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.ec-about-panel__copy > p {
  color: var(--ec-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ec-about-feats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin: 1.25rem 0 1.5rem;
}

@media (min-width: 576px) {
  .ec-about-feats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ec-about-feat {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: var(--ec-surface-2);
  border: 1px solid var(--ec-border);
}

.ec-about-feat__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 0.65rem;
  background: var(--ec-gradient);
  color: #0d1528;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ec-about-feat b {
  display: block;
  font-size: 0.9rem;
  color: var(--ec-text);
  margin-bottom: 0.15rem;
}

.ec-about-feat p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ec-text-muted);
  line-height: 1.45;
}

.ec-about-note {
  font-size: 0.85rem;
  color: var(--ec-text-muted);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--ec-surface-2);
  border-left: 3px solid #7c6cf0;
}

.ec-about-panel__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(160deg, #0d1528 0%, #1a2744 55%, #243a5e 100%);
}

.ec-about-panel__visual img {
  width: 100%;
  max-width: 420px;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.35));
}

@media (max-width: 991.98px) {
  .ec-about-panel__visual {
    min-height: 220px;
  }
}

/* หน้าโปรไฟล์ — showcase บริการหลัก */
.ec-profile-showcase {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f8 50%, #f4f7fb 100%);
  overflow: hidden;
}

.ec-profile-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(36, 58, 94, 0.06), transparent 55%),
    radial-gradient(circle at 100% 50%, rgba(36, 58, 94, 0.04), transparent 40%);
  pointer-events: none;
}

.ec-profile-showcase .container {
  position: relative;
  z-index: 1;
}

.ec-showcase-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.ec-showcase-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ec-cta);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 0.85rem;
}

.ec-showcase-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--ec-accent-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.ec-showcase-head h2 span {
  display: block;
  font-weight: 700;
  color: var(--ec-accent);
}

.ec-showcase-head p {
  margin: 0;
  font-size: 1rem;
  color: var(--ec-text-muted);
  line-height: 1.7;
}

.ec-pillar-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 992px) {
  .ec-pillar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: end;
  }

  .ec-pillar-card.is-featured {
    transform: translateY(-10px);
  }

  .ec-pillar-card.is-featured:hover {
    transform: translateY(-14px);
  }
}

.ec-pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ec-surface);
  border-radius: 1.25rem;
  border: 1px solid rgba(26, 39, 68, 0.08);
  box-shadow: 0 4px 24px rgba(26, 39, 68, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ec-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(26, 39, 68, 0.12);
}

.ec-pillar-card.is-featured {
  border-color: rgba(36, 58, 94, 0.22);
  box-shadow: 0 12px 40px rgba(26, 39, 68, 0.14);
}

.ec-pillar-card.is-featured::after {
  content: "แนะนำ";
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--ec-cta);
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
}

.ec-pillar-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 0.75rem;
  background:
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(110, 140, 200, 0.25), transparent 60%),
    linear-gradient(165deg, #0f1a2e 0%, #1a2744 45%, #243a5e 100%);
}

.ec-pillar-card__num {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  z-index: 2;
}

.ec-pillar-card__media img {
  width: 100%;
  max-width: 260px;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
  transition: transform 0.35s ease;
}

.ec-pillar-card:hover .ec-pillar-card__media img {
  transform: scale(1.04) translateY(-4px);
}

.ec-pillar-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.35rem 1.5rem;
  min-height: 220px;
}

.ec-pillar-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-accent);
  margin-bottom: 0.4rem;
}

.ec-pillar-card__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.ec-pillar-card__body h3 a {
  color: var(--ec-accent-dark);
  text-decoration: none;
}

.ec-pillar-card__body h3 a:hover {
  color: var(--ec-accent);
}

.ec-pillar-card__lead {
  font-size: 0.88rem;
  color: var(--ec-text-muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.ec-pillar-card__points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  flex: 1;
}

.ec-pillar-card__points li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--ec-text);
  padding: 0.28rem 0;
}

.ec-pillar-card__points li i {
  color: #2e9e6a;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ec-pillar-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--ec-cta);
  text-decoration: none;
  margin-top: auto;
  transition: background 0.2s, transform 0.2s;
}

.ec-pillar-card__cta:hover {
  background: var(--ec-cta-hover);
  color: #fff;
  transform: translateY(-1px);
}

.ec-pillar-card__cta i {
  font-size: 1rem;
  transition: transform 0.2s;
}

.ec-pillar-card__cta:hover i {
  transform: translateX(3px);
}

/* แถบเมนูลัด */
.ec-anchor-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding: 0.65rem;
  border-radius: 1rem;
  background: var(--ec-accent-dark);
  box-shadow: 0 8px 32px rgba(26, 39, 68, 0.2);
}

@media (min-width: 768px) {
  .ec-anchor-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .ec-anchor-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}

.ec-anchor-strip a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background 0.2s, color 0.2s;
}

.ec-anchor-strip a span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.ec-anchor-strip a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ec-anchor-strip__cta {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.ec-anchor-strip__cta:hover {
  background: var(--ec-cta-hover) !important;
}

/* บทความ SEO — หน้าโปรไฟล์บริษัท */
.ec-profile-article {
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--ec-shadow);
}

.ec-profile-article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ec-accent-dark);
  margin: 1.25rem 0 0.65rem;
}

.ec-profile-article h3:first-of-type {
  margin-top: 0;
}

.ec-profile-article p {
  color: var(--ec-text-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.ec-profile-article a {
  color: var(--ec-accent);
  font-weight: 600;
  text-decoration: none;
}

.ec-profile-article a:hover {
  text-decoration: underline;
}

/* Services grid — การ์ดขนาดเท่ากันทุกใบ */
.ec-bento {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
}

@media (min-width: 576px) {
  .ec-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .ec-bento {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ec-service-card {
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 39, 68, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ec-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(26, 39, 68, 0.1);
  border-color: rgba(36, 58, 94, 0.2);
}

.ec-service-card.is-primary {
  border-color: rgba(36, 58, 94, 0.22);
  box-shadow: 0 8px 28px rgba(26, 39, 68, 0.1);
}

.ec-service-card.is-primary::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--ec-cta);
}

.ec-service-card .ec-svc-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(160deg, #0f1a2e 0%, #1a2744 55%, #243a5e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-service-card .ec-svc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.35s ease;
}

.ec-service-card:hover .ec-svc-img img {
  transform: scale(1.02);
}

.ec-service-card .ec-svc-body {
  padding: 1.15rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ec-service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.ec-service-card h3 a {
  color: var(--ec-accent-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.ec-service-card h3 a:hover {
  color: var(--ec-accent);
}

.ec-service-card p {
  color: var(--ec-text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.ec-service-card .ec-svc-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ec-accent);
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  background: rgba(36, 58, 94, 0.08);
}

.ec-svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.ec-svc-actions .btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
  text-align: center;
  white-space: nowrap;
}

.btn-ec-svc-outline {
  border: 1px solid rgba(36, 58, 94, 0.35);
  color: var(--ec-accent-dark);
  background: var(--ec-surface);
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-ec-svc-outline:hover {
  background: rgba(36, 58, 94, 0.06);
  border-color: var(--ec-accent);
  color: var(--ec-accent-dark);
}

.btn-ec-svc-cta {
  border: none;
  background: var(--ec-cta);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(26, 39, 68, 0.2);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-ec-svc-cta:hover {
  background: var(--ec-cta-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 39, 68, 0.28);
}

.btn-ec-sm {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.btn-ec-line {
  border: 1px solid var(--ec-border);
  color: var(--ec-text);
  background: var(--ec-surface);
}

.btn-ec-line:hover {
  border-color: rgba(36, 58, 94, 0.35);
  background: rgba(36, 58, 94, 0.06);
  color: var(--ec-accent-dark);
}

/* Portfolio */
.ec-port-card {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--ec-border);
  aspect-ratio: 4/3;
  box-shadow: var(--ec-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
}

.ec-port-card:hover {
  transform: scale(1.02);
  box-shadow: var(--ec-shadow-hover);
}

.ec-port-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Timeline process */
.ec-timeline {
  display: grid;
  gap: 1rem;
}

@media (min-width: 992px) {
  .ec-timeline {
    grid-template-columns: repeat(4, 1fr);
    position: relative;
  }

  .ec-timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: linear-gradient(90deg, var(--ec-primary), var(--ec-primary-end));
    border-radius: 2px;
    z-index: 0;
  }
}

.ec-timeline-step {
  position: relative;
  z-index: 1;
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: 1rem;
  padding: 1.5rem 1.15rem;
  text-align: center;
  box-shadow: var(--ec-shadow);
}

.ec-timeline-step .ec-step-n {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--ec-gradient);
  color: #0d1528;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(110, 200, 255, 0.35);
}

.ec-timeline-step b {
  display: block;
  color: var(--ec-text);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.ec-timeline-step p {
  font-size: 0.8rem;
  color: var(--ec-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Pricing */
.ec-pricing-card {
  height: 100%;
  background: var(--ec-surface);
  border-radius: 1rem;
  border: 1px solid var(--ec-border);
  box-shadow: var(--ec-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ec-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ec-shadow-hover);
}

.ec-pricing-card.is-featured {
  border-color: rgba(184, 156, 255, 0.6);
  box-shadow: 0 12px 40px rgba(110, 200, 255, 0.2);
}

@media (min-width: 992px) {
  .ec-pricing-card.is-featured {
    transform: scale(1.03);
  }

  .ec-pricing-card.is-featured:hover {
    transform: scale(1.05) translateY(-4px);
  }
}

.ec-pricing-top {
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(110, 200, 255, 0.12), rgba(184, 156, 255, 0.1));
  border-bottom: 1px solid var(--ec-border);
}

.ec-pricing-card.is-featured .ec-pricing-top {
  background: var(--ec-gradient);
}

.ec-pricing-card.is-featured .ec-pricing-top h3,
.ec-pricing-card.is-featured .ec-pricing-top .ec-price-sub {
  color: #0d1528;
}

.ec-pricing-card.is-featured .ec-price-val {
  -webkit-text-fill-color: #0d1528;
  color: #0d1528;
}

.ec-pricing-top h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--ec-text);
}

.ec-price-sub {
  font-size: 0.78rem;
  color: var(--ec-text-muted);
  margin-bottom: 0.5rem;
}

.ec-price-val {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--ec-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ec-price-val small {
  font-size: 0.85rem;
  font-weight: 500;
}

.ec-pricing-body {
  padding: 1.25rem;
  flex: 1;
}

.ec-pricing-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ec-pricing-body li {
  font-size: 0.85rem;
  color: var(--ec-text-muted);
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
}

.ec-pricing-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2ecc71;
  font-weight: 700;
}

.ec-pricing-foot {
  padding: 0 1.25rem 1.5rem;
}

.ec-badge-rec {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  color: #0d1528;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Why cards */
.ec-why-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  height: 100%;
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: 1rem;
  box-shadow: var(--ec-shadow);
  transition: box-shadow 0.2s;
}

.ec-why-card:hover {
  box-shadow: var(--ec-shadow-hover);
}

.ec-why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(110, 200, 255, 0.25), rgba(184, 156, 255, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #3d7ab8;
}

.ec-why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ec-text);
  margin-bottom: 0.4rem;
}

.ec-why-card p {
  font-size: 0.85rem;
  color: var(--ec-text-muted);
  margin: 0;
}

/* FAQ zone */
.ec-faq-zone {
  background: linear-gradient(160deg, #eef4fc 0%, #f8fbff 40%, #f0ebff 100%);
  position: relative;
  overflow: hidden;
}

.ec-faq-zone::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 200, 255, 0.2), transparent 70%);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

.ec-faq-aside {
  position: sticky;
  top: 100px;
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--ec-shadow);
}

.ec-faq-aside-title {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--ec-text);
  line-height: 1.3;
  margin: 0.5rem 0 0.75rem;
}

.ec-faq-aside-lead {
  color: var(--ec-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.ec-faq-aside-visual {
  text-align: center;
  margin: 1rem 0;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(110, 200, 255, 0.12), rgba(184, 156, 255, 0.1));
  border-radius: 1rem;
}

.ec-faq-aside-visual img {
  max-width: 160px;
  animation: ec-faq-float 4s ease-in-out infinite;
}

@keyframes ec-faq-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ec-faq-quickfacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ec-faq-quickfacts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ec-text);
  padding: 0.35rem 0;
}

.ec-faq-quickfacts i {
  color: #2ecc71;
  font-size: 1rem;
}

.ec-faq-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ec-faq-card {
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--ec-shadow);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.ec-faq-card:has(.ec-faq-trigger:not(.collapsed)) {
  border-color: rgba(110, 200, 255, 0.55);
  box-shadow: var(--ec-shadow-hover);
}

.ec-faq-card-title {
  margin: 0;
}

.ec-faq-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border: none;
  background: transparent;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ec-text);
  transition: background 0.2s;
}

.ec-faq-trigger:not(.collapsed) {
  background: linear-gradient(90deg, rgba(110, 200, 255, 0.14), rgba(184, 156, 255, 0.08));
  color: #2d5a8a;
}

.ec-faq-trigger:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(110, 200, 255, 0.45);
}

.ec-faq-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #3d7ab8;
  opacity: 0.85;
  min-width: 1.5rem;
}

.ec-faq-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(110, 200, 255, 0.2), rgba(184, 156, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3d7ab8;
  font-size: 1.15rem;
}

.ec-faq-trigger:not(.collapsed) .ec-faq-icon {
  background: var(--ec-gradient);
  color: #0d1528;
}

.ec-faq-chevron {
  transition: transform 0.25s;
  color: #3d7ab8;
  font-size: 1.1rem;
}

.ec-faq-trigger:not(.collapsed) .ec-faq-chevron {
  transform: rotate(180deg);
}

.ec-faq-answer {
  padding: 0 1.25rem 1.15rem 4.6rem;
  border-top: 1px dashed rgba(110, 200, 255, 0.25);
}

.ec-faq-answer p {
  margin: 0.85rem 0 0;
  color: var(--ec-text-muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

.ec-faq-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #3d7ab8;
  text-decoration: none;
}

.ec-faq-inline-link:hover {
  color: #1a2744;
}

@media (max-width: 991.98px) {
  .ec-faq-aside {
    position: static;
  }

  .ec-faq-answer {
    padding-left: 1.25rem;
  }
}

/* SEO hub */
.ec-seo-hub-panel {
  border-radius: 1.25rem;
  border: 1px solid var(--ec-border);
  background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%);
  box-shadow: var(--ec-shadow);
  padding: clamp(1.5rem, 3vw, 2rem);
  overflow: hidden;
  position: relative;
}

.ec-seo-hub-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 60%, rgba(184, 156, 255, 0.06));
}

.ec-seo-hub-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.ec-seo-hub-intro h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--ec-text);
  margin: 0.35rem 0 0.5rem;
}

.ec-seo-hub-intro p {
  margin: 0;
  color: var(--ec-text-muted);
  font-size: 0.9rem;
  max-width: 520px;
  line-height: 1.65;
}

.ec-seo-hub-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.ec-seo-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3d7ab8;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  background: rgba(110, 200, 255, 0.12);
}

.ec-seo-toggle-btn .ec-seo-toggle-close {
  display: none;
}

.ec-seo-toggle-btn:not(.collapsed) .ec-seo-toggle-open {
  display: none;
}

.ec-seo-toggle-btn:not(.collapsed) .ec-seo-toggle-close {
  display: inline;
}

.ec-seo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.ec-seo-preview-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ec-text);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}

.ec-seo-preview-pill:hover {
  background: var(--ec-gradient);
  color: #0d1528;
  border-color: transparent;
}

.ec-seo-preview-more {
  border: 1px dashed #3d7ab8;
  background: transparent;
  color: #3d7ab8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  cursor: pointer;
}

.ec-seo-links-body {
  position: relative;
  z-index: 1;
}

.ec-seo-pill-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ec-seo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ec-text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.65rem;
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  transition: all 0.2s;
  line-height: 1.35;
}

.ec-seo-pill i {
  font-size: 0.9rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.ec-seo-pill:hover {
  background: var(--ec-gradient);
  color: #0d1528;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(110, 200, 255, 0.25);
}

.ec-seo-pill:hover i {
  opacity: 1;
}

.ec-seo-note {
  font-size: 0.82rem;
  color: var(--ec-text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--ec-border);
}

.ec-seo-note a {
  font-weight: 700;
  color: #3d7ab8;
  text-decoration: none;
}

.ec-seo-note a:hover {
  text-decoration: underline;
}

/* CTA band */
.ec-cta-band {
  background: linear-gradient(120deg, #6ec8ff 0%, #8ab4ff 40%, #b89cff 100%);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  position: relative;
  overflow: hidden;
}

.ec-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ec/1.png") no-repeat 95% 50% / 180px auto;
  opacity: 0.15;
  pointer-events: none;
}

.ec-cta-band .container {
  position: relative;
  z-index: 1;
}

.ec-cta-band h2 {
  color: #0d1528;
  font-weight: 800;
}

.ec-cta-band p {
  color: rgba(13, 21, 40, 0.75);
}

.ec-cta-band .btn-ec-dark {
  background: #0d1528;
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
}

.ec-cta-band .btn-ec-dark:hover {
  background: #1a2744;
  color: #fff;
}

.ec-cta-band .btn-ec-white {
  background: #fff;
  color: #0d1528;
  font-weight: 700;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
}

/* Blog in page */
body.ec-website .blog-section {
  background: var(--ec-surface-2);
}

body.ec-website .blog-section .section-header h2 {
  color: var(--ec-text);
}

body.ec-website .blog-item {
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: 1rem;
  box-shadow: var(--ec-shadow);
}

body.ec-website .blog-content h3 a {
  color: var(--ec-text);
}

body.ec-website .provide-section {
  background: var(--ec-surface-2);
}

/* Shared buttons (ทั้งหน้า) */
body.ec-website .btn-ec-primary {
  background: var(--ec-gradient);
  border: none;
  color: #0d1528;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(110, 200, 255, 0.3);
}

body.ec-website .btn-ec-primary:hover {
  background: var(--ec-gradient-hover);
  color: #0d1528;
  transform: translateY(-1px);
}

body.ec-website .btn-ec-line {
  border: 1px solid var(--ec-border);
  color: var(--ec-text);
  background: var(--ec-surface);
  font-weight: 600;
}

body.ec-website .btn-ec-line:hover {
  background: var(--ec-gradient);
  color: #0d1528;
  border-color: transparent;
}

@media (max-width: 991.98px) {
  .ec-hero-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .ec-hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}
