/* Consistent program image size for business and AI-IT pages */
.program-image {
    max-width: 420px;
    max-height: 420px;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
/*
* Imphumelelo Yensha Foundation Custom Styles
* Inspired by Eswatec/Squarespace 7.1 modern aesthetic
*/

/* --- 1. Global Reset & Fonts --- */

:root {
    --bs-primary: #28a745; /* Green (Logo color) */
    --bs-secondary: #4a4e69; /* Dark Gray/Slate */
    --bs-success: #28a745; /* Green */
    --bs-info: #17a2b8; /* Cyan */
    --bs-warning: #ffc107; /* Gold/Yellow Accent */
    --bs-danger: #dc3545; /* Red */
    --bs-light: #f8f9fa;
    --bs-dark: #212529;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'PT Serif', serif;
    --font-sansation: 'Sansation', sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background-color: var(--bs-light);
    color: var(--bs-dark);
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: var(--font-primary);
    font-weight: 700;
}

/* --- 2. Utility & Component Styles --- */

.section-title {
    font-family: var(--font-sansation);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--bs-warning);
    margin: 0.5rem auto 0;
}

.text-primary { color: var(--bs-primary) !important; }
.text-warning { color: var(--bs-warning) !important; }

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-warning {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: var(--bs-dark);
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-warning:hover {
    background-color: #ffaa00;
    border-color: #ffaa00;
}

/* Hover Effect for Cards/Elements */

.yellow-circle-animate {
    display: inline-block;
    position: relative;
    z-index: 1;
    padding: 0.2em 0.8em;
}
.yellow-circle-animate .circle-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 1.5em;
    border-radius: 50%;
    border: 3px solid var(--bs-warning);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    animation: yellowCircleAppear 1.2s ease-in-out infinite;
}

@keyframes yellowCircleAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* --- 3. Header and Navigation Styles --- */

/* Updated: Change the default dark background to pure black */
.navbar-dark {
    background-color: #000000 !important; /* Pure Black Background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex; /* Makes logo and stacked-text side-by-side */
    align-items: center;
    max-width: 350px;
    padding-top: 5px; 
    padding-bottom: 5px;
}

.logo {
    width: 90px; /* Even larger logo */
    height: 90px;
    max-height: 90px;
    object-fit: contain;
    background-color: black; /* Blends the logo image with the header */
    border-radius: 4px;
    transition: width 0.2s, height 0.2s;
}

/* Updated: This is the crucial part that stacks the Name and Tagline */
.stacked-text {
    display: flex;
    flex-direction: column; /* Stacks children vertically */
    justify-content: center;
    margin-left: 10px; /* Space between logo and text */
}

.foundation-name {
    font-family: var(--font-sansation);
    font-size: 1.2rem; /* Larger font for main name */
    font-weight: 700;
    line-height: 1.2;
    color: white; /* Name visible on black background */
    margin-bottom: 0; /* Important: Removes space between name and tagline */
}

.tagline {
    font-family: var(--font-sansation);
    font-weight: 400;
    font-size: 0.8rem; /* Smaller font for tagline */
    line-height: 1;
    color: var(--bs-warning); /* Keep the warning color */
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--bs-warning) !important;
    background-color: transparent !important;
}

/* Custom styling for the Donate button in the Nav */
.custom-donate-btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* --- 4. Hero Section Styles --- */

#hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white; 
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

#hero > .container {
    z-index: 2; 
}

/* Specific Hero Overrides */
.home-hero {
    background-position: center;
    background-attachment: fixed; 
}

.business-hero, .ai-it-hero, .about-hero, .blog-hero, .contact-hero, .donate-hero {
    min-height: 40vh; 
    background-position: center top;
}

/* --- 5. Content Sections --- */

/* Feature Boxes/Cards */
.feature-box {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--bs-warning);
    color: var(--bs-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Partner Logos */
.partners-logo-container img.partner-logo {
    max-height: 60px;
    max-width: 150px;
    filter: grayscale(100%);
    transition: filter 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
}

.partners-logo-container img.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Blog Styles */
.blog-image {
    height: 250px;
    object-fit: cover;
}

/* Contact Map */
.map-container iframe {
    width: 100%;
    height: 450px;
    min-height: 300px;
    border: none;
}

/* --- 6. Footer Styles --- */

footer {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

/* Mailchimp Form in Footer */
#mc_embed_signup .mc-field-group label {
    color: rgba(255, 255, 255, 0.7);
}
#mc_embed_signup input.email {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #333;
    color: white;
}
#mc_embed_signup .button.btn-warning {
    color: var(--bs-dark) !important;
}

/* Style for Partner Section in Footer */
.partners-section {
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991.98px) {
    .partners-section {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 2rem;
        margin-top: 2rem;
    }
}