/* ================================================================
   Tecon Clone - Main Stylesheet
   Mirrors: teconform.com design system
   ================================================================ */

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
    --color-primary:   #fd9d0b;
    --color-primary-dark: #e08900;
    --color-secondary: #e68214;
    --color-dark:      #333333;
    --color-dark-alt:  #2b2c32;
    --color-gray:      #666666;
    --color-light-gray:#f5f5f5;
    --color-border:    #e0e0e0;
    --color-white:     #ffffff;
    --color-text:      #333333;
    --color-heading:   #222222;

    --font-light:   'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-regular: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-bold:    'Roboto', 'Helvetica Neue', Arial, sans-serif;

    --container-width: 1362px;
    --page-width:      1800px;
    --border-radius:   6px;
    --transition:      all 0.3s ease;
    --shadow:          0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover:    0 8px 32px rgba(0,0,0,0.14);
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-heading);
    margin: 0;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary); }

ul, ol { list-style: none; margin: 0; padding: 0; }

img { max-width: 100%; height: auto; display: block; vertical-align: middle; }

input, textarea, button, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    -webkit-appearance: none;
}

button { cursor: pointer; }

p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

/* ── Layout ────────────────────────────────────────────────────── */
.wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.page-width {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 4%;
    position: relative;
}

.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ── Button ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-dark);
    background: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-dark);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.btn:hover {
    color: var(--color-white);
    border-color: var(--color-dark);
}

.btn:hover::before { transform: scaleX(1); }

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

/* ── Section Title ──────────────────────────────────────────────── */
.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 20px;
    position: relative;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-gray);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.tbox { max-width: 1100px; margin: 0 auto; }
.tbox-center { text-align: center; }
.tbox p { font-size: 18px; line-height: 30px; color: var(--color-text); }

/* ========================================================
   HEADER
   ======================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    gap: 15px;
}

/* Logo */
.site-logo {
    flex-shrink: 0 !important;
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 70px;
    max-height: 75px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
    flex-shrink: 0 !important;
}

.site-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Primary Navigation */
.primary-nav { display: flex; align-items: stretch; height: 100%; margin-left: auto; margin-right: 15px; }

.primary-nav > ul {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.primary-nav > ul > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.primary-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.2px;
}

.primary-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.primary-nav > ul > li:hover > a,
.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-menu-ancestor > a {
    color: var(--color-primary);
    font-weight: 600;
}

.primary-nav > ul > li:hover > a::after,
.primary-nav > ul > li.current-menu-item > a::after { transform: scaleX(1); }

.primary-nav > ul > li > a .fa-angle-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.primary-nav > ul > li:hover > a .fa-angle-down { transform: rotate(180deg); }

/* Dropdown */
.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-white);
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 500;
    padding: 10px 0;
}

.primary-nav > ul > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-nav .sub-menu li a {
    display: block;
    padding: 11px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #334155;
    transition: var(--transition);
}

.primary-nav .sub-menu li a:hover {
    background: #f8fafc;
    color: var(--color-primary);
    padding-left: 28px;
}

/* Nested dropdown */
.primary-nav .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Header right actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.lang-switcher {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    margin-top: 12px; /* Push GTranslate dropdown down to align with header */
    display: flex;
    align-items: center;
    z-index: 1000;
}

/* Ensure GTranslate widget doesn't clip */
.lang-switcher .gtranslate_wrapper {
    display: inline-block;
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-dark);
    text-decoration: none;
    padding: 10px 0;
    cursor: pointer;
}

.lang-toggle:hover { color: var(--color-primary); }

.lang-menu {
    position: absolute;
    top: 100%;
    right: -10px;
    min-width: 120px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-switcher:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li { margin: 0; }
.lang-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--color-dark);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.lang-menu li a:hover {
    background: rgba(253, 157, 11, 0.05);
    color: var(--color-primary);
}

.lang-menu li.active a {
    color: var(--color-primary, #fd9d0b) !important;
    font-weight: 700 !important;
    background: rgba(253, 157, 11, 0.08) !important;
}

.lang-switcher img { width: 20px; height: 20px; border-radius: 50%; }

/* Search toggle */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--color-dark);
    padding: 6px;
    transition: var(--transition);
}

.search-toggle:hover { color: var(--color-primary); }

/* Quote button */
.header-quote-btn {
    background: var(--color-primary);
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(253, 157, 11, 0.3);
}

.header-quote-btn:hover {
    background: #e68214;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(253, 157, 11, 0.4);
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page offset for fixed header ───────────────────────────────── */
.page-wrapper { padding-top: 90px; }

/* ── Search Modal ───────────────────────────────────────────────── */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: flex-start;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.search-modal-inner {
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-modal-form {
    display: flex;
    border-bottom: 2px solid rgba(255,255,255,0.6);
    padding-bottom: 12px;
}

.search-modal-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 28px;
    font-weight: 300;
    outline: none;
}

.search-modal-form input::placeholder { color: rgba(255,255,255,0.5); }

.search-modal-form button {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 28px;
    cursor: pointer;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 32px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.search-close:hover { opacity: 1; transform: rotate(90deg); }

/* Live search dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
    z-index: 10;
}

.search-suggestions a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.search-suggestions a:hover { background: var(--color-light-gray); }

.search-suggestions a img {
    width: 50px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-suggestions .suggestion-info { flex: 1; }
.search-suggestions .suggestion-title { font-size: 14px; font-weight: 500; color: var(--color-dark); }
.search-suggestions .suggestion-type  { font-size: 12px; color: var(--color-primary); margin-top: 2px; }

/* ========================================================
   HERO BANNER (Accordion Style)
   ======================================================== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.banner-options {
    display: flex;
    width: 100%;
    height: 100%;
}

.banner-option {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex: 1;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-width: 100px;
}

.banner-option.active { flex: 8; }
.banner-option:not(.active) { flex: 1; }

.banner-overlay {
    position: absolute;
    inset: 0;
    transition: background 0.4s ease;
}

.banner-option:not(.active) .banner-overlay { background: rgba(0,0,0,0.65); }
.banner-option.active .banner-overlay       { background: rgba(0,0,0,0.3); }

.banner-labels {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.banner-icon-area { padding: 30px 15px 0; }

.banner-icon-area .side-title {
    writing-mode: horizontal-tb;
    transform: none;
    color: rgba(255,255,255,0.9);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    white-space: normal;
    display: block;
    word-break: normal;
    overflow-wrap: normal;
    transition: opacity 0.3s ease;
}

.banner-option.active .side-title { opacity: 0; }

.banner-info {
    padding: 0 50px 60px;
    transition: all 0.5s ease;
}

.banner-option:not(.active) .banner-info { opacity: 0; }

.banner-info h3 {
    font-size: 58px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 12px;
}

.banner-info .sub {
    font-size: 30px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.banner-info .btn { font-size: 16px; }

/* ── Hero Banner Pagination Dots ── */
.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
    padding: 7px 16px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    display: block;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.25);
}

.banner-dot.active {
    width: 28px;
    height: 9px;
    border-radius: 5px;
    background: var(--color-primary, #fd9d0b) !important;
    box-shadow: 0 0 10px rgba(253, 157, 11, 0.6);
}

@media (max-width: 768px) {
    .banner-dots {
        bottom: 15px;
        padding: 5px 12px;
        gap: 8px;
    }
    .banner-dot {
        width: 8px;
        height: 8px;
    }
    .banner-dot.active {
        width: 22px;
        height: 8px;
    }
}

/* ========================================================
   SECTION 1 - Products Accordion
   ======================================================== */
.hpart1 { padding: 90px 0 120px; }

.hp1-item {
    display: flex;
    height: 520px;
    gap: 6px;
    margin-top: 40px;
}

.hp1-list {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 0 0 120px;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hp1-list::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.5s ease;
    z-index: 0;
}

.hp1-list.active::before  { transform: scale(1.04); }
.hp1-list.active          { flex: 1; }
.hp1-list:not(.active)    { flex: 0 0 120px; }

.hp1-list:not(.active) .hp1-shadow { 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.1) 100%); 
}
.hp1-list:not(.active):hover .hp1-shadow {
    background: rgba(0, 0, 0, 0.15);
}
.hp1-list.active .hp1-shadow { 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.22) 55%, transparent 100%),
                linear-gradient(to right, rgba(0, 0, 0, 0.32) 0%, transparent 60%); 
}

.hp1-shadow {
    position: absolute;
    inset: 0;
    transition: background 0.4s ease;
    z-index: 1;
}

.hp1-box {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Bottom aligned like competitor */
}

.hp1-list:not(.active) .hp1-box {
    justify-content: flex-end;
    align-items: center;
    padding: 30px 15px;
}

.hp1-before {
    font-size: 18px;
    color: var(--color-white);
    font-weight: 600;
    text-align: left;
    writing-mode: horizontal-tb;
    white-space: normal;
    word-break: break-word;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hp1-list.active .hp1-before { display: none; }

.hp1-txt { display: none; max-width: 440px; }
.hp1-list.active .hp1-txt { display: block; }

.hp1-txt .hp1-title {
    font-size: 36px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hp1-txt p {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hp1-txt a.btn { color: var(--color-white); border-color: var(--color-primary); background: var(--color-primary); }
.hp1-txt a.btn:hover { background: transparent; color: var(--color-primary); }

/* ========================================================
   SECTION 2 - Stats/Counters
   ======================================================== */
.hpart2 {
    background: var(--color-dark);
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item { padding: 20px; }

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ========================================================
   SECTION 3 - About / Company Overview
   ======================================================== */
.hpart3 { padding: 100px 0; }

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

.about-img { position: relative; border-radius: 8px; overflow: hidden; }
.about-img img { width: 100%; height: 500px; object-fit: cover; }

.about-content {}
.about-content .section-title { font-size: 36px; margin-bottom: 20px; }
.about-content p { font-size: 17px; color: var(--color-gray); line-height: 1.8; margin-bottom: 20px; }

/* ========================================================
   SECTION 4 - Features/Services (hp6 style)
   ======================================================== */
.hpart4 {
    position: relative;
    padding: 85px 0 75px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hp6-item {
    display: grid;
    gap: 0 16px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
}

.hp6-list {
    position: relative;
    cursor: pointer;
}

.hp6-box {
    text-align: center;
    background: #fd9d0b;
    border-radius: 6px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Inactive State: Solid Opaque Yellow Button along the bottom */
.hp6-list:not(.active) .hp6-box {
    background: #fd9d0b;
    padding: 12px 10px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hp6-list:not(.active):hover .hp6-box {
    background: #e58d09;
    transform: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hp6-before {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
    writing-mode: horizontal-tb;
    transform: none;
    height: auto;
    display: block;
}

/* Active State: Tall Opaque Yellow Card with Chamfer Cut Corner */
.hp6-list.active .hp6-box {
    background: #fd9d0b !important;
    padding: 38px 20px 42px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
    border-radius: 6px;
}

.hp6-hover {
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hp6-hover * {
    writing-mode: horizontal-tb;
    transform: none;
    transition: none !important;
    animation: none !important;
}

.hp6-img {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp6-img i {
    font-size: 50px !important;
    color: #ffffff !important;
}

.hp6-img img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: brightness(0) invert(1) !important;
    margin-left: auto;
    margin-right: auto;
}

.hp6-txt {
    width: 100%;
}

.hp6-txt h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff !important;
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.25;
    text-align: center;
}

.hp6-txt p {
    font-size: 15px;
    line-height: 1.55;
    color: #ffffff !important;
    margin: 0;
    opacity: 0.95;
    text-align: center;
}

/* ========================================================
   SECTION 5 - News & Blog Tabs
   ======================================================== */
.hpart5 { padding: 90px 0; }

.tab-header {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 40px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-gray);
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.tab-btn.active { color: var(--color-heading); }

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active::after { transform: scaleX(1); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.hp7-item {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}
.hp7-item::-webkit-scrollbar { height: 6px; }
.hp7-item::-webkit-scrollbar-track { background: #eee; border-radius: 4px; }
.hp7-item::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.hp7-item:hover::-webkit-scrollbar-thumb { background: var(--color-primary); }

.hp7-list {
    flex: 0 0 calc(50% - 15px);
    scroll-snap-align: start;
    min-width: 320px;
}

.hp7-box a { display: flex; flex-direction: column; height: 100%; width: 100%; }

.hp7-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 16 / 9;
    height: auto;
}

.hp7-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hp7-box:hover .hp7-img img { transform: scale(1.05); }

.hp7-img .date {
    position: absolute;
    left: 20px;
    top: 20px;
    background: var(--color-primary);
    color: var(--color-dark);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 2;
}

.hp7-txt { flex: 1; padding-top: 20px; }

.hp7-txt h3 {
    font-size: 22px;
    color: var(--color-heading);
    line-height: 1.4;
    transition: var(--transition);
}

.hp7-box:hover .hp7-txt h3 { color: var(--color-primary); }

.hp7-btn { text-align: center; margin-top: 50px; }

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
    background: var(--color-dark-alt);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}

.footer-top { display: grid; grid-template-columns: 320px 1fr; gap: 50px; padding-bottom: 50px; }

.footer-brand {}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.footer-brand-header .footer-logo {
    flex-shrink: 0;
    margin-bottom: 0;
}

.footer-brand-header .footer-logo img {
    max-height: 58px;
    width: auto;
    display: block;
    margin-bottom: 0;
}

.footer-brand-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-white);
}

.footer-brand-name a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-brand-name a:hover {
    color: var(--color-primary, #fd9d0b);
}

.footer-logo img { max-height: 60px; margin-bottom: 20px; }
.footer-logo-text { font-size: 18px; font-weight: 600; color: var(--color-white); margin-bottom: 20px; }

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

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.footer-contact li i { color: var(--color-primary); margin-top: 3px; flex-shrink: 0; }

.footer-contact a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-contact a:hover { color: var(--color-primary); }

.footer-social { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover { background: var(--color-primary); color: var(--color-dark); transform: translateY(-3px); }

.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.footer-col {}

.footer-col-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

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

.footer-col li { margin-bottom: 8px; }

.footer-col li a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    display: block;
    padding: 2px 0;
}

.footer-col li a:hover { color: var(--color-primary); padding-left: 6px; }

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

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright { font-size: 14px; color: rgba(255,255,255,0.5); }

.footer-legal-links { display: flex; gap: 20px; }

.footer-legal-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer-legal-links a:hover { color: var(--color-primary); }

/* ========================================================
   SOCIAL FLOAT WIDGET
   ======================================================== */
.social-float {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.social-float-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(253,157,11,0.5);
    border: none;
    transition: var(--transition);
    color: var(--color-dark);
    font-size: 22px;
    position: relative;
    z-index: 2;
}

.social-float-toggle:hover { transform: scale(1.1) rotate(15deg); background: var(--color-dark); color: var(--color-white); }

.social-float-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.social-float.open .social-float-items {
    max-height: 500px;
    opacity: 1;
}

.social-float-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.social-float-label {
    background: var(--color-dark);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.social-float.open .social-float-label { opacity: 1; transform: translateX(0); }

.social-float-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.social-float-icon:hover { transform: scale(1.15); }

.social-float-item[data-type="whatsapp"] .social-float-icon  { background: #25D366; }
.social-float-item[data-type="wechat"] .social-float-icon    { background: #07C160; }
.social-float-item[data-type="linkedin"] .social-float-icon  { background: #0A66C2; }
.social-float-item[data-type="youtube"] .social-float-icon   { background: #FF0000; }
.social-float-item[data-type="facebook"] .social-float-icon  { background: #1877F2; }
.social-float-item[data-type="tiktok"] .social-float-icon    { background: #000000; }
.social-float-item[data-type="instagram"] .social-float-icon { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-float-item[data-type="twitter"] .social-float-icon   { background: #000000; }

/* Back to top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 40px;
    z-index: 9997;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-dark);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-primary); color: var(--color-dark); transform: translateY(-3px); }

/* WeChat QR popup */
.wechat-qr-popup {
    position: fixed;
    right: 80px;
    bottom: 200px;
    background: var(--color-white);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-hover);
    z-index: 9999;
    display: none;
    text-align: center;
}

.wechat-qr-popup.show { display: block; }
.wechat-qr-popup img { width: 140px; height: 140px; }
.wechat-qr-popup p { font-size: 12px; color: var(--color-gray); margin-top: 8px; }

/* ========================================================
   PRODUCTS ARCHIVE PAGE
   ======================================================== */
.products-page { padding: 60px 0; }

.products-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 22px;
    border: 2px solid var(--color-border);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    background: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img { transform: scale(1.08); }

.product-info { padding: 20px; }

.product-cat {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--transition);
}

.product-card:hover .product-name { color: var(--color-primary); }

.product-excerpt { font-size: 14px; color: var(--color-gray); line-height: 1.6; }

/* ========================================================
   NEWS/BLOG ARCHIVE PAGE
   ======================================================== */
.news-page { padding: 60px 0; }

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

/* ========================================================
   SINGLE POST / PRODUCT
   ======================================================== */
.single-page { padding: 60px 0; }

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

.single-content {}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-gray); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--color-border); }

.single-hero-img {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.single-hero-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.single-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.3;
    margin-bottom: 20px;
}

.single-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.single-meta i { color: var(--color-primary); }

.single-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

.single-body h2, .single-body h3 { margin: 30px 0 15px; }
.single-body p { margin-bottom: 18px; }
.single-body img { border-radius: 8px; margin: 20px 0; }
.single-body ul, .single-body ol { padding-left: 24px; margin-bottom: 18px; }
.single-body li { margin-bottom: 8px; }

/* Sidebar */
.sidebar {}

.sidebar-widget {
    background: var(--color-light-gray);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

/* Contact sidebar widget */
.contact-cta-widget {
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px 24px;
    text-align: center;
}

.contact-cta-widget h3 { color: var(--color-white); font-size: 20px; margin-bottom: 10px; }
.contact-cta-widget p  { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 20px; }

/* ========================================================
   CONTACT PAGE
   ======================================================== */
.contact-page { padding: 60px 0; }

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

.contact-info-box { padding: 40px; background: var(--color-dark); border-radius: 8px; }

.contact-info-box h3 { font-size: 24px; color: var(--color-white); margin-bottom: 10px; }
.contact-info-box p  { color: rgba(255,255,255,0.7); margin-bottom: 30px; }

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

.contact-info-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list li i { color: var(--color-primary); font-size: 18px; margin-top: 2px; }
.contact-info-list li a { color: rgba(255,255,255,0.8); }
.contact-info-list li a:hover { color: var(--color-primary); }

/* Contact Form */
.contact-form-box {}

.contact-form-box h2 { font-size: 30px; margin-bottom: 10px; }
.contact-form-box p  { color: var(--color-gray); margin-bottom: 30px; }

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-dark);
}

.form-group label .req { color: var(--color-secondary); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--color-dark);
    background: var(--color-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(253,157,11,0.12); }

.form-group textarea { height: 140px; resize: vertical; }

/* ========================================================
   PAGE HERO (inner pages)
   ======================================================== */
.page-hero {
    height: 300px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

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

.page-hero-title {
    font-size: 44px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.page-hero-breadcrumb {
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.page-hero-breadcrumb a { color: rgba(255,255,255,0.8); }
.page-hero-breadcrumb a:hover { color: var(--color-primary); }

/* ========================================================
   SEARCH RESULTS PAGE
   ======================================================== */
.search-page { padding: 60px 0; }

.search-header { margin-bottom: 40px; }
.search-header h1 { font-size: 30px; margin-bottom: 10px; }
.search-header p   { color: var(--color-gray); }

.search-results-list { display: flex; flex-direction: column; gap: 24px; }

.search-result-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.search-result-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow);
}

.search-result-img {
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-img img { width: 100%; height: 100%; object-fit: cover; }

.search-result-info { flex: 1; }

.search-result-type {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.search-result-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 8px;
    transition: var(--transition);
}

.search-result-item:hover .search-result-title { color: var(--color-primary); }
.search-result-excerpt { font-size: 14px; color: var(--color-gray); line-height: 1.6; }

/* ========================================================
   MOBILE MENU (Off-canvas)
   ======================================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.show { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: var(--color-white);
    z-index: 999;
    overflow-y: auto;
    transition: right 0.35s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    padding-bottom: 40px;
}

.mobile-menu.open { right: 0; }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-light-gray);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--color-dark);
}

.mobile-nav > ul { list-style: none; margin: 0; padding: 0; }

.mobile-nav > ul > li { border-bottom: 1px solid var(--color-border); }

.mobile-nav-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-nav > ul > li > a,
.mobile-nav-item-head > a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-dark);
    flex: 1;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.mobile-nav > ul > li > a:hover,
.mobile-nav-item-head > a:hover {
    color: var(--color-primary);
    background: var(--color-light-gray);
}

.mobile-nav .mobile-sub-toggle {
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: transform 0.25s ease, color 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}
.mobile-nav .mobile-sub-toggle:hover {
    color: var(--color-primary);
}
.mobile-nav .mobile-sub-toggle.rotate {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.mobile-nav .sub-menu {
    display: none;
    padding: 0;
    background: var(--color-light-gray);
}

.mobile-nav .sub-menu.open { display: block; }
.mobile-nav .sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 24px 11px 32px;
    font-size: 14px;
    color: var(--color-gray);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.mobile-nav .sub-menu li a:hover { color: var(--color-primary); }

.mobile-nav .sub-menu li.menu-item-overview a {
    color: var(--color-primary, #fd9d0b) !important;
    font-weight: 600;
    background: rgba(253, 157, 11, 0.08);
    border-bottom: 1px solid rgba(253, 157, 11, 0.18);
}
.mobile-nav .sub-menu li.menu-item-overview a i {
    font-size: 12px;
    color: var(--color-primary, #fd9d0b);
}

/* ========================================================
   INQUIRY POPUP FORM
   ======================================================== */
.form-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.form-popup-overlay.active { display: flex; }

.form-popup-inner {
    background: var(--color-white);
    border-radius: 8px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.form-popup-header {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 24px;
    border-radius: 8px 8px 0 0;
}

.form-popup-header h3 { font-size: 22px; color: var(--color-white); margin-bottom: 6px; }
.form-popup-header p  { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0; }

.form-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.form-popup-close:hover { opacity: 1; transform: rotate(90deg); }

.form-popup-body { padding: 30px; }

/* ========================================================
   PAGINATION
   ======================================================== */
.tecon-pagination { margin: 50px 0; }

.tecon-pagination ul {
    display: flex;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.tecon-pagination ul li { display: block; }

.tecon-pagination ul li a,
.tecon-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 15px;
    color: var(--color-dark);
    transition: var(--transition);
}

.tecon-pagination ul li a:hover,
.tecon-pagination ul li.current span {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
}

/* ========================================================
   UTILITY CLASSES
   ======================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.hidden   { display: none !important; }

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WP alignment classes */
.alignleft  { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }

/* CF7 styles */
.wpcf7-form input,
.wpcf7-form textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--color-dark);
    margin-bottom: 4px;
    transition: var(--transition);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(253,157,11,0.12); }

.wpcf7-form textarea { height: 140px; resize: vertical; }

.wpcf7-form .wpcf7-submit {
    width: 100%;
    padding: 14px;
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.wpcf7-form .wpcf7-submit:hover { background: var(--color-dark); }

/* --- Mega Menu Styles --- */
.primary-nav > ul > li.has-mega-menu,
.primary-nav ul li.has-mega-menu {
    position: static !important;
}

.primary-nav > ul > li.has-mega-menu > ul.sub-menu,
.primary-nav ul li.has-mega-menu ul.sub-menu {
    display: none !important; /* Hide default sub-menu */
}

.tecon-mega-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-top: 2px solid var(--color-primary) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999 !important;
}

.primary-nav > ul > li.has-mega-menu:hover .tecon-mega-menu,
.primary-nav ul li.has-mega-menu:hover .tecon-mega-menu,
li.has-mega-menu:hover .tecon-mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 20px 0 !important;
    background: #ffffff !important;
}

.mega-col {
    flex: 1 !important;
    padding: 10px 30px !important;
    border-right: 1px solid #eee !important;
    box-sizing: border-box !important;
}

.mega-col:last-child {
    border-right: none !important;
}

.mega-col-sidebar {
    flex: 1.2 !important;
}

.mega-col-links {
    flex: 1 !important;
}

.mega-col-promo {
    flex: 1.5 !important;
    background: transparent !important;
    padding: 10px 30px !important;
    border-right: none !important;
    margin-right: 0 !important;
}

.mega-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--color-dark) !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #eee !important;
}

.mega-sidebar-nav, .mega-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mega-sidebar-nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 15px 0;
    color: var(--color-dark);
    font-size: 16px;
    font-weight: 500;
    border-bottom: none;
    transition: var(--transition);
}
.mega-sidebar-nav li:last-child a {
    border-bottom: none;
}
.mega-sidebar-nav li a:hover {
    color: var(--color-primary);
    background: transparent;
}
.mega-sidebar-nav li.active a {
    color: var(--color-primary) !important;
    background: transparent !important;
    font-weight: 600 !important;
    border-left: none;
    padding-left: 0;
}
.mega-panels-container {
    flex: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}
.mega-panel {
    display: none;
    width: 100%;
}
.mega-panel.active {
    display: flex !important;
}

.mega-list li a {
    display: block;
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    transition: var(--transition);
}

.mega-list li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.mega-col-promo p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-mega-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fd9d0b !important;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-mega-promo:hover {
    background: #e08900 !important;
    color: #ffffff !important;
}

/* --- Projects Archive Category Layout --- */
.project-categories-list {
    margin-top: 40px;
}
.project-cat-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 50px;
    background: #fff;
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 380px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-cat-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.project-cat-row.row-even {
    flex-direction: row-reverse;
}
.project-cat-img {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}
.project-cat-img-inner {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-decoration: none;
}
.project-cat-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}
.project-cat-row:hover .project-cat-img-inner img {
    transform: scale(1.05);
}
.project-cat-text {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    background: #fff;
}
.project-cat-text-inner {
    width: 100%;
}
.project-cat-text .ntitle {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-dark, #1e293b);
    margin: 0 0 16px;
    line-height: 1.3;
}
.project-cat-text .ntitle a {
    transition: color 0.2s ease;
}
.project-cat-text .ntitle a:hover {
    color: var(--color-primary, #fd9d0b);
}
.project-cat-text p {
    font-size: 15.5px;
    color: var(--color-gray, #64748b);
    line-height: 1.75;
    margin: 0 0 28px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.project-cat-text .btn {
    align-self: flex-start;
}
@media (max-width: 991px) {
    .project-cat-row {
        flex-direction: column !important;
        height: auto !important;
        margin-bottom: 35px;
    }
    .project-cat-img {
        flex: 1 1 auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        min-height: 220px;
    }
    .project-cat-text {
        flex: 1 1 auto !important;
        width: 100% !important;
        height: auto !important;
        padding: 35px 25px;
    }
    .project-cat-text .ntitle {
        font-size: 24px;
        margin-bottom: 12px;
    }
    .project-cat-text p {
        -webkit-line-clamp: 3;
        margin-bottom: 20px;
    }
}

/* --- Homepage Solutions Section --- */
.solutions-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    padding-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
}
.solutions-grid::-webkit-scrollbar { height: 6px; }
.solutions-grid::-webkit-scrollbar-track { background: #eee; border-radius: 4px; }
.solutions-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.solutions-grid:hover::-webkit-scrollbar-thumb { background: var(--color-primary); }
.solution-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 370px;
    min-height: 370px;
    flex: 0 0 calc(50% - 15px);
    scroll-snap-align: start;
    min-width: 320px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.solution-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.solution-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}
.solution-item:hover .solution-img img {
    transform: scale(1.05);
}
.solution-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 86%;
    background: #fff;
    padding: 22px 26px 20px;
    border-top-right-radius: 8px;
    box-shadow: 4px -4px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}
.solution-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 8px 0;
    line-height: 1.3;
    min-height: 50px;
    max-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.solution-info p {
    font-size: 13.5px;
    color: var(--color-gray);
    line-height: 1.5;
    margin: 0 0 14px 0;
    min-height: 40px;
    max-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.solution-info .btn {
    align-self: flex-start;
    padding: 8px 20px;
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 0;
}

/* --- Homepage Projects Slider --- */
.projects-slider-container {
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.project-slide-inner {
    display: flex;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 380px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.project-slide-text {
    flex: 0 0 42%;
    padding: 38px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}
.project-slide-text h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.project-slide-text p {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.65;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.project-slide-text .btn {
    align-self: flex-start;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
}
.project-slide-img {
    flex: 0 0 58%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.project-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}
.project-slide-inner:hover .project-slide-img img {
    transform: scale(1.03);
}

.project-slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}
.swiper-button-prev-custom,
.swiper-button-next-custom {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    border: 2px solid var(--color-primary);
    transition: var(--transition);
}
.swiper-button-next-custom {
    background: var(--color-primary);
    color: #fff;
}
.swiper-button-prev-custom:hover {
    background: var(--color-primary);
    color: #fff;
}

@media (max-width: 991px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    .solution-info {
        width: 100%;
        position: relative;
        border-radius: 0;
        box-shadow: none;
        padding: 30px;
    }
    .solution-item {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    .solution-img {
        position: relative;
        height: 300px;
    }
    
    .project-slide-inner {
        flex-direction: column-reverse;
        height: auto;
    }
    .project-slide-img {
        width: 100%;
        height: 260px;
        min-height: 260px;
        aspect-ratio: 16 / 9;
    }
    .project-slide-text {
        flex: 1;
        padding: 30px 24px;
    }
    .project-slide-text h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .project-slide-text p {
        font-size: 14px;
        margin-bottom: 18px;
    }
}

@media (max-width: 991px) {
    .hpart4 {
        padding: 60px 0;
    }
    .hp6-item {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 12px;
        align-items: end;
        height: auto;
    }
    .hp6-list {
        border-right: none !important;
        border-bottom: none !important;
        width: 100% !important;
    }
    .hp6-before {
        font-size: 15px;
    }
    .hp6-list.active .hp6-box {
        min-height: 290px;
        padding: 30px 16px 36px;
    }
    .hp6-txt h3 {
        font-size: 21px;
    }
    .hp6-txt p {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .hp6-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .hp6-list.active .hp6-box {
        min-height: auto;
        padding: 26px 18px 32px;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%);
    }
    .hp6-img i {
        font-size: 42px !important;
    }
}

/* ================================================================
   SINGLE PRODUCT PAGE
   ================================================================ */

/* Sub-page Banner */
.spbanner {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    padding: 60px 0 50px;
    overflow: hidden;
    margin-bottom: 60px;
}
.spbanner-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(253,157,11,0.15) 1px, transparent 0),
                      radial-gradient(rgba(253,157,11,0.08) 1px, transparent 0);
    background-size: 28px 28px;
    background-position: 0 0, 14px 14px;
}
.spbanner-inner { position: relative; z-index: 1; }
.spbanner-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.spbanner-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity .2s;
}
.spbanner-breadcrumb a:hover { opacity: .75; }
.spbanner-breadcrumb i { font-size: 10px; color: rgba(255,255,255,0.4); }
.spbanner-breadcrumb span { color: #fff; }
.spbanner-title {
    font-size: 38px;
    color: #fff;
    font-family: 'Roboto-Bold', sans-serif;
    margin: 0;
    max-width: 800px;
    line-height: 1.2;
}

/* Product Section */
.product-section { padding-bottom: 80px; }

/* Two-column layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 60px;
}

/* Gallery / Image column */
.product-gallery {}
.product-main-img {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    margin-bottom: 20px;
}
.product-photo {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.product-main-img:hover .product-photo { transform: scale(1.03); }
.product-img-placeholder {
    height: 420px;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    gap: 12px;
}
.product-img-placeholder i { font-size: 70px; }
.product-img-placeholder p { font-size: 16px; margin: 0; }

/* Inquiry box below image */
.product-inquiry-box {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.inquiry-label {
    flex: 1;
    font-size: 15px;
    color: #555;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.inquiry-label i { color: var(--color-primary); }
.product-inquiry-btn {
    padding: 12px 22px !important;
    font-size: 15px !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
}
.product-wa-btn {
    padding: 12px 22px !important;
    font-size: 15px !important;
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Info column */
.product-info {}
.product-cat-tag {
    display: inline-block;
    background: rgba(253,157,11,0.12);
    color: var(--color-primary-dark, #d4830a);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-decoration: none;
    margin-bottom: 18px;
    border: 1px solid rgba(253,157,11,0.3);
    transition: background .2s;
}
.product-cat-tag:hover { background: rgba(253,157,11,0.2); }
.product-name {
    font-size: 30px;
    font-family: 'Roboto-Bold', sans-serif;
    color: var(--color-heading, #1a1a2e);
    margin: 0 0 20px;
    line-height: 1.25;
}
.product-divider {
    width: 50px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    margin-bottom: 24px;
}
.product-excerpt {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 28px;
}
.product-excerpt p { margin: 0; }

/* Highlight badges */
.product-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.highlight-item i { color: var(--color-primary); font-size: 18px; flex-shrink: 0; }

/* CTA Buttons */
.product-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-primary-solid {
    background: var(--color-primary) !important;
    color: #333 !important;
    padding: 16px 30px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none !important;
}
.btn-outline-dark {
    background: transparent !important;
    color: #333 !important;
    padding: 15px 30px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #333 !important;
    transition: all .2s !important;
}
.btn-outline-dark:hover {
    background: #333 !important;
    color: #fff !important;
}

/* Product Content Tabs */
.product-tabs-wrap {
    border-top: 2px solid #eee;
    padding-top: 50px;
}
.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 40px;
}
.ptab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 14px 30px;
    font-size: 16px;
    font-family: 'Roboto-Medium', sans-serif;
    color: #888;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: -2px;
}
.ptab-btn:hover { color: var(--color-primary); }
.ptab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.ptab-panel { display: none; }
.ptab-panel.active { display: block; }
.ptab-note {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 6px;
    border-left: 4px solid var(--color-primary);
}

/* Product content rich text */
.product-content h3 {
    font-size: 22px;
    font-family: 'Roboto-Bold', sans-serif;
    color: #1a1a2e;
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--color-primary);
}
.product-content h3:first-child { margin-top: 0; }
.product-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}
.product-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}
.product-content ul li {
    font-size: 16px;
    color: #555;
    padding: 8px 0 8px 28px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.product-content ul li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 11px;
}
.product-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 15px;
}
.product-content table th {
    background: var(--color-primary);
    color: #333;
    padding: 12px 16px;
    text-align: left;
    font-family: 'Roboto-Medium', sans-serif;
}
.product-content table td {
    padding: 11px 16px;
    color: #555;
    border-bottom: 1px solid #eee;
}
.product-content table tr:nth-child(even) td { background: #f8f8f8; }
.product-content table tr:hover td { background: rgba(253,157,11,0.06); }

/* ── Rich Text & Article Table Styles ─────────────────── */
.entry-content table,
.post-entry-body table,
.wp-block-table table,
.solution-content table,
.solution-advantages table,
.solution-value table,
.sblog-left table,
.system-deployed-box table,
.page-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 28px 0 32px !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
}

.entry-content table th,
.entry-content table td,
.post-entry-body table th,
.post-entry-body table td,
.wp-block-table table th,
.wp-block-table table td,
.solution-content table th,
.solution-content table td,
.solution-advantages table th,
.solution-advantages table td,
.solution-value table th,
.solution-value table td,
.sblog-left table th,
.sblog-left table td,
.system-deployed-box table th,
.system-deployed-box table td,
.page-content table th,
.page-content table td {
    padding: 12px 16px !important;
    border: 1px solid #cbd5e1 !important;
    vertical-align: middle !important;
    text-align: left !important;
    height: auto !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.entry-content table thead th,
.entry-content table thead td,
.post-entry-body table thead th,
.post-entry-body table thead td,
.solution-content table thead th,
.solution-content table thead td,
.sblog-left table thead th,
.sblog-left table thead td,
.entry-content table tr:first-child th,
.entry-content table tr:first-child td,
.post-entry-body table tr:first-child th,
.post-entry-body table tr:first-child td,
.solution-content table tr:first-child th,
.solution-content table tr:first-child td,
.sblog-left table tr:first-child th,
.sblog-left table tr:first-child td,
.system-deployed-box table tr:first-child th,
.system-deployed-box table tr:first-child td {
    background: #f1f5f9 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #94a3b8 !important;
}

.entry-content table tbody tr:nth-child(even) td,
.post-entry-body table tbody tr:nth-child(even) td,
.solution-content table tbody tr:nth-child(even) td,
.sblog-left table tbody tr:nth-child(even) td,
.system-deployed-box table tbody tr:nth-child(even) td {
    background: #f8fafc !important;
}

.entry-content table tbody tr:hover td,
.post-entry-body table tbody tr:hover td,
.solution-content table tbody tr:hover td,
.sblog-left table tbody tr:hover td,
.system-deployed-box table tbody tr:hover td {
    background: #f1f5f9 !important;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 25px 0 35px;
}

/* Related Products */
.related-products-section {
    background: #f5f5f5;
    padding: 70px 0;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.related-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .3s, box-shadow .3s;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.related-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}
.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.related-card:hover .related-img img { transform: scale(1.06); }
.related-img-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 40px;
}
.related-info { padding: 18px 20px 22px; }
.related-cat {
    font-size: 12px;
    color: var(--color-primary-dark, #d4830a);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .5px;
    display: block;
    margin-bottom: 8px;
}
.related-title {
    font-size: 16px;
    color: #1a1a2e;
    font-family: 'Roboto-Medium', sans-serif;
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-link {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.related-link i { font-size: 11px; transition: transform .2s; }
.related-card:hover .related-link i { transform: translateX(3px); }

/* Responsive: product page */
@media (max-width: 1024px) {
    .product-layout { grid-template-columns: 1fr; gap: 40px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .spbanner-title { font-size: 30px; }
}
@media (max-width: 600px) {
    .product-layout { gap: 28px; }
    .product-photo, .product-img-placeholder { height: 280px; }
    .related-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .product-highlights { grid-template-columns: 1fr 1fr; }
    .spbanner-title { font-size: 24px; }
    .ptab-btn { padding: 12px 16px; font-size: 14px; }
    .product-inquiry-box { flex-direction: column; align-items: flex-start; }
}

/* Mega Menu Image Cards */
.mega-image-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding: 24px 30px;
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
}
.mega-image-card {
    flex: 0 0 220px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}
.mega-image-card:hover {
    transform: translateY(-4px);
}
.mega-card-img {
    width: 100%;
    height: 160px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.mega-image-card:hover .mega-card-img {
    border-color: var(--color-primary, #fd9d0b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.mega-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.mega-image-card:hover .mega-card-img img {
    transform: scale(1.05);
}
.mega-card-title {
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-dark, #1e293b);
    font-weight: 600;
    transition: color 0.25s ease;
}
.mega-image-card:hover .mega-card-title {
    color: var(--color-primary, #fd9d0b);
}

/* ========================================================
   GLOBAL VIDEO BOX & LIGHTBOX MODAL
   ======================================================== */
.video-box {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: #000;
}
.video-box a {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}
.video-box img {
    width: 100%;
    height: auto;
    max-height: 495px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}
.video-box:hover img {
    transform: scale(1.04);
}
.video-box .bo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 76px;
    height: 76px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-box .bo i {
    font-size: 26px;
    color: #222222;
    margin-left: 4px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.video-box:hover .bo {
    transform: translate(-50%, -50%) scale(1.12);
    background-color: var(--color-primary, #ff9900);
    box-shadow: 0 8px 30px rgba(255, 153, 0, 0.5);
}
.video-box:hover .bo i {
    color: #ffffff;
    transform: scale(1.08);
}
.video-box .bo::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    animation: teconVideoPulse 2s infinite ease-in-out;
}
@keyframes teconVideoPulse {
    0% { transform: scale(0.95); opacity: 0.9; }
    50% { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

.tecon-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.tecon-video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.tecon-video-modal-container {
    position: relative;
    width: 92%;
    max-width: 960px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tecon-video-modal-overlay.active .tecon-video-modal-container {
    transform: scale(1);
}
.tecon-video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tecon-video-modal-close:hover {
    color: var(--color-primary, #ff9900);
    transform: rotate(90deg) scale(1.1);
}
.tecon-video-modal-body {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.tecon-video-modal-body iframe,
.tecon-video-modal-body video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 768px) {
    .video-box .bo { width: 60px; height: 60px; }
    .video-box .bo i { font-size: 20px; }
    .tecon-video-modal-close { top: -38px; font-size: 30px; }
}

/* ========================================================
   UNIFIED SUBPAGE HERO BANNER (.nbanner, .about-hero-banner, .services-hero-banner, etc.)
   Standard 450px min-height matching TECON 1:1 across all pages
   ======================================================== */
.nbanner,
.about-hero-banner,
.services-hero-banner,
.contact-hero-banner,
.solutions-hero-banner,
.projects-hero-banner,
.news-hero-banner,
.page-hero-banner,
.sub-page-banner,
.his-banner {
    color: #ffffff !important;
    position: relative;
    min-height: 450px !important;
    display: flex !important;
    align-items: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    padding: 70px 0 !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    overflow: hidden;
}

.nbanner::before,
.about-hero-banner::before,
.services-hero-banner::before,
.contact-hero-banner::before,
.solutions-hero-banner::before,
.projects-hero-banner::before,
.news-hero-banner::before,
.page-hero-banner::before,
.sub-page-banner::before,
.his-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.nbanner .wrapper,
.about-hero-banner .wrapper,
.services-hero-banner .wrapper,
.contact-hero-banner .wrapper,
.solutions-hero-banner .wrapper,
.projects-hero-banner .wrapper,
.news-hero-banner .wrapper,
.page-hero-banner .wrapper,
.sub-page-banner .wrapper,
.his-banner .wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.nbanner .nbbox,
.about-hero-banner .nbbox,
.services-hero-banner .nbbox,
.contact-hero-banner .nbbox,
.solutions-hero-banner .nbbox,
.projects-hero-banner .nbbox,
.news-hero-banner .nbbox,
.page-hero-banner .nbbox,
.sub-page-banner .nbbox,
.his-banner-inner {
    max-width: 820px !important;
    color: #ffffff !important;
}

.nbanner h1,
.nbanner .page-title,
.about-hero-banner h1,
.about-hero-banner .page-title,
.services-hero-banner h1,
.services-hero-banner .page-title,
.contact-hero-banner h1,
.contact-hero-banner .page-title,
.solutions-hero-banner h1,
.solutions-hero-banner .page-title,
.projects-hero-banner h1,
.projects-hero-banner .page-title,
.news-hero-banner h1,
.news-hero-banner .page-title,
.page-hero-banner h1,
.page-hero-banner .page-title,
.sub-page-banner h1,
.sub-page-banner .page-title,
.his-banner-inner h1 {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 16px !important;
    line-height: 1.25 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.nbanner p,
.about-hero-banner p,
.services-hero-banner p,
.contact-hero-banner p,
.solutions-hero-banner p,
.projects-hero-banner p,
.news-hero-banner p,
.page-hero-banner p,
.sub-page-banner p,
.his-banner-inner p {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: rgba(255,255,255,0.92) !important;
    margin: 0 0 28px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

.nbanner p:last-child,
.about-hero-banner p:last-child,
.services-hero-banner p:last-child,
.contact-hero-banner p:last-child,
.solutions-hero-banner p:last-child,
.projects-hero-banner p:last-child,
.news-hero-banner p:last-child,
.page-hero-banner p:last-child,
.sub-page-banner p:last-child,
.his-banner-inner p:last-child {
    margin-bottom: 0 !important;
}

.nbanner .btn,
.nbanner .btn-banner-readmore,
.about-hero-banner .btn-banner-readmore,
.solutions-hero-banner .btn,
.projects-hero-banner .btn,
.news-hero-banner .btn,
.his-banner .btn-his-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--color-primary, #fd9d0b) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(253, 157, 11, 0.35) !important;
}

.nbanner .btn:hover,
.nbanner .btn-banner-readmore:hover,
.about-hero-banner .btn-banner-readmore:hover,
.solutions-hero-banner .btn:hover,
.projects-hero-banner .btn:hover,
.news-hero-banner .btn:hover,
.his-banner .btn-his-more:hover {
    background: #e68214 !important;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .nbanner,
    .about-hero-banner,
    .services-hero-banner,
    .contact-hero-banner,
    .solutions-hero-banner,
    .projects-hero-banner,
    .news-hero-banner,
    .page-hero-banner,
    .sub-page-banner,
    .his-banner {
        min-height: 360px !important;
        padding: 50px 0 !important;
    }
    .nbanner h1,
    .nbanner .page-title,
    .about-hero-banner h1,
    .about-hero-banner .page-title,
    .services-hero-banner h1,
    .services-hero-banner .page-title,
    .contact-hero-banner h1,
    .contact-hero-banner .page-title,
    .solutions-hero-banner h1,
    .solutions-hero-banner .page-title,
    .projects-hero-banner h1,
    .projects-hero-banner .page-title,
    .news-hero-banner h1,
    .news-hero-banner .page-title,
    .page-hero-banner h1,
    .page-hero-banner .page-title,
    .sub-page-banner h1,
    .sub-page-banner .page-title,
    .his-banner-inner h1 {
        font-size: 34px !important;
    }
}

@media (max-width: 600px) {
    .nbanner,
    .about-hero-banner,
    .services-hero-banner,
    .contact-hero-banner,
    .solutions-hero-banner,
    .projects-hero-banner,
    .news-hero-banner,
    .page-hero-banner,
    .sub-page-banner,
    .his-banner {
        min-height: 300px !important;
        padding: 40px 0 !important;
    }
    .nbanner h1,
    .nbanner .page-title,
    .about-hero-banner h1,
    .about-hero-banner .page-title,
    .services-hero-banner h1,
    .services-hero-banner .page-title,
    .contact-hero-banner h1,
    .contact-hero-banner .page-title,
    .solutions-hero-banner h1,
    .solutions-hero-banner .page-title,
    .projects-hero-banner h1,
    .projects-hero-banner .page-title,
    .news-hero-banner h1,
    .news-hero-banner .page-title,
    .page-hero-banner h1,
    .page-hero-banner .page-title,
    .sub-page-banner h1,
    .sub-page-banner .page-title,
    .his-banner-inner h1 {
        font-size: 28px !important;
    }
    .nbanner p,
    .about-hero-banner p,
    .services-hero-banner p,
    .contact-hero-banner p,
    .solutions-hero-banner p,
    .projects-hero-banner p,
    .news-hero-banner p,
    .page-hero-banner p,
    .sub-page-banner p,
    .his-banner-inner p {
        font-size: 14.5px !important;
        margin-bottom: 20px !important;
    }
}

/* ========================================================
   UNIFIED PAGE BREADCRUMB BAR
   ======================================================== */
.page-breadcrumb-bar {
    background: #ffffff !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

.page-breadcrumb-bar .wrapper {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px 0 !important;
}

.page-breadcrumb-bar a {
    color: #64748b !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.page-breadcrumb-bar a:hover {
    color: var(--color-primary, #fd9d0b) !important;
}

.page-breadcrumb-bar .sep,
.page-breadcrumb-bar span[style*="cbd5e1"] {
    margin: 0 8px !important;
    color: #cbd5e1 !important;
}

.page-breadcrumb-bar .current,
.page-breadcrumb-bar span[style*="1e293b"] {
    color: #1e293b !important;
    font-weight: 500 !important;
}

