@charset "utf-8";
/* =========================================================
   Selectcon UI CSS (clean version)
   - Organized, valid CSS, ready to use as .css file
   ========================================================= */


/* =========================================================
   1) Utilities: line breaks / spacing / font weight
   ========================================================= */

/* ใช้แทน <br> ใส่แบบนี้ <span class="break"></span> */
.break {
  display: block !important;
  margin-top: 0.25rem;
}

.break2 {
  display: block !important;
  margin-top: 2rem;
}

.font-normal {
  font-weight: 400 !important;
}

/* Spacing: margin-bottom utilities (rem) */
.mb-04 { margin-bottom: 0.4rem !important; }
.mb-08 { margin-bottom: 0.8rem !important; }
.mb-10 { margin-bottom: 1rem !important; }
.mb-20 { margin-bottom: 2rem !important; }
.mb-30 { margin-bottom: 3rem !important; }
.mb-40 { margin-bottom: 4rem !important; }
.mb-50 { margin-bottom: 5rem !important; }


/* =========================================================
   2) Color Utilities (mc-*)
   ========================================================= */

/* Blue */
.mc-m { color: #000000 !important; }
.mc-lightblue { color: #3366CC !important; }
.mc-midblue { color: #000080 !important; }   /* Midnight/Navy */
.mc-kram { color: #0c4da2 !important; }
.mc-kram2 { color: #0277bd !important; }
.mc-kroomata { color: #1b2c55 !important; }
.mc-navyblue { color: #000080 !important; }
.mc-blueface { color: #1A77F2 !important; }

/* Green */
.mc-greenwow { color: #009900 !important; }
.mc-midgreen { color: #228B22 !important; }
.mc-greenforest { color: #00a167 !important; }
.mc-greenman { color: #0F7204 !important; }
.mc-green-khampoo { color: #17372a !important; }
.mc-green-bikae { color: #145139 !important; }
.mc-midgreen2 { color: #009900 !important; }
.mc-darkgreen { color: #006600 !important; }
.mc-darkgreen2 { color: #006400 !important; }

/* Gray */
.mc-midgray { color: #4c4c4c !important; }

/* Orange */
.mc-matoom { color: #d88529 !important; }
.mc-sak { color: #b95831 !important; }
.mc-it { color: #c1621a !important; }
.mc-jumpa { color: #eea31f !important; }
.mc-orange { color: #FF4500 !important; }
.mc-orange2 { color: #bf360c !important; }

/* Red */
.mc-dangtud { color: #951519 !important; }
.mc-dangchard { color: #c9242b !important; }
.mc-dangnhummak { color: #a13422 !important; }
.mc-dindangtud { color: #76202a !important; }
.mc-fard { color: #6f2e28 !important; }
.mc-tongdang { color: #a0564b !important; }
.mc-darkred { color: #CC0000 !important; }
.mc-nightred { color: #44140c !important; }

/* Brown */
.mc-kruk { color: #8a5929 !important; }
.mc-nhumtarn { color: #7b4a34 !important; }
.mc-nhumtarn-mhai { color: #522e1a !important; }
.mc-midbrown { color: #624008 !important; }

/* Black / Dark */
.mc-lheklhai { color: #29241b !important; }
.mc-kalahhom { color: #2a0139 !important; }
.mc-sumlittichoke { color: #5c4606 !important; }
.mc-dumkamhao { color: #000000 !important; }
.mc-tao { color: #666666 !important; }

/* Gold */
.mc-Goldenrod { color: #DAA520 !important; }
.mc-DarkGoldenrod { color: #B8860B !important; }
.mc-Gold { color: #744e1d !important; }
.mc-Gold2 { color: #9c6023 !important; }
.mc-Gold3 { color: #876029 !important; }
.mc-Gold4 { color: #987131 !important; }
.mc-Gold5 { color: #b3782c !important; }
.mc-Gold6 { color: #b68e42 !important; }
.mc-Gold7 { color: #b69853 !important; }

/* Purple */
.mc-medmaprang { color: #702c7d !important; }
.mc-purple { color: #673ab7 !important; }
.mc-midpurple { color: #591075 !important; }


/* =========================================================
   3) Margin helpers (ma-*)
   ========================================================= */

/* Top / Bottom */
.ma-top0 { margin-top: 0 !important; }
.ma-top10 { margin-top: 10px !important; }
.ma-top20 { margin-top: 20px !important; }
.ma-top30 { margin-top: 30px !important; }
.ma-top50 { margin-top: 50px !important; }

.ma-bottom10 { margin-bottom: 10px !important; }
.ma-bottom20 { margin-bottom: 20px !important; }
.ma-bottom30 { margin-bottom: 30px !important; }

/* Left */
.ma-left5 { margin-left: 5px !important; }
.ma-left10 { margin-left: 10px !important; }
.ma-left15 { margin-left: 15px !important; }
.ma-left20 { margin-left: 20px !important; }
.ma-left25 { margin-left: 25px !important; }
.ma-left30 { margin-left: 30px !important; }
.ma-left40 { margin-left: 40px !important; }
.ma-left50 { margin-left: 50px !important; }

/* Right */
.ma-right5 { margin-right: 5px !important; }
.ma-right10 { margin-right: 10px !important; }
.ma-right15 { margin-right: 15px !important; }
.ma-right20 { margin-right: 20px !important; }
.ma-right25 { margin-right: 25px !important; }
.ma-right30 { margin-right: 30px !important; }

/* Line-height helpers */
.ma-line-height-height1 { line-height: 1 !important; }
.ma-line-height-height2 { line-height: 2 !important; }


/* =========================================================
   4) Document Typography (md-*)
   NOTE: แก้จุดผิด: font-weight ว่าง, margin-bottom ไม่มีหน่วย,
         text:left -> text-align:left
   ========================================================= */

.md-22,
.md-21,
.md-20,
.md-20-1,
.md-end-20,
.md-lh1-25,
.md-18-0,
.md-18,
.md-18-x,
.md-18-l1,
.md-end-18,
.md-18-90,
.md-18-100,
.md-18-center,
.md-16,
.md-16-2,
.md-16-3,
.md-16-4,
.md-167,
.md-end-16,
.md-16-cc,
.md-16-l1,
.md-16-50,
.md-15,
.md-15-50,
.md-end-15,
.md-end-15-50,
.md-14,
.md-end-14,
.md-14-a,
.md-end-14-a,
.md-14-r,
.md-16-r,
.md-12,
.md-end-12 {
  font-family: Arial, Verdana, sans-serif;
  font-weight: 400;              /* แทนค่าเว้นว่าง */
  margin-top: 0;
  margin-left: 5px;
  margin-right: 5px;
  text-align: left;
}

/* size groups */
.md-22 { font-size: 22pt; line-height: 2; margin-bottom: 20px; }
.md-21 { font-size: 21pt; line-height: 2; margin-bottom: 21px; }
.md-20 { font-size: 20pt; line-height: 2; margin-bottom: 21px; }
.md-20-1 { font-size: 20pt; line-height: 1.5; margin-bottom: 21px; }
.md-end-20 { font-size: 20pt; line-height: 1.5; margin-bottom: 0; }

.md-lh1-25 { font-size: 25pt; line-height: 1.5; margin-bottom: 0; }

.md-18-0 { font-size: 18pt; line-height: 2; margin-left: 0; margin-right: 0; margin-bottom: 20px; }
.md-18 { font-size: 18pt; line-height: 2; margin-bottom: 20px; }
.md-18-x { font-size: 18pt; line-height: 2; margin-bottom: 20px; }
.md-18-l1 { font-size: 18pt; line-height: 1.5; margin-bottom: 20px; }
.md-end-18 { font-size: 18pt; line-height: 2; margin-bottom: 0; }

.md-18-90 { font-size: 18pt; line-height: 2; margin-left: 90px; margin-bottom: 20px; }
.md-18-100 { font-size: 18pt; line-height: 2; margin-left: 100px; margin-bottom: 20px; }

.md-18-center { font-size: 18pt; line-height: 2; margin-bottom: 20px; text-align: center; }

.md-16 { font-size: 16pt; line-height: 2; margin-bottom: 20px; }
.md-16-2 { font-size: 16pt; line-height: 2; margin-bottom: 40px; }
.md-16-3 { font-size: 16pt; line-height: 2; margin-bottom: 30px; }
.md-16-4 { font-size: 16pt; line-height: 2; margin-bottom: 40px; }
.md-167 { font-size: 16pt; line-height: 2; margin-bottom: 70px; }

.md-end-16 { font-size: 16pt; line-height: 2; margin-bottom: 0; }
.md-16-cc { font-size: 16pt; line-height: 2; margin-bottom: 20px; text-align: center; }
.md-16-l1 { font-size: 16pt; line-height: 1.5; margin-bottom: 15px; }
.md-16-50 { font-size: 16pt; line-height: 2; margin-left: 50px; margin-bottom: 0; }

.md-15 { font-size: 15pt; line-height: 2; margin-bottom: 20px; }
.md-15-50 { font-size: 15pt; line-height: 2; margin-left: 50px; margin-bottom: 20px; }
.md-end-15 { font-size: 15pt; line-height: 2; margin-bottom: 0; }
.md-end-15-50 { font-size: 15pt; line-height: 2; margin-left: 50px; margin-bottom: 0; }

.md-14 { font-size: 14pt; line-height: 2; margin-bottom: 40px; }
.md-end-14 { font-size: 14pt; line-height: 2; margin-bottom: 0; }
.md-14-a { font-size: 14pt; line-height: 2; margin-left: 50px; margin-bottom: 20px; }
.md-end-14-a { font-size: 14pt; line-height: 2; margin-left: 50px; margin-bottom: 0; }

.md-14-r { font-size: 14pt; line-height: 2; margin-left: 0; margin-bottom: 40px; text-align: right; }
.md-16-r { font-size: 16pt; line-height: 2; margin-left: 0; margin-bottom: 40px; text-align: right; }

.md-12 { font-size: 12pt; line-height: 2; margin-bottom: 20px; }
.md-end-12 { font-size: 12pt; line-height: 2; margin-bottom: 0; }

/* Special: for headings that act like bold label (ชื่อเดิมคงไว้) */
.md-18-for-b{
  font-family: Arial, Verdana, sans-serif;
  font-size: 18pt;
  font-weight: 400;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 2;
  text-align: left;
}

.md-16-for-b{
  font-family: Arial, Verdana, sans-serif;
  font-size: 16pt;
  font-weight: 400;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 2;
  text-align: left;
}


/* =========================================================
   5) Buttons (avoid conflict with Bootstrap if used)
   NOTE: ถ้าใช้ Bootstrap จริง แนะนำใช้ .sc-btn แทน .btn
   ========================================================= */

.sc-btn{
  display: inline-block;
  padding: 10px 22px;
  font-size: 17px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.5;
  margin: 5px;
}

.sc-btn-primary{
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}
.sc-btn-primary:hover{
  background-color: #0056b3;
  border-color: #004c99;
  color: #fff;
  text-decoration: none;
}

.sc-btn-outline{
  background-color: #fff;
  color: #007bff;
  border-color: #007bff;
}
.sc-btn-outline:hover{
  background-color: #007bff;
  color: #fff;
}

.sc-btn-secondary{
  background-color: #6c757d;
  color: #fff;
  border-color: #6c757d;
}
.sc-btn-secondary:hover{
  background-color: #555d63;
  border-color: #4e555b;
}

@media (max-width: 768px){
  .sc-btn{
    display:block;
    width:100%;
    text-align:center;
    margin-bottom:10px;
  }
}


/* =========================================================
   6) HBCD Layout (home-building-consultant)
   ========================================================= */

.hbcd{
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 52px;
}

.hbcd-hero{ margin: 0 0 26px; }

.hbcd-hero img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.hbcd-hero figcaption{
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
}

.hbcd h1{
  margin: 8px 0 22px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.hbcd h2{
  margin: 34px 0 14px;
  font-size: 18pt;
  line-height: 1.35;
  color: #191970; /* MidnightBlue */
}

.hbcd .text-block{
  margin: 0 0 2.2em 0;
  line-height: 1.95;
  font-size: 16pt;
}

.hbcd .card{
  padding: 22px 18px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  background: #fff;
  margin: 0 0 22px;
}

.hbcd .divider{
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin: 26px 0;
}

.hbcd ul{
  margin: 0 0 2.2em 1.2em;
  line-height: 1.8;
  font-size: 16pt;
}

@media (min-width: 900px){
  .hbcd{ padding: 36px 22px 64px; }
  .hbcd .card{ padding: 26px 22px; }
}


/* =========================================================
   7) SC Page Layout (Bootstrap-friendly content blocks)
   ========================================================= */

.sc-page{ padding: 28px 0 56px; }

.sc-card{
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  padding:22px 18px;
}

.sc-title{
  font-size:24pt;
  line-height:1.3;
  margin:0 0 14px;
}

.sc-h2{
  font-size:18pt;
  line-height:1.35;
  color:#191970;
  margin:34px 0 14px;
}

.sc-text{
  font-size:16pt;
  line-height:1.9;
  margin:0 0 2.2em 0;
}

.sc-lead-tight{ margin-bottom:0.6em; }

.sc-divider{
  height:1px;
  background:rgba(0,0,0,0.12);
  margin:26px 0;
}

.sc-list{
  font-size:16pt;
  line-height:1.8;
  margin:0 0 2.2em 0;
  padding-left:1.1em;
}
.sc-list li{ margin-bottom:0.35em; }

.sc-hero img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
}

@media (max-width:480px){
  .sc-title{ font-size:20pt; }
  .sc-h2{ font-size:17pt; }
  .sc-text, .sc-list{ font-size:15pt; }
  .sc-card{ padding:20px 16px; }
}


/* =========================================================
   8) Misc
   ========================================================= */

#confusedGif{
  background: transparent !important;
  border: none !important;
}

img[loading="lazy"]{
  content-visibility: auto;
}


.sc-heroText{
    max-width: 920px;
    margin: 0 auto;
    padding: 22px 18px;
    background: #fff;
  }

  .sc-heroText__title{
    margin: 0 0 18px 0;
    font-size: 22pt;
    line-height: 1.35;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.2px;
  }

  /* กล่องข้อความย่อย + แถบเทาซ้าย */
  .sc-heroText__quote{
    position: relative;
    padding-left: 22px;           /* เว้นที่ให้แถบซ้าย */
    margin: 0;
  }

  .sc-heroText__quote::before{
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 999px;
    background: rgba(0,0,0,0.18); /* เทาอ่อนแบบในภาพ */
  }

  .sc-heroText__quote p{
    margin: 0;
    font-size: 18pt;
    line-height: 1.75;
    font-weight: 500;
    color: #111;
  }

  /* Responsive */
  @media (max-width: 768px){
    .sc-heroText__title{ font-size: 20pt; }
    .sc-heroText__quote p{ font-size: 17pt; }
  }
  @media (max-width: 480px){
    .sc-heroText__title{ font-size: 18.5pt; }
    .sc-heroText__quote p{ font-size: 16.5pt; }
  }

/* =========================
   Selectcon Highlight Text
   ========================= */

.sc-heroText{
  max-width: 920px;
  margin: 0 auto 3rem;
}

/* ส่วนข้อความปกติ (ไม่มีเส้น) */
.sc-heroText__plain p{
  font-size: 18pt;
  line-height: 1.7;
  margin: 0 0 0.6em 0;
  color: #000;
}

/* ส่วนที่มีเส้นด้านซ้าย */
.sc-heroText__quote{
  border-left: 4px solid #d0d0d0;
  padding-left: 20px;
  margin-top: 1.8rem;
}

.sc-heroText__quote p{
  font-size: 18pt;
  line-height: 1.7;
  margin: 0 0 0.6em 0;
  color: #000;
}

/* Mobile */
@media (max-width: 480px){
  .sc-heroText__plain p,
  .sc-heroText__quote p{
    font-size: 16pt;
  }

  .sc-heroText__quote{
    padding-left: 16px;
  }
}
