/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    padding-top: 70px; /* Adjust based on navbar height to prevent content overlap */
}

/* Green theme for navigation bar */
.navbar {
    background-color: #c2262d !important; /* Green background */
    position: fixed; /* Fix the navbar to the top */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays above other content */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow effect */
}

/* Link colors */
.navbar .nav-link {
    color: white !important; /* White text */
    transition: color 0.3s ease-in-out; /* Smooth transition for hover */
}

/* Hover effect for links */
.navbar .nav-link:hover {
    color: #d4edda !important; /* Light green hover effect */
}

/* Active link styling */
.navbar .nav-link.active {
    font-weight: bold;
    color: #c3e6cb !important; /* Lighter green for active link */
}

/* Hero Section */
.hero-section {
    background-color: #007bff;
    color: white;
    padding: 50px 0;
    margin-bottom: 40px;
    border-radius: 8px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #386871;
    color: white;
    padding: 20px;
    position: relative; /* Ensures footer stays at the bottom */
    width: 100%;
    bottom: 0;
    text-align: center;
}

/* Carousel Styling */
.carousel-item {
    position: relative;
    height: 500px; /* Adjust based on your design */
    overflow: hidden; /* Ensure images don't overflow the container */
}

.carousel-image {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.carousel-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay */
    z-index: 1;
}

.carousel-item img {
    visibility: hidden; /* Hide the default image to use the background */
}

/* Cards (About Page Styling) */
.card {
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0056b3;
}

.card-text {
    font-size: 1rem;
    color: #333;
}

h2, h3 {
    font-weight: 700;
    color: #0056b3;
    font-size: 700;
    margin-bottom: 20px;
}

/* Add spacing for larger screens */
@media (min-width: 768px) {
    .card-body {
        padding: 2rem;
    }
}

/* Accessibility and Responsiveness Fix */
@media (max-width: 576px) {
    .carousel-caption {
        font-size: 0.9rem;
        padding: 10px;
    }
}

#progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    margin-bottom: 20px;
}

#progress-bar {
    width: 0%;
    height: 30px;
    background-color: #4caf50;
    text-align: center;
    line-height: 30px;
    color: white;
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}
