/* SCL Events Front-end Premium Styles */

.scl-events-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 20px auto;
    padding: 10px 0;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .scl-events-grid-wrapper {
        gap: 40px;
    }
}

.scl-no-events {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    font-family: 'Outfit', sans-serif;
}

/* Event Card Glassmorphism */
.scl-event-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(190%);
    -webkit-backdrop-filter: blur(12px) saturate(190%);
    border: 1px solid #5304e2;
    border-radius: 16px;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);*/
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /*transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;*/
}

.scl-event-card:hover {
    /*transform: translateY(-6px);*/
    /*box-shadow: 0 20px 40px rgba(79, 70, 229, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);*/
}

/* Image Wrapper */
.scl-event-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 52%; /* 16:9 approximately */
    overflow: hidden;
    background: #f1f5f9;
}

.scl-event-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Category Pill */
.scl-event-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #4f46e5;
    color: #ffffff;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    z-index: 2;
}

/* Card Body Content */
.scl-event-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.scl-event-title {
    font-size: 20px;
    font-weight: 700;
    color: #5304e2;
    margin: 0 0 15px 0;
    line-height: 1.35;
}

/* Metadata Row */
.scl-event-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0px 8px;
    line-height: 1.5;
    margin-bottom: 18px;
    padding-bottom: 15px;
}

.scl-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #5304e2;
}

.scl-meta-icon {
    font-size: 16px;
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Event Description */
.scl-event-description {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 20px;
}

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

.scl-event-description table {
    display: none !important;
}

/* Speakers Section inside Card */
.scl-event-speakers-section {
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}

.scl-speakers-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 15px 0;
}

.scl-speakers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Speaker Card */
.scl-speaker-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.scl-speaker-photo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.scl-speaker-no-photo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.scl-speaker-details {
    flex-grow: 1;
}

.scl-speaker-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
}

.scl-speaker-country {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #4f46e5;
    background: #e0e7ff;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
}

/* Expandable bio styles */
.scl-speaker-bio {
    margin-top: 6px;
}

.scl-bio-text {
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
    margin: 0 !important;
    max-height: 40px; /* Collapsed state */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Blur overlay for collapsed bio text */
.scl-bio-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background: linear-gradient(to top, #f8fafc, transparent);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scl-speaker-bio.is-expanded .scl-bio-text {
    max-height: 1000px; /* Large value to allow expansion */
}

.scl-speaker-bio.is-expanded .scl-bio-text::after {
    opacity: 0;
}

.scl-bio-toggle-btn {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 0 0 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.scl-bio-toggle-btn:hover {
    color: #4338ca;
    text-decoration: underline;
}

.scl-event-body-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.8fr;
    gap: 25px;
    margin-top: 15px;
    align-items: start;
}

.scl-grid-col {
    min-width: 0;
}

.scl-event-speakers-section {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.scl-event-table-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.scl-event-table-content td {
    padding: 4px 0 !important;
    border: none !important;
    line-height: 1.25 !important;
}

.scl-event-table-content img {
    width: 75px !important;
    height: 75px !important;
    max-width: 75px !important;
    max-height: 75px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.scl-event-table-content strong {
    font-size: 16px !important;
    color: #0f172a !important;
    line-height: 1.15 !important;
    margin: 0 0 2px 0 !important;
    display: block !important;
}

.scl-event-table-content span {
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    display: block !important;
}

.scl-event-table-content br {
    display: none !important;
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .scl-event-body-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 10px;
    }
    .scl-event-table-content img {
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
        border-radius: 4px !important;
    }
    .scl-event-table-content strong {
        font-size: 12px !important;
    }
    .scl-event-table-content span {
        font-size: 11px !important;
    }
    .scl-event-card {
        border-radius: 12px;
    }
    .scl-event-content {
        padding: 20px;
    }
    .scl-event-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    .scl-event-meta-info {
        gap: 6px;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .scl-meta-item {
        font-size: 12px;
        gap: 6px;
    }
    .scl-meta-icon {
        font-size: 13px;
        width: 16px;
    }
    .scl-event-description {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 0;
    }
    .scl-speakers-title {
        font-size: 11px;
        margin-bottom: 10px;
    }
    .scl-speaker-card {
        padding: 8px;
        gap: 8px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .scl-speaker-photo, .scl-speaker-no-photo {
        width: 40px;
        height: 40px;
    }
    .scl-speaker-name {
        font-size: 12px;
    }
    .scl-speaker-country {
        font-size: 9px;
        padding: 1px 6px;
        margin-top: 2px;
    }
    .scl-bio-text {
        font-size: 11px;
        max-height: 32px;
    }
    .scl-bio-toggle-btn {
        margin: 0 auto;
        display: block;
        font-size: 11px;
    }
}
