/* ============================================= */
/* VERSION 2 — CSS Variables                      */
/* แก้ไขสีทุกจุดในเว็บไซต์ได้จากตรงนี้ที่เดียว     */
/* ============================================= */
:root {
    --primary: #1a3a6b;
    --primary-light: #2e7de6;
    --primary-dark: #0a1628;
    --accent: #4A9FE5;
    --accent-glow: rgba(46, 125, 230, 0.35);

    --white: #ffffff;
    --light: #f0f5fc;
    --gray: #8896a7;
    --dark: #0d1b33;
    --text: #2c3e5a;
    --text-light: #6b7d95;

    --grad-main: linear-gradient(135deg, #0a1628 0%, #1a3a6b 50%, #2e7de6 100%);
    --grad-card: linear-gradient(145deg, rgba(26, 58, 107, 0.04) 0%, rgba(46, 125, 230, 0.08) 100%);
    --grad-sweep: linear-gradient(90deg, transparent 0%, rgba(46, 125, 230, 0.08) 50%, transparent 100%);

    --header-h: 80px;
    --max-w: 1200px;
    --sec-pad: 100px;
    --radius: 16px;
    --radius-sm: 8px;

    --font-th: 'Prompt', sans-serif;
    --font-en: 'Inter', sans-serif;

    --shadow-sm: 0 2px 10px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
    --shadow-glow: 0 0 40px rgba(46, 125, 230, 0.25);

    --tr-fast: 0.2s ease;
    --tr: 0.3s ease;
    --tr-slow: 0.6s ease;
}

/* ============================================= */
/* RESET                                          */
/* ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-th);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-en);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--tr-fast);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================= */
/* PLACEHOLDER — ตัว placeholder รูปภาพ            */
/* ============================================= */
.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, #c0d4e8 0%, #8aafc8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '📷';
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 14px;
    opacity: 0.5;
}

.image-placeholder-lg {
    min-height: 420px;
    border-radius: var(--radius);
}

/* วงกลม placeholder */
.circle-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #b0c8e0 0%, #7ea8c8 60%, #5b8db8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.circle-sm {
    width: 100px;
    height: 100px;
}

.placeholder-number {
    font-family: var(--font-en);
    font-size: 56px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
    z-index: 1;
}

.circle-placeholder .placeholder-number {
    font-size: 36px;
}

.circle-sm .placeholder-number {
    font-size: 24px;
}

/* ============================================= */
/* BUTTONS                                        */
/* ============================================= */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: var(--font-th);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--tr);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--grad-main);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 12px 34px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Link arrow */
.link-arrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--tr);
}

.link-arrow span {
    transition: transform var(--tr);
}

.link-arrow:hover {
    color: var(--primary);
}

.link-arrow:hover span {
    transform: translateX(4px);
}

/* ============================================= */
/* SECTION HEADERS                                */
/* ============================================= */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.label-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.label-line-left {
    justify-content: flex-start;
}

.line-left,
.line-right {
    flex: 1;
    max-width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.section-label {
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--primary-light);
    white-space: nowrap;
}

.section-label.light {
    color: rgba(255, 255, 255, 0.7);
}

.section-title {
    font-family: var(--font-th);
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.section-title.text-left {
    text-align: left;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================= */
/* SWEEP BANNERS — แถบโฉบจากซ้าย/ขวา              */
/* ปรับความเข้ม สี ขนาด ได้ตรงนี้                  */
/* ============================================= */
.section-banner {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.sweep-in-left {
    top: 30px;
    left: -100%;
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), var(--primary-light), transparent);
    border-radius: 2px;
    animation: sweepLeft 3s ease-out forwards;
}

.sweep-in-right {
    top: 60px;
    right: -100%;
    width: 60%;
    height: 3px;
    background: linear-gradient(270deg, transparent, rgba(46, 125, 230, 0.2), rgba(74, 159, 229, 0.4), transparent);
    border-radius: 2px;
    animation: sweepRight 3.5s 0.5s ease-out forwards;
}

.sweep-in-right-alt {
    bottom: 40px;
    right: -100%;
    width: 50%;
    height: 3px;
    background: linear-gradient(270deg, transparent, rgba(46, 125, 230, 0.15), rgba(74, 159, 229, 0.3), transparent);
    border-radius: 2px;
    animation: sweepRight 4s 0.3s ease-out forwards;
}

.sweep-in-left-alt {
    bottom: 60px;
    left: -100%;
    width: 55%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(46, 125, 230, 0.15), rgba(74, 159, 229, 0.3), transparent);
    border-radius: 2px;
    animation: sweepLeft 4s 0.3s ease-out forwards;
}

@keyframes sweepLeft {
    0% {
        left: -100%;
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    100% {
        left: 0;
        opacity: 0.6;
    }
}

@keyframes sweepRight {
    0% {
        right: -100%;
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    100% {
        right: 0;
        opacity: 0.6;
    }
}

/* ============================================= */
/* ส่วนที่ 0: HEADER                               */
/* ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    transition: all var(--tr);
    background: transparent;
}

.header.scrolled {
    background: rgba(10, 22, 40, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    height: 70px;
}

.header-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-icon {
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    height: 58px;
    width: auto;
    object-fit: contain;
    transition: none !important;
}

.logo-text {
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo-sub {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    opacity: 0.8;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 18px;
    border-radius: 50px;
    transition: all var(--tr-fast);
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

/* Dropdown menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 100%;
    background: transparent;
    list-style: none;
    padding: 4px 0 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--tr);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.dropdown-link {
    display: block;
    padding: 8px 18px;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--tr-fast);
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-link:hover,
.dropdown-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--tr);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================= */
/* ส่วนที่ 1: HERO — Split Layout                  */
/* ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0a1628 0%, #112240 30%, #1a3a6b 60%, #0f2744 100%);
    z-index: 0;
}

/* Animated diagonal banners in hero */
.hero-banner {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.banner-sweep-left {
    top: 18%;
    left: -100%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 30%, rgba(255, 255, 255, 0.12) 70%, transparent 100%);
    transform: rotate(-3deg);
    animation: heroSweepL 2.5s 0.5s ease-out forwards;
}

.banner-sweep-right {
    top: 90%;
    right: -100%;
    width: 60%;
    height: 2px;
    background: linear-gradient(270deg, transparent 0%, rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
    transform: rotate(2deg);
    animation: heroSweepR 3s 1s ease-out forwards;
}

.banner-sweep-left-2 {
    top: 50%;
    left: -100%;
    width: 90%;
    height: 0px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    transform: rotate(-1.5deg);
    animation: heroSweepL 3.5s 1.5s ease-out forwards;
}

.banner-sweep-right-2 {
    top: 40%;
    right: -100%;
    width: 100%;
    height: 0px;
    background: linear-gradient(270deg, transparent 0%, rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
    transform: rotate(1.5deg);
    animation: heroSweepR 3.5s 0.8s ease-out forwards;
}

.banner-sweep-left-3 {
    top: 70%;
    left: -100%;
    width: 80%;
    height: 0px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 40%, rgba(255, 255, 255, 0.08) 80%, transparent 100%);
    transform: rotate(-2.5deg);
    animation: heroSweepL 4s 2s ease-out forwards;
}

@keyframes heroSweepL {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: -5%;
        opacity: 0.7;
    }
}

@keyframes heroSweepR {
    0% {
        right: -100%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        right: -5%;
        opacity: 0.7;
    }
}

/* ============================================= */
/* SWEEP LINES SECTION — เส้นโฉบเฉี่ยว             */
/* ============================================= */
.sweep-lines-section {
    position: relative;
    width: 100%;
    height: 40px;
    overflow: hidden;
    background: var(--light);
}

/* Split layout: รูปซ้าย + ข้อความ+cert ขวา */
.hero-split {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr 1.56fr;
    align-items: center;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 0 12%;
    padding: 0;
    gap: 0;
}

/* ด้านซ้าย: รูปภาพ placeholder */
.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image-placeholder {
    width: 140%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #c0d4e8 0%, #8aafc8 50%, #6b9bb8 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.hero-image-placeholder .placeholder-number {
    font-size: 120px;
    color: rgba(255, 255, 255, 0.4);
}

/* Real company image in hero - same size/shape as the placeholder */
.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    display: block;
    position: absolute;
    inset: 0;
}

/* Real product images inside circular frames */
.product-circle-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* column ขวา: ข้อความ + cert circles */
.hero-right-col {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: -80px;
    left: 110px;
    align-self: center;
}

/* ด้านขวา: กล่องข้อความ */
.hero-text-box {
    position: relative;
    z-index: 2;
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(46, 125, 230, 0.15);
    border-radius: var(--radius);
    padding: 3px 36px;
    width: calc(100% + 155px);
    min-height: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-label {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-en);
    font-size: 42px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
    margin-bottom: 4px;
    line-height: 1.1;
}

.hero-title-sub {
    font-family: var(--font-en);
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 11px;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 52px;
}

/* Certification circles — ใต้ text box จัดเรียงให้พอดีกับกรอบ */
.hero-certifications {
    position: absolute;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    top: calc(100% + 15px);
    left: calc(50% + 77.5px);
    transform: translateX(-50%);
    width: calc(100% + 155px);
}

.cert-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 3px solid rgba(46, 125, 230, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tr);
    backdrop-filter: blur(8px);
    padding: 3px;
    box-sizing: border-box;
}

.cert-circle:hover {
    border-color: #ffffff;
    background: rgba(46, 125, 230, 0.25);
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(74, 159, 229, 0.85), 0 0 10px rgba(255, 255, 255, 0.5);
}

.cert-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cert-number {
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.cert-label {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* ============================================= */
/* ส่วนที่ 2: SERVICES — Alternating Layout        */
/* ============================================= */
.services {
    position: relative;
    padding: var(--sec-pad) 0;
    background: var(--white);
    overflow: hidden;
}

.services-showcase {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-circle-wrap {
    position: relative;
    flex-shrink: 0;
}

.service-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--tr);
    position: relative;
    z-index: 1;
}

.service-circle:hover {
    transform: scale(1.05);
}

.service-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 240px;
    height: 240px;
    border: 2px dashed rgba(46, 125, 230, 0.2);
    border-radius: 50%;
    animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.service-info {
    flex: 1;
}

.service-info h3 {
    font-family: var(--font-th);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.service-info p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 18px;
}

/* ============================================= */
/* ส่วนที่ 3: PRODUCTS — 7 Circles Grid            */
/* ============================================= */
.products {
    position: relative;
    padding: var(--sec-pad) 0;
    background: var(--light);
    overflow: hidden;
}

.products-circles-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* แถวแรก: 5 ชิ้น */
.products-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

/* แถวที่ 2: 4 ชิ้น สลับฟันปลา — offset ครึ่งช่อง */
.products-row-4 {
    /* ขยับไปซ้ายครึ่งช่องเพื่อให้ซิกแซก */
    /* แต่ละ item กว้าง ~150px + gap 40px = ~190px per สล็อต, ครึ่งช่อง ≈ 95px */
    padding-left: 0;
    padding-right: 0;
    /* Center naturally since 4 < 5 items */
}

.product-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: all var(--tr);
    cursor: pointer;
}

.product-circle-item:hover {
    transform: translateY(-6px);
}

.product-circle-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(46, 125, 230, 0.2);
    box-shadow: var(--shadow-md);
    transition: all var(--tr);
}

.product-circle-item:hover .product-circle-img {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.product-circle-label {
    font-family: var(--font-th);
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-dark);
    text-align: center;
    max-width: 140px;
    line-height: 1.4;
}

/* ============================================= */
/* ส่วนที่ 4: ABOUT                                */
/* ============================================= */
.about {
    position: relative;
    padding: var(--sec-pad) 0;
    background: var(--white);
    overflow: hidden;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-features {
    margin: 28px 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    flex-shrink: 0;
}

.about-visual {
    position: relative;
}

.about-stats-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--grad-main);
    color: var(--white);
    padding: 24px 30px;
    border-radius: var(--radius);
    display: flex;
    gap: 24px;
    box-shadow: var(--shadow-lg);
}

.stat-box {
    text-align: center;
}

.stat-num {
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 800;
    display: block;
}

.stat-txt {
    font-size: 12px;
    opacity: 0.8;
}

/* ============================================= */
/* ส่วนที่ 5: STRATEGIC                            */
/* ============================================= */
.strategic {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.strategic-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a6b 50%, #163a65 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.strategic-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strategic-placeholder .placeholder-number {
    font-size: 250px;
    color: rgba(255, 255, 255, 0.03);
}

.strategic-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(46, 125, 230, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.strategic-sweep {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    height: 1px;
}

.sweep-1 {
    top: 30%;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 125, 230, 0.2), transparent);
    animation: sweepPulse 4s ease-in-out infinite;
}

.sweep-2 {
    bottom: 25%;
    left: 0;
    width: 100%;
    background: linear-gradient(270deg, transparent, rgba(74, 159, 229, 0.15), transparent);
    animation: sweepPulse 5s 1s ease-in-out infinite;
}

@keyframes sweepPulse {

    0%,
    100% {
        transform: translateX(-30%);
        opacity: 0.3;
    }

    50% {
        transform: translateX(30%);
        opacity: 0.7;
    }
}

.strategic-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.strategic-title {
    font-family: var(--font-th);
    font-size: 38px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.5;
}

.strategic-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    margin-bottom: 50px;
}

.strategic-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.strat-stat {
    text-align: center;
}

.strat-num {
    font-family: var(--font-en);
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    display: block;
}

.strat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* ============================================= */
/* ส่วนที่ 6: KNOWLEDGE                            */
/* ============================================= */
.knowledge {
    position: relative;
    padding: var(--sec-pad) 0;
    background: var(--white);
    overflow: hidden;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.knowledge-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--tr);
    border: 1px solid rgba(46, 125, 230, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 24px 24px;
    text-align: center;
}

.knowledge-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.knowledge-img-wrap {
    margin-bottom: 20px;
}

.knowledge-body {
    padding: 20px;
}

.tag {
    display: inline-block;
    padding: 4px 14px;
    margin-bottom: 10px;
    background: rgba(46, 125, 230, 0.08);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 500;
    border-radius: 50px;
}

.knowledge-body h3 {
    font-family: var(--font-th);
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.5;
}

.knowledge-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 14px;
}

/* ============================================= */
/* ส่วนที่ 7: ACTIVITIES — Train Layout             */
/* ============================================= */
.activities {
    padding: var(--sec-pad) 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

/* Train container */
.train-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 300px;
    position: relative;
}

/* หัวรถไฟ — มุมโค้งรอบทุกด้าน แยกออกจากตัวรถ */
a.train-head,
.train-head {
    text-decoration: none;
    flex-shrink: 0;
    width: 300px;
    background: var(--grad-main);
    border-radius: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
    margin-right: -20px;
    cursor: pointer;
    transition: all var(--tr-fast);
}

a.train-head:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(46, 125, 230, 0.4);
}

a.train-head:active {
    transform: scale(0.97) translateY(2px);
    box-shadow: var(--shadow-sm);
}

.train-head-label {
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.train-head-sub {
    font-family: var(--font-th);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.6;
}

/* ตัวรถไฟ (body) — รูปทรงวงรี: คางหมูโค้งซ้าย + สี่เหลี่ยมตรงกลาง + คางหมูโค้งขวา */
.train-body {
    flex: 1;
    display: flex;
    gap: 0;
    border: 2px solid rgba(46, 125, 230, 0.15);
    border-radius: 70px / 50%;
    overflow: hidden;
    background: var(--white);
    position: relative;
    z-index: 1;
    padding: 24px 40px 12px 40px;
    box-shadow: var(--shadow-sm);
}

/* แต่ละตู้ */
.train-car {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(46, 125, 230, 0.1);
    transition: all var(--tr);
    overflow: hidden;
}

.train-car:last-child {
    border-right: none;
}

.train-car:hover {
    background: rgba(46, 125, 230, 0.03);
}

.train-car-img {
    height: 220px;
    overflow: hidden;
}

.train-car-img .image-placeholder {
    min-height: 220px;
    transition: transform var(--tr-slow);
}

.train-car:hover .train-car-img .image-placeholder {
    transform: scale(1.05);
}

.train-car-info {
    padding: 6px 14px 8px;
}

.activity-date {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 500;
}

.train-car-info h4 {
    font-family: var(--font-th);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 2px;
    line-height: 1.4;
}

/* ============================================= */
/* ส่วนที่ 8: CONTACT                              */
/* ============================================= */
.contact {
    position: relative;
    padding: var(--sec-pad) 0;
    background: var(--white);
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.contact-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.c-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-form-box {
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(46, 125, 230, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(46, 125, 230, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-th);
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--tr-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(46, 125, 230, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ============================================= */
/* ส่วนที่ 9: FOOTER                               */
/* ============================================= */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.7;
}

.footer-col h4 {
    font-family: var(--font-th);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--tr-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact {
    position: relative;
    left: 0;
    top: -5px;
}

.footer-contact li {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.5;
}

/* ============================================= */
/* ANIMATIONS                                     */
/* ============================================= */
.animate-slide-right {
    opacity: 0;
    transform: translateX(-60px);
    animation: slideRight 1s 0.3s ease-out forwards;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(60px);
    animation: slideLeft 1s 0.6s ease-out forwards;
}

.animate-pop {
    opacity: 0;
    transform: scale(0.5);
    animation: popIn 0.6s ease-out forwards;
}

.animate-pop:nth-child(1) {
    animation-delay: 1s;
}

.animate-pop:nth-child(2) {
    animation-delay: 1.15s;
}

.animate-pop:nth-child(3) {
    animation-delay: 1.3s;
}

.animate-pop:nth-child(4) {
    animation-delay: 1.45s;
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* PAGE REDESIGN V2 — Shared Elements              */
/* ============================================= */
.page-section-title {
    font-family: var(--font-en);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.page-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--grad-main);
    border-radius: 4px;
    margin: 14px auto 0;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    transition: all var(--tr-fast);
}

.link-arrow:hover {
    color: var(--primary);
    gap: 14px;
}

.link-arrow span {
    font-size: 16px;
    transition: transform var(--tr-fast);
}

.link-arrow:hover span {
    transform: translateX(4px);
}

.btn-full {
    width: 100%;
    text-align: center;
    display: block;
}

/* ============================================= */
/* SERVICES V2 — Image Left + Text Right Rows      */
/* ============================================= */
.services-v2 {
    position: relative;
    padding: var(--sec-pad) 0;
    background: var(--white);
    overflow: hidden;
}

.service-row-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-row {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 50px;
    align-items: center;
}

.service-row-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    min-height: 260px;
}

.service-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-row-img .image-placeholder {
    min-height: 260px;
}

.service-row-text h3 {
    font-family: var(--font-th);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.service-row-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 18px;
}

/* ============================================= */
/* PRODUCTS V2 — Circle Grid + Detail Rows         */
/* ============================================= */
.products-v2 {
    position: relative;
    padding: var(--sec-pad) 0;
    background: var(--light);
    overflow: hidden;
}

.product-circle-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 50px;
    max-width: 700px;
    margin: 0 auto 70px;
}

.product-circle-item-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--tr);
}

.product-circle-item-v2:hover {
    transform: translateY(-6px);
}

.product-circle-img-v2 {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(46, 125, 230, 0.2);
    box-shadow: var(--shadow-sm);
    transition: all var(--tr);
}

.product-circle-item-v2:hover .product-circle-img-v2 {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.circle-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0fe 0%, #d6e4f7 100%);
    color: rgba(26, 58, 107, 0.25);
    font-family: var(--font-en);
    font-weight: 800;
}

.circle-placeholder .placeholder-number {
    font-size: 36px;
}

.product-label-v2 {
    font-family: var(--font-th);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
    text-align: center;
    max-width: 120px;
}

.product-detail-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.product-detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
}

.product-detail-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(46, 125, 230, 0.15);
    box-shadow: var(--shadow-md);
}

.product-detail-circle .circle-placeholder {
    border-radius: 50%;
}

.product-detail-text h3 {
    font-family: var(--font-th);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.product-detail-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 16px;
}

/* ============================================= */
/* KNOWLEDGE V2 — Card Grid + Article List         */
/* ============================================= */
.knowledge-v2 {
    position: relative;
    padding: var(--sec-pad) 0;
    background: var(--white);
    overflow: hidden;
}

.knowledge-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 70px;
}

.knowledge-card-v2 {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(46, 125, 230, 0.06);
    transition: all var(--tr);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.knowledge-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.knowledge-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.knowledge-card-img .image-placeholder {
    min-height: 100%;
}

.knowledge-card-label {
    font-family: var(--font-th);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 14px 18px;
    text-align: center;
}

/* Article list */
.knowledge-article-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.knowledge-article {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(46, 125, 230, 0.06);
    transition: all var(--tr);
}

.knowledge-article:hover {
    box-shadow: var(--shadow-sm);
}

.article-top {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.article-img {
    overflow: hidden;
}

.article-img .image-placeholder {
    min-height: 220px;
}

.article-intro {
    padding: 28px 30px;
}

.article-intro h3 {
    font-family: var(--font-th);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.5;
}

.article-intro p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.article-body {
    padding: 0 30px 28px;
}

.article-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 14px;
}

/* ============================================= */
/* ABOUT V2 — Company Intro + Activities           */
/* ============================================= */
.about-v2 {
    position: relative;
    padding: var(--sec-pad) 0;
    background: var(--white);
    overflow: hidden;
}

.company-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.company-intro-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 380px;
    position: relative;
}

.image-placeholder-lg {
    min-height: 380px;
}

.company-intro-text h3 {
    font-family: var(--font-en);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.company-intro-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 16px;
}

/* About Activities */
.about-activities {
    padding: 60px 0 var(--sec-pad);
    background: var(--light);
    overflow: hidden;
    position: relative;
}

/* "Just do it" motto banner — vibrant gradient with decorative pattern */
.about-motto-banner {
    text-align: center;
    padding: 48px 20px;
    background: var(--grad-main);
    position: relative;
    overflow: hidden;
}

.about-motto-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 30px,
            rgba(255, 255, 255, 0.02) 30px,
            rgba(255, 255, 255, 0.02) 60px);
    pointer-events: none;
}

.about-motto-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.04) 50%, transparent 75%);
    animation: shimmerBanner 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerBanner {
    0% {
        transform: translateX(-30%);
    }

    100% {
        transform: translateX(30%);
    }
}

.about-motto-banner h2 {
    font-family: var(--font-en);
    font-size: 52px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 8px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Gallery — zigzag pattern: top-bottom-top-bottom, equal size, symmetric */
.about-gallery {
    position: relative;
    width: 100%;
    max-width: 1215px;
    margin: 50px auto 60px;
    height: 450px;
}

.about-gallery.gallery-hidden {
    display: none !important;
}

.gallery-item {
    position: absolute;
    width: 360px;
    height: 285px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--tr);
    border: 3px solid rgba(255, 255, 255, 0.7);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.gallery-item .image-placeholder,
.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

/* 13 — top-left */
.gallery-item-1 {
    left: 0;
    top: 0;
    z-index: 1;
}

/* 14 — bottom, overlaps 13 right side (in front of 15) */
.gallery-item-2 {
    left: 285px;
    top: 165px;
    z-index: 3;
}

/* 15 — top, overlaps 14 right side (behind 14) */
.gallery-item-3 {
    left: 570px;
    top: 0;
    z-index: 2;
}

/* 16 — bottom, overlaps 15 right side */
.gallery-item-4 {
    left: 855px;
    top: 165px;
    z-index: 4;
}


.about-activities-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-activities-text.gallery-hidden {
    margin-top: 40px;
}

.about-activities-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 14px;
}

/* ============================================= */
/* CONTACT V2 — Map + Form Layout                  */
/* ============================================= */
.contact-v2 {
    position: relative;
    padding: var(--sec-pad) 0;
    background: var(--white);
    overflow: hidden;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-map-box {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-form-v2 {
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(46, 125, 230, 0.08);
}

/* Select dropdown styling */
.form-group select {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(46, 125, 230, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-th);
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--tr-fast);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a3a6b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px;
    cursor: pointer;
}

.form-group select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(46, 125, 230, 0.1);
}

/* ============================================= */
/* ============================================= */
/* RESPONSIVE DESIGN — Standardized across all pages */
/* ============================================= */

/* 1024px — Tablet / Small Laptop */
@media (max-width: 1024px) {
    :root {
        --sec-pad: 80px;
    }

    .container {
        padding: 0 20px;
    }

    /* Hero adjustments */
    .hero-split {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
        margin-left: 0;
        width: 100%;
    }

    .hero-text-box {
        margin-left: 0;
        margin-top: -30px;
        padding: 30px 24px;
        width: 100%;
        top: 0;
        left: 0;
    }

    .hero-right-col {
        margin-left: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-image-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        min-height: auto;
        margin: 0 auto;
    }

    .hero-certifications {
        position: relative;
        justify-content: center;
        padding: 0;
        top: 0;
        left: 0;
        transform: none;
        margin-top: 25px;
        margin-bottom: 30px;
        gap: 12px;
        width: 100%;
    }

    /* Stats Mobile Fix */
    .strategic-stats {
        flex-wrap: wrap;
        gap: 20px 40px !important;
        justify-content: center !important;
    }

    .strat-num {
        font-size: 36px !important;
    }

    .strat-label {
        font-size: 13px !important;
    }

    /* Shared layouts */
    .service-row,
    .product-detail-row,
    .article-top,
    .company-intro {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .service-row-img,
    .product-detail-circle,
    .company-intro-img {
        margin: 0 auto;
        width: 100% !important;
        max-width: none !important;
        min-height: 300px;
        position: relative;
    }

    .service-row-img .image-placeholder,
    .company-intro-img .image-placeholder,
    .contact-map-box .image-placeholder {
        aspect-ratio: 16/9;
        height: auto;
        min-height: auto;
    }

    .image-placeholder-lg {
        min-height: 300px;
        /* Instead of 380px desktop */
    }

    .knowledge-card-grid,
    .activities-grid,
    .products-showcase,
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 768px — Mobile Landscape / Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --sec-pad: 60px;
        --header-h: 70px;
    }

    /* Header & Mobile Drawer */
    .header {
        height: var(--header-h);
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-sub {
        font-size: 11px;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 30px 40px;
        transition: right var(--tr-slow);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 8px;
    }

    .nav-link {
        display: block;
        padding: 16px 20px;
        font-size: 18px;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.03);
    }

    /* Mobile Dropdown - Expanded by default in drawer */
    .nav-dropdown .dropdown-toggle::after {
        content: ' ▾';
        font-size: 12px;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: none;
        box-shadow: none;
        padding: 5px 15px;
        margin-top: 5px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        border-radius: var(--radius-sm);
    }

    .dropdown-link {
        text-align: left;
        padding: 10px 15px;
        font-size: 15px;
    }

    /* Hero / Banner */
    .hero-title {
        font-size: 32px;
    }

    .hero-title-sub {
        font-size: 12px;
        letter-spacing: 6px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text-box {
        margin-top: 15px;
    }

    .page-hero-title {
        font-size: 32px;
    }

    /* Grids */
    .products-circles-grid {
        gap: 30px;
    }

    .products-row {
        flex-wrap: wrap;
        gap: 30px 20px;
        justify-content: center;
    }

    .products-row-5 .product-circle-item,
    .products-row-4 .product-circle-item {
        width: calc(50% - 10px);
    }

    .products-row-5 .product-circle-item:nth-child(3) {
        width: 100%;
    }

    .products-row-4 .product-circle-item:nth-child(1),
    .products-row-4 .product-circle-item:nth-child(4) {
        width: 100%;
    }

    .product-circle-img {
        width: 110px;
        height: 110px;
    }

    .quick-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .about-gallery {
        position: static !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        height: auto !important;
        width: 100% !important;
        transform: none !important;
        margin: 30px 0 !important;
    }

    .gallery-item {
        position: relative !important;
        width: 100% !important;
        height: 180px !important;
        margin: 0 !important;
        transform: none !important;
        z-index: 1 !important;
    }

    .gallery-item-1,
    .gallery-item-2,
    .gallery-item-3,
    .gallery-item-4 {
        left: auto !important;
        top: auto !important;
    }

    .gallery-item .image-placeholder {
        min-height: auto !important;
        height: 100% !important;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .footer-brand {
        left: 0;
        top: 0;
        text-align: center;
    }

    .footer-contact {
        position: relative;
        left: 0;
        top: 0;
        text-align: center;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .company-intro-img {
        width: 100% !important;
        max-width: none !important;
        min-height: 250px;
        position: relative;
    }

    .image-placeholder-lg {
        min-height: 250px;
        height: auto;
        aspect-ratio: 16/9;
    }

    .contact-map-box .image-placeholder {
        aspect-ratio: 4/3;
        min-height: 350px !important;
    }

    .footer-contact ul {
        display: inline-block;
        text-align: left;
        /* Keep icons aligned left but block-centered */
    }

    .footer-contact h4 {
        margin-bottom: 15px;
    }

    /* Contact Page Mobile Fixes - Repositioned for correct override */
    .contact-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    .contact-form-v2 {
        order: 1 !important;
        width: 100% !important;
    }

    .contact-map-box {
        order: 2 !important;
        width: 100% !important;
        margin-top: 20px;
    }

    .contact-map-box .image-placeholder {
        aspect-ratio: 4/3 !important;
        min-height: 350px !important;
        height: auto !important;
    }
}

/* 480px — Mobile Portrait */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title,
    .page-section-title {
        font-size: 24px;
    }

    .knowledge-card-grid,
    .products-showcase,
    .activities-grid,
    .knowledge-grid,
    .footer-grid,
    .about-features {
        grid-template-columns: 1fr;
    }

    .product-circle-img {
        width: 110px;
        height: 110px;
    }

    .about-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .gallery-item {
        height: 140px !important;
    }

    .train-container {
        flex-direction: column;
        min-height: auto;
    }

    .train-head {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        border-radius: 30px;
    }

    .train-body {
        flex-direction: column;
        padding: 20px;
        border-radius: 30px;
    }

    .train-car {
        border-right: none;
        border-bottom: 1px solid rgba(46, 125, 230, 0.1);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .train-car:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .train-car-img {
        height: auto;
        aspect-ratio: 16/9;
    }

    .train-car-img .image-placeholder {
        min-height: auto;
        height: 100%;
    }

    /* Global image placeholder reset for very small screens */
    .image-placeholder {
        min-height: auto;
    }

    .contact-map-box .image-placeholder {
        min-height: 300px !important;
        aspect-ratio: 1/1 !important;
        width: 100% !important;
    }
}

/* ============================================= */
/* PAGE HERO — แบนเนอร์บนหน้าแยก                  */
/* ============================================= */
.page-hero {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-h);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0a1628 0%, #112240 40%, #1a3a6b 100%);
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero-title {
    font-family: var(--font-th);
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-top: 10px;
}

/* ============================================= */
/* QUICK-NAV SECTION — 4 cards ใต้ hero           */
/* ============================================= */
.quick-nav {
    background: var(--light);
    padding: 60px 0;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.qnav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(46, 125, 230, 0.08);
    transition: all var(--tr);
    cursor: pointer;
    text-decoration: none;
}

.qnav-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 125, 230, 0.25);
}

.qnav-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qnav-label {
    font-family: var(--font-en);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .quick-nav-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ============================================= */
/* FOOTER — 2-column layout + social icons       */
/* ============================================= */
.site-footer {
    background: linear-gradient(180deg, #0a1628 0%, #0d1b33 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 0;
    font-size: 14px;
}

.site-footer .container {
    max-width: 1660px;
    /* Expanded for shift room */
    position: relative;
}

@media (min-width: 1025px) {
    .site-footer .container {
        left: -80px;
        /* Precise 80px shift to the left */
    }
}

.footer-top {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 80px;
    /* Reduced gap - moves contact closer to logo */
    padding-bottom: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 0 1 auto;
    position: relative;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-logo .logo-icon {
    font-size: 28px;
}

.footer-logo .logo-icon img {
    height: 58px;
    width: auto;
    object-fit: contain;
    transition: none !important;
}

.footer-logo .logo-text {
    font-family: var(--font-en);
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
}

.footer-logo .logo-sub {
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 4px;
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-th);
    font-size: 13px;
    margin-top: 6px;
}

.footer-contact h4 {
    font-family: var(--font-th);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact ul li {
    margin-bottom: 8px;
    font-family: var(--font-th);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

/* Social media buttons */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-facebook {
    background: #1877F2;
}

.social-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-youtube {
    background: #FF0000;
}

.social-line {
    background: #06C755;
}

.social-tiktok {
    background: #010101;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-family: var(--font-th);
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 24px;
    }
}

/* ============================================= */
/* VIDEO PLAY OVERLAY & LIGHTBOX MODAL            */
/* ============================================= */
.play-btn-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 5;
}

.train-car-img {
    position: relative;
}

.play-btn-overlay:hover {
    background: rgba(0, 0, 0, 0.4);
}

.play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    padding-left: 6px;
    /* Offset play triangle to center it perfectly */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
    animation: playPulse 2s infinite;
}

.play-btn-overlay:hover .play-icon {
    transform: scale(1.15);
    background: #ffffff;
}

@keyframes playPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Video Lightbox Modal */
.video-lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 860px;
    aspect-ratio: 16/9;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* ============================================= */
/* ACTIVITIES PUBLIC PAGE STYLES                 */
/* ============================================= */
.activities-list-sec {
    padding: 60px 0 100px;
    background: var(--light);
    min-height: 60vh;
}

.activities-list-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.activity-row-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(46, 125, 230, 0.1);
    box-shadow: var(--shadow-sm);
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-row-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.activity-row-media {
    width: 420px;
    flex-shrink: 0;
    position: relative;
    background: #000;
}

.activity-row-media img,
.activity-row-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-row-content {
    padding: 36px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.activity-row-content .date-badge {
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
}

.activity-row-content h3 {
    font-family: var(--font-th);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.4;
}

@media (max-width: 868px) {
    .activity-row-card {
        flex-direction: column;
    }

    .activity-row-media {
        width: 100%;
        height: 240px;
    }

    .activity-row-content {
        padding: 24px;
    }
}