
/*
Theme Name: CARE Theme (Wrapped Bordered Layout)
Author: CARE Team
Version: 3.1
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans&family=Poppins:wght@600&display=swap');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    background-color: #F7F7F7;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    color: #289e78;
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

.site-container {
    max-width: 960px;
    width: 100%;
    margin: 2rem auto;
    box-sizing: border-box;
    border: 1px solid var(--section-border-color, #e0e0e0);
    background-color: #ffffff;
}

header {
    padding: 25px 10px;

    padding: 25px 10px;
    background: #fff;
    padding: 25px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    flex-direction: row;
}

.site-logo img {
    max-height: 75px;
    object-fit: contain;
    width: auto;
    height: auto;
    display: block;
}

.header-widget {
    text-align: right;
    font-size: 0.95rem;
}

nav {
    background-color: #289e78;
}
#mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    
}
nav ul li {
    position: relative;
}
nav ul li a {
    color: white;
    padding: 10px 15px;
    display: block;
    font-weight: bold;
}
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
nav ul li ul li a {
    color: #289e78;
    font-weight: bold;
}
nav ul li:hover > ul {
    display: block;
}

main.site-main {
    flex: 1;
    display: block;
}

.featured-image-wrapper img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.content-wrapper {
    padding: 2rem;
    text-align: justify;
    box-sizing: border-box;
}

.footer-widgets {
    display: flex;
    
    justify-content: space-between;
    gap: 1rem;
    background: #0C1A3D;
    padding: 2rem 1rem;
}

.footer-widget-col {
    flex: 1 1 22%;
    min-width: 200px;
    color: white;
}
.footer-widget-col h4,
.footer-widget-col p,
.footer-widget-col a {
    color: white;
}
.footer-widget-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget-col li {
    margin-bottom: 0.4rem;
}

.footer-copyright {
    background: #F7F7F7;
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    header {
    padding: 25px 10px;

    padding: 25px 10px;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .header-widget {
        text-align: center;
    }

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

    nav.open ul {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li.show-submenu ul {
        display: flex;
        flex-direction: column;
    }

    .footer-widgets {
        flex-direction: column;
    }

    .footer-widget-col {
        width: 100%;
    }

    #mobile-menu-toggle {
        display: block;
        margin-left: auto;
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .site-container {
        border: none;
        margin: 0;
    }
}

@media (max-width: 768px) {
    header {
        text-align: center;
    }
    .site-logo {
        margin: 0 auto;
        text-align: center;
    }
    #mobile-menu-toggle {
        margin: 0 auto 1rem;
        display: block;
    }
}
