/* ==========================================================================
   MASTER ARCHITECT: OFFICIAL STYLE SHEET (V-FINAL CONSOLIDATED)
   Updated: 2026 - Optimized & Cleaned
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. IMPORTS & BASE SETTINGS
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Sarabun', sans-serif;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
    opacity: 0; /* Fade In Animation */
    transition: opacity 0.4s ease-in-out;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6,
.brand-name, nav ul li a, .btn, .btn-text-link, button,
.hero-title-large, .section-title h2, .card-title,
.contact-head, .form-header h3, .form-header-modern h2, .job-info-left h4,
.desc-inner h5, .news-title, .news-title-large, 
.footer-col h4, .news-badge, .job-tag-pill, .alert-content h3 {
    font-family: 'Kanit', sans-serif;
}

input, textarea, select, button {
    font-family: 'Sarabun', sans-serif !important;
}

/* --- Variables --- */
:root {
    --primary-color: #102a54;
    --accent-color: #c00510;
    --gold-color: #d4af37;
    --text-light: #ffffff;
    --input-border: #cbd5e1;
    --bg-light: #f8fbff;

    /* Soft Colors */
    --blue-soft: #e3f2fd;
    --red-soft: #fdeaea;
    --gold-soft: #fff8e1;
    --green-soft: #e8f5e9;
    --green-dark: #2e7d32;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

/* --- Global Animations --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes pulse-shadow { 0% { box-shadow: 0 0 0 0 rgba(16, 42, 84, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(16, 42, 84, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 42, 84, 0); } }
@keyframes fly { from { transform: translateX(0); } to { transform: translateX(5px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes floatMap { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
@keyframes pulseGlow { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

/* --------------------------------------------------------------------------
   2. NAVBAR & HEADER
   -------------------------------------------------------------------------- */
header {
    width: 100%;
    height: 90px;
    padding: 0 5%;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Slide-in Background Effect */
header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background-color: #ffffff;
    border-bottom: 4px solid var(--accent-color);
    z-index: -1;
    transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header.scrolled { border-bottom: none; }
header.scrolled::before { width: 100%; }

/* --- Special State: Solid Navbar (For Apply Form / News Detail) --- */
/* สถานะปกติ: พื้นหลังน้ำเงิน ตัวหนังสือขาว */
header.navbar-solid {
    background-color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-bottom: none;
}
header.navbar-solid .brand-name { color: #ffffff !important; text-shadow: none; }
header.navbar-solid .company-name { color: rgba(255,255,255,0.8) !important; }
header.navbar-solid nav ul li a { color: #ffffff !important; text-shadow: none; }
header.navbar-solid .lang-btn { color: rgba(255,255,255,0.7) !important; }
header.navbar-solid .lang-btn.active { color: #ffffff !important; }
header.navbar-solid .hamburger-menu .bar { background-color: #ffffff !important; }

/* สถานะ Scrolled: เปลี่ยนเป็นพื้นหลังขาว ตัวหนังสือเข้ม */
header.navbar-solid.scrolled {
    background-color: #ffffff !important;
}
header.navbar-solid.scrolled .brand-name { color: var(--primary-color) !important; }
header.navbar-solid.scrolled .company-name { color: #666 !important; }
header.navbar-solid.scrolled nav ul li a { color: #333 !important; }
header.navbar-solid.scrolled nav ul li a:hover { color: var(--primary-color) !important; }
header.navbar-solid.scrolled .lang-btn { color: #999 !important; }
header.navbar-solid.scrolled .lang-btn.active { color: var(--primary-color) !important; }
header.navbar-solid.scrolled .hamburger-menu .bar { background-color: #333 !important; }

/* --- Logo Group --- */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; position: relative; z-index: 10; }
.logo-image-group { display: flex; align-items: center; gap: 0; margin-right: 15px; padding-right: 15px; border-right: 1px solid rgba(255,255,255,0.4); height: 50px; transition: 0.3s; }
.brand-logo { height: 45px; width: auto; background: #fff; padding: 3px 5px; border-radius: 4px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }

.brand-name {
    color: #fff; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.5px;
    transition: color 0.4s; text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.company-name {
    color: rgba(255, 255, 255, 0.9); font-size: 0.85rem; font-weight: 300; transition: color 0.4s;
}

header.scrolled .brand-name { color: var(--primary-color); text-shadow: none; }
header.scrolled .company-name { color: #666; }
header.scrolled .logo-image-group { border-right-color: #ddd; }

/* --- Navigation --- */
.nav-container { display: flex; align-items: center; position: relative; z-index: 10; }
nav ul { display: flex; list-style: none; align-items: center; gap: 0; margin: 0; padding: 0; }
nav ul li { margin-left: 20px; position: relative; }

nav ul li a {
    font-size: 0.95rem; font-weight: 500; color: #fff;
    text-decoration: none; position: relative; padding-bottom: 5px;
    transition: color 0.4s ease; text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header.scrolled nav ul li a { color: #333; text-shadow: none; }
header.scrolled nav ul li a:hover { color: var(--primary-color); }

nav ul li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--accent-color); transition: width 0.3s ease; }
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }

/* --- Language & Tools --- */
.lang-switch { margin-left: 25px; color: #fff; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; transition: color 0.4s; }
.lang-btn { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-family: 'Kanit', sans-serif; font-size: 0.9rem; padding: 0; transition: all 0.3s; }
.lang-btn.active, .lang-btn:hover { color: #fff; font-weight: 600; }

header.scrolled .lang-switch { color: #333; }
header.scrolled .lang-btn { color: #999; }
header.scrolled .lang-btn.active { color: var(--primary-color); }

/* --- Hamburger & Dropdown --- */
.hamburger-menu { display: none; flex-direction: column; cursor: pointer; gap: 5px; margin-right: 20px; position: relative; z-index: 10; }
.hamburger-menu .bar { width: 25px; height: 2px; background-color: #fff; border-radius: 2px; transition: background-color 0.4s; }
header.scrolled .hamburger-menu .bar { background-color: #333; }

.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background-color: #fff; min-width: 180px; box-shadow: 0 8px 16px rgba(0,0,0,0.15); border-radius: 8px; z-index: 1001; padding: 8px 0; margin-top: 15px; animation: fadeIn 0.3s ease; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content li { margin: 0; }
.dropdown-content li a { color: #333 !important; padding: 10px 20px; display: block; font-size: 0.9rem; font-weight: 400; text-shadow: none; }
.dropdown-content li a:hover { background-color: #f4f7fa; color: var(--accent-color) !important; }

/* --------------------------------------------------------------------------
   3. HERO SECTIONS
   -------------------------------------------------------------------------- */
.hero-common {
    background-color: var(--primary-color);
    position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    color: #fff; overflow: hidden; padding: 0 20px;
    height: 100vh;
}

.hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(10, 35, 90, 0.8), rgba(10, 35, 90, 0.4)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 1200px; width: 100%; }

/* Page Specific Heights */
.hero-bg-index { height: 100vh !important; background-size: cover; background-position: center; }
.hero-bg-about, .hero-bg-products, .hero-bg-careers,
.hero-bg-contact, .hero-bg-csr, .hero-bg-quote {
    height: 450px !important; background-size: cover; background-position: center;
}

/* Hero Typography */
.hero-title-large { font-size: 4.1rem; font-weight: 800; text-transform: uppercase; color: #ffffff; margin-bottom: 20px; text-shadow: 2px 4px 20px rgba(0,0,0,0.9); line-height: 1.1; letter-spacing: 1px; }

.hero-subtitle-red {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    background-color: transparent;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #fff;
    display: inline-flex; justify-content: center; align-items: center;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 40px; min-height: 1.5em;
}
.cursor {
    display: inline-block; width: 3px; height: 1.2em;
    background-color: var(--primary-color); 
    box-shadow: 0 0 10px #fff, 0 0 20px #fff;
}
.scroll-indicator { position: absolute; bottom: 30px; color: #fff; animation: bounce 2s infinite; text-align: center; z-index: 2; }
.scroll-indicator span { font-size: 0.8rem; letter-spacing: 2px; display: block; margin-bottom: 5px; }

/* --------------------------------------------------------------------------
   4. GLOBAL COMPONENTS & FORMS
   -------------------------------------------------------------------------- */
.section-title { text-align: center; margin-bottom: 40px; padding: 0 20px; }
.section-title h2 { font-size: 2rem; color: var(--primary-color); font-weight: 700; margin-bottom: 10px; }
.section-title p { font-size: 1rem; color: #555; max-width: 700px; margin: 0 auto; }
.line, .line-center { width: 60px; height: 4px; background-color: var(--accent-color); margin: 0 auto 20px; border-radius: 2px; }
.line-center { margin: 15px auto; }
.section-divider { width: 100%; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #cbd5e1 20%, var(--accent-color) 50%, #cbd5e1 80%, rgba(255,255,255,0) 100%); margin: 0; opacity: 0.8; position: relative; z-index: 5; }

/* Buttons */
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 35px; text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-red-hero { background-color: #c00510; color: #fff; border-color: #c00510; box-shadow: 0 5px 15px rgba(192, 5, 16, 0.4); }
.btn-red-hero:hover { background-color: #a0040e; transform: translateY(-3px); }
.btn-white-hero { background-color: #fff; color: var(--primary-color); border-color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-white-hero:hover { background-color: #f0f0f0; color: #000; transform: translateY(-3px); }

.btn-text-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background-color: var(--primary-color, #002D62); color: #ffffff !important;
    padding: 12px 35px; border-radius: 50px; border: none; font-size: 1rem; font-weight: 500; text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 45, 98, 0.2); transition: all 0.3s ease;
}
.btn-text-link i { font-size: 0.9em; transition: transform 0.3s ease; }
.btn-text-link:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 45, 98, 0.4); background-color: #001f4d; }
.btn-text-link:hover i { transform: translateX(5px); }

.btn-blue { display: inline-flex; align-items: center; gap: 8px; background-color: var(--primary-color); color: #fff; padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; box-shadow: 0 5px 15px rgba(16, 42, 84, 0.3); }
.btn-blue:hover { background-color: #1e40af; transform: translateY(-3px); }
.btn-red { display: inline-flex; align-items: center; gap: 8px; background-color: var(--accent-color); color: #fff; padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; box-shadow: 0 5px 15px rgba(227, 6, 19, 0.2); }
.btn-red:hover { background-color: #a0040e; transform: translateY(-3px); }
.btn-gradient { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; margin-top: 15px !important; background: linear-gradient(90deg, var(--accent-color), #ff4b5c); color: #fff; padding: 12px 35px; border-radius: 50px; text-decoration: none; font-weight: 600; box-shadow: 0 5px 15px rgba(192, 5, 16, 0.3); transition: 0.3s; }
.btn-gradient:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(192, 5, 16, 0.4); }

/* Forms */
.form-card { background: #ffffff; border-radius: 15px; padding: 50px 40px; width: 100%; max-width: 900px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); position: relative; border-top: 5px solid var(--primary-color); margin: 0 auto; }
.form-header, .form-header-modern { text-align: center; margin-bottom: 40px; }
.form-header { border-bottom: 1px solid #eee; padding-bottom: 25px; }
.form-header h3, .form-header-modern h2 { color: var(--primary-color); font-weight: 700; margin-bottom: 8px; }
.form-header h3 { font-size: 1.8rem; } .form-header-modern h2 { font-size: 2rem; margin-bottom: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.input-group { margin-bottom: 25px; width: 100%; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; font-size: 0.95rem; }
.input-group .req { color: var(--accent-color); margin-left: 3px; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; background-color: #fdfdfd; color: #333; outline: none; transition: all 0.3s; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { transform: translateY(-3px); border-color: var(--accent-color); box-shadow: 0 10px 20px rgba(192, 5, 16, 0.15); background-color: #fff; }
.input-group.full-width { grid-column: 1 / -1; }
.btn-submit-modern { width: 100%; padding: 15px; background: linear-gradient(135deg, #102a54, #1e40af); color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.4s ease; box-shadow: 0 8px 20px rgba(16, 42, 84, 0.25); display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; }
.btn-submit-modern:hover { transform: translateY(-2px); background: linear-gradient(135deg, #1e40af, #102a54); animation: pulse-shadow 2s infinite; }
.input-readonly { background-color: #f1f5f9 !important; color: #64748b !important; border-color: #e2e8f0 !important; cursor: not-allowed; }
.file-upload-box { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 30px; text-align: center; cursor: pointer; transition: all 0.3s ease; background-color: #f8fafc; }
.file-upload-box:hover { border-color: var(--primary-color); background-color: #eef2ff; }
.upload-icon { font-size: 2.5rem; color: #94a3b8; margin-bottom: 10px; }
.quote-section { padding: 80px 5%; background-color: #f4f7fa; display: flex; justify-content: center; }

/* ✅ Apply Section (Form Padding Fix) */
.apply-section {
    padding: 160px 5% 80px; /* Padding top 160px to avoid navbar overlay */
    background-color: #f4f7fa; 
    display: flex; 
    justify-content: center;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   5. HOME PAGE SECTIONS
   -------------------------------------------------------------------------- */
/* Intro Highlight */
.intro-highlight-section {
    padding: 70px 5% 90px;
    background-color: #ffffff;
    text-align: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
    background-image: url('../images/background.png'), url('../images/background-right.png'), url('../images/background-bottom.png'), url('../images/background-bottom-right.png');
    background-position: left top, right top, left bottom, right bottom;
    background-repeat: no-repeat;
    background-size: clamp(150px, 25vw, 400px) auto;
}
.intro-highlight-section::before { display: none !important; }

.intro-header-box {
    position: relative; background: #fff; padding: 15px 40px; border-radius: 50px; display: inline-block; margin-bottom: 50px;
    border: 2px solid transparent; background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-origin: border-box; background-clip: padding-box, border-box;
    box-shadow: 0 15px 30px rgba(16, 42, 84, 0.1); transition: all 0.4s ease;
}
.intro-header-box:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(16, 42, 84, 0.2); }
.intro-header-box h2 { color: var(--primary-color); font-size: 1.5rem; font-weight: 800; line-height: 1.3; margin: 0; text-transform: uppercase; letter-spacing: 1px; }

.intro-icons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; max-width: 1000px; margin: 0 auto 50px; }
.intro-icon-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow: visible; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); padding: 10px; border-radius: 20px; }
.intro-icon-item:hover { transform: translateY(-15px); }

/* ✅ Intro Icons (Desktop Version) - 130px No Circle */
.icon-img-wrapper {
    width: 130px !important;
    height: 130px !important;
    background-color: transparent; 
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.icon-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform: none !important;
    transition: transform 0.4s ease;
}

.intro-icon-item:hover .icon-img-wrapper {
    background-color: transparent;
    transform: none;
}
.intro-icon-item:hover .icon-img-wrapper img {
    transform: scale(1.2) !important;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.intro-text-content { max-width: 950px; margin: 0 auto; text-align: center; position: relative; }
.intro-text-content p { color: #2c4a85; font-size: 1.15rem; font-weight: 600; line-height: 1.8; margin-bottom: 25px; text-transform: uppercase; }
.intro-text-content::after { content: ''; display: block; width: 150px; height: 4px; background: linear-gradient(90deg, var(--accent-color), var(--primary-color)); margin: 40px auto 0; border-radius: 2px; }

/* Certifications */
.home-cert-section { padding: 80px 5%; background-color: #ffffff; }
.big-master-card { background-color: #f8fafc; border-radius: 24px; padding: 60px 50px; border: 1px solid #eef2f6; box-shadow: 0 10px 40px rgba(0,0,0,0.04); max-width: 1100px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.inner-text-content h2 { font-size: 2.4rem; color: var(--primary-color); font-weight: 800; margin-bottom: 20px; }
.inner-text-content p { color: #64748b; font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
.cert-grid-compact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; width: 100%; }
.cert-card-mini { background: #ffffff; padding: 30px 20px; border-radius: 16px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border: 1px solid #fff; display: flex; flex-direction: column; align-items: center; gap: 15px; transition: all 0.3s ease; }
.cert-card-mini:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(16, 42, 84, 0.1); border-color: #e2e8f0; }

.cert-card-mini i {
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; background-color: #f8fbff; border-radius: 50%; color: var(--primary-color); margin-bottom: 10px;
}
.cert-card-mini h4 { font-size: 1rem; color: var(--primary-color); margin-bottom: 2px; font-weight: 700; }

/* Products (Expanding Cards) */
.biz-section { padding: 80px 5%; background-color: #fff; }
.expanding-container { display: flex; width: 90%; max-width: 1200px; height: 450px; margin: 0 auto; gap: 15px; padding-bottom: 40px; }
.expand-card { position: relative; height: 100%; flex: 1; border-radius: 20px; background-size: cover; background-position: center; background-repeat: no-repeat; cursor: pointer; overflow: hidden; transition: flex 0.7s cubic-bezier(0.25, 0.4, 0.45, 1.4); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.expand-card.active, .expand-card:hover { flex: 5; }
.expand-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(16, 42, 84, 0.9), rgba(16, 42, 84, 0.3)); transition: 0.5s; }
.exp-content { position: absolute; bottom: 25px; left: 25px; right: 25px; color: #fff; opacity: 1; transition: 0.5s; pointer-events: none; }
.exp-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.25); backdrop-filter: blur(5px); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 12px; border: 2px solid rgba(255,255,255,0.6); }
.exp-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; white-space: nowrap; }
.exp-content p { font-size: 1rem; opacity: 0; max-height: 0; transition: 0.5s; transform: translateY(20px); }
.expand-card:hover .exp-content p, .expand-card.active .exp-content p { opacity: 1; max-height: 100px; transform: translateY(0); }

/* Global Export */
.home-export-section { padding: 80px 5%; background-color: #f8fbff; position: relative; overflow: hidden; }
.home-export-section::before { display: none !important; }
.home-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 60px; }
.home-text-col { flex: 1; }
.home-text-col h2 { font-size: 2.2rem; color: var(--primary-color); font-weight: 700; margin-bottom: 20px; }
.home-text-col .line-left { width: 60px; height: 4px; background-color: var(--accent-color); margin-bottom: 25px; border-radius: 2px; }
.map-wrapper { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; padding: 30px; }
.map-wrapper::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; height: 300px; background: radial-gradient(circle, rgba(16, 42, 84, 0.08) 0%, transparent 70%); border-radius: 50%; z-index: 0; animation: pulseGlow 3s infinite ease-out; }
.export-map-img { width: 100%; max-width: 550px; height: auto; object-fit: contain; position: relative; z-index: 1; animation: floatMap 6s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(16, 42, 84, 0.1)); }
.check-list { list-style: none; padding: 0; margin-top: 30px; }
.check-list li { background: #ffffff; padding: 15px 25px; margin-bottom: 15px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border-left: 5px solid #eef2f6; color: #444; font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; transition: all 0.3s ease; cursor: default; }
.check-list li i { color: var(--accent-color); margin-right: 15px; font-size: 1.2rem; transition: transform 0.3s; }
.check-list li:hover { border-left-color: var(--accent-color); transform: translateX(10px); box-shadow: 0 10px 25px rgba(16, 42, 84, 0.1); }
.check-list li:hover i { transform: scale(1.3); }

/* --------------------------------------------------------------------------
   6. INNER PAGES (About, Products, Services, Careers)
   -------------------------------------------------------------------------- */
/* ✅ About: Timeline (Background + Blue Cards) */
#timelineSection {
    position: relative;
    background-color: #ffffff;
    background-image:
        url('../images/background.png'),
        url('../images/background-right.png'),
        url('../images/background-bottom.png'),
        url('../images/background-bottom-right.png');
    background-position: left top, right top, left bottom, right bottom;
    background-repeat: no-repeat;
    background-size: clamp(150px, 20vw, 350px);
    padding-top: 80px; padding-bottom: 80px; overflow: hidden;
}
#timelineSection .timeline-header h2 { color: var(--primary-color) !important; text-shadow: none !important; }
#timelineSection .timeline-header p { color: #64748b !important; }
#timelineSection .line { background-color: var(--accent-color) !important; }

.timeline-container-inner { position: relative; max-width: 1000px; margin: 0 auto; margin-top: 30px; }
.timeline-line { position: absolute; left: 50%; top: 0; width: 4px; background: #e2e8f0; transform: translateX(-50%); z-index: 0; height: 100%; }
.timeline-line-progress { position: absolute; left: 50%; top: 0; width: 4px; background: var(--accent-color); transform: translateX(-50%); z-index: 1; height: 0; transition: height 0.1s linear; }

.timeline-item { position: relative; width: 50%; padding-bottom: 60px; z-index: 10; }
.timeline-item.left { left: 0; text-align: right; padding-right: 60px; }
.timeline-item.right { left: 50%; text-align: left; padding-left: 60px; }

/* Timeline Marker (White & Blue) */
.timeline-marker { 
    position: absolute; top: 0; width: 60px; height: 60px; border-radius: 50%; z-index: 20; 
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; 
    background-color: #ffffff !important; 
    border: 3px solid var(--primary-color) !important; 
    color: var(--primary-color) !important; 
    transition: 0.4s; box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}
.timeline-item.active .timeline-marker {
    background-color: var(--accent-color) !important; 
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(192, 5, 16, 0.4) !important;
}
.timeline-item.left .timeline-marker { right: -30px; }
.timeline-item.right .timeline-marker { left: -30px; }
.timeline-item::before { content: ''; position: absolute; top: 30px; width: 30px; height: 2px; background: #e2e8f0; z-index: 5; }
.timeline-item.left::before { right: 30px; }
.timeline-item.right::before { left: 30px; }

/* Timeline Content (Blue Box, White Text) */
.timeline-content { 
    background: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 25px 30px; border-radius: 12px; border: none;
    box-shadow: 0 15px 35px rgba(16, 42, 84, 0.25) !important;
    display: inline-block; text-align: left; transition: 0.3s; 
}
.timeline-content h3 { color: #ffffff !important; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; margin-bottom: 10px; }
.timeline-content p { color: rgba(255, 255, 255, 0.9) !important; }

/* Vision & Quality */
.vision-premium-overlap { padding: 80px 5%; background-color: #fff; }
.premium-container { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.premium-image { flex: 0 0 45%; max-width: 45%; z-index: 1; }
.premium-image img { width: 100%; border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.premium-card { flex: 0 0 55%; max-width: 55%; background: #fff; padding: 50px 40px; margin-left: -8%; z-index: 2; box-shadow: 0 20px 50px rgba(0,0,0,0.12); border-top: 4px solid var(--accent-color); }

.qp-modern-section { padding: 80px 5%; background-color: #f8fbff; }
.qp-modern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 20px; }
.qp-card { background: #fff; padding: 40px 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.4s; position: relative; overflow: hidden; text-align: center; }
.qp-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(16, 42, 84, 0.15); }
.qp-icon-wrapper { width: 80px; height: 80px; background: #f0f4f8; color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 25px auto; transition: 0.4s; }
.qp-card:hover .qp-icon-wrapper { background: var(--primary-color); color: #fff; transform: rotateY(360deg); }

/* Awards */
.awards-section { padding: 100px 5%; background-color: #ffffff; }
.awards-content-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 20px; }
.award-item { background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%); border-radius: 20px; padding: 45px 30px; border-top: 5px solid var(--gold-color); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; transition: 0.4s; }
.award-item:hover { transform: translateY(-10px); }
.award-year { background: linear-gradient(135deg, var(--primary-color), #1e40af); color: #fff; font-size: 1.5rem; font-weight: 700; padding: 8px 30px; border-radius: 50px; margin-bottom: 25px; border: 2px solid var(--gold-color); }

/* ✅ Products List (2 Top Corners + Bottom Line) */
.product-section-wrapper {
    padding: 60px 5%;
    background-color: #fff;
    position: relative; 
    overflow: hidden;
    background-image:
        url('../images/background.png'),
        url('../images/background-right.png');
    background-position: left top, right top;
    background-repeat: no-repeat;
    background-size: clamp(150px, 20vw, 350px);
}
.product-section-wrapper::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #cbd5e1 20%, var(--accent-color) 50%, #cbd5e1 80%, rgba(255,255,255,0) 100%);
    opacity: 0.8; z-index: 10;
}

.prod-header-group { text-align: center; margin-bottom: 40px; }
.prod-logo-box { margin-bottom: 20px; display: flex; justify-content: center; }
.prod-logo-box img { height: 80px; width: auto; object-fit: contain; }
.badge-red { display: inline-block; background-color: var(--accent-color); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; margin-bottom: 10px; }
.prod-item-container { display: flex; align-items: center; gap: 40px; margin-bottom: 60px; }
.prod-item-container.reverse { flex-direction: row-reverse; }
.prod-img-box { flex: 1; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); height: 350px; background-color: #ffffff; }
.prod-img-box img { width: 100%; height: 100%; object-fit: contain; transition: none !important; transform: none !important; }
.prod-item-container:hover .prod-img-box img { transform: scale(1.05); }
.prod-content-box { flex: 1; }
.prod-list { list-style: none; padding: 0; margin-bottom: 25px; }
.prod-list li { margin-bottom: 10px; padding-left: 20px; position: relative; color: #555; }
.prod-list li::before { content: '•'; color: var(--accent-color); font-size: 1.5rem; position: absolute; left: 0; top: -5px; }

/* Services (Split Grid) */
.service-premium-section { padding: 100px 5%; background-color: #f8fbff; position: relative; border-top: 1px solid #f0f0f0; }
.srv-split-container { display: flex; gap: 60px; align-items: flex-start; }
.srv-header-side { flex: 0 0 350px; position: sticky; top: 120px; }
.srv-tagline { font-size: 0.9rem; font-weight: 700; color: var(--accent-color); letter-spacing: 2px; display: block; margin-bottom: 15px; }
.srv-header-side h2 { font-size: 2.8rem; line-height: 1.1; color: var(--primary-color); font-weight: 800; margin-bottom: 25px; text-transform: uppercase; }
.srv-accent-line { width: 70px; height: 4px; background: var(--accent-color); margin-bottom: 30px; border-radius: 2px; }
.srv-intro-text { font-size: 1rem; color: #64748b; line-height: 1.6; }
.srv-grid-side { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.srv-card-clean { background: #ffffff; border-radius: 24px; padding: 35px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); border: 2px solid transparent; transition: all 0.3s ease-in-out; display: flex; flex-direction: column; align-items: flex-start; text-align: left; height: 100%; }
.srv-card-clean:hover { transform: translateY(-7px); box-shadow: 0 20px 60px rgba(0, 45, 98, 0.1); border-color: var(--primary-color); }
.card-icon-clean { width: 70px; height: 70px; margin-bottom: 25px; }
.card-icon-clean img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.srv-card-clean:hover .card-icon-clean img { transform: scale(1.15) rotate(5deg); }
.card-body-clean h4 { color: var(--primary-color); font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; text-transform: uppercase; }
.card-body-clean p { color: #64748b; font-size: 0.95rem; font-weight: 500; margin: 0; }

/* Careers & Benefits */
.culture-section { padding: 80px 5%; background-color: #fff; }
.culture-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.culture-img { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.culture-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.culture-img:hover img { transform: scale(1.05); }
.culture-pattern { position: absolute; bottom: -20px; right: -20px; width: 100px; height: 100px; background: repeating-linear-gradient(45deg, var(--accent-color), var(--accent-color) 2px, transparent 2px, transparent 10px); opacity: 0.2; z-index: -1; }
.culture-text h2 { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 20px; font-weight: 700; }
.culture-list { list-style: none; margin-top: 20px; }
.culture-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; color: #444; }
.culture-list li i { color: var(--accent-color); margin-right: 15px; font-size: 1.2rem; }

.benefits-section { padding: 80px 5%; background-color: #f8fbff; position: relative; z-index: 1; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.benefit-card.colorful-card { background: #fff; padding: 40px 25px; text-align: center; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: all 0.4s ease; position: relative; overflow: hidden; border-top: 5px solid transparent; }
.benefit-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.benefit-card.card-blue { border-top-color: var(--primary-color); } .benefit-card.card-blue .b-icon-bg { background: var(--blue-soft); color: var(--primary-color); }
.benefit-card.card-red { border-top-color: var(--accent-color); } .benefit-card.card-red .b-icon-bg { background: var(--red-soft); color: var(--accent-color); }
.benefit-card.card-gold { border-top-color: var(--gold-color); } .benefit-card.card-gold .b-icon-bg { background: var(--gold-soft); color: var(--gold-color); }
.benefit-card.card-green { border-top-color: var(--green-dark); } .benefit-card.card-green .b-icon-bg { background: var(--green-soft); color: var(--green-dark); }
.b-icon-bg { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin: 0 auto 20px auto; transition: 0.5s; }
.benefit-card:hover .b-icon-bg { transform: rotateY(360deg) scale(1.1); }

.jobs-section { padding: 80px 5%; background-color: #fff; position: relative; }
#jobsContainer { display: flex; flex-direction: column; gap: 20px; max-width: 1000px; margin: 0 auto; }
.job-card-wide { background: #fff; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee; overflow: hidden; transition: all 0.3s ease; border-left: 5px solid var(--primary-color); }
.job-card-wide:hover { transform: translateX(5px); box-shadow: 0 10px 25px rgba(16, 42, 84, 0.15); border-left-color: var(--accent-color); }
.job-wide-header { padding: 25px 30px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; gap: 20px; background: #fff; position: relative; z-index: 2; }
.job-info-left h4 { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 8px; font-weight: 700; }
.job-tags-group { display: flex; gap: 10px; flex-wrap: wrap; }
.job-tag-pill { background: #f1f5f9; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; color: #555; display: inline-flex; align-items: center; gap: 5px; }
.job-actions-right { display: flex; align-items: center; gap: 15px; }
.btn-detail-wide { background: transparent; color: var(--primary-color); border: 1px solid #ddd; padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; transition: 0.3s; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-detail-wide:hover { border-color: var(--primary-color); background: #f0f4f8; }
.btn-detail-wide i { transition: transform 0.4s ease; }
.job-card-wide.active .btn-detail-wide i { transform: rotate(180deg); }
.btn-apply-wide { background: linear-gradient(135deg, var(--primary-color), #2a5298); color: #fff; padding: 8px 25px; border-radius: 50px; font-size: 0.9rem; text-decoration: none; box-shadow: 0 4px 10px rgba(16, 42, 84, 0.3); transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-apply-wide:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(16, 42, 84, 0.4); }
.job-desc-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); background-color: #fafafa; border-top: 1px solid #f1f5f9; }
.desc-inner { padding: 30px; border-top: 1px solid #eee; }
.desc-inner h5 { font-size: 1.15rem !important; font-weight: 700 !important; color: var(--primary-color); margin-bottom: 12px; margin-top: 5px; border-left: 4px solid var(--accent-color); padding-left: 10px; }
.desc-inner ul { padding-left: 20px; margin-bottom: 20px; }
.desc-inner ul li { margin-bottom: 8px; color: #333; font-size: 1.05rem; line-height: 1.8; }
.no-job-alert { background: linear-gradient(135deg, #fff, #fff5f5); border: 2px dashed var(--accent-color) !important; padding: 40px; border-radius: 15px; max-width: 800px; margin: 50px auto 0; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.alert-icon { font-size: 3rem; color: #cbd5e1; }

/* Contact Page Specifics */
.contact-page-section { padding: 80px 5%; background-color: #f4f7fa; }
.contact-container-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: stretch; max-width: 1200px; margin: 0 auto; }
.contact-info-box { background: #fff; padding: 40px 30px; border-radius: 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.05); height: 100%; border-top: 4px solid var(--accent-color); }
.contact-head { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 20px; }
.card-line-left { width: 50px; height: 4px; background-color: var(--accent-color); margin-bottom: 30px; border-radius: 2px; }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.c-icon { width: 50px; height: 50px; background: #f0f4f8; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--accent-color); margin-right: 20px; flex-shrink: 0; }
.map-box { border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 6px solid #fff; height: 100%; min-height: 500px; width: 100%; position: relative; }
.map-box iframe { width: 100%; height: 100%; border: 0; position: absolute; top: 0; left: 0; }
.form-top-nav { margin-bottom: 30px; }
.btn-back-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #64748b; font-weight: 500; font-size: 0.9rem; transition: 0.3s; padding: 8px 15px; background: #f1f5f9; border-radius: 30px; }
.btn-back-top:hover { background: var(--primary-color); color: #fff; }

/* --------------------------------------------------------------------------
   7. NEWS & CSR SECTIONS
   -------------------------------------------------------------------------- */
.news-section { padding: 60px 5%; background-color: #fcfcfc; }
.csr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; max-width: 1200px; margin: 0 auto; }
.news-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: all 0.3s ease; border: 1px solid #f0f0f0; display: flex; flex-direction: column; min-height: 350px; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(16, 42, 84, 0.15); }
.news-img { height: 200px; overflow: hidden; position: relative; background-color: #eee; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-img img { transform: scale(1.1); }
.news-badge { position: absolute; top: 10px; left: 10px; background: var(--accent-color); color: #fff; padding: 4px 10px; border-radius: 30px; font-size: 0.8rem; font-weight: 600; }
.news-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.news-date { color: #94a3b8; font-size: 0.85rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.read-more { color: var(--primary-color); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: 0.3s; cursor: pointer; margin-top: auto; }

/* News Detail Page */
.news-detail-wrapper { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.news-title-large { font-size: 2.2rem; color: var(--primary-color); font-weight: 700; line-height: 1.3; margin-top: 15px; }
.news-meta-info { display: flex; align-items: center; gap: 15px; color: #64748b; font-size: 0.95rem; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
.news-main-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 16px; margin: 30px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.btn-back-minimal { display: inline-flex; align-items: center; gap: 8px; color: #64748b; text-decoration: none; font-weight: 500; margin-bottom: 20px; transition: 0.3s; }
.btn-back-minimal:hover { color: var(--accent-color); transform: translateX(-5px); }
.news-detail-section { min-height: 80vh; background-color: #fff; padding-bottom: 60px; }
.btn-back-news { display: inline-flex; align-items: center; gap: 8px; background: #f1f5f9; color: #64748b; border-radius: 30px; text-decoration: none; transition: 0.3s; font-weight: 500; font-size: 0.95rem; padding: 8px 15px; }
.btn-back-news:hover { background: var(--primary-color); color: #fff; }
.news-header { text-align: left; margin-bottom: 25px; border-bottom: 1px solid #e2e8f0; padding-bottom: 15px; }
.news-meta { display: flex; align-items: center; gap: 15px; color: #94a3b8; font-size: 0.9rem; margin-bottom: 10px; }
.news-tag { background: var(--accent-color); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.news-title { font-size: 1.8rem; color: var(--primary-color); font-weight: 700; line-height: 1.3; }
.news-body { font-size: 1.05rem; color: #333; line-height: 1.7; }
.news-body p { margin-bottom: 15px; }

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
footer { background-color: var(--primary-color); color: #fff; padding: 50px 5% 20px; font-size: 0.9rem; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col { flex: 1 1 250px; }
.footer-col h4 { margin-bottom: 20px; font-size: 1.1rem; border-bottom: 2px solid var(--accent-color); display: inline-block; padding-bottom: 5px; }
.footer-col a { color: #ddd; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-logo-group { display: inline-flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 20px; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 10px; max-width: 100%; }
.footer-logo { height: 50px; width: auto; background-color: #fff; padding: 5px; border-radius: 5px; }
.footer-links-list { list-style: none; padding: 0; }
.footer-links-list li { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: #aaa; }

/* --------------------------------------------------------------------------
   9. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-title-large { font-size: 3rem; }
    .home-container, .contact-container-grid, .culture-container { gap: 30px; }
    .expanding-container { height: 400px; }
    .premium-card { margin-left: -5%; }
}

@media (max-width: 992px) {
    /* Logo Adjustment */
    .brand-name { font-size: 1.2rem; }
    .company-name { font-size: 0.75rem; }

    /* Layout Columns */
    .home-container, .contact-container-grid, .premium-container, .culture-container { flex-direction: column; }
    .home-text-col, .map-box, .contact-info-box { width: 100%; }
    .prod-item-container, .prod-item-container.reverse { flex-direction: column !important; }
    .prod-img-box { width: 100%; height: 300px; }
    .premium-image, .premium-card { max-width: 100%; flex: 0 0 100%; margin-left: 0; }
    .premium-card { margin-top: -30px; border-top: none; border-left: 5px solid var(--accent-color); }
    .cert-grid-compact { grid-template-columns: repeat(2, 1fr); }
    
    /* Services Mobile */
    .srv-split-container { flex-direction: column; gap: 40px; }
    .srv-header-side { width: 100%; flex: none; position: static; text-align: center; }
    .srv-header-side h2 { font-size: 2.2rem; }
    .srv-accent-line { margin: 0 auto 25px; }
    .srv-intro-text { max-width: 600px; margin: 0 auto; }
    .srv-grid-side { grid-template-columns: repeat(2, 1fr); }

    /* Timeline Fixes for Mobile */
    .timeline-section::before { left: 30px; }
    .timeline-line, .timeline-line-progress { left: 30px; transform: none; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.left, .timeline-item.right { text-align: left; left: 0; }
    .timeline-item::before { width: 30px; left: 32px; top: 42px; }
    
    .timeline-marker,
    .timeline-item.left .timeline-marker,
    .timeline-item.right .timeline-marker {
        width: 40px; height: 40px; font-size: 0.9rem;
        left: 12px !important; right: auto !important; top: 22px;
        border-width: 3px; display: flex; align-items: center; justify-content: center; line-height: 1;
    }

    /* Expanding Cards Mobile Fix */
    .expanding-container { height: auto; flex-direction: column; display: block; }
    .expand-card { height: 280px !important; width: 100% !important; flex: none !important; margin-bottom: 15px; transition: transform 0.3s ease !important; }
    .expand-card:hover, .expand-card.active { flex: none !important; transform: scale(1.02); }
    .exp-content p { opacity: 1; max-height: 100px; transform: translateY(0); }
}

@media (max-width: 768px) {
    /* Header Mobile */
    header, header.navbar-solid { height: 70px; padding: 0 20px; background-color: transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
    
    /* Animation Slide-in */
    header::before { display: block; content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 0%; background-color: #ffffff; border-bottom: 3px solid var(--accent-color); z-index: -1; transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
    header.scrolled::before { width: 100%; }

    /* Colors */
    .brand-name { font-size: 1.2rem; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.3); transition: color 0.3s; }
    .company-name { display: none; }
    .logo-image-group { border-right: none; margin-right: 0; padding-right: 0; }
    
    .hamburger-menu { display: flex; z-index: 1002; }
    .hamburger-menu .bar { background-color: #fff; transition: background-color 0.3s; }
    
    header.scrolled .brand-name { color: var(--primary-color); text-shadow: none; }
    header.scrolled .hamburger-menu .bar { background-color: #333; }

    /* News Detail Mobile Header */
    .news-title-large { font-size: 1.6rem; }
    .news-detail-wrapper { padding: 20px; }

    /* Fullscreen Menu */
    nav ul { display: none; flex-direction: column; position: fixed; top: 80px; left: 20px; right: 20px; width: auto; height: auto; max-height: 75vh; background-color: #ffffff; border-radius: 20px; box-shadow: 0 10px 50px rgba(0,0,0,0.2); padding: 20px 0; overflow-y: auto; align-items: center; }
    nav ul.active { display: flex; animation: fadeIn 0.3s ease; }
    nav ul li { width: 100%; text-align: center; margin: 0; }
    nav ul li a { display: block; padding: 15px 0; font-size: 1.1rem; color: var(--primary-color) !important; font-weight: 500; text-shadow: none !important; border-bottom: 1px solid #f5f5f5; width: 80%; margin: 0 auto; }
    nav ul li a:hover { color: var(--accent-color) !important; background: transparent; }
    nav ul li a::after { display: none; }
    
    .dropdown:hover .dropdown-content { position: relative; top: 0; width: 100%; box-shadow: none; padding: 5px 0; margin: 0; background-color: #f9f9f9; text-align: center; border-radius: 10px; }
    .dropdown-content li a { padding: 10px 0; font-size: 1rem; color: #666 !important; }

    /* Content Adjustments */
    .hero-title-large { font-size: 2.2rem; }
    .hero-subtitle-red { font-size: 1rem; margin-bottom: 30px; }
    .hero-common { height: auto !important; padding: 100px 20px 60px; min-height: 400px; }
    .section-title h2 { font-size: 1.6rem; }
    .contact-container-grid, .form-grid, .cert-grid-compact, .awards-content-box, .csr-grid, .culture-container, .benefits-grid { grid-template-columns: 1fr; }
    .form-card { padding: 30px 20px; }
    .job-wide-header { flex-direction: column; align-items: flex-start; padding: 20px; }
    .job-actions-right { width: 100%; justify-content: space-between; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #eee; }
    .job-tags-group { flex-wrap: wrap; gap: 10px; }
    
    .intro-highlight-section { padding: 50px 5%; }
    .intro-header-box { padding: 12px 25px; width: 90%; margin-bottom: 40px; }
    .intro-header-box h2 { font-size: 1.1rem; }
    
    /* ✅ Intro Icons Grid (Mobile Fix: Centered 2x2) */
    .intro-icons-grid { 
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 15px;
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto 30px auto !important;
        padding: 0 !important;
        transform: translateX(0);
    }

    /* ✅ Intro Icons Style (Mobile Fix: No Circle, Transparent) */
    .icon-img-wrapper {
        width: 90px !important;
        height: 90px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
        background-color: transparent !important; 
        border-radius: 0 !important;
    }
    .icon-img-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        transform: none !important; 
        transition: transform 0.4s ease;
    }
    .intro-icon-item:hover .icon-img-wrapper { background-color: transparent !important; }
    
    .intro-icon-item h4 { font-size: 0.9rem; margin-top: 20px !important; }
    .intro-text-content p { font-size: 0.95rem; line-height: 1.6; }
    .intro-text-content::after { width: 100px; height: 3px; margin-top: 30px; }

    .award-item { flex-direction: row; align-items: flex-start; text-align: left; padding: 20px; border-left: 3px solid var(--accent-color); border-right: none; border-top: none; border-bottom: none; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
    .award-year { position: static; margin-bottom: 0; margin-right: 20px; min-width: 70px; font-size: 1.5rem; text-align: left; border: none; padding: 0; box-shadow: none; background: transparent; color: var(--primary-color); }
    .export-map-img { max-width: 100%; }
}

@media (max-width: 576px) {
    .srv-grid-side { grid-template-columns: 1fr; }
    .srv-card-clean { align-items: center; text-align: center; }
    .cert-grid-compact { grid-template-columns: 1fr; }
    .big-master-card { padding: 40px 20px; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 1rem; }
    .logo-image-group { margin-right: 8px; padding-right: 8px; }
    .hero-title-large { font-size: 1.8rem; }
    .btn { width: 100%; margin-bottom: 10px; }
    .hero-buttons { gap: 10px; }
}
/* =========================================
   PRIVACY POLICY & CONSENT
   ========================================= */
/* เนื้อหาสองภาษาในหน้าเดียว: setLanguage() ตั้งค่า <html lang> */
html[lang="en"] .lang-th { display: none; }
html:not([lang="en"]) .lang-en { display: none; }

.policy-wrapper { max-width: 860px; margin: 0 auto; padding: 0 20px; color: #333; line-height: 1.8; }
.policy-wrapper h1 { font-size: 2rem; color: var(--primary-color); margin-bottom: 6px; }
.policy-wrapper .policy-updated { color: #64748b; font-size: 0.9rem; margin-bottom: 30px; }
.policy-wrapper h2 { font-size: 1.25rem; color: var(--primary-color); margin: 34px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent-color); }
.policy-wrapper p, .policy-wrapper li { font-size: 1rem; }
.policy-wrapper ul { padding-left: 22px; margin: 8px 0; }
.policy-wrapper li { margin-bottom: 4px; }
.policy-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.policy-table th, .policy-table td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; vertical-align: top; }
.policy-table th { background: #f1f5f9; color: var(--primary-color); }
.policy-table-wrap { overflow-x: auto; }
.policy-contact { background: #f8fbff; border: 1px solid #dbeafe; border-radius: 10px; padding: 18px 22px; margin-top: 10px; }

.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 5px 0 25px; font-size: 0.95rem; color: #333; line-height: 1.6; cursor: pointer; }
.consent-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--primary-color); cursor: pointer; }
.consent-check a { color: var(--accent-color); text-decoration: underline; }
.footer-privacy-link { color: #94a3b8; text-decoration: none; }
.footer-privacy-link:hover { color: #fff; text-decoration: underline; }
/* ซ่อน input file แต่ยังให้เบราว์เซอร์แสดงข้อความเตือน "กรุณาเลือกไฟล์" ได้ (display:none ทำให้เตือนไม่ได้) */
.visually-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-upload-box { position: relative; }
/* honeypot กันบอท: ซ่อนนอกจอ (ไม่ใช้ display:none เพราะบอทบางตัวข้ามช่องที่ display:none) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* สมุดภาพสินค้า: วางเมาส์แล้วเปลี่ยนภาพไล่ไปเรื่อยๆ (products.html) */
.prod-gallery { position: relative; cursor: pointer; min-height: 300px; flex-shrink: 0; }
.prod-gallery img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease !important; }
.prod-gallery img.is-active { opacity: 1; }
.prod-gallery-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.prod-gallery-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(0,0,0,0.2); transition: background 0.3s, transform 0.3s; }
.prod-gallery-dots span.is-active { background: var(--accent-color); transform: scale(1.25); }
/* สมุดภาพยางคอมพาวด์: อยู่กลางหน้า ใต้หัวข้อ ERPC */
.compound-gallery { max-width: 640px; height: 380px; margin: 0 auto 45px; }
.compound-gallery img { object-fit: cover; }
.compound-gallery .prod-gallery-dots span { background: rgba(255,255,255,0.7); box-shadow: 0 0 2px rgba(0,0,0,0.5); }
.compound-gallery .prod-gallery-dots span.is-active { background: var(--accent-color); }
@media (max-width: 768px) { .compound-gallery { height: 260px; min-height: 260px; } }
