:root {
    --primary-color: #8cc63e; /* Light Green */
    --secondary-color: #000000; /* Black */
    --accent-color: #FFD700; /* Gold */
}

body {
    font-family: 'Merriweather', serif;
    scroll-behavior: smooth;
    background-color: #f8f9fa;
}
.card-img-top {
    width: 100%; /* Ensures full width inside the card */
    height: 250px; /* Set a fixed height (adjust as needed) */
    object-fit: cover; /* Ensures the image is cropped to fit */
}
/* Navbar */
.navbar {
    background-color: #212529; /* Dark background */
    padding: 15px 0;
}

.navbar-brand {
    color: white;
    font-size: 22px;
    font-weight: bold;
}
.navbar-brand:hover{
    color: white;
}

.navbar-nav .nav-link {
    color: white;
    font-size: 18px;
    margin-left: 15px;
    transition: 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #8cc63e;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Hidden initially */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Hover effect */
.back-to-top:hover {
    background-color: #00a652;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1933&q=80') center/cover;
    height: 90vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.nav-link.active {
    background-color: #8cc63e; /* Light green color */
    color: white !important; /* White text color */
    border-radius: 5px; /* Optional: rounded corners for the button effect */
}

.nav-link {
    transition: background-color 0.3s ease; /* Smooth transition effect */
}
.hero-section h1 {
    font-size: 40px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* Buttons */
.btn-light {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 30px;
    transition: 0.3s ease;
}

.btn-light:hover {
    background-color: #00a652;
    color: black;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 30px;
    transition: 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: black;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}
@media (max-width: 991px) {
    .navbar-toggler {
        border-color: white !important;
    }

    .navbar-toggler-icon {
        filter: invert(1);
    }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #212529; /* Dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Responsive Spinner */
.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid #8cc63e; /* Green border */
    border-top: 8px solid #f8f9fa; /* Gold top */
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

/* Preloader Text */
.preloader-text {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #8cc63e; /* Green text */
    text-align: center;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide Preloader on Load */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .spinner {
        width: 50px;
        height: 50px;
        border-width: 6px;
    }
    .preloader-text {
        font-size: 1.2rem;
    }
}
#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding-top: 20%;
    font-size: 1.2rem;
    z-index: 9999;
}

#loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}