/* CCCSL Events — front-end styles */

.cccsl-events {
    --cccsl-purple: #4e2f8a;
    --cccsl-orange: #EE5114;
    font-family: "Brandon Grotesque", sans-serif;
    margin: 24px 0;
}

.cccsl-events__list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.cccsl-events__heading {
    margin: 48px 0 16px;
    font-size: 22px;
    font-weight: 600;
    color: var(--cccsl-purple);
}

.cccsl-events__empty {
    padding: 24px;
    background: #f5f3fa;
    border-radius: 12px;
    color: var(--cccsl-purple);
    text-align: center;
}

/* Card */
.cccsl-card {
    display: grid;
    grid-template-columns: 50% 50%;
    border-radius: 12px;
    overflow: hidden;
    min-height: 380px;
    background: var(--cccsl-purple); /* Right side purple background */
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* Initial state for scroll animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.cccsl-card.cccsl-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.cccsl-card--past { opacity: 0.85; }


.cccsl-card__content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* White left side for Purple cards */
.cccsl-card--white .cccsl-card__content {
    background: #ffffff;
    color: #333;
}

/* Orange left side for Orange cards */
.cccsl-card--orange .cccsl-card__content {
    background: var(--cccsl-orange);
    color: #ffffff;
}

.cccsl-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.cccsl-card__badge {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1;
}

.cccsl-card__badge--category {
    background: rgba(0, 0, 0, 0.1);
}
.cccsl-card--orange .cccsl-card__badge--category {
    background: rgba(255, 255, 255, 0.2);
}

.cccsl-card__title {
    font-size: 23px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4em;
    letter-spacing: 0.02em;
    margin:0;
}

.cccsl-card--white .cccsl-card__title {
    color: var(--cccsl-orange);
}

.cccsl-card--orange .cccsl-card__title {
    color: var(--cccsl-purple);
}

.cccsl-card__meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    margin: 7px 0px;
}

.cccsl-card--white .cccsl-card__meta { color: #666; }
.cccsl-card--orange .cccsl-card__meta { color: #fff; }

.cccsl-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cccsl-card__desc {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8em;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cccsl-card--white .cccsl-card__desc { color: #555; }
.cccsl-card--orange .cccsl-card__desc { color: #fff; }

.cccsl-card__cta {
    align-self: flex-start;
    background: url('../images/button-pruple.webp') center / contain no-repeat;
    background-color: transparent;
    color: #fff;
    width: 280px;
    height: 80px;
    max-width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
    text-align: center;
}

.cccsl-card__cta span {
    display: none; /* Hide the arrow from PHP template */
}

/* White cards: purple button image, white text */
.cccsl-card--white .cccsl-card__cta {
    background-image: url('../images/button-pruple.webp');
    color: #fff;
}

/* Orange cards: white button image, purple text */
.cccsl-card--orange .cccsl-card__cta {
    background-image: url('../images/button-white.webp');
    color: var(--cccsl-purple);
}

.cccsl-card__cta:hover {
    color: var(--cccsl-orange);
}

.cccsl-card__cta:focus {
    outline: 2px solid var(--cccsl-orange);
    outline-offset: 2px;
}

/* Media */
.cccsl-card__media {
    position: relative;
    background: var(--cccsl-purple);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cccsl-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cccsl-card__image--placeholder {
    width: 100%;
    height: 100%;
    min-height: 240px;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
}

.cccsl-card__partner {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--cccsl-orange);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cccsl-card--past .cccsl-card__partner {
    background: #888;
}

/* Responsive: stack on mobile */
@media (max-width: 720px) {
    .cccsl-card {
        grid-template-columns: 1fr;
    }
    .cccsl-card__media {
        order: -1;
        min-height: 200px;
    }
    .cccsl-card__content {
        padding: 20px;
    }
    .cccsl-card__title {
        font-size: 19px;
    }
}

/* Infinite scroll */
.cccsl-events__sentinel {
    height: 1px;
}

.cccsl-events__spinner {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

.cccsl-events__spinner-dot {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(78, 47, 138, 0.15);
    border-top-color: var(--cccsl-purple);
    border-radius: 50%;
    animation: cccsl-spin 0.7s linear infinite;
}

@keyframes cccsl-spin {
    to { transform: rotate(360deg); }
}


/* Event Meta widget */
.cccsl-ev-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cccsl-ev-meta__row {
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin: 0;
    padding: 0;
}
.cccsl-ev-meta--inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}
.cccsl-ev-meta--no-bullets,
.cccsl-ev-meta--no-bullets .cccsl-ev-meta__row {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
.cccsl-ev-meta--no-bullets .cccsl-ev-meta__row::before,
.cccsl-ev-meta--no-bullets .cccsl-ev-meta__row::marker {
    content: none !important;
    display: none !important;
}
.cccsl-ev-meta__icon { display: inline-flex; align-items: center; }
.cccsl-ev-meta__icon svg { fill: currentColor; }
.cccsl-ev-meta__icon i   { color: inherit; }

/* Event CTA widget — background-image button variants (match listing card CTA) */
.cccsl-ev-cta__btn--image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 80px;
    max-width: 100%;
    background-color: transparent !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cccsl-ev-cta__btn--on-white  { background-image: url('../images/button-pruple.webp'); color: #fff !important; }
.cccsl-ev-cta__btn--on-purple { background-image: url('../images/button-white.webp');  color: var(--cccsl-purple) !important; }
.cccsl-ev-cta__btn--image:hover  { color: var(--cccsl-orange) !important; }

/* Event Status widget — base chip layout */
.cccsl-ev-status {
    display: inline-block;
    color: #fff;
    background-color: #4e2f8a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}
