/* AESCON editorial system, inspired by the proven SA Logistics article rhythm
   while retaining AESCON typography, purple, lavender and orange accents. */
body.aescon-editorial-post,
body.aescon-editorial-index {
  --aes-editorial-reading: 760px;
  --aes-editorial-heading: 1120px;
  --aes-editorial-outer: 1160px;
  --aes-editorial-purple: var(--aes-purple, #482f92);
  --aes-editorial-purple-deep: var(--aes-purple-deep, #34216f);
  --aes-editorial-orange: #ed781d;
  --aes-editorial-ink: var(--aes-ink, #211b2d);
  --aes-editorial-body: #514b5d;
  --aes-editorial-line: #ded8e8;
  --aes-editorial-soft: #f5f2fa;
  --aes-editorial-font: "Noto Sans Thai", Tahoma, Arial, sans-serif;
}

body.aescon-editorial-post .aescon-site-main,
body.aescon-editorial-index .aescon-site-main {
  overflow: clip;
  background: #fff;
}

body.aescon-editorial-post .elementor,
body.aescon-editorial-index .elementor,
body.aescon-editorial-post .elementor *,
body.aescon-editorial-index .elementor * {
  box-sizing: border-box;
}

body.aescon-editorial-post .aescon-editorial-html-field,
body.aescon-editorial-index .aescon-editorial-html-field {
  width: 100%;
}

body.aescon-editorial-post .elementor {
  padding: 72px 0 96px;
  color: var(--aes-editorial-body);
  font-family: var(--aes-editorial-font);
  font-size: 16px;
  line-height: 1.88;
}

body.aescon-editorial-post .elementor > .e-con.aescon-editorial-block,
body.aescon-editorial-index .elementor > .e-con.aescon-editorial-index-section {
  --padding-top: 0;
  --padding-right: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  width: min(var(--aes-editorial-reading), calc(100% - 48px)) !important;
  max-width: var(--aes-editorial-reading) !important;
  margin-inline: auto !important;
  padding: 0 !important;
  gap: 0;
}

body.aescon-editorial-post .elementor > .e-con.aescon-editorial-head {
  width: min(var(--aes-editorial-heading), calc(100% - 48px)) !important;
  max-width: var(--aes-editorial-heading) !important;
  margin-bottom: 28px !important;
}

body.aescon-editorial-post .aescon-editorial-head h1 {
  max-width: 100%;
  margin: 0;
  color: var(--aes-editorial-ink);
  font-family: var(--aes-editorial-font);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.018em;
  text-align: center;
  text-wrap: balance;
}

body.aescon-editorial-post .aescon-editorial-lead {
  color: #352e43;
  font-size: 18px;
  line-height: 1.95;
}

body.aescon-editorial-post .aescon-editorial-lead p,
body.aescon-editorial-post .aescon-editorial-copy p {
  margin: 0;
}

body.aescon-editorial-post .aescon-editorial-lead p + p,
body.aescon-editorial-post .aescon-editorial-copy p + p {
  margin-top: 20px;
}

body.aescon-editorial-post .elementor > .e-con.aescon-editorial-media {
  margin-top: 36px !important;
}

body.aescon-editorial-post .aescon-editorial-media .elementor-widget-image,
body.aescon-editorial-post .aescon-editorial-media img {
  width: 100%;
}

body.aescon-editorial-post .aescon-editorial-feature {
  margin: 0;
}

body.aescon-editorial-post .aescon-editorial-media img {
  height: auto;
  border-radius: 8px;
}

body.aescon-editorial-post .elementor > .e-con.aescon-editorial-section {
  margin-top: 72px !important;
  scroll-margin-top: 110px;
}

body.aescon-editorial-post .aescon-editorial-section h2,
body.aescon-editorial-post .aescon-editorial-related h2,
body.aescon-editorial-post .aescon-editorial-cta h2 {
  margin: 0 0 24px;
  color: var(--aes-editorial-ink);
  font-family: var(--aes-editorial-font);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.46;
  letter-spacing: normal;
  text-align: center;
  text-wrap: balance;
}

body.aescon-editorial-post .aescon-editorial-copy {
  color: var(--aes-editorial-body);
  font-family: var(--aes-editorial-font);
  font-size: 16px;
  line-height: 1.88;
  text-align: start;
  overflow-wrap: normal;
  word-break: normal;
}

body.aescon-editorial-post .aescon-editorial-copy ul,
body.aescon-editorial-post .aescon-editorial-copy ol {
  display: grid;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: aes-list;
}

body.aescon-editorial-post .aescon-editorial-copy li {
  position: relative;
  margin: 0;
  padding-left: 20px;
}

body.aescon-editorial-post .aescon-editorial-copy ul > li::before {
  content: "";
  position: absolute;
  top: .78em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aes-editorial-purple);
}

body.aescon-editorial-post .aescon-editorial-copy ol > li {
  counter-increment: aes-list;
  padding-left: 30px;
}

body.aescon-editorial-post .aescon-editorial-copy ol > li::before {
  content: counter(aes-list) ".";
  position: absolute;
  left: 0;
  color: var(--aes-editorial-purple);
  font-weight: 700;
}

body.aescon-editorial-post .aescon-editorial-copy a {
  color: var(--aes-editorial-purple);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(72,47,146,.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

body.aescon-editorial-post .aescon-editorial-copy a:hover {
  color: var(--aes-editorial-purple-deep);
  text-decoration-color: var(--aes-editorial-orange);
}

body.aescon-editorial-post .aescon-editorial-copy table {
  width: 100%;
  margin: 26px auto 0;
  border-collapse: collapse;
  color: var(--aes-editorial-body);
  font-size: 15px;
}

body.aescon-editorial-post .aescon-editorial-copy th,
body.aescon-editorial-post .aescon-editorial-copy td {
  padding: 13px 12px;
  border: 1px solid var(--aes-editorial-line);
  text-align: center;
  vertical-align: middle;
}

body.aescon-editorial-post .aescon-editorial-copy th {
  color: #fff;
  background: var(--aes-editorial-purple-deep);
}

body.aescon-editorial-post .aescon-faq-list {
  display: grid;
  gap: 12px;
}

body.aescon-editorial-post .aescon-faq-card {
  overflow: hidden;
  border: 1px solid var(--aes-editorial-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(52,33,111,.055);
}

body.aescon-editorial-post .aescon-faq-card summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  color: var(--aes-editorial-ink);
  cursor: pointer;
  list-style: none;
}

body.aescon-editorial-post .aescon-faq-card summary::-webkit-details-marker { display: none; }
body.aescon-editorial-post .aescon-faq-card summary strong { font-size: 16px; line-height: 1.55; }
body.aescon-editorial-post .aescon-faq-card summary span {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--aes-editorial-purple);
}
body.aescon-editorial-post .aescon-faq-card summary span::before,
body.aescon-editorial-post .aescon-faq-card summary span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%,-50%);
}
body.aescon-editorial-post .aescon-faq-card summary span::after { transform: translate(-50%,-50%) rotate(90deg); }
body.aescon-editorial-post .aescon-faq-card[open] summary span::after { transform: translate(-50%,-50%) rotate(0); }
body.aescon-editorial-post .aescon-faq-answer { padding: 0 20px 20px; }
body.aescon-editorial-post .aescon-faq-answer p { margin: 0; }

body.aescon-editorial-post .elementor > .e-con.aescon-editorial-related {
  width: min(var(--aes-editorial-outer), calc(100% - 48px)) !important;
  max-width: var(--aes-editorial-outer) !important;
  margin-top: 88px !important;
  padding-top: 52px !important;
  border-top: 1px solid var(--aes-editorial-line);
}

body.aescon-editorial-post .elementor > .e-con.aescon-editorial-cta {
  width: min(var(--aes-editorial-reading), calc(100% - 48px)) !important;
  max-width: var(--aes-editorial-reading) !important;
  align-items: center;
  margin-top: 72px !important;
  padding: 34px 32px 36px !important;
  border-top: 3px solid var(--aes-editorial-purple);
  border-radius: 4px;
  background: var(--aes-editorial-soft);
  text-align: center;
}

body.aescon-editorial-post .aescon-editorial-cta p { margin: 0 0 22px; }
.aescon-editorial-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 26px;
  color: #fff !important;
  background: var(--aes-editorial-purple);
  border: 1px solid var(--aes-editorial-purple);
  font-weight: 700;
  text-decoration: none !important;
}
.aescon-editorial-button:hover { background: var(--aes-editorial-purple-deep); }

.aescon-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
.aescon-editorial-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--aes-editorial-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(52,33,111,.055);
}
.aescon-editorial-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--aes-editorial-soft);
}
.aescon-editorial-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.aescon-editorial-card:hover .aescon-editorial-card__media img { transform: scale(1.025); }
.aescon-editorial-card__placeholder { display: block; width: 100%; height: 100%; background: var(--aes-editorial-soft); }
.aescon-editorial-card__body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.aescon-editorial-card__eyebrow { margin: 0 0 10px; color: #a84c00; font-family: "Montserrat","Noto Sans Thai",sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.aescon-editorial-card h3 { margin: 0; font-family: var(--aes-editorial-font); font-size: 20px; font-weight: 700; line-height: 1.5; }
.aescon-editorial-card h3 a { color: var(--aes-editorial-ink); text-decoration: none; }
.aescon-editorial-card__excerpt { margin: 14px 0 20px; color: var(--aes-editorial-body); font-size: 15px; line-height: 1.75; }
.aescon-editorial-card__link { margin-top: auto; color: var(--aes-editorial-purple); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.aescon-editorial-filter { margin-bottom: 28px; }
.aescon-editorial-filter span { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 16px; color: var(--aes-editorial-purple); border-bottom: 2px solid var(--aes-editorial-orange); font-weight: 700; }

body.aescon-editorial-index .elementor > .e-con.aescon-editorial-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--aes-editorial-purple-deep);
}
body.aescon-editorial-index .aescon-editorial-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(22,14,48,.88), rgba(22,14,48,.48));
}
body.aescon-editorial-index .aescon-editorial-hero__media,
body.aescon-editorial-index .aescon-editorial-hero__media .elementor-widget-container,
body.aescon-editorial-index .aescon-editorial-hero__media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
body.aescon-editorial-index .aescon-editorial-hero__media img { object-fit: cover; }
body.aescon-editorial-index .aescon-editorial-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 48px)) !important;
  max-width: 1160px !important;
  justify-content: center;
  margin: 0 auto !important;
  padding: 60px 0 !important;
}
body.aescon-editorial-index .aescon-editorial-index-h1 h1 {
  margin: 0;
  color: #fff;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}
body.aescon-editorial-index .aescon-editorial-index-label h2 {
  margin: 6px 0 0;
  color: var(--aes-editorial-orange);
  font-family: "Montserrat","Noto Sans Thai",sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-align: left;
}
body.aescon-editorial-index .aescon-editorial-index-intro {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(255,255,255,.92);
  font-size: 17px;
  line-height: 1.8;
}
body.aescon-editorial-index .aescon-editorial-index-intro p { margin: 0; }
body.aescon-editorial-index .elementor > .e-con.aescon-editorial-index-section {
  width: min(var(--aes-editorial-outer), calc(100% - 48px)) !important;
  max-width: var(--aes-editorial-outer) !important;
  padding: 82px 0 96px !important;
}
body.aescon-editorial-index .aescon-editorial-index-section-title h2 {
  margin: 0 0 36px;
  color: var(--aes-editorial-ink);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 1024px) {
  .aescon-editorial-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  body.aescon-editorial-post .elementor { padding: 48px 0 72px; }
  body.aescon-editorial-post .elementor > .e-con.aescon-editorial-block,
  body.aescon-editorial-post .elementor > .e-con.aescon-editorial-head,
  body.aescon-editorial-post .elementor > .e-con.aescon-editorial-related,
  body.aescon-editorial-post .elementor > .e-con.aescon-editorial-cta,
  body.aescon-editorial-index .elementor > .e-con.aescon-editorial-index-section,
  body.aescon-editorial-index .aescon-editorial-hero__inner {
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
  }
  body.aescon-editorial-post .elementor > .e-con.aescon-editorial-head { margin-bottom: 24px !important; }
  body.aescon-editorial-post .aescon-editorial-head h1 { font-size: 30px; line-height: 1.4; letter-spacing: normal; }
  body.aescon-editorial-post .aescon-editorial-lead { font-size: 16px; line-height: 1.84; }
  body.aescon-editorial-post .elementor > .e-con.aescon-editorial-media { margin-top: 28px !important; }
  body.aescon-editorial-post .elementor > .e-con.aescon-editorial-section { margin-top: 72px !important; scroll-margin-top: 84px; }
  body.aescon-editorial-post .aescon-editorial-section h2,
  body.aescon-editorial-post .aescon-editorial-related h2,
  body.aescon-editorial-post .aescon-editorial-cta h2 { margin-bottom: 22px; font-size: 18px; line-height: 1.5; }
  body.aescon-editorial-post .aescon-editorial-copy { font-size: 16px; line-height: 1.84; }
  body.aescon-editorial-post .aescon-editorial-copy li { padding-left: 18px; }
  body.aescon-editorial-post .aescon-editorial-copy ul > li::before { width: 6px; height: 6px; }
  body.aescon-editorial-post .aescon-faq-card summary { min-height: 56px; padding: 15px; }
  body.aescon-editorial-post .aescon-faq-answer { padding: 0 15px 17px; }
  body.aescon-editorial-post .elementor > .e-con.aescon-editorial-related { margin-top: 72px !important; padding-top: 40px !important; }
  body.aescon-editorial-post .elementor > .e-con.aescon-editorial-cta { margin-top: 72px !important; padding: 26px 20px 28px !important; }
  .aescon-editorial-grid { grid-template-columns: 1fr; gap: 20px; }
  .aescon-editorial-card__body { padding: 22px; }
  .aescon-editorial-card h3 { font-size: 19px; line-height: 1.55; }
  body.aescon-editorial-index .elementor > .e-con.aescon-editorial-hero { min-height: 360px; }
  body.aescon-editorial-index .aescon-editorial-hero__inner { padding: 54px 0 !important; }
  body.aescon-editorial-index .aescon-editorial-index-h1 h1 { font-size: 36px; line-height: 1.3; }
  body.aescon-editorial-index .aescon-editorial-index-label h2 { font-size: 20px; }
  body.aescon-editorial-index .aescon-editorial-index-intro { font-size: 16px; line-height: 1.75; }
  body.aescon-editorial-index .elementor > .e-con.aescon-editorial-index-section { padding: 64px 0 72px !important; }
  body.aescon-editorial-index .aescon-editorial-index-section-title h2 { margin-bottom: 30px; font-size: 27px; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
  body.aescon-editorial-post .elementor *,
  body.aescon-editorial-index .elementor * { transition: none !important; }
}
