/* Training Events Block Styles */
.training-events-block {
    background-color: #fff;
}

/* Month Group Styles */
.events-month-group {
    margin-bottom: 4rem;
}

/* Month header: title + horizontal line to the right (same 1px / rgb(38 153 251)) */
.events-month-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.events-month-title {
    color: rgb(38 153 251);
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

/* Line to the right of month/year - animates in from right to left */
.events-month-line {
    flex: 1;
    min-width: 0;
    height: 1px;
    background-color: rgb(38 153 251);
    transform-origin: right center;
    animation: events-month-line-in 0.6s ease-out forwards;
}

@keyframes events-month-line-in {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}



/* Single event: no full-width line above event (only the line next to month) */
.events-month-group--single .events-grid {
    border-top: none;
}

/* Events Grid */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Event Card */
.event-card {
    border-bottom: 1px solid rgb(38 153 251);
    padding: 2.5rem 0;
    transition: all 0.3s ease;
}

.event-card:last-child {
    border-bottom: none;
}

.event-card-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .event-card-inner {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Event Image */
.event-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 380px;
}

.event-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Event Content */
.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-date {
    color:  black;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    text-transform: uppercase;
}

/* Event title: !text-lg text-accent font-bold !leading-5 w-4/4 m-0 mb-2 */
.event-title {
    line-height: 1.25;
    text-transform: uppercase;
    font-size: 30px !important;
}

.event-description {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.event-description p {
    margin: 0 0 0.5rem 0;
}

.event-description p:last-child {
    margin-bottom: 0;
}

/* Event Footer - button and price side by side */
.event-footer {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

/* Attend Class button - scoped so it overrides global .btn styles */
.training-events-block .event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 2rem !important;
    background-color: #fff;
    color: rgb(38 153 251);
    border: 2px solid rgb(38 153 251);
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.training-events-block .event-button:hover {
    background-color: rgb(38 153 251);
    color: #fff;
}

.event-cost {
    color: rgb(38 153 251);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* No Events Message */
.no-events-message {
    text-align: center;
    padding: 4rem 2rem;
}

/* Pagination */
.events-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
}

.events-pagination a,
.events-pagination .pagination-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #b5b5b5;
    transition: color 0.3s ease;
}

.events-pagination a:hover {
    color: #16355e;
}

.events-pagination .pagination-home svg {
    transform: rotate(-90deg);
}

.pagination-info {
    font-size: 0.875rem;
    color: #333;
    min-width: 60px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .event-card {
        padding: 2rem 0;
    }

    .event-image {
        max-width: 100%;
    }

    .event-footer {
        gap: 0.75rem;
    }

    .training-events-block .event-button {
        padding: 7px 1.25rem !important;
        font-size: 0.8rem;
    }

    .event-cost {
        font-size: 1.25rem;
    }
}
