#GlobalNavWrapper {
    --hero-image: url(../../assets/images/csuf-sgmh-gold.jpg);
}

#giving {
    background: #ffffff;
    padding: 38px 0;

    .giving-grid {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .giving-card {
        flex: 1 1 320px;
        min-height: 230px;
        border: 1px solid #d4d4d4;
        border-radius: var(--standard-border-radius);
        padding: 28px 24px;
        color: var(--titan-blue);
        display: flex;
        flex-direction: column;

        span {
            display: block;
            margin-bottom: 8px;
            color: var(--titan-blue);
            line-height: 1.2;
        }

        h3 {
            margin: 0 0 22px;
            color: var(--titan-blue);
            font-weight: 900;
            line-height: 1.25;
        }

        p {
            margin: 0 0 32px;
            color: var(--titan-blue);
            line-height: 1.5;
        }

        a {
            margin-top: auto;
            min-height: 42px;
            background: var(--titan-blue);
            color: #ffffff;
            border-radius: var(--small-border-radius);
            text-decoration: none;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;

            &:hover {
                background: var(--med-blue);
            }
        }
    }
    /* Responsive: (max-width: 900px) */

    @media screen and (max-width: 1200px) {
        padding: var(--space-xl) 0;

        .giving-grid {
            gap: var(--space-md);
        }

        .giving-card {
            min-height: auto;
        }
    }
}

/* Featured report */
#feature-highlight {
    background: #fff;
    padding: 36px 0;

    .feature-highlight-card {
        display: flex;
        align-items: stretch;
        background: var(--titan-blue);
        border-radius: var(--standard-border-radius);
        overflow: hidden;
        box-shadow: var(--medium-box-shadow);
    }

    .feature-highlight-content {
        flex: 1 1 54%;
        padding: 72px 56px;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;

        h2 {
            margin: 0 0 28px;
            color: #fff;
            font-weight: 800;
            line-height: 1.1;
        }

        p {
            margin: 0 0 36px;
            max-width: 500px;
            line-height: 1.7;
        }

        a {
            display: inline-flex;
            align-items: center;
            color: #fff;
            text-decoration: underline;
            font-weight: 700;

            span {
                margin-left: 10px;
                font-size: 18px;
                text-decoration: none;
            }
        }
    }

    .feature-highlight-image {
        flex: 0 0 47%;

        img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }
    }
    /* Responsive: (max-width: 900px) */

    @media screen and (max-width: 1200px) {
        padding: var(--space-xl) 0;

        .feature-highlight-card {
            flex-direction: column;
        }

        .feature-highlight-image {
            order: -1;
            flex: none;

            img {
                width: 100%;
                height: auto;
                aspect-ratio: 16 / 10;
            }
        }

        .feature-highlight-content {
            padding: 40px 28px;
        }
    }
}

/* Featured quote */
#featured-quote {
    background: var(--titan-blue);
    color: #ffffff;
    padding: var(--space-2xl) 0;

    .featured-quote-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
        gap: var(--space-3xl);
        align-items: center;
    }

    .featured-quote-image {
        img {
            width: 100%;
            max-width: 520px;
            height: 520px;
            display: block;
            object-fit: cover;
            border-radius: var(--standard-border-radius);
        }
    }

    .featured-quote {
        h2 {
            color: #ffffff;
            margin-bottom: 24px;
        }
    }

    .featured-quote-copy {
        p {
            max-width: 460px;
            margin: 0 0 var(--space-lg);
        }

        blockquote {
            margin: 0 0 24px;
            font-weight: 800;
            line-height: 1.35;
        }
    }

    .story-author {
        margin-bottom: 36px;

        strong,
        span {
            display: block;
        }

        strong {
            font-weight: 800;
            margin-bottom: 4px;
        }
    }

    .story-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #ffffff;
        text-decoration: underline;

        span {
            font-size: 28px;
            line-height: 1;
        }
    }
    /* Responsive: (max-width: 900px) */

    @media screen and (max-width: 1200px) {
        .featured-quote-layout {
            gap: var(--space-xl);
        }
    }
}

/* FAQ */
#faq {
    background: #fff;
    padding: 78px 0 104px;
    color: var(--titan-blue);

    .faq-heading {
        text-align: center;
        max-width: 840px;
        margin: 0 auto 70px;

        h2 {
            margin: 0 0 32px;
            color: var(--titan-orange-ati);
            font-weight: 900;
            line-height: 1;
        }

        p {
            margin: 0;
            line-height: 1.45;
        }
    }

    .faq-list {
        margin-top: 0;
    }

    .faq-item {
        border-bottom: 1px solid #8dc5e3;
        padding: 0;

        summary {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: var(--space-md);
            padding: 28px 0;
            cursor: pointer;
            list-style: none;
            color: var(--titan-blue);
            font-weight: 900;
            line-height: 1.25;


            &::after {
                content: "⌄";
                flex: 0 0 auto;
                color: var(--titan-blue);
                font-weight: 700;
                line-height: 1;
                transform: rotate(0deg);
                transition: transform 0.2s ease;
            }

            h3 {
                margin: 0;
                font: inherit;
                font-weight: inherit;
                line-height: inherit;
            }
        }

        &[open] {
            summary::after {
                transform: rotate(180deg);
            }
        }

        p {
            margin: -4px 0 28px;
            line-height: 1.55;
            max-width: 1080px;
        }
    }
    /* Responsive: (max-width: 900px) */

    @media screen and (max-width: 1200px) {
        padding: calc(var(--space-xl) + var(--space-sm)) 0;

        .faq-heading {
            text-align: left;
            margin-bottom: 56px;

            h2 {
                margin-bottom: 20px;
            }
        }

        .faq-item {
            summary {
                padding: 24px 0;
            }
        }
    }
}

a {
    .sr-only {
        background-color: white;
        color: black;
    }
}

.alternate {
    .story-link {
        color: white;
    }
}


/* SPECIAL TEMPORARY FIX */


#volunteer-section,
#hire-titans,
#donate-to-a-fund {
    .section-label {
        display: inline-block;
        margin: 0 0 22px;
        padding: 6px 13px;
        border-radius: var(--max-border-radius);
        background: var(--titan-blue);
        color: white;
        font-size: 11px;
        font-weight: 700;
    }

    h2 {
        margin: 0 0 18px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: -0.8px;
    }

    .section-intro {
        margin: 0 0 42px;
        color: var(--titan-blue);
        line-height: 1.6;
    }
}

#volunteer-section {
    background: white;
    padding: var(--space-3xl) 0;

    h2 {
        color: var(--titan-orange-ati);
        font-size: clamp(34px, 4vw, 44px);
    }

    .volunteer-grid {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .volunteer-card {
        flex: 1 1 320px;

        img {
            width: 100%;
            height: 308px;
            display: block;
            object-fit: cover;
            border-radius: var(--standard-border-radius);
            margin-bottom: 24px;
            box-shadow: var(--medium-box-shadow);
        }
    }

    .card-copy {
        h3 {
            margin: 0 0 14px;
            color: var(--titan-blue);
            font-size: 14px;
            font-weight: 900;
        }

        p {
            margin: 0 0 14px;
            color: var(--titan-blue);
            font-size: 12px;
            line-height: 1.65;
            font-weight: 600;
        }
    }
    /* Responsive: (max-width: 1024px) */

    @media screen and (max-width: 1200px) {
        .volunteer-grid {
            gap: var(--space-md);
        }
    }
    /* Responsive: (max-width: 768px) */

    @media screen and (max-width: 1200px) {
        .volunteer-grid {
            gap: var(--space-xl);
        }

        .volunteer-card img {
            height: auto;
            aspect-ratio: 16 / 9;
            margin-bottom: 20px;
        }
    }
}

#hire-titans {
    padding: var(--space-2xl) 40px !important;



    .hire-layout {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: flex-start;
    }

    .hire-image {
        img {
            width: 400px;
            height: 400px;
            display: block;
            object-fit: cover;
            border-radius: var(--standard-border-radius);
        }
    }

    .section-label-orange {
        background: var(--titan-orange);
        color: var(--titan-blue);
        margin-bottom: var(--space-md);
    }

    .hire-copy {
        position: relative;
        height: 100%;

        p.section-label {
            margin-left: 0;
        }

        h2 {
            margin: var(--space-md) 0;
        }

        p:not(.section-label) {
            max-width: 460px;
            margin: 0 0 var(--space-lg);
            font-size: 1rem;
            line-height: 1.6rem;
        }

        a.cta {
            margin-top: auto;
            margin-inline: auto;
            margin-bottom: var(--space-xs);
        }
    }

    .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 175px;
        min-height: 40px;
        background: var(--titan-orange);
        color: var(--titan-blue);
        font-size: 12px;
        font-weight: 900;
        text-decoration: none;
    }

    @media screen and (max-width: 1200px) {
        .hire-layout {
            gap: var(--space-xl);
        }

        .hire-image img {
            max-width: none;
            height: auto;
            aspect-ratio: 4 / 3;
        }
    }
    /* Responsive: (max-width: 480px) */

    @media screen and (orientation: portrait) {
        .button {
            width: 100%;
        }
    }
}

#donate-to-a-fund {
    background: white;
    padding: var(--space-3xl) 0;
    

    h2 {
        color: var(--titan-orange-ati);
        font-size: clamp(34px, 4vw, 44px);
    }

    .fund-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        max-height: none;
        overflow: visible;
    }

    .fund-card {
        display: flex;
        align-items: center;
        min-height: 72px;
        padding: 1rem 1.25rem;
        border: 2px solid var(--titan-blue);
        border-radius: var(--standard-border-radius);
        background: white;
        color: var(--titan-blue);
        font-weight: 800;
        line-height: 1.25;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;

        &::after {
            content: "›";
            margin-left: auto;
            padding-left: 1rem;
            font-size: 1.5rem;
            line-height: 1;
        }

        &:hover {
            background: var(--titan-blue);
            color: white;
            transform: translateY(-2px);
        }

        &:focus-visible {
            outline: 3px solid var(--titan-orange);
            outline-offset: 3px;
        }
    }

    .fund-card-title {
        display: block;
        text-wrap:balance;
    }

    .view-all {
        margin-top: 26px;
        text-align: center;

        a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 150px;
            min-height: 40px;
            border-radius: var(--small-border-radius);
            background: var(--titan-blue);
            color: white;
            font-weight: 800;
            text-decoration: none;
        }
    }

    @media screen and (max-width: 1200px) and (orientation: landscape) {
        .fund-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media screen and (orientation: portrait) {
        padding: calc(var(--space-xl) + var(--space-sm)) 0;

        .fund-grid {
            grid-template-columns: 1fr;
        }

        .fund-card {
            min-height: 64px;
        }
    }
    /* Responsive: (max-width: 480px) */

    @media screen and (orientation: portrait) {
        h2 {
            font-size: 34px;
        }

        .view-all a {
            width: 100%;
        }
    }
}

@media screen and (max-width: 1200px) {
    #volunteer-section,
    #hire-titans,
    #donate-to-a-fund {
        padding-block: 64px;

        .content-area {
            padding-inline: var(--space-md);
        }

        .section-intro {
            margin-bottom: 36px;
        }
    }
}

@media screen and (orientation: portrait) {
    #volunteer-section,
    #hire-titans,
    #donate-to-a-fund {
        padding-block: 48px;

        .content-area {
            padding-inline: 16px;
        }
    }

    #volunteer-section,
    #hire-titans {
        h2 {
            font-size: 38px;
        }
    }
}


a.learn-more {
    display: inline;
    border-bottom: 1px solid currentColor;
    color: var(--titan-blue);
    font-weight: 800;
    text-decoration: none;

    &::after {
        content: "›";
        margin-inline-start: 0.25em;
    }

    &:hover {
        border-bottom-color: transparent;
    }
}
