/*
Theme Name: KornSystem Modern
Theme URI: https://www.kornsystem.com
Author: Korn System
Description: WordPress Theme สมัยใหม่ สำหรับ Korn System รองรับ PHP 5.6+ และ WordPress 4.0+
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: kornsystem
Tags: industrial, modern, blue, responsive
*/

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Sarabun', 'Prompt', sans-serif;
    color: #111827;
    background: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: #0057FF; text-decoration: none; -webkit-transition: color .2s; transition: color .2s; }
a:hover { color: #FF4D00; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Prompt', 'Sarabun', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: #0A1628;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; color: #4B5563; }

/* =============================================
   LAYOUT
   ============================================= */
.ks-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =============================================
   BUTTONS
   ============================================= */
.ks-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Prompt', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    -webkit-transition: all .2s;
    transition: all .2s;
    line-height: 1;
}
.ks-btn-primary { background: #0057FF; color: #fff; border-color: #0057FF; }
.ks-btn-primary:hover { background: #0044CC; border-color: #0044CC; color: #fff; -webkit-transform: translateY(-2px); transform: translateY(-2px); -webkit-box-shadow: 0 8px 24px rgba(0,87,255,.3); box-shadow: 0 8px 24px rgba(0,87,255,.3); }
.ks-btn-ghost { background: transparent; color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.3); }
.ks-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); }
.ks-btn-outline { background: transparent; color: #0057FF; border-color: #0057FF; }
.ks-btn-outline:hover { background: #0057FF; color: #fff; }
.ks-btn-white { background: #fff; color: #0057FF; border-color: #fff; }
.ks-btn-white:hover { background: #EEF3FF; }

/* =============================================
   TOPBAR
   ============================================= */
.ks-topbar {
    background: #0A1628;
    color: rgba(255,255,255,.55);
    font-size: .75rem;
    padding: 8px 0;
}
.ks-topbar-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
}
.ks-topbar-left, .ks-topbar-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 18px;
}
.ks-topbar-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
}
.ks-topbar a { color: rgba(255,255,255,.55); }
.ks-topbar a:hover { color: #7EB3FF; }
.ks-line-badge {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    background: #06C755;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
}

/* =============================================
   HEADER
   ============================================= */
.ks-header {
    background: #fff;
    border-bottom: 1px solid #F0F4FF;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    -webkit-transition: box-shadow .2s;
    transition: box-shadow .2s;
}
.ks-header.scrolled { -webkit-box-shadow: 0 4px 24px rgba(10,22,40,.1); box-shadow: 0 4px 24px rgba(10,22,40,.1); }
.ks-header-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}

/* Logo */
.ks-logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.ks-logo-mark {
    width: 42px; height: 42px;
    background: #0057FF;
    border-radius: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-family: 'Prompt', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    letter-spacing: -.5px;
}
.ks-logo-name { font-family: 'Prompt', sans-serif; font-weight: 800; font-size: 1rem; color: #0A1628; line-height: 1; }
.ks-logo-tagline { font-size: .65rem; color: #9CA3AF; margin-top: 3px; }

/* Nav */
.ks-nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 2px;
}
.ks-nav ul li { position: relative; }
.ks-nav ul li a {
    display: block;
    padding: 8px 12px;
    font-size: .82rem;
    font-weight: 700;
    color: #374151;
    border-radius: 7px;
    -webkit-transition: all .18s;
    transition: all .18s;
    white-space: nowrap;
}
.ks-nav ul li a:hover,
.ks-nav ul li.current-menu-item > a { color: #0057FF; background: #EEF3FF; }

/* Dropdown */
.ks-nav .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border-radius: 12px;
    -webkit-box-shadow: 0 8px 40px rgba(10,22,40,.14);
    box-shadow: 0 8px 40px rgba(10,22,40,.14);
    border: 1px solid #EEF0F8;
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    -webkit-transform: translateY(-6px);
    transform: translateY(-6px);
    -webkit-transition: all .2s;
    transition: all .2s;
    z-index: 100;
}
.ks-nav li:hover > .sub-menu { opacity: 1; pointer-events: auto; -webkit-transform: translateY(0); transform: translateY(0); }
.ks-nav .sub-menu li a { font-size: .82rem; padding: 9px 13px; border-radius: 7px; }
.ks-nav .sub-menu li a:hover { background: #EEF3FF; color: #0057FF; padding-left: 17px; }

.ks-header-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* Hamburger */
.ks-toggle {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.ks-toggle span { display: block; width: 22px; height: 2px; background: #0A1628; border-radius: 2px; -webkit-transition: all .2s; transition: all .2s; }

/* Mobile nav */
.ks-mobile-nav {
    display: none;
    background: #fff;
    border-top: 1px solid #F0F4FF;
}
.ks-mobile-nav > ul > li { border-bottom: 1px solid #F5F7FF; }
.ks-mobile-nav > ul > li > a { display: block; padding: 13px 24px; font-weight: 700; font-size: .9rem; color: #0A1628; }
.ks-mobile-nav .sub-menu { background: #F8FAFF; padding: 4px 0 8px; }
.ks-mobile-nav .sub-menu li a { display: block; padding: 9px 32px; font-size: .85rem; color: #4B5563; }

/* =============================================
   HERO
   ============================================= */
.ks-hero {
    background: #0A1628;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    overflow: hidden;
    position: relative;
}
.ks-hero:before {
    content: '';
    position: absolute;
    right: 380px; top: -60px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,87,255,.18) 0%, transparent 70%);
    pointer-events: none;
}
.ks-hero-left {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 72px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.ks-hero-eyebrow {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 7px;
    background: rgba(0,87,255,.18);
    border: 1px solid rgba(0,87,255,.3);
    color: #7EB3FF;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}
.ks-pulse {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #0057FF;
    display: inline-block;
    -webkit-animation: ksPulse 2s infinite;
    animation: ksPulse 2s infinite;
}
@-webkit-keyframes ksPulse { 0%,100%{ opacity:1; -webkit-transform:scale(1); transform:scale(1); } 50%{ opacity:.4; -webkit-transform:scale(1.5); transform:scale(1.5); } }
@keyframes ksPulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.4; transform:scale(1.5); } }

.ks-hero h1 { color: #fff; font-size: 3rem; font-weight: 900; letter-spacing: -.03em; margin-bottom: 16px; }
.ks-hero h1 span { color: #0057FF; }
.ks-hero-desc { color: rgba(255,255,255,.55); font-size: 1rem; line-height: 1.75; margin-bottom: 28px; max-width: 420px; }
.ks-hero-actions { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 10px; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-bottom: 36px; }
.ks-hero-stats { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.ks-stat-val { font-family: 'Prompt',sans-serif; font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.ks-stat-lbl { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 4px; }

/* Hero right */
.ks-hero-right {
    width: 360px;
    background: #0057FF;
    padding: 48px 28px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.ks-hero-right-lbl { font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 4px; }
.ks-pill {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 14px 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    -webkit-transition: all .2s;
    transition: all .2s;
}
.ks-pill:hover { background: rgba(255,255,255,.2); -webkit-transform: translateX(4px); transform: translateX(4px); color: #fff; }
.ks-pill-icon {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.15);
    border-radius: 9px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.ks-pill-name { font-family: 'Prompt',sans-serif; font-size: .85rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 3px; }
.ks-pill-cat { font-size: .7rem; color: rgba(255,255,255,.55); }
.ks-pill-arr { margin-left: auto; color: rgba(255,255,255,.4); }

/* =============================================
   FEATURES BAR
   ============================================= */
.ks-fbar { background: #F5F7FF; border-bottom: 1px solid #E2E8FF; padding: 20px 0; }
.ks-fbar-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.ks-fitem {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-right: 1px solid #DDE3FF;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}
.ks-fitem:first-child { padding-left: 0; }
.ks-fitem:last-child { border-right: none; }
.ks-ficon {
    width: 40px; height: 40px;
    background: #0057FF;
    border-radius: 9px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.ks-ftitle { font-size: .8rem; font-weight: 700; color: #0A1628; margin-bottom: 1px; }
.ks-fdesc { font-size: .72rem; color: #9CA3AF; }

/* =============================================
   SECTION BASE
   ============================================= */
.ks-section { padding: 72px 0; }
.ks-sec-white { background: #fff; }
.ks-sec-gray { background: #F8F9FC; }
.ks-sec-dark { background: #0A1628; }
.ks-sec-blue { background: #0057FF; }

.ks-sec-tag {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 7px;
    background: #EEF3FF;
    color: #0057FF;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 100px;
    margin-bottom: 12px;
}
.ks-sec-tag-inv { background: rgba(0,87,255,.18); color: #7EB3FF; }
.ks-sec-subtitle { font-size: 1rem; color: #6B7280; max-width: 520px; margin-bottom: 32px; }
.ks-sec-subtitle-inv { color: rgba(255,255,255,.45); }

/* =============================================
   CATEGORY TABS
   ============================================= */
.ks-tabs { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 6px; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-bottom: 28px; }
.ks-tab {
    padding: 7px 17px;
    border-radius: 100px;
    font-family: 'Prompt',sans-serif;
    font-size: .78rem;
    font-weight: 700;
    border: 1.5px solid #DDE3F5;
    color: #6B7280;
    background: #fff;
    cursor: pointer;
    -webkit-transition: all .18s;
    transition: all .18s;
}
.ks-tab.active, .ks-tab:hover { background: #0057FF; border-color: #0057FF; color: #fff; }

/* =============================================
   PRODUCT CARDS
   ============================================= */
.ks-prod-grid { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: -12px; }
.ks-prod-col { width: 33.3333%; padding: 12px; }
.ks-prod-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #EEF0F8;
    -webkit-transition: all .22s;
    transition: all .22s;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.ks-prod-card:hover { -webkit-transform: translateY(-5px); transform: translateY(-5px); -webkit-box-shadow: 0 16px 48px rgba(0,87,255,.1); box-shadow: 0 16px 48px rgba(0,87,255,.1); border-color: #C8D9FF; }
.ks-prod-img {
    height: 160px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.ks-prod-img img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; -webkit-transition: -webkit-transform .4s; transition: transform .4s; }
.ks-prod-card:hover .ks-prod-img img { -webkit-transform: scale(1.05); transform: scale(1.05); }
.ks-prod-badge { position: absolute; top: 10px; right: 10px; background: #FF4D00; color: #fff; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 100px; }
.ks-prod-body { padding: 16px 18px 0; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.ks-prod-brand { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin-bottom: 5px; }
.ks-prod-card h3 { font-size: .95rem; font-weight: 800; color: #0A1628; margin-bottom: 7px; line-height: 1.35; }
.ks-prod-card p { font-size: .8rem; color: #9CA3AF; line-height: 1.6; margin: 0; }
.ks-prod-footer { padding: 12px 18px; border-top: 1px solid #F5F7FF; margin-top: 14px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
.ks-prod-link { font-size: .78rem; font-weight: 700; color: #0057FF; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 4px; text-decoration: none; -webkit-transition: gap .18s; transition: gap .18s; }
.ks-prod-link:hover { gap: 8px; color: #0044CC; }
.ks-cat-tag { font-size: .65rem; font-weight: 800; padding: 3px 9px; border-radius: 100px; }

/* =============================================
   BRANDS
   ============================================= */
.ks-brands-grid { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: -8px; margin-top: 24px; }
.ks-brand-col { width: 12.5%; padding: 8px; }
.ks-brand-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 18px 12px; text-align: center; cursor: pointer; -webkit-transition: all .2s; transition: all .2s; height: 100%; }
.ks-brand-card:hover { background: rgba(0,87,255,.2); border-color: rgba(0,87,255,.4); -webkit-transform: translateY(-3px); transform: translateY(-3px); }
.ks-brand-icon { width: 44px; height: 44px; background: rgba(0,87,255,.2); border-radius: 10px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; font-size: 1.3rem; color: #7EB3FF; margin: 0 auto 10px; }
.ks-brand-name { font-family: 'Prompt',sans-serif; font-size: .78rem; font-weight: 800; color: rgba(255,255,255,.9); }
.ks-brand-type { font-size: .65rem; color: rgba(255,255,255,.35); margin-top: 3px; }

/* =============================================
   PORTFOLIO
   ============================================= */
.ks-port-grid { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 14px; }
.ks-port-main { -webkit-box-flex: 2; -ms-flex: 2; flex: 2; border-radius: 16px; overflow: hidden; position: relative; min-height: 320px; }
.ks-port-aside { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 14px; }
.ks-port-card { border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; -webkit-transition: -webkit-box-shadow .2s; transition: box-shadow .2s; }
.ks-port-card.sm { min-height: 148px; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.ks-port-card:hover { -webkit-box-shadow: 0 8px 32px rgba(0,0,0,.3); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.ks-port-bg { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; position: absolute; top: 0; left: 0; -webkit-transition: -webkit-transform .45s; transition: transform .45s; }
.ks-port-card:hover .ks-port-bg { -webkit-transform: scale(1.07); transform: scale(1.07); }
.ks-port-overlay { position: absolute; inset: 0; background: -webkit-gradient(linear,left bottom,left top,from(rgba(10,22,40,.88)),color-stop(55%,transparent)); background: linear-gradient(to top,rgba(10,22,40,.88) 0%,transparent 55%); }
.ks-port-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; z-index: 1; }
.ks-port-tag { display: inline-block; background: #0057FF; color: #fff; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 100px; margin-bottom: 7px; }
.ks-port-card h3 { color: #fff; font-size: 1rem; font-weight: 800; line-height: 1.3; }
.ks-port-card.sm h3 { font-size: .85rem; }
.ks-port-card p { color: rgba(255,255,255,.6); font-size: .78rem; margin: 4px 0 0; }

/* =============================================
   CTA BANNER
   ============================================= */
.ks-cta-inner { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; gap: 24px; }
.ks-cta-inner h2 { color: #fff; font-size: 1.8rem; line-height: 1.2; margin-bottom: 6px; }
.ks-cta-inner p { color: rgba(255,255,255,.65); font-size: .9rem; margin: 0; }
.ks-cta-btns { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 10px; -ms-flex-negative: 0; flex-shrink: 0; }

/* =============================================
   CONTACT
   ============================================= */
.ks-contact-grid { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 48px; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
.ks-contact-info { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.ks-citem { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: flex-start; -ms-flex-align: flex-start; align-items: flex-start; gap: 13px; padding: 16px 0; border-bottom: 1px solid #F0F4FF; }
.ks-citem:last-child { border: none; }
.ks-cicon { width: 42px; height: 42px; background: #EEF3FF; border-radius: 10px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; color: #0057FF; font-size: 1.1rem; -ms-flex-negative: 0; flex-shrink: 0; }
.ks-clbl { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #9CA3AF; margin-bottom: 4px; }
.ks-cval { font-size: .9rem; font-weight: 700; color: #0A1628; line-height: 1.5; }
.ks-cval a { color: #0A1628; }
.ks-cval a:hover { color: #0057FF; }

.ks-cform-wrap { width: 420px; -ms-flex-negative: 0; flex-shrink: 0; background: #0A1628; border-radius: 16px; padding: 32px; }
.ks-cform-wrap h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.ks-cform-wrap > p { color: rgba(255,255,255,.45); font-size: .82rem; margin-bottom: 24px; }
.ks-fg { margin-bottom: 14px; }
.ks-fg label { display: block; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.ks-fg input, .ks-fg select, .ks-fg textarea {
    width: 100%;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: #fff;
    padding: 10px 13px;
    font-family: 'Sarabun',sans-serif;
    font-size: .85rem;
    -webkit-transition: border-color .2s;
    transition: border-color .2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.ks-fg input:focus, .ks-fg select:focus, .ks-fg textarea:focus { outline: none; border-color: #0057FF; background: rgba(0,87,255,.1); }
.ks-fg input::-webkit-input-placeholder { color: rgba(255,255,255,.25); }
.ks-fg input::-moz-placeholder { color: rgba(255,255,255,.25); }
.ks-fg textarea { resize: vertical; min-height: 90px; }
.ks-frow { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 12px; }
.ks-frow .ks-fg { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.ks-fsubmit { width: 100%; background: #0057FF; color: #fff; font-family: 'Prompt',sans-serif; font-size: .9rem; font-weight: 800; padding: 12px; border-radius: 8px; border: none; cursor: pointer; -webkit-transition: all .2s; transition: all .2s; margin-top: 4px; }
.ks-fsubmit:hover { background: #0044CC; -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.ks-form-notice { margin-top: 12px; font-size: .82rem; padding: 8px 12px; border-radius: 7px; display: none; }
.ks-form-notice.ok { background: rgba(0,87,255,.15); color: #7EB3FF; display: block; }
.ks-form-notice.err { background: rgba(255,77,0,.15); color: #FF7A4D; display: block; }

/* =============================================
   FOOTER
   ============================================= */
.ks-footer { background: #060D1A; padding: 56px 0 0; }
.ks-footer-grid { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: -12px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ks-fcol-brand { width: 33.3333%; padding: 12px; }
.ks-fcol-nav { width: 22.2222%; padding: 12px; }
.ks-fbrand-text { font-size: .82rem; color: rgba(255,255,255,.35); line-height: 1.75; margin-top: 14px; max-width: 240px; }
.ks-fcol-title { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.ks-footer-col ul li { margin-bottom: 10px; }
.ks-footer-col ul li a { font-size: .82rem; color: rgba(255,255,255,.35); -webkit-transition: color .18s; transition: color .18s; }
.ks-footer-col ul li a:hover { color: #7EB3FF; }
.ks-footer-bot { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; padding: 18px 0; font-size: .72rem; color: rgba(255,255,255,.2); -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 10px; }
.ks-footer-bot a { font-size: .72rem; color: rgba(255,255,255,.2); }
.ks-footer-bot a:hover { color: rgba(255,255,255,.5); }
.ks-fbot-links { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 18px; }

/* =============================================
   WORDPRESS ALIGNMENT
   ============================================= */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.ks-center { text-align: center; }
.ks-mt-24 { margin-top: 24px; }
.ks-mt-40 { margin-top: 40px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media screen and (max-width:1100px) {
    .ks-hero { -webkit-box-orient:vertical; -webkit-box-direction:normal; -ms-flex-direction:column; flex-direction:column; }
    .ks-hero-right { width:100%; -webkit-box-orient:horizontal; -webkit-box-direction:normal; -ms-flex-direction:row; flex-direction:row; -ms-flex-wrap:wrap; flex-wrap:wrap; }
    .ks-brand-col { width:25%; }
    .ks-fcol-brand { width:50%; }
    .ks-fcol-nav { width:25%; }
}
@media screen and (max-width:900px) {
    .ks-nav, .ks-header-actions .ks-btn-outline { display:none; }
    .ks-toggle { display:-webkit-box; display:-ms-flexbox; display:flex; }
    .ks-prod-col { width:50%; }
    .ks-fbar-grid { -ms-flex-wrap:wrap; flex-wrap:wrap; }
    .ks-fitem { width:50%; border-right:none; padding:8px 0; }
    .ks-contact-grid { -webkit-box-orient:vertical; -webkit-box-direction:normal; -ms-flex-direction:column; flex-direction:column; }
    .ks-cform-wrap { width:100%; }
    .ks-port-grid { -webkit-box-orient:vertical; -webkit-box-direction:normal; -ms-flex-direction:column; flex-direction:column; }
    .ks-port-aside { -webkit-box-orient:horizontal; -webkit-box-direction:normal; -ms-flex-direction:row; flex-direction:row; }
    .ks-cta-inner { -webkit-box-orient:vertical; -webkit-box-direction:normal; -ms-flex-direction:column; flex-direction:column; text-align:center; }
}
@media screen and (max-width:600px) {
    h1 { font-size:1.9rem; }
    h2 { font-size:1.5rem; }
    .ks-section { padding:48px 0; }
    .ks-hero h1 { font-size:2.1rem; }
    .ks-hero-right { display:none; }
    .ks-prod-col { width:100%; }
    .ks-brand-col { width:33.3333%; }
    .ks-fcol-brand, .ks-fcol-nav { width:50%; }
    .ks-topbar-left { display:none; }
    .ks-fbar-grid { -webkit-box-orient:vertical; -webkit-box-direction:normal; -ms-flex-direction:column; flex-direction:column; }
    .ks-port-aside { -webkit-box-orient:vertical; -webkit-box-direction:normal; -ms-flex-direction:column; flex-direction:column; }
    .ks-frow { -webkit-box-orient:vertical; -webkit-box-direction:normal; -ms-flex-direction:column; flex-direction:column; }
    .ks-cta-btns { -webkit-box-orient:vertical; -webkit-box-direction:normal; -ms-flex-direction:column; flex-direction:column; }
}
