/* Home Page Specific Styles */

/* REMOVE THESE CONFLICTING BANNER STYLES - They're now in banner_display.php */
/*
.banner-ad-section {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 8px 0;
}

.banner-ad-container {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
}

.banner-ad-image {
    max-width: 100%;
    height: auto;
    max-height: 90px; 
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
*/

/* Hero Section */
.hero-section {
    background-attachment: fixed;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-box {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* Featured Section */
.featured-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.vehicle-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Category Section */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: #0d6efd;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.2);
}

.category-icon {
    font-size: 3.5rem;
    color: #0d6efd;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Stats Section */
.stats-section {
    background: white;
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d6efd;
}

.stat-label {
    color: #666;
    margin-top: 0.5rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    /* REMOVE mobile banner styles since they conflict */
    /*
    .banner-ad-image {
        max-height: 60px;
    }
    */
    
    .hero-content h1 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }
    
    /* Add mobile-specific hero adjustments */
    .hero-section {
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .search-box .row {
        margin: 0 -5px;
    }
    
    .search-box .col-md-2 {
        padding: 0 5px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    /* REMOVE mobile banner styles since they conflict */
    /*
    .banner-ad-image {
        max-height: 50px;
    }
    */
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}