* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a3a6c;
    --secondary: #e74c3c;
    --accent: #f39c12;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.top-bar {
    background-color: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
}

.contact-info span {
    margin-right: 20px;
}

.social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 16px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

.logo h1 {
    color: var(--primary);
    font-size: 28px;
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--secondary);
    background-color: rgba(231, 76, 60, 0.1);
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

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

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

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 58, 108, 0.8), rgba(26, 58, 108, 0.8)), url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Page Header */
.page-header {
    background-color: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
    color: var(--primary);
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.car-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.car-img {
    height: 200px;
    overflow: hidden;
}

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

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

.car-details {
    padding: 20px;
}

.car-details h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.price {
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.specs {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

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

.spec-item i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Services Section */
.services {
    background-color: var(--light);
    padding: 70px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--secondary);
    font-size: 30px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Testimonials */
.testimonials {
    padding: 70px 0;
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: var(--secondary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-content {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.client {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.client-info h4 {
    color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

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

.hours li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #aaa;
}

/* Filter Section */
.filter-section {
    background-color: var(--light);
    padding: 30px 0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-link {
    padding: 10px 15px;
    margin: 0 5px;
    background-color: white;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--dark);
    border-radius: 4px;
}

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

/* Breadcrumb */
.breadcrumb {
    background-color: var(--light);
    padding: 15px 0;
    font-size: 14px;
}

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

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

/* Vehicle Detail */
.vehicle-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.vehicle-images {
    display: flex;
    flex-direction: column;
}

.main-image {
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-images img:hover {
    border-color: var(--secondary);
}

.vehicle-info h1 {
    color: var(--primary);
    margin-bottom: 10px;
}

.key-specs {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.key-specs .spec-item {
    text-align: center;
}

.key-specs .spec-item i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.actions {
    margin: 30px 0;
}

.highlights ul {
    list-style-type: none;
    padding-left: 0;
}

.highlights li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.highlights li:before {
    content: "✓";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-link {
    padding: 15px 30px;
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
}

.tab-link.active {
    background-color: var(--primary);
    color: white;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-category h4 {
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tech-specs {
    width: 100%;
    border-collapse: collapse;
}

.tech-specs td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.tech-specs tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tech-specs td:first-child {
    font-weight: 600;
    width: 30%;
}

/* Related Vehicles */
.related-vehicles {
    background-color: var(--light);
    padding: 50px 0;
}

/* Services Page */
.services-page {
    padding: 50px 0;
}

.service-details {
    padding: 50px 0;
    background-color: var(--light);
}

.service-detail-item {
    margin-bottom: 40px;
}

.service-detail-item h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.service-detail-item ul {
    margin: 20px 0;
    padding-left: 20px;
}

.service-detail-item li {
    margin-bottom: 10px;
}

.why-us {
    padding: 70px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(26, 58, 108, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 30px;
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* About Us */
.company-story {
    padding: 70px 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.story-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mission-values {
    padding: 70px 0;
    background-color: var(--light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--secondary);
    font-size: 30px;
}

.value-item h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.team {
    padding: 70px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--light);
}

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

.position {
    color: var(--secondary);
    font-weight: 600;
    margin: 10px 0;
}

.stats {
    background-color: var(--primary);
    color: white;
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent);
}

.stat-label {
    font-size: 1.2rem;
}

/* Contact Page */
.contact-content {
    padding: 70px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h3 {
    margin-bottom: 5px;
    color: var(--primary);
}

.form-group-full {
    margin-bottom: 20px;
}

.form-group-full label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-group-full input,
.form-group-full textarea,
.form-group-full select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group-full textarea {
    height: 150px;
}

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq {
    background-color: var(--light);
    padding: 70px 0;
}

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

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info, .social-icons {
        margin: 5px 0;
    }

    .vehicle-overview,
    .story-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

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

    .filter-group select {
        width: 100%;
    }
}
/* Add these rules to your existing styles.css */

/* Control image size in car listings */
.car-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

/* Ensure images don't exceed their containers */
img {
    max-width: 100%;
    height: auto;
}

/* Specific fix for recently added car images */
.recent-car-image {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
}
/* Add to styles.css */
.loading-message {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
}

.no-cars-message {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
}
/* Add to styles.css */
.notification {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-weight: 500;
}

.notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification.info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

