/* ==========================================================================
   MITSUBISHI ELEVATOR - CUSTOM CSS
   Aesthetics: Premium, Minimalist, Japanese Quality & Trust
   ========================================================================== */

:root {
    --primary-color: #E60012;      /* Mitsubishi Red */
    --primary-hover: #B8000E;      /* Darker Red */
    --dark-color: #111111;         /* Premium Black */
    --dark-secondary: #1A1A1A;   /* Card & Footer Dark background */
    --light-gray: #F8F9FA;         /* Soft Gray Background */
    --text-color: #222222;         /* Charcoal Black for readability */
    --text-muted: #666666;         /* Secondary Text */
    --border-color: #E5E5E5;       /* Subtle Border */
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-family: 'Be Vietnam Pro', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* Sections */
section {
    padding: 100px 0; /* Consistent uniform padding between sections */
    position: relative;
}

.bg-light-gray {
    background-color: var(--light-gray);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;
    position: relative;
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0 auto;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons & CTAs */
.btn-mitsu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-mitsu:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.2);
}

.btn-mitsu-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-mitsu-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.15);
}

.btn-mitsu-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-mitsu-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-mitsu-white-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-mitsu-white-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 1. Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: transparent;
    padding: 14px 0;
}

/* Prevent WordPress' logged-in admin bar from covering the fixed header. */
body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

.navbar {
    padding: 0;
}

.navbar > .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.25rem;
}

.navbar-brand img {
    height: 46px;
    max-width: 220px;
    object-fit: contain;
    width: auto;
    transition: var(--transition-smooth);
}

header.scrolled .navbar-brand img {
    height: 42px;
}

.navbar-nav {
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1400px) {
    .navbar-nav {
        gap: 0.4rem;
    }
}

.nav-link {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--white); /* White in hero section by default */
    padding: 0.7rem 0.7rem !important;
    position: relative;
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: -0.01em;
    border-radius: 6px;
}

header.scrolled .nav-link {
    color: var(--dark-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.7rem;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 1.4rem);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(230, 0, 18, 0.06);
}

/* Subpages use a light header. Keep it readable before JavaScript initializes. */
body.subpage header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

body.subpage header .nav-link {
    color: var(--dark-color);
}

body.subpage header .hotline-link {
    color: var(--primary-color);
}

body.subpage header .toggler-icon span {
    background-color: var(--dark-color);
}

header.scrolled .nav-link:hover,
header.scrolled .nav-link.active {
    color: var(--primary-color) !important;
}

.header-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.75rem;
}

@media (min-width: 1400px) {
    .header-right {
        gap: 1.5rem;
    }
}

.hotline-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
    white-space: nowrap;
    text-decoration: none;
}

header.scrolled .hotline-link {
    color: var(--primary-color);
}

.header-btn {
    padding: 0.72rem 1.15rem;
    font-size: 0.82rem;
    white-space: nowrap;
    border-radius: 6px;
}

.mobile-header-cta {
    display: none;
}

/* Mobile Toggler styles */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.toggler-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: inline-block;
}

.toggler-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--white);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

header.scrolled .toggler-icon span {
    background-color: var(--dark-color);
}

.toggler-icon span:nth-child(1) { top: 0px; }
.toggler-icon span:nth-child(2) { top: 8px; }
.toggler-icon span:nth-child(3) { top: 16px; }

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}
.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}
.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* 2. Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    background-color: var(--dark-color);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0.4) 30%, rgba(17, 17, 17, 0) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 140px;
    padding-bottom: 80px;
    width: 100%;
}

.hero-left-wrapper {
    position: relative;
    padding-right: 2rem;
}

/* Subtle red gradient background behind text container */
.hero-text-container {
    position: relative;
    padding: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span.mitsu-highlight {
    color: var(--primary-color);
}

.hero-desc {
    font-size: 1.1rem;
    color: #CCCCCC;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 4rem;
}

/* Stats underneath hero */
.hero-stats-row {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-number span {
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. Section Giới thiệu */
.about-section {
    background-color: var(--white);
}

.about-content-col {
    padding-right: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-tag {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.about-title {
    font-size: 2.25rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: justify;
}

.about-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-img-wrapper img {
    width: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-img-wrapper:hover img {
    transform: scale(1.03);
}

/* 4. Section Sản phẩm */
.products-section {
    background-color: var(--white);
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #EEE;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.product-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.product-link i {
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

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

.product-card:hover .product-link i {
    transform: translateX(4px);
}

/* 5. Section Lý do chọn (Why Us) */
.why-section {
    background-color: var(--light-gray);
}

.why-card {
    background-color: transparent;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    height: 100%;
}

.why-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.why-card:hover .why-icon {
    transform: scale(1.1);
}

.why-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.why-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 6. Section Quy trình (Timeline) */
.process-section {
    background-color: var(--white);
}

.timeline-container {
    position: relative;
    margin-top: 4rem;
}

/* Horizontal line on desktop */
.timeline-line {
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: rgba(230, 0, 18, 0.15);
    z-index: 1;
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-step {
    flex: 1;
    text-align: center;
    padding: 0 15px;
}

.timeline-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.timeline-step:hover .timeline-number {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
}

.timeline-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-step-content {
    min-width: 0;
}

.timeline-step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 200px;
    margin: 0 auto;
}

/* 7. Section Dự án (Projects) */
.projects-section {
    background-color: var(--white);
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-img {
    height: 260px;
    overflow: hidden;
    background-color: #EEE;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img img {
    transform: scale(1.03);
}

.project-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    text-transform: uppercase;
}

.project-body {
    padding: 1.75rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-title a {
    color: inherit;
    text-decoration: none;
}

.project-title a:hover,
.project-title a:focus-visible {
    color: var(--primary-color);
}

.project-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #F0F0F0;
}

.project-meta-item:last-child {
    border-bottom: none;
}

.project-meta-label {
    color: var(--text-muted);
}

.project-meta-val {
    font-weight: 500;
    color: var(--dark-color);
}

.projects-btn-row {
    margin-top: 4rem;
    text-align: center;
}

/* 8. CTA đỏ (Call to action) */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #E60012 0%, #B8000E 100%);
    color: var(--white);
}

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

.cta-text {
    max-width: 650px;
}

.cta-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0;
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* 9. Section Liên hệ (Contact) */
.contact-section {
    background-color: var(--white);
}

.contact-form-wrapper {
    background-color: var(--white);
    padding-right: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-control {
    height: 52px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--dark-color);
    transition: var(--transition-smooth);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.08);
    outline: none;
}

.contact-form textarea.form-control {
    height: 140px;
}

.contact-form .btn-submit {
    height: 52px;
    width: 100%;
}

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

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-info-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.contact-info-text h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--dark-color);
}

.contact-info-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-map-wrapper {
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Floating Widgets / Zalo Button */
.zalo-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background-color: #0068FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 104, 255, 0.4);
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.zalo-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.5);
    color: var(--white);
}

/* 10. Footer */
footer {
    background-color: var(--dark-secondary);
    color: #CCCCCC;
    font-size: 0.9rem;
    padding: 80px 0 30px 0;
    border-top: 4px solid var(--primary-color);
}

.footer-col-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    position: relative;
}

.footer-col-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

.footer-logo-desc {
    margin-top: 1rem;
    line-height: 1.6;
    font-size: 0.85rem;
    color: #999999;
}

.footer-logo-image {
    width: auto;
    max-width: 240px;
    height: 54px;
    object-fit: contain;
    object-position: left center;
}

.mobile-action-bar {
    display: none;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .mobile-action-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1035;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        border-top: 1px solid rgba(17, 17, 17, .1);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -10px 28px rgba(17, 17, 17, .13);
        backdrop-filter: blur(12px);
    }

    .mobile-action-bar__item {
        min-width: 0;
        min-height: 62px;
        display: grid;
        grid-template-rows: 30px auto;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 5px 3px;
        border-right: 1px solid #eeeeee;
        border-radius: 8px;
        color: #333333;
        font-size: .66rem;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
    }

    .mobile-action-bar__label {
        width: auto !important;
        height: auto !important;
        display: block !important;
        overflow: visible !important;
        color: #333333;
        font-size: .66rem;
        font-weight: 700;
        line-height: 1.15;
        opacity: 1 !important;
        visibility: visible !important;
        white-space: normal;
    }

    .mobile-action-bar__item:last-child {
        border-right: 0;
    }

    .mobile-action-bar__item:active,
    .mobile-action-bar__item:focus-visible {
        background: rgba(230, 0, 18, .07);
        color: var(--primary-color);
    }

    .mobile-action-bar__icon {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f4f4f4;
        color: var(--primary-color);
        font-size: .9rem;
        justify-self: center;
    }

    .mobile-action-bar__item--phone .mobile-action-bar__icon {
        background: var(--primary-color);
        color: var(--white);
    }

    .mobile-action-bar__item--zalo .mobile-action-bar__icon {
        background: #0877ff;
        color: var(--white);
    }

    .zalo-float-btn {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .footer-logo-image {
        max-width: 210px;
        height: 48px;
    }
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #CCCCCC;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer-links a i {
    font-size: 0.75rem;
}

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

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.footer-contact-icon {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #777777;
}

.footer-bottom-links {
    text-align: right;
}

.footer-bottom-links a {
    color: #777777;
    margin-left: 1.5rem;
}

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

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    /* Header Scrolled Toggle Mobile behavior */
    header {
        background-color: var(--white);
        box-shadow: var(--shadow-sm);
        padding: 15px 0;
    }

    .navbar > .container {
        gap: .75rem;
        flex-wrap: wrap;
    }

    .mobile-header-cta {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .45rem;
        margin-left: auto;
        padding: .65rem 1rem;
        border: 1px solid var(--primary-color);
        border-radius: 7px;
        background: var(--primary-color);
        color: var(--white);
        font-size: .78rem;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
        white-space: nowrap;
        box-shadow: 0 5px 14px rgba(230, 0, 18, .18);
    }

    .mobile-header-cta:hover,
    .mobile-header-cta:focus-visible {
        border-color: var(--primary-hover);
        background: var(--primary-hover);
        color: var(--white);
    }

    .mobile-header-cta__short {
        display: none;
    }
    
    .nav-link {
        color: var(--dark-color);
        padding: 0.75rem 0;
    }
    
    .hotline-link {
        color: var(--primary-color);
    }
    
    .navbar-collapse {
        order: 10;
        flex: 0 0 100%;
        width: 100%;
        margin-top: .75rem;
        background-color: var(--white);
        padding: .625rem;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        box-shadow: 0 14px 34px rgba(17, 17, 17, .12);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .navbar-nav {
        align-items: stretch;
        gap: .2rem;
        width: 100%;
    }

    .nav-link {
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: .75rem .9rem !important;
        border-bottom: 0;
        border-radius: 7px;
        color: var(--dark-color);
    }

    .nav-link::after {
        top: 9px;
        bottom: 9px;
        left: 0;
        width: 3px;
        height: auto;
        border-radius: 0 3px 3px 0;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 3px;
    }

    .nav-link:hover,
    .nav-link.active {
        padding-left: 1.1rem !important;
        background: rgba(230, 0, 18, .07);
    }

    .toggler-icon span {
        background-color: var(--dark-color);
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        margin-right: 0;
    }

    .navbar-brand img,
    header.scrolled .navbar-brand img {
        width: auto;
        height: 42px;
        max-width: 160px;
    }

    .mobile-header-cta {
        min-height: 40px;
        padding: .6rem .75rem;
        font-size: .72rem;
    }
}

@media (max-width: 374.98px) {
    .navbar > .container {
        gap: .5rem;
    }

    .navbar-brand img,
    header.scrolled .navbar-brand img {
        max-width: 122px;
    }

    .mobile-header-cta {
        padding-right: .65rem;
        padding-left: .65rem;
    }

    .mobile-header-cta__full {
        display: none;
    }

    .mobile-header-cta__short {
        display: inline;
    }
}

@media (max-width: 991.98px) {
    section {
        padding: 80px 0;
    }
    
    /* Hero section split display */
    .hero-section {
        min-height: auto;
    }
    
    .hero-bg-image {
        position: relative;
        width: 100%;
        height: 350px;
        top: 0;
        right: 0;
    }
    
    .hero-bg-image::after {
        background: linear-gradient(to top, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0) 100%);
    }
    
    .hero-container {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .hero-left-wrapper {
        padding-right: 0;
    }
    
    .hero-text-container {
        padding: 20px;
        background: transparent;
        border: none;
        backdrop-filter: none;
    }
    
    /* Timeline to vertical for tablet & mobile */
    .timeline-line {
        left: 30px;
        top: 20px;
        bottom: 20px;
        width: 2px;
        height: auto;
        right: auto;
    }
    
    .timeline-row {
        flex-direction: column;
        gap: 1rem;
        margin-right: 0;
        margin-left: 0;
    }
    
    .timeline-step {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 1.25rem;
        padding: 1.25rem;
        border: 1px solid #eeeeee;
        border-radius: 12px;
        background: var(--white);
        box-shadow: 0 8px 24px rgba(17, 17, 17, .06);
    }
    
    .timeline-number {
        width: 54px;
        height: 54px;
        margin: 0;
        flex-shrink: 0;
    }

    .timeline-step-content {
        flex: 1;
    }

    .timeline-step-title {
        margin-bottom: .35rem;
        line-height: 1.35;
    }
    
    .timeline-step-desc {
        max-width: none;
        margin: 0;
        line-height: 1.6;
    }
    
    /* CTA layout */
    .cta-row {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    /* Contact Map sizing */
    .contact-form-wrapper {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .contact-map-wrapper {
        min-height: 350px;
    }
    
    .footer-bottom-links {
        text-align: left;
        margin-top: 1rem;
    }
    
    .footer-bottom-links a {
        margin-left: 0;
        margin-right: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        display: block;
        min-height: auto;
        background-color: #111111;
    }

    .hero-bg-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-position: 58% center;
    }

    .hero-bg-image::after {
        background:
            linear-gradient(180deg, rgba(17, 17, 17, .22) 0%, rgba(17, 17, 17, .36) 58%, rgba(17, 17, 17, .68) 100%),
            linear-gradient(90deg, rgba(17, 17, 17, .66) 0%, rgba(17, 17, 17, .08) 100%);
    }

    .hero-container {
        padding-top: 72px;
        padding-bottom: 52px;
    }

    .hero-text-container {
        width: 100%;
        padding: 26px 22px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 12px;
        background: linear-gradient(100deg, rgba(10, 10, 10, .62) 0%, rgba(10, 10, 10, .38) 62%, rgba(10, 10, 10, .22) 100%);
        box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
        backdrop-filter: blur(1.5px);
    }

    .hero-subtitle {
        margin-bottom: 1rem;
        font-size: .76rem;
        line-height: 1.5;
        letter-spacing: 1.6px;
    }

    .hero-title {
        margin-bottom: 1rem;
        font-size: clamp(2rem, 9vw, 2.65rem);
        line-height: 1.12;
        letter-spacing: -.025em;
        text-wrap: balance;
        text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
    }

    .hero-desc {
        max-width: none;
        margin-bottom: 1.75rem;
        font-size: 1rem;
        line-height: 1.65;
        color: rgba(255, 255, 255, .9);
        text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 2.25rem;
    }

    .hero-ctas a {
        width: 100%;
        min-height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 13px 18px;
        text-align: center;
    }
    
    .hero-stats-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .75rem;
        padding-top: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: .68rem;
        line-height: 1.4;
        letter-spacing: .5px;
    }
    
    .about-content-col {
        padding-right: 0;
        margin-bottom: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 374.98px) {
    .hero-container {
        padding-top: 52px;
        padding-bottom: 40px;
    }

    .hero-text-container {
        padding: 22px 18px;
    }

    .hero-stats-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SUBPAGE & WIDGET ADDITIONS
   ========================================================================== */

body.subpage {
    padding-top: 80px; /* Offset for fixed header */
}

/* Subpage Banner */
.subpage-banner {
    position: relative;
    padding: 60px 0;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.subpage-banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.subpage-banner-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 0;
    max-width: 650px;
}

.subpage-banner-img img {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* Shared page hero */
.page-hero {
    position: relative;
    isolation: isolate;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    margin-bottom: 0;
    background: #d50012;
}

.page-hero + section {
    padding-top: 56px;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-hero__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center right;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(205, 0, 18, .98) 0%, rgba(224, 0, 20, .86) 28%, rgba(205, 0, 18, .38) 50%, rgba(205, 0, 18, .08) 72%, rgba(22, 22, 26, .08) 100%);
}

.page-hero__inner {
    padding-top: 56px;
    padding-bottom: 56px;
    color: #fff;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 15px;
    font-weight: 600;
}

.page-hero__breadcrumb a,
.page-hero__breadcrumb span {
    color: #fff;
}

.page-hero__breadcrumb a {
    text-decoration: none;
}

.page-hero__breadcrumb a:hover,
.page-hero__breadcrumb a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-hero__title {
    max-width: 680px;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.03em;
    text-wrap: balance;
}

.page-hero__description {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .94);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.55;
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 260px;
    }

    .page-hero + section {
        padding-top: 32px;
    }

    .page-hero__inner {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .page-hero__overlay {
        background: linear-gradient(90deg, rgba(205, 0, 18, .97) 0%, rgba(205, 0, 18, .84) 58%, rgba(205, 0, 18, .28) 100%);
    }

    .page-hero__image {
        object-position: 62% center;
    }

    .page-hero__breadcrumb {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .page-hero__title {
        font-size: 34px;
    }

    .page-hero__description {
        max-width: 92%;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .page-hero__inner {
        animation: page-hero-enter .55s ease-out both;
    }
}

@keyframes page-hero-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Breadcrumbs Custom Style */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

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

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #CCCCCC;
}

/* Value Cards (Vision/Mission) */
.value-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    height: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.value-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Team Section */
.team-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-img {
    height: 280px;
    overflow: hidden;
    background-color: #EEEEEE;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-card:hover .team-img img {
    transform: scale(1.03);
}

.team-body {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.team-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Stats Counter subpage style */
.counter-box {
    text-align: center;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.counter-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

/* Contact Info Cards */
.contact-info-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-info-card-icon {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.contact-info-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info-card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.contact-info-card-text a:hover {
    color: var(--primary-color);
}

/* Branches Layout */
.branch-card {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition-smooth);
}

.branch-card:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.branch-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.branch-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.branch-info-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    align-items: flex-start;
}

.branch-info-item:last-child {
    margin-bottom: 0;
}

.branch-info-icon {
    color: var(--primary-color);
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

/* Sidebar filter */
.filter-sidebar {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.filter-sidebar-title {
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.filter-mobile-toggle {
    display: none;
}

.filter-group {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: 1.25rem;
}

.filter-group:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-select-wrap {
    display: none;
}

.filter-option {
    margin-bottom: 0.5rem;
}

.filter-option:last-child {
    margin-bottom: 0;
}

.filter-link {
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-link:hover, .filter-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: var(--light-gray);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-weight: normal;
}

.filter-link.active .filter-count {
    background-color: rgba(230, 0, 18, 0.1);
    color: var(--primary-color);
}

/* Products card updates on products page */
.product-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid #F0F0F0;
    border-bottom: 1px solid #F0F0F0;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.product-meta-val-inline {
    font-weight: 600;
    color: var(--dark-color);
}

.product-action-btns {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.product-action-btns .btn-mitsu,
.product-action-btns .btn-mitsu-outline {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    text-transform: none;
}

/* Product & Project Spec tables */
.spec-table-wrapper {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.spec-table {
    width: 100%;
    margin-bottom: 0;
}

.spec-table th, .spec-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #F5F5F5;
    font-size: 0.95rem;
}

.spec-table tr:last-child td,
.spec-table tr:last-child th {
    border-bottom: none;
}

.spec-table th {
    background-color: var(--light-gray);
    font-weight: 700;
    color: var(--dark-color);
    width: 35%;
}

.spec-table td {
    color: var(--text-color);
}

/* Service detail checklist */
.service-detail-header-section,
.service-detail-overview-section,
.service-process-section,
.service-checklist-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.service-detail-header-section {
    padding-top: 56px;
    padding-bottom: 56px;
}

.service-detail-header-section .detail-gallery {
    margin-bottom: 0;
}

.service-process-section .section-title {
    margin-bottom: 2.25rem;
}

.service-checklist-section .section-title {
    margin-bottom: 1rem;
}

.service-checklist-intro {
    max-width: 720px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.7;
}

.service-checklist-card {
    max-width: 1120px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.service-checklist-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.service-checklist-table .checklist-col-item { width: 22%; }
.service-checklist-table .checklist-col-content { width: 40%; }
.service-checklist-table .checklist-col-frequency { width: 18%; }
.service-checklist-table .checklist-col-note { width: 20%; }

.service-checklist-table th,
.service-checklist-table td {
    width: auto;
    padding: 1.1rem 1.25rem;
    border: 0;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    vertical-align: middle;
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-wrap: break-word;
}

.service-checklist-table th {
    background: #20252b;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.service-checklist-table tbody tr:nth-child(even) { background: #fafafa; }
.service-checklist-table tbody tr { transition: background-color 0.2s ease; }
.service-checklist-table tbody tr:hover { background: #fff5f5; }
.service-checklist-table tbody tr:last-child td { border-bottom: 0; }
.service-checklist-table td:first-child { color: var(--dark-color); }

.checklist-frequency {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.3rem 0.7rem;
    color: #8f1018;
    background: #fff0f1;
    border: 1px solid #f4c7ca;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .service-detail-header-section,
    .service-detail-overview-section,
    .service-process-section,
    .service-checklist-section {
        padding-top: 44px;
        padding-bottom: 44px;
    }
    .service-detail-header-section .detail-gallery { margin-bottom: 1.25rem; }
    .service-process-section .section-title { margin-bottom: 1.75rem; }
    .service-checklist-section .section-title { margin-bottom: 0.85rem; }
    .service-checklist-intro { margin-bottom: 1.5rem; }
    .service-checklist-card { overflow: visible; background: transparent; border: 0; box-shadow: none; }
    .service-checklist-card .table-responsive { overflow: visible; }
    .service-checklist-table, .service-checklist-table tbody, .service-checklist-table tr, .service-checklist-table td { display: block; width: 100%; }
    .service-checklist-table colgroup, .service-checklist-table thead { display: none; }
    .service-checklist-table tr { margin-bottom: 1rem; overflow: hidden; background: var(--white) !important; border: 1px solid var(--border-color); border-top: 3px solid var(--primary-color); border-radius: 8px; box-shadow: var(--shadow-sm); }
    .service-checklist-table td { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 0.8rem; padding: 0.85rem 1rem; border-bottom: 1px solid #eceff1; }
    .service-checklist-table td::before { content: attr(data-label); color: var(--dark-color); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
    .service-checklist-table td:last-child { border-bottom: 0; }
}

@media (max-width: 479.98px) {
    .service-checklist-table td { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* Detail page gallery slider */
.detail-gallery {
    margin-bottom: 2rem;
}

.gallery-main-img {
    height: 420px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    cursor: pointer;
}

.gallery-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-main-img:hover img {
    transform: scale(1.02);
}

.gallery-main-img::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(17, 17, 17, 0.7);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-main-img:hover::after {
    opacity: 1;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px;
    min-width: 0;
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.gallery-thumbnails-shell {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 0.5rem;
}

.gallery-thumb {
    flex: 0 0 86px;
    width: 86px;
    height: 76px;
    padding: 0;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active, .gallery-thumb:hover, .gallery-thumb:focus-visible {
    border-color: var(--primary-color);
}

.gallery-thumb:focus-visible,
.gallery-nav:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.gallery-nav {
    width: 36px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--dark-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-nav:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 575.98px) {
    .gallery-thumbnails-shell {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 0.35rem;
    }

    .gallery-nav {
        width: 32px;
        height: 42px;
    }

    .gallery-thumb {
        flex-basis: 72px;
        width: 72px;
        height: 64px;
    }
}

/* Lightbox overlay custom styling */
.lightbox-modal .modal-content {
    background-color: transparent;
}

.lightbox-modal .modal-body {
    padding: 0;
    position: relative;
}

.lightbox-modal .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    filter: invert(1);
    font-size: 1.25rem;
}

.lightbox-modal img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

/* Feature grid items */
.feature-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-box-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-box-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Blogs List Page Styles */
.blog-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #EEEEEE;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category-tag {
    background-color: rgba(230, 0, 18, 0.08);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid #F5F5F5;
    padding-top: 0.75rem;
}

.blog-card-link {
    font-weight: 600;
    color: var(--primary-color);
}

/* Sidebar Search Widget */
.sidebar-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.sidebar-search .form-control {
    height: 48px;
    padding-right: 45px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.sidebar-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 38px;
    width: 38px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

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

.sidebar-widget {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #F0F0F0;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.featured-blogs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-blog-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
    border-bottom: 1px solid #F5F5F5;
    padding-bottom: 1rem;
}

.featured-blog-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.featured-blog-img {
    width: 70px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #EEE;
}

.featured-blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-blog-info {
    flex-grow: 1;
}

.featured-blog-info h5 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.featured-blog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-cta-card {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-secondary) 100%);
    color: var(--white);
    border: none;
}

.sidebar-cta-card h4 {
    color: var(--white);
}

/* Blog Detail Page Styles */
.blog-detail-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.blog-detail-meta span i {
    color: var(--primary-color);
    margin-right: 5px;
}

.blog-toc {
    background-color: var(--light-gray);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.blog-toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog-toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.blog-toc-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 15px;
}

.blog-toc-list li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.blog-toc-list li:last-child {
    margin-bottom: 0;
}

.blog-toc-list a {
    color: var(--text-color);
    transition: var(--transition-smooth);
}

.blog-toc-list a:hover {
    color: var(--primary-color);
    padding-left: 3px;
}

.blog-content {
    font-size: 1.05rem;
    color: #333333;
    max-width: 100%;
    overflow-wrap: break-word;
}

.blog-content > * {
    max-width: 100%;
}

.blog-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.blog-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    width: auto;
    height: auto;
}

.blog-content figure,
.blog-content .wp-caption,
.blog-content .wp-block-image,
.blog-content .aligncenter,
.blog-content .alignleft,
.blog-content .alignright,
.blog-content .alignwide,
.blog-content .alignfull {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
}

.blog-content figure img,
.blog-content .wp-caption img,
.blog-content .wp-block-image img,
.blog-content p > img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.blog-content iframe,
.blog-content video,
.blog-content embed,
.blog-content object,
.blog-content table {
    max-width: 100%;
}

.blog-content table {
    display: block;
    overflow-x: auto;
}

.blog-inline-cta {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-inline-cta-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    max-width: 70%;
}

.blog-inline-cta .btn-mitsu {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

/* Horizontal Filters */
.project-filters-panel {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--light-gray);
}

.project-filters-heading {
    display: none;
}

.horizontal-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.horizontal-filters:last-child {
    margin-bottom: 0;
}

.project-filter-label {
    flex: 0 0 96px;
    color: var(--dark-color);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-align: right;
    text-transform: uppercase;
}

.project-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.project-filter-select-wrap {
    display: none;
}

.filter-btn {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

/* Pagination general */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-link-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.page-link-custom:hover,
.page-link-custom.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Responsive adjustments for subpages */
@media (max-width: 991.98px) {
    body.subpage {
        padding-top: 70px;
    }
    
    .subpage-banner {
        padding: 40px 0;
    }
    
    .subpage-banner-title {
        font-size: 2rem;
    }
    
    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .filter-sidebar-title {
        display: none;
    }

    .filter-sidebar {
        padding: 0;
        overflow: hidden;
        border-radius: 12px;
    }

    .filter-mobile-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.125rem;
        border: 0;
        background: var(--white);
        color: var(--dark-color);
        text-align: left;
    }

    .filter-mobile-toggle__label {
        display: flex;
        align-items: center;
        gap: .875rem;
    }

    .filter-mobile-toggle__label > i {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border-radius: 10px;
        background: rgba(230, 0, 18, .08);
        color: var(--primary-color);
        font-size: 1.1rem;
    }

    .filter-mobile-toggle__label strong,
    .filter-mobile-toggle__label small {
        display: block;
    }

    .filter-mobile-toggle__label strong {
        margin-bottom: .15rem;
        font-size: 1rem;
    }

    .filter-mobile-toggle__label small {
        color: var(--text-muted);
        font-size: .78rem;
        font-weight: 400;
    }

    .filter-mobile-toggle__icon {
        color: var(--primary-color);
        transition: transform .25s ease;
    }

    .filter-sidebar.is-open .filter-mobile-toggle__icon {
        transform: rotate(180deg);
    }

    .filter-sidebar-body {
        display: none;
        padding: 1.25rem 1.125rem;
        border-top: 1px solid var(--border-color);
        background: #fcfcfc;
    }

    .filter-sidebar.is-open .filter-sidebar-body {
        display: block;
    }

    .filter-group {
        margin-bottom: 1.125rem;
        padding-bottom: 1.125rem;
    }

    .products-list-section .filter-select-wrap {
        position: relative;
        display: block;
    }

    .products-list-section .filter-select-wrap::after {
        content: "\f107";
        position: absolute;
        top: 50%;
        right: 1rem;
        pointer-events: none;
        color: var(--primary-color);
        font-family: "Font Awesome 6 Free";
        font-size: .9rem;
        font-weight: 900;
        transform: translateY(-50%);
    }

    .products-list-section .filter-select {
        width: 100%;
        min-height: 48px;
        padding: .75rem 2.75rem .75rem 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        appearance: none;
        background-color: #fff;
        color: var(--dark-color);
        font-size: .95rem;
        font-weight: 700;
        line-height: 1.25;
        box-shadow: 0 6px 18px rgba(17, 17, 17, .05);
    }

    .products-list-section .filter-select:focus {
        outline: 0;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(230, 0, 18, .12);
    }

    .products-list-section .filter-options {
        display: none;
    }

    .filter-option {
        margin-bottom: .25rem;
    }

    .filter-link {
        min-height: 40px;
        padding: .4rem .25rem;
    }

    .projects-list-section .row.mb-5 {
        margin-bottom: 2rem !important;
    }

    .project-filters-panel {
        padding: 0;
        overflow: hidden;
        border-radius: 12px;
        background: var(--white);
        box-shadow: 0 8px 24px rgba(17, 17, 17, .06);
    }

    .project-filters-heading {
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: 1rem 1.125rem;
        border-bottom: 1px solid var(--border-color);
    }

    .project-filters-heading > i {
        color: var(--primary-color);
        font-size: 1.1rem;
    }

    .project-filters-heading strong,
    .project-filters-heading small {
        display: block;
    }

    .project-filters-heading small {
        margin-top: .1rem;
        color: var(--text-muted);
        font-size: .75rem;
    }

    .horizontal-filters {
        display: block;
        margin: 0;
        padding: 1rem 1.125rem;
        border-bottom: 1px solid #eeeeee;
    }

    .horizontal-filters:last-child {
        border-bottom: 0;
    }

    .project-filter-label {
        display: block;
        margin-bottom: .65rem;
        text-align: left;
    }

    .project-filter-select-wrap {
        position: relative;
        display: block;
    }

    .project-filter-select-wrap::after {
        content: "\f107";
        position: absolute;
        top: 50%;
        right: 1rem;
        pointer-events: none;
        color: var(--primary-color);
        font-family: "Font Awesome 6 Free";
        font-size: .9rem;
        font-weight: 900;
        transform: translateY(-50%);
    }

    .project-filter-select {
        width: 100%;
        min-height: 48px;
        padding: .75rem 2.75rem .75rem 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        appearance: none;
        background-color: #fff;
        color: var(--dark-color);
        font-size: .95rem;
        font-weight: 700;
        line-height: 1.25;
        box-shadow: 0 6px 18px rgba(17, 17, 17, .05);
    }

    .project-filter-select:focus {
        outline: 0;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(230, 0, 18, .12);
    }

    .project-filter-options {
        display: none;
    }

    .blog-detail-section {
        overflow-x: hidden;
    }

    .blog-detail-section .container,
    .blog-post-wrapper,
    .blog-content {
        max-width: 100%;
    }

    .blog-post-wrapper {
        overflow-x: hidden;
    }

    #projects-grid {
        --bs-gutter-y: 1.25rem;
    }

    #projects-grid .project-card {
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(17, 17, 17, .07);
    }

    #projects-grid .project-img {
        height: 220px;
    }

    #projects-grid .project-body {
        padding: 1.25rem;
    }
    
    .gallery-main-img {
        height: 320px;
    }
    
    .blog-inline-cta-text {
        max-width: 100%;
        text-align: center;
    }
    
    .blog-inline-cta {
        flex-direction: column;
        text-align: center;
    }

    #quoteModal .modal-dialog {
        width: calc(100% - 24px);
        max-width: none;
        margin: 12px auto;
    }

    #quoteModal .modal-content {
        max-height: calc(100dvh - 24px);
        overflow: hidden;
        border-radius: 12px;
    }

    #quoteModal .modal-header {
        align-items: center;
        padding: 14px 16px !important;
    }

    #quoteModal .modal-title {
        color: #fff;
        font-size: 1rem;
        line-height: 1.35;
    }

    #quoteModal .modal-body {
        max-height: calc(100dvh - 86px);
        overflow-y: auto;
        padding: 18px 16px !important;
    }

    #quoteModal .form-control {
        min-height: 50px;
        font-size: 1rem;
    }

    #quoteModal textarea.form-control {
        min-height: 104px;
    }
}
