/* --- Reset and General Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
    font-size: 1.125rem;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3 {
    font-family: 'Raleway', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

a {
    text-decoration: none;
    color: #F7913D; /* Orange links */
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #d6762b; /* Darker Orange on hover */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease;
}

.button-primary {
    background-color: #F7913D; /* Orange button */
    color: #fff;
    border: 2px solid #F7913D;
}

.button-primary:hover {
    background-color: #d6762b; /* Darker Orange on hover */
    border-color: #d6762b;
    color: #fff;
}

.button-secondary {
    background-color: transparent;
    color: #F7913D;
    border: 2px solid #F7913D;
}

.button-secondary:hover {
    background-color: #F7913D;
    color: #fff;
}

/* --- Header Styles --- */
header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container .logo-americas,
.logo-container .logo-africa {
    max-height: 72px;
    width: auto;
    height: auto;
    display: block;
}

.site-title {
    font-size: 3.49rem;
    font-weight: 700;
    color: #F7913D;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Navigation Styles --- */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.primary-navigation {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.primary-navigation a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.primary-navigation a:hover {
    color: #F7913D;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .primary-navigation {
        position: fixed;
        inset: 0 0 0 30%;
        flex-direction: column;
        padding: min(30vh, 10rem) 2em;
        background: hsl(0 0% 100% / 0.1);
        backdrop-filter: blur(1rem);
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    .primary-navigation[data-visible="true"] {
        transform: translateX(0);
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 9999;
        background-color: transparent;
        border: 0;
        width: 2rem;
        aspect-ratio: 1;
        top: 2rem;
        right: 2rem;
        cursor: pointer;
    }

    .mobile-nav-toggle[aria-expanded="true"] .primary-navigation {
        display: flex;
    }

    .mobile-nav-toggle[aria-expanded="true"] svg path {
        stroke: #F7913D;
    }

    .logo-container {
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo-container .logo-americas,
    .logo-container .logo-africa {
        max-height: 48px;
        margin: 0;
    }

    .site-title {
        font-size: 1.5rem;
        margin: 0;
    }
}

/* --- Hero Section Styles --- */
.hero {
    background-image: url('images/Home_Page.jpg');  
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 10rem 0; /* Increased from 8rem to 10rem to make it 25% taller */
    position: relative; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}

.hero-content h1 span {
    display: block;
    text-align: center;
}

.hero-content .hero-line3 {
    font-size: 1rem;
    font-style: italic;
}

/* --- Mission Section Styles --- */
.mission {
    padding: 4rem 0;
    text-align: center;
}

/* --- "Do You Need" Section Styles --- */
.do-you-need {
    padding: 4rem 0;
    background-color: #f8f8f8;
}

.do-you-need .section-title {
    text-align: center !important;
}

.program-cards { 
    display: grid;
    grid-template-columns: 1fr 1fr; /* This forces exactly 2 columns */
    gap: 2rem;
}

/* Add this to make sure it drops to 1 column on mobile phones */
@media (max-width: 768px) {
    .program-cards {
        grid-template-columns: 1fr;
    }
}

.program-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 1rem;
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.program-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

/* --- Impact Numbers Section Styles --- */
.impact-numbers {
    padding: 4rem 0;
}

.impact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.impact-item {
    text-align: center;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #F7913D;
    display: block;
}

.impact-label {
    font-size: 1.2rem;
}

/* --- About Page Styles --- */
.about-content {
    padding: 4rem 0;
}

.about-content h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #F7913D;
}

.about-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.about-content li {
    margin-bottom: .5rem;
}

/* --- Page Header Styles --- */
.page-header {
    background-color: #F7913D;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
}

/* --- Program Detail Styles --- */
.program-details {
    padding: 4rem 0;
}

.program {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.program:last-child {
    margin-bottom: 0;
}

.program h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #F7913D;
}

.program ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.program li {
    margin-bottom: .5rem;
}

/* --- Testimonials Section Styles --- */
.testimonials {
    background-color: #f8f8f8;
    padding: 4rem 0;
    text-align: center;
}

.testimonial-carousel {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.testimonial {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.testimonial-author {
    font-style: italic;
    color: #666;
}

/* ---Conferences Section Styles --- */
.conference-info {
    padding: 4rem 0;
    background-color: #fff;
}

.conference-info h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #F7913D;
}

/* ---Services Section Styles --- */
.services-list {
    padding: 4rem 0;
}

.services-list h2 {
    margin-bottom: 2rem;
}

.service {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service:last-child {
    margin-bottom: 0;
}

.service h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
    color: #F7913D;
}

/* ---Payment Options Styles --- */
.payment-options {
    padding: 4rem 0;
    background-color: #fff;
}

.payment-options h2 {
    margin-bottom: 2rem;
}

.payment-option {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.payment-option:last-child {
    margin-bottom: 0;
}

.payment-option h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
    color: #F7913D;
}

/* ---Contact Info Styles --- */
.contact-info {
    padding: 4rem 0;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-form-section {
    padding: 4rem 0;
    background-color: #f8f8f8;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Call to Action Section Styles --- */
.call-to-action {
    background-color: #F7913D;
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.call-to-action h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.call-to-action p {
    color: #fff;
    margin-bottom: 1rem;
}

.call-to-action .button-primary {
    background-color: #fff;
    color: #F7913D;
    border: 2px solid #fff;
}

.call-to-action .button-primary:hover {
    background-color: #F7913D;
    color: #fff;
    border-color: #F7913D;
}

.call-to-action .button-secondary {
    background-color: #fff;
    color: #F7913D;
    border: 2px solid #fff;
}

.call-to-action .button-secondary:hover {
    background-color: #F7913D;
    color: #fff;
    border-color: #F7913D;
}

/* --- Footer Styles --- */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-wrapper {
    width: 150px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.footer-contact {
    flex: 1 1 300px;
    max-width: 600px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section a {
    color: #fff;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section p {
    color: #fff;
}

.copyright {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    width: 100%;
    clear: both;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-logos {
        width: 100%;
        justify-content: center;
    }

    .footer-logo-wrapper {
        width: 100px;
        height: 50px;
    }

    .footer-contact {
        text-align: center;
        width: 100%;
    }
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: .5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* --- sr-only Styles --- */
.sr-only {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
        clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

/* --- Vision Purpose Styles --- */
.vision-purpose-content {
    padding: 4rem 0;
    background-color: #fff;
}

.vision-purpose-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: #F7913D;
}

.vision-purpose-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.vision-purpose-content li {
    margin-bottom: .5rem;
}

/* --- Under Construction Styles --- */
.under-construction {
    padding: 4rem 0;
    text-align: center;
}

.under-construction h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #F7913D;
}

/* --- Contact Page Styles --- */
.contact-page-options {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.contact-card {
    display: block;
    text-align: center;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #d6762b;
}

.contact-card img {
    max-width: 250px;
    margin: 0 auto 1rem;
}

.contact-card p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.contact-card:hover p {
    color: #d6762b;
}

/* --- Services Columns Styles --- */
.services-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Gives the text slightly more room, pushing images right */
    gap: 5rem; /* Increases the blank space between the columns */
    align-items: start; /* Keeps everything aligned to the top */
}

.service-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .services-columns {
        grid-template-columns: 1fr; /* Stacks the text on top of the images on mobile */
        gap: 2rem; /* Reduces the gap for mobile screens */
    }
}

.video-section {
    padding: 4rem 0;
    text-align: center;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
}

.video-wrapper video {
    width: 100%;
    display: block;
}

.video-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* --- Contact Form Styles --- */
.contact-form-section {
    max-width: 600px;
    margin: 4rem auto 0;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-form-section h2 {
    color: #0056b3;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #F7913D;
    box-shadow: 0 0 5px rgba(247, 145, 61, 0.3);
}

.contact-form .button-primary {
    width: 100%;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}