/* Home — About Version 2 — mockup valve / 2-column hero
 * Typography: class ธีม (.sec-title, .title, .desc, .sub-text)
 */

.home-about-v2 {
    /* สีแบรนด์ = แถบเมนู header (home เป็นหลัก) */
    --home-about-v2-brand: var(--v2-header-bar-bg, #0069d2);
    --home-about-v2-brand-dark: var(--v2-header-main-nav-active-bg, #1e5a9e);
    --home-about-v2-brand-muted: var(--v2-header-main-nav-active-bg, #1e5a9e);
    --home-about-v2-heading: #001d4a;
    --home-about-v2-body: #333333;
    --home-about-v2-body-muted: #5a6270;
    --home-about-v2-surface: #ffffff;
    --home-about-v2-panel: #f4f8fc;
    --home-about-v2-border: #e2eaf3;
    --home-about-v2-divider: rgba(0, 113, 210, 0.14);
    --home-about-v2-section-gap: clamp(32px, 4vw, 48px);
    --home-about-v2-industries-max: min(1520px, calc(100vw - clamp(24px, 4vw, 48px)));
    --home-about-v2-actions-gap: 10px;
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    background-color: var(--home-about-v2-surface);
}

.home-about-v2__hero-row {
    align-items: flex-start;
    padding-bottom: var(--home-about-v2-section-gap);
}

@media (min-width: 992px) {
    .home-about-v2__hero-row {
        align-items: stretch;
    }

    .home-about-v2__hero-col--visual {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .home-about-v2__hero-col--visual .home-about-v2__visual {
        width: 100%;
        margin-top: auto;
    }
}

.home-about-v2 .sec-title.home-about-v2__hero-title {
    margin-bottom: 0;
    text-align: left;
}

.home-about-v2 .sec-title .sub-text.home-about-v2__kicker {
    display: inline-block;
    margin-bottom: 16px;
    padding-bottom: 10px;
    position: relative;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--home-about-v2-brand);
}

.home-about-v2 .sec-title .sub-text.home-about-v2__kicker::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background-color: var(--home-about-v2-brand);
}

/* หัวข้อหลัก — สี navy + ขนาดตาม mockup + เส้นขั้นใต้หัวข้อ */
.home-about-v2 .sec-title .title.title2.home-about-v2__heading {
    position: relative;
    padding-top: 0;
    padding-bottom: 18px;
    margin-bottom: 22px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    color: var(--home-about-v2-heading);
    font-size: clamp(34px, 2.75vw, 42px);
    line-height: 1.28;
    font-weight: 700;
}

.home-about-v2 .sec-title .title.title2.home-about-v2__heading .home-about-v2__title-line,
.home-about-v2 .sec-title .title.title2.home-about-v2__industries-title .home-about-v2__title-line {
    display: inline;
    font-style: normal;
    color: var(--home-about-v2-heading);
}

.home-about-v2 .sec-title .title.title2.home-about-v2__heading .home-about-v2__title-line {
    display: block;
}

.home-about-v2 .sec-title .title.title2.home-about-v2__heading .home-about-v2__title-line--accent,
.home-about-v2 .sec-title .title.title2.home-about-v2__industries-title .home-about-v2__title-line--accent {
    color: var(--home-about-v2-brand);
}

.home-about-v2 .sec-title .title.title2.home-about-v2__heading::after {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    top: auto;
    width: 48px;
    height: 3px;
    border: 0;
    border-radius: 999px;
    background-color: var(--home-about-v2-brand);
    transform: none;
    margin-left: 0;
    z-index: 1;
}

.home-about-v2 .sec-title .desc.home-about-v2__lead {
    color: var(--home-about-v2-body);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 100%;
    text-align: left;
}

.home-about-v2 .desc.home-about-v2__lead-rich p {
    margin-bottom: 0;
}

.home-about-v2 .desc.home-about-v2__lead-rich p + p {
    margin-top: 14px;
}

.home-about-v2 .desc.home-about-v2__lead-rich p:empty {
    display: none;
    margin: 0;
}

.home-about-v2__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--home-about-v2-actions-gap);
}

.home-about-v2__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.home-about-v2__btn i {
    font-size: 18px;
    line-height: 1;
}

.home-about-v2__btn--primary {
    background-color: var(--home-about-v2-brand);
    border: 1px solid var(--home-about-v2-brand);
    color: #ffffff;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--home-about-v2-brand) 28%, transparent);
}

.home-about-v2__btn--primary:hover,
.home-about-v2__btn--primary:focus-visible {
    background-color: var(--home-about-v2-brand-muted);
    border-color: var(--home-about-v2-brand-muted);
    color: #ffffff;
}

.home-about-v2__btn--secondary {
    background-color: #ffffff;
    border: 1px solid var(--home-about-v2-brand);
    color: var(--home-about-v2-brand);
}

.home-about-v2__btn--secondary:hover,
.home-about-v2__btn--secondary:focus-visible {
    background-color: color-mix(in srgb, var(--home-about-v2-brand) 6%, #fff);
    border-color: var(--home-about-v2-brand-muted);
    color: var(--home-about-v2-brand-muted);
}

/* Hero visual + overlay highlights */
.home-about-v2__visual {
    position: relative;
    margin: 0;
}

.home-about-v2__visual-img {
    display: block;
    width: 100%;
    height: clamp(340px, 42vw, 510px);
    min-height: clamp(340px, 42vw, 510px);
    object-fit: cover;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    background-color: transparent;
}

.home-about-v2__highlights {
    position: absolute;
    left: clamp(12px, 2vw, 20px);
    right: clamp(12px, 2vw, 20px);
    bottom: clamp(12px, 2vw, 20px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    min-height: 0;
    padding: clamp(14px, 1.6vw, 18px) clamp(12px, 1.4vw, 16px);
    background-color: var(--home-about-v2-surface);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(10, 37, 64, 0.12);
}

.home-about-v2__highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: clamp(4px, 0.5vw, 6px) clamp(8px, 1vw, 12px);
    border-right: 1px solid var(--home-about-v2-border);
}

.home-about-v2__highlight:last-child {
    border-right: 0;
}

.home-about-v2__highlight-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    color: #ffffff;
    background-color: var(--home-about-v2-brand);
}

.home-about-v2__highlight-mark i {
    font-size: 20px;
    line-height: 1;
}

.home-about-v2__highlight-badge {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.home-about-v2__highlight-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin-bottom: 0;
    text-align: left;
}

.home-about-v2__highlight-copy.sec-title {
    text-align: left;
}

/* ป้าย overlay — ขนาดกะทัดรัด (สอดคล้อง kicker ของ section) */
.home-about-v2 .sec-title .sub-text.home-about-v2__highlight-title {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--home-about-v2-heading);
}

.home-about-v2 .sec-title .sub-text.home-about-v2__highlight-title::before,
.home-about-v2 .sec-title .sub-text.home-about-v2__highlight-title::after {
    display: none;
}

.home-about-v2 .sec-title .desc.home-about-v2__highlight-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--home-about-v2-body-muted);
    text-align: left;
}

/* Industries — 5 cards (mockup) */
.home-about-v2__industries {
    position: relative;
    margin-top: 0;
    padding: clamp(40px, 5vw, 56px) 0 clamp(48px, 6vw, 64px);
    background-color: var(--home-about-v2-panel);
    border-top: 1px solid var(--home-about-v2-border);
    overflow: hidden;
}

/* มีภาพพื้นหลังจากแอดมิน — แสดงรูปเต็ม section ไม่ทับสี panel / ไม่มีขอบมุม */
.home-about-v2__industries--has-bg {
    background-color: transparent;
    border-top: 0;
    border-radius: 0;
}

.home-about-v2__industries-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-about-v2__industries-bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.home-about-v2__industries--has-bg > .container.custom {
    position: relative;
    z-index: 1;
}

/* กว้างกว่า Hero — รองรับกริด 5 การ์ด (ธีม .container.custom ปกติ ~1200px) */
.home-about-v2__industries > .container.custom {
    max-width: var(--home-about-v2-industries-max);
    width: 100%;
}

@media only screen and (min-width: 1300px) {
    .home-about-v2__industries > .container.custom {
        max-width: min(1560px, calc(100vw - 32px));
    }
}

.home-about-v2 .sec-title.home-about-v2__industries-head {
    margin-bottom: 0;
    text-align: center;
}

.home-about-v2 .sec-title .sub-text.home-about-v2__industries-kicker {
    display: block;
    margin-bottom: 14px;
    padding-bottom: 0;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--home-about-v2-brand);
}

.home-about-v2 .sec-title .sub-text.home-about-v2__industries-kicker::after {
    display: none;
}

.home-about-v2 .sec-title .title.title2.home-about-v2__industries-title {
    position: relative;
    margin: 0 auto;
    padding: 0 0 14px;
    max-width: none;
    font-size: clamp(26px, 2.8vw, 36px);
    line-height: 1.3;
    font-weight: 700;
    color: var(--home-about-v2-heading);
    text-align: center;
}

/* เส้นคั่นกลางใต้หัวข้อหลัก — แทนเส้นแดงของธีม */
.home-about-v2 .sec-title .title.title2.home-about-v2__industries-title::after {
    display: block;
    content: "";
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 48px;
    height: 3px;
    margin: 0 auto;
    border: 0;
    border-radius: 999px;
    background-color: var(--home-about-v2-brand);
    z-index: 1;
}

.home-about-v2 .desc.home-about-v2__industries-lead,
.home-about-v2 .desc.home-about-v2__industries-lead-rich {
    margin: clamp(12px, 1.5vw, 16px) auto clamp(28px, 3.5vw, 36px);
    padding: 0;
    max-width: 52rem;
    font-size: 15px;
    line-height: 1.65;
    color: var(--home-about-v2-body-muted);
    text-align: center;
}

.home-about-v2 .desc.home-about-v2__industries-lead-rich p {
    margin-bottom: 0.65em;
}

.home-about-v2 .desc.home-about-v2__industries-lead-rich p:last-child {
    margin-bottom: 0;
}

/* ไม่มี lead — ระยะหัวข้อถึงกริด (ตามมาตรฐาน section gap) */
.home-about-v2__industries-head:not(:has(.home-about-v2__industries-lead, .home-about-v2__industries-lead-rich)) {
    margin-bottom: clamp(28px, 3.5vw, 36px);
}

.home-about-v2__industries-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 16px);
    align-items: stretch;
}

.home-about-v2__industry-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--home-about-v2-surface);
    border: 1px solid var(--home-about-v2-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 29, 74, 0.06);
    overflow: hidden;
}

.home-about-v2__industry-card-media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.home-about-v2__industry-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-about-v2__industry-card-body {
    position: relative;
    flex: 1 1 auto;
    padding: clamp(44px, 4.8vw, 52px) clamp(14px, 1.6vw, 18px) clamp(18px, 2vw, 22px);
    text-align: center;
}

.home-about-v2__industry-card-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 0;
    border-radius: 50%;
    background-color: var(--home-about-v2-surface);
    color: var(--home-about-v2-brand);
    box-shadow: 0 4px 14px rgba(0, 113, 210, 0.12);
}

.home-about-v2__industry-card-icon i {
    font-size: clamp(40px, 3.4vw, 48px);
    line-height: 1;
}

.home-about-v2 .title.title3.home-about-v2__industry-card-title {
    margin: 0;
    padding-top: 0;
    max-width: none;
    font-size: clamp(17px, 1.15vw, 19px);
    line-height: 1.4;
    font-weight: 700;
    color: var(--home-about-v2-heading);
    text-align: center;
}

.home-about-v2 .title.title3.home-about-v2__industry-card-title::after {
    display: none;
}

.home-about-v2__industry-card-divider {
    display: block;
    width: 32px;
    height: 3px;
    margin: 10px auto 12px;
    border-radius: 999px;
    background-color: var(--home-about-v2-brand);
}

.home-about-v2 .desc.home-about-v2__industry-card-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--home-about-v2-body-muted);
}

@media (max-width: 1199px) {
    .home-about-v2__industries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-about-v2__highlights {
        grid-template-columns: 1fr;
        gap: 0;
        padding: clamp(12px, 1.8vw, 16px) clamp(14px, 1.6vw, 18px);
    }

    .home-about-v2__highlight {
        border-right: 0;
        padding: clamp(8px, 1vw, 10px) 0;
        border-bottom: 1px solid var(--home-about-v2-border);
    }

    .home-about-v2__highlight:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 991px) {
    .home-about-v2__visual-img {
        height: 300px;
        min-height: 300px;
    }

    .home-about-v2__industries-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-about-v2__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-about-v2__btn {
        width: 100%;
    }

    .home-about-v2__industries-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-inline: auto;
    }
}
