﻿/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0175b7;
    --secondary-color: #005b9e;
    --dark-color: #001529;
    --light-color: #f9f9f9;
    --text-color: #333;
}

body {
    font-family: Arial, sans-serif; /* Add a default font-family */
    line-height: 1.6; /* Improve readability */
    color: var(--text-color);
    padding-top: 2rem; /* Adds white space above the hero section */
}

/* Typography */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-brand img {
    height: 80px;
}

.nav-link {
    color: var(--primary-color);
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* Hero Section */
#hero {
    background-image: url('../images/kusile-22-e1693486894799.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 0; /* Remove padding */
    margin-bottom: 3rem;
    min-height: 80vh;
    display: flex; /* Add flex display */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
    text-align: center; /* Center text horizontally */
    max-width: 800px; /* Optionally limit the width of the content */
}

#hero h1,
#hero p,
#hero .btn {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Optional: adds shadow to text for better readability */
}

#hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem; /* Add some space below the heading */
}

#hero p {
    font-size: 1.2rem; /* Increase font size for better readability */
    margin-bottom: 2rem; /* Add space below the paragraph */
}

#hero .btn-light:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Carousel */
.carousel-item img {
    width: 100%;
    height: 650px;
    object-fit: cover; /* Ensure images cover the area without distortion */
}

/* Hub Centres Section */
.hub-centres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.hub-centre {
    text-align: center;
    transition: transform 0.3s ease;
}

.hub-centre:hover {
    transform: translateY(-5px);
}

.hub-centre img {
    width: 100%;
    max-width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: contain;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
    padding: 5px;
}

.hub-centre h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Call to Action Section */
.cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-top: 4rem;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white; /* Changed from black for better contrast */
}

.cta-button {
    display: inline-block;
    background-color: white; /* Changed for better contrast */
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 1rem;
}

footer a {
    color: #1e90ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .slideshow-container {
        max-width: 90%;
    }

    .hub-centres {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .nav-links {
        flex-direction: column; /* Stack nav links on small screens */
    }

    .nav-links li {
        margin: 0.5rem 0; /* Adjust spacing for stacked nav links */
    }
}

/* About Us Section */
#aboutus {
    background-image: url('../images/497f9c23-5fad-41a2-a938-069c062f8e13.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#aboutus::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Adjust opacity as needed */
}

#aboutus .container {
    position: relative;
    z-index: 2;
}

#aboutus .about-content {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#aboutus h2 {
    color: var(--primary-color);
    font-weight: 700;
}

#aboutus h3 {
    color: var(--secondary-color);
}

#aboutus .list-group-item {
    border: none;
    padding: 0.5rem 0;
    background-color: transparent;
}

#aboutus .list-group-item i {
    width: 25px;
    color: var(--primary-color);
}

/* Responsive navigation menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
    }

    nav ul.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #f8f8f8;
        padding: 1rem;
    }
}

/* Animation styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Contact form styles */
#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #0056b3;
}

/* Add these new styles at the end of the file */

/* Section Styles */
.section {
    padding: 4rem 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: #f8f9fa;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Specific Section Styles */
.section-hero {
    padding: 6rem 0;
}

.section-about .about-content {
    padding: 2rem;
}

.section-services .card {
    height: 100%;
    transition: transform 0.3s ease;
}

.section-services .card:hover {
    transform: translateY(-10px);
}

.section-impact {
    background-color: #fff;
}

.section-hubcenters .hub-centre img {
    transition: transform 0.3s ease;
}

.section-hubcenters .hub-centre:hover img {
    transform: scale(1.1);
}

.section-testimonials .card {
    margin-bottom: 2rem;
}

.section-contact {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section h2 {
        font-size: 2rem;
    }
}

/* Add this to your existing CSS */
#map {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Add this to your existing CSS */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 9999; /* Increase z-index to ensure it's above other elements */
    opacity: 0.7;
    transition: opacity 0.3s, background-color 0.3s;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#back-to-top:hover {
    opacity: 1;
    background-color: var(--secondary-color);
}

/* Ensure the button is visible on all screen sizes */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
