/* =ARLA Events Plugin — Shortcode Cards
------------------------------------------------------- */

/* Section titles */
.arla-events-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #082c72;
    margin: 0 0 20px;
    padding: 0;
    border: none;
}

.arla-events-section-title--past {
    margin-top: 50px;
}

/* Grid */
.arla-events-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Card */
.arla-event-card {
    background: #f7f7f7;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: none;
}

.arla-event-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Link — reset Divi overrides */
.arla-event-card__link,
.arla-event-card__link:hover,
.arla-event-card__link:visited {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

/* Card image */
.arla-event-card__image {
    overflow: hidden;
    line-height: 0;
}

.arla-event-card__image img {
    width: 100% !important;
    height: auto !important;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Card body */
.arla-event-card__body {
    padding: 16px 20px 22px;
}

/* Card title — reset Divi h3 overrides */
.arla-event-card__title,
.arla-events-grid .arla-event-card__title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border: none !important;
    background: none !important;
}

/* Card date */
.arla-event-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #777;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.arla-event-card__date-icon {
    width: 13px;
    height: 13px;
    fill: #999;
    flex-shrink: 0;
}

/* Empty state */
.arla-events-empty {
    font-size: 16px;
    color: #777;
    padding: 30px 0;
}

/* Header: title + button */
.arla-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.arla-events-header__title {
    font-size: 28px;
    font-weight: 700;
    color: #082c72;
    margin: 0;
    padding: 0;
}

.arla-events-header__btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #082c72;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s;
}

.arla-events-header__btn:hover {
    background: #0a3585;
    color: #fff;
    text-decoration: none;
}

/* =Single Event Page
------------------------------------------------------- */

/* Remove Divi sidebar on single events */
.single-event #sidebar {
    display: none !important;
}

.single-event.et_right_sidebar #left-area {
    width: 100% !important;
    padding-right: 0 !important;
    float: none !important;
}

.single-event.et_right_sidebar #main-content .container::before {
    display: none !important;
}

/* Article wrapper */
.arla-single-event {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

/* Title */
.arla-event__title {
    font-size: 32px;
    font-weight: 700;
    color: #082c72;
    line-height: 1.3;
    margin: 0 0 12px;
    padding: 0;
}

/* Date row */
.arla-event__date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.arla-event__date-icon {
    width: 16px;
    height: 16px;
    fill: #082c72;
    flex-shrink: 0;
}

/* Image + Content side-by-side */
.arla-event__body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.arla-event__image {
    flex: 0 0 45%;
    max-width: 45%;
}

.arla-event__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: cover;
}

.arla-event__content {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.arla-event__content p:first-child {
    margin-top: 0;
}

.arla-event__content h2,
.arla-event__content h3,
.arla-event__content h4 {
    color: #082c72;
}

.arla-event__content a {
    color: #082c72;
    text-decoration: underline;
}

.arla-event__content a:hover {
    color: #0a3585;
}

/* Back button */
.arla-event__back {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #082c72;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s;
}

.arla-event__back:hover {
    background: #0a3585;
    color: #fff;
    text-decoration: none;
}

/* =Responsive
------------------------------------------------------- */

/* Tablet — 2 columns */
@media (max-width: 980px) {
    .arla-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .arla-single-event {
        padding: 30px 20px 50px;
    }

    .arla-event__title {
        font-size: 26px;
    }

    .arla-event__body {
        flex-direction: column;
    }

    .arla-event__image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .arla-event__content {
        width: 100%;
    }
}

/* Mobile — single column */
@media (max-width: 480px) {
    .arla-events-grid {
        grid-template-columns: 1fr;
    }

    .arla-event__title {
        font-size: 22px;
    }

    .arla-event__date {
        font-size: 14px;
    }
}
