/* Initial Setup */

/* General Styles */
body {
    padding-top: 76px;
}

/* Hero Section */
.hero-section {
    min-height: 35vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section .overlay {
    z-index: 1;
}

.hero-section .btn {
    z-index: 3;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Custom Section Spacing */
section {
    padding: 80px 0;
}

/* Image Styles */
.img-fluid {
    border-radius: 8px;
}

/* Card Images */
.card img {
    height: 250px;
    object-fit: cover;
}

/* Form Styles */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in, transform 0.5s ease-in;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alert Styles */
.alert {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 300px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }

    section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .col-md-6 {
        margin-bottom: 30px;
    }

    .card img {
        height: 200px;
    }
}


/* CTA Section - Increased Height & Centering */
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 35vh; /* Adjusted height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0; /* Extra spacing */
}

/* Dark overlay to improve readability */
.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Keeps text readable */
    z-index: 1;
}

/* Ensures text & button stay on top */
.cta-section .container {
    position: relative;
    z-index: 2;
}


/* Make the page fill the screen & push the footer down */
html, body {
    height: 100%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}

/* Push the footer to the bottom */
.main-content {
    flex-grow: 1; /* Allows main content to expand while keeping footer at bottom */
}