.activities-wrapper {
    margin-block-end: 2rem;
    position: relative;
    width: 100%;
}
.activities-wrapper .content-container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
}
.activities-wrapper img.nerd-inner-logo {
    flex: 1 0 30%;
    margin-block-start: 1rem;
    max-width: 300px;
    width: 100%;
}
.activities-wrapper h1 {
    color: var(--nerd-green);
    font-size: 5rem;
}
.activities-wrapper h2 {
    color: white;
    font-size: 2.4rem;
    line-height: 1.2;
    max-width: 60ch;
    margin: 1rem 0 0;
    word-break: break-word;
    -webkit-text-stroke: 0;
}
.activities-wrapper h1 span {
    color: var(--nerd-mustard);
}
.cinta-inner {
    height: 30px;
    object-fit: cover;
    object-position: left center;
    position: absolute;
    bottom: -3rem;
    right: 0;
    width: 100%;
    z-index: 2;
}

.activities-inner {
    background-color: var(--nerd-green);
    padding: 3rem clamp(2rem, 10vw, 5rem);
    position: relative;
}
.card-wrapper:nth-child(1) { --index: 1}
.card-wrapper:nth-child(2) { --index: 2}
.card-wrapper:nth-child(3) { --index: 3}
.card-wrapper:nth-child(4) { --index: 4}
.card-wrapper:nth-child(5) { --index: 5}
.card-wrapper:nth-child(6) { --index: 6}
.card-wrapper:nth-child(7) { --index: 7}

.faq-inner {
    background-color: var(--nerd-green);
    line-height: 0;
    position: relative;
    text-align: center;
}
.activities.flex-wrapper {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(50ch, 100%), 1fr));
    margin: auto;
    max-width: 1800px;
}

.activities .activity-box {
    background-color: white;
    border-radius: 0 0.25rem 0.25rem 0;
    box-shadow: 2px 3px 8px #007d7a;
    display: flex;
    height: 100%;
    overflow: clip;
}
.activities .activity-pic {
    border-right: 1px dashed var(--nerd-green);
    flex: 0 0 30%; /* Image takes up 25% of the card's width */
    min-height: 100%;
    line-height: 0;
    overflow: clip;
}

.activities .activity-pic img {
    object-fit: cover;
    object-position: center;
    height: 100%;
    width: 100%;
}

.activities .activity-info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.activities .activity-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.activities .tag {
    background-color: var(--nerd-yellow);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    color: #333;
}

.activities .activity-title {
    font-size: 1.5rem;
    padding-top: 0.5em;
    margin: 0;
    margin-bottom: 0.5rem;
    text-align: left;
    color:black;
}

.activities .activity-description {
    font-size: 1rem;
    color: #666;
    margin-block: .5rem 2rem;
    text-align: left;
}

.activities .activity-meta {
    align-items: center;
    color: #666;
    display: flex;
    font-size: 0.85rem;
    margin-block-start: auto;
    justify-content: space-between;
}

.activities .activity-meta svg {
    margin-inline-end: 0.5rem;
    width: 1rem;
    height: 1rem;
}
.activities .activity-time svg path { stroke: var(--nerd-green); }
.activities .activity-location svg path { stroke: var(--nerd-red); }

.activities .activity-time,
.activities .activity-location {
    display: flex;
    align-items: center;
}
@media screen and (max-width: 56.24em) {
    .activities-wrapper { margin-block-start: 7rem; }
}
@media screen and (max-width: 40em) /* 640px */{
    .activities-wrapper img.responsive-image, .activities-wrapper .title-wrapper {
        flex: 1 0 100%;
    }
    .activities-wrapper h1 {
        font-size: 3.4rem;
    }
    .activities-wrapper h2 {
        font-size: 2rem;
    }
    .activities .activity-box {
        border-radius: 0 0 0.25rem 0.25rem;
        flex-direction: column;
        height: auto;
    }
    .activities .activity-pic {
        border: 0;
        border-bottom: 1px dashed var(--nerd-green);
        flex: none;
        height: 14em;
    }
    .card-wrapper {
        position: sticky;
        top: 2vh;
        padding-top: calc(var(--index) * 1em);
    }
    .activities-wrapper img.nerd-inner-logo { margin-block-end: 1rem; max-width: 180px; order: -1; }
    @supports (animation-timeline: view()) {
        @keyframes scaleCard {
            to { transform: scale(1) }
        }

        .activities .activity-box {
            transform: scale(1.1);
            transform-origin: 50% 0%;
            will-change: transform;

            animation: linear scaleCard both;
            animation-timeline: view();
            animation-range: 0 50%;
        }
    }
}
