/* Events Series - Frontend Styles */

/* Single Series Page */
.series-single__hero {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.series-single__hero-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.series-single__header {
    margin-bottom: 30px;
}

.series-single__title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.series-single__excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.series-single__excerpt p {
    margin: 0;
}

.series-single__content {
    margin-bottom: 40px;
}

/* ============================================================
 * Shared series-tile styles (used by series-listing AND by
 * series-suggestions Splide slider — both must render identically)
 * ============================================================ */

.series-tile__image {
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.series-tile__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center center;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.series-tile:hover .series-tile__image img {
    transform: scale(1.03);
}

.series-tile__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.series-tile__title {
    font-size: 21px;
    line-height: 1.25em;
    margin: 0 0 10px 0;
}

.series-tile__title a {
    color: #000000;
    text-decoration: none;
    font-size: 21px;
    line-height: 1.25em;
}

.series-tile__title a:hover {
    color: #641822;
}

.series-tile__excerpt {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
    /* Limit to 3 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Reserve consistent height even when text is shorter, so tiles align */
    max-height: calc(1.5em * 3);
}

.series-tile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #641822;
    padding: 10px 0;
    border-top: 1px solid #d3d3d3;
    margin-top: auto;
}

.series-tile__meta svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}
.series-tile__meta svg path {
    stroke: #641822;
}

.series-tile__next-label {
    width: 100%;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 400;
}

.series-tile__date,
.series-tile__time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .875rem;
}

.series-tile__no-events {
    color: #999;
    font-style: italic;
    font-weight: 400;
}

.series-tile__count {
    display: inline-block;
    font-size: 14px;
    color: #641822;
    background: rgba(100, 24, 34, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 8px;
    font-weight: 600;
    width: fit-content;
}

.series-tile__footer {
    padding-top: 15px;
    border-top: 1px solid #d3d3d3;
    margin-top: 15px;
}

/* Shared btn-main style (if not provided by theme) */
.series-card__footer .btn-main,
.series-tile__footer .btn-main,
.series-slider-footer .btn-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #641822;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    cursor: pointer;
}

.series-card__footer .btn-main:hover,
.series-tile__footer .btn-main:hover,
.series-slider-footer .btn-main:hover {
    background: #4a1018;
    color: #fff;
    text-decoration: none;
}

.series-card__footer .btn-main svg,
.series-tile__footer .btn-main svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .series-single__title {
        font-size: 28px;
    }

    .series-single__hero-img {
        max-height: 250px;
    }
}
