/*
Theme Name: VastSea
Theme URI: https://www.vspow.com
Author: Agnes AI
Description: A custom WordPress theme replicating vspow.com - Professional Lithium Battery Pack & BMS Manufacturer (VastSea Power Technology)
Version: 1.0
Text Domain: vastsea
*/

:root {
    --primary: #0093dd;
    --primary-dark: #0079b7;
    --secondary: #97d4f2;
    --heading: #2d2d2d;
    --body: #454545;
    --bg-light: #f7fbfe;
    --dark: #22252a;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    background: #fff;
    overflow-x: hidden;
}

body.admin-bar .site-header {
    top: 32px;
}

a {
    color: #525252;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
    color: var(--primary);
}

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

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

p {
    margin: 0;
}

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

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

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

.section {
    padding: 82px 0;
}

.section-title {
    margin-bottom: 44px;
    text-align: center;
    font-size: 40px;
    color: var(--heading);
    letter-spacing: 0.5px;
}

.section-title .sub {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-inquiry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 30px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-inquiry:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--primary);
}

/* ============ Header ============ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: var(--primary);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 68px;
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: auto;
    height: 100%;
}

.site-logo img,
.site-logo .custom-logo {
    width: auto;
    max-height: 60px; /* Matches menu height in 68px header */
    /* Logo already has white border, no filter needed */
}

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

.main-nav {
    flex: 0 1 auto;
}

.main-nav > ul,
.main-nav > div > ul,
.main-nav .menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    display: block;
    padding: 14px 12px;
    color: #fff; /* White text by default */
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.main-nav li a:hover {
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

.site-header.scrolled .main-nav li a {
    color: #fff; /* Keep white on blue background */
}

.site-header.scrolled .main-nav li a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a {
    opacity: 0.85;
}

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

.main-nav .sub-menu {
    position: absolute;
    top: 100%; /* Flush against menu item - no gap to lose hover */
    left: 0;
    min-width: 250px;
    padding: 10px 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.main-nav .sub-menu li a {
    padding: 9px 18px;
    color: #525252 !important; /* Force dark text, not inherit white */
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    white-space: normal;
}

.main-nav .sub-menu li a:hover {
    background: #f5f9fc;
    color: var(--primary) !important;
}

.header-cta {
    flex: 0 0 auto;
}

.header-cta .btn-inquiry {
    min-height: 42px;
    padding: 0 22px;
    font-size: 13px;
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.header-cta .btn-inquiry:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

.site-header.scrolled .header-cta .btn-inquiry {
    background: #fff;
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: 0;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: #fff; /* White toggle on transparent header */
    transition: background 0.3s ease;
}

.site-header.scrolled .mobile-toggle span {
    background: #fff; /* Keep white on blue background */
}

/* ============ Hero ============ */

.site-main {
    overflow: hidden;
}

.hero-banner {
    position: relative;
    margin-top: 0; /* No margin - header overlays hero */
    height: min(720px, 100vh);
    min-height: 480px;
    background: #0b3f7a;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-text {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 640px;
    color: #fff;
    padding-left: max(20px, calc((100vw - 1200px) / 2));
}

.hero-text .hero-sub {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
}

.hero-text h1,
.hero-text h2 {
    margin-bottom: 18px;
    font-size: 46px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero-text .hero-desc {
    margin-bottom: 30px;
    max-width: 520px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-nav {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 5;
    display: flex;
    gap: 12px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* ============ About / Who We Are ============ */

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.about-section.reverse {
    direction: rtl;
}

.about-section.reverse > * {
    direction: ltr;
}

.about-img img {
    width: 100%;
    border-radius: 6px;
}

.about-inner .title {
    margin-bottom: 20px;
    font-size: 36px;
    color: var(--heading);
}

.about-inner .title .accent {
    color: var(--primary);
}

.about-inner .about-desc {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.9;
    color: #5a5a5a;
}

.about-points {
    margin-top: 18px;
}

.about-points li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 26px;
    font-size: 15px;
    color: #555;
}

.about-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.85;
}

/* ============ Custom packs ============ */

.packs-section {
    background: var(--bg-light);
}

.packs-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 44px;
}

.pack-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}

.pack-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.pack-card .pack-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 22px;
    background: linear-gradient(transparent, rgba(0, 60, 100, 0.85));
    color: #fff;
    font-weight: 600;
    font-size: 17px;
}

/* ============ Battery types ============ */

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.type-card {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.type-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.type-card .type-info {
    padding: 18px 20px;
}

.type-card .type-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--heading);
    transition: color 0.2s ease;
}

.type-card:hover .type-title {
    color: var(--primary);
}

.type-card .type-desc {
    margin-top: 6px;
    font-size: 13px;
    color: #8a8a8a;
}

/* ============ Products / solutions grid ============ */

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

.product-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.product-card .item-img {
    position: relative;
    overflow: hidden;
}

.product-card .item-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-card .item-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 147, 221, 0.92);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-card:hover .item-btn {
    opacity: 1;
}

.product-card .item-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.product-card .item-info {
    padding: 18px;
}

.product-card .item-order {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
}

.product-card .item-title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--heading);
    min-height: 42px;
}

.product-card .item-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ Smart battery solutions (features) ============ */

.features-section {
    background: var(--bg-light) url('./assets/images/features/features-bg.png') left bottom no-repeat;
    background-size: 420px auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.feature-card {
    position: relative;
    padding: 36px 26px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(0, 147, 221, 0.1);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 147, 221, 0.18);
}

.feature-card .feature-img {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.feature-card .feature-order {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 26px;
    font-weight: 700;
    color: rgba(0, 147, 221, 0.18);
}

.feature-card .feature-title {
    margin-bottom: 12px;
    font-size: 19px;
    color: var(--heading);
}

.feature-card .feature-desc {
    font-size: 13.5px;
    line-height: 1.8;
    color: #6a6a6a;
}

/* ============ Why VastSea (dark advantages) ============ */

.advantage-dark {
    background: var(--dark) url('./assets/images/advantages/advantages-bg.png') center / cover no-repeat;
    color: #cfd6dd;
}

.advantage-dark .section-title {
    color: #fff;
}

.advantage-dark .section-title .sub {
    color: var(--secondary);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.adv-card {
    position: relative;
    padding: 30px 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, transform 0.25s ease;
}

.adv-card:hover {
    background: rgba(0, 147, 221, 0.16);
    transform: translateY(-6px);
}

.adv-card .adv-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.adv-card .adv-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.adv-card .adv-order {
    margin-left: auto;
    font-size: 22px;
    font-weight: 700;
    color: rgba(151, 212, 242, 0.4);
}

.adv-card .adv-title {
    margin-bottom: 10px;
    font-size: 20px;
    color: #fff;
}

.adv-card .adv-desc {
    font-size: 13.5px;
    line-height: 1.8;
    color: #b9c2cb;
}

/* ============ Powering the future (video) ============ */

.future-section .about-video {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.future-section video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

.milestones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.milestone {
    padding: 26px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.milestone .num {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.milestone .label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* ============ Trusted partner / stats ============ */

.partner-section {
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin-bottom: 46px;
}

.stat-item {
    padding: 30px 18px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(0, 147, 221, 0.08);
}

.stat-item .stat-num {
    font-size: 44px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.stat-item .stat-num sup {
    font-size: 24px;
}

.stat-item .stat-label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: #fff;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: #4a4a4a;
}

.service-item svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
    flex: 0 0 auto;
}

/* ============ Inquiry CTA ============ */

.inquiry-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0, 90, 150, 0.78), rgba(0, 60, 110, 0.82)), url('./assets/images/banner/hero-bg-1.png') center center / cover no-repeat;
}

.inquiry-section .title {
    margin-bottom: 16px;
    font-size: 40px;
    color: #fff;
    text-transform: uppercase;
}

.inquiry-section .inquiry-desc {
    max-width: 760px;
    margin: 0 auto 30px;
    font-size: 17px;
    line-height: 1.8;
}

/* ============ Footer ============ */

.site-footer {
    background: #202326;
    color: #c9c9c9;
    padding: 70px 0 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.1fr 1fr;
    gap: 34px;
}

.footer-item .foot-logo img {
    max-height: 56px;
    margin-bottom: 18px;
}

.footer-item .foot-title {
    margin-bottom: 18px;
    font-size: 22px;
    color: #fff;
    text-transform: uppercase;
}

.footer-item .foot-desc,
.footer-item .foot-val,
.footer-item .foot-inquiry p {
    font-size: 14px;
    line-height: 1.9;
    color: #c9c9c9;
}

.foot-nav li {
    margin-bottom: 10px;
}

.foot-nav li a {
    color: #c9c9c9;
    font-size: 14px;
    text-transform: none;
}

.foot-nav li a:hover {
    color: var(--primary);
}

.foot-contacts li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.foot-ico svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    margin-top: 3px;
    flex: 0 0 auto;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
}

.footer-social li a svg {
    width: 18px;
    height: 18px;
    fill: #333;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
    color: #9d9d9d;
}

/* ============ Inner pages ============ */

.page-header-banner {
    margin-top: 0; /* No margin - header overlays */
    padding-top: 68px; /* Space for fixed header */
    height: 450px;
    background: linear-gradient(135deg, #0b3f7a, var(--primary) 60%, var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.page-header-banner h1 {
    font-size: 44px;
    color: #fff;
    text-transform: uppercase;
}

.breadcrumb {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.85;
}

.breadcrumb a {
    color: #fff;
}

.product-archive-section {
    padding-top: 70px;
}

.product-archive-title {
    margin-bottom: 34px;
    font-size: 36px;
    color: var(--heading);
    text-align: center;
}

.archive-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.archive-sidebar {
    position: sticky;
    top: 90px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 8px;
}

.archive-sidebar h3 {
    margin-bottom: 14px;
    font-size: 18px;
    color: var(--primary);
    text-transform: uppercase;
}

.archive-sidebar li {
    margin-bottom: 8px;
}

.archive-sidebar li a {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}

.archive-sidebar li a:hover,
.archive-sidebar li.current-cat a {
    background: var(--primary);
    color: #fff;
}

.product-archive-pagination {
    margin-top: 40px;
}

.product-archive-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    list-style: none;
}

.product-archive-pagination a,
.product-archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d8eaf5;
    border-radius: 4px;
    background: #fff;
    color: var(--primary);
    font-weight: 600;
}

.product-archive-pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* single product */

.single-product-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}

.single-product-media img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-product-info h2 {
    margin-bottom: 16px;
    font-size: 30px;
}

.single-product-info .product-cat {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    background: var(--bg-light);
    border-radius: 20px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.single-product-info .product-content {
    margin-top: 18px;
    line-height: 1.9;
    color: #555;
}

.single-product-info .product-content p {
    margin-bottom: 12px;
}

.related-products {
    margin-top: 70px;
}

/* news */

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

.news-card {
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.news-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.news-card .news-body {
    padding: 20px;
}

.news-card .news-date {
    margin-bottom: 8px;
    color: #8b8b8b;
    font-size: 12px;
}

.news-card .news-title {
    margin-bottom: 10px;
    font-size: 17px;
    transition: color 0.2s ease;
}

.news-card:hover .news-title {
    color: var(--primary);
}

.news-card .news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.single-post-content {
    line-height: 1.9;
    color: #555;
}

.single-post-content p {
    margin-bottom: 14px;
}

.single-post-content h2,
.single-post-content h3 {
    margin: 26px 0 12px;
}

.single-post-content img {
    border-radius: 6px;
}

/* contact form */

.contact-form {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 8px;
}

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

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

.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font: inherit;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 147, 221, 0.15);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 36px;
    border: 0;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form .btn-submit:hover {
    background: var(--primary-dark);
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.form-message.ok {
    background: #e6f7ec;
    color: #1d7a3d;
}

.form-message.err {
    background: #fdecec;
    color: #b3352c;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-bottom: 50px;
}

.contact-info-card {
    padding: 30px 24px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.contact-info-card svg {
    width: 34px;
    height: 34px;
    fill: var(--primary);
    margin: 0 auto 14px;
}

.contact-info-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-info-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ============ Responsive ============ */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .main-nav li a {
        padding: 10px 8px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .hero-banner {
        height: 520px;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 34px;
    }

    .about-section,
    .single-product-wrap {
        grid-template-columns: 1fr;
    }

    .types-grid,
    .adv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .stats-grid,
    .service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .archive-layout {
        grid-template-columns: 1fr;
    }

    .archive-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: fixed; /* Overlay hero transparently like desktop */
    }

    .header-inner {
        min-height: 58px;
        padding: 8px 0;
    }

    .site-logo img,
    .site-logo .custom-logo {
        max-height: 50px;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        padding: 20px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav > ul,
    .main-nav > div > ul,
    .main-nav .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav li a,
    .site-header.scrolled .main-nav li a {
        padding: 16px 6px;
        font-size: 15px;
        color: #333; /* Dark text on white mobile menu (override scrolled white) */
        white-space: normal;
        border-bottom: 1px solid #eef4f9;
    }

    .main-nav li a:hover,
    .site-header.scrolled .main-nav li a:hover,
    .main-nav li.current-menu-item > a,
    .main-nav li.current_page_item > a,
    .site-header.scrolled .main-nav li.current-menu-item > a,
    .site-header.scrolled .main-nav li.current_page_item > a {
        color: var(--primary);
        opacity: 1;
    }

    .main-nav .sub-menu li a,
    .site-header.scrolled .main-nav .sub-menu li a {
        color: #555;
    }

    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        background: transparent;
    }

    .hero-banner {
        margin-top: 0;
        height: 420px;
    }

    .hero-text {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 28px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .about-inner .title {
        font-size: 26px;
    }

    .types-grid,
    .products-grid,
    .news-grid,
    .features-grid,
    .adv-grid,
    .packs-cards,
    .milestones {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .service-list,
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .page-header-banner {
        padding-top: 58px; /* Match fixed mobile header height */
    }

    .page-header-banner h1 {
        font-size: 30px;
    }

    .inquiry-section .title {
        font-size: 28px;
    }
}
