/* ===== Override CMS frame.css conflicts ===== */
html {
    font-size: 16px !important;
    scrollbar-color: auto;
}

/* Reset frame.css header element styles that conflict with hero section */
header.hero-section {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    padding: 0 !important;
    background: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    z-index: auto !important;
}

/* Reset frame.css headerholder */
headerholder {
    display: none !important;
}

/* Reset frame.css footer element styles */
footer.footer {
    background-color: #f7f7f7 !important;
}

footer.footer bottom,
footer.footer copyright {
    display: none !important;
}

/* ===== General Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

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

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
}

.space-between {
    justify-content: space-between;
}

/* Typography Constraints */
h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
}

h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
}

.section-sub {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-solid {
    background-color: #00a0e9;
    color: #fff;
    border: 1px solid #00a0e9;
    box-shadow: 0 4px 10px rgba(0, 160, 233, 0.3);
}

.btn-solid:hover {
    background-color: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 6px 15px rgba(0, 160, 233, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #00a0e9;
    border: 1px solid #00a0e9;
}

.btn-outline:hover {
    background-color: #00a0e9;
    color: #fff;
}

.block-btn {
    display: block;
    width: 100%;
}

.block-btn-desktop {
    display: inline-block;
    text-align: center;
}

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

.btn-icon {
    font-size: 0.75rem;
    margin-left: 8px;
}

/* Floating Utils */
.floating-utils {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 999;
}

.util-btn {
    width: 50px;
    height: 50px;
    background-color: #00a0e9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.25rem;
    text-decoration: none;
    border-radius: 8px 0 0 8px;
}

.util-btn:hover {
    background-color: #e60012;
    /* Brand Red */
    width: 60px;
    color: #fff;
}

/* Floating Contact Popup */
.fc-popup {
    position: fixed;
    z-index: 1000;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 18px 22px;
    min-width: 240px;
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.fc-popup-show {
    opacity: 1;
    transform: translateX(0);
}

.fc-popup-arrow {
    position: absolute;
    right: -8px;
    top: 16px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 4px -4px 8px rgba(0, 0, 0, 0.05);
}

.fc-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fc-popup-icon {
    color: #00a0e9;
    font-size: 0.9rem;
}

.fc-popup-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.fc-popup-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #ccc;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.fc-popup-close:hover {
    color: #666;
}

.fc-popup-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a2a3a;
    padding: 10px 14px;
    background: #f5f8fb;
    border-radius: 8px;
    margin-bottom: 12px;
    word-break: break-all;
    user-select: all;
}

.fc-popup-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 0;
    background: #00a0e9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.fc-popup-copy:hover {
    background: #0088cc;
}

.fc-popup-copied {
    background: #10b981 !important;
}

/* Logo Setup */
.logo {
    display: inline-flex;
    flex-direction: column;
    color: #fff;
    /* White logo for dark background in header */
}

.logo-com {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.8;
    display: flex;
    align-items: center;
}

.logo-red-target {
    color: #e60012;
    font-size: 2.2rem;
    margin: 0 2px;
}

.feature-logo {
    display: inline-flex;
    flex-direction: column;
    color: #111;
    /* Dark logo for white backgrounds */
    margin-bottom: 20px;
}

.feature-logo .logo-com {
    font-size: 4rem;
    letter-spacing: -4px;
    margin-bottom: 2px;
}

.feature-logo .logo-red-target {
    font-size: 2.6rem;
}

.logo-subtext {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 5px;
}

/* 1. Hero Section */
.hero-section {
    position: relative;
    background-color: #eef3f9;
    width: 100%;
    aspect-ratio: 1920 / 960;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Swiper Pagination Override */
.hero-section .swiper-slide {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.hero-pagination {
    position: absolute;
    bottom: 5%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.swiper-pagination-bullet.custom-dot {
    width: 35px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s;
    opacity: 1;
    margin: 0 !important;
}

.swiper-pagination-bullet-active.custom-dot {
    background-color: #00a0e9;
}

.navbar-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    /* Light subtle shadow */
    border-radius: 10px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.navbar-wrapper.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4%;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-wrapper.scrolled .navbar {
    padding: 15px 8%;
}

.nav-logo-img {
    height: 55px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.navbar-wrapper.scrolled .nav-logo-img {
    transform: scale(1.2);
    /* For zooming without cutting off, adjusting origin can help if needed */
    transform-origin: left center;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-right: 50px;
}

.nav-links a {
    margin-left: 35px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    transition: color 0.3s;
    letter-spacing: 0.2px;
}

.nav-links a:hover {
    color: #00a0e9;
}

.search-icon {
    font-size: 1.1rem;
    color: #333;
    transition: color 0.3s;
}

.search-icon:hover {
    color: #00a0e9;
}

/* Nav dropdown */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-item-dropdown>a {
    display: flex;
    align-items: center;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    transform: translateX(-50%) translateY(8px);
    z-index: 1000;
}

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

.nav-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-left: 0 !important;
}

.nav-dropdown a {
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: #f0f7ff;
    color: #00a0e9;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: #111;
    width: 100%;
    padding-top: calc(100px + 2vw);
}

.hero-content h1 {
    font-size: clamp(1.4rem, 2.6vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 0.8vw;
    color: #000;
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(0.8rem, 1.05vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
    color: #555;
    white-space: nowrap;
}

.hero-content-slide2 {
    text-align: center;
    color: #fff;
    width: 100%;
}

.hero-content-slide2 h2 {
    font-size: 2.5vw;
    font-weight: 700;
    margin-bottom: 2vw;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content-slide2 h3 {
    font-size: 2.2vw;
    font-weight: 700;
    margin-bottom: 1vw;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* (Swiper Pagination overrides above) */

/* 2. Products Section */
.products-section {
    padding: 4vw 0 3vw 0;
    background-color: #f5f5f5;
    max-width: 100%;
    width: 100%;
}

.products-section .section-sub {
    max-width: 100%;
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 10px;
}

.products-section .section-desc {
    font-size: 0.92rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 45px auto;
    line-height: 1.7;
    font-weight: 400;
}

.tabs {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 30px 15px 30px;
    color: #777;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1 0 auto;
    transition: color 0.3s;
}

.tab-icon-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    transition: filter 0.3s;
}

.tab-btn.active .tab-icon-img {
    filter: invert(41%) sepia(87%) saturate(2053%) hue-rotate(170deg) brightness(97%) contrast(105%);
    /* Turns black/gray to #00a0e9 approx */
}

.tab-btn.active {
    color: #00a0e9;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #00a0e9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.product-card {
    background: #fff;
    padding: 0;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #eee;
}

.product-card:last-child {
    border-right: none;
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.product-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    padding: 25px 15px;
}

.card-info {
    padding: 16px 20px 8px;
    flex: 1;
    text-align: center;
    width: 100%;
}

.card-info h3 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #222;
    line-height: 1.4;
}

.card-info p {
    font-size: 0.78rem;
    color: #999;
    line-height: 1.5;
}

.card-sub-line {
    font-size: 0.78rem;
    color: #e74c3c;
    line-height: 1.5;
    margin: 0;
}

.card-action {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 15px 0 25px 0;
}

.play-btn {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #00a0e9;
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 160, 233, 0.4);
    font-size: 0.9rem;
}

/* 3. Feature Overlay Section */
.feature-overlay-section {
    position: relative;
    background-image: url('../images/feature-bg.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    padding: 3vw 0;
    display: flex;
    align-items: center;
}

.feature-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.feature-card {
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    line-height: 1.3;
    color: #111;
}

.feature-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

.feature-actions {
    display: flex;
    gap: 15px;
}

.feature-divider {
    width: 60px;
    height: 3px;
    background-color: #e60012;
    margin-bottom: 20px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

/* 4. Fields Section */
.fields-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5vw 15px;
}

.fields-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

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

.field-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.field-card-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.field-card:hover .field-card-img {
    transform: scale(1.05);
}

.field-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 15px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    background: rgba(0, 0, 0, 0.65);
}

/* Tab content link (clickable product card area) */
.tab-content-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 5. Divider image */
.pcb-divider {
    width: 100%;
    aspect-ratio: 1920 / 300;
    /* Approximate visible strip, adjusting to not take up entire screen if original was extremely tall */
    background-image: url('../images/pcb-divider-bg.png');
    background-size: cover;
    height: 150px;
    background-position: center;
}

/* 6. News Section */
.news-section {
    padding: 5vw 15px;
    max-width: 1100px;
    margin: 0 auto;
}

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

.news-card {
    background: #f1f3f5;
    border-radius: 4px;
    overflow: hidden;
}

.news-img {
    position: relative;
    width: 100%;
    height: 220px;
}

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

.news-play-btn {
    position: absolute;
    bottom: -20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #00a0e9;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #f1f3f5;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.news-info {
    padding: 35px 30px 40px 30px;
}

.news-info h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.news-info p {
    font-size: 0.88rem;
    color: #777;
    line-height: 1.7;
}

.center-btn {
    padding: 12px 40px;
}

/* 7. Footer */
.footer {
    background-color: #ededed;
    font-size: 0.85rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 15px 30px;
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.8;
}

.social-fb {
    background-color: #3b5998;
}

.social-yt {
    background-color: #e52d27;
}

.social-in {
    background-color: #0077b5;
}

.social-tw {
    background-color: #000;
}

.footer-top {
    padding-top: 10px;
    padding-bottom: 30px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    padding: 0;
}

.form-col {
    width: 25%;
}

.links-col {
    width: 18%;
}

.contact-col {
    width: 28%;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}

.footer-form {
    display: flex;
    flex-direction: column;
}

.footer-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    background: #fff;
    color: #333;
    font-family: inherit;
}

.footer-textarea {
    resize: vertical;
    min-height: 70px;
}

.footer-input:focus {
    outline: none;
    border-color: #00a0e9;
}

.footer-submit {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
}

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

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

.footer-links a {
    color: #555;
    font-weight: 400;
    transition: color 0.3s;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #00a0e9;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-icon {
    color: #333;
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.85rem;
}

.footer-bottom {
    background-color: #e0e0e0;
    padding: 15px 0;
    font-size: 0.8rem;
    color: #555;
}

.footer-bottom-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
}

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

.bottom-links a {
    color: #555;
    transition: color 0.3s;
}

.bottom-links a:hover {
    color: #000;
}

/* =============================================
   HOMEPAGE ABOUT SECTION (feature-overlay)
   ============================================= */
.feature-overlay-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.feature-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 60px 0 60px 0;
    display: flex;
    justify-content: center;
}

.feature-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 50px 60px;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-logo {
    margin-bottom: 10px;
}

.feature-divider {
    width: 50px;
    height: 3px;
    background: #00a0e9;
    margin-bottom: 20px;
}

.feature-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 18px;
}

.feature-card p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
    text-align: justify;
}

.feature-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* ===== Responsive: Tablet (≤1024px) ===== */
@media (max-width: 1024px) {
    .hero-section {
        aspect-ratio: auto;
        height: 60vw;
        min-height: 400px;
        max-height: 75vh;
    }

    .hero-content {
        padding-top: calc(90px + 2vw);
    }

    .navbar-wrapper {
        width: 92%;
        top: 10px;
    }

    .nav-links a {
        margin-left: 20px;
        font-size: 0.85rem;
    }

    .nav-logo-img {
        height: 42px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .field-content {
        flex-direction: column;
    }

    .field-text {
        min-width: auto;
    }

    .field-image {
        min-width: auto;
        min-height: 280px;
    }

    .inner-pad {
        padding: 40px 30px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card {
        min-width: auto;
        max-width: 90%;
        padding: 40px 40px;
    }

    .feature-card h2 {
        font-size: 1.3rem;
    }

    .footer-top {
        flex-wrap: wrap;
    }

    .form-col {
        width: 45%;
    }

    .links-col {
        width: 22%;
    }

    .contact-col {
        width: 100%;
        margin-top: 20px;
    }

    .container {
        padding: 0 20px;
    }
}

/* ===== Responsive: Mobile (≤768px) ===== */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .hero-section {
        aspect-ratio: auto;
        height: 60vw;
        min-height: 250px;
        max-height: 50vh;
        width: 100vw;
        max-width: 100%;
    }

    .hero-section .swiper,
    .hero-section .swiper-wrapper,
    .hero-section .swiper-slide {
        width: 100% !important;
    }

    .hero-content {
        padding-top: calc(80px + 3vw);
    }

    .hero-content h1 {
        font-size: 1.2rem;
        white-space: normal;
        padding: 0 15px;
    }

    .hero-content p {
        font-size: 0.75rem;
        white-space: normal;
        padding: 0 15px;
    }

    .navbar-wrapper {
        width: 95%;
        top: 5px;
        border-radius: 8px;
    }

    .navbar {
        padding: 8px 3%;
    }

    .nav-logo-img {
        height: 32px;
    }

    .nav-links {
        margin-right: 0;
        gap: 0;
    }

    .nav-links a {
        margin-left: 10px;
        font-size: 0.7rem;
    }

    .nav-links .search-icon {
        margin-left: 8px;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-sub {
        font-size: 0.82rem;
        margin-bottom: 25px;
        white-space: normal !important;
        word-break: break-word;
    }

    .products-section {
        padding: 30px 0;
        width: 100%;
        max-width: 100%;
    }

    .products-section .section-sub {
        white-space: normal !important;
        padding: 0 15px;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 5px;
        padding: 0 10px;
    }

    .tab-btn {
        padding: 0 12px 10px;
        font-size: 0.75rem;
        flex: 0 0 auto;
    }

    .tab-icon-img {
        height: 28px;
        width: 28px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 15px;
    }

    .product-card {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .feature-overlay-section {
        padding: 30px 0;
        background-position: center;
        background-size: cover;
    }

    .feature-container {
        justify-content: center;
        padding: 0 15px;
    }

    .feature-card {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 25px 20px;
    }

    .feature-card h2 {
        font-size: 1.2rem;
    }

    .fields-section {
        padding: 30px 15px;
    }

    .field-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn-pill {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .field-content {
        flex-direction: column;
    }

    .field-text {
        min-width: auto;
    }

    .field-image {
        min-width: auto;
        min-height: 200px;
    }

    .inner-pad {
        padding: 30px 20px;
    }

    .news-section {
        padding: 30px 15px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .fields-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pcb-divider {
        height: 80px;
    }

    .footer-top {
        flex-direction: column;
        gap: 25px;
    }

    .footer-col {
        width: 100%;
    }

    .form-col,
    .links-col,
    .contact-col {
        width: 100%;
    }

    .footer-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .floating-utils {
        top: 50%;
        transform: translateY(-50%);
        right: 0;
    }
    .floating-utils .util-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .footer-qr {
        display: none;
    }
}

/* ===== Responsive: Small phone (≤480px) ===== */
@media (max-width: 480px) {
    .hero-section {
        height: 55vw;
        min-height: 200px;
        max-height: 45vh;
    }

    .hero-content {
        padding-top: 20vw;
    }

    .hero-content h1 {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 0.68rem;
    }

    .navbar-wrapper {
        width: 96%;
        top: 6px;
    }

    .navbar {
        padding: 6px 3%;
    }

    .nav-links a {
        margin-left: 6px;
        font-size: 0.62rem;
    }

    .nav-logo-img {
        height: 26px;
    }

    h2 {
        font-size: 1.2rem;
    }

    .section-sub {
        font-size: 0.78rem;
    }

    .feature-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.8rem;
    }

    .fields-grid {
        grid-template-columns: 1fr;
    }

    .news-img {
        height: 180px;
    }
}

/* ═══ Sidebar "Leave Your Message" Modal ═══ */
.sidebar-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-modal-overlay.sidebar-modal-show {
    opacity: 1;
}

.sidebar-modal {
    width: 440px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
    border: 2px solid #00a0e9;
}

.sidebar-modal-show .sidebar-modal {
    transform: scale(1) translateY(0);
}

.sidebar-modal-header {
    background: #00a0e9;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-modal-header h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.sidebar-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.sidebar-modal-close:hover {
    color: #fff;
}

.sidebar-modal-body {
    padding: 30px 28px 28px;
}

.sidebar-form-group {
    margin-bottom: 18px;
}

.sidebar-form-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    color: #333;
}

.sidebar-form-input:focus {
    border-color: #00a0e9;
    box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.1);
}

.sidebar-form-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

.sidebar-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.sidebar-form-submit {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #00a0e9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.sidebar-form-submit:hover {
    background: #0088cc;
    transform: translateY(-1px);
}

.sidebar-form-submit:disabled {
    background: #aadaf0;
    cursor: not-allowed;
    transform: none;
}

/* Toast styles (for pages that don't have inline toast CSS) */
.cm-toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cm-toast-overlay.cm-toast-show {
    opacity: 1;
}

.cm-toast {
    width: 360px;
    max-width: calc(100vw - 40px);
    padding: 36px 30px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: Inter, sans-serif;
}

.cm-toast-show .cm-toast {
    transform: scale(1);
}

.cm-toast-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    font-weight: bold;
}

.cm-toast-success .cm-toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.cm-toast-error .cm-toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.cm-toast-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.cm-toast-msg {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cm-toast-close {
    display: inline-block;
    padding: 9px 40px;
    background: #00a0e9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.cm-toast-close:hover {
    background: #0088cc;
}

/* Sidebar modal responsive */
@media (max-width: 480px) {
    .sidebar-modal {
        width: calc(100vw - 30px);
        border-radius: 12px;
    }

    .sidebar-modal-body {
        padding: 22px 20px 20px;
    }

    .sidebar-form-input {
        padding: 11px 14px;
        font-size: 0.88rem;
    }
}