/* RAM CMS v1.4 | Dense premium corporate section + preparation guide.
   Deliberately DOES NOT resize, crop or change the grid width of banner images. */

/* ABOUT: confident editorial header and denser corporate credentials. */
body main section[id="เกี่ยวกับเรา"] {
  padding-block: clamp(32px, 3.5vw, 47px) !important;
  background:
    radial-gradient(ellipse 70% 75% at -10% -10%, rgba(117, 223, 71, .12), transparent 70%),
    radial-gradient(ellipse 40% 75% at 105% 100%, rgba(37, 149, 93, .11), transparent 75%),
    linear-gradient(145deg, #071c13 0%, #071a12 55%, #05130d 100%);
}
body main section[id="เกี่ยวกับเรา"] > .container > .section-head {
  display: grid;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 17px;
  text-align: left;
}
body main section[id="เกี่ยวกับเรา"] > .container > .section-head .kicker {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 11px;
  border: 1px solid rgba(169, 244, 118, .23);
  border-radius: 7px;
  background: rgba(181, 255, 115, .095);
  color: #c2ff83;
  font: 850 10px/1.28 system-ui, Tahoma, sans-serif;
  letter-spacing: .09em;
}
body main section[id="เกี่ยวกับเรา"] > .container > .section-head h2 {
  margin: 0;
  color: #f5fff6;
  font-size: clamp(23px, 2.25vw, 32px) !important;
  font-weight: 950;
  line-height: 1.31;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
body main section[id="เกี่ยวกับเรา"] > .container > .section-head h2 strong { color: #b5f675; }
body main section[id="เกี่ยวกับเรา"] > .container > .section-head p {
  max-width: 1040px;
  margin: 0;
  color: #b8ccbf;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.5;
}

/* The credentials/map layout is also shared by standalone About pages. */
body .about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  align-items: stretch;
  gap: 13px;
  max-width: 100%;
}
body .about-grid > * { min-width: 0; }
body .about-grid .about-card {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 18px 21px 16px;
  overflow: hidden;
  border: 1px solid rgba(20, 98, 50, .13);
  border-top: 2px solid #7ccf6a;
  border-radius: 15px;
  background: linear-gradient(155deg, #fff 0%, #f8fbf8 100%);
  box-shadow: 0 13px 32px rgba(0, 0, 0, .11);
}
body .about-grid .about-card :is(h2, h3) {
  margin: 0 0 12px;
  color: #143923;
  font-size: clamp(15px, 1.26vw, 19px) !important;
  font-weight: 900;
  letter-spacing: -.018em;
  line-height: 1.42;
}
body .about-grid .about-card dl {
  display: grid;
  grid-template-columns: minmax(92px, .32fr) minmax(0, 1fr);
  align-items: start;
  gap: 0 15px;
  width: 100%;
  min-width: 0;
  margin: 0;
  border-top: 1px solid #e2ebe3;
}
body .about-grid .about-card dt,
body .about-grid .about-card dd {
  min-width: 0;
  margin: 0 !important;
  padding: 7px 0;
  border-bottom: 1px solid #e5ede7;
  font-size: 12px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
body .about-grid .about-card dt { color: #5a7461; font-weight: 760; }
body .about-grid .about-card dd { color: #1f3428; font-weight: 670; }
body .about-grid .about-card dd a:not(.btn) {
  color: #097b3b;
  text-decoration: underline;
  text-decoration-color: rgba(12, 141, 68, .25);
  text-underline-offset: 3px;
  font-weight: 850;
}
body .about-grid .about-card dd a:hover { text-decoration-color: currentColor; }
body .about-grid .about-card > p {
  margin: 10px 0 0;
  color: #506757;
  font-size: 11.5px;
  line-height: 1.52;
}
body .about-grid .about-card > p .btn,
body .about-grid .about-card > p .btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 35px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 850;
  white-space: normal;
}
body .about-grid .map-card {
  position: relative;
  min-height: 290px;
  margin: 0;
  border: 1px solid rgba(163, 255, 145, .14);
  border-radius: 15px;
  background: #183226;
  box-shadow: 0 13px 32px rgba(0, 0, 0, .11);
  overflow: hidden;
}
body .about-grid .map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 290px;
  border: 0;
}
/* Keep original banner image width, height, aspect-ratio and object-fit intact. */
body main section[id="เกี่ยวกับเรา"] > .visual-wrap { margin-top: 15px; }

/* HOW-TO: reduce whitespace solely in the copy/step controls.
   The image column, picture, figure and img dimensions are untouched. */
body .howto-feature {
  border-color: #d5e7d9;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(9, 49, 25, .08);
}
body .howto-feature .howto-copy {
  justify-content: center;
  min-width: 0;
  padding: clamp(16px, 2vw, 28px);
  background:
    radial-gradient(circle at 100% 0, rgba(133, 213, 105, .09), transparent 52%),
    linear-gradient(160deg, #ffffff, #f6faf7);
}
body .howto-feature .howto-copy h2 {
  margin: 0 0 12px;
  color: #123321;
  font-size: clamp(23px, 2.2vw, 31px) !important;
  line-height: 1.29;
  letter-spacing: -.03em;
  font-weight: 950;
}
body .howto-feature .howto-steps { gap: 7px; }
body .howto-feature .howto-step {
  grid-template-columns: 34px minmax(0,1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #e0ece4;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(14, 65, 32, .027);
}
body .howto-feature .howto-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #cfff80, #7fe74f);
  color: #11351c;
  font: 900 12px/1 system-ui, sans-serif;
  box-shadow: none;
}
body .howto-feature .howto-step :is(h3, h4) {
  margin: 0 0 2px;
  color: #183d28;
  font-size: 12.8px !important;
  line-height: 1.37;
  font-weight: 900;
}
body .howto-feature .howto-step p {
  margin: 0;
  color: #5d7063;
  font-size: 11.8px;
  line-height: 1.47;
}
body .howto-feature .howto-note {
  margin: 9px 0 0;
  padding: 9px 11px;
  border-left: 3px solid #39b458;
  border-radius: 0 9px 9px 0;
  background: #eaf6ed;
  color: #345140;
  font-size: 11px;
  line-height: 1.48;
}
body .howto-feature .howto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 9px 0 11px;
  padding: 0;
  list-style: none;
}
body .howto-feature .howto-tags li {
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #deebdf;
  border-radius: 7px;
  background: #f8fbf8;
  color: #3d5b45;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
body .howto-feature .howto-cta {
  align-self: stretch;
  width: 100%;
  min-height: 39px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 850;
}
/* Retain the original long explanatory caption in a real, accessible disclosure. */
body .howto-feature .howto-media figcaption {
  padding: 0;
  background: #0b2419;
  color: #c3d8ca;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}
body .howto-feature .rc-howto-caption > summary {
  position: relative;
  display: block;
  padding: 10px 36px 10px 15px;
  cursor: pointer;
  color: #d0edcf;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
}
body .howto-feature .rc-howto-caption > summary::-webkit-details-marker { display: none; }
body .howto-feature .rc-howto-caption > summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #b6ff87;
  font: 900 20px/1 system-ui, sans-serif;
}
body .howto-feature .rc-howto-caption[open] > summary::after { content: '−'; }
body .howto-feature .rc-howto-caption > summary:focus-visible { outline: 2px solid #b6ff87; outline-offset: -2px; }
body .howto-feature .rc-howto-caption__content {
  padding: 0 15px 14px;
  color: #b4cfbd;
  font-size: 11px;
  line-height: 1.62;
  white-space: pre-line;
}
@media (max-width: 980px) {
  body .about-grid { grid-template-columns: 1fr; gap: 10px; }
  body .about-grid .map-card,
  body .about-grid .map-card iframe { min-height: 235px; height: 235px; }
}
@media (max-width: 760px) {
  body main section[id="เกี่ยวกับเรา"] { padding-block: 27px 30px !important; }
  body main section[id="เกี่ยวกับเรา"] > .container > .section-head { margin-bottom: 13px; }
  body main section[id="เกี่ยวกับเรา"] > .container > .section-head h2 { font-size: clamp(20px, 5.5vw, 25px) !important; }
  body main section[id="เกี่ยวกับเรา"] > .container > .section-head p { font-size: 11.5px; }
  body .about-grid .about-card { padding: 15px 14px 13px; border-radius: 12px; }
  body .about-grid .about-card :is(h2,h3) { font-size: 14px !important; margin-bottom: 9px; }
  body .about-grid .about-card dl { grid-template-columns: minmax(78px,.32fr) minmax(0,1fr); column-gap:9px; }
  body .about-grid .about-card :is(dt,dd) { padding: 6px 0; font-size: 11px; }
  body .about-grid .map-card { border-radius: 12px; }
  body main section[id="เกี่ยวกับเรา"] > .visual-wrap { margin-top: 11px; }
  body .howto-feature { border-radius: 12px; }
  body .howto-feature .howto-copy { padding: 16px 13px; }
  body .howto-feature .howto-copy h2 { margin-bottom: 10px; font-size: clamp(20px,5.6vw,25px) !important; }
  body .howto-feature .howto-step { gap: 9px; padding: 8px 10px; }
  body .howto-feature .howto-step :is(h3,h4) { font-size: 12px !important; }
  body .howto-feature .howto-step p { font-size: 11.2px; }
  body .howto-feature .howto-tags li { font-size: 9.5px; }
}
@media (max-width: 350px) {
  body .about-grid .about-card dl { grid-template-columns: 75px minmax(0,1fr); column-gap:7px; }
  body .about-grid .about-card :is(dt,dd) { font-size: 10.5px; }
  body .howto-feature .howto-copy { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  body .howto-feature :is(.howto-step, .rc-howto-caption) { transition: none; }
}
