:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #d32f2f;
    --border-color: #333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent scrollbars during animation */
}

/* Staggered Entry Animations */
header {
    animation: fadeInUp 0.8s ease-out;
}

.hero-slider {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.main-layout {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.page-title {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Header */
/* Header Design */
header {
    display: block;
    padding: 0;
    border-bottom: none;
    background-color: transparent;
}

.top-bar {
    background-color: #f39c12;
    /* Orange accent */
    color: #000;
    padding: 8px 5%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.top-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar i {
    font-size: 1.1rem;
    cursor: pointer;
}

/* Main Navbar Glassmorphism */
.main-nav {
    background-color: rgba(26, 26, 26, 0.85);
    /* Slightly transparent */
    backdrop-filter: blur(12px);
    /* Glass blur */
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-color);
    position: sticky;
    /* Sticky header */
    top: 0;
    z-index: 100;
    transition: all 0.3s;
}

/* Glassmorphism for Filter Box */
.filter-box {
    background-color: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Premium Gallery Item Card */
.gallery-item {
    background-color: var(--card-bg);
    /* Fallback */
    background: linear-gradient(145deg, #1e1e1e, #252525);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy spring effect */
    height: 100%;
    border: 1px solid transparent;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    /* Lift and slight zoom */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(211, 47, 47, 0.3);
    /* Deep shadow with glow */
    border-color: var(--accent-color);
    z-index: 2;
}

.img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    /* Important for zooming image inside */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    /* Zoom image inside card */
}

.price-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, var(--accent-color), #b71c1c);
    /* Gradient background */
    color: white;
    padding: 5px 15px;
    font-weight: 700;
    font-family: 'Teko', sans-serif;
    font-size: 1.3rem;
    border-top-left-radius: 12px;
    box-shadow: -2px -2px 10px rgba(0, 0, 0, 0.5);
}

.car-info {
    padding: 20px;
}

.logo {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #ccc;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.btn-admin {
    border: 1px solid #444;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    background-color: #000;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Ensure zoom doesn't overflow */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide.active img {
    animation: kenBurns 15s infinite alternate ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: transform 15s ease;
    /* Fallback */
}

.slide-content {
    position: absolute;
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
}

.slide-content h2 {
    font-family: 'Teko', sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--accent-color);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}


/* Layout */
.main-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

/* Sidebar Filter */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}



.filter-box h3 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-box input,
.filter-box select {
    width: 100%;
    padding: 10px;
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 4px;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.btn-filter,
.btn-clear {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    border: none;
}

.btn-filter {
    background-color: var(--accent-color);
    color: white;
}

.btn-clear {
    background-color: #333;
    color: #ccc;
}

/* Gallery Grid */
.gallery-container {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    align-content: start;
}



.img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
}



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

.price-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--accent-color);
    color: white;
    padding: 2px 10px;
    font-weight: 700;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
}

.car-info {
    padding: 15px;
}

.car-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Detail Page */
.detail-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.detail-header {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.detail-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.detail-info {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.detail-info h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    font-size: 0.95rem;
}

.spec-list li strong {
    color: white;
}

.spec-list li span {
    color: var(--text-secondary);
}

.btn-contact-large {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background-color: #2e7d32;
    /* Whatsapp Greenish */
    color: white;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
}

.description-section {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.desc-content {
    white-space: pre-line;
    color: #ddd;
}

/* Admin & Utils */
.admin-body,
.dashboard-body {
    background-color: #0c0c0c;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 8px;
    text-align: center;
}

.dashboard-container {
    max-width: 1300px;
    margin: 2rem auto;
    display: grid;
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
}

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

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
}

button {
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-add {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
}

.car-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.car-table th,
.car-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.form-group-col {
    display: flex;
    flex-direction: column;
}

.form-group-col label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-frame {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.main-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.thumb-item {
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumb-item:hover {
    border-color: var(--accent-color);
}

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




/* Admin List Styles */
.sold-row {
    background-color: #2a1a1a !important;
    /* Dark red tint */
    opacity: 0.8;
}

.status-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d32f2f;
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
}

.row-actions {
    display: flex;
    gap: 8px;
    /* Slightly reduced gap as buttons are wider now */
    justify-content: flex-end;
}

/* Base style for all action buttons */
.btn-status,
.btn-edit,
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* Space between icon and text */
    width: auto;
    /* Allow auto width for text */
    padding: 6px 14px;
    /* Sufficient padding */
    height: auto;
    border-radius: 6px;
    border: none;
    color: white;
    font-size: 0.9rem;
    /* Slightly smaller font for compactness */
    font-weight: 600;
    /* Bold text */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    white-space: nowrap;
    /* Prevent line breaks */
}

.btn-status:hover,
.btn-edit:hover,
.btn-delete:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Specific Colors */
.btn-active {
    background: linear-gradient(135deg, #10b981, #059669);
    /* Emerald Green */
}

.btn-sold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    /* Amber */
}

.btn-edit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    /* Sky Blue */
}

.btn-delete {
    background: linear-gradient(135deg, #e11d48, #be123c);
    /* Rose Red */
    border: none;
    /* Override previous outline style */
    color: white;
}

/* Compact Admin Table */
.car-table.compact th,
.car-table.compact td {
    padding: 8px 10px;
    vertical-align: middle;
    font-size: 0.95rem;
}

.thumb-small {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #333;
}

.car-meta {
    display: flex;
    flex-direction: column;
}

.car-meta span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.price-cell {
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.action-buttons {
    display: flex;
    gap: 5px;
}





.btn-cancel {
    background-color: #444;
    color: white;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    width: 100%;
}

.btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

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

/* About Page Styles */
.about-container {
    padding: 2rem;
    color: white;
}

.page-title {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #ddd;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
    border-radius: 8px;
    height: 300px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.brand-display {
    font-family: 'Teko', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 2px 2px 0 var(--accent-color);
    letter-spacing: 5px;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mv-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #333;
}

.mv-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.mv-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Satisfaction Page Styles */
.page-title {
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    color: var(--accent-color);
    text-align: center;
}

.page-subtitle {
    text-align: center;
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.sold-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    transform: rotate(15deg);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    border: 2px solid white;
}

.sold-note {
    color: #4caf50;
    font-weight: 600;
    margin-top: 10px;
}

/* --- Extra Features (Premium) --- */

/* 1. Luxury Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

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

.loader-logo {
    font-family: 'Teko', sans-serif;
    font-size: 4rem;
    color: white;
    letter-spacing: 5px;
    animation: pulseLogo 2s infinite;
}

.loader-line {
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    margin-top: 10px;
    animation: loadLine 1.5s ease-out forwards;
}

@keyframes pulseLogo {
    0% {
        opacity: 0.5;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }

    100% {
        opacity: 0.5;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
}

@keyframes loadLine {
    0% {
        width: 0;
    }

    100% {
        width: 200px;
    }
}

/* 2. Floating Whatsapp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::after {
    content: 'Bize Ulaşın';
    position: absolute;
    right: 70px;
    background-color: white;
    color: #333;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-float:hover::after {
    opacity: 1;
}

/* 3. Detail Page Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid #333;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

/* ==========================================
   Why Choose ATG MOTORS Section
   ========================================== */

.why-section {
    background: linear-gradient(180deg, #121212 0%, #1a1a1a 50%, #121212 100%);
    padding: 80px 20px;
    margin: 0;
    border-top: 1px solid rgba(211, 47, 47, 0.3);
    border-bottom: 1px solid rgba(211, 47, 47, 0.3);
}

.why-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f39c12 50%, #d32f2f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 60px;
    font-weight: 300;
}

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

.feature-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #f39c12);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(30, 30, 30, 0.85);
    border-color: rgba(211, 47, 47, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(211, 47, 47, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2), rgba(243, 156, 18, 0.2));
    border-radius: 50%;
    border: 2px solid rgba(211, 47, 47, 0.4);
    transition: all 0.4s ease;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #f39c12);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-color);
}

.feature-card:hover .feature-icon::after {
    opacity: 0.3;
}

.feature-icon i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #f39c12, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.15);
}

.feature-card h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: #f39c12;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Responsive Design for Why Section */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .why-section {
        padding: 60px 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* ==========================================
   Statistics Section
   ========================================== */

.stats-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #1a1a1a 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), #f39c12, transparent);
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f39c12, var(--accent-color), transparent);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #f39c12);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(211, 47, 47, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.15), rgba(243, 156, 18, 0.15));
    border-radius: 50%;
    border: 3px solid rgba(211, 47, 47, 0.3);
    position: relative;
    transition: all 0.4s ease;
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #f39c12);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.stat-item:hover .stat-icon {
    transform: rotate(360deg) scale(1.1);
    border-color: var(--accent-color);
}

.stat-item:hover .stat-icon::after {
    opacity: 0.2;
}

.stat-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #f39c12, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-number {
    font-family: 'Teko', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: #f39c12;
}

/* Responsive Design for Statistics */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .stats-section {
        padding: 60px 15px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stat-item {
        padding: 30px 15px;
    }

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

    .stat-icon {
        width: 70px;
        height: 70px;
    }

    .stat-icon i {
        font-size: 2rem;
    }
}

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

.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-primary);
    padding: 60px 20px 0;
    margin-top: 80px;
    border-top: 3px solid rgba(211, 47, 47, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), #f39c12, transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding-bottom: 40px;
}

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

.footer-title {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #f39c12;
}

.contact-item i {
    width: 20px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

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

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(211, 47, 47, 0.1);
    border: 2px solid rgba(211, 47, 47, 0.3);
    border-radius: 50%;
    color: #f39c12;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

.footer-heading {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #f39c12;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links li a i {
    font-size: 0.7rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: #f39c12;
    padding-left: 5px;
}

.footer-links li a:hover i {
    transform: translateX(5px);
}

.working-hours {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.hours-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
}

.hours-item .day {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.hours-item .time {
    color: #f39c12;
    font-family: 'Teko', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
}

.footer-cta {
    margin-top: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.cta-button i {
    font-size: 1.3rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 5px 0;
}

.footer-credits {
    color: #888;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 15px 0;
        margin-top: 60px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-title {
        font-size: 2rem;
    }

    .footer-heading {
        font-size: 1.5rem;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */

@media (max-width: 768px) {

    /* Global Adjustments */
    html,
    body {
        overflow-x: hidden;
        font-size: 14px;
        /* Slightly smaller base font */
    }

    /* Header & Top Bar */
    .top-bar {
        font-size: 0.8rem;
        padding: 5px 10px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        text-align: center;
    }

    .top-bar .contact-info {
        gap: 10px;
        flex-direction: column;
    }

    /* Main Navigation */
    .main-nav {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 5px;
    }

    /* Hero Slider */
    .hero-slider {
        height: 300px;
        /* Smaller height for mobile */
    }

    .slide-content h2 {
        font-size: 2.5rem;
        /* Readable title */
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        padding: 0.5rem;
    }

    /* Layout Grids (Single Column) */
    .main-layout {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        /* Full width cards */
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack footer columns */
        gap: 30px;
        text-align: center;
    }

    .footer-links li {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }

    /* Statistics Section */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns for stats */
        gap: 15px;
        padding: 0 15px;
    }

    /* Features Section */
    .features-grid {
        grid-template-columns: 1fr;
        /* 1 column for features */
    }

    .section-title {
        font-size: 2rem;
    }

    /* Car Detail Page */
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-header h1 {
        font-size: 2rem;
    }

    /* Admin Panel Mobile */
    .dashboard-container {
        padding: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
        /* Stack form inputs */
    }

    .admin-nav {
        flex-direction: column;
        gap: 10px;
    }

    /* Make tables scrollable */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Badges */
    .status-badge {
        font-size: 0.6rem;
        padding: 2px 4px;
    }

    /* Buttons */
    .btn-group {
        flex-direction: column;
    }

    .row-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {

    /* Extra Small Devices */
    .stats-grid {
        grid-template-columns: 1fr;
        /* 1 column for very small screens */
    }

    .car-info h3 {
        font-size: 1.1rem;
    }

    .price-tag {
        font-size: 1rem;
        padding: 2px 8px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }
}

/* ========================================
   BLOG SYSTEM STYLES
   ======================================== */

/* Blog Container */
.blog-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.category-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
}

.blog-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-content {
    padding: 20px;
}

.blog-content h2 {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background-color: #2a2a2a;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--accent-color);
}

/* Blog Detail Page */
.blog-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.blog-hero {
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.blog-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px;
    color: white;
}

.blog-hero-overlay h1 {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-badge-large {
    display: inline-block;
    background: var(--accent-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-meta-large {
    display: flex;
    gap: 30px;
    font-size: 1rem;
}

.blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 3rem;
}

.blog-main-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    line-height: 1.8;
}

.blog-main-content h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-main-content h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.blog-main-content p {
    margin-bottom: 1.2rem;
    color: #ddd;
}

.blog-main-content ul,
.blog-main-content ol {
    margin-left: 25px;
    margin-bottom: 1.5rem;
}

.blog-main-content li {
    margin-bottom: 0.8rem;
    color: #ddd;
}

.blog-main-content strong {
    color: white;
    font-weight: 600;
}

.blog-tags-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.blog-tags-section h3 {
    margin-bottom: 15px;
}

.share-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.share-section h3 {
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-btn.whatsapp {
    background-color: #25D366;
}

.share-btn.facebook {
    background-color: #1877F2;
}

.share-btn.twitter {
    background-color: #1DA1F2;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.sidebar-card h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.cta-card {
    background: linear-gradient(135deg, var(--accent-color), #b71c1c);
    border: none;
}

.cta-card h3 {
    color: white;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.btn-cta {
    display: block;
    background-color: white;
    color: var(--accent-color);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s;
}

.category-list a:hover {
    background-color: #2a2a2a;
    color: var(--accent-color);
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
}

.related-posts h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.related-card a {
    text-decoration: none;
    color: inherit;
}

.related-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.category-badge-small {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.related-content h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.related-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-results p {
    margin: 20px 0;
    font-size: 1.2rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-content-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-hero {
        height: 300px;
    }

    .blog-hero-overlay h1 {
        font-size: 2rem;
    }

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

/* Most Viewed Cars Section */
.most-viewed-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 20px;
}

.most-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.view-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(33, 150, 243, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.most-viewed-grid .car-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.most-viewed-grid .car-card:hover {
    transform: translateY(-5px);
    border-color: #2196F3;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

@media (max-width: 768px) {
    .most-viewed-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Preview Section (Homepage) */
.blog-preview-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.blog-preview-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid var(--border-color);
}

.blog-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.blog-preview-card a {
    text-decoration: none;
    color: inherit;
}

.blog-preview-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-preview-card:hover .blog-preview-image img {
    transform: scale(1.1);
}

.blog-preview-content {
    padding: 20px;
}

.blog-preview-content h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: white;
}

.blog-preview-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-preview-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.btn-view-all {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

.btn-view-all i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* Admin Blog Form Styles */
.blog-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.blog-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-form label {
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.blog-form input[type="text"],
.blog-form input[type="url"],
.blog-form input[type="date"],
.blog-form select,
.blog-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #1a1a1a;
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

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

.blog-form input:focus,
.blog-form select:focus,
.blog-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.blog-form small {
    margin-top: 5px;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-view {
    background-color: #2196F3;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-view:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .blog-form .form-row {
        flex-direction: column;
    }
}

/* Gallery Section on About Page */
.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.gallery-item-about {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item-about:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(211, 47, 47, 0.3);
}

.gallery-item-about img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-about:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 15px;
    font-size: 0.9rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item-about:hover .gallery-caption {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .about-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-caption {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    }
}