body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #343a40;
}

.hero-section {
    background: url('../ASSETS/Images/picture6.png') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    height: 512px; /* Adjusted height */
    position: relative; /* Ensure relative positioning for absolute elements */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    z-index: 1; /* Ensure it's above the background image */
}

.hero-section .container {
    position: relative; /* Ensure content is placed above the overlay */
    z-index: 2; /* Place content above overlay */
    color: white; /* Text color for better readability */
}

.hero-section h1,
.hero-section p,
.hero-section h2 {
    margin-bottom: 1em;
}

.card {
    border: none;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.m-popularService__icon {
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.m-govermentpeople__icon {
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
}

footer {
    background-color: #343a40;
    color: white;
    padding: 1em 0;
}

a.nav-link:hover {
    text-decoration: underline;
}


 /* The Popular Services Section, Applying etc. */

.o-popularServices {
    background-color: #f8f9fa;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em; /* Add margin at the bottom */
}

.bg-primary-blue {
    background-color: #0056b3;
    color: white;
    padding: 1em;
    border-radius: 8px 8px 0 0; /* Rounded corners on top */
}

.m-popularService__title {
    text-align: center;
    margin-bottom: 1.5em; /* Space below the title */
}

.o-popularService__cardsWrapper {
    max-width: 1200px; /* Limit maximum width of the cards wrapper */
    margin: 0 auto; /* Center align the cards */
}

.o-popularService__cardsContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.m-popularService__card {
    width: calc(50% - 2em); /* Adjust width of each card for smaller screens */
    max-width: 300px; /* Limit maximum width of each card */
    margin: 1em; /* Add space around each card */
    padding: 1em; /* Add internal padding to each card */
    background-color: white; /* Ensure background color for padding visibility */
    border: 1px solid #ddd; /* Add border for better separation */
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
}

.m-popularService__button {
    text-align: center;
}

.m-popularService__button:hover {
    transform: scale(1.05);
}

.m-popularService__icon {
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.m-popularService__card .text {
    display: block;
    margin-top: 1em;
}

@media (max-width: 768px) {
    .m-popularService__card {
        width: calc(50% - 2em); /* Two cards per row on smaller screens */
    }
}

.falling {
    position: fixed;
    top: -50px; /* Start above the viewport */
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Add spooky background music control */
#bgm {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 10000;
}

.modal-body {
    color: black;
}

.modal-title {
    color: black;
}