/*
Theme Name: Car Point Tanzania
Theme URI: https://example.com/carpoint-tanzania
Author: Car Point Tanzania
Description: Custom car dealership theme for Car Point Tanzania - inventory with filters, car details popup, Japan import cost calculator and AJAX contact form.
Version: 2.4.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carpoint
Tags: custom-menu, custom-logo, featured-images, one-column
*/

/* 
  Car Point Tanzania - WordPress Theme CSS
  Color Scheme: Strict White (#FFFFFF), Pure Red (#E31B23 / #D32F2F), Charcoal Text (#111111 / #222222), Light Grey (#F8F9FA)
*/

:root {
    --primary-red: #E31B23;
    --primary-red-hover: #c41219;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-grey: #E9ECEF;
    --border-color: #DEE2E6;
    --dark-charcoal: #111111;
    --text-color: #333333;
    --text-muted: #6C757D;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-red {
    color: var(--primary-red) !important;
}

.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 30px; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    border-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 27, 35, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background-color: rgba(227, 27, 35, 0.03);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 15px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-charcoal);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-contact span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-contact i {
    color: var(--primary-red);
}

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

.top-social a {
    width: 26px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    color: var(--white);
}

.top-social a:hover {
    background-color: var(--primary-red);
}

/* Header Navbar */
.site-header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--dark-charcoal);
    line-height: 1.1;
}

.brand-sub {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 2px;
}

.main-nav ul {
    display: flex;
    gap: 28px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark-charcoal);
    position: relative;
    padding-bottom: 4px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-red);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-charcoal);
}

/* Hero Section */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(227, 27, 35, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #FFD700;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 700px;
}

/* Search Box Widget */
.hero-search-box {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: var(--dark-charcoal);
}

.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.search-tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-tab.active {
    background-color: var(--primary-red);
    color: var(--white);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-charcoal);
}

.form-group select, .form-group input, .form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    background-color: var(--off-white);
    color: var(--dark-charcoal);
    outline: none;
    transition: var(--transition);
}

.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-red);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.15);
}

.submit-group {
    justify-content: flex-end;
}

/* Stats Banner */
.stats-banner {
    background-color: var(--off-white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-red);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(227, 27, 35, 0.1);
    color: var(--primary-red);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-charcoal);
}

.stat-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Inventory Section */
.inventory-section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 40px;
}

.sub-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-charcoal);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.inventory-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--off-white);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-charcoal);
}

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

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

.car-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-red);
}

.car-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

.car-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.car-price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--dark-charcoal);
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 6px;
}

.car-details {
    padding: 20px;
}

.car-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.car-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.car-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 6px;
}

.car-loc {
    font-size: 13px;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.car-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background-color: var(--off-white);
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.car-specs-grid span {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.car-footer .btn {
    flex: 1;
}

/* Why Choose Us */
.why-us {
    background-color: var(--off-white);
    padding: 90px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.why-content h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--dark-charcoal);
    margin-bottom: 20px;
}

.why-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 16px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.f-icon {
    font-size: 26px;
    color: var(--primary-red);
    flex-shrink: 0;
}

.feature-box h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 4px;
}

.feature-box p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.why-image {
    position: relative;
}

.why-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.exp-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 13px;
    font-weight: 600;
}

/* Import Section */
.import-section {
    padding: 90px 0;
}

.import-box {
    background: linear-gradient(135deg, var(--dark-charcoal) 0%, #1f1f1f 100%);
    border-radius: 16px;
    padding: 60px;
    color: var(--white);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.import-text h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.import-text p {
    opacity: 0.85;
    margin-bottom: 25px;
    font-size: 15px;
}

.import-steps {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.istep {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.istep span {
    width: 22px;
    height: 22px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.import-form-card {
    background-color: var(--white);
    color: var(--dark-charcoal);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.import-form-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-red);
}

.est-result {
    background-color: var(--off-white);
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.est-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.est-row strong {
    color: var(--dark-charcoal);
}

.total-row {
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 8px;
    font-size: 15px;
    color: var(--dark-charcoal);
}

/* Testimonials */
.testimonials {
    padding: 90px 0;
    background-color: var(--off-white);
    border-top: 1px solid var(--border-color);
}

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

.testi-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 14px;
}

.testi-card p {
    font-style: italic;
    color: var(--text-color);
    font-size: 15px;
    margin-bottom: 20px;
}

.client-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-charcoal);
}

.client-info span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Contact Section */
.contact-section {
    padding: 90px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-box h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-charcoal);
    margin-bottom: 15px;
}

.contact-info-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.c-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cd-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cd-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(227, 27, 35, 0.1);
    color: var(--primary-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.cd-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 2px;
}

.cd-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-form-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-form-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-box h3 i {
    color: var(--primary-red);
}

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

/* WP Plugins Banner */
.wp-plugins-banner {
    background-color: var(--dark-charcoal);
    color: var(--white);
    padding: 30px 0;
    border-top: 4px solid var(--primary-red);
}

.wp-plugins-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.wp-plugins-flex h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.wp-plugins-flex p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.site-footer {
    background-color: #0b0b0b;
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo .brand-name {
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-red);
}

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

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.footer-social a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--white);
}

.footer-social a:hover {
    background-color: var(--primary-red);
}

.badge-tanzania {
    display: inline-block;
    background-color: rgba(227, 27, 35, 0.15);
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

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

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

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

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

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--dark-charcoal);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--primary-red);
}

.modal-body {
    padding: 30px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--dark-charcoal);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    border-left: 4px solid var(--primary-red);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--primary-red);
    font-size: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
    .car-grid, .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid, .contact-grid, .import-box {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-nav.active {
        max-height: 400px;
    }
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .menu-toggle {
        display: block;
    }
    .header-cta {
        display: none;
    }
    .car-grid, .testi-grid, .stats-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 32px;
    }
    .search-form {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .top-bar {
        display: none;
    }
}

/* ==================================================================
   Additions (missing styles for theme templates)
   ================================================================== */

body { font-family: 'Plus Jakarta Sans', sans-serif; }
img { max-width: 100%; height: auto; }

.logo { color: inherit; }
.custom-logo { max-height: 56px; width: auto; }

.menu-toggle {
    background: none;
    border: none;
}

.main-nav ul ul { display: none; } /* simple: hide sub-menus */

.text-white-red { color: #ffd2d4; }

/* Hero overlay sits under content */
.hero > .container { position: relative; z-index: 2; width: 100%; }

/* Modal responsive grid */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: center;
}

/* Contact & import form spacing */
.contact-form-box .form-group,
.contact-form-box .form-row { margin-bottom: 15px; }
.contact-form-box button[disabled] { opacity: 0.7; cursor: wait; }
.import-form-card .form-group { margin-bottom: 0; }
.calc-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.import-text .sub-title { color: #ff6b70; }

.footer-about { font-size: 14px; margin: 15px 0 20px; color: rgba(255,255,255,0.7); }
.footer-col .badge-tanzania { margin-top: 10px; }
.footer-links li a { color: rgba(255,255,255,0.7); }

.no-results { color: var(--text-muted); }

/* Blog / pages */
.content-area { padding: 70px 0; min-height: 50vh; }
.page-header { margin-bottom: 30px; }
.page-title { font-size: 34px; font-weight: 800; color: var(--dark-charcoal); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}
.post-card .post-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card .post-body { padding: 20px; }
.post-card .entry-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--dark-charcoal); }
.post-card .entry-title a:hover { color: var(--primary-red); }
.post-card .entry-content p { margin-bottom: 15px; color: var(--text-muted); font-size: 14px; }
.entry-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.single-wrap { max-width: 820px; margin: 0 auto; }
.entry .post-thumb img { border-radius: 12px; margin-bottom: 25px; }
.entry .entry-title { font-size: 38px; font-weight: 800; color: var(--dark-charcoal); margin-bottom: 10px; line-height: 1.2; }
.entry-content > * { margin-bottom: 1.1em; }
.entry-content h2, .entry-content h3 { color: var(--dark-charcoal); font-weight: 700; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { padding-left: 1.4em; }
.entry-content a { color: var(--primary-red); text-decoration: underline; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--primary-red); color: var(--white); border-color: var(--primary-red); }

.empty-state { padding: 40px 0; }
.empty-state h1 { font-size: 34px; font-weight: 800; color: var(--dark-charcoal); margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); }
.empty-state .btn + .btn { margin-left: 10px; }
.error-code { font-size: 110px; font-weight: 800; color: var(--primary-red); line-height: 1; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); text-align: center; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 1024px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .experience-badge { right: 10px; }
}

@media (max-width: 768px) {
    .site-header .nav-container { position: relative; }
    .site-header { position: sticky; }
    .main-nav { top: calc(100% + 15px); }
    .modal-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .import-box { padding: 30px 20px; }
    .import-steps { flex-wrap: wrap; }
    .hero { min-height: auto; }
    .entry .entry-title { font-size: 28px; }
    .toast { left: 15px; right: 15px; bottom: 15px; }
}

/* ==================================================================
   Cars from admin: sold badge, photo count, modal gallery
   ================================================================== */
.car-card.is-sold .car-img-wrapper img { filter: grayscale(70%); }
.car-badge.badge-sold { background-color: var(--dark-charcoal); }
.car-photo-count {
    position: absolute; bottom: 15px; left: 15px;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 4px;
}
.car-no-img {
    width: 100%; height: 100%; min-height: 220px;
    display: flex; align-items: center; justify-content: center;
    background: var(--light-grey); color: var(--text-muted); font-size: 48px;
}
.admin-notice-sample {
    grid-column: 1 / -1;
    background: #fff8e5; border: 1px solid #f0c33c; border-radius: 8px;
    padding: 12px 16px; font-size: 14px;
}
.admin-notice-sample a { color: var(--primary-red); font-weight: 700; }

.modal-main-img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; display: block; }
.modal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.modal-thumb {
    width: 70px; height: 52px; object-fit: cover; border-radius: 5px; cursor: pointer;
    border: 2px solid transparent; opacity: 0.7; flex-shrink: 0; transition: var(--transition);
}
.modal-thumb:hover, .modal-thumb.active { border-color: var(--primary-red); opacity: 1; }
.modal-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; color: var(--dark-charcoal); }
.modal-price { font-size: 26px; font-weight: 800; color: var(--primary-red); margin-bottom: 15px; }
.sold-pill { font-size: 13px; background: var(--dark-charcoal); color: #fff; padding: 3px 10px; border-radius: 4px; vertical-align: middle; }
.modal-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 15px; white-space: pre-line; }
.modal-specs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px;
    margin-bottom: 20px; background: var(--off-white); padding: 12px; border-radius: 6px;
}
@media (max-width: 768px) {
    .modal-main-img { height: 220px; }
}

/* ==================================================================
   Currency switch (USD / TSh)
   ================================================================== */
.currency-switch {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--off-white); border: 1px solid var(--border-color);
    border-radius: 30px; padding: 4px;
}
.currency-label { font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 0 8px 0 10px; }
.currency-label i { color: var(--primary-red); }
.cur-btn {
    border: none; background: transparent; cursor: pointer;
    padding: 6px 14px; border-radius: 30px; font-weight: 700; font-size: 13px;
    color: var(--dark-charcoal); font-family: inherit; transition: var(--transition);
}
.cur-btn.active { background: var(--dark-charcoal); color: var(--white); }
.price-alt { font-size: 14px; color: var(--text-muted); font-weight: 600; margin: -10px 0 15px; }
.est-tsh-row strong { color: var(--primary-red); }
.est-rate { font-size: 11px; color: var(--text-muted); text-align: right; }
.car-price-tag { font-size: 16px; }

@media (max-width: 768px) {
    .currency-switch { margin-left: 0; }
}

/* Import section without calculator */
.import-box-single { grid-template-columns: 1fr; text-align: center; }
.import-box-single .import-text { max-width: 720px; margin: 0 auto; }
.import-box-single .import-steps { justify-content: center; flex-wrap: wrap; }

/* Why Us - 2 column features */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

/* ==================================================================
   v2.0 — language switch, toolbar, sold section, map, WhatsApp
   ================================================================== */
.top-contact a { display: flex; align-items: center; gap: 6px; }
.top-contact a:hover { color: #ffb3b6; }

.header-right { display: flex; align-items: center; gap: 14px; }
.lang-switch {
    display: inline-flex; border: 1px solid var(--border-color); border-radius: 30px; overflow: hidden;
}
.lang-switch a {
    padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--text-muted);
}
.lang-switch a.active { background: var(--primary-red); color: var(--white); }
.lang-switch a:not(.active):hover { color: var(--primary-red); }

/* Hero search: 6 cells */
.search-form { grid-template-columns: repeat(3, 1fr); }
.hero { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Inventory toolbar */
.inventory-filters { margin-bottom: 18px; justify-content: center; }
.inventory-toolbar {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 0 18px; margin-bottom: 22px; border-bottom: 1px solid var(--border-color);
}
.result-count { font-weight: 700; color: var(--dark-charcoal); font-size: 14px; }
.clear-filters {
    border: none; background: rgba(227, 27, 35, 0.08); color: var(--primary-red);
    font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 30px; cursor: pointer; font-family: inherit;
}
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sort-wrap { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.sort-wrap i { color: var(--primary-red); }
.sort-wrap select {
    padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 30px;
    font-family: inherit; font-size: 13px; font-weight: 600; background: var(--off-white); color: var(--dark-charcoal); cursor: pointer;
}
.currency-switch { margin-left: 0; }
.admin-notice-sample { margin-bottom: 20px; }
.car-details h3 a:hover { color: var(--primary-red); }

/* Recently sold */
.sold-section { padding: 0 0 80px; }
.sold-grid .car-card { opacity: 0.92; }

/* Reviews (uses .testimonials styles) */
.testi-card p { white-space: pre-line; }

/* Honeypot (spam trap) */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Map */
.map-wrap { margin-top: 50px; }
.map-title { font-size: 20px; font-weight: 700; color: var(--dark-charcoal); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.map-title i { color: var(--primary-red); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; border-radius: 12px; box-shadow: var(--shadow); display: block; }

/* WhatsApp buttons */
.btn-wa { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wa:hover { background: #1ebe5b; border-color: #1ebe5b; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-2 { margin-top: 10px; }

.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 1500;
    display: flex; align-items: center; gap: 10px;
    background: #25D366; color: #fff; border-radius: 50px;
    padding: 12px 18px 12px 14px; font-weight: 700; font-size: 15px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    animation: waPulse 2.5s infinite;
}
.wa-float i { font-size: 28px; }
.wa-float:hover { background: #1ebe5b; color: #fff; transform: translateY(-3px); }
@keyframes waPulse {
    0%, 100% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 10px 35px rgba(37, 211, 102, 0.75); }
}
.toast { bottom: 95px; }
body.modal-open { overflow: hidden; }

/* Mobile bottom bar */
.mobile-cta-bar { display: none; }

@media (max-width: 1024px) {
    .search-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 340px) {
    .search-form { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-cta { display: none; }
    .lang-switch a { padding: 5px 9px; font-size: 12px; }
    .search-form { grid-template-columns: 1fr 1fr; }
    .submit-group { grid-column: 1 / -1; }
    .inventory-toolbar { gap: 10px; }
    .toolbar-right { margin-left: 0; width: 100%; justify-content: space-between; }
    .modal-actions { grid-template-columns: 1fr; }
    .map-wrap iframe { height: 280px; }

    .wa-float { display: none; }
    .mobile-cta-bar {
        display: grid; grid-template-columns: 1fr 1fr;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }
    .mobile-cta-bar a {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        padding: 15px 10px; font-weight: 700; font-size: 15px; color: #fff;
    }
    .mcta-call { background: var(--dark-charcoal); }
    .mcta-wa { background: #25D366; }
    .mobile-cta-bar i { font-size: 18px; }
    body { padding-bottom: 54px; }
    .toast { bottom: 70px; }
}

@media (max-width: 420px) {
    .hero-search-box { padding: 15px; }
    .search-form { gap: 10px; }
    .form-group select { padding: 10px; font-size: 13px; }
    .logo-text .brand-name { font-size: 16px; }
    .logo-icon { width: 38px; height: 38px; font-size: 18px; }
}

/* ==================================================================
   BLOG (home.php, single.php, homepage "Latest From Our Blog")
   ================================================================== */
.main-nav li.current-menu-item > a { color: var(--primary-red); }
.main-nav li.current-menu-item > a::after { width: 100%; }
.btn-whatsapp { background: #25D366; color: var(--white); border-color: #25D366; }
.btn-whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; transform: translateY(-2px); }

.blog-section { padding: 80px 0; }
.blog-home { background: var(--off-white); }
.blog-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.blog-home-head .btn { flex-shrink: 0; }

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

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--light-grey); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-cat {
    position: absolute; top: 14px; left: 14px;
    background: var(--primary-red); color: var(--white);
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 5px 12px; border-radius: 20px;
}
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.blog-meta i { color: var(--primary-red); margin-right: 3px; }
.blog-card-title { font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: var(--dark-charcoal); }
.blog-card-title a:hover { color: var(--primary-red); }
.blog-card-excerpt { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 16px; flex: 1; }
.blog-read-more { font-weight: 700; font-size: 14px; color: var(--primary-red); display: inline-flex; align-items: center; gap: 6px; }
.blog-read-more i { transition: transform 0.2s ease; }
.blog-read-more:hover i { transform: translateX(4px); }

/* Pehli (featured) post — chauri */
.blog-featured { margin-bottom: 30px; }
.blog-card--featured { flex-direction: row; }
.blog-card--featured .blog-card-img { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
.blog-card--featured .blog-card-body { padding: 36px; justify-content: center; }
.blog-card--featured .blog-card-title { font-size: 28px; }
.blog-card--featured .blog-card-excerpt { font-size: 15px; flex: 0; }

/* Blog page header */
.blog-hero { position: relative; background-size: cover; background-position: center; padding: 90px 0 70px; color: var(--white); }
.blog-hero-inner { position: relative; z-index: 2; }
.blog-hero-inner > h1, .blog-hero-inner > p { max-width: 860px; }
.blog-hero .sub-title { color: var(--white); opacity: 0.9; }
.blog-hero h1 { font-size: 44px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.blog-hero p { font-size: 17px; opacity: 0.9; max-width: 640px; }
.blog-hero--post { padding: 110px 0 60px; }
.blog-hero--post .blog-hero-inner { max-width: 800px; }
.blog-hero--post h1 { font-size: 40px; }
.blog-meta--light { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0; }
.blog-meta--light i { color: var(--white); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-top: 18px; color: rgba(255,255,255,0.8); }
.blog-hero--post .breadcrumbs { margin: 0 0 14px; }
.breadcrumbs a { color: var(--white); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs i { font-size: 9px; opacity: 0.7; }

/* Toolbar: categories + search */
.blog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-chip {
    padding: 8px 20px; background: var(--off-white); border: 1px solid var(--border-color);
    border-radius: 30px; font-weight: 600; font-size: 14px; color: var(--dark-charcoal); transition: var(--transition);
}
.blog-chip:hover, .blog-chip.active { background: var(--primary-red); color: var(--white); border-color: var(--primary-red); }
.blog-search { display: flex; border: 1px solid var(--border-color); border-radius: 30px; overflow: hidden; background: var(--white); min-width: 260px; }
.blog-search input { border: 0; padding: 10px 18px; font: inherit; font-size: 14px; flex: 1; min-width: 0; outline: none; background: transparent; }
.blog-search button { border: 0; background: var(--primary-red); color: var(--white); padding: 0 18px; cursor: pointer; }
.blog-search:focus-within { border-color: var(--primary-red); }
.empty-icon { font-size: 48px; color: var(--border-color); margin-bottom: 16px; display: block; }
.empty-state h2 { font-size: 24px; font-weight: 700; color: var(--dark-charcoal); }

/* Single post */
.blog-single-wrap { max-width: 800px; padding-top: 50px; padding-bottom: 30px; }
.blog-content { font-size: 17px; line-height: 1.8; color: var(--text-color); }
.blog-content h2 { font-size: 28px; margin-top: 1.6em; line-height: 1.3; }
.blog-content h3 { font-size: 22px; margin-top: 1.4em; }
.blog-content img { max-width: 100%; height: auto; border-radius: 10px; }
.blog-content blockquote { border-left: 4px solid var(--primary-red); background: var(--off-white); padding: 18px 24px; border-radius: 0 8px 8px 0; font-style: italic; }
.blog-content figure { margin-left: 0; margin-right: 0; }
.blog-content figcaption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 6px; }
.blog-content table { width: 100%; border-collapse: collapse; }
.blog-content th, .blog-content td { border: 1px solid var(--border-color); padding: 10px; text-align: left; }
.blog-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; color: var(--text-muted); }
.blog-tags a { background: var(--off-white); border: 1px solid var(--border-color); padding: 4px 12px; border-radius: 20px; font-size: 13px; color: var(--text-color); }
.blog-tags a:hover { border-color: var(--primary-red); color: var(--primary-red); }
.blog-share { display: flex; align-items: center; gap: 10px; margin: 30px 0; padding: 20px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); font-weight: 700; color: var(--dark-charcoal); }
.blog-share a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition); }
.blog-share a:hover { transform: translateY(-3px); }
.share-wa { background: #25D366; } .share-fb { background: #1877F2; } .share-x { background: #111; }
.blog-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--dark-charcoal) 0%, #2a2a2a 100%); color: var(--white);
    border-radius: 14px; padding: 30px; margin-bottom: 30px;
}
.blog-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.blog-cta p { opacity: 0.8; font-size: 15px; }
.blog-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.post-nav a { display: block; border: 1px solid var(--border-color); border-radius: 10px; padding: 16px 18px; height: 100%; transition: var(--transition); }
.post-nav a:hover { border-color: var(--primary-red); }
.post-nav small { display: block; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.post-nav span { font-weight: 700; color: var(--dark-charcoal); line-height: 1.4; }
.post-nav-next { text-align: right; }
.blog-related { background: var(--off-white); }

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-card--featured .blog-card-img { flex-basis: 50%; }
}
@media (max-width: 768px) {
    .blog-section { padding: 56px 0; }
    .blog-grid { grid-template-columns: 1fr; gap: 22px; }
    .blog-card--featured { flex-direction: column; }
    .blog-card--featured .blog-card-img { min-height: 0; aspect-ratio: 16 / 10; }
    .blog-card--featured .blog-card-body { padding: 22px; }
    .blog-card--featured .blog-card-title { font-size: 22px; }
    .blog-hero { padding: 60px 0 46px; }
    .blog-hero h1, .blog-hero--post h1 { font-size: 30px; }
    .blog-hero--post { padding: 70px 0 40px; }
    .blog-search { min-width: 0; width: 100%; }
    .blog-content { font-size: 16px; }
    .blog-content h2 { font-size: 24px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-next { text-align: left; }
    .blog-cta { padding: 24px; }
    .blog-home-head .btn { width: 100%; }
}

/* Comments */
.blog-comments { margin-top: 40px; }
.comments-title { font-size: 22px; font-weight: 800; color: var(--dark-charcoal); margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-list .comment-body { border: 1px solid var(--border-color); border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-list .comment-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.comment-list .fn { font-weight: 700; color: var(--dark-charcoal); font-style: normal; }
.comment-respond { background: var(--off-white); border-radius: 12px; padding: 26px; }
.comment-reply-title { font-size: 20px; font-weight: 800; color: var(--dark-charcoal); margin-bottom: 14px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 8px; font: inherit; background: var(--white);
}
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* ==================================================================
   Full-screen photo gallery (gari ki photo par click)
   ================================================================== */
.car-img-wrapper { cursor: zoom-in; }
.car-zoom-hint {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -40%);
    background: rgba(17,17,17,0.75); color: #fff; font-size: 13px; font-weight: 700;
    padding: 9px 16px; border-radius: 30px; display: inline-flex; gap: 8px; align-items: center;
    opacity: 0; transition: var(--transition); pointer-events: none; white-space: nowrap;
}
.car-card:hover .car-zoom-hint { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: none) { .car-zoom-hint { display: none; } }
.zoomable { cursor: zoom-in; }

body.lb-open { overflow: hidden; }
.cp-lightbox {
    position: fixed; inset: 0; z-index: 2500;
    background: rgba(8, 8, 8, 0.96);
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
    color: #fff;
}
.cp-lightbox.active { opacity: 1; visibility: visible; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.lb-title { font-weight: 700; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { font-size: 14px; opacity: 0.75; font-variant-numeric: tabular-nums; }
.lb-close {
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,0.12); color: #fff; font-size: 20px; transition: var(--transition);
}
.lb-close:hover { background: var(--primary-red); }
.lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 80px; }
.lb-img {
    max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); user-select: none; -webkit-user-drag: none;
}
.lb-img.lb-in { animation: lbIn 0.3s ease; }
@keyframes lbIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,0.12); color: #fff; font-size: 20px; transition: var(--transition);
}
.lb-nav:hover { background: var(--primary-red); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-single .lb-nav, .lb-single .lb-count { display: none; }
.lb-bottom { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 14px 20px 20px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: min(760px, 100%); padding: 4px 2px; scrollbar-width: thin; }
.lb-thumb {
    width: 76px; height: 54px; object-fit: cover; border-radius: 6px; cursor: pointer; flex-shrink: 0;
    opacity: 0.5; border: 2px solid transparent; transition: var(--transition);
}
.lb-thumb:hover { opacity: 0.85; }
.lb-thumb.active { opacity: 1; border-color: var(--primary-red); }
.lb-wa { flex-shrink: 0; }
@media (max-width: 768px) {
    .lb-top { padding: 10px 12px; }
    .lb-stage { padding: 0; }
    .lb-img { border-radius: 0; }
    .lb-nav { width: 42px; height: 42px; font-size: 16px; background: rgba(0,0,0,0.45); }
    .lb-prev { left: 8px; } .lb-next { right: 8px; }
    .lb-bottom { flex-direction: column; gap: 12px; padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); }
    .lb-thumb { width: 60px; height: 44px; }
    .lb-wa { width: 100%; }
}

/* ==================================================================
   Car card: 3D pop-up hover (mouse ke saath halka sa jhukta hai)
   ================================================================== */
.car-grid { perspective: 1200px; }
.car-card {
    --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.car-card::after {
    /* roshni ki chamak jo mouse ke peeche chalti hai */
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
    background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,0.35), rgba(255,255,255,0) 55%);
    opacity: 0; transition: opacity 0.35s ease;
}
.car-img-wrapper::after {
    /* Instagram jaisa halka andhera photo par */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
    opacity: 0; transition: opacity 0.35s ease;
}
.car-img-wrapper .car-zoom-hint { z-index: 2; }
@media (hover: hover) and (pointer: fine) {
    .car-card:hover {
        transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-10px) scale(1.03);
        box-shadow: 0 30px 60px -12px rgba(17,17,17,0.28), 0 18px 36px -18px rgba(227,27,35,0.35);
        border-color: var(--primary-red);
        z-index: 4;
    }
    .car-card.is-tilting { transition: transform 0.12s linear, box-shadow 0.4s ease, border-color 0.3s ease; }
    .car-card:hover::after { opacity: 1; }
    .car-card:hover .car-img-wrapper::after { opacity: 1; }
    .car-card:hover .car-img-wrapper img { transform: scale(1.1); }
    .car-card:hover .car-badge, .car-card:hover .car-photo-count { transform: translateZ(30px); }
    .car-card:hover h3 { color: var(--primary-red); }
}
.car-badge, .car-photo-count { transition: transform 0.4s ease; }
.car-details h3 { transition: color 0.3s ease; }
@media (hover: none) {
    .car-card:hover { transform: none; }
    .car-card:active { transform: scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
    .car-card, .car-card:hover, .car-card:hover .car-img-wrapper img { transform: none !important; transition: none; }
}
