﻿/* Base styling for the section */
.ccEventList {
    font-family: 'Vazirmatn', 'Noto Sans', sans-serif;
    margin: 1.5rem 0;
    color: #222;
}

    /* Headers */
    .ccEventList .eventListHeader {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid #ccc;
        padding-bottom: 0.25rem;
        color: #1a1a1a;
    }

    /* Lists */
    .ccEventList .eventListItems {
        list-style: none;
        padding: 0;
        margin: 0 0 1.5rem 1rem;
    }

    /* Each event item as row */
    .ccEventList .eventListItem {
        padding: 0.5rem;
        /* margin-bottom: 0.5rem; */
        background: #fff;
        border: 0 solid #ccc;
        border-top-width: 1px;
        display: flex;
        max-width: 55em;
        transition: background 0.2s;
    }

        .ccEventList .eventListItem:hover {
            background-color: #f5f5f5;
        }

        /* Event link styling as flex row */
        .ccEventList .eventListItem a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            text-decoration: none;
            color: inherit;
            gap: 1rem;
        }

    /* Left side: Title */
    .ccEventList .eventItemLeft {
        flex: 1 0 30%;
    }

    .ccEventList .eventItemTitle {
        font-size: 1.1rem;
        margin: 0;
    }

    /* Right side: Details */
    .ccEventList .eventItemRight {
        flex: 1 1 30%;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

        .ccEventList .eventItemRight.evText .colGrp {
            border-left: 1px solid #ccc;
            padding-left: 1rem !important;
        }

    .ccEventList .eventDate,
    .ccEventList .eventLocation,
    .ccEventList .eventSummary {
        margin: 0.1rem 0;
    }

    /* Event date with icon */
    .ccEventList .eventDate {
        font-size: 0.85rem;
        color: #555;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

        .ccEventList .eventDate::before {
            font-size: 0.9rem;
        }

    /* Event location with icon */
    .ccEventList .eventLocation {
        font-size: 0.85rem;
        color: #666;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

        .ccEventList .eventLocation::before {
            font-size: 0.9rem;
        }

    /* Event summary */
    .ccEventList .eventSummary {
        font-size: 0.9rem;
        color: #333;
    }

    /* Sitefinity pager */
    .ccEventList .sfPager {
        display: flex;
        gap: 0.4rem;
        flex-wrap: wrap;
        margin-top: 1rem;
        align-items: center;
    }

        .ccEventList .sfPager a,
        .ccEventList .sfPager span {
            padding: 0.25rem 0.5rem;
            border: 1px solid #ccc;
            border-radius: 4px;
            text-decoration: none;
            color: #222;
            font-size: 0.85rem;
            transition: background 0.2s, color 0.2s;
        }

            .ccEventList .sfPager a:hover {
                background-color: #007acc;
                color: #fff;
            }

    .ccEventList .sfPagerCurrent {
        background-color: #007acc;
        color: #fff;
        border-color: #007acc;
    }

/* Responsive: stack title above text */
@media (max-width: 768px) {
    .ccEventList .eventListItem a {
        flex-direction: column;
        align-items: flex-start;
    }

    .ccEventList .eventItemLeft,
    .ccEventList .eventItemRight {
        flex: 1 1 100%;
    }
}
