/* Footer Layout and Icons Styles */

/* Sticky Footer Layout using Flexbox */
/* Ensures footer sticks to bottom of viewport when content is short, */
/* and flows naturally after content when content is long */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

footer {
    background-color: #181818;
    color: #fff;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    margin-top: auto; /* Push footer to bottom when content is short */
}

/* Footer Container - Max width container with padding */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Footer Top - Flex layout for left and links sections */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Footer Left - Column layout for logo, name, and social links */
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Footer Logo - Sized image with margins */
.footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 10px;
    margin-left: -20px;
}

/* Organization Name - Small text with color and margins */
.org-name {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Social Links - Horizontal flex for social icons */
.social-links {
    display: flex;
    gap: 10px;
}

/* Social Icon - White icons with hover color change */
.social-icon {
    color: #ffffff;
    font-size: 22px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #00b4ff;
}

/* Footer Links - Flex layout for link columns */
.footer-links {
    display: flex;
    gap: 50px;
}

/* Footer Column - Column layout for each link group */
.footer-column h3 {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #00b4ff;
    text-decoration: underline;
}

/* Footer Bottom - Darker background with centered copyright text */
.footer-bottom {
    background-color: #222222;
    padding: 10px 0;
    text-align: center;
    width: 100%;
}

.footer-bottom p {
    font-size: 16px;
    color: #aaaaaa;
    margin: 0;
}

/* About section */
.about {
    background-color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.about-container {
    max-width: 70%;
    margin: 0 auto;
}

.about-title {
    margin-bottom: 2rem;
}

.about-title-main {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 0.5rem;
}

.about-title-sub {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.about p {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about p:first-child {
    text-indent: 40px;
}

.about p:last-child {
    margin-bottom: 2rem;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-container {
        text-align: left;
        padding: 10px 20px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-left {
        align-items: center;
    }

    .footer-logo img {
        margin: 0 0 12px 0;
        align-self: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .footer-column {
        width: 100%;
        text-align: left;
        margin-bottom: 16px;
    }

    .footer-column h3 {
        text-align: left;
    }

    .footer-column ul li a {
        display: block;
        text-align: left;
        padding-left: 0;
    }

    .social-links {
        justify-content: flex-start;
        gap: 12px;
    }

    .footer-bottom {
        text-align: left;
        padding: 10px 20px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .partner-logo {
        max-width: 120px;
        max-height: 80px;
    }

    .about {
        padding: 40px 20px;
    }

    .about-title-main {
        font-size: 2.5rem;
    }

    .about-title-sub {
        font-size: 1.5rem;
    }

    .about p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 10px 20px;
    }

    .footer-bottom {
        padding: 10px 20px;
    }

    .partners-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .partner-logo {
        max-width: 100px;
        max-height: 60px;
    }

    .about {
        padding: 40px 20px;
    }

    .about-title-main {
        font-size: 2rem;
    }

    .about-title-sub {
        font-size: 1.2rem;
    }

    .about p {
        font-size: 14px;
    }
}
