/* =========================== Responsive Styles =========================== */

/* ================= Schedule Table Styles ================= */

/* Custom table styling for better appearance */
.table-responsive table {
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 13px;
}

.table-responsive table tbody tr {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-responsive table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.table-responsive table tbody tr td {
    border: 1px solid #e0e0e0;
    padding: 12px 12px;
    vertical-align: middle;
}

.table-responsive table tbody tr td:first-child {
    border-left: 3px solid var(--primary-color);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table-responsive table tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    /* white-space: nowrap; */
    min-width: 350px;
}
.daySchedule .table-responsive table tbody tr td:last-child{
    min-width: inherit !important;
}
.day-schedule .table-responsive table tbody tr td:last-child{
    min-width: inherit !important;
}
.table-responsive table thead tr th {
    background-color: #212529;
    color: white;
    padding: 12px;
    font-size: 13px;
    border: none;
    font-weight: 600;
}

.table-responsive table thead tr th:first-child {
    border-top-left-radius: 8px;
}

.table-responsive table thead tr th:last-child {
    border-top-right-radius: 8px;
}

/* Special styling for break rows */
.table-responsive table tbody tr td[colspan] {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    font-weight: bold;
    text-align: center;
    border-left: 3px solid #ff6f00;
    padding: 15px;
}

/* Striped rows alternative */
.table-responsive table tbody tr:nth-child(even) td {
    background-color: #f8f9fa;
}

.table-responsive table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

/* ================= Tab Styles ================= */

/* Main Tabs - Button Style */
#mainScheduleTabs.nav-tabs {
    border: none;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0;
}

#mainScheduleTabs .nav-item {
    flex: 1;
}

#mainScheduleTabs .nav-link {
    position: relative;
    background: #ffffff;
    border: 2px solid #e8eef5;
    border-radius: 16px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    padding: 18px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

#mainScheduleTabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 234, 0, 0.1) 0%, rgba(242, 34, 91, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 14px;
}

#mainScheduleTabs .nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 234, 0, 0.2), 0 2px 8px rgba(242, 34, 91, 0.15);
    border-color: #f9ea00;
    color: #d91d5a;
}

#mainScheduleTabs .nav-link:hover::before {
    opacity: 1;
}

#mainScheduleTabs .nav-link.active {
    background: linear-gradient(135deg, #f9ea00 0%, #f2225b 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(249, 234, 0, 0.4), 0 4px 12px rgba(242, 34, 91, 0.3);
    transform: translateY(-2px);
}

#mainScheduleTabs .nav-link.active::before {
    opacity: 0;
}

#mainScheduleTabs .nav-link i {
    margin-right: 8px;
    font-size: 16px;
}

/* Nested Tabs - Border Bottom Style */
.nav-pills {
    border-bottom: 2px solid #e5e7eb;
    gap: 0;
    margin-bottom: 30px;
    padding: 0;
}

.nav-pills .nav-item {
    margin-bottom: -2px;
}

.nav-pills .nav-link {
    position: relative;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    padding: 14px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pills .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #f9ea00 0%, #f2225b 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px 2px 0 0;
}

.nav-pills .nav-link:hover {
    background: linear-gradient(135deg, rgba(249, 234, 0, 0.08) 0%, rgba(242, 34, 91, 0.08) 100%);
    color: #d91d5a;
}

.nav-pills .nav-link:hover::after {
    width: 100%;
}

.nav-pills .nav-link.active {
    background: transparent;
    color: #d91d5a;
    font-weight: 600;
}

.nav-pills .nav-link.active::after {
    width: 100%;
}

/* Tablets and below (max-width: 768px) */
@media (max-width: 768px) {
    /* Banner Responsive */
    .bannerSwiper {
        height: 70vh;
        min-height: 500px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner-navigation {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .bannerSwiper .swiper-button-prev,
    .bannerSwiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .bannerSwiper .swiper-button-prev i,
    .bannerSwiper .swiper-button-next i {
        font-size: 16px;
    }

    /* Festival Section Responsive */
    .festivalContent h2 {
        font-size: 36px;
    }

    .festivalContent p {
        font-size: 15px;
        margin-bottom: 35px;
    }

    .festivalContents h3 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .festivalContents p {
        font-size: 14px;
    }

    .festivalContents {
        padding: 28px 20px;
    }

    .play-button {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    /* Video Cards Responsive */
    .natyaIdonParticipant h2 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .video-card-play-btn {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .videoCard h4 {
        font-size: 16px;
        padding: 15px;
    }
}

/* Mobile phones (max-width: 576px) */
@media (max-width: 576px) {
    .bannerSwiper {
        height: 60vh;
        min-height: 450px;
    }

    .banner-content h1 {
        font-size: 1.75rem;
    }

    .banner-content p {
        font-size: 0.95rem;
    }

    .banner-navigation {
        bottom: 15px;
        right: 15px;
    }

    /* Festival Section Mobile */
    .festivalArea {
        padding: 50px 0;
    }

    .festivalContent h2 {
        font-size: 28px;
    }

    .festivalContent p {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .festivalContents h3 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .festivalContents p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .festivalContents {
        padding: 24px 18px;
    }

    .innerItemsdata h5 {
        font-size: 20px;
    }

    .theme-btn, .theme-btn-two {
        font-size: 14px;
        padding: 10px 18px;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .videoPlayArea {
        margin-top: 30px;
    }

    /* Video Cards Mobile */
    .natyaIdonParticipant {
        padding: 50px 0;
    }

    .natyaIdonParticipant h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .video-card-play-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .videoCard h4 {
        font-size: 15px;
        padding: 12px;
    }

    /* Schedule Table Responsive */
    .table-responsive table {
        border-spacing: 0 8px;
        font-size: 14px;
    }

    .table-responsive table tbody tr td {
        padding: 10px 8px;
    }

    .table-responsive table thead tr th {
        padding: 12px 8px;
        font-size: 13px;
    }

    .table-responsive table tbody tr:hover {
        transform: none;
    }

    .table-responsive table tbody tr td[colspan] {
        font-size: 13px;
        padding: 12px;
    }

    /* Tab Styles Responsive */
    #mainScheduleTabs.nav-tabs {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }

    #mainScheduleTabs .nav-link {
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 12px;
    }

    #mainScheduleTabs .nav-link i {
        display: inline;
        font-size: 14px;
    }

    #mainScheduleTabs .nav-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(249, 234, 0, 0.15), 0 2px 6px rgba(242, 34, 91, 0.1);
    }

    #mainScheduleTabs .nav-link.active {
        box-shadow: 0 6px 16px rgba(249, 234, 0, 0.3), 0 3px 8px rgba(242, 34, 91, 0.2);
        transform: translateY(-1px);
    }

    .nav-pills {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 24px;
    }

    .nav-pills .nav-item {
        flex-shrink: 0;
    }

    .nav-pills .nav-link {
        padding: 12px 18px;
        font-size: 13px;
        white-space: nowrap;
    }

    .nav-pills .nav-link::after {
        height: 2px;
    }
}
