/* Custom CSS for AutoForYou Website */

:root {
    --primary-color: #370665;
    --secondary-color: #35589A;
    --accent-color: #F14A16;
    --highlight-color: #FC9918;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-primary: linear-gradient(135deg, #370665 0%, #35589A 100%);
    --gradient-accent: linear-gradient(135deg, #F14A16 0%, #FC9918 100%);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Page Header Styles */
.page-header {
    background: var(--gradient-primary) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.cta-section {
    background: var(--gradient-primary) !important;
}

.why-choose-us {
    background: var(--gradient-primary) !important;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
    color: var(--accent-color);
}

.auth-links .btn {
    font-size: 12px;
    padding: 5px 15px;
}

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Search Section */
.search-section {
    background: var(--gradient-primary);
    color: white;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #333;
}

.search-box h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

/* Welcome Section */
.welcome-section {
    padding: 4rem 0;
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-box h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    background-color: var(--light-color);
}

.stat-box {
    text-align: center;
    padding: 1rem;
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Featured Cars Section */
.car-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.car-image {
    position: relative;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-type {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.car-details {
    padding: 1.5rem;
}

.car-details h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.price {
    margin-bottom: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 1rem;
    margin-right: 10px;
}

.sale-price {
    color: var(--success-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.country {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.car-specs span {
    background: var(--light-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--dark-color);
}

.car-specs i {
    margin-right: 5px;
    color: var(--primary-color);
}

.car-actions {
    display: flex;
    gap: 10px;
}

.car-actions .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 8px 15px;
}

/* Services Section */
.service-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonial-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    position: relative;
}

.testimonial-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

.testimonial-author h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
}

.contact-section h2 {
    margin-bottom: 0.5rem;
}

.contact-section .lead {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Visibility Toggle Button */
.visibility-toggle {
    transition: all 0.3s ease;
}

.visibility-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.visibility-status {
    font-weight: 500;
}

.visibility-status.visible {
    color: var(--success-color);
}

.visibility-status.hidden {
    color: var(--danger-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
}

.footer h5 {
    color: white;
    margin-bottom: 1rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        padding: 1.5rem;
    }
    
    .car-actions {
        flex-direction: column;
    }
    
    .car-actions .btn {
        margin-bottom: 10px;
    }
    
    .stat-box h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .contact-info {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .auth-links {
        text-align: center;
    }
    
    .search-box {
        padding: 1rem;
    }
    
    .car-specs {
        flex-direction: column;
    }
    
    .car-specs span {
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Custom Button Styles */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 74, 22, 0.4);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(53, 88, 154, 0.4);
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(55, 6, 101, 0.25);
}

/* Card Hover Effects */
.car-card, .feature-box, .service-box, .testimonial-box {
    transition: all 0.3s ease;
}

.car-card:hover, .feature-box:hover, .service-box:hover, .testimonial-box:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Contact Page Styles */
.contact-form-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
}

.contact-details h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.quick-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.quick-actions h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.service-icon i {
    font-size: 2rem;
}

.service-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    border-radius: 15px;
}

.faq-section .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-section .accordion-button {
    background: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.faq-section .accordion-body {
    padding: 1.5rem;
    background: var(--light-color);
    color: var(--secondary-color);
}

/* Compare Container Styles */
.compare-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.compare-car-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.compare-car-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,123,255,0.1);
}

/* Inventory Page Styles */
.filter-box {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sold-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Form Validation Styles */
.is-invalid {
    border-color: var(--danger-color) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-info-box {
        position: static;
        margin-top: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .sort-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .compare-container {
        position: relative;
        max-height: none;
    }
}

@media (max-width: 576px) {
    .contact-form-box,
    .contact-info-box {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .filter-box {
        padding: 1rem;
    }
}

/* About Page Styles */
.mv-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    text-align: center;
    transition: transform 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.mv-icon i {
    font-size: 2rem;
}

.mv-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.mv-card ul {
    text-align: left;
}

.mv-card ul li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image {
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
}

.team-info h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-info .position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-info .experience {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-info .description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 0 0 4px white, 0 0 0 8px var(--primary-color);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.award-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.award-item:hover {
    transform: translateY(-2px);
}

.award-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.advantage-item {
    padding: 2rem 1rem;
}

.advantage-item i {
    color: white;
    opacity: 0.9;
}

.advantage-item h5 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.advantage-item p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.cta-section {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}

.cta-buttons {
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 30px;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }
    
    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0 !important;
    }
}

@media (max-width: 576px) {
    .mv-card,
    .team-info {
        padding: 1.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .advantage-item {
        padding: 1.5rem 0.5rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

/* Services Page Styles */
.services-grid .service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
    text-align: center;
}

.services-grid .service-card:hover {
    transform: translateY(-10px);
}

.services-grid .service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.services-grid .service-icon i {
    font-size: 2rem;
}

.services-grid .service-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.services-grid .service-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

.service-features li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.service-price {
    margin-bottom: 1.5rem;
}

.service-price .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.service-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.service-actions .btn {
    flex: 1;
    max-width: 150px;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.advantage-icon i {
    font-size: 1.5rem;
}

.advantage-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.advantage-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.process-step h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-step p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Featured Services Styles */
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.service-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-type {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.service-details {
    padding: 1.5rem;
}

.service-details h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-description {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.service-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.service-specs span {
    background: var(--light-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--dark-color);
}

.service-specs i {
    margin-right: 5px;
    color: var(--primary-color);
}

.service-actions {
    display: flex;
    gap: 10px;
}

.service-actions .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 8px 15px;
}

/* Responsive Services */
@media (max-width: 768px) {
    .service-actions {
        flex-direction: column;
    }
    
    .service-actions .btn {
        max-width: none;
    }
    
    .services-grid .service-card {
        padding: 1.5rem;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    .service-specs {
        flex-direction: column;
    }
    
    .service-specs span {
        text-align: center;
    }
}

/* County Cards Styles */
.county-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.county-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-color);
}

.county-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.county-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 2px #000000;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 0;
    text-align: center;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 12px;
}

.county-card:hover .county-title {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.county-bg {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    aspect-ratio: 16/9;
    width: 100%;
}

/* Ensure background image shows */
.card-img-top.county-bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.county-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.county-card:hover .county-overlay {
}

.county-image-text {
    text-align: center;
    color: white;
}

.county-image-text i {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.county-card:hover .county-image-text i {
    color: var(--highlight-color);
    transform: scale(1.1);
}

.county-image-text p {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin: 0;
}

.county-card .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.county-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.county-card .btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Fallback for missing images */
.county-bg:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -1;
}

/* Debug: Ensure background shows */
.county-bg[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 200px !important;
}

/* Force background to show */
.card-img-top {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Service buttons styling - consistent outlined design with animations */
.service-btn {
    flex: 1 !important;
    min-width: 0 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-transform: capitalize !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    background: transparent !important;
}

/* Button hover animations */
.service-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-width: 2px !important;
}

/* Button active state */
.service-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Specific color schemes for each button type */
.btn-outline-info.service-btn {
    color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
}

.btn-outline-info.service-btn:hover {
    background-color: #0dcaf0 !important;
    color: white !important;
}

.btn-outline-success.service-btn {
    color: #198754 !important;
    border-color: #198754 !important;
}

.btn-outline-success.service-btn:hover {
    background-color: #198754 !important;
    color: white !important;
}

.btn-outline-warning.service-btn {
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.btn-outline-warning.service-btn:hover {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* General fallback image styling */
.county-bg[style*="general.jpg"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.county-bg[style*="general.jpg"]:before {
    content: '🏛️';
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Responsive County Cards */
@media (max-width: 768px) {
    .county-card .card-body {
        padding: 1rem;
    }
    
    .county-title {
        font-size: 1.25rem;
    }
    
    .county-bg {
        min-height: 150px;
    }
}
