/* Global Variables */

:root {
    --standard-text-shadow: 1px 1px 1px #00000055;
    --image-text-shadow: 1px 1px 2px rgb(0 0 0 / 90%);
    --medium-box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.2);
    --thin-box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.2);
    --bold-box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.9);
    --floating-medium-box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    --standard-border-radius: 8px;
    --small-border-radius: 4px;
    --max-border-radius: 999px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 72px;
    --space-3xl: 96px;
}

#page-overview {
    padding: 20px;
    background-color: var(--bright-bg);
    display:flex;
    flex-wrap:wrap;
    flex-direction:row;
    justify-items:center;
    align-content:center;

    p {
        margin: 0 auto;
        max-width: 1200px;
        text-wrap:balance;
        text-align:center;
        color: var(--titan-blue);
        font-weight: bold;
        font-size: 1.2rem;
    }
}

/* Overrides */

#GlobalNavWrapper {
    --hero-image: url(../../assets/images/alumni-hub-banner-large.jpg);
    height: calc(100vh - 90px);
    background-image: linear-gradient( to top, rgb(0 0 0 / 70%) 0%, rgb(0 0 0 / 0%) 25% ), var(--hero-image);
    /* Responsive: (max-width: 600px) */
    @media screen and (orientation: portrait) {
        background-image: linear-gradient( to top, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 0%) 50% ), var(--hero-image);
    }
    /* Responsive: (max-width: 950px) */
    @media screen and (max-width: 1200px) {
        background-position: center;
        background-size: cover;
        max-height: 400px;
    }
}

#HomeCallout {
    background-color: rgb(0 0 0 / 0);
    border-top: none;
    text-align: center;
    left: 0;
    right: 0;
    height: auto;

    .callout-content h1 {
        font-family: "museo-sans-display", sans-serif;
        font-size: 4rem;
        text-transform: uppercase;
        font-weight: bold;
        text-shadow: 2px 2px 2px black;
        text-wrap: balance;
    }

    .callout-content p {
        font-weight: bold;
        text-shadow: var(--standard-text-shadow);
        text-wrap: balance;
    }

    h1 > span {
        color: white;
    }

    .abbreviated {
        display: none;
    }

    @media screen and (max-width: 1200px) {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        min-width: 100px !important;
        padding-inline: 10px;
        transition: opacity 0.1s ease-out;
        opacity: 1;

        &.fade-away {
            opacity: 0;
        }

        .callout-content h1 {
            font-size: 2rem;
        }

        .callout-content p {
            font-size: 1rem;
        }
    }

    @media screen and (orientation: portrait) {
        .detailed {
            display: none;
        }

        span.abbreviated {
            display: inline;
        }

        p .abbreviated {
            font-weight: normal;
            font-size: 1rem;
            text-shadow: 0 0 5px black;
        }
    }
}




.limited-width,
.content-area,
.callout-content {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 0.5rem;
}

main section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#site-footer {
    margin-top: 0 !important;
}

/* Alumni Hub Navigation */

#AlumniHubNavigation {
    animation: navReveal 250ms ease;
    margin: 0 auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: var(--space-md);
    align-items: center;
    padding-top: 10px;
    padding-bottom: 20px;
    padding-inline: 10px;
    background-color: var(--titan-blue);
    color: white;
    position: sticky;
    top: 0;
    z-index: 3;
    box-shadow: var(--floating-medium-box-shadow);

    a {
        color: white;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }

        &.cta {
            color: black;
            background-color: var(--titan-orange);
            text-transform: none;

            &:hover {
                color: white;
                background-color: var(--titan-blue);
            }
        }
    }
}

@keyframes navReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Global Section Styles */

:where(#Default > section) {
    min-height: 80px;
    padding-block: 20px;
    color: var(--titan-blue);
    background-color: white;

    h2 {
        color: var(--titan-orange-ati);
        font-size: 3rem;
        font-weight: bold;
    }

    .section-label {
        display: inline-block;
        margin: 10px auto 10px 10px;
        padding: 6px 14px;
        border-radius: var(--max-border-radius);
        color: white;
        background-color: var(--titan-blue);
        font-size: 0.8rem;
        font-weight: 700;
    }

    &.alternate {
        padding-block: var(--space-xl);
        color: white;
        background-color: var(--titan-blue);

        h2 {
            color: white;
        }

        .section-label {
            color: var(--titan-blue);
            background-color: white;
        }
    }

    &.bright {
        background-color: var(--bright-bg);
        color: black;

        h2 {
            color: var(--titan-blue);
        }
    }
}

#Default {


    .section-intro {
        
        margin-bottom: var(--space-xl);
        font-size: 1.1rem;
        
    }
}

/* Helpful Links */

#helpful-links {
    padding: 50px 20px 40px;
    color: white;
    background-color: var(--titan-blue);
    background-image: url(/GlobalComponents/assets/images/bg-stats.jpg);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
    border-top: 5px solid var(--titan-orange);

    h2 {
        color: var(--titan-orange-ati);
        font-family: "museo-sans-display", sans-serif;
        font-size: 3.7rem;
        font-style: normal;
        font-weight: 900;
        text-align: center;
        text-transform: uppercase;
    }

    .content.helpful-links {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
        align-items: center;
        max-width: 1000px;
        margin: 80px auto;
    }

    a.helpful-link-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 175px;
        height: 175px;
        margin-bottom: 0;
        border-bottom: 5px solid var(--titan-orange);
        border-radius: var(--standard-border-radius);
        color: white;
        background-color: rgba(200, 200, 200, 0.2);
        font-weight: bold;
        text-decoration: none;
        cursor: pointer;
        transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;

        &:hover,
        &:focus-visible {
            transform: translateY(-4px);
            border-bottom-color: var(--titan-orange-darkbg);
            background-color: rgba(255, 255, 255, 0.28);
            box-shadow: var(--floating-medium-box-shadow);

            .helpful-link-desc {
                text-decoration: underline;
                text-decoration-color: var(--titan-orange);
                text-underline-offset: 3px;
            }

            .link-icon {
                transform: scale(1.08);
            }
        }

        &:focus-visible {
            outline: 3px solid white;
            outline-offset: 4px;
        }
    }

    .helpful-link-desc {
        margin: 5px auto;
        padding: 0 5px;
        text-align: center;
    }

    .link-icon {
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        margin: 16px auto;
        border: 5px solid white;
        border-radius: 50%;
        background-color: var(--titan-orange-ati);
        transition: transform 0.15s ease;

        img {
            max-width: 24px;
            max-height: 24px;
        }
    }
    /* Responsive: (max-width: 950px) */

    @media screen and (max-width: 1200px) {
        overflow-x: hidden;

        h2 {
            font-size: 3.4rem;
        }
    }
}

#AlumniHubNavigation {
    transition: transform 0.3s ease-out;
    transform: translateX(0);
}

.fly-right {
    transform: translateX(100vw) !important;
    max-height: 148px !important;
    overflow-y: hidden !important;
}


.pop {
    box-shadow: var(--medium-box-shadow);
}


/* Extra small screen fixes */

#HomeCallout h1 > span {
    color: white;
}

#HomeCallout .abbreviated {
    display: none;
}

/* Screen Reader Only */
.sr-only {
    color: white !important;
    background-color: black !important;
}
