/* ==========================================================================
   Wings of Hope - Main Stylesheet
   ========================================================================== */

/* --- Base Typography & Reset --- */
html, body {
    background-color: #050505 !important;
    color: #ffffff !important;
    font-family: var(--font-secondary), 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.25rem !important; }
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-gold);
}

.text-gold {
    color: var(--primary-gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn .arrow {
    margin-left: 8px;
    font-size: 1.1em;
}

.btn-primary-gold {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
    border: 2px solid var(--primary-gold);
}

.btn-primary-gold:hover {
    background-color: transparent;
    color: var(--primary-gold);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
}

/* --- Header --- */
.site-header {
    position: relative;
    width: 100%;
    z-index: 100;
    padding: 12px 0;
    background-color: #050505 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

body.admin-bar .site-header {
    /* No top adjustment needed for relative positioning */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.site-branding {
    flex-shrink: 0;
}

.custom-logo,
.custom-logo-img {
    height: 80px;
    max-height: 80px;
    max-width: 260px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.custom-logo-img:hover {
    transform: scale(1.03);
}

.footer-logo {
    height: 65px;
    margin-bottom: 15px;
}

.site-title a {
    white-space: nowrap;
}

.main-navigation {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation a {
    font-family: var(--font-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
}

/* --- Dropdown Sub-menu Styling --- */
.main-navigation ul ul,
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0c0c0c;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 210px;
    display: none !important;
    flex-direction: column !important;
    gap: 0 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
    z-index: 999;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li:hover > .sub-menu {
    display: flex !important;
}

.main-navigation ul ul li,
.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation ul ul a,
.main-navigation .sub-menu a {
    padding: 10px 18px !important;
    font-size: 0.82rem !important;
    color: #cccccc;
    display: block;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.main-navigation ul ul a:hover,
.main-navigation .sub-menu a:hover {
    color: var(--primary-gold) !important;
    background-color: rgba(212, 175, 55, 0.08);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* --- Mobile Menu Styles --- */
@media (max-width: 992px) {
    .header-container {
        padding: 0 20px;
    }
    
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
    }

    .main-navigation ul.toggled {
        display: flex !important;
    }

    .header-actions {
        display: none; /* Hide donate button in header on very small screens, or we can keep it if there's room */
    }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    margin-top: 40px; /* Space between header and hero */
    padding-top: 100px !important; /* Space inside hero */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    margin: 0; /* Align left within container */
}

.hero-tagline {
    color: var(--primary-gold);
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* --- Section Titles & Dividers --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.section-divider .line {
    height: 1px;
    background-color: #333;
    flex-grow: 1;
    max-width: 50px;
}

.section-divider .text {
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

/* --- Impact Section --- */
.impact-section {
    padding: 60px 0;
    background-color: var(--darker-bg);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.impact-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-gold);
    padding: 40px 20px;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    background-color: var(--hover-bg);
}

.impact-icon {
    height: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.impact-icon img {
    height: 100%;
    object-fit: contain;
}

.impact-number {
    color: var(--primary-gold);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.impact-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

/* --- Split Layouts (About & Founder) --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 80px 20px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
}

.image-wrapper {
    position: relative;
}

.image-wrapper.border-gold {
    border: 2px solid var(--primary-gold);
    padding: 10px; /* Creates the gap between border and image */
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.founder-attributes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.attribute {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.attribute img {
    width: 24px;
    height: 24px;
}

.mt-4 {
    margin-top: 30px;
}

/* --- Programs Section --- */
.programs-section {
    padding: 80px 0;
    background-color: var(--darker-bg);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-gold);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.program-card:hover {
    background-color: var(--hover-bg);
}

.program-image {
    position: relative;
    padding: 5px;
    border-bottom: 2px solid var(--primary-gold);
}

.program-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.program-icon {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--dark-bg);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.program-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.program-content {
    padding: 40px 30px 30px;
    text-align: center;
}

.program-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.program-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.read-more-link {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more-link .arrow {
    margin-left: 5px;
}

/* --- Quote Banner Section --- */
.quote-banner-section {
    position: relative;
    padding: 100px 20px;
    text-align: center;
}

.banner-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85); /* Dark overlay */
    z-index: 2;
}

.quote-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.quote-mark {
    font-family: var(--font-primary);
    color: var(--primary-gold);
    font-size: 6rem;
    line-height: 1;
    display: block;
    margin-bottom: -30px;
}

.quote-content h2 {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.quote-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* --- Partnership CTA Section --- */
.partnership-cta-section,
.about-page-cta,
.programs-join-section-v2,
.feeding-mini-cta,
.feeding-testimonial-banner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 0 !important;
}

.partnership-cta-section .container,
.about-page-cta .container,
.programs-join-section-v2 .container,
.feeding-mini-cta .container,
.feeding-testimonial-banner .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cta-banner,
.join-banner-v2,
.join-banner-testimonial,
.mini-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--darker-bg) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    padding: 40px 8% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.cta-image {
    flex: 0 0 200px;
    width: 200px;
    height: 140px;
    border-radius: 8px !important;
    overflow: hidden;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px !important;
    display: block;
}

.cta-text {
    flex: 1;
    padding: 0 40px;
}

.cta-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-text p {
    color: var(--text-gray);
    margin: 0;
}

.cta-button {
    flex: 0 0 auto;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--header-footer-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-gold);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 40px;
    border-bottom: 1px solid #222;
}

.footer-mission {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 20px 0;
}

.social-links a {
    display: inline-block;
    color: var(--primary-gold);
    margin-right: 15px;
    font-weight: bold;
}

.widget-title {
    color: var(--primary-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   Contact Form Dark Theme & Dropdown Fixes
   ========================================================================== */
.contact-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background-color: #0d0d0d !important;
    color: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 6px !important;
    padding: 14px 16px 14px 46px !important;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.contact-form select,
.contact-form .custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 14px !important;
    cursor: pointer;
}

.contact-form select option,
.contact-form .custom-select option {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    padding: 12px !important;
    font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25) !important;
    outline: none !important;
}

.contact-form .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-gold) !important;
    font-size: 14px;
    pointer-events: none;
    z-index: 10;
}

.contact-form .textarea-icon {
    top: 20px;
    transform: none;
}

.footer-links ul ul,
.footer-links .sub-menu {
    display: none !important;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.contact-list .icon {
    color: var(--primary-gold);
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px 0;
    font-size: 0.8rem;
    color: #666;
}

.site-info a {
    color: #666;
}

.site-info a:hover {
    color: var(--primary-gold);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .impact-grid, .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    .main-navigation ul {
        display: none; /* Add mobile menu logic later */
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--primary-gold);
        font-size: 1.5rem;
    }
    .hero-section {
        padding-top: 180px !important;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .split-layout, .split-layout.reverse {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }
    .founder-attributes {
        text-align: left;
    }
    .impact-grid, .programs-grid, .footer-widgets {
        grid-template-columns: 1fr;
    }
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .cta-text {
        padding: 0;
    }
}

/* ==========================================================================
   About Page Styles
   ========================================================================== */

/* --- About Hero Section --- */
.about-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 40%, rgba(10,10,10,0.3) 100%);
    z-index: 2;
}

.hero-divider {
    width: 50px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 25px 0;
}

/* --- Our Story Section --- */
.our-story-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.story-columns {
    display: flex;
    gap: 50px;
    margin-top: 30px;
}

.story-column-left,
.story-column-right {
    flex: 1;
}

.story-column-left .section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.story-column-left p,
.story-column-right p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.story-column-divider {
    width: 1px;
    background-color: rgba(212, 175, 55, 0.3); /* Faded gold */
    margin: 10px 0;
}

/* --- Values Grid Section --- */
.values-grid-section {
    padding: 80px 0;
    background-color: var(--darker-bg);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.values-grid {
    display: flex;
    justify-content: space-between;
}

.value-card {
    flex: 1;
    position: relative;
    padding: 0 40px;
    text-align: center;
    overflow: hidden; /* To contain faded icon */
}

.value-icon {
    height: 50px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.value-icon img {
    height: 100%;
    object-fit: contain;
}

.value-card h3 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.value-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.core-values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.core-values-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.core-values-list .check {
    font-weight: bold;
}

.bg-icon-faded {
    position: absolute;
    bottom: -20px;
    right: 20px;
    opacity: 0.05; /* Very faded */
    z-index: 1;
    pointer-events: none;
}

.bg-icon-faded img {
    width: 150px;
    height: auto;
}

.value-divider {
    width: 1px;
    background-color: rgba(212, 175, 55, 0.2);
    margin: 20px 0;
}

/* --- Founder Section (Extended) --- */
.founder-section.extended .split-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.founder-attributes-row {
    display: flex;
    justify-content: space-between;
    margin-top: -30px;
    padding-bottom: 80px;
    border-bottom: 1px solid #222;
}

.founder-attributes-row .attribute {
    flex-direction: column;
    text-align: center;
    gap: 15px;
}

.founder-attributes-row .attribute img {
    width: 40px;
    height: 40px;
}

.founder-attributes-row .attribute span {
    font-size: 1rem;
}

/* --- About Page CTA --- */
.about-page-cta .cta-banner.border-gold-thin {
    border: 1px solid rgba(212, 175, 55, 0.5);
}

/* --- About Responsive --- */
@media (max-width: 992px) {
    .story-columns {
        flex-direction: column;
        gap: 30px;
    }
    .story-column-divider {
        width: 100%;
        height: 1px;
        margin: 20px 0;
    }
    .values-grid {
        flex-direction: column;
        gap: 40px;
    }
    .value-divider {
        width: 100%;
        height: 1px;
        margin: 20px 0;
    }
    .founder-attributes-row {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
    .founder-attributes-row .attribute {
        flex: 0 0 40%;
    }
}

/* ==========================================================================
   Programs Page Styles (V2)
   ========================================================================== */

/* --- Programs Hero Section (V2) --- */
.programs-hero-v2 {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background-color: var(--dark-bg);
}

.hero-curve-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.hero-curve-divider svg {
    display: block;
    width: 100%;
    height: 60px; /* Adjust curve height */
}

/* --- Program Split Sections --- */
.bg-dark { background-color: var(--dark-bg); }
.bg-darker { background-color: var(--darker-bg); }
.pl-4 { padding-left: 40px; }

.program-split-section {
    padding: 100px 0;
}

.section-label-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-label-box .number {
    display: inline-block;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: bold;
}

.section-label-box .title {
    color: var(--primary-gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.program-text-content p {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.program-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px 15px;
    border-radius: 4px;
    background: rgba(0,0,0,0.2);
}

.feature-item img {
    height: 40px;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* --- Program Images & Overlays --- */
.program-image-wrapper {
    position: relative;
    width: 100%;
}

.program-image-wrapper > img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.program-image-overlay {
    position: absolute;
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
}

.program-image-overlay.bottom-left {
    bottom: -30px;
    left: -40px;
    width: 80%;
}

.program-image-overlay.stretch {
    width: 90%;
}

.program-image-overlay h4 {
    font-family: var(--font-secondary);
    color: var(--primary-gold);
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.overlay-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-checklist li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.watermark-logo {
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0.1;
    width: 150px;
}

.watermark-logo img {
    width: 100%;
    height: auto;
}

/* --- Programs Join Banner (V2) --- */
.programs-join-section-v2 {
    padding: 80px 0;
}

.join-banner-v2 {
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    border-radius: 8px;
    overflow: hidden;
}

.join-image-col {
    flex: 0 0 25%;
}

.join-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
}

.join-quote-col {
    flex: 0 0 35%;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.join-quote-col .quote-mark {
    font-family: var(--font-primary);
    color: var(--primary-gold);
    font-size: 4rem;
    line-height: 0.6;
    margin-top: 10px;
}

.join-quote-col h3 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.4;
}

.join-divider {
    width: 1px;
    height: 100px;
    background-color: rgba(255,255,255,0.1);
}

.join-action-col {
    flex: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-icon {
    width: 40px;
    height: 40px;
}

.action-top p {
    font-size: 0.9rem;
    margin: 0;
}

/* --- Responsive Adjustments for V2 --- */
@media (max-width: 1024px) {
    .join-banner-v2 {
        flex-direction: column;
    }
    .join-image-col {
        width: 100%;
    }
    .join-divider {
        width: 100%;
        height: 1px;
    }
    .program-image-overlay.bottom-left {
        left: 0;
        bottom: 0;
        width: 100%;
        position: relative;
        box-shadow: none;
        border-radius: 0;
    }
    .pl-4 {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .program-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Impact Page Styles
   ========================================================================== */

/* --- Impact Hero & Stats Banner --- */
.impact-hero-section {
    position: relative;
    padding-bottom: 150px; /* Space for overlapping stats */
}

.impact-hero-container {
    display: flex;
    min-height: 60vh;
}

.impact-hero-text {
    flex: 1;
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.impact-hero-text .section-subtitle {
    margin-bottom: 20px;
}

.impact-hero-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.relative { position: relative; }
.z-10 { z-index: 10; }
.mt-10 { margin-top: 40px; }
.pt-20 { padding-top: 80px; }
.center-div { margin-left: auto; margin-right: auto; }

.impact-stats-banner {
    display: flex;
    background-color: var(--darker-bg);
    border-radius: 8px;
    margin-top: -100px; /* Overlap effect */
    padding: 40px 20px;
    gap: 20px;
}

.stat-col {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 0 10px;
}

.stat-col:last-child {
    border-right: none;
}

.stat-icon {
    height: 40px;
    margin-bottom: 15px;
}

.stat-col h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-col h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.stat-col p {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.4;
    margin: 0;
}

/* --- Where Your Support Makes an Impact --- */
.impact-where-section {
    padding-bottom: 80px;
}

.impact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.impact-card {
    background-color: var(--dark-bg);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 220px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 30px 25px;
    flex-grow: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-header img {
    height: 32px;
}

.card-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.card-body > p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.impact-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.impact-checklist li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.card-footer-stats {
    display: flex;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-stat {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
}

.footer-stat:last-child {
    border-right: none;
}

.footer-stat .text-gold {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-stat small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
}

/* --- Stories of Change Section --- */
.stories-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.stories-layout {
    display: flex;
    gap: 40px;
}

.stories-header {
    flex: 0 0 25%;
}

.stories-header .section-subtitle {
    margin-bottom: 15px;
}

.stories-header .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.stories-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.stories-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.story-card {
    background-color: var(--darker-bg);
    border-radius: 6px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.story-img {
    width: 40%;
    object-fit: cover;
}

.story-content {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-content .quote-mark {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    line-height: 0.5;
    margin-bottom: 10px;
    display: block;
}

.story-quote {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

.story-author {
    display: flex;
    flex-direction: column;
}

.story-author .text-gold {
    font-size: 0.8rem;
    font-weight: bold;
}

.author-role {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* --- Impact Thank You Banner --- */
.impact-thankyou-section {
    padding: 0 0 80px;
}

.impact-thankyou-banner {
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    border-radius: 8px;
    padding: 40px 60px;
}

.banner-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
}

.banner-left img {
    width: 60px;
}

.banner-left h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.banner-left p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
}

.banner-divider {
    width: 1px;
    height: 80px;
    background-color: rgba(255,255,255,0.1);
    margin: 0 40px;
}

.banner-right {
    flex: 0 0 30%;
    text-align: center;
}

.banner-right h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.banner-right p {
    margin: 0;
    color: var(--text-gray);
    font-size: 1rem;
}

/* --- Impact Responsive --- */
@media (max-width: 1200px) {
    .impact-stats-banner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .stat-col {
        flex: 0 0 30%;
        margin-bottom: 20px;
        border-right: none;
    }
    .stories-layout {
        flex-direction: column;
    }
    .stories-header {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .impact-hero-container {
        flex-direction: column;
    }
    .impact-hero-text {
        padding: 60px 5%;
        text-align: center;
    }
    .impact-hero-image {
        min-height: 400px;
        clip-path: none;
    }
    .impact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .impact-thankyou-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .banner-left {
        flex-direction: column;
    }
    .banner-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .impact-cards-grid, .stories-grid {
        grid-template-columns: 1fr;
    }
    .stat-col {
        flex: 0 0 100%;
    }
}

/* ==========================================================================
   Partnerships Page Styles
   ========================================================================== */

/* --- Partnerships Hero Section --- */
.partnerships-hero-section {
    position: relative;
}

/* Reusing .impact-hero-container, .impact-hero-text, .impact-hero-image from Impact page */

.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.pb-20 { padding-bottom: 80px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-10 { padding: 40px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.h-6 { height: 24px; }
.h-8 { height: 32px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.w-20 { width: 80px; }
.h-20 { height: 80px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }
.tracking-widest { letter-spacing: 0.15em; }
.rounded-md { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }
.max-w-\[200px\] { max-width: 200px; }
.min-h-\[120px\] { min-height: 120px; }
.scale-105 { transform: scale(1.05); }
.absolute { position: absolute; }
.top-0 { top: 0; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.bg-gold { background-color: var(--primary-gold); }
.text-dark { color: var(--dark-bg); }

/* --- Grids --- */
.partner-reasons-grid,
.partner-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

/* --- Cards --- */
.reason-card {
    background-color: transparent;
    padding: 30px 20px;
    text-align: center;
    border-radius: 6px;
}

.reason-icon {
    height: 48px;
    margin-bottom: 20px;
}

.type-card {
    background-color: transparent;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.type-card .impact-checklist {
    margin-top: auto;
}

.level-card {
    background-color: var(--darker-bg);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.border-gold-thick {
    border: 2px solid var(--primary-gold);
}

.level-card.scale-105 {
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* --- Steps Section --- */
.steps-flex-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.partner-step {
    flex: 1;
}

.step-connector {
    flex: 0 0 auto;
    font-size: 24px;
    padding-top: 30px;
    opacity: 0.5;
}

/* --- Partnerships Responsive --- */
@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:pl-10 { padding-left: 40px; }
    .md\:justify-start { justify-content: flex-start; }
}

@media (max-width: 1200px) {
    .partner-reasons-grid,
    .partner-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .partner-levels-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .level-card.scale-105 {
        transform: none;
    }
    .steps-flex-row {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .step-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .partner-reasons-grid,
    .partner-types-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Gallery Page Styles
   ========================================================================== */

/* --- Gallery Filters --- */
.gallery-filters {
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-gray);
    padding: 10px 20px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-gold);
    color: #fff;
}

.filter-btn.active {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--dark-bg);
    font-weight: bold;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    /* Optional: Aspect ratio hack for consistent squares if they aren't naturally consistent */
    aspect-ratio: 3 / 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Gallery Video & Lightbox Extensions --- */
.gallery-item {
    cursor: pointer;
}

.gallery-item .video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-item:hover .video-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.play-icon-btn {
    width: 54px;
    height: 54px;
    background: rgba(212, 175, 55, 0.9);
    color: #0b0f19;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    padding-left: 3px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-item:hover .play-icon-btn {
    transform: scale(1.15);
    background: #d4af37;
    color: #000;
}

.gallery-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: #d4af37;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(11, 15, 25, 0.95));
    padding: 16px 12px 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* --- Lightbox Modal Popup --- */
.gallery-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: #111625;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.gallery-modal-backdrop.active .gallery-modal-container {
    transform: scale(1);
}

.gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.gallery-modal-close:hover {
    background: #d4af37;
    color: #0b0f19;
}

.gallery-modal-media-wrapper {
    width: 100%;
    max-height: 70vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-modal-media-wrapper img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.gallery-modal-media-wrapper iframe {
    width: 100%;
    height: 480px;
    border: none;
}

.gallery-modal-body {
    padding: 16px 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.gallery-modal-title {
    color: #d4af37;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.gallery-modal-desc {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

/* --- Utilities used on Gallery Page --- */
.w-1\/4 { width: 25%; }
.w-2\/5 { width: 40%; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.my-8 { margin-top: 32px; margin-bottom: 32px; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.text-4xl { font-size: 2.25rem; }
.block { display: block; }
.leading-none { line-height: 1; }
.flex-row { flex-direction: row; }
.items-stretch { align-items: stretch; }
.object-cover { object-fit: cover; }
.h-full { height: 100%; }
.border-r-gold { border-right: 1px solid rgba(212, 175, 55, 0.2); }

/* --- Responsive Adjustments for Gallery --- */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .join-banner-v2.flex-row {
        flex-direction: column;
    }
    .w-1\/4, .w-2\/5 {
        width: 100%;
    }
    .px-8 { padding-left: 20px; padding-right: 20px; }
    .my-8 { margin: 0; width: 100%; height: 1px; }
    .border-r-gold { border-right: none; border-bottom: 1px solid rgba(212, 175, 55, 0.2); padding-bottom: 20px; margin-bottom: 20px; }
    .stat-col:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

/* --- Grid Structure --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* --- Contact Boxes --- */
.contact-box {
    background-color: var(--darker-bg);
    border-radius: 8px;
}

/* --- Form Styles --- */
.contact-form .form-row {
    flex-wrap: wrap;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 15px 12px 40px;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.3s;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.contact-form .form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23999" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.contact-form .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    opacity: 0.5;
    pointer-events: none;
}

.contact-form .textarea-icon {
    top: 20px;
    transform: none;
}

/* --- Social Icons --- */
.hover-bg-gold:hover {
    background-color: var(--primary-gold);
}
.hover-bg-gold:hover img {
    filter: brightness(0) invert(1);
}

/* --- FAQ Accordion --- */
.faq-question {
    transition: background-color 0.3s;
}
.faq-question:hover {
    background-color: rgba(255,255,255,0.02);
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.25rem;
    line-height: 1;
}

/* --- Map Container --- */
.map-container {
    background-color: #111;
}

/* --- Helper Utilities --- */
.bg-transparent { background-color: transparent !important; }
.overflow-hidden { overflow: hidden; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); }
.z-10 { z-index: 10; }
.flex-col { flex-direction: column; }
.inline-block { display: inline-block; }

/* --- Responsive Adjustments for Contact --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==========================================================================
   Student Sponsorship Page Styles
   ========================================================================== */

/* --- What Sponsorship Covers --- */
.covers-image-wrapper {
    position: relative;
    z-index: 1;
}

.covers-stats-bar {
    position: relative;
    z-index: 2;
    margin-top: -5px; /* Overlap slightly if needed, or just abut */
}

/* --- Meet Chinedu Story Card --- */
.story-card-wide {
    min-height: 250px;
}

.font-serif {
    font-family: Georgia, 'Times New Roman', Times, serif;
}
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.font-medium { font-weight: 500; }
.leading-relaxed { line-height: 1.6; }
.text-5xl { font-size: 3rem; }
.mt-\[-10px\] { margin-top: -10px; }
.h-\[350px\] { height: 350px; }

/* --- Sponsorship Plans --- */
.border-gray-thin {
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.border-r-gray {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ribbon-popular {
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.plan-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.text-\[10px\] { font-size: 10px; }
.text-\[8px\] { font-size: 8px; }
.w-\[150px\] { width: 150px; }
.translate-x-\[30\%\] { transform: translateX(30%); }
.translate-y-\[20\%\] { transform: translateY(20%); }
.rotate-45 { transform: rotate(45deg); }
.transform { transform: var(--tw-transform); }
.ribbon-popular {
    --tw-transform: translateX(30%) translateY(20%) rotate(45deg);
}

/* --- Responsive Adjustments for Sponsorship --- */
@media (max-width: 992px) {
    .covers-grid {
        flex-direction: column;
    }
    .covers-text-col, .covers-image-col {
        width: 100%;
        padding-right: 0;
    }
    .story-card-wide {
        flex-direction: column;
    }
    .story-img-col, .story-bio-col, .story-quote-col {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
    .story-quote-col { border-bottom: none; }
    .plans-container {
        flex-direction: column;
    }
    .plans-intro {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 30px;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .covers-stats-bar {
        flex-direction: column;
        gap: 20px;
    }
    .covers-stats-bar .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding-bottom: 15px;
    }
    .covers-stats-bar .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ==========================================================================
   School Feeding Page Styles
   ========================================================================== */

/* --- Impact So Far --- */
.impact-so-far-box {
    min-height: 250px;
}
.leading-tight { line-height: 1.2; }

/* --- Action Cards --- */
.action-card-horizontal {
    min-height: 200px;
}
.action-img {
    position: relative;
}
.action-img::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0) 50%, rgba(17,17,17,1) 100%);
}

/* --- Mini CTA --- */
.mini-cta-box {
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
}
.whitespace-nowrap { white-space: nowrap; }

/* --- Testimonial Banner --- */
.join-banner-testimonial {
    min-height: 250px;
}
.object-bottom { object-position: bottom; }

/* --- Responsive Adjustments for Feeding --- */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:w-\[45\%\] { width: 45%; }
    .md\:ml-auto { margin-left: auto; }
}

@media (max-width: 992px) {
    .impact-so-far-box {
        flex-direction: column;
    }
    .impact-img-col {
        width: 100%;
        height: 250px;
    }
    .stats-row {
        flex-wrap: wrap;
        gap: 20px;
    }
    .stats-row .stat-item {
        flex: 0 0 calc(50% - 10px);
        border-right: none;
    }
    .action-cards-grid {
        grid-template-columns: 1fr;
    }
    .action-card-horizontal {
        flex-direction: row; /* keep horizontal if possible, or stack */
    }
    .mini-cta-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .action-card-horizontal {
        flex-direction: column;
    }
    .action-img {
        width: 100%;
        height: 200px;
    }
    .action-img::after {
        background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(17,17,17,1) 100%);
    }
    .stats-row .stat-item {
        flex: 0 0 100%;
    }
    .join-banner-testimonial {
        flex-direction: column;
    }
    .testimonial-image-center {
        position: relative;
        transform: none;
        left: 0;
        bottom: 0;
        height: 250px;
        display: block !important;
        margin-top: -30px;
    }
    .testimonial-image-center img {
        height: 100%;
        width: 100%;
        object-fit: contain;
    }
}

/* ==========================================================================
   Community Outreach Page Styles
   ========================================================================== */

/* --- 5-Column Grid --- */
.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* --- Outreach Action Gallery --- */
.custom-scrollbar::-webkit-scrollbar {
    height: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.8);
}

/* --- Text / Font Helpers --- */
.text-\[13px\] { font-size: 13px; }
.text-\[11px\] { font-size: 11px; }

/* --- Mask Image Edges (Outreach Testimonial) --- */
.mask-image-edges {
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.z-20 { z-index: 20; }
.opacity-70 { opacity: 0.7; }
.items-end { align-items: flex-end; }

/* --- Responsive Adjustments for Outreach --- */
@media (max-width: 1200px) {
    .grid-cols-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .grid-cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .outreach-impact .grid-cols-5 .text-center {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
    .outreach-impact .grid-cols-5 .text-center:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .grid-cols-5, .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Image Placeholders (for sections awaiting real photos)
   ========================================================================== */
.image-placeholder-wrapper {
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(212, 175, 55, 0.5);
    text-align: center;
    padding: 20px;
}

.image-placeholder p {
    font-size: 0.75rem;
    margin: 0;
    color: rgba(212, 175, 55, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   Font Awesome Icon Styles
   ========================================================================== */
.impact-icon i,
.impact-icon svg {
    font-size: 2rem;
    color: var(--primary-gold);
}

.attribute i {
    font-size: 1rem;
    color: var(--primary-gold);
    width: 20px;
    text-align: center;
}

.reason-card i,
.reason-icon i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    display: block;
}

.program-icon i {
    font-size: 1.2rem;
    color: var(--primary-gold);
}

/* ==========================================================================
   Global Smooth Transitions
   ========================================================================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.program-card:hover img,
.reason-card:hover img {
    transform: scale(1.03);
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.program-card,
.reason-card,
.impact-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card:hover,
.reason-card:hover,
.impact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Scroll-triggered Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays for grid items */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ==========================================================================
   Smooth Hero Section Enhancements
   ========================================================================== */
.hero-title {
    animation: heroSlideUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.hero-tagline {
    animation: heroSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.hero-description {
    animation: heroSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
}

.hero-actions {
    animation: heroSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Smooth Page Load
   ========================================================================== */
.site-main {
    animation: pageFadeIn 0.5s ease forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Gold shimmer pulse on numbers */
.impact-number {
    animation: goldPulse 3s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% { color: var(--primary-gold); }
    50% { color: #f0d060; text-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
}

/* ==========================================================================
   Header scroll effect
   ========================================================================== */
.site-header.scrolled {
    background: rgba(5, 5, 5, 0.97) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   Fluid Section Spacing
   ========================================================================== */
section {
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(40px, 6vw, 80px);
}

/* Homepage & Impact page hero padding */
.hero-section,
.impact-hero-section {
    margin-top: 0 !important;
    padding-top: 90px !important;
    padding-bottom: 60px !important;
}

/* All other pages hero padding (About, Programs, Sponsorship, Outreach, Contact, Gallery, Partnerships) */
.about-hero-section,
.programs-hero-v2,
.sponsorship-hero-section,
.outreach-hero-section,
.contact-hero-section,
.gallery-hero-section,
.partnerships-hero-section {
    margin-top: 0 !important;
    padding-top: 130px !important;
    padding-bottom: 70px !important;
}

.partnerships-hero-section .impact-hero-container,
.partnerships-hero-section .impact-hero-text {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ==========================================================================
   Sponsorship Page High-Quality Layout Styles
   ========================================================================== */
.sponsorship-covers-section .covers-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.sponsorship-covers-section .covers-text-col {
    flex: 1 1 50%;
}

.sponsorship-covers-section .covers-image-col {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
}

.covers-image-wrapper {
    width: 100%;
    height: 300px;
}

.covers-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    background: #0d0d0d;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.story-card-wide {
    display: flex;
    align-items: center;
    background: #0d0d0d;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    overflow: hidden;
}

.story-img-col {
    flex: 0 0 260px;
    height: 240px;
}

.story-bio-col {
    flex: 1 1 45%;
    padding: 30px;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

.story-quote-col {
    flex: 1 1 35%;
    padding: 30px;
}

.plans-container {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #0d0d0d;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 40px;
}

.plans-intro {
    flex: 0 0 240px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
}

/* ==========================================================================
   Mobile Fluid Improvements
   ========================================================================== */
@media (max-width: 768px) {
    .hero-section,
    .about-hero-section,
    .partnerships-hero-section {
        margin-top: 0 !important;
        padding-top: 30px !important;
    }

    .container {
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .split-layout {
        flex-direction: column !important;
        gap: 30px;
    }

    .cta-banner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        padding: 35px 20px !important;
    }

    .cta-image {
        flex: none !important;
        width: 100% !important;
        max-width: 260px !important;
        height: 150px !important;
        margin: 0 auto !important;
        border-radius: 8px !important;
    }

    .programs-grid {
        grid-template-columns: 1fr !important;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-widgets {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .site-info {
        padding-top: 24px !important;
        padding-bottom: 28px !important;
    }

    .footer-bottom-flex {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .impact-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mini Share Modal Overlay */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.share-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* High-Contrast Luxury Story Tag Badges */
.story-tag-badge {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    background: #0a0a0a !important;
    color: #ffd700 !important;
    border: 1px solid #d4af37 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.95) !important;
    z-index: 10 !important;
}

/* =========================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS OVERRIDES (< 768px)
   ========================================================= */
@media (max-width: 768px) {
    /* Container Paddings */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Inner Page Hero Sections */
    .programs-hero-v2, .gallery-hero-section, .contact-hero-section {
        padding-top: 110px !important;
        padding-bottom: 50px !important;
    }
    
    .hero-title, h1.hero-title {
        font-size: 2.2rem !important;
        line-height: 1.25 !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Split Layouts (About, Programs, Sponsorship) */
    .split-layout, .split-layout.reverse {
        flex-direction: column !important;
        padding: 40px 16px !important;
        text-align: center !important;
    }

    .split-content {
        width: 100% !important;
    }

    .split-image {
        width: 100% !important;
        height: 240px !important;
        margin-top: 24px !important;
    }

    /* Edge-to-Edge CTA Banners */
    .cta-banner-fullwidth .container,
    .join-banner-v2,
    .programs-join-section-v2 .join-banner-v2 {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        padding: 24px 16px !important;
    }

    .cta-image-col, .join-image-col {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .cta-image, .join-image-col {
        max-width: 260px !important;
        width: 100% !important;
        height: 150px !important;
        margin: 0 auto !important;
    }

    .cta-text-col, .join-quote-col {
        width: 100% !important;
        border: none !important;
        padding: 0 !important;
    }

    .cta-button-col, .join-action-col {
        width: 100% !important;
        padding: 0 !important;
    }

    .cta-button-col .btn, .join-action-col .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Stats Grids & Banners */
    .impact-stats-banner, .gallery-stats-section .grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 20px 16px !important;
    }

    /* Contact Page Layout */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .contact-form-box, .contact-box {
        padding: 20px 16px !important;
    }

    .map-container {
        min-height: 250px !important;
    }

    /* Gallery Page Filters & Grid */
    .gallery-filters {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding-bottom: 12px !important;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex-shrink: 0 !important;
        padding: 8px 16px !important;
        font-size: 11px !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Stories of Change Grid */
    .stories-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Social Share Popup Modal */
    .share-modal-content {
        width: 90% !important;
        max-width: 360px !important;
        padding: 20px 16px !important;
    }

    /* Specific Mobile Overrides for Sponsorship & Outreach */
    .plans-container {
        flex-direction: column !important;
        padding: 24px 16px !important;
        gap: 24px !important;
    }

    .plans-intro {
        flex: 1 1 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
        padding-right: 0 !important;
        padding-bottom: 16px !important;
        text-align: center !important;
    }

    .plans-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .plan-card {
        padding: 24px 16px !important;
    }

    .plans-grid .plan-card.scale-105,
    .plan-card.scale-105 {
        transform: none !important;
        margin: 0 !important;
    }

    .story-card-wide {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
        text-align: center !important;
    }

    .story-card-wide .story-img-col {
        height: 200px !important;
        width: 100% !important;
    }

    .story-card-wide .story-quote-col {
        border-top: 1px solid rgba(212, 175, 55, 0.3) !important;
        border-left: none !important;
        padding-top: 20px !important;
        padding-left: 0 !important;
    }

    .covers-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .covers-stats-bar {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .covers-stats-bar .stat-item {
        border: none !important;
        padding: 8px 0 !important;
    }

    .plans-grid .plan-card.scale-105 {
        transform: none !important;
    }

    .program-features-grid {
        grid-template-columns: 1fr !important;
    }

    .program-image-overlay {
        position: static !important;
        margin-top: 16px !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    .program-text-content.pl-4 {
        padding-left: 0 !important;
    }

    .program-image-wrapper {
        min-height: 240px !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .impact-stats-banner, .gallery-stats-section .grid, .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-title, h1.hero-title {
        font-size: 1.85rem !important;
    }
}
