.pageBannerWrapper {
    position: relative;
    padding-top: calc(104px + 2rem);
    box-sizing: content-box;
    min-height: 350px;
    display: flex;
    overflow: hidden;

    background-color: #76b444d0;
    justify-content: flex-end;
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.noBgWrapper .overlay {
    background: unset !important;
}

.minBgWrapper .overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 70%,
        rgba(0, 0, 0, 1) 100%
    ) !important;
}

.minBgWrapper img,
.noBgWrapper img {
    transform: translateY(30px);
}

.pageBannerWrapper .overlay {
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(
        to bottom,
        rgba(182, 242, 41, 0.25) 0%,
        rgba(104, 192, 33, 0.72) 31%,
        var(--color-secondary)
    );
}
.pageBannerWrapper .backgroundWrapper {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.pageBannerWrapper .bannerContent {
    position: relative;
    color: white;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
}
.pageBannerWrapper img {
    height: 100%;
    position: absolute;
    width: 100%;
    object-fit: cover;
}

.pageBannerWrapper .bannerContent h1 {
    font-family: var(--font-Header);
    font-weight: 400;
    font-size: clamp(22px, 5vw, 48px);
}

.pageBannerWrapper .bannerContent p {
    font-weight: 400;
    margin-top: 0.65rem;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
}

.breadCrumbs a {
    text-decoration: none;
    color: white;
}
.breadCrumbs {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}
.eventsWrapper {
    display: flex;
    gap: clamp(20px, 4vw, 60px);
}

.mainContent {
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 30px);
}
/* Base card styling */
.mainContent .card,
.cardAnnouncement .card {
    position: relative;
    display: flex;
    text-decoration: none;
    color: #606060;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
    width: 100%;
    min-width: 350px;
    overflow: hidden; /* needed for gradient containment */
}

/* TOP-LEFT light glow */
.mainContent .card::before,
.cardAnnouncement .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0) 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}

/* BOTTOM-RIGHT darker gradient */
.mainContent .card::after,
.cardAnnouncement .card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        315deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0) 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}

/* Hover = smooth fade-in */
.mainContent .card:hover::before,
.mainContent .card:hover::after,
.cardAnnouncement .card:hover::before,
.cardAnnouncement .card:hover::after {
    opacity: 1;
}

.mainContent .card img {
    height: 350px;
    position: relative;
    z-index: 20;
    width: 525px !important;
    object-fit: cover;
    aspect-ratio: 3/2;
}

.mainContent .card .cardContent {
    padding: 1rem 25px;
    display: flex;
    width: calc(100% - 525px);
    flex-direction: column;
    text-decoration: none;
    justify-content: center;
    color: #606060;
    position: relative;
    gap: 1.5rem;
}

.filter p {
    text-align: left;
}
.clubContent {
    width: 100% !important;
}
.mainContent .card .cardContent h1 {
    font-size: var(--font-size-lg);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* 👈 number of lines */
    overflow: hidden;
    width: 100%;
}
.mainContent .card .cardContent p {
    font-weight: 300;
}
.boxImgWrapper .card img {
    width: 350px !important;
    aspect-ratio: 1/1 !important;
}

.courseContent .cardContent {
    width: calc(100%) !important;
}
.mainContent .card .cardContent a {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    text-decoration: none;
    align-self: flex-end;
    position: absolute;
    gap: 1rem;
    right: 2rem;
    bottom: 1.5rem;
}
.mainContent .card .cardContent a:hover {
    color: var(--color-primary-hover);
}

.filterWrapper {
    width: 320px;
    position: relative;
    min-width: 280px;
    height: fit-content;
    transition: none !important; /* Prevent jitter/slide when switching to sticky */
}
.filterColumn {
    width: 320px;
    position: relative; /* parent boundary */
}

.filterWrapper p {
    font-weight: 400;
}

.filterWrapper .headerWrapper h1 {
    font-size: 16px;
    font-weight: 500;
    color: #4d4d4d;
    padding-bottom: 8px;
    border-bottom: 1px solid #bfbfbf;
}

.filterWrapper .filterHeader h1 {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 500;
    padding: 1rem 0;
}

.filterContainer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.filterWrapper .filter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filterToggle {
    display: none;
}
.filterCloseWrapper {
    display: none;
}
.filterWrapper * {
    font-style: normal;
}

.announcementContent .cardContent {
    width: 100% !important;
}
.clubContent {
    min-height: 160px !important;
}

@media (min-width: 1024px) {
    .filterColumn {
        width: 320px;
        position: relative;
    }

    /* spacer keeps layout intact */
    .filterSpacer {
        height: var(--filter-height, 0px);
    }

    .filterWrapper {
        position: fixed;
        top: var(--nav-visible-height, 86px);
        width: 320px;

        /* KEY: anchor from container instead of left px */
        right: calc(100vw - (var(--container-width) + var(--container-offset)));
    }
}

@media (min-width: 1024px) {
}
@media (max-width: 1023px) {
    .filterColumn {
        position: fixed;
        top: 91px;
        right: 0;
        height: calc(100vh - 80px);
        width: 70vw;
        max-width: 420px;
        z-index: 9999;

        transform: translateX(100%);
        transition: transform 0.35s ease;
    }
    .filterWrapper {
        height: 100%;
        overflow-y: auto;
        padding: 1.5rem;
        background: #fff;
    }

    .filterColumn.active {
        transform: translateX(0);
    }
    .filterWrapper {
        height: 100%;
        overflow-y: auto;
        padding: 1.5rem;
    }

    body.filter-open .eventsWrapper {
        pointer-events: none;
    }
    .filterColumn *::before,
    .filterColumn *::after {
        pointer-events: none;
    }
    .pageBannerWrapper {
        padding-top: 80px;
    }
    body.filter-open .filterColumn {
        pointer-events: auto;
    }
}
@media (max-width: 1024px) {
    .pageBannerWrapper .bannerContent {
        bottom: 20px;
    }

    .filterWrapper {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        z-index: 1000;
        padding: 2rem 1.5rem;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.35s ease;
    }
    .mainContent {
        width: 100%;
    }
    .filterWrapper.active {
        pointer-events: auto;
        transform: translateX(0);
    }
    .filterToggle {
        display: inline-flex;
        width: fit-content;
        align-items: center;
        gap: 0.2rem;
        padding: 0.3rem 1rem;
        border-radius: 100px;
        background: rgb(177, 177, 177);
        color: white;
        border: none;
        margin-left: auto;
        letter-spacing: 1px;
        cursor: pointer;
        font-size: 14px;
    }
    .filterCloseWrapper {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 1rem;
    }

    .filterClose {
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        padding: 0.25rem;
    }

    .filterClose:hover {
        cursor: pointer;
        color: var(--color-primary);
    }
    .eventsWrapper {
        flex-direction: column;
    }
}

@media (max-width: 800px) {
    .mainContent .card,
    .cardAnnouncement .card {
        flex-direction: column;
    }
    .mainContent .card img {
        width: 100% !important;
        max-width: unset;
        height: auto;
    }
    .mainContent .card .cardContent {
        padding: 1.3rem;
        width: 100%;
    }
}
@media (max-width: 768px) {
    /* .pageBannerWrapper .bannerContent p{
        width: calc(100% - calc(var(--padding-sides) + var(--padding-sides)));
    } */
    .announcementContent a {
        width: 100% !important;
    }
    .card {
        min-width: unset !important;
    }
    .pageBannerWrapper .bannerContent {
        width: 100%;
    }
    .pageBannerWrapper {
        min-height: auto;
        padding-top: 91px;
        padding-bottom: 2.5rem;
    }
    .pageBannerWrapper .bannerContent {
        bottom: unset;
        padding-top: 2rem;
    }
    .pageBannerWrapper .overlay {
        position: absolute;
        inset: 0;
    }
    .filterWrapper {
        width: 100%;
        max-width: none;
    }
    .eventsWrapper.section {
        padding: 0 !important;
    }
}
@media (max-width: 800px) {
}
@media (max-width: 480px) {
    .boxImgWrapper .card .img {
        height: auto !important;
        aspect-ratio: 1/1 !important;
    }

    .pageBannerWrapper .bannerContent p {
        width: 100%;
    }
    .mainContent .card img {
        width: 100% !important;
        max-width: unset;
        height: auto;
    }
    .staffProfileWrapper .staff {
        width: 100%;
    }
    .pageBannerWrapper .bannerContent h1 {
        font-size: 2.5rem;
    }

    .pageBannerWrapper .bannerContent p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .breadCrumbs {
        font-size: 0.85rem;
    }
    .courseContent .card img {
        width: 100% !important;
    }
    .mainContent .card .cardContent a {
        position: relative;
        right: 0;
        bottom: 0;
    }
    .mainContent .card .cardContent {
        padding: 1.3rem;
        width: 100%;
    }
    .courseContent .coursePreHeader {
        font-size: 14px !important;
        color: #333;
    }
}
