/* Custom color variables */
:root {
    --custom-green: #2AAC32;
    --custom-dark-green: #239F2E;
}

/* Override Bootstrap colors */
.bg-success {
    background-color: var(--custom-green) !important;
    border-color: var(--custom-green) !important;
}

.text-bg-success {
    background-color: var(--custom-green) !important;
    color: white !important;
}

.btn-success {
    background-color: var(--custom-green) !important;
    border-color: var(--custom-green) !important;
}

.btn-success:hover {
    background-color: var(--custom-dark-green) !important;
}

.btn-outline-success {
    border-color: var(--custom-green) !important;
    color: var(--custom-green) !important;
}

.btn-outline-success:hover {
    background-color: var(--custom-green) !important;
    color: white !important;
}

/* Dashboard specific styles */
.dashboard-container body {
    overflow-x: hidden;
}

/* Service Cards */
.services-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px;
}

.services-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.services-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: #212529 !important;
    color: white;
    border-radius: 8px;
}

/* Scrollable container */
.scrollable-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

.scrollable-container::-webkit-scrollbar {
    height: 8px;
}

.scrollable-container::-webkit-scrollbar-thumb {
    background-color: var(--custom-green);
    border-radius: 4px;
}

.scrollable-container::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

/* Carousel images */
.carousel-image {
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Tutorial Card */
.tutorial-card {
    background-color: var(--custom-green);
    color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Step Cards */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-card {
    background-color: white;
    border-left: 5px solid var(--custom-green);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
}

.step-card i {
    float: right;
}
/* Add to your existing <style> section */

/* Fixed size carousel images */
.carousel-image-container {
    width: 100%;
    height: 400px;  /* Fixed height */
    overflow: hidden;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* This maintains aspect ratio while filling the container */
    object-position: center;  /* Centers the image */
}

/* Improved caption readability */
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 15px;
    bottom: 20px;
}

/* Maintain fixed size on all screen sizes */
@media (max-width: 768px) {
    .carousel-image-container {
        height: 300px;  /* Slightly smaller on mobile */
    }
    
    .carousel-caption {
        /* Make captions visible on small screens */
        display: block !important;
        padding: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .carousel-image-container {
        height: 350px;  /* Medium height for tablets */
    }
}
 /* Hero section styles */
 .hero-section {
    background-color: #f8f9fa;
}

/* Service card styles */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 280px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 28px;
}

/* Responsive adjustments for service cards */
@media (max-width: 991.98px) {
    .service-card {
        min-height: 260px;
    }
}

@media (max-width: 575.98px) {
    .service-card {
        min-height: auto;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}

/* Step number styles */
.step-number {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #0d6efd;
    margin: 0 auto;
}

/* Custom carousel height for better responsiveness */
@media (max-width: 768px) {
    #heroCarousel .carousel-item {
        height: 300px;
    }
    
    #heroCarousel .carousel-item img {
        height: 100%;
        object-fit: cover;
    }
}

/* Custom styling for How It Works section */
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto;
}

.how-it-works .card {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.how-it-works .card:hover {
    transform: translateY(-5px);
}

.how-it-works .btn:hover {
    background-color: #1e7d26 !important;
    border-color: #1e7d26 !important;
}
