/**
 * PCO Events for WPBakery - Styles
 */

/* Section wrapper */
.pco-events-section {
    position: relative;
}

/* Event cards */
.pco-events-section .vc_column-inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pco-events-section .wpb_column:hover .vc_column-inner {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

/* Event image */
.pco-event-image {
    overflow: hidden;
}

.pco-event-image img {
    transition: transform 0.4s ease;
}

.pco-events-section .wpb_column:hover .pco-event-image img {
    transform: scale(1.05);
}

/* Teal button outline */
.pco-btn-teal {
    color: #319795 !important;
    border-color: #319795 !important;
    background-color: transparent !important;
}

.pco-btn-teal:hover {
    color: #ffffff !important;
    background-color: #319795 !important;
    border-color: #319795 !important;
}

/* Teal button solid */
.pco-btn-teal-solid {
    color: #ffffff !important;
    background-color: #319795 !important;
    border-color: #319795 !important;
}

.pco-btn-teal-solid:hover {
    background-color: #2c7a7b !important;
    border-color: #2c7a7b !important;
}

/* Error and empty states */
.pco-events-error,
.pco-events-empty {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pco-events-error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    margin: 20px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pco-events-section .vc_row-flex {
        flex-direction: column;
    }
    
    .pco-events-section .wpb_column {
        width: 100% !important;
        margin-bottom: 25px;
    }
    
    .pco-events-section .wpb_column:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .pco-events-section {
        padding: 60px 15px !important;
    }
    
    .pco-events-section h2 {
        font-size: 28px !important;
        margin-bottom: 40px !important;
    }
}

/* Fix for WPBakery inner rows */
.pco-events-section .vc_inner {
    margin-left: -12.5px;
    margin-right: -12.5px;
}

.pco-events-section .vc_inner > .wpb_column {
    padding-left: 12.5px;
    padding-right: 12.5px;
}

/* Ensure consistent card heights */
.pco-events-section .vc_row-o-equal-height > .wpb_column > .vc_column-inner {
    display: flex;
    flex-direction: column;
}

.pco-events-section .vc_row-o-equal-height > .wpb_column > .vc_column-inner > .wpb_wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pco-events-section .vc_row-o-equal-height > .wpb_column > .vc_column-inner > .wpb_wrapper > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pco-events-section .vc_row-o-equal-height .vc_btn3-container {
    margin-top: auto;
}
