/**
 * BD MCH Center for Policy & Practice
 * Main Stylesheet
 *
 * @package BD_MCHCPP
 */

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.section-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-container-wide {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .section-container,
    .section-container-wide {
        padding: 0 1.5rem;
    }
}

/* ==========================================================================
   Typography
   ========================================================================== */

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

.section-divider {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--color-green);
    border-radius: 0.25rem;
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 3rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.site-logo-icon {
    font-size: 1.5rem;
    color: var(--color-green);
}

.site-title-wrap {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-navy);
}

.site-subtitle {
    font-size: 0.75rem;
    color: var(--color-gray);
}

/* Desktop Navigation */
.nav-menu-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu-desktop {
        display: flex;
    }
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray);
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-green);
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-navy);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--color-navy);
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle .menu-icon-close {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-open {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-close {
    display: block;
}

/* Mobile Navigation */
.nav-menu-mobile {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.nav-menu-mobile.is-open {
    display: block;
}

@media (min-width: 768px) {
    .nav-menu-mobile {
        display: none !important;
    }
}

.nav-menu-mobile .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
}

.nav-menu-mobile .nav-link::after {
    display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--color-navy);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(45, 54, 143, 0.3);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 54, 143, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-green);
    border: 2px solid var(--color-green);
}

.btn-secondary:hover {
    background-color: rgba(1, 153, 102, 0.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.section-hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .section-hero {
        padding-top: 8rem;
        padding-bottom: 0;
    }
}

.hero-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    height: 100%;
}

@media (min-width: 640px) {
    .hero-container {
        padding: 0 1.5rem;
    }
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .hero-inner {
        flex-direction: row;
        gap: 5rem;
    }
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 0;
}

@media (min-width: 1024px) {
    .hero-content {
        width: 50%;
        padding: 0;
    }
}

.hero-headline {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-navy);
    margin: 0 0 2rem;
}

@media (min-width: 640px) {
    .hero-headline {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 3.75rem;
    }
}

.hero-text {
    margin-bottom: 2.5rem;
}

.hero-text p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4b5563;
    margin: 0 0 1.5rem;
}

.hero-text p:last-child {
    margin-bottom: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-image-wrap {
        width: 50%;
        height: 100%;
        justify-content: flex-end;
    }
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 24rem;
    overflow: hidden;
    border-radius: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
    .hero-image-container {
        width: 90%;
        height: 80%;
        margin-top: 3rem;
        margin-right: 2rem;
    }
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(30, 58, 138, 0.1);
    mix-blend-mode: multiply;
    z-index: 10;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-decorative {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 8rem;
    height: 8rem;
    background-color: rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(24px);
    border-top-right-radius: 100%;
    z-index: 20;
}

/* ==========================================================================
   Mission Section
   ========================================================================== */

.section-mission {
    padding: 6rem 0;
    background-color: #ffffff;
    overflow: hidden;
}

.mission-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .mission-grid {
        flex-direction: row;
    }
}

.mission-left,
.mission-right {
    width: 100%;
}

@media (min-width: 1024px) {
    .mission-left,
    .mission-right {
        width: 50%;
    }
}

.mission-headline {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-navy);
    margin: 0 0 1.5rem;
}

@media (min-width: 640px) {
    .mission-headline {
        font-size: 1.5rem;
    }
}

.mission-image-wrap {
    position: relative;
    margin-top: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16 / 9;
}

@media (min-width: 1024px) {
    .mission-image-wrap {
        height: 16rem;
        aspect-ratio: auto;
    }
}

.mission-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mission-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

/* Mission Cards */
.mission-cards {
    display: grid;
    gap: 1.5rem;
}

.mission-card {
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid;
}

.mission-card--green {
    background-color: #ecfdf5;
    border-color: #d1fae5;
}

.mission-card--blue {
    background-color: #eff6ff;
    border-color: #dbeafe;
}

.mission-card--orange {
    background-color: #fff7ed;
    border-color: #fed7aa;
}

.mission-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.mission-card-icon-wrap {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background-color: #ffffff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mission-card--green .mission-card-icon-wrap i {
    color: var(--color-green);
    font-size: 1.25rem;
}

.mission-card--blue .mission-card-icon-wrap i {
    color: var(--color-navy);
    font-size: 1.25rem;
}

.mission-card--orange .mission-card-icon-wrap i {
    color: #ea580c;
    font-size: 1.25rem;
}

.mission-card-content {
    flex: 1;
}

.mission-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}

.mission-card-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.mission-card-link {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    font-weight: 500;
}

.mission-card--green .mission-card-link {
    text-decoration-color: var(--color-green);
}

.mission-card--blue .mission-card-link {
    text-decoration-color: #3b82f6;
}

.mission-card--orange .mission-card-link {
    text-decoration-color: #f97316;
}

/* ==========================================================================
   What We Do Section
   ========================================================================== */

.section-work {
    padding: 5rem 0;
    background-color: var(--color-light-gray);
}

.pillars-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pillar-icon-wrap {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pillar-icon-wrap i {
    font-size: 1.875rem;
}

.pillar-icon-wrap--navy {
    background-color: rgba(45, 54, 143, 0.08);
}

.pillar-icon-wrap--navy i {
    color: var(--color-navy);
}

.pillar-icon-wrap--green {
    background-color: rgba(1, 153, 102, 0.1);
}

.pillar-icon-wrap--green i {
    color: var(--color-green);
}

.pillar-icon-wrap--orange {
    background-color: #fef3e7;
}

.pillar-icon-wrap--orange i {
    color: #d97706;
}

.pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 1rem;
}

.pillar-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray);
    margin: 0;
}

/* ==========================================================================
   News Section
   ========================================================================== */

.section-news {
    padding: 5rem 0;
    background-color: var(--color-white);
    border-top: 1px solid #e5e7eb;
}

.news-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.news-card-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-navy);
    margin: 0;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #15803d;
}

.news-card-footer {
    padding: 0 2rem 2rem;
}

.news-card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-green);
    transition: gap 0.3s ease;
}

.news-card:hover .news-card-link {
    gap: 0.75rem;
}

/* ==========================================================================
   Resources Section
   ========================================================================== */

.section-resources {
    padding: 5rem 0;
    background-color: rgba(45, 54, 143, 0.05);
}

.resources-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.resource-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.resource-card:hover {
    border-color: #bbf7d0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.resource-card-arrow {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.resource-arrow-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.resource-arrow-circle i {
    font-size: 0.875rem;
    color: #9ca3af;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
}

.resource-card:hover .resource-arrow-circle {
    background-color: var(--color-green);
}

.resource-card:hover .resource-arrow-circle i {
    color: #ffffff;
    transform: rotate(0deg);
}

.resource-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
    transition: color 0.3s ease;
}

.resource-card:hover .resource-card-title {
    color: #15803d;
}

.resource-card-type {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray);
    margin: auto 0 0;
    padding-top: 1rem;
}

/* ==========================================================================
   Team Section
   ========================================================================== */

.section-team {
    padding: 5rem 0;
    background-color: #ffffff;
}

.team-wrapper {
    background-color: #f9fafb;
    border-radius: 2.5rem;
    padding: 2rem;
}

@media (min-width: 1024px) {
    .team-wrapper {
        padding: 4rem;
    }
}

.team-grid {
    display: grid;
    gap: 3rem;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.team-member {
    cursor: pointer;
}

.team-member-image-wrap {
    position: relative;
    width: 6rem;
    height: 6rem;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 4px solid #ffffff;
    transition: box-shadow 0.3s ease;
}

.team-member:hover .team-member-image-wrap {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.team-member:hover .team-member-image-overlay {
    background-color: rgba(0, 0, 0, 0.1);
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-navy);
    margin: 0 0 0.25rem;
}

.team-member-title {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-green);
    margin: 0 0 0.75rem;
}

.team-member-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.team-member:hover .team-member-cta {
    color: #4b5563;
}

/* Team Right - About */
.team-right {
    border-top: 1px solid #e5e7eb;
    padding-top: 3rem;
}

@media (min-width: 1024px) {
    .team-right {
        border-top: none;
        border-left: 1px solid #e5e7eb;
        padding-top: 0;
        padding-left: 5rem;
    }
}

.about-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 1.5rem;
}

@media (min-width: 640px) {
    .about-title {
        font-size: 1.875rem;
    }
}

.about-description {
    margin-bottom: 2rem;
}

.about-description p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4b5563;
    margin: 0;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-weight: 600;
    color: var(--color-navy);
    transition: all 0.3s ease;
}

.about-cta:hover {
    border-color: #bbf7d0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.about-cta i {
    font-size: 1.125rem;
    color: var(--color-green);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-navy);
    padding: 3rem 0;
}

.footer-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-container {
        padding: 0 1.5rem;
    }
}

.footer-icon {
    font-size: 1.875rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem;
}

.footer-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 1.5rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ==========================================================================
   Bio Modal
   ========================================================================== */

.bio-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bio-modal.is-open {
    display: flex;
}

.bio-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.bio-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 1rem;
    max-width: 42rem;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
}

.bio-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.bio-modal-close:hover {
    background-color: #f3f4f6;
}

.bio-modal-close i {
    font-size: 1.25rem;
    color: var(--color-gray);
}

.bio-modal-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .bio-modal-header {
        flex-direction: row;
    }
}

.bio-modal-image {
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    object-fit: cover;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .bio-modal-image {
        margin: 0;
    }
}

.bio-modal-info {
    text-align: center;
}

@media (min-width: 640px) {
    .bio-modal-info {
        text-align: left;
    }
}

.bio-modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 0.5rem;
}

.bio-modal-title {
    font-weight: 500;
    color: var(--color-green);
    margin: 0;
}

.bio-modal-body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-gray);
}

.bio-modal-body p {
    margin: 0 0 1rem;
}

.bio-modal-body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Default Content (Fallback)
   ========================================================================== */

.default-content {
    padding: 8rem 0;
    text-align: center;
}

.default-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 1rem;
}

.default-content p {
    color: var(--color-gray);
    margin: 0;
}

/* ==========================================================================
   Logo Image Styles
   ========================================================================== */

.site-logo-image {
    height: 40px;
    width: auto;
    display: block;
}

@media (min-width: 640px) {
    .site-logo-image {
        height: 48px;
    }
}

/* ==========================================================================
   Navigation Updates
   ========================================================================== */

/* Override nav container to be full width with fixed padding */
.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 2rem;
    }
}

/* Increase nav height to 6rem (96px) */
.nav-inner {
    height: 6rem;
}

/* Logo styling - left aligned, max 72px height */
.site-logo-image {
    height: 72px;
    max-height: 72px;
    width: auto;
    display: block;
}

/* Adjust nav menu spacing on right */
.nav-menu-desktop {
    padding-right: 0;
}

/* Nav Subscribe Button */
.nav-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.nav-subscribe-btn:hover {
    border-color: var(--color-green);
    color: var(--color-green);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-subscribe-btn i {
    font-size: 0.8125rem;
    color: var(--color-green);
}

/* ==========================================================================
   Footer Updates
   ========================================================================== */

/* Updated Footer Design */
.site-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

/* Initiative Section */
.footer-initiative {
    margin-bottom: 1.5rem;
}

.footer-heartland-link {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.footer-heartland-link:hover {
    opacity: 0.8;
}

.footer-heartland-logo {
    height: auto;
    max-width: 280px;
    width: 100%;
    display: block;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .footer-heartland-logo {
        max-width: 320px;
    }
}

/* Footer Copyright */
.footer-copyright {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}

/* ==========================================================================
   Hero Bold - Typographic Redesign
   ========================================================================== */

.hero-bold {
    margin-top: 6rem; /* Account for fixed nav (96px) */
    margin-bottom: 2rem; /* Extra spacing below hero */
    padding: 0;
}

/* Offset scroll targets to account for sticky nav height */
section[id] {
    scroll-margin-top: 6.5rem;
}

/* ==========================================================================
   Hero Headline Block - Navy Full Width
   ========================================================================== */

.hero-headline-block {
    background-color: var(--color-navy);
    padding: 4rem 1.5rem 3.5rem;
    text-align: left;
}

@media (min-width: 640px) {
    .hero-headline-block {
        padding: 5rem 2rem 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-headline-block {
        padding: 6rem 3rem 5rem;
    }
}

.hero-headline-container {
    max-width: 72rem;
    margin: 0 auto;
}

/* Mega Headline - Stacked Lines */
.hero-mega-headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.0;
    color: #ffffff;
    margin: 0 0 2rem;
    letter-spacing: -0.03em;
}

@media (min-width: 640px) {
    .hero-mega-headline {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .hero-mega-headline {
        font-size: 6.5rem;
    }
}

@media (min-width: 1280px) {
    .hero-mega-headline {
        font-size: 7.5rem;
    }
}

.headline-line {
    display: block;
}

.headline-accent {
    color: #ffffff;
}

/* Tagline - Below headline, larger */
.hero-tagline {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2rem;
}

@media (min-width: 640px) {
    .hero-tagline {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-tagline {
        font-size: 2.75rem;
    }
}

/* Hero Body Text */
.hero-body-text {
    max-width: 52rem;
}

.hero-body-text p {
    font-size: 1.1875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.hero-body-text p:last-child {
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .hero-body-text p {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-body-text p {
        font-size: 1.3125rem;
    }
}

/* ==========================================================================
   Hero Stats Block - Dark Background with Lines
   ========================================================================== */

.hero-stats-block {
    padding: 3rem 1.5rem;
}

.hero-stats-block--dark {
    background-color: var(--color-navy);
}

@media (min-width: 640px) {
    .hero-stats-block {
        padding: 3.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-stats-block {
        padding: 4rem 3rem;
    }
}

.hero-stats-container {
    max-width: 72rem;
    margin: 0 auto;
}

/* Statistics Grid - Two columns */
.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

/* Individual Stat Item - Dark variant */
.stat-item {
    text-align: left;
}

.stat-item--dark .stat-label {
    color: rgba(255, 255, 255, 0.6);
}

.stat-item--dark .stat-number {
    color: #ffffff;
}

.stat-item--dark .stat-description {
    color: rgba(255, 255, 255, 0.8);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-navy);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .stat-number {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .stat-number {
        font-size: 6rem;
    }
}

.stat-description {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .stat-description {
        font-size: 1.0625rem;
    }
}

/* ==========================================================================
   Hero Callouts Row - Side by Side
   ========================================================================== */

.hero-callouts-row {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .hero-callouts-row {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-callout {
    padding: 4rem 1.5rem;
    text-align: left;
    display: flex;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-callout {
        padding: 5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-callout {
        padding: 6rem 3rem;
    }
}

.hero-callout--navy {
    background-color: rgba(45, 54, 143, 0.08);
}

.hero-callout--green {
    background-color: rgba(1, 153, 102, 0.08);
}

.hero-callout-inner {
    max-width: 72rem;
    width: 100%;
}

@media (min-width: 768px) {
    /* On desktop, each callout gets half the container width minus padding */
    .hero-callout-inner {
        max-width: 36rem;
    }
}

/* Callout Title (Why Now? / Our Mission) - Large headline style, no uppercase */
.callout-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(45, 54, 143, 0.2);
}

.hero-callout--green .callout-title {
    color: var(--color-green);
    border-bottom-color: rgba(1, 153, 102, 0.3);
}

@media (min-width: 640px) {
    .callout-title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1024px) {
    .callout-title {
        font-size: 2.5rem;
    }
}

/* Why Now? Content */
.callout-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.callout-stat-number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-navy);
    letter-spacing: -0.03em;
}

@media (min-width: 640px) {
    .callout-stat-number {
        font-size: 6rem;
    }
}

@media (min-width: 1024px) {
    .callout-stat-number {
        font-size: 7rem;
    }
}

.callout-stat-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.4;
}

@media (min-width: 640px) {
    .callout-stat-text {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .callout-stat-text {
        font-size: 1.625rem;
    }
}

/* Our Mission Content - Single larger line, bolder */
.callout-mission-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-green);
    line-height: 1.35;
    margin: 0;
}

@media (min-width: 640px) {
    .callout-mission-text {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .callout-mission-text {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   Playbook Section
   ========================================================================== */

.section-playbook {
    padding: 5rem 0;
    background-color: var(--color-light-gray);
}

@media (min-width: 1024px) {
    .section-playbook {
        padding: 6rem 0;
    }
}

.playbook-grid {
    display: block;
}

.playbook-content {
    max-width: 900px;
    margin-bottom: 3rem;
}

.playbook-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 1rem;
}

@media (min-width: 640px) {
    .playbook-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .playbook-title {
        font-size: 2.25rem;
    }
}

.playbook-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin: 0 0 1.5rem;
}

@media (min-width: 640px) {
    .playbook-text {
        font-size: 1.1875rem;
    }
}

@media (min-width: 1024px) {
    .playbook-text {
        font-size: 1.25rem;
    }
}

.playbook-subscribe {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-navy);
    margin: 0;
}

.playbook-link {
    color: var(--color-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: color 0.2s ease;
}

.playbook-link:hover {
    color: #017a52;
}

/* Hide the old image wrap */
.playbook-image-wrap {
    display: none;
}

/* ==========================================================================
   Playbook Pillars - Three Column Cards
   ========================================================================== */

.playbook-pillars {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .playbook-pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Individual Pillar Card */
.playbook-pillar {
    display: flex;
    flex-direction: column;
}

/* Pillar Header - Speech Bubble Style */
.playbook-pillar-header {
    position: relative;
    padding: 1.5rem 1.25rem;
    border-radius: 0.5rem 0.5rem 0 0;
    min-height: 100px;
    display: flex;
    align-items: center;
}

.playbook-pillar-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top-width: 20px;
    border-top-style: solid;
}

/* Navy Header */
.playbook-pillar-header--navy {
    background-color: var(--color-navy, #2D368F);
}

.playbook-pillar-header--navy::after {
    border-top-color: var(--color-navy, #2D368F);
}

/* Green Header */
.playbook-pillar-header--green {
    background-color: var(--color-green, #019966);
}

.playbook-pillar-header--green::after {
    border-top-color: var(--color-green, #019966);
}

/* Header Title */
.playbook-pillar-title {
    color: #ffffff;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

@media (min-width: 1024px) {
    .playbook-pillar-title {
        font-size: 1.75rem;
    }
}

/* Pillar Body */
.playbook-pillar-body {
    flex: 1;
    padding: 2rem 1.75rem 1.5rem 1.25rem; /* More right padding for breathing room */
    padding-top: 2.5rem; /* Extra top padding for triangle overlap */
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Navy Body - Light Blue Tint */
.playbook-pillar-body--navy {
    background-color: rgba(45, 54, 143, 0.05);
}

/* Green Body - Light Green Tint */
.playbook-pillar-body--green {
    background-color: rgba(1, 153, 102, 0.08);
}

/* Subtitle */
.playbook-pillar-subtitle {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 1rem;
}

.playbook-pillar-body--navy .playbook-pillar-subtitle {
    color: var(--color-navy, #2D368F);
}

.playbook-pillar-body--green .playbook-pillar-subtitle {
    color: var(--color-green, #019966);
}

/* Bullet List */
.playbook-pillar-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.playbook-pillar-list li {
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    margin-bottom: 0.625rem;
}

.playbook-pillar-list li:last-child {
    margin-bottom: 0;
}

/* Footnote */
.playbook-pillar-footnote {
    font-size: 0.875rem;
    font-style: italic;
    color: #6b7280;
    margin: 1rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Source Citation */
.playbook-source {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .playbook-source {
        margin-top: 2.5rem;
    }
}

/* ==========================================================================
   Resources Section Updates - 4 Column Grid
   ========================================================================== */

.resources-grid {
    max-width: none;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Resource Card: Taller, News-style Layout */
.resource-card {
    min-height: 280px;
    padding: 0;
    justify-content: space-between;
}

/* Hide the arrow circle at top */
.resource-card-arrow {
    display: none;
}

/* Card content area - top aligned */
.resource-card-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Title styling */
.resource-card-title {
    font-size: 1.125rem;
    line-height: 1.4;
}

/* Footer with View Resource link */
.resource-card-type {
    padding: 0 2rem 2rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-green, #019966);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.resource-card-type::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-card-type {
    gap: 0.75rem;
}

/* ==========================================================================
   Team Section Updates
   ========================================================================== */

/* Team Grid: 2/3 Team, 1/3 About */
@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
}

/* About Section: Smaller text to fit column */
.about-title {
    font-size: 1.125rem;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .about-title {
        font-size: 1.25rem;
    }
}

.about-description p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Team Member Title/Organization Display */
.team-member-title {
    font-size: 0.6875rem;
    line-height: 1.4;
}

.team-member-organization {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

/* Bio Modal: Wider and better alignment */
.bio-modal-content {
    max-width: 52rem;
}

.bio-modal-header {
    align-items: center;
}

@media (min-width: 640px) {
    .bio-modal-header {
        align-items: center;
    }
}

.bio-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Modal title and organization */
.bio-modal-title {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.bio-modal-organization {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
}

/* ==========================================================================
   CTA Button - Unified Style
   ========================================================================== */

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-weight: 600;
    color: var(--color-navy);
    transition: all 0.3s ease;
}

.cta-button:hover {
    border-color: #bbf7d0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-button i {
    font-size: 1rem;
    color: var(--color-green);
}

.playbook-subscribe-btn {
    margin-top: 1.5rem;
}
