/* Professional Events Widget Styles */
/* Color Scheme: Blue #2f3297, Light Blue #e7f2ff, White, Yellow #e9a90e */


/* Base Styles */
.event_card_parent {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Desktop & Tablet Styles (768px and above) */
@media (min-width: 768px) {
    .event_card_parent {
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .event-card {
        width: calc(50% - 15px);
        display: flex;
        align-items: center;
        position: relative;
        padding: 25px 20px;
        border-radius: 15px;
        background: white;
        box-shadow: 0 8px 25px rgba(47, 50, 151, 0.1);
        transition: all 0.3s ease;
        border: 2px solid #e7f2ff;
        min-height: 200px;
    }
    
    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(47, 50, 151, 0.15);
        border-color: #2f3297;
    }
    
    .event-card_img {
        width: 120px;
        height: 120px;
        border-radius: 12px;
        overflow: hidden;
        flex-shrink: 0;
        margin-right: 20px;
        background: #e7f2ff;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .event-card_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .event-card:hover .event-card_img img {
        transform: scale(1.05);
    }
    
    .event-card_content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
    }
}

/* Common Card Content Styles */
.event-card_title {
    margin: 0 0 15px 0 !important;
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.event-card_title a {
    color: #2f3297;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-card_title a:hover {
    color: #e9a90e;
}

#event_card_description {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

#event_card_description span {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

#event_card_description span i {
    margin-right: 8px;
    color: #2f3297;
    width: 16px;
    font-size: 14px;
}

.event-card_bottom {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.event-card .as-btn {
    padding: 10px 20px;
    background: #2f3297;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid #2f3297;
}

.event-card .as-btn:hover {
    background: #e9a90e;
    border-color: #e9a90e;
    transform: translateY(-2px);
}

.as-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.event-card .as-btn:hover svg {
    transform: translateX(3px);
}



/* Mobile Styles (Below 768px) */
@media (max-width: 767px) {
    .event_card_parent {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .event-card {
        width: 100%;
        flex-direction: column;
        padding: 20px;
        border-radius: 12px;
        background: white;
        box-shadow: 0 4px 15px rgba(47, 50, 151, 0.08);
        border: 1px solid #e7f2ff;
        min-height: auto;
    }
    
    .event-card_img {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
        border-radius: 10px;
        background: #e7f2ff;
    }
    
    .event-card_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .event-card_content {
        width: 100%;
        margin: 0;
    }
    
    .event-card_title {
        font-size: 20px;
        margin-bottom: 12px !important;
        text-align: center;
    }
    
    #event_card_description {
        margin-bottom: 15px;
        text-align: center;
    }
    
    #event_card_description span {
        justify-content: center;
        font-size: 14px;
    }
    
    .event-card_bottom {
        justify-content: center;
    }
    
    .event-card .as-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Small Mobile Styles (Below 480px) */
@media (max-width: 479px) {
    .event_card_parent {
        padding: 10px;
    }
    
    .event-card {
        padding: 15px;
    }
    
    .event-card_img {
        height: 150px;
    }
    
    .event-card_title {
        font-size: 18px;
    }
    
    #event_card_description span {
        font-size: 13px;
    }
}


.event-card .cf-btn.cf-btn-primary {
    width: max-content !important;
  align-self: center  !important;
}