.waiw-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    scroll-margin-top: 30px;
}

.waiw-header {
    max-width: 780px;
    margin: 0 auto 30px;
    text-align: center;
}

.waiw-heading {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #000;
    line-height: 1.2;
    margin: 0 0 15px;
}

.waiw-subtext {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.waiw-grid {
    display: grid;
    grid-template-columns: repeat(var(--waiw-columns, 3), 1fr);
    gap: 25px;
}

/* Real card style pulled from woundedwarriorproject.org's own CSS:
   white background + soft shadow, equal-height cards in a row, image
   at top, bold black title (no underline even as a link), body copy,
   solid blue pill CTA button pinned to the bottom of the card. */
.waiw-card {
    background: #fff;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .12);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.waiw-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.waiw-card-content {
    padding: 1.429em;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.waiw-card-title {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #000;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.waiw-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    flex: 1 1 auto;
}

.waiw-card-desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Solid pill CTA — exact values from WWP's .btn-wrap button rule */
.waiw-card-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 2.143rem;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: #fff;
    background-color: #005da5;
    border: 1px solid #005da5;
    border-radius: 24px;
    line-height: 1;
    transition: background-color .2s ease;
}

.waiw-card-btn:hover {
    background-color: #004a85;
    color: #fff;
}

/* First card in a section with several siblings is treated as the
   lead/overview item and spans the full row, since our real content
   (unlike WWP's evenly-sized blurbs) has one section intro that's far
   longer than the rest. */
.waiw-grid .waiw-card:first-child:nth-last-child(n+3) {
    grid-column: 1 / -1;
}

.waiw-grid .waiw-card:first-child:nth-last-child(n+3) {
    flex-direction: row;
}

.waiw-grid .waiw-card:first-child:nth-last-child(n+3) .waiw-card-image {
    width: 42%;
    aspect-ratio: auto;
    flex-shrink: 0;
}

.waiw-grid .waiw-card:first-child:nth-last-child(n+3) .waiw-card-desc-text {
    -webkit-line-clamp: unset;
}

.waiw-grid .waiw-card:only-child {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto;
    flex-direction: row;
}

.waiw-grid .waiw-card:only-child .waiw-card-image {
    width: 42%;
    aspect-ratio: auto;
    flex-shrink: 0;
}

.waiw-grid .waiw-card:only-child .waiw-card-desc-text {
    -webkit-line-clamp: unset;
}

/* ==========================================================================
   SECTION BACKGROUND RHYTHM
   ========================================================================== */

.waiw-items {
    background: #f6f6f6;
    max-width: 100vw;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* Re-contain the header/grid to the normal content width, since the
   section itself now stretches full-bleed for the background color. */
.waiw-items .waiw-header,
.waiw-items .waiw-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.waiw-why {
    background: #f3f7fd;
}

.waiw-where {
    background: #ffffff;
}

.waiw-testimonials {
    background: #eaf2fb;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.waiw-testimonials .waiw-grid {
    gap: 25px;
}

.waiw-testimonial-card {
    background: #fff;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .12);
    padding: 1.429em;
    display: flex;
    flex-direction: column;
}

.waiw-testimonial-quote {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    font-style: italic;
    margin: 0 0 22px;
    flex: 1 1 auto;
}

.waiw-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.waiw-testimonial-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.waiw-testimonial-name {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    color: #000;
}

.waiw-testimonial-role {
    display: block;
    font-size: .8rem;
    color: #666;
}

@media (max-width: 900px) {
    .waiw-grid {
        grid-template-columns: 1fr;
    }
    .waiw-grid .waiw-card:first-child:nth-last-child(n+3),
    .waiw-grid .waiw-card:only-child {
        flex-direction: column;
    }
    .waiw-grid .waiw-card:first-child:nth-last-child(n+3) .waiw-card-image,
    .waiw-grid .waiw-card:only-child .waiw-card-image {
        width: 100%;
        aspect-ratio: 3 / 2;
    }
}

/* ==========================================================================
   BANNER — dark navy hero, colors pulled directly from woundedwarriorproject.org
   ========================================================================== */

.waiw-banner {
    background-color: #003161;
    background-size: cover;
    background-position: right center;
    min-height: 335px;
    display: flex;
    align-items: center;
    padding: 20px;
    position: relative;
}

.waiw-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #003161 0%, #003161 40%, rgba(0,49,97,.55) 70%, rgba(0,49,97,0) 100%);
}

.waiw-banner-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.waiw-banner-title {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 0 14px;
    max-width: 600px;
}

.waiw-banner-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    max-width: 560px;
    margin: 0;
}

/* ==========================================================================
   INTRO — two-column: body copy left, red CTA stack + Find Support box right
   ========================================================================== */

.waiw-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.waiw-intro-heading {
    font-weight: 700;
    font-size: 1.6rem;
    color: #000;
    margin: 0 0 20px;
}

.waiw-intro-body p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 20px;
}

.waiw-intro-body strong {
    color: #000;
}

.waiw-intro-body a {
    color: #b5121b;
    font-weight: 700;
    text-decoration: none;
}

.waiw-intro-body a:hover {
    text-decoration: underline;
}

.waiw-intro-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waiw-sidebar-btn {
    display: block;
    text-align: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background-color: #b5121b;
    border: 1px solid #b5121b;
    border-radius: 24px;
    transition: background-color .2s ease;
}

.waiw-sidebar-btn:hover {
    background-color: #8f0f16;
    color: #fff;
}

.waiw-support-box {
    background: #fff;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .12);
    padding: 1.429em;
    margin-top: 8px;
}

.waiw-support-box h3 {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    margin: 0 0 10px;
}

.waiw-support-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 14px;
}

.waiw-support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.waiw-support-links a {
    font-size: 14px;
    font-weight: 700;
    color: #b5121b;
    text-decoration: none;
}

.waiw-support-links a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .waiw-intro {
        grid-template-columns: 1fr;
    }
    .waiw-banner-title {
        font-size: 1.7rem;
    }
}

/* ==========================================================================
   HEADER CENTER VARIANT (used by partners/resources/articles headers)
   ========================================================================== */

.waiw-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.waiw-heading-accent {
    text-transform: none;
}

.waiw-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 16px;
}

.waiw-divider .waiw-line {
    width: 56px;
    height: 2px;
    background: #005da5;
}

.waiw-divider .waiw-star {
    color: #005da5;
    font-size: 13px;
}

/* ==========================================================================
   PARTNERSHIPS — tabbed logo/description panel
   ========================================================================== */

.waiw-partner-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.waiw-partner-tab-list {
    display: flex;
    border-bottom: 1px solid #dee2e6;
}

.waiw-partner-tab {
    background: #f6f6f6;
    border: none;
    border-top: 3px solid transparent;
    padding: 14px 22px;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: .85rem;
    color: #333;
    cursor: pointer;
}

.waiw-partner-tab.waiw-tab-active {
    background: #fff;
    border-top-color: #b5121b;
    color: #000;
}

.waiw-partner-panel {
    display: none;
    background: #fff;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .12);
    padding: 2em;
    align-items: center;
    gap: 40px;
}

.waiw-partner-panel.waiw-panel-active {
    display: flex;
}

.waiw-partner-content h3 {
    font-weight: 700;
    font-size: 1.2rem;
    color: #000;
    margin: 0 0 14px;
}

.waiw-partner-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 20px;
}

.waiw-partner-logo {
    flex-shrink: 0;
    width: 180px;
}

.waiw-partner-logo img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 700px) {
    .waiw-partner-panel {
        flex-direction: column-reverse;
    }
    .waiw-partner-tab-list {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   FEATURED QUOTE
   ========================================================================== */

.waiw-quote-section {
    background: #eaedf0;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.waiw-quote-photo img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.waiw-quote-text {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #000;
    line-height: 1.4;
    margin: 0 0 16px;
}

.waiw-quote-role {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #666;
    margin: 0;
}

.waiw-quote-author {
    font-weight: 700;
    font-size: .95rem;
    color: #000;
    margin: 0;
}

@media (max-width: 700px) {
    .waiw-quote-section {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   RESOURCE TILES
   ========================================================================== */

.waiw-resource-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    max-width: 1200px;
    margin: 0 auto;
}

.waiw-resource-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    min-height: 110px;
    color: #fff;
    text-decoration: none;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: .85rem;
    line-height: 1.3;
    transition: opacity .2s ease;
}

.waiw-resource-tile:hover {
    opacity: .88;
    color: #fff;
}

.waiw-tile-plus {
    font-size: 1.3rem;
    font-weight: 400;
}

.waiw-tile-navy  { background-color: #003161; }
.waiw-tile-steel { background-color: #415a68; }
.waiw-tile-green { background-color: #4c7a3f; }
.waiw-tile-gold  { background-color: #b8860b; }
.waiw-tile-red   { background-color: #b5121b; }

@media (max-width: 900px) {
    .waiw-resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   ARTICLES — same card system as the program grid, but with a red button
   ========================================================================== */

.waiw-btn-red {
    background-color: #b5121b;
    border-color: #b5121b;
}

.waiw-btn-red:hover {
    background-color: #8f0f16;
}

/* ==========================================================================
   FAQ ACCORDION + CRISIS SIDEBAR
   ========================================================================== */

.waiw-faq-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    margin-top: 30px;
}

.waiw-faq-item {
    border-bottom: 1px solid #dee2e6;
}

.waiw-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 16px 4px;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: .92rem;
    color: #000;
    text-align: left;
    cursor: pointer;
}

.waiw-faq-icon {
    font-size: 1.2rem;
    font-weight: 400;
    color: #b5121b;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform .2s ease;
}

.waiw-faq-item.waiw-faq-open .waiw-faq-icon {
    transform: rotate(45deg);
}

.waiw-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.waiw-faq-item.waiw-faq-open .waiw-faq-answer {
    max-height: 500px;
}

.waiw-faq-answer p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 16px;
    padding: 0 4px;
}

.waiw-crisis-box {
    background: #f6f6f6;
    padding: 1.429em;
    text-align: left;
}

.waiw-crisis-box img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 16px;
}

.waiw-crisis-box h3 {
    font-weight: 700;
    font-size: 1.05rem;
    color: #000;
    margin: 0 0 10px;
}

.waiw-crisis-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 16px;
}

@media (max-width: 900px) {
    .waiw-faq-layout {
        grid-template-columns: 1fr;
    }
}
