/* Limit the website width */
.container {
    max-width: 1200px; /* Adjust this value to control the overall width */
    margin: 0 auto; /* Center the container horizontally */
    padding: 0 15px; /* Add some horizontal padding */
}

/* Ensure the hero section respects the container */
.hero-section .container,
.ussd-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .container {
        max-width: 95%; /* Allow more room for smaller screens */
    }
}


/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(246, 244, 244, 0.1); /* Light grey */
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgb(255, 255, 255);
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #00b300; /* Green hover effect */
}

/* Ensure navbar sticks when scrolling */
.hero-section {
    position: relative;
    z-index: 1;
}


/* Hero Section */
.hero-section {
    background: url('../img/backgrounds/hero.jpg') no-repeat center center/cover;
    height: 100vh; /* Full viewport height */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.8;
    z-index: -1;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.5rem;
    margin-top: 10px;
}

.btn-green {
    background-color: #00b300;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.btn-green:hover {
    background-color: #009900;
}

/* About Us Section */
.about-section {
    position: relative;
    background-color: rgb(235, 235, 235);
    padding: 50px 20px;
    color: rgb(0, 0, 0);
    text-align: center;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px); /* Blur effect on the background */
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 2; /* Ensures content is above the blurred background */
}

/* Header Styles */
.header-container h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.header-container p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Row */
.content-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.text-area-container h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #00b300;
}

.text-area-container ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left; /* Aligns the list to the left */
}

.text-area-container ul li {
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.text-area-container ul li::before {
    content: "✔"; /* Adds a checkmark before each item */
    color: #00b300; /* Green color for checkmark */
    font-weight: bold;
    position: absolute;
    left: 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .text-area-container ul li {
        font-size: 0.9rem;
    }

    .header-container h2 {
        font-size: 2rem;
    }

    .text-area-container h3 {
        font-size: 1.2rem;
    }

    .content-container {
        flex-direction: column;
        align-items: center;
    }

    .image-container img {
        margin-top: 20px;
    }
}

/* USSD Section */
.ussd-section {
    position: relative;
    padding: 0; /* Remove padding to ensure full coverage */
    min-height: 50vh; /* Ensure sufficient height for the section */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Align content vertically */
}

.ussd-image {
    max-width: 95%;
    width: 90%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the container proportionally */
    max-height: 400px; /* Limit height for balance */
    position: relative; /* Ensures it stays in the background */
    z-index: 1;
}

.ussd-heading {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Text contrast */
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    position: absolute;
}

.ussd-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Text contrast */
    font-size: 1.2rem;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    border-radius: 8px;
    text-align: center;
    max-width: 80%; /* Limit the text width */
}

.ussd-text p {
    margin-bottom: 15px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .ussd-heading {
        font-size: 2rem;
    }

    .ussd-text {
        font-size: 1rem;
        padding: 15px;
    }

    .ussd-image {
        max-height: 300px; /* Adjust image height for smaller screens */
    }
}



/* Features Section */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h4 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004080; /* Navy blue */
    margin-top: 15px;
}

.card p {
    font-size: 1rem;
    margin-top: 10px;
    color: #555;
}

.card-img-top {
    height: 180px; /* Set a fixed height for consistency */
    object-fit: cover; /* Maintain aspect ratio while cropping */
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px; /* Adjust image height for smaller screens */
    }
}


/* Footer */
footer {
    background-color: #004080; /* Navy Blue */
    color: white;
    padding: 20px 0;
    font-size: 0.9rem;
}

footer a {
    text-decoration: none;
    color: white;
}

footer a:hover {
    text-decoration: underline;
}
