/* =========================================
   STYLE CHO TAB NAVIGATION
   ========================================= */
.schedule-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Giữ tab không vỡ trên mobile */
}
h2.single-day-title {
    color:white!important;
}
.schedule-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f8f8;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.schedule-tab.active {
    background: #e91e63;
    color: #fff;
    border-color: #e91e63;
}

/* =========================================
   CONTAINER & LAYOUT
   ========================================= */
.schedule-content {
    position: relative;
    box-sizing: border-box;
}

/* Ẩn các container không hoạt động */
.schedule-container {
    display: none;
}

.schedule-container.active {
    display: block !important;
    width: 100%;
}

/* --- [LAYOUT MASONRY FLEXBOX 2 CỘT CHUẨN] --- */
.es-masonry-layout {
    display: flex;
    flex-direction: row; /* Xếp ngang */
    flex-wrap: nowrap;   /* Bắt buộc KHÔNG xuống dòng */
    gap: 20px;           /* Khoảng cách giữa 2 cột */
    align-items: flex-start; /* Cho phép các cột cao thấp tự do */
    width: 100%;
    box-sizing: border-box;
}

.es-masonry-col {
    display: flex;
    flex-direction: column; /* Các item bên trong xếp dọc */
    
    /* Thiết lập chiều rộng chính xác cho 2 cột */
    flex: 1 1 50%;          /* Co giãn đều nhau */
    width: calc(50% - 10px);/* Trừ đi 1/2 khoảng cách gap */
    max-width: calc(50% - 10px); 
    
    gap: 30px; /* Khoảng cách dọc giữa các khối trong cùng 1 cột */
    box-sizing: border-box;
}

/* --- Item con (Khối Topic/Ngày) --- */
.day-schedule-wrapper {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    display: block;
    background: transparent;
    box-sizing: border-box;
    border: none;
    box-shadow: none;
}

/* =========================================
   HEADER & CARD STYLE
   ========================================= */
.day-header {
    background: #0066ff;
    padding: 12px 15px;
    border-radius: 8px 8px 0px 0px;
    display: flex;
    flex-direction: column;
    gap: 5px;
	text-align:left;
}

.day-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.schedule-description {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

/* Khung chứa danh sách session */
.schedule-columns {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.session-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer; /* Báo hiệu click được */
}

.session-card:last-child {
    border-bottom: none;
}

.session-card:hover {
    background-color: #f9f9f9;
}

.session-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.session-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.session-avatar .fas {
    font-size: 30px;
    color: #666;
}

.session-content {
    flex-grow: 1;
    padding-left: 15px;
    text-align: left !important; /* Căn trái toàn bộ nội dung */
}

.session-time {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: #666;
    text-align: left;
}

.session-title {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    font-weight: 500;
    color: #1d1d1d;
    text-align: left;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-speakers {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.speaker-name {
    color: #e91e63;
    font-weight: 500;
}

.speaker-position {
    color: #666;
    margin-left: 5px;
    font-style: italic;
}

/* Ẩn hiện Description */
.session-description-hidden {
    display: none;
    margin-top: 10px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
    color: #555;
    font-size: 0.95em;
}

/* =========================================
   CONTAINER CHO SINGLE TOPIC (Giữ nguyên)
   ========================================= */
.event-schedule-single {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f5f5f5;
}

.single-topic-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.single-schedule-container {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* =========================================
   RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    /* Chuyển Flexbox về 1 cột dọc trên mobile */
    .es-masonry-layout {
        flex-direction: column;
        flex-wrap: wrap; 
        gap: 20px;
    }
    
    .es-masonry-col {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 1;
        gap: 20px;
    }

    .session-card {
        padding: 15px;
        box-shadow: none; /* Bỏ shadow trên mobile cho nhẹ */
        border-radius: 0;
    }
    
    .event-schedule-single {
        padding: 10px;
    }
}
.es-tabs-wrapper {
    padding: 20px;
}