/* Item Agenda Block Frontend Styles */
.item-agenda {
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* Agenda item styling */
.agenda-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Read more button styling */
.item-agenda .read-more-btn {
    transition: color 0.2s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    display: inline;
    width:fit-content
}

.item-agenda .read-more-btn:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.item-agenda .read-more-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Read more content */
.item-agenda .read-more-content {
    transition: all 0.3s ease;
}

.item-agenda .read-more-content.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.item-agenda .read-more-content:not(.hidden) {
    opacity: 1;
    max-height: 500px;
}

/* Track badge styling */
.item-agenda .track-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Time display */
.item-agenda .time-display {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Title styling */
.item-agenda .agenda-title {
    font-weight: bold;
    line-height: 1.2;
}

/* Zone display */
.item-agenda .zone-display {
    font-size: 0.875rem;
}

/* Description text */
.item-agenda .description-text {
    font-size: 0.75rem;
    line-height: 1.4;
}

@media (min-width: 1024px) {
    .item-agenda .description-text {
        font-size: 0.875rem;
    }
}

/* Category display */
.item-agenda .category-display {
    font-weight: bold;
    font-size: 0.875rem;
}

/* Key takeaways list */
.item-agenda .takeaways-list {
    list-style: disc;
    list-style-position: inside;
}

.item-agenda .takeaways-list li {
    margin-bottom: 0.25rem;
}

/* Removed hover effects to prevent flickering */

/* Speakers carousel styles */
.speakers-carousel-container {
    position: relative;
}

.speakers-carousel {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.speakers-carousel::-webkit-scrollbar {
    display: none;
}

.speaker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Desktop: Multiple speakers per view based on data attribute */
[data-max-visible="4"] .speaker-item {
    width: calc(25% - 0.75rem); /* 4 per view minus gap */
    min-width: calc(25% - 0.75rem);
}

[data-max-visible="1"] .speaker-item {
    width: 100%;
    min-width: 100%;
}

/* Tablet: Reduce to 2 speakers per view for 4-speaker layouts */
@media (max-width: 1023px) and (min-width: 769px) {
    [data-max-visible="4"] .speaker-item {
        width: calc(50% - 0.5rem); /* 2 per view minus gap */
        min-width: calc(50% - 0.5rem);
    }
}

.speaker-headshot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.speaker-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.speaker-name {
    line-height: 1.2;
    margin: 0;
}

.speaker-company {
    line-height: 1.2;
    margin: 0;
    margin-top: 0.125rem;
}

/* Carousel navigation - positioned on right side */
.carousel-nav {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 4px;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    color: #374151;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.5);
}

/* Tablet and mobile responsive adjustments */
@media (max-width: 1023px) {
    .item-agenda .agenda-title {
        font-size: 0.875rem;
    }
    
    .item-agenda .time-display {
        font-size: 0.75rem;
    }
    
    .item-agenda .zone-display {
        font-size: 0.75rem;
    }
    
    .item-agenda .description-text {
        font-size: 0.75rem;
    }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .item-agenda .agenda-title {
        font-size: 0.8125rem;
    }
    
    /* Mobile: Always 1 speaker per view */
    [data-max-visible="4"] .speaker-item {
        width: 100%;
        min-width: 100%;
    }
    
    .speakers-carousel {
        gap: 0.75rem; /* Slightly smaller gap on mobile */
    }
    
    .speaker-item {
        gap: 0.5rem; /* Smaller gap between headshot and info on mobile */
    }
    
    /* Larger headshots on mobile (50% bigger) */
    .speaker-avatar {
        width: 3rem !important; /* 48px instead of 32px */
        height: 3rem !important; /* 48px instead of 32px */
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
    }
} 