/* Reset and base styles */

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* a:visited {
    color: inherit;
} */

.primary-menu {
    list-style: none;
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0;
    color: #333;
    overflow-x: hidden;
}
mail {
    overflow-x: hidden;
}






/* Animation styles */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s ease-out;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-25px);
    transition: all 0.6s ease-out;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(25px);
    transition: all 0.6s ease-out;
}

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

.fade-in-delay-1 {
    transition-delay: 0.2s;
}

.fade-in-delay-2 {
    transition-delay: 0.4s;
}

.fade-in-delay-3 {
    transition-delay: 0.6s;
}

.fade-only {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-only.visible {
    opacity: 1;
}

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

/* Header styles */
header {
    padding: 20px 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: center;
    align-items: start;
    width: 100%;
    position: relative;
    max-width: 1240px;
}
.logo {
    padding-top: 1rem;
}
.logo svg {
    height: 80px;
    width: auto;
}

body:not(.home) header .logo svg path {
fill: white;
}
body.error404 header .logo svg path {
  fill: #2B99B6;
}
body.error404 header .logo svg path:is(:nth-child(-n+10)) {
  fill: rgb(63, 63, 63);
}

nav {
    position: absolute;
    right: 1.25rem;
    padding-top: 1rem;
}

nav a {
    /* background-color: #2B99B6; */
    background-color: rgba(43, 153, 182, 0.3);
    border: 1px solid rgba(43, 153, 182, 0.45);
    color: white;
    padding: 15px 35px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
body:not(.home) nav a {
    background-color: #2B99B6;
    border: 1px solid #2B99B6;
}
nav a:hover {
    background-color: #236a7f;
    color: white;
    text-decoration: none;
}

body:not(.home) nav a:hover {
    border: 1px solid #236a7f;
}

/* Mission section */
.mission {
    /* Use CSS variables set by block to allow per-block backgrounds */
    background-image: var(--desktop-bg, url('images/hero-image.jpg'));
    background-size: cover;
    background-position: 50% 20%;
    background-repeat: no-repeat;
    min-height: 800px;
    max-height: 950px;
	height: 80vh;
    position: relative;
    padding: 80px 0;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.mission-desktop-container {
    height: 100%;
    display:flex;
    
    align-items: center;
}

.mission-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: calc(80vh - 160px);
        min-height: auto;
    /* margin-top: 5rem; */
}

.mission-text {
    max-width: 400px;
    /* background-color: rgba(242, 242, 242, 0.10); */
    padding: 40px 0;
}

.mission-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0.23em;
    /* color: #2B99B6; */
    color: #fff;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.mission-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0;
    color: #fff;
    text-align: justify;
    text-wrap: pretty;
}

/* Hide mobile section on desktop */
.mission-mobile-section {
    display: none;
}

/* Gutenberg Cover Block Overrides for Mission Section */
.wp-block-cover.mission {
    min-height: 80vh !important;
    padding: 80px 0 !important;
    align-items: center;
}

.wp-block-cover.mission .wp-block-cover__inner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    margin-top: 3rem;
}

.wp-block-cover.mission .wp-block-group.mission-text {
    max-width: 400px;
    background-color: rgba(242, 242, 242, 0.10) !important;
    padding: 40px !important;
    margin: 0;
}

.wp-block-cover.mission .wp-block-group.mission-text h1,
.wp-block-cover.mission .wp-block-group.mission-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0.23em;
    color: #2B99B6 !important;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.wp-block-cover.mission .wp-block-group.mission-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0;
    color: #666 !important;
    text-align: justify;
    text-wrap: pretty;
}

/* Initiatives section */
.initiatives {

    padding: 80px 0;
}

.initiatives h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 38px;
    letter-spacing: 0.23em;
    color: #2B99B6;
    margin-bottom: 60px;
    text-align: center;

}

.initiative-card {
    margin-bottom: 60px;
}

.card-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
    background-color: white;
    padding: 0;
    border-radius: 0;
}

.initiative-card.reverse .card-content {
    grid-template-columns: 1fr 400px;
}

.initiative-card.reverse .card-text {
    order: 1;
}

.initiative-card.reverse .card-image {
    order: 2;
}

.card-image {
    height: 400px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.card-text {
    padding: 40px;
}

.card-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 6px;
    color: #2B99B6;
    margin-bottom: 20px;

}

.card-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0;
    color: #666;
    text-align: justified;
    text-wrap: pretty;
}

/* Footer */
footer {
    background-color: #878787;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
}
.footer-logo img {
    height: 90px;
    width: auto;
    margin-bottom: 50px;
    filter: brightness(0) invert(1);
}
.footer-logo svg {
    height: 90px;
    width: auto;
    margin-bottom: 50px;
    fill: white;
}
.footer-logo svg path {
    
    fill: white;
}

footer p {
    font-size: 12px;
    letter-spacing: 1px;
	color: white;
}
.footer-links,
.footer-links a {
    font-size: 12px;
    font-style: italic;
      text-decoration: none;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-links span {
    font-style: normal;
    padding: 0 10px;
}

/* News page styles */
.news-hero {
    background-image: url('/wp-content/uploads/2025/10/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 550px;
    max-height: 550px;
    position: relative;
}

.news-intro {
    padding: 80px 0 50px 0;
    text-align: center;
}

.news-intro h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 38px;
    letter-spacing: 0.23em;
    color: #2B99B6;
    text-transform: uppercase;
}

.news-articles {
    padding: 40px 0 80px 0;
    background-color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 40px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 485px;
    margin: 0 auto;
    width: 100%;
}

.news-image {
    width: 485px;
    height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
    margin: 0 auto 20px auto;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.news-content {
    padding: 10px 25px;
}

.news-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0.5px;
    color: #2B99B6;
    margin-bottom: 10px;
    text-transform: none;
}

.news-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
}

.news-content p span {
    font-style: normal;
}
.news-content p span.author {
    white-space: nowrap;
}

.read-more {
    background-color: #2B99B6;
    color: white;
    border: none;
    padding: 15px 35px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.read-more:hover {
    background-color: #236a7f;
    color: white;
    text-decoration: none;
}



/* Responsive design */
@media (max-width: 768px) {
    .mission {
        padding: 60px 0;
        /* margin-bottom:120px; */
        /* Prefer mobile var, fall back to desktop var, then theme default */
        background-image: var(--mobile-bg, var(--desktop-bg, url('images/hero-image-m.jpg')));
        background-position: bottom;
        min-height: unset;
        height: 450px;
    }
    
    .mission-content {
        min-height: calc(60vh - 120px);
        align-items: flex-start;
        padding-top: 5rem;
        text-align: center;
        bottom: unset;
        margin-top: 0;

    }
    
    .mission-text {
        max-width: 100%;
        padding: 30px;
        background-color: rgba(242, 242, 242, 0.0);
    }

    /* Hide mission text in hero on mobile */
    .mission-text-desktop {
        display: none;
    }

    /* Show mobile section on mobile */
    .mission-mobile-section {
        display: block;
    }

    .mission-text.mission-text-mobile h1 {
        color: #2B99B6;
        text-align: center;
    }
    .mission-text.mission-text-mobile p {
        color: #333;
        text-align: justify;
    }
    .mission-text h1 {
        margin-bottom: 20px;
    }
    .mission-text p {
        line-height: 1.75;
    }
    
    .card-content,
    .initiative-card.reverse .card-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .initiative-card.reverse .card-text {
        order: 2;
    }
    .initiative-card.reverse .card-image {
        order: 1;
    }
    
    .card-image {
        height: 250px;
    }
    
    .card-text {
        padding: 30px;
    }
    
    
    .initiatives {
        padding: 60px 0;
    }
    
    footer {
        padding: 40px 0;
    }
    
    .news-hero {
        height: 400px;
        max-height: 400px;
    }
    
    .news-intro {
        padding: 40px 0 30px 0;
    }
    
    .news-articles {
        padding: 30px 0 60px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-content h2 {
        font-size: 20px;
        letter-spacing: 0.3px;
        line-height: 24px;
    }
    

    header .container {
        justify-content: space-between;
        align-items: center;
    }
    header .container nav {
        position: unset;
    }
    header .container svg {
        height: 60px
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 16px;
    }

    .mission-text {
        padding: 30px 30px 20px;
    }
    .mission-text h2,
    .initiatives h2 {
        font-size: 24px;
        letter-spacing: 0.2em;
        margin: 10px 0;
    }
    
    .card-text h3 {
        font-size: 22px;
        letter-spacing: 3px;
        margin: 10px 0;
    }
    
    .card-text {
        padding: 20px;
    }
    
    .news-hero {
        height: 350px;
        max-height: 350px;
    }
    
    .news-intro h1 {
        font-size: 27px;
        letter-spacing: 0.2em;
    }
    
    .news-intro {
        padding: 30px 0 20px 0;
    }
    
    .news-grid {
        gap: 30px;
    }
    
    .news-content h2 {
        font-size: 18px;
        line-height: 22px;
    }
    

}
