:root {
    --topperFontSize: clamp(2.2125rem, 2.6vw, 2.875rem);
    --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
    --bodyTextColorWhite: white;
}

    .cs-topper {
        font-size: var(--topperFontSize);
        line-height: 1.2em;
        text-transform: uppercase;
        text-align: inherit;
        letter-spacing: .1em;
        font-weight: 700;
        color: white;
        margin-bottom: 0.25rem;
        display: block;
        font-family: serif;
        text-shadow: 0px 4px 15px rgba(227, 227, 227, 0.5), 0px 0px 5px rgba(180, 180, 255, 0.3);
        filter: brightness(300%);
    }
    
    /*-- -------------------------- -->
    <---            Hero            -->
    <--- -------------------------- -*/

    /* Mobile - 360px */
    @media only screen and (min-width: 0rem) {
    #hero-1946 {
        padding: var(--sectionPadding);
        /* 160px - 200px */
        padding-top: clamp(10rem, 20vw, 12.5rem);
        overflow: hidden;
        position: relative;
        z-index: 1;
    }
    #hero-1946 .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 1;
    }
    #hero-1946 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: center;
        width: 100%;
        /* 40px - 52px */
        margin-bottom: clamp(2.5rem, 5vw, 3.25rem);
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: center;
        position: relative;
        z-index: 1;
        justify-content: space-around;
    }
    #hero-1946 .cs-flex {
        /* prevents flexbox from squishing it */
        flex: none;
        margin-bottom: 1rem;
    }
    #hero-1946 .cs-title {
        /* 39px - 61px */
        font-size: clamp(4.438rem, 7vw, 5.813rem);
        color: white;
        text-shadow: 0px 4px 15px rgba(227, 227, 227, 0.5), 0px 0px 5px rgba(180, 180, 255, 0.3);
        filter: brightness(300%);
        font-family: 'Dancing Script', cursive;
        font-weight: bold;
        max-width: 35ch;
        text-align: center;
        /* letter-spacing: 2rem; */
    }
    #hero-1946 .cs-text {
        margin-bottom: 1.25rem;
        color: white;
        backdrop-filter: blur(25px);
        border-radius: 1rem;
        padding: 1rem;
    }
    #hero-1946 .cs-button-solid {
        font-size: 2rem;
        font-weight: 700;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-align: center;
        text-decoration: none;
        min-width: 9.375rem;
        margin: 0;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
        /* 32px - 48px */
        padding: 0 clamp(2rem, 4vw, 3rem);
        backdrop-filter: blur(15px);
        color: var(--bodyTextColorWhite);
        display: inline-block;
        position: relative;
        z-index: 1;
        transition: color 0.3s;
        transition: background-color 0.3s;
        border-radius: 1rem;
        margin-top: 3rem;
        max-width: 20ch;
    }
    #hero-1946 .cs-button-solid:hover {
        background-color: var(--primary);
        filter: blur(25%);
    }
    #hero-1946 .cs-picture {
        width: 100%;
        /* 280px - 510px */
        height: clamp(17.5rem, 58.6vw, 31.875rem);
        /* 16px - 20px */
        margin-bottom: clamp(1rem, 2vw, 1.25rem);
        display: block;
        position: relative;
    }
    #hero-1946 .cs-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 2.5rem;
        position: absolute;
    }

    #hero-1946 .cs-card-group {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: clamp(1rem, 2.3vw, 1.25rem);
    }
    #hero-1946 .cs-item {
        list-style: none;
        width: 100%;
        min-height: 350px;
        border-radius: 1.25rem;
        overflow: hidden;
        position: relative;
        z-index: 1;
        transition: border-color .3s;
        /* Glassmorphism background from old CSS */
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5), inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
    }

    .cs-item:not(:first-child){
        min-height: 350px;
    }
    #hero-1946 .cs-item .cs-picture {
        /* Makes picture the full background */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        display: block;
    }
    #hero-1946 .cs-item .cs-picture:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0) 60%);
        /* Start position: translated down by 100% */
        transform: translateY(100%);
        transition: transform .4s ease-in-out;
        z-index: 0;
    }
    #hero-1946 .cs-item .cs-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    #hero-1946 .cs-info {
        position: absolute;
        bottom: clamp(1.5rem, 3vw, 2rem);
        left: clamp(1.5rem, 3vw, 2rem);
        right: clamp(1.5rem, 3vw, 2rem);
        z-index: 1;
        transition: all .4s ease-in-out;
    }
    #hero-1946 .cs-name {
        font-size: 1.25rem;
        line-height: 1.5em;
        margin: 0 0 .5rem 0;
        color: #fff;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
        transition: all .3s ease-in-out;
    }

    /* The picture element now also serves as the container for the gradient overlay */
    #hero-1946 .cs-picture-class {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        display: block;
    }
    #hero-1946 .cs-job {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        line-height: 1.5em;
        margin: 0;
        color: var(--bodyTextColorWhite);
        /* Hide the text */
        opacity: 0;
        max-height: 0;
        transform: translateY(1rem);
        transition: opacity .3s ease-in-out .1s, max-height .4s ease, transform .4s ease;
    }
    #hero-1946 .cs-item:hover {
        cursor: pointer;
        border-color: var(--primary);
    }
    /* On hover, the gradient "pulls up" into view */
    #hero-1946 .cs-item:hover .cs-picture:before {
        transform: translateY(0);
    }
    /* On hover, the text group moves to the top */
    #hero-1946 .cs-item:hover .cs-info {
        bottom: auto;
        top: clamp(1.5rem, 3vw, 2rem);
    }
    #hero-1946 .cs-item:hover .cs-name {
        color: var(--primary);
    }
    /* On hover, the description text becomes visible */
    #hero-1946 .cs-item:hover .cs-job {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }

    /* Gradient Overlay - initially hidden below the card */
    #hero-1946 .cs-picture-class::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0) 60%);
        /* Start position: translated down by 100% (its own height) */
        transform: translateY(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 0;
    }

    /* On hover, the gradient "pulls up" into view */
    #hero-1946 .cs-item:hover .cs-picture-class::after {
        transform: translateY(0);
    }

    #hero-1946 .cs-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* Text group is positioned absolutely at the bottom */
    #hero-1946 .cs-text-group {
        position: absolute;
        /* Use clamp to match original padding */
        bottom: clamp(1.5rem, 3vw, 2rem);
        left: clamp(1.5rem, 3vw, 2rem);
        right: clamp(1.5rem, 3vw, 2rem);
        z-index: 1;
        transition: all 0.4s ease-in-out;
    }

    /* On hover, the text group moves to the top */
    #hero-1946 .cs-item:hover .cs-text-group {
        bottom: auto;
        top: clamp(1.5rem, 3vw, 2rem);
    }

    #hero-1946 .cs-h3 {
        font-size: 1.25rem;
        line-height: 1.5em;
        margin: 0 0 0.5rem 0;
        color: #fff; /* White text for better contrast */
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.7); /* Shadow for readability */
        transition: all 0.3s ease-in-out;
    }

    #hero-1946 .cs-item:hover .cs-h3 {
        color: var(--primary);
    }

    /* Paragraph text is hidden initially */
    #hero-1946 .cs-item-text {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        line-height: 1.5em;
        margin: 0;
        color: var(--bodyTextColorWhite);
        /* Hide the text */
        opacity: 0;
        max-height: 0;
        transform: translateY(1rem);
        transition: opacity 0.3s ease-in-out 0.1s, max-height 0.4s ease, transform 0.4s ease;
    }

    /* On hover, the text becomes visible */
    #hero-1946 .cs-item:hover .cs-item-text {
        opacity: 1;
        max-height: 200px; /* Set to a value larger than the text's height */
        transform: translateY(0);
    }
    #hero-1946 .cs-item:hover {
        border-color: var(--primary);
    }
    #hero-1946 .cs-item:hover .cs-h3 {
        color: var(--primary);
    }
    #hero-1946 .cs-item:hover .cs-icon {
        transform: rotateY(360deg);
    }
    #hero-1946 .cs-icon-picture {
        margin-bottom: 1.25rem;
        perspective: 700px;
        transform-style: preserve-3d;
    }
    #hero-1946 .cs-icon {
        width: 2.5rem;
        height: auto;
        display: block;
        transition: transform 0.5s;
        filter: invert(1);
    }
    #hero-1946 .cs-h3 {
        font-size: 1.25rem;
        line-height: 1.5em;
        text-align: inherit;
        margin: 0;
        margin-bottom: 0.75rem;
        color: var(--headerColor);
        transition: color 0.3s;
    }
    #hero-1946 .cs-item-text {
        /* 14px - 16px */
        font-size: clamp(1, 2.5vw, 1.2rem);
        line-height: 1.5em;
        text-align: inherit;
        margin: 0;
        color: var(--bodyTextColorWhite);
    }
    }
    /* Tablet - 768px */
    @media only screen and (min-width: 48rem) {
    #hero-1946 .cs-text {
        font-size: 1.75rem;
    }
    #hero-1946 .cs-card-group {
        align-items: stretch;
    }
    #hero-1946 .cs-item {
        width: 48.3%;
    }
    }
    /* Small Desktop - 1024px */
    @media only screen and (min-width: 64rem) {
    #hero-1946 .cs-content {
        display: flex;
        flex-direction: column;
    }
    #hero-1946 .cs-title {
        max-width: 20ch;
    }
    #hero-1946 .cs-item {
        grid-column: span 3;
    }
    }
    /* Large Desktop 1300px */
    @media only screen and (min-width: 81.25rem) {
    #hero-1946 .cs-title {
        margin: 0;
    }
    #hero-1946 .cs-container {
        flex-direction: column;
    }
    #hero-1946 .cs-content {
        text-align: left;
        max-width: 80rem;
        gap: 1.25rem;
        flex-direction: row;
        align-items: center;
    }
    #hero-1946 .cs-flex {
        width: 80rem;
        margin-bottom: 1rem;
    }
    #hero-1946 .cs-item {
        /* 4 items per row */
        width: 23.5%;
    }
    }
                                

    html, body {
    width: 100%;
    height: 100%;
    overflow-x:hidden;
    }

    .x {
    color: white;
    font-size: 6em;
    position: absolute;
    }

    .goldText {
        /* 1. Set the background to your desired gradient */
        background: linear-gradient(90deg, #f4d981, #ffd700, #fff5c3, #f4c529);

        /* 2. Clip the background to the text shape */
        -webkit-background-clip: text;
        background-clip: text;

        /* 3. Make the text color transparent to reveal the gradient */
        color: transparent;
        filter: blur(.6px);
    }
    .cs-title-wrapper {
        position: relative;
        /* This ensures the wrapper doesn't cause weird spacing in the flex layout */
        line-height: 1;
        gap: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 3rem;
        align-items: center;
    }
    .sparkle-zone {
        position: absolute;
        overflow: hidden;
        z-index: 1;
        pointer-events: none;
        width: 100%;
        height: 90%;
        bottom: 0%;
        left: -3em;
        border-radius: 45%;
        transform-origin: center;
        rotate: -5deg;
    }
    .sparkle-zone .glitter {
        position: absolute;
        height: auto;
        pointer-events: none;
    }

    


    .foil {
    /* Apply the animated gradient background */
        background: linear-gradient(
            48deg,
            #e3c1f4,
            #d9d7ed,
            #dff7f1,
            #acf0ff,
            #e3c1f4,
            #d9d7ed,
            #dff7f1,
            #acf0ff,
            #e3c1f4
        );
        background-size: 200% 200%;
        animation: foil 8s ease infinite;

        /* --- The Fixes --- */
        /* 1. Clip the background to the text shape */
        -webkit-background-clip: text;
        background-clip: text;

        /* 2. Make the text color transparent to reveal the background */
        color: transparent;

        /* Optional: Remove fixed width/height to let text flow naturally */
        width: auto;
        height: auto;
    }

    /* 3. Wrap the animation steps in a correctly named @keyframes rule */
    @keyframes foil {
    0% {
        background-position: 84% 0;
    }
    50% {
        background-position: 17% 100%;
    }
    100% {
        background-position: 84% 0;
    }
    }

