﻿/*
Theme Name: Astra Child - Geners
Theme URI: https://geners.com.vn
Description: Giao diá»‡n tuá»³ biáº¿n cho Geners dá»±a trÃªn Astra
Author: Geners IT
Author URI: https://geners.com.vn
Template: astra
Version: 1.1.4
Text Domain: astra-child
*/

/* --- GENERS CUSTOM CSS --- */

:root {
    --primary-color: #0d468e; /* Navy blue from Binh Minh */
    --secondary-color: #08346e; 
    --accent-color: #1765c9; /* Bright Blue */
    --text-color: #333333;
    --light-bg: #f8fbff;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --font-main: 'Inter', 'Roboto', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3c7a 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(4, 36, 86, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a3c7a 0%, var(--primary-color) 100%);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(4, 36, 86, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 36, 86, 0.2);
}

/* Topbar */
.geners-topbar {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

.geners-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left span {
    margin-right: 20px;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-right ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.topbar-right a, .topbar-right span {
    color: var(--white);
    margin-left: 15px;
}

/* Header */
.geners-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.geners-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-navigation > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

/* Dropdown Menu (Sub-menu) Styling */
.main-navigation ul li {
    position: relative;
}
.main-navigation ul ul.sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: var(--white);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    margin: 0;
    border: 1px solid rgba(0,0,0,0.04);
}
.main-navigation ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-navigation ul ul.sub-menu li {
    display: block;
    padding: 0;
}
.main-navigation ul ul.sub-menu a {
    display: block;
    padding: 12px 25px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
}
.main-navigation ul ul.sub-menu a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color) !important;
    padding-left: 30px; /* Slight indent effect on hover */
}
.main-navigation ul ul.sub-menu a::after {
    display: none !important; /* Hide the top-level indicator underline */
}
.main-navigation ul ul.sub-menu .ast-icon {
    display: none !important; /* Hide unnecessary arrows in submenus */
}

/* Main Navigation Links */
.main-navigation a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sub-Menu Custom Hover Effect (Sliding Arrow) */
.main-navigation ul ul.sub-menu a::before {
    content: '\f105'; /* FontAwesome angle-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 10px;
    opacity: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-10px);
}
.main-navigation ul ul.sub-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Premium Menu Hover & Active Indicator (Top Level Only) */
.main-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a,
.main-navigation li.current-menu-ancestor > a,
.single-geners_product .main-navigation a[href*="/san-pham/"],
.tax-geners_product_cat .main-navigation a[href*="/san-pham/"] {
    color: var(--primary-color) !important;
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item > a::after,
.main-navigation li.current_page_item > a::after,
.main-navigation li.current-menu-ancestor > a::after,
.single-geners_product .main-navigation a[href*="/san-pham/"]::after,
.tax-geners_product_cat .main-navigation a[href*="/san-pham/"]::after {
    width: 20px; /* Elegant short line */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon {
    font-size: 18px;
    cursor: pointer;
}

/* Hero Section */
/* --- SWIPER CUSTOM STYLES --- */
.hero-swiper {
    width: 100%;
    height: 100%;
    position: absolute !important;
    top: 0; left: 0;
}
.hero-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-swiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 36, 86, 0.4);
}
.swiper-button-next, .swiper-button-prev {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--accent-color);
}
.swiper-pagination-bullet {
    background: var(--white) !important;
    opacity: 0.5 !important;
}
.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--accent-color) !important;
    width: 20px !important;
    border-radius: 10px !important;
    transition: all 0.3s;
}

/* --- ABOUT US SECTION --- */
.about-section {
    padding: 100px 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.about-image-collage {
    position: relative;
    padding-bottom: 50px;
    padding-right: 50px;
}
.about-image-collage .img-main {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.about-image-collage .img-sub {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    border-radius: 16px;
    border: 8px solid var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.experience-badge {
    position: absolute;
    top: 40px;
    left: -30px;
    background: var(--accent-color);
    color: var(--white);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(39, 103, 235, 0.4);
    animation: fadeInUp 1s ease-out;
}
.experience-badge .exp-num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}
.experience-badge .exp-text {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 5px;
}
.about-features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}
.about-features-list li {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.about-features-list i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 20px;
}

/* --- PRODUCT TABS --- */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}
.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}
.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.tab-pane {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}
.tab-pane.active {
    display: block;
}

/* Utilities */
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 48px; }

/* --- MISSING BASE STYLES RESTORED --- */
.products-section, .projects-section, .news-section { padding: 60px 0; }
.products-section, .news-section { background-color: var(--light-bg); }
.projects-section, .features-section, .partners-section { background-color: var(--white); }
.features-section { padding: 60px 0; }
.partners-section { padding: 40px 0 60px; }

.text-center { text-align: center; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 32px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 3px; font-weight: 800; }
.section-subtitle { font-size: 15px; color: #5a6b82; font-weight: 400; }

/* Cards Base */
.product-card, .project-card, .news-card {
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.product-card:hover, .project-card:hover, .news-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    transform: translateY(-10px);
}
.product-img { padding-top: 75%; background-color: #ffffff; display: block; overflow: hidden; height: 0; position: relative; width: 100%; }
.project-img { height: 220px; overflow: hidden; position: relative; }
.news-img { height: 200px; overflow: hidden; position: relative; }

.product-img a, .project-img a, .news-img a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.product-img img, .project-img img, .news-img img {
    width: 100%; height: 100%; transition: transform 0.5s ease; display: block;
}
.product-img img { object-fit: cover; mix-blend-mode: multiply; }
.project-img img, .news-img img { object-fit: cover; }
.product-card:hover .product-img img, .project-card:hover .project-img img, .news-card:hover .news-img img { transform: scale(1.05); }

/* Shine Effect for Images */
.product-img, .project-img, .news-img, .card-img, .hp-project-card .card-img {
    position: relative;
    overflow: hidden;
}
.product-img::before, .project-img::before, .news-img::before, .card-img::before {
    position: absolute;
    top: 0;
    left: -100%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
}
.product-card:hover .product-img::before, 
.project-card:hover .project-img::before, 
.news-card:hover .news-img::before,
.hp-project-card:hover .card-img::before {
    animation: shine 0.8s;
}
@keyframes shine {
    100% {
        left: 125%;
    }
}


.product-info, .news-info { padding: 15px; }
.project-info { padding: 20px; text-align: center; }

.product-title, .project-title, .news-title { font-size: 17px; margin: 0 0 10px; font-weight: 700; color: var(--primary-color); }
.product-desc { font-size: 14px; color: #5a6b82; margin-bottom: 20px; min-height: 40px; line-height: 1.6; }
.project-loc { font-size: 13px; color: #8898aa; margin: 0; font-weight: 500; }
.news-date { font-size: 12px; color: #8898aa; display: block; margin-bottom: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.product-link, .news-link { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; }
.product-link i, .news-link i { transition: transform 0.3s ease; }
.product-link:hover i, .news-link:hover i { transform: translateX(4px); }

/* Partner Logos */
.partner-logo img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.3s ease;
}
.partner-logo:hover img { transform: scale(1.05); }

/* Feature Icons */
.feat-title {
    font-size: 16px; margin-bottom: 12px; color: var(--primary-color);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.feat-desc { font-size: 13px; color: #666; }

/* Footer */
.geners-footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 100px;
    font-size: 14px;
}
.footer-top {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-logo { margin-bottom: 20px; }
.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { color: var(--white); font-size: 18px; }
.footer-widget h4 { color: var(--white); font-size: 16px; margin: 0 0 20px; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: var(--white); }
.footer-contact p { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; }
.footer-bottom-links a { color: rgba(255,255,255,0.8); margin-left: 20px; }

/* --- EXACT MATCH LAYOUT STYLES --- */
.custom-hero {
    padding: 60px 0;
    min-height: 80vh;
    background: linear-gradient(135deg, #ffffff 0%, #e0f0fb 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.custom-hero::before { 
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('images/hero-bg-pattern.png') center center / cover no-repeat;
    opacity: 0.75;
    z-index: -1;
    display: block !important;
}

body.home .hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

body.home .hero-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.hero-left {
    z-index: 10;
}
body.home .hero-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 20px;
    background: none;
    padding: 0;
}
body.home .hero-features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
body.home .hf-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
body.home .hf-item i {
    color: var(--accent-color);
    font-size: 24px;
}
body.home .hf-item h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}
body.home .hf-item p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.hero-main-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.stats-bar-section {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
}
.stats-bar-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.stats-bar-section .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.stats-bar-section .stat-icon {
    font-size: 36px;
    color: white;
}
.stats-bar-section .stat-info {
    text-align: center;
}
.stats-bar-section .stat-number {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    color: white;
}
.stats-bar-section .stat-label {
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.products-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.products-grid-5 .product-card {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.products-grid-5 .product-img {
    height: auto;
}

.projects-slider-wrap, .news-slider-wrap {
    position: relative;
    padding: 0 50px;
}
.hp-project-card:hover .card-img img {
    transform: scale(1.1);
}

.relative { position: relative; }
.proj-prev, .proj-next, .news-prev, .news-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px !important;
    height: 44px !important;
    background: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 50%;
    color: var(--primary-color) !important;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.proj-prev:hover, .proj-next:hover, .news-prev:hover, .news-next:hover {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.proj-prev, .news-prev { left: 0px; }
.proj-next, .news-next { right: 0px; }
.proj-prev:after, .proj-next:after, .news-prev:after, .news-next:after {
    font-size: 18px !important;
    font-weight: bold;
}

.features-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.features-grid-5 .feat-icon-wrap,
.features-grid-4 .feat-icon-wrap {
    width: 60px;
    height: 60px;
    border: 2px dashed #bbccf1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feat-item:hover .feat-icon-wrap {
    background-color: var(--primary-color);
    color: var(--white);
    border-style: solid;
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 20px rgba(13, 70, 142, 0.2);
}

.banner-stats-section {
    position: relative;
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: white;
}
.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 36, 86, 0.9);
}
.banner-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: flex-start; /* Align baselines */
}
.banner-title {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 40px;
}
.stats-grid-4 .stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}
.stats-grid-4 .stat-label {
    font-size: 11px;
    letter-spacing: 1px;
}

.partners-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
}
.partners-grid-6 .partner-logo {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    background: white;
    text-align: center;
}

/* --- SINGLE POST LAYOUT --- */
.post-hero {
    position: relative;
    padding: 100px 0;
    background-color: var(--primary-color); /* Fallback */
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    margin-bottom: 50px;
}
.post-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(4, 36, 86, 0.7), rgba(4, 36, 86, 0.9));
}
.post-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}
.post-categories a {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.post-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--white);
}
.post-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    gap: 20px;
}
.post-meta span i {
    margin-right: 5px;
    color: var(--accent-color);
}
.post-content-wrapper {
    max-width: 1200px;
    margin: 0 auto 80px;
}
.post-content-wrapper.has-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}
.post-main-content {
    /* Main content styling if needed */
}
.post-sidebar {
    padding: 30px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
}
.post-sidebar .widget,
.post-sidebar .wp-block-group {
    margin-bottom: 40px;
}
.post-sidebar .widget-title,
.post-sidebar h2.wp-block-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}
.post-sidebar .widget-title::after,
.post-sidebar h2.wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

/* Sidebar Search Block */
.post-sidebar .wp-block-search {
    margin-bottom: 30px;
}
.post-sidebar .wp-block-search__label {
    display: none;
}
.post-sidebar .wp-block-search__input {
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
}
.post-sidebar .wp-block-search__input:focus {
    border-color: var(--primary-color);
}
.post-sidebar .wp-block-search__button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.post-sidebar .wp-block-search__button:hover {
    background: var(--accent-color);
}

/* Sidebar Lists (Categories, Recent Posts) */
.post-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-sidebar ul li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}
.post-sidebar ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.post-sidebar ul li a {
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
}
.post-sidebar ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 14px;
    margin-top: 2px;
}
.post-sidebar ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}


/* --- PRODUCT SINGLE LAYOUT --- */
.single-geners_product .site-content,
.single-geners_product .ast-container,
.single-geners_product .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

.product-single-main {
    background: #fdfdfd;
}
.product-summary-section {
    padding: 40px 0 60px 0;
    background: var(--white);
}
.product-summary-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: start;
}
/* Gallery Re-design */
.product-main-image {
    background-color: #f8fafc;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding: 0;
    box-shadow: none;
    display: block;
    aspect-ratio: 4/3;
}
.product-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    mix-blend-mode: multiply;
}
.product-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.product-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.product-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.gallery-thumb-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
}
.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumb-item:hover, .gallery-thumb-item.active {
    border-color: var(--primary-color);
}
.product-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    color: #94a3b8;
}
.product-no-image i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Info Re-design */
.product-categories {
    margin-bottom: 20px;
}
.prod-cat-badge {
    display: inline-block;
    background: #f1f5f9;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-right: 10px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.prod-cat-badge:hover {
    background: var(--primary-color);
    color: var(--white);
}
.product-title {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 20px;
}
.product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}
.product-short-desc {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* B2B Spec Table */
.product-spec-table {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.spec-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}
.spec-row:hover {
    background-color: #f8fafc;
}
.spec-row:last-child {
    border-bottom: none;
}
.spec-label {
    flex: 0 0 40%;
    padding: 18px 20px;
    font-weight: 700;
    color: var(--primary-color);
    background-color: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.spec-value {
    flex: 1;
    padding: 18px 20px;
    color: #334155;
    font-weight: 500;
    font-size: 15px;
    background: #fff;
}

/* Call To Action */
.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-large {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    flex: 1;
    text-align: center;
    min-width: 200px;
}
.product-actions i {
    margin-right: 8px;
}

/* Details Section */
.product-content-section {
    padding: 40px 0 80px 0;
    background: #fdfdfd;
}
.product-details-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.product-details-header {
    background: linear-gradient(135deg, var(--primary-color), #0f3d7d);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
}
.product-details-header .section-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.6 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-details-header .section-title i {
    color: #93c5fd;
    margin-right: 0;
    font-size: 18px;
    flex-shrink: 0;
}
.product-details-header .section-title::after {
    display: none !important;
}
.product-full-content {
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    min-height: 300px;
}
.product-full-content h2, .product-full-content h3 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
}
.product-full-content h2:first-child, .product-full-content h3:first-child {
    margin-top: 0;
}
.product-full-content ul {
    padding-left: 20px;
    margin-bottom: 25px;
}
.product-full-content ul li {
    margin-bottom: 10px;
}
.product-full-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e2e8f0;
}
.product-full-content table td, .product-full-content table th {
    border: 1px solid #e2e8f0;
    padding: 15px 25px;
}
.product-full-content table tr td:first-child {
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    width: 35%;
    text-align: center;
}
.product-full-content table tr:hover td {
    background-color: #f8fafc;
}

/* Responsive */
@media (max-width: 992px) {
    .product-summary-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .spec-label {
        flex: 0 0 50%;
    }
}
@media (max-width: 576px) {
    .spec-row {
        flex-direction: column;
    }
    .spec-label {
        border-right: none;
        border-bottom: 1px dashed #e2e8f0;
        padding: 12px 16px;
    }
    .spec-value {
        padding: 12px 16px;
    }
    .product-details-wrapper {
        border: none;
        box-shadow: none;
    }
    .product-full-content {
        padding: 20px;
    }
    .product-details-header {
        padding: 14px 18px !important;
    }
    .product-details-header .section-title {
        font-size: 14px !important;
        line-height: 1.6 !important;
        letter-spacing: 0.3px;
    }
}

/* Upgraded Buttons */
.cta-quote {
    background: linear-gradient(135deg, var(--primary-color), #1459b3) !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(13, 70, 142, 0.2);
    transition: all 0.3s ease !important;
    color: #fff !important;
}
.cta-quote:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(13, 70, 142, 0.3);
}
.cta-call {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}
.cta-call:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 70, 142, 0.1);
}

/* Custom UI Enhancements End */
/* Force Full Width for Page Builder Templates */
body.home.ast-page-builder-template .site-content > .ast-container { max-width: 100% !important; padding: 0 !important; }
body.home.ast-page-builder-template .site-content { padding: 0 !important; }

/* Homepage Products Grid */
.custom-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
@media (max-width: 992px) { .custom-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .custom-products-grid { grid-template-columns: 1fr; } }

/* --- HOMEPAGE REFINEMENT (Khoa há»c & Chuáº©n B2B) --- */

/* 1. Breathing Room (Paddings) */
.custom-products, .custom-projects, .news-section, .partners-section, .core-values {
    padding: 80px 0 !important;
}

/* 2. Section Titles Standardized */
.section-title {
    font-size: 36px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}
.section-subtitle {
    font-size: 16px !important;
    color: #64748b !important;
    margin-bottom: 50px !important;
}

/* 3. Products Grid Flexbox & Image Fit */
.custom-products-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.custom-products-grid .product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.custom-products-grid .product-desc {
    flex-grow: 1; /* Pushes the button to the bottom */
}
/* --- BULLETPROOF EQUAL HEIGHT FOR ALL CARDS & SLIDERS --- */
.swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
}
.swiper-slide {
    height: auto !important;
    display: flex !important;
}
.project-card, .news-card, .product-card, .b2b-product-card {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
.project-info, .news-info, .product-info, .b2b-product-info {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}
.custom-products-grid .product-img {
    background-color: #ffffff !important;
    padding: 0 !important;
    padding-top: 75% !important;
    height: 0;
    width: 100%;
    display: block;
    position: relative;
}
.custom-products-grid .product-img img {
    object-fit: cover !important;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply !important;
}

/* 4. Core Values Refinement */
.core-values {
    background-color: #ffffff !important;
}
.core-values .icon-box {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 25px !important;
    border-radius: 50% !important;
    background: var(--white) !important;
    box-shadow: 0 10px 25px rgba(13, 70, 142, 0.08) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px !important;
    color: var(--secondary-color) !important;
    transition: all 0.3s ease;
}
.core-values .val-item:hover .icon-box {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(13, 70, 142, 0.15) !important;
    background: var(--primary-color) !important;
    color: var(--white) !important;
}
.core-values h4 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}
.core-values p {
    font-size: 15px !important;
    color: #64748b !important;
    line-height: 1.6;
}

/* 5. Hero Image Fix */
.hero-image-wrap {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    border-radius: 20px !important;
    overflow: hidden;
}
.hero-image-wrap img {
    border-radius: 20px !important;
    width: 100%;
    height: auto;
    display: block;
}
body.home .hero-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* Slider Refinements */
.projects-slider-wrap, .news-slider-wrap { padding: 0 50px; position: relative; }
.proj-prev, .news-prev { left: 0px !important; }
.proj-next, .news-next { right: 0px !important; }
@media(max-width: 768px) { .projects-slider-wrap, .news-slider-wrap { padding: 0 10px; } .proj-prev, .news-prev, .proj-next, .news-next { display: none; } }

/* Hide Astra Default Footer */
.site-footer { display: none !important; }

/* --- FINAL AESTHETIC POLISH --- */

/* 1. Hero Section */
body.home .hero-features-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    margin-top: 30px !important;
}
body.home .hf-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 15px !important;
    flex: 1;
}
body.home .hf-item i {
    font-size: 28px !important;
    color: var(--secondary-color) !important;
    background: #eef2f6;
    padding: 12px;
    border-radius: 50%;
}
body.home .hf-item h4 {
    font-size: 15px !important;
    font-weight: 800 !important;
    margin-bottom: 5px !important;
    color: var(--primary-color) !important;
    text-transform: uppercase;
}
body.home .hf-item p {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}
@media (max-width: 992px) {
    body.home .hero-features-list { flex-direction: column !important; }
}
.hero-image-wrap {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.btn-outline:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

/* 2. Products Grid */
.custom-products-grid .product-title::after {
    display: none !important; /* Remove weird underline */
}
.custom-products-grid .product-title {
    font-size: 18px !important;
    padding-bottom: 0 !important;
    text-transform: uppercase;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
}
.custom-products-grid .product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #f1f5f9;
}
.custom-products-grid .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(13, 70, 142, 0.1) !important;
}
.custom-products-grid .product-link {
    color: var(--secondary-color) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.custom-products-grid .product-link i {
    transition: transform 0.3s ease;
}
.custom-products-grid .product-link:hover i {
    transform: translateX(5px);
}

/* 3. Strict Aspect Ratio for Projects & News */
.project-card .project-img img {
    aspect-ratio: 4/3;
    object-fit: cover !important;
    width: 100%;
    transition: transform 0.5s ease;
}
.news-card .news-img img {
    aspect-ratio: 16/9;
    object-fit: cover !important;
    width: 100%;
    transition: transform 0.5s ease;
}
.project-card, .news-card {
    border-radius: 12px;
    overflow: hidden;
}
.project-img, .news-img {
    overflow: hidden;
}
.project-card:hover .project-img img, .news-card:hover .news-img img {
    transform: scale(1.08);
}
.project-info .project-title, .news-info .news-title {
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* 4. Core Values Polish */
.core-values .icon-box i {
    font-size: 40px !important;
}
.core-values .icon-box {
    box-shadow: 0 15px 30px rgba(13, 70, 142, 0.12) !important;
}
.core-values h4 {
    color: var(--primary-color) !important;
    text-transform: uppercase;
    font-size: 18px !important;
}

/* 5. Section Titles */
.section-title::after {
    height: 5px !important;
    width: 80px !important;
    border-radius: 3px !important;
    bottom: -15px !important;
}
.section-title {
    margin-bottom: 35px !important;
}

/* --- PREMIUM AESTHETIC OVERHAUL (Luxury Vibes) --- */

/* 1. Global Background & Variables */
body, .site-content {
    background-color: #ffffff !important; /* Super subtle cool white */
}
:root {
    --premium-easing: cubic-bezier(0.16, 1, 0.3, 1);
    --premium-shadow: 0 20px 40px rgba(13, 70, 142, 0.05);
    --premium-shadow-hover: 0 30px 60px rgba(13, 70, 142, 0.12);
}

/* 2. Soft Shadows & Border Radius */
.project-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.product-card, .news-card {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: var(--premium-shadow) !important;
    transition: transform 0.6s var(--premium-easing), box-shadow 0.6s var(--premium-easing) !important;
    background: var(--white) !important;
}
.product-card:hover, .project-card:hover, .news-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--premium-shadow-hover) !important;
}

/* 3. Button Refinement */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5ab3 100%) !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(13, 70, 142, 0.2) !important;
    transition: all 0.4s var(--premium-easing) !important;
}
.btn-primary:hover {
    box-shadow: 0 15px 30px rgba(13, 70, 142, 0.3) !important;
    transform: translateY(-2px) !important;
}
.btn-outline {
    border: 2px solid var(--primary-color) !important;
    background: transparent !important;
    color: var(--primary-color) !important;
    box-shadow: none !important;
    transition: all 0.4s var(--premium-easing) !important;
}
.btn-outline:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 10px 20px rgba(13, 70, 142, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* 4. Typography Elegance */
.section-title {
    letter-spacing: 1.5px !important; /* Luxurious tracking */
}
body.home .hero-title {
    letter-spacing: -0.5px !important; /* Tighter for big display */
}
.product-title, .project-title, .news-title {
    letter-spacing: 0.5px !important;
}
body.home .hf-item h4 {
    letter-spacing: 1px !important;
}
.section-subtitle, .hf-item p, .product-desc {
    color: #475569 !important; /* Richer Slate gray */
}

/* 5. Hero & Core Values Refinement */
.hero-image-wrap img {
    border-radius: 24px !important;
    box-shadow: var(--premium-shadow-hover) !important;
}
.core-values {
    background-color: var(--white) !important; /* Alternate background */
}
.core-values .icon-box {
    box-shadow: var(--premium-shadow) !important;
    border: 1px solid #f1f5f9 !important;
    width: 110px !important;
    height: 110px !important;
}
.core-values .val-item:hover .icon-box {
    box-shadow: var(--premium-shadow-hover) !important;
}
/* --- ELEGANT ALTERNATING SECTION RHYTHM --- */
.custom-products {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.custom-products .product-card {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
    border: 1px solid #e2e8f0 !important;
}
.custom-projects {
    background-color: #ffffff !important;
}
.core-values, .features-section {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.news-section {
    background-color: #ffffff !important;
}
.partners-section {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* --- SPACING & SIZING FIXES --- */

/* 1. Hero Features Fix */
body.home .hero-features-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-top: 40px !important;
}
body.home .hf-item {
    display: flex !important;
    flex-direction: column !important; /* Revert back to column so text has room */
    align-items: flex-start !important;
    gap: 15px !important;
}
body.home .hf-item h4 {
    font-size: 16px !important;
    margin-bottom: 5px !important;
    letter-spacing: 0 !important;
}
body.home .hf-item p {
    font-size: 14px !important;
}
body.home .hero-title {
    font-size: 3rem !important; /* Slightly larger, 48px */
    line-height: 1.25 !important;
}

/* 2. Core Values Fix */
.core-values .icon-box {
    width: 80px !important; /* Smaller circle */
    height: 80px !important;
    margin: 0 auto 20px !important;
}
.core-values .icon-box i {
    font-size: 32px !important; /* Scaled down icon */
}
.core-values h4 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
}
.core-values p {
    font-size: 14px !important;
}

/* 3. Product Cards Padding */
.product-info {
    padding: 20px 25px !important;
}
.product-title {
    font-size: 18px !important;
    margin-bottom: 10px !important;
}
.product-desc {
    font-size: 14px !important;
    margin-bottom: 20px !important;
}
.product-link {
    margin-top: auto !important; /* Ensure it stays at bottom if flex is used */
}

/* 4. Projects & News Spacing */
.project-info {
    padding: 25px 20px !important;
}
.project-title {
    font-size: 20px !important;
    margin-bottom: 10px !important;
}
.news-info {
    padding: 25px 20px !important;
}
.news-title {
    font-size: 18px !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

/* 5. Section Header Spacing */
.section-subtitle {
    margin-bottom: 40px !important;
    font-size: 16px !important;
}
.section-title {
    font-size: 32px !important; /* Slightly smaller than 36 for better proportion */
}

/* 6. General buttons */
.btn {
    padding: 12px 30px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

/* --- HERO PROPORTION FIX --- */

/* 1. Grid Proportions */
body.home .hero-grid {
    grid-template-columns: 1fr 1fr !important; /* Equal split */
    gap: 50px !important;
}

/* 2. Hero Title & Text */
body.home .hero-title {
    font-size: 2.8rem !important; /* ~44px */
    line-height: 1.25 !important;
    margin-bottom: 20px !important;
}
body.home .hero-subtitle {
    display: inline-block;
    margin-bottom: 15px !important;
    letter-spacing: 2px;
}
body.home .hero-desc {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
}

/* 3. Hero Features Fix */
body.home .hero-features-list {
    margin-top: 30px !important;
    margin-bottom: 40px !important;
    gap: 15px !important;
}
body.home .hf-item {
    gap: 12px !important;
}
body.home .hf-item i {
    font-size: 24px !important;
    padding: 15px !important;
    width: 55px !important;
    height: 55px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.home .hf-item h4 {
    font-size: 15px !important;
    letter-spacing: 0 !important; /* Reset so it fits */
}

/* 4. Hero Actions */
body.home .hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media(max-width: 992px) {
    body.home .hero-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Override Astra Container for Full Width Templates */
body.page-id-7 .site-content > .ast-container,
body.page-template-template-products .site-content > .ast-container,
body.page-template-template-projects .site-content > .ast-container,
body.post-type-archive-geners_project .site-content > .ast-container,
body.post-type-archive-geners_product .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}
body.page-id-7 .site-content,
body.page-template-template-products .site-content,
body.page-template-template-projects .site-content,
body.post-type-archive-geners_project .site-content,
body.post-type-archive-geners_product .site-content {
    padding: 0 !important;
}

/* --- ABOUT PAGE (GIá»šI THIá»†U) PREMIUM STYLING --- */

/* 1. Global About Page Adjustments (Fixed) */
.eyebrow {
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    color: var(--accent-color) !important;
    margin-bottom: 15px !important;
    display: block !important;
}

/* 2. Hero Section */
.geners-about-hero {
    background: linear-gradient(135deg, #042456 0%, #0d468e 100%) !important;
    color: #ffffff !important;
    padding: 120px 0 100px !important;
    position: relative;
}
.geners-about-hero .hero-title {
    color: #ffffff !important;
    font-size: 3.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
}
.geners-about-hero .hero-subtitle {
    color: rgba(255,255,255,0.85) !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    
}
.geners-about-hero .eyebrow {
    color: #94a3b8 !important;
}
.geners-about-hero .wp-block-button__link {
    padding: 15px 35px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
}

/* 3. Story Section */
.geners-about-story {
    padding: 100px 0 !important;
    background-color: var(--white) !important;
}
.story-image img {
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(13, 70, 142, 0.1) !important;
}

/* 4. Vision Section */
.geners-about-vision {
    padding: 100px 0 !important;
    background-color: #f8fafc !important;
}
.vision-card {
    background: var(--white) !important;
    border-radius: 20px !important;
    padding: 40px 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    text-align: center !important;
    border: 1px solid #f1f5f9 !important;
    height: 100% !important;
}
.vision-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(13, 70, 142, 0.08) !important;
    border-color: #e2e8f0 !important;
}
.vision-card h3 i {
    font-size: 28px !important;
    color: var(--accent-color) !important;
    margin-bottom: 0 !important;
    margin-right: 12px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}
.vision-card h3 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
    color: var(--primary-color) !important;
}
.vision-card p {
    color: #64748b !important;
    line-height: 1.6 !important;
}

/* 5. Core Values Grid */
.value-card {
    background: var(--white) !important;
    border-left: 4px solid var(--accent-color) !important;
    padding: 30px 25px !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
    border-radius: 0 12px 12px 0 !important;
}
.value-card:hover {
    background: #f8fafc !important;
    border-left-color: var(--primary-color) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05) !important;
}
.value-card h4 {
    font-size: 18px !important;
    color: var(--primary-color) !important;
    margin-bottom: 12px !important;
    font-weight: 800 !important;
}
.value-card p {
    font-size: 14.5px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* 6. Capabilities & Network */
.geners-about-capabilities {
    padding: 100px 0 !important;
    background-color: var(--white) !important;
}
.geners-about-network {
    padding: 100px 0 !important;
    background-color: #f8fafc !important;
}
.network-number {
    font-size: 90px !important;
    color: var(--accent-color) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin: 30px 0 !important;
}
.map-image img {
    mix-blend-mode: multiply !important;
}

/* 7. Process Section */
.geners-about-process {
    padding: 100px 0 !important;
    background-color: var(--white) !important;
}
.process-step {
    position: relative !important;
    padding-top: 30px !important;
    margin-top: 40px !important;
}
.process-step::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 20px !important;
    height: 3px !important;
    background: #e2e8f0 !important;
    transition: background 0.3s ease !important;
}
.process-step:hover::before {
    background: var(--accent-color) !important;
}
.step-number {
    font-size: 56px !important;
    color: #cbd5e1 !important;
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    line-height: 1 !important;
    transition: color 0.3s ease !important;
}
.process-step:hover .step-number {
    color: var(--primary-color) !important;
}

/* 8. CTA Section */
.geners-about-cta {
    background: linear-gradient(135deg, #0d468e 0%, #042456 100%) !important;
    color: white !important;
    padding: 100px 0 !important;
}
.geners-about-cta .section-title {
    color: white !important;
}
.geners-about-cta p {
    color: rgba(255,255,255,0.85) !important;
}
.cta-contact-info {
    margin-top: 30px !important;
    margin-bottom: 40px !important;
    font-size: 16px !important;
}

/* --- ABOUT PAGE BUTTON FIXES --- */
.geners-about-hero .is-style-outline .wp-block-button__link {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    background: transparent !important;
}
.geners-about-hero .is-style-outline .wp-block-button__link:hover {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
}
.geners-about-hero .is-style-fill .wp-block-button__link {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
    border-color: var(--accent-color) !important;
}
.geners-about-hero .is-style-fill .wp-block-button__link:hover {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
}
.step-number { font-size: 48px !important; }



/* --- CUSTOM BUTTON COLORS (btn-gold & btn-white) --- */

.geners-about-cta .wp-block-button__link {
    padding: 15px 35px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    transition: all 0.4s var(--premium-easing) !important;
}

.btn-gold .wp-block-button__link {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.3) !important;
}
.btn-gold .wp-block-button__link:hover {
    background: linear-gradient(135deg, #e5c158 0%, #d4af37 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(184, 134, 11, 0.4) !important;
    color: #ffffff !important;
}

.btn-white.is-style-outline .wp-block-button__link {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    background: transparent !important;
}
.btn-white.is-style-outline .wp-block-button__link:hover {
    background: #ffffff !important;
    color: var(--primary-color) !important;
}

/* ==========================================================================
   GLOBAL PREMIUM DESIGN SYSTEM (Synchronized B2B Style)
   ========================================================================== */

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Global Wrapper & Backgrounds */
.premium-wrapper {
    background-color: #f1f5f9;
    padding: 70px 0;
    min-height: 100vh;
}
.bg-slate { background-color: #f8fafc; }
.bg-white { background-color: #ffffff; }

/* Elegant Hero Banner */
.elegant-hero {
    background: linear-gradient(135deg, #042456 0%, #0a3576 100%);
    padding: 70px 0;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.elegant-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff !important;
    animation: fadeInUp 0.8s ease;
}
.elegant-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.9) !important;
    max-width: 650px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .elegant-hero { padding: 40px 0; }
    .elegant-hero h1 { font-size: 28px; }
}

/* Premium Layout Grids */
.premium-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}
.premium-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 992px) {
    .premium-grid-2, .premium-grid-3 { grid-template-columns: 1fr; }
}

/* Premium Cards */
.premium-card {
    background: #ffffff; 
    border-radius: 20px; 
    padding: 45px 40px; 
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05); 
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.08); 
}
.premium-card-accent {
    position: relative; overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(4,36,86,0.08); 
}
.premium-card-accent::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; 
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); 
}

/* Card Typography */
.card-title { font-size: 24px; font-weight: 800; color: #0f172a; margin-bottom: 15px; line-height: 1.3; }
.card-title.accent { color: var(--primary-color); }
.card-desc { color: #64748b; font-size: 15px; margin-bottom: 25px; line-height: 1.6; }

/* Header Search Dropdown */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-search {
    position: relative;
}
.search-toggle {
    color: #333;
    font-size: 20px;
    line-height: 1;
    display: block;
}
.search-toggle:hover {
    color: var(--primary-color);
}
.search-dropdown {
    position: absolute;
    top: 150%;
    right: 0;
    width: 300px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}
.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.search-dropdown form {
    display: flex;
    margin: 0;
}
.search-dropdown form input[type="search"] {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    padding: 8px 15px;
}
.search-dropdown form button[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 15px;
    cursor: pointer;
}
/* Search Form Overrides */
.search-dropdown {
    width: 250px;
}
.custom-search-form {
    display: flex;
    margin: 0;
    width: 100%;
}
.custom-search-form input[type="search"] {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px !important;
    padding: 8px 15px;
    height: 40px;
    margin: 0;
    background: #fff;
    color: #333;
    font-size: 14px;
    box-shadow: none !important;
}
.custom-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
}
.custom-search-form button[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0 !important;
    padding: 0 15px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: auto;
}
.custom-search-form button[type="submit"]:hover {
    background: var(--secondary-color, #0b4b8a);
}
/* Sticky Header */
.geners-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff; /* Ensure it has a background */
    transition: box-shadow 0.3s ease;
}
.geners-header.is-sticky {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* Logo Styling */
.site-branding img {
    max-height: 50px;
    width: auto;
    display: block;
}
/* --- COMPREHENSIVE RESPONSIVE CSS --- */
@media (max-width: 992px) {
    /* Hide topbar on mobile */
    .geners-topbar {
        display: none !important;
    }
    
    /* Header layout */
    .geners-header .container {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .site-branding {
        flex: 1 1 auto;
    }
    
    .header-right {
        flex: 0 0 auto;
        gap: 15px;
    }
    
    .header-right .btn-primary {
        display: none; /* Hide heavy CTA on mobile header, keep search */
    }

    /* Mobile scrollable navigation */
    .main-navigation {
        order: 3;
        width: 100%;
        margin-top: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .main-navigation > ul {
        flex-wrap: nowrap;
        gap: 20px;
    }
    
    .main-navigation ul li a {
        white-space: nowrap;
        font-size: 14px;
        padding: 5px 0;
    }
    
    .main-navigation ul ul.sub-menu {
        /* Allowed Astra to handle submenus on mobile */
    }
}

@media (max-width: 768px) {
    /* Typography & Spacing */
    .elegant-hero {
        padding: 50px 15px !important;
    }
    .elegant-hero h1 {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }
    .elegant-hero p {
        font-size: 15px !important;
        margin-bottom: 25px !important;
    }
    
    /* Grids to single column */
    .premium-grid-2, .premium-grid-3, .premium-grid-contact {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Fix inline style grids in template-home.php */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important; /* Keep 63+ 100% 24h 500+ as 2 columns on mobile */
        gap: 15px !important;
    }
    
    /* Fix flex rows to columns (buttons) */
    div[style*="display: flex; gap: 20px"] {
        flex-direction: column;
        gap: 10px !important;
        width: 100%;
    }
    div[style*="display: flex; gap: 20px"] a.btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px !important;
    }
    
    /* Fix section paddings */
    .custom-products, .custom-projects, .news-section, .partners-section, .core-values, .premium-wrapper {
        padding: 40px 0 !important;
    }
    
    .section-title {
        font-size: 24px !important;
    }
}
/* Hide scrollbar for mobile navigation */
.main-navigation::-webkit-scrollbar {
    display: none;
}
.main-navigation {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
@media (max-width: 992px) {
    /* Reset Astra default mobile menu borders */
    .main-navigation, .main-navigation ul, .main-navigation ul li, .main-navigation ul li a {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .main-navigation {
        border-top: 1px solid #f1f5f9 !important; /* A subtle separator above the menu */
        padding-top: 10px !important;
        margin-top: 15px !important;
    }
}
/* --- HAMBURGER MENU OVERRIDES --- */
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 26px; color: #0f172a; cursor: pointer; padding: 0; outline: none; margin-left: 15px; }

@media (max-width: 992px) {
    .mobile-menu-toggle { display: block; }
    
    .geners-header .container {
        position: relative;
    }
    
    .main-navigation {
        display: none !important;
        order: 3;
        width: calc(100% + 30px);
        margin: 40px -15px -15px -15px !important;
        background: #f8fafc !important;
        padding: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    
    .main-navigation.active {
        display: block !important;
    }
    
    .main-navigation > ul {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .main-navigation ul li {
        border-bottom: 1px solid #e2e8f0 !important;
    }
    
    .main-navigation ul li:last-child {
        border-bottom: none !important;
    }
    
    .main-navigation ul li a {
        white-space: normal !important;
        font-size: 15px !important;
        padding: 15px 20px !important;
        display: block !important;
        text-align: left !important;
    }
    
    .main-navigation > ul > li > a::after {
        display: none !important; /* Hide the blue bar under text on mobile */
    }
    
    .main-navigation a:hover,
    .main-navigation li.current-menu-item > a {
        background: #f1f5f9 !important;
        color: var(--primary-color) !important;
    }
}
/* --- HERO MOBILE FIXES --- */
@media (max-width: 768px) {
    body.home .hero-features-list,
    .hero-features-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Make the feature items horizontal flex on mobile for better aesthetics */
    body.home .hero-features-list .hf-item,
    .hero-features-list .hf-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        background: #ffffff !important;
        padding: 15px 20px !important;
        border-radius: 12px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    }
    
    body.home .hero-features-list .hf-item i,
    .hero-features-list .hf-item i {
        margin: 0 15px 0 0 !important;
        font-size: 24px !important;
        width: 50px !important;
        height: 50px !important;
        background: #f1f5f9 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    body.home .hero-features-list .hf-item h4,
    .hero-features-list .hf-item h4 {
        margin: 0 0 5px 0 !important;
        font-size: 16px !important;
        text-align: left !important;
    }
    
    body.home .hero-features-list .hf-item p,
    .hero-features-list .hf-item p {
        margin: 0 !important;
        font-size: 13px !important;
        text-align: left !important;
        color: #64748b !important;
    }
}
/* --- HERO TITLE MOBILE FIX --- */
@media (max-width: 768px) {
    body.home .hero-title,
    .hero-title {
        font-size: 32px !important;
        line-height: 1.35 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 15px !important;
    }
    
    /* Hide the forced line break on mobile so text can flow naturally */
    body.home .hero-title br,
    .hero-title br {
        display: none !important;
    }
    
    body.home .hero-subtitle,
    .hero-subtitle {
        font-size: 13px !important;
        letter-spacing: 1.5px !important;
    }
    
    body.home .hero-desc,
    .hero-desc {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
}
/* --- STATS BAR MOBILE FIX --- */
@media (max-width: 768px) {
    .stats-bar-section .stats-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 30px 15px !important;
    }
    .stats-bar-section .stat-item {
        flex: 0 0 calc(50% - 15px) !important;
    }
    .stats-bar-section .stat-item:nth-child(n+5) {
        display: none !important;
    }
    .stats-bar-section .stat-icon i {
        font-size: 32px !important;
    }
    .stats-bar-section .stat-number {
        font-size: 24px !important;
    }
    .stats-bar-section .stat-label {
        font-size: 11px !important;
    }
}
/* --- FEATURES GRID MOBILE FIX --- */
@media (max-width: 992px) {
    .features-grid-4, .features-grid-5 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}
@media (max-width: 576px) {
    .features-grid-4, .features-grid-5 {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}
/* --- BANNER STATS MOBILE FIX --- */
@media (max-width: 992px) {
    .banner-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }
    
    .banner-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.2) !important;
        padding-top: 30px !important;
    }
}
/* --- FOOTER MOBILE FIX --- */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    .footer-top {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 25px 15px !important;
    }
    .footer-col-1 {
        grid-column: 1 / -1 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 20px !important;
        margin-bottom: 10px !important;
    }
    .footer-widget h4 {
        font-size: 15px !important;
        margin: 0 0 12px !important;
    }
    .footer-links li {
        margin-bottom: 6px !important;
        font-size: 13px !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    .footer-bottom-links a {
        margin: 0 10px !important;
    }
}
/* --- PARTNERS SLIDER MOBILE FIX --- */
@media (max-width: 992px) {
    .partners-grid-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .partners-grid-6 {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 20px !important;
        gap: 15px !important;
        /* Hide scrollbar for a native app feel */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .partners-grid-6::-webkit-scrollbar {
        display: none;
    }
    .partners-grid-6 > * {
        flex: 0 0 40% !important; /* 40% width allows peaking the next item */
        scroll-snap-align: start !important;
    }
}
/* --- HERO BUTTONS MOBILE FIX --- */
@media (max-width: 768px) {
    body.home .hero-actions {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        margin-top: 25px !important;
    }
    body.home .hero-actions .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        padding: 15px 20px !important; /* Larger tap target */
        font-size: 15px !important;
    }
}

/* --- HEADER ICONS BALANCE (MOBILE & DESKTOP) --- */
.search-toggle i {
    font-size: 24px !important;
}
.mobile-menu-toggle {
    font-size: 24px !important;
    margin-left: 20px !important;
}
.header-right {
    align-items: center !important;
}
/* --- SINGLE POST CUSTOM LAYOUT FIX --- */
body.single-post .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

body.single-post #primary.site-main {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    padding: 0 !important;
}

body.single-post .post-content-wrapper {
    max-width: 1200px !important;
    margin: 60px auto 80px !important;
    padding: 0 20px !important;
}

body.single-post .post-main-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

@media (max-width: 992px) {
    body.single-post .post-content-wrapper.has-sidebar {
        grid-template-columns: 1fr !important;
    }
}
/* --- POST NAVIGATION CSS --- */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}
.post-navigation a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.post-navigation a:hover {
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.nav-previous a {
    align-items: flex-start;
    text-align: left;
}
.nav-next a {
    align-items: flex-end;
    text-align: right;
}
.nav-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}
.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    display: block;
}
@media (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
}
/* --- POST NAVIGATION ASTRA OVERRIDES --- */
.post-navigation {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    border: none !important;
    border-top: 1px solid #e2e8f0 !important;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
    width: 100% !important;
    display: block !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.post-navigation .nav-previous::after,
.post-navigation .nav-next::before,
.post-navigation .nav-previous::before,
.post-navigation .nav-next::after {
    display: none !important; /* Remove Astra's default vertical borders/icons */
}
.post-navigation a {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
/* --- SIDEBAR SEARCH WIDGET FIX --- */
.widget_search .search-form,
.wp-block-search .wp-block-search__inside-wrapper {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
}

.widget_search .search-field,
.wp-block-search .wp-block-search__input {
    flex: 1 !important;
    border-radius: 6px 0 0 6px !important;
    border: 1px solid #cbd5e1 !important;
    border-right: none !important;
    padding: 10px 15px !important;
    height: 44px !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.widget_search .search-submit,
.wp-block-search .wp-block-search__button {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 0 6px 6px 0 !important;
    padding: 0 20px !important;
    height: 44px !important;
    margin: 0 !important;
    font-weight: 600 !important;
}
.projects-swiper .project-info {
    justify-content: flex-start !important;
}
.projects-swiper .project-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 52px !important; 
    margin-bottom: auto !important;
}
.projects-swiper .project-location {
    margin-top: 15px !important;
}
/* --- VISION PAGE SUPPLY CHAIN ARROWS MOBILE FIX --- */
.chain-arrow {
    color: var(--accent-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .supply-chain-diagram {
        flex-direction: column;
    }
    .chain-arrow i {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .supply-chain-diagram > div {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
/* --- MOBILE SUBMENU RESET --- */
@media (max-width: 992px) {
    .main-navigation ul ul.sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 5px 0 5px 20px !important;
        width: 100% !important;
        background: transparent !important;
    }
    .main-navigation ul ul.sub-menu a {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    /* Hide the custom FontAwesome arrows in mobile submenus to keep it clean */
    .main-navigation ul ul.sub-menu a::before {
        display: none !important;
    }
}
/* --- FIX MOBILE SUBMENU TOGGLE HIDING --- */
/* Display none removed for animation */
/* --- FIX MOBILE SUBMENU ARROWS --- */
@media (max-width: 992px) {
    .main-navigation ul li.menu-item-has-children {
        position: relative;
    }
    .main-navigation ul li.menu-item-has-children > .ast-menu-toggle {
        display: flex !important;
        position: absolute;
        right: 0;
        top: 0;
        height: 54px; /* Matches link height approx */
        width: 50px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--primary-color);
        z-index: 10;
        cursor: pointer;
    }
    .main-navigation ul li.menu-item-has-children > .ast-menu-toggle svg {
        fill: currentColor;
        width: 15px;
        height: 15px;
    }
    .main-navigation ul li.menu-item-has-children > a {
        padding-right: 50px !important; /* Leave space for toggle */
    }
    .main-navigation ul li.ast-submenu-expanded > .ast-menu-toggle svg {
        transform: rotate(180deg);
    }
}
/* --- MOBILE MENU ANIMATIONS --- */
@media (max-width: 992px) {
    /* Submenu Accordion Animation */
    .main-navigation ul ul.sub-menu {
        display: block !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease !important;
    }
    .main-navigation ul li.ast-submenu-expanded > ul.sub-menu,
    .main-navigation ul li.menu-item-has-children.ast-submenu-expanded > ul.sub-menu {
        max-height: 600px !important; /* Large enough for items */
        opacity: 1 !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        margin-top: 5px !important;
    }
    
    /* Toggle Icon Rotation Animation */
    .main-navigation ul li.menu-item-has-children > .ast-menu-toggle svg {
        transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    }
    
    /* Overall Mobile Popup Animation (Smooth Slide In) */
    .ast-mobile-popup-drawer {
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    }
    .ast-mobile-popup-overlay {
        transition: opacity 0.4s ease !important;
    }
}

/* --- FLOATING CONTACT WIDGET --- */
.geners-floating-contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    pointer-events: none;
}

.contact-item {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 5px 15px 5px 5px;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.icon-wrap img, .icon-wrap svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.zalo-bg {
    background: #0068FF;
}

.phone-bg {
    background: #FF3B30;
}

.contact-label {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-left: 10px;
    white-space: nowrap;
}

/* Pulsing Animation */
.icon-pulse {
    position: absolute;
    width: 44px;
    height: 44px;
    top: 5px;
    left: 5px;
    border-radius: 50%;
    z-index: 1;
    animation: pulse-ring 1.5s infinite;
}

.zalo-pulse {
    background: rgba(0, 104, 255, 0.4);
}

.phone-pulse {
    background: rgba(255, 59, 48, 0.4);
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
    .geners-floating-contact {
        bottom: 15px;
        left: 15px;
        gap: 12px;
    }
    .contact-item {
        padding: 4px 12px 4px 4px;
    }
    
    .icon-wrap {
        width: 38px;
        height: 38px;
    }
    
    .icon-pulse {
        width: 38px;
        height: 38px;
        top: 4px;
        left: 4px;
    }
    
    .icon-wrap img, .icon-wrap svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-label {
        font-size: 13px;
        margin-left: 8px;
    }
}


/* --- FIX HOMEPAGE BOTTOM GAP --- */
.home #content, .home .site-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.home .site-main {
    margin-bottom: 0 !important;
}

/* --- FIX NEWS DATE BADGE --- */
.news-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}
.news-date-badge .nd-day {
    font-size: 22px;
    font-weight: 700;
}
.news-date-badge .nd-month {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.9;
}
.news-date-badge .nd-month::before {
    content: "Th";
}

/* --- FIX HERO MOBILE LAYOUT --- */
@media (max-width: 992px) {
    body.home .hero-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
    body.home .hero-right {
        margin-bottom: 20px;
    }
}

/* --- CENTER LOGO ON MOBILE --- */

/* --- FIX MOBILE HEADER LAYOUT (MENU LEFT) --- */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        margin-left: 0 !important;
        margin-right: auto !important; /* Pushes header-right to the right edge */
    }
}

/* --- GLOBAL MOBILE FIX --- */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

/* --- CENTER LOGO ON MOBILE --- */
@media (max-width: 992px) {
    .geners-header .container {
        justify-content: flex-end; /* Push header-right to the right */
        min-height: 70px; /* Ensure header doesn't collapse */
    }
    .site-branding {
        position: absolute;
        top: 15px; /* Prevent it from dropping down when menu opens */
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        flex: none !important;
    }
}

/* --- BLOG SIDEBAR & LIST RESET --- */
.post-sidebar ul, 
.post-sidebar li,
.widget-categories ul,
.widget-categories li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.post-sidebar li::before, 
.post-sidebar li::after,
.post-sidebar a::before, 
.post-sidebar a::after,
.widget-categories li::before,
.widget-categories li::after,
.widget-categories a::before,
.widget-categories a::after {
    display: none !important;
    content: "" !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Sửa lỗi hiển thị hình ảnh và mô tả trong bài viết */
.single-post .entry-content figure.wp-block-image,
.single-post .site-main figure.wp-block-image {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 40px 0 !important;
    padding: 0 !important;
}

.single-post .entry-content figure.wp-block-image img,
.single-post .site-main figure.wp-block-image img {
    border-radius: 12px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
}

.single-post .entry-content figure.wp-block-image figcaption,
.single-post .site-main figure.wp-block-image figcaption {
    text-align: center !important;
    font-size: 15px !important;
    color: #64748b !important;
    font-style: italic !important;
    margin-top: 16px !important;
    padding: 0 20px !important;
    line-height: 1.6 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
