/**
 * Association Events Cards Styles
 * 
 * Custom styles for the association events cards elementor widget
 */

/* Main container */

.events-section-title {
    margin-bottom: 30px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color, #324177);
}

/* Grid layout */
.association-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card styles */
.association-event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 376px;
}

.association-event-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Image area */
.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.association-event-card:hover .event-image img {
    transform: scale(1.05);
}

/* Category label */
.event-category-label {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    padding: 2px 10px 2px 2px;
    align-items: center;
    gap: 4px;
    border-radius: 9999px;
    background: #FFF;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.16);
    color: #171717;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    z-index: 2;
}

.event-category-label img {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    display: block;
    object-fit: cover;
}

.event-category-label span {
    color: #A3A3A3;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 150% */
}

/* Content area */
.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
}

.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    pointer-events: initial;
}

/* Association info */
.event-header {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
    gap: 14px;
}

.association-logo {
    min-width: 48px;
    width: 48px;
    height: 48px;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.16);
    border-radius: 100%;
    overflow: hidden;
}

.association-logo img {
    width: 48px;
    height: 48px;
    border-radius: 100%;
    object-fit: contain;
}

.event-content .line {
    height: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.association-logo img {
    width: 100%;
    height: auto;
}

.event-organizer {
    color: #262626;
    margin-bottom: 5px;
}

.by-text {
    overflow: hidden;
    color: #A3A3A3;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
}

.organizer-name {
    overflow: hidden;
    color: #171717;
    text-overflow: ellipsis;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 150% */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    flex: 1 0 0;
}

/* Event meta info */
.event-meta {
    color: #666;
    display: flex;
    margin-bottom: 0px;
    font-size: 14px;
}

.event-organizer-text {
    line-height: 1;
}

.event-meta i, .event-meta svg {
    margin-right: 5px;
    color: #666;
}

span.event-date {
    color: #3F59B6;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    display: flex;
    align-items: center;
    margin: 0;
}

/* Event title */
.event-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px;
    color: #262626;
    text-transform: uppercase;
}

span.event-location-separator {
    color: #3F59B6;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    padding: 0 4px;
}

/* Location */
.event-location {
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    flex-wrap: wrap;
    min-height: 20px;
    min-height: 40px;
}

.location-label, .online-label {
    display: flex;
    align-items: center;
    color: #3F59B6;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
}

.location-label i, .online-label i,
.location-label svg, .online-label svg {
    margin-right: 8px;
    color: #666;
}

/* Button */
.event-button {
    display: inline-block;
    background-color: var(--primary-color, #FFD100);
    color: #262626;
    padding: 10px 30px;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    position: relative;
    overflow: hidden;
}

.event-button:hover {
    background-color: var(--secondary-color, #324177);
    color: #ffffff;
    transform: translateY(-2px);
}

.event-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button click effect */
.event-button::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.event-button:active::after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

.association-events-container.slider-container h3.event-title {
    overflow: hidden;
    color: #181D27;
    text-overflow: ellipsis;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    text-transform: uppercase;
}

.association-events-container.slider-container span.event-date {
    display: inline-flex;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
    background: #FFF;
    flex-direction: column;
    overflow: hidden;
    width: 80px;
    height: 70px;
}


.association-events-container.slider-container span.event-date .event-month {
    color: #404040;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    background: #FFCE00;
    display: flex;
    padding: 0px 8px 2px 8px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    width: 100%;
    text-transform: capitalize;
}

.association-events-container.slider-container span.event-date .group-date {
    color: #324177;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    display: flex;
    line-height: 36px; /* 128.571% */
    letter-spacing: -0.07px;
}

.event-meta-container .event-meta-container-right span {
    color: #324177;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-meta-container-right span.location-label svg {
    margin-right: 0;
    min-width: 20px;
}

.association-events-container.slider-container .event-meta-container {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
}

.event-meta-container .event-meta-container-right span.location-label {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.association-events-container.slider-container .association-event-card:hover {
    transform: none;
    /* box-shadow: none; */
    background: #ffffff;
}

.association-event-card.swiper-slide.swiper-slide-active {
    /* width: 367px !important; */
}

/* popup */

.event-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.event-popup-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.event-popup-content {
    position: relative;
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 10000;
    max-width: 400px;
    text-align: center;
}

.event-popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.swiper-wrapper .event-category-label {
    border-radius: 0px 80px 80px 0px;
    background: #FFCE00;
    display: flex;
    padding: 6px 12px;
    align-items: center;
    gap: 10px;
    left: 0;
    right: auto;
    z-index: 2;
    text-transform: capitalize;
}

.association-event-card .event-button {
    /*margin-top: 22px;*/
}

/* Responsive styles */
@media (max-width: 1024px) {
    .association-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .association-event-card {
        width: auto;
    }
}

@media (max-width: 768px) {
    .association-events-grid {
        grid-template-columns: 1fr;
    }
    
    .events-section-title {
        font-size: 28px;
    }
    
    .event-content {
        padding: 15px;
    }
    
    .event-title {
        font-size: 18px;
    }
    
    .event-button {
        padding: 8px 20px;
        font-size: 14px;
    }

    .association-event-card {
        width: 100%;
    }

    .association-event-card h3 {
        font-size: 18px;
        line-height: 22px;
    }
    .tab-container .tab-button {
        font-size: 16px;
    }
} 