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

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

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

/* Image area */
.association-image {
    position: relative;
}

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

.association-card:hover .association-image a img {
    transform: scale(1.2);
}

/* Category label */
.category-label {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0px 12px;
    color: #324177;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    display: flex;
    padding: 4px 12px;
    justify-content: center;
    align-items: center;
    gap: 0px;
    border-radius: 30px;
    border: 1px solid #BFDBFE;
    background: #DBEAFE;
}

/* Content area */
.association-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 24px 24px 24px;
    gap: 8px;
}

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

.association-card .association-logo {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFF;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.16);
}

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

.association-card .association-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #181D27;
    margin-top: 29px;
}

.association-card .association-title-link {
    color: #181D27;
    text-decoration: none;
    transition: color 0.3s ease;
}

.association-title-link:hover {
    color: #324177;
}

.association-excerpt {
    overflow: hidden;
    color: #424242;
    text-overflow: ellipsis;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 150% */
}

/* Location */
.association-meta {
    display: flex;
    align-items: center;
    padding-top: 8px;
}

.location-label {
    display: flex;
    align-items: center;
    color: #3F59B6;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
}

/* Activities count */
.association-activities {
    margin-bottom: 0;
}

.activities-count {
    display: flex;
    padding: 4px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 80px;
    border: 1px solid #E5E5E5;
    color: #404040;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.association-header {
    position: absolute;
    bottom: -45px;
    margin: 0;
    display: flex;
    align-items: flex-end;
    width: 100%;
    padding: 0 20px;
    gap: 16px;
}

.association-title a {
    overflow: hidden;
    color: #000;
    text-overflow: ellipsis;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    min-height: 56px;
}

.association-title a:hover {
    color: #324177;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    text-transform: uppercase;
}

.association-image-wrapper {
    overflow: hidden;
}

.association-events-container.slider-container {
    padding-bottom: 80px;
    padding-top: 32px;
    max-width: 543px;
    margin-left: 0;
}

.association-event-card.swiper-slide {
    padding: 16px;
    box-shadow: 0px 9.521px 38.085px 0px rgba(0, 0, 0, 0.16);
    box-shadow: none;
    /* opacity: 0.6; */
    width: 376px;
}

.association-event-card.swiper-slide.swiper-slide-active {
    opacity: 1;
    box-shadow: 0px 9.521px 38.085px 0px rgba(0, 0, 0, 0.16);
    width: 376px !important;
    /* margin-top: 20px; */
}

.association-event-card.swiper-slide img {
    border-radius: 10px;
}

.association-event-card .event-image {
    height: 220px;
    border-radius: 10px;
}

.icon-btn-rightleft {
    -webkit-animation: rightleft 1s ease-in-out alternate infinite;
    animation: rightleft 1s ease-in-out alternate infinite;
}

.icon-btn-leftright { 
    -webkit-animation: leftright 1s ease-in-out alternate infinite;
    animation: leftright 1s ease-in-out alternate infinite;
}

ul.cate-event {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

ul.cate-event li {
    display: flex;
    padding: 4px 12px;
    justify-content: center;
    align-items: center;
    gap: 0px;
    border-radius: 30px;
    border: 1px solid #ABEFC6;
    background: #DCFAE6;
    color: #000;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    text-transform: capitalize;
}

.association-events-grid .event-content {
    gap: 16px;
    padding: 20px !important;
}

ul.cate-event li:nth-child(2n) {
    border-radius: 30px;
    border: 1px solid #BFDBFE;
    background: #DBEAFE;
}

h3.event-title {
    overflow: hidden;
    color: #171717;
    text-overflow: ellipsis;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 26px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    align-self: stretch;
    margin: 0 !important;
    text-transform: initial;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
}

@-webkit-keyframes leftright {
    from {
        left: 0px;
        top: 0px;
    }
    to {
        left: -30px;
        top: 0px;
    }
}

@keyframes leftright {
    from {
        left: 0px;
        top: 0px;
    }
    to {
        left: -30px;
        top: 0px;
    }
}

@-webkit-keyframes rightleft {
    from {
        left: 0px;
        top: 0px;
    }
    to {
        left: 20px;
        top: 0px;
    }
}

@keyframes rightleft {
    from {
        left: 0px;
        top: 0px;
    }
    to {
        left: 20px;
        top: 0px;
    }
}

.association-image-wrapper img {
    max-height: 196px;
}

/* Responsive styles */
@media screen and (max-width: 1400px) {
    .association-event-card {
        width: 100%;
    }
}

@media (max-width: 1200px) {
    
}

@media (max-width: 1024px) {
    .associations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .association-event-card.swiper-slide.swiper-slide-active, .association-event-card.swiper-slide {
        width: 100% !important;
    }

    .association-events-container.slider-container {
        padding: 0;
        box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.16);
        border-radius: 16px;
    }
    .association-event-card.swiper-slide.swiper-slide-active {
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .associations-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .association-content {
        padding: 15px;
    }
    
    .association-title {
        font-size: 18px;
    }
    
    .association-excerpt {
        font-size: 13px;
    }


} 