/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

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

/* GLOBAL BANNER OVERRIDES */
.homepage-banner-section,
.homepage-banner-container,
.homepage-banner-rotator,
.homepage-banner-slide,
.homepage-banner-link,
.homepage-banner-image {
    box-sizing: border-box !important;
    max-width: 100vw !important;
}

body {
    overflow-x: hidden;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

/* Navigation */
.navbar {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 2.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: #ffc107;
}

.styled-logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
    transform: translateY(-2px);
}

/* Vish banner*/
.image-container {
    width: 100%;
    /* Optional: Add some padding if needed, but the image itself will handle the width */
}

.image-container img {
    max-width: 100%; /* Ensures the image doesn't exceed its container's width */
    height: auto;    /* Automatically adjusts the height to maintain aspect ratio */
    display: block;  /* Removes extra space below the image, common with inline elements */
    margin-left: auto; /* Centers the image if it becomes smaller than the container */
    margin-right: auto; /* Centers the image if it becomes smaller than the container */
}/* Vish banner*/

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-box .form-select,
.search-box .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.premium-badge {
    display: inline-block;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Vehicle Cards */
.vehicle-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.vehicle-image-wrapper {
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.vehicle-specs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Category Cards */
.category-card {
    display: block;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.category-card:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h5 {
    color: #333;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border-color: #ddd;
}

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

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffc107 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

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

    .search-box {
        padding: 1rem;
    }

    .vehicle-image-wrapper {
        height: 200px;
    }
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-white-50:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Loading Animation */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

/* Cards */
.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    border-bottom: 1px solid #ddd;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 4px;
    border: 1px solid #ddd;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alerts */
.alert {
    border-radius: 4px;
    border: none;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

