/* --- 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;
}

.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; /* Space out logos and title */
}
.logo-container .logo-americas,
.logo-container .logo-africa {
    max-height: 72px; /* Increased size - Desktop */
    width: auto;
    height: auto;
    display: block;
}

.site-title {
    font-size: 3.49rem; /* Increased size by 66% - Desktop */
    font-weight: 700;
    color: #F7913D;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Navigation Styles --- */
nav {
    display: flex; /* Use flexbox for navigation */
    justify-content: center; /* Center navigation items horizontally */
    align-items: center;
}

.primary-navigation {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Use flexbox for horizontal layout */
    gap: 1rem;     /* Spacing between navigation items */
}

.primary-navigation a {
    display: block; /* Make links block-level for easier clicking */
    padding: 0.5rem 1rem;
    color: #333;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.primary-navigation a:hover {
    color: #F7913D; /* Orange on hover */
}

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

@media (max-width: 768px) {

    .primary-navigation{
        position: fixed;
        inset: 0 0 0 30%; /*Top, right, bottom, left*/

        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;
        background-image: url();
        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; /* Space between on Mobile too */
        align-items: center;      /* Vertically center on mobile */
        width: 100%;
    }

    .logo-container .logo-americas,
    .logo-container .logo-africa {
        max-height: 48px;     /* Increased size - Mobile */
        margin: 0;
    }

    .site-title {
        font-size: 1.5rem;   /* Increased size by 66%- Mobile */
        margin: 0;
    }
}

/* --- Hero Section Styles --- */
.hero {
    background-image: url('images/placeholder-hero.jpg');  /* Replace with your hero image */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 8rem 0; /* Increased padding top and bottom */
    position: relative; /* For pseudo-element */
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center; /* This centers the content horizontally */
}

.hero-content h1 {
    font-size: 1.5rem; /* Reduced font size by 25% */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}

.hero-content h1 span{
    display: block; /* Make each span a block-level element */
    text-align: center; /* Center each line */
}

.hero-content .hero-line3 {
    font-size: 1rem; /* Smaller font size for the third line */
    font-style: italic;  /* Optional: Add italics */
}

/* --- 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;
}

.program-cards { /* Renamed class for consistency */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-card { /* Renamed class for consistency */
    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; /* Orange color */
    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; /* Correct orange color */
}
.about-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem; /* Indent list items */
}
.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; /* Orange for program headings */
}

.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 {
    /* flex: 0 0 auto;  Don't grow or shrink, stay at the set width */
    width: 80%;     /* Adjust as needed */
    max-width: 600px; /* Limit width */
    margin: 0 auto; /* Center horizontally */
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    /* scroll-snap-align: center;  Center-align each slide */
}

.testimonial-author {
    font-style: italic;
    color: #666;
}
/* ---Conferences Section Styles --- */

.conference-info {
    padding: 4rem 0;
    background-color: #fff; /* Keep consistent background */
}

.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; /* Orange background */
    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; /* Orange text on white background */
    border: 2px solid #fff;
}
.call-to-action .button-primary:hover{
    background-color: #F7913D; /* Orange on White*/
    color: #fff;
    border-color: #F7913D;
}
.call-to-action .button-secondary{
    background-color: #fff;
    color: #F7913D; /* Orange text on white background */
    border: 2px solid #fff;
}
.call-to-action .button-secondary:hover {
    background-color: #F7913D; /* Orange on White*/
    color: #fff;
    border-color: #F7913D;
}
/* --- Footer Styles --- */
/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;        /* Allow wrapping on smaller screens */
    justify-content: space-between; /* Space between on larger screens */
    align-items: flex-start;    /* Align items to the top */
    gap: 2rem;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* REMOVE justify-content: center; */  /*Let .footer-content handle overall alignment */
    /* REMOVE flex: 1 1 300px; */
    margin-bottom: 1rem; /* Add space below logos on ALL screen sizes */
}
.footer-logo-wrapper {
    width: 150px;  /*Adjust as necessary*/
    height: 75px; /* Adjust as needed - was 200px */
    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{
    /* REMOVE text-align: center; and width: 100%; */
     flex: 1 1 300px;  /*Allow this to grow and shrink */
    max-width: 600px;  /*But don't let it get too wide*/
}

.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; /* Reduced margin */
    font-size: 0.8rem;
    width: 100%;
    clear: both;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* Stack items vertically on mobile */
        align-items: center;     /* Center everything on mobile */
    }

    .footer-logos {
        width: 100%; /* Full width on mobile */
         justify-content: center; /* Center logos horizontally */
        /* REMOVE margin-bottom: 1rem;  Spacing handled by .footer-content gap */
    }
  .footer-logo-wrapper{
        width: 100px;  /*Smaller on Mobile*/
        height: 50px;
    }

    .footer-contact {
        text-align: center; /* Center contact info on mobile */
        width: 100%;       /* Full width on mobile */
    }
}
/*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; /* 1 */
    -webkit-clip-path: inset(50%) !important;
        clip-path: inset(50%) !important;  /* 2 */
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;            /* 3 */
}

.vision-purpose-content {
    padding: 4rem 0;
    background-color: #fff;
}

.vision-purpose-content h2 {
    margin-top: 2rem; /* Add some space above headings */
    margin-bottom: 1rem;
    font-size: 1.75rem; /* Slightly smaller than main section headings */
    color: #F7913D;
}

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

.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;
}