/* Base header styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin: 20px 0;
}

/* Specific styles for each header */
h1 {
    font-size: 3em;
    /* Enhanced size */
    line-height: 1.2;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    text-transform: uppercase;
}

h2 {
    font-size: 2.5em;
    /* Enhanced size */
    line-height: 1.3;
    border-bottom: 1px solid #000;
    padding-bottom: 8px;
    text-transform: uppercase;
}

h3 {
    font-size: 2em;
    /* Enhanced size */
    line-height: 1.4;
    color: #555;
    text-transform: capitalize;
}

h4 {
    font-size: 1.75em;
    /* Enhanced size */
    line-height: 1.5;
    color: #666;
    text-transform: capitalize;
}

h5 {
    font-size: 1.5em;
    /* Enhanced size */
    line-height: 1.6;
    color: #777;
    font-style: italic;
}

h6 {
    font-size: 1.25em;
    /* Enhanced size */
    line-height: 1.7;
    color: #888;
    font-style: italic;
}

/* Enhanced paragraph styles */
main p {
    font-size: 1.15em;
    /* Slightly larger text for readability */
    line-height: 1.7;
    /* Improved readability with more line spacing */
    color: #444;
    /* Soft, dark color for better readability */
    margin: 15px 0;
    /* Space around the paragraphs */
    text-align: justify;
    /* Justify text for a clean look */
    padding: 0 10px;
    /* Padding for a little extra space */
    transition: color 0.3s ease, background 0.3s ease;
    /* Smooth transition for color changes */
}


/* Enhanced unordered list styles */
ul {
    list-style-type: none;
    /* Remove default bullets */
    margin: 20px 0;
    /* Add space around the list */
    padding: 0;
    /* Remove default padding */
    color: #333;
    /* Set a default text color */
}

ul li {
    font-size: 1.1em;
    /* Slightly larger text */
    line-height: 1.5;
    /* Improved readability */
    transition: background 0.3s ease;
    /* Smooth background transition */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/backgrounds/back.jpg') no-repeat center center/cover;
    opacity: 0.3;
    /* Adjust opacity as needed */
    z-index: -1;
}

body {
    font-family: 'Roboto', 'Georgia', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.header-sec {
    background-image: url("../images/backgrounds/header.png");
    padding: 1rem 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.header-sec img {
    height: 100px;
}

#header-icons img {
    height: 2rem;
    margin: 0 0.5rem;
}

header .navlogo {
    position: absolute;
    top: 10px;
    left: 20px;
    text-align: center;
}


.landing1 {
    width: 60%;
    align-self: center;
    background-color: rgb(51, 51, 51,0.4);
    padding: 20px 20px 40px 20px;
}

.landing1 p {
    color: #e2e3e5;
    padding-bottom: 1em;
    text-align: center;
}

.landing1 img {
    align-self: center;
    justify-self: center;
    position: relative;
    margin: auto;
    display: block;
    padding: 0;
    width: 80%;
}

.landing-img-container {
    display: flex;
    margin: auto;
    width: 15vw;
    height: 15vw;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.landing2 {
    padding: 3em;
    width: 40%;
    text-align: start;
    background-color: rgba(255, 255, 255, 0.7);

}

.landing2 p {
    color: #000;
    padding: 0%;
}

.landing2 h2 {
    font-size: 1.5em;
    /* Enhanced size */
    line-height: 1.2;
    padding: 0;
    margin: 0;
    border: none;
    text-transform: none;
}

#landing h1 {
    font-family: 'Playfair Display';
    color: #f9f9f9;
    text-align: center;
    font-size: 2.5em;
    /* Enhanced size */
    line-height: 1.2;
    padding: initial;
    border: none;
    text-transform: none;
}

#landing {
    display: flex;
    flex-direction: row;
    box-shadow: inset 0 0 0 1000px rgba(19, 47, 120, 0.2);
    padding: 0px;
    background-image: url("../images/backgrounds/landing.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin: 1rem 0;
    border: 10px solid #132f78;
    border-radius: 5px;
}

.image-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;

}

header nav {
    background-color: #132f78;
    
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    padding: 1rem 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}


nav ul li a:hover {
    color: #acacac;
}

.active {
    color: #acacac; 
}

#intro {
    text-align: center;
}

main {
    padding: 0rem 2rem 2rem 2rem;
    max-width: 1200px;
    margin: auto;
}

/* h1, h2 {
    color: #14191a;
}

h2 {
    margin-top: 2rem;
} */



section {
    margin-bottom: 2rem;
}

.section-image {
    width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 5px;
}

footer {
    background-color: #14191a;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer .logo {
    width: 100px;
    display: block;
    margin: 0 auto 10px auto;
}

.orgs ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.orgs ul li {
    margin: 1rem;
}

.orgs ul li img {
    max-width: 100px;
}

#services ul {
    list-style: none;
    padding: 0;
}

#services ul li {
    background: #132f78;
    color: white;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    transition: background 0.3s;
}

#services ul li:hover {
    background: #a42d1e;
}

article {
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    #landing {
        flex-direction: column;
    }
    .landing1,.landing2 {
        width: 100%;
        padding: 0;
    }
    .header-sec .mobile {
        display: none;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .orgs ul {
        flex-direction: column;
        align-items: center;
    }

    .orgs ul li img {
        max-width: 150px;
    }

    .image-grid, .programs-grid {
        grid-template-columns: 1fr;
    }

    #about1 {
        display: initial;
    }

    .contact-list {
        flex-direction: column;
    }

    .contact-list li {
        margin-bottom: 1rem;
    }

    .location {
        flex-direction: column;
    }
}