/* ============================================================
   Network Solution Design — Premium Navy & Gold Stylesheet v3
   Light / Dark mode | TH / EN language
   ============================================================ */

/* ── Design Tokens (Light Mode) — Green / White / Blue Theme ── */
:root {
    /* Primary: deep forest green */
    --nsd-navy:         #0d2b1a;
    --nsd-navy-mid:     #14532d;
    --nsd-navy-light:   #166534;

    /* Accent: green (replaces gold) */
    --nsd-gold:         #16a34a;
    --nsd-gold-light:   #22c55e;
    --nsd-gold-dark:    #15803d;

    /* Secondary accent: sky blue */
    --nsd-blue:         #0ea5e9;
    --nsd-blue-dark:    #0284c7;

    /* Surfaces — clean white */
    --bg:               #f0fdf4;
    --bg-alt:           #dcfce7;
    --bg-card:          #ffffff;
    --bg-card-hover:    #f0fdf4;

    /* Text */
    --text:             #0d2b1a;
    --text-muted:       #4a7060;
    --text-inv:         #ffffff;

    /* Borders & shadows */
    --border:           #bbf7d0;
    --border-gold:      rgba(22,163,74,0.30);
    --shadow:           rgba(13,43,26,0.07);
    --shadow-md:        rgba(13,43,26,0.16);
    --shadow-gold:      rgba(22,163,74,0.20);

    /* Always-dark panels */
    --navbar-bg:        #0d2b1a;
    --navbar-text:      rgba(255,255,255,0.88);
    --navbar-hover:     #22c55e;
    --footer-bg:        #052e16;
    --stats-bg:         #0d2b1a;

    /* Ctrl buttons */
    --ctrl-bg:          rgba(255,255,255,0.12);
    --ctrl-border:      rgba(255,255,255,0.28);
    --ctrl-text:        rgba(255,255,255,0.92);
}

/* ── Dark Mode ── */
[data-theme="dark"] {
    --bg:               #052e16;
    --bg-alt:           #071f0e;
    --bg-card:          #0a3d1f;
    --bg-card-hover:    #0f5132;

    --text:             #d1fae5;
    --text-muted:       #6ee7b7;
    --text-inv:         #d1fae5;

    --border:           #14532d;
    --border-gold:      rgba(22,163,74,0.25);
    --shadow:           rgba(0,0,0,0.45);
    --shadow-md:        rgba(0,0,0,0.65);
    --shadow-gold:      rgba(22,163,74,0.15);

    --navbar-bg:        #031a0d;
    --stats-bg:         #031a0d;
    --footer-bg:        #031a0d;
}

/* ── Bootstrap variable sync ── */
[data-bs-theme="light"] {
    --bs-body-color:      #0d2b1a;
    --bs-body-bg:         #f0fdf4;
    --bs-secondary-color: #4a7060;
    --bs-secondary-rgb:   74, 112, 96;
    --bs-card-bg:         #ffffff;
    --bs-border-color:    #bbf7d0;
}
[data-bs-theme="dark"] {
    --bs-body-color:      #d1fae5;
    --bs-body-bg:         #052e16;
    --bs-secondary-color: #6ee7b7;
    --bs-secondary-rgb:   110, 231, 183;
    --bs-card-bg:         #0a3d1f;
    --bs-border-color:    #14532d;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 1.05rem;
    background: var(--bg);
    color: var(--text);
    transition: background 0.35s, color 0.35s;
    margin: 0;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-weight: 700;
}

/* ทุก element ใช้ TH Sarabun PSK เหมือนกันทั้งไทยและอังกฤษ */
*, input, select, textarea, button {
    font-family: inherit;
}

a { text-decoration: none; color: inherit; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nsd-navbar {
    background: var(--navbar-bg) !important;
    border-bottom: 1px solid rgba(201,168,76,0.12);
    padding: 0.65rem 0;
    transition: background 0.35s;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 32px;
}

.brand-logo-sm { width: 24px; gap: 2px; }

.logo-wave {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--nsd-gold);
    transition: width 0.3s;
}

.brand-logo .logo-wave:nth-child(1) { width: 100%; }
.brand-logo .logo-wave:nth-child(2) { width: 70%; }
.brand-logo .logo-wave:nth-child(3) { width: 45%; }
.brand-logo-sm .logo-wave:nth-child(1) { width: 100%; }
.brand-logo-sm .logo-wave:nth-child(2) { width: 70%; }
.brand-logo-sm .logo-wave:nth-child(3) { width: 45%; }

.brand-text { line-height: 1.1; }

.brand-main {
    display: block;
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 1px;
}

.brand-sub {
    display: block;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Nav links */
.nsd-navbar .nav-link {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--navbar-text) !important;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.nsd-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--nsd-gold);
    transition: width 0.3s;
}

.nsd-navbar .nav-link:hover { color: var(--nsd-gold) !important; }
.nsd-navbar .nav-link:hover::after { width: 60%; }

.nav-login-btn {
    border: 1px solid rgba(201,168,76,0.4) !important;
    border-radius: 4px !important;
    padding: 0.35rem 1.2rem !important;
    color: var(--nsd-gold) !important;
}

.nav-login-btn:hover {
    background: var(--nsd-gold) !important;
    border-color: var(--nsd-gold) !important;
    color: #000 !important;
}

/* Dropdown */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 32px var(--shadow-md);
    min-width: 180px;
}

.dropdown-item { color: var(--text); font-size: 0.88rem; padding: 0.5rem 1rem; transition: background 0.2s; }
.dropdown-item:hover { background: var(--bg-alt); color: var(--nsd-navy); }

/* ── Navbar Right Controls ── */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-width: 36px;
    padding: 0 0.65rem;
    background: var(--ctrl-bg);
    border: 1px solid var(--ctrl-border);
    color: var(--ctrl-text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
}

.ctrl-btn-left  { border-radius: 5px 0 0 5px; border-right: none; }
.ctrl-btn-right { border-radius: 0 5px 5px 0; }

.ctrl-btn:hover {
    background: var(--nsd-gold);
    border-color: var(--nsd-gold);
    color: #000;
}

.navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 0.65rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}

.navbar-toggler:focus { box-shadow: none; outline: none; }
.navbar-toggler i { font-size: 1rem; color: rgba(255,255,255,0.85); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Hero Video Section (วิดีโอล้วนๆ ไม่มีอะไรทับ) ── */
.hero-video-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    line-height: 0;
}

.hero-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: unset;
    object-position: center 22%;
    pointer-events: none;
}

/* ซ่อน native video controls ทุกอย่าง */
.hero-video::-webkit-media-controls             { display: none !important; }
.hero-video::-webkit-media-controls-enclosure   { display: none !important; }
.hero-video::-webkit-media-controls-overlay-play-button { display: none !important; }

/* ── Hero Content Section (ข้อความอยู่ใต้วิดีโอ) ── */
.hero-content-section {
    background: var(--nsd-navy);
    padding: 3rem 0 2.5rem;
}

.hcs-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(34,197,94,.35);
    border-radius: 12px;
    padding: .8rem 1.4rem;
    min-width: 100px;
}
.hcs-num {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--nsd-gold);
    line-height: 1;
}
.hcs-lbl {
    font-size: .65rem;
    color: rgba(255,255,255,.65);
    margin-top: .3rem;
    letter-spacing: .04em;
}

.hero-bottom-bar-inline {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.25rem;
}

.hero-inner {
    position: relative;
    z-index: 4;
    flex: 1;
    padding-top: 5rem;
    padding-bottom: 8rem;
}

/* Hero content (left) */
.hero-content { padding: 2rem 0; }

.hero-eyebrow {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--nsd-gold);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--nsd-gold);
    flex-shrink: 0;
}

.hero-title {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-ensuring {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    display: block;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
}

.hero-main {
    font-size: clamp(2.8rem, 6.5vw, 5.2rem);
    color: #ffffff;
    display: block;
    line-height: 1.15;
}

.hero-accent { color: var(--nsd-gold); }

.hero-subtitle-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.hero-sub-filled {
    background: var(--nsd-gold);
    color: #000;
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 0.4rem 1.1rem;
    text-transform: uppercase;
}

.hero-sub-outline {
    border: 1.5px solid rgba(201,168,76,0.5);
    color: rgba(255,255,255,0.8);
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 0.4rem 1.1rem;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    font-style: italic;
    line-height: 1.7;
    max-width: 480px;
}

/* Hero buttons */
.btn-hero-primary {
    display: inline-block;
    background: var(--nsd-gold);
    color: #000;
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn-hero-primary:hover {
    background: var(--nsd-gold-light);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,168,76,0.4);
}

.btn-hero-outline {
    display: inline-block;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    transition: all 0.25s;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(201,168,76,0.6);
    color: var(--nsd-gold);
}

/* ── Hero Visual Panel (right side) ── */
.hero-visual-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
}

.hero-visual {
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
}

.hero-visual-ring-1 {
    width: 360px; height: 360px;
    border-color: rgba(201,168,76,0.12);
    animation: spin-slow 40s linear infinite;
}

.hero-visual-ring-2 {
    width: 270px; height: 270px;
    border-color: rgba(201,168,76,0.22);
    animation: spin-slow 28s linear infinite reverse;
}

.hero-visual-ring-2::before {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--nsd-gold);
    transform: translateX(-50%);
}

.hero-visual-ring-3 {
    width: 185px; height: 185px;
    border-color: rgba(201,168,76,0.35);
    animation: spin-slow 18s linear infinite;
}

.hero-visual-center {
    position: relative;
    z-index: 4;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: rgba(201,168,76,0.08);
    border: 2px solid rgba(201,168,76,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    backdrop-filter: blur(4px);
}

.hero-visual-center i {
    font-size: 2rem;
    color: var(--nsd-gold);
}

.hero-visual-center span {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    text-transform: uppercase;
}

/* Floating stat badges */
.hero-stat {
    position: absolute;
    z-index: 5;
    background: rgba(13,27,46,0.85);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    backdrop-filter: blur(10px);
    text-align: center;
    min-width: 88px;
}

.hero-stat-top    { top: 10px; right: -10px; }
.hero-stat-bottom { bottom: 15px; left: -10px; }

.hero-stat-num {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--nsd-gold);
    line-height: 1;
    display: block;
}

.hero-stat-label {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
    line-height: 1.3;
    display: block;
    margin-top: 0.2rem;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================
   HERO VISUAL V2 — Globe + Orbit Animation
   ============================================================ */
.hv2-wrap {
    position: relative;
    width: 420px;
    height: 420px;
    flex-shrink: 0;
}

/* ── Globe (centered via inset+margin) ── */
.hv2-globe {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%,
        rgba(14,58,120,.8) 0%,
        rgba(10,26,74,.93) 55%,
        rgba(6,15,40,1) 100%);
    border: 1.5px solid rgba(201,168,76,.4);
    box-shadow:
        0 0 0 8px rgba(201,168,76,.05),
        0 0 55px rgba(14,58,120,.55),
        inset 0 0 30px rgba(0,20,80,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 4;
    animation: hv2Glitch 7s infinite;
}

/* latitude lines inside globe */
.hv2-globe-lat {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(201,168,76,.18);
}
.hv2-lat1 { top: 33%; }
.hv2-lat2 { top: 67%; }

/* longitude arcs inside globe */
.hv2-globe-lon {
    position: absolute;
    width: 60%; height: 100%;
    border: 1px solid rgba(201,168,76,.13);
    border-radius: 50%;
    left: 20%;
}
.hv2-lon2 { transform: rotate(60deg); }

/* scan line inside globe */
.hv2-scan-line {
    position: absolute;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,200,255,.6), transparent);
    animation: hv2Scan 3s linear infinite;
}
@keyframes hv2Scan {
    from { top: -2px; opacity: .9; }
    to   { top: 100%; opacity: 0; }
}

/* center icon inside globe */
.hv2-globe-center {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    color: var(--nsd-gold);
    animation: hv2Pulse 2.4s ease-in-out infinite;
}
@keyframes hv2Pulse {
    0%,100% { transform: scale(1);    opacity: 1;  }
    50%      { transform: scale(1.1); opacity: .8; }
}

/* glitch shake */
@keyframes hv2Glitch {
    0%,87%,100% { filter: none; }
    88% { transform: translate(-3px, 1px); filter: hue-rotate(25deg); }
    89% { transform: translate( 3px,-1px); filter: hue-rotate(-25deg) brightness(1.4); }
    90% { transform: translate(-1px, 2px); filter: none; }
    91% { transform: translate( 1px,-1px); }
    92% { transform: translate(0,0); }
}

/* ── Signal rings (centered) ── */
.hv2-signal {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
    border: 1.5px solid rgba(201,168,76,.5);
    pointer-events: none;
    animation: hv2Signal 3.5s ease-out infinite;
}
.hv2-s1 { width: 240px; height: 240px; animation-delay: 0s; }
.hv2-s2 { width: 300px; height: 300px; animation-delay: 1.1s; }
.hv2-s3 { width: 370px; height: 370px; animation-delay: 2.3s; }
@keyframes hv2Signal {
    0%   { opacity: .7;  transform: scale(.9); }
    100% { opacity: 0;   transform: scale(1.1); }
}

/* ── Orbit rings (centered, rotation animation includes translate) ── */
.hv2-orbit {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.12);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.hv2-o1 { width: 280px; height: 280px; animation: hv2Orbit1 11s linear infinite; }
.hv2-o2 { width: 340px; height: 340px; animation: hv2Orbit2 16s linear infinite; }
.hv2-o3 { width: 406px; height: 406px; animation: hv2Orbit3 22s linear infinite; }
@keyframes hv2Orbit1 { to { transform: rotate( 360deg); } }
@keyframes hv2Orbit2 { to { transform: rotate(-360deg); } }
@keyframes hv2Orbit3 { to { transform: rotate( 360deg); } }

/* ── Orbit nodes ── */
.hv2-node {
    position: relative;
    width: 44px; height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    border: 1.5px solid rgba(201,168,76,.5);
    background: rgba(8,18,55,.92);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 14px rgba(201,168,76,.3);
    font-size: .85rem;
    color: var(--nsd-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hv2-node span {
    position: absolute;
    bottom: -22px;
    font-size: .6rem;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
    letter-spacing: .04em;
    font-weight: 600;
}
/* counter-rotate to keep icon upright */
.hv2-o1 .hv2-node { animation: hv2Rev1 11s linear infinite; }
.hv2-o2 .hv2-node { animation: hv2Rev2 16s linear infinite; }
.hv2-o3 .hv2-node { animation: hv2Rev3 22s linear infinite; }
@keyframes hv2Rev1 { to { transform: rotate(-360deg); } }
@keyframes hv2Rev2 { to { transform: rotate( 360deg); } }
@keyframes hv2Rev3 { to { transform: rotate(-360deg); } }

.hv2-node-nature  { border-color:#22c55e; color:#22c55e; box-shadow:0 0 14px rgba(34,197,94,.35); }
.hv2-node-energy  { border-color:#38bdf8; color:#38bdf8; box-shadow:0 0 14px rgba(56,189,248,.35); }
.hv2-node-telecom { border-color:var(--nsd-gold); color:var(--nsd-gold); }

/* ── Particles ── */
.hv2-particles { position: absolute; inset: 0; pointer-events: none; }
.hv2-p { position: absolute; border-radius: 50%; animation: hv2Float 5s ease-in-out infinite; }
.hv2-p1 { width:5px; height:5px; background:#22c55e; top:12%; left:22%; opacity:.7; animation-delay:0s; }
.hv2-p2 { width:3px; height:3px; background:#38bdf8; top:72%; left:18%; opacity:.6; animation-delay:.8s; }
.hv2-p3 { width:4px; height:4px; background:var(--nsd-gold); top:20%; left:78%; opacity:.7; animation-delay:1.6s; }
.hv2-p4 { width:3px; height:3px; background:#22c55e; top:78%; left:72%; opacity:.5; animation-delay:2.4s; }
.hv2-p5 { width:6px; height:6px; background:#38bdf8; top:45%; left:8%;  opacity:.5; animation-delay:1s; }
.hv2-p6 { width:4px; height:4px; background:var(--nsd-gold); top:8%; left:55%; opacity:.6; animation-delay:3s; }
.hv2-p7 { width:3px; height:3px; background:#22c55e; top:88%; left:42%; opacity:.5; animation-delay:2s; }
.hv2-p8 { width:5px; height:5px; background:#38bdf8; top:55%; left:88%; opacity:.6; animation-delay:1.4s; }
@keyframes hv2Float {
    0%,100% { transform: translateY(0) scale(1);    opacity: .6; }
    50%      { transform: translateY(-14px) scale(1.5); opacity: 1; }
}

/* ── Badges ── */
.hv2-badge {
    position: absolute;
    z-index: 6;
    background: rgba(8,18,55,.88);
    border: 1px solid rgba(201,168,76,.4);
    border-radius: 10px;
    padding: .55rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
    animation: hv2BadgePop .7s ease both;
}
.hv2-badge-top { top: 5%; right: 0; animation-delay: .4s; }
.hv2-badge-bot { bottom: 5%; left: 0; animation-delay: .7s; }
@keyframes hv2BadgePop {
    from { opacity: 0; transform: scale(.65) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.hv2-b-num {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--nsd-gold);
    line-height: 1;
}
.hv2-b-lbl {
    font-size: .67rem;
    color: rgba(255,255,255,.65);
    margin-top: .2rem;
    letter-spacing: .04em;
}

/* Side icons (narrow strip on left) */
.hero-side-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 3rem;
}

.hero-icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all 0.25s;
    background: rgba(201,168,76,0.06);
}

.hero-icon-btn:hover {
    background: var(--nsd-gold);
    border-color: var(--nsd-gold);
    color: #000;
    transform: scale(1.1);
}

.hero-side-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(201,168,76,0.3), transparent);
}

/* Bottom contact bar (inline version ใน hero-content-section) */
.hero-bottom-bar { display: none; }

.hero-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    padding: 0 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.hero-contact-item:last-child { border-right: none; }
.hero-contact-item i { color: var(--nsd-gold); font-size: 0.85rem; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--stats-bg);
    padding: 2.5rem 0;
    border-bottom: 2px solid rgba(201,168,76,0.2);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.stat-item {
    padding: 0.5rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.07);
}

.stat-item:last-child { border-right: none; }

.stat-num {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--nsd-gold);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.5px;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-header { margin-bottom: 3rem; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--nsd-gold);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 24px; height: 2px;
    background: var(--nsd-gold);
    flex-shrink: 0;
}

.section-title {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ============================================================
   SERVICES
   ============================================================ */
.section-services { background: var(--bg-alt); }

.service-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid var(--border);
    border-top: 3px solid transparent;
    box-shadow: 0 2px 16px var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nsd-gold-dark), var(--nsd-gold), var(--nsd-gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover::after { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px var(--shadow-md), 0 0 0 1px var(--border-gold);
}

.service-card-featured {
    background: linear-gradient(150deg, var(--nsd-navy) 0%, #102448 100%);
    border-color: rgba(201,168,76,0.2);
}

.service-card-featured::after {
    background: linear-gradient(90deg, var(--nsd-gold-dark), var(--nsd-gold), var(--nsd-gold-light));
    transform: scaleX(1);
}

.service-card-featured .sc-title,
.service-card-featured .sc-desc { color: rgba(255,255,255,0.88); }
.service-card-featured .sc-link { color: var(--nsd-gold); }
.service-card-featured .sc-link:hover { color: var(--nsd-gold-light); }

.sc-icon {
    width: 52px; height: 52px;
    border-radius: 10px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--nsd-navy-light);
    margin-bottom: 1.25rem;
    transition: background 0.2s, color 0.2s;
}

.service-card:hover .sc-icon {
    background: rgba(201,168,76,0.1);
    color: var(--nsd-gold);
}

.service-card-featured .sc-icon {
    background: rgba(255,255,255,0.08);
    color: var(--nsd-gold);
}

.sc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.sc-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.sc-link {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--nsd-navy-light);
    text-transform: uppercase;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sc-link:hover { color: var(--nsd-gold); }

/* ============================================================
   CORE VALUES
   ============================================================ */
.section-values { background: var(--bg); }

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 16px var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px var(--shadow-md), 0 0 0 1px var(--border-gold);
}

.value-card-featured {
    background: linear-gradient(150deg, var(--nsd-navy) 0%, #102448 100%);
    border-color: rgba(201,168,76,0.25);
}

.value-card-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--nsd-gold-dark), var(--nsd-gold), var(--nsd-gold-light));
}

.value-card-featured .vc-title,
.value-card-featured .vc-desc { color: rgba(255,255,255,0.88); }
.value-card-featured .vc-icon { background: rgba(255,255,255,0.08); color: var(--nsd-gold); }

.vc-num {
    position: absolute;
    top: 1rem; right: 1.25rem;
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(201,168,76,0.07);
    line-height: 1;
    user-select: none;
}

.value-card-featured .vc-num { color: rgba(255,255,255,0.05); }

.vc-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--nsd-navy-light);
    margin-bottom: 1.25rem;
    transition: background 0.2s, color 0.2s;
}

.value-card:hover .vc-icon {
    background: rgba(201,168,76,0.1);
    color: var(--nsd-gold);
}

.vc-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.vc-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.78;
    margin: 0;
}

/* ============================================================
   PILLARS
   ============================================================ */
.section-pillars { background: var(--bg); }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 480px;
}

.pillar-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    cursor: default;
    transition: flex .45s cubic-bezier(.4,0,.2,1);
}
.pillars-grid:hover .pillar-card { flex: 1; }
.pillars-grid:hover .pillar-card:hover { flex: 1.7; }

/* Gradient backgrounds */
.pillar-nature {
    background: linear-gradient(160deg, #134e2a 0%, #1a6b35 40%, #2e8b4a 100%);
}
.pillar-energy {
    background: linear-gradient(160deg, #0c4a6e 0%, #075985 40%, #0ea5e9 100%);
}
.pillar-telecom {
    background: linear-gradient(160deg, #0d1b2e 0%, #102448 50%, #1e3a70 100%);
}

/* Dot-grid texture overlay */
.pillar-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.pillar-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem;
    color: #fff;
    width: 100%;
}

.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.2);
}

.pillar-featured .pillar-icon {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.4);
}

.pillar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .75rem;
    letter-spacing: .02em;
}

.pillar-desc {
    font-size: .88rem;
    color: rgba(255,255,255,.82);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 320px;
}

.pillar-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(255,255,255,.5);
    padding-bottom: 2px;
    transition: border-color .2s, opacity .2s;
}
.pillar-link:hover { color: #fff; border-color: #fff; opacity: .9; }

.pillar-featured .pillar-title { color: var(--nsd-gold, #c9a84c); }
.pillar-featured .pillar-link  { border-color: var(--nsd-gold, #c9a84c); color: var(--nsd-gold, #c9a84c); }
.pillar-featured .pillar-link:hover { color: var(--nsd-gold, #c9a84c); }

@media (max-width: 767.98px) {
    .pillars-grid { grid-template-columns: 1fr; min-height: unset; }
    .pillar-card  { min-height: 260px; }
    .pillars-grid:hover .pillar-card,
    .pillars-grid:hover .pillar-card:hover { flex: unset; }
}

/* ============================================================
   CTA
   ============================================================ */
.section-cta { background: var(--bg-alt); }

.cta-box {
    background: linear-gradient(135deg, #0d1b2e 0%, #102448 60%, #0a2060 100%);
    border-radius: 14px;
    padding: 3.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(201,168,76,0.2);
    box-shadow: 0 16px 56px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,168,76,0.08);
}

.cta-deco {
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.cta-deco::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 60%; height: 60%;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.15);
}

.cta-eyebrow {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--nsd-gold);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cta-eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px; height: 2px;
    background: var(--nsd-gold);
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.75rem;
}

.cta-desc {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

.btn-cta-primary {
    display: inline-block;
    background: var(--nsd-gold);
    color: #000;
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.85rem 1.75rem;
    border-radius: 5px;
    text-align: center;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-cta-primary:hover {
    background: var(--nsd-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

.btn-cta-outline {
    display: inline-block;
    border: 1.5px solid rgba(201,168,76,0.35);
    color: rgba(255,255,255,0.8);
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.85rem 1.75rem;
    border-radius: 5px;
    text-align: center;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-cta-outline:hover {
    background: rgba(201,168,76,0.1);
    border-color: var(--nsd-gold);
    color: var(--nsd-gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.nsd-footer { background: var(--footer-bg); }

.footer-title {
    font-family: 'TH Sarabun PSK', 'Sarabun', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--nsd-gold);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.78;
}

.footer-social { display: flex; gap: 0.5rem; }

.footer-social a {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--nsd-gold);
    border-color: var(--nsd-gold);
    color: #000;
    transform: translateY(-2px);
}

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

.footer-list li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    padding: 0.3rem 0 0.3rem 1rem;
    position: relative;
    transition: color 0.2s;
}

.footer-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 1px;
    background: var(--nsd-gold);
}

.footer-list li:hover { color: rgba(255,255,255,0.75); }

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

.footer-contact li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-contact li i { color: var(--nsd-gold); width: 14px; text-align: center; }
.footer-divider { border-color: rgba(255,255,255,0.06); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

.iso-badge {
    font-size: 0.72rem;
    color: rgba(201,168,76,0.7);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* ============================================================
   GENERAL COMPONENTS (Dashboard, Forms, Tables)
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-md);
}

.table { background: var(--bg-card); color: var(--text); }

.table thead th {
    background: var(--bg-alt);
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

.table tbody tr:hover { background: var(--bg-alt); }
.table td, .table th { border-color: var(--border); }

.form-control, .form-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--nsd-gold);
    box-shadow: 0 0 0 0.2rem rgba(201,168,76,0.18);
}

.btn {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .hero-section { min-height: auto; }
    .hero-inner { padding-top: 3rem; padding-bottom: 6rem; }
    .hero-visual-col { display: none !important; }
    .hero-content { padding: 1rem 0; }
}

@media (max-width: 767.98px) {
    .cta-box { padding: 2rem 1.5rem; }
    .hero-main { font-size: clamp(2.2rem, 10vw, 3.5rem); }
}
