 /* Prevent layout glitch in header */
 .header {
    opacity: 1 !important;
    visibility: visible !important
}

.header nav,
.header-menu,
.header-right,
.nav-menu {
    opacity: 1 !important;
    visibility: visible !important
}

.nav-menu__item {
    opacity: 1 !important;
    transform: translateY(0) !important
}

@media (min-width:1200px) {
    .header-menu {
        display: block !important
    }

    .nav-menu {
        display: flex !important
    }

    .d-xl-none {
        display: none !important
    }
}

@media (max-width:1199px) {
    .header-menu {
        display: none !important
    }

    .d-xl-block {
        display: none !important
    }
}

.header-logo-responsive {
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
}

/* Logo container adjustments */
.logo a,
.search_logo a,
.mobile-menu__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Large Desktop */
@media (min-width: 1400px) {
    .header-logo-responsive {
        max-height: 65px;
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .header-logo-responsive {
        max-height: 60px;
    }
}

/* Tablet and below */
@media (max-width: 991.98px) {
    .header-logo-responsive {
        max-height: 50px;
    }
}

/* Mobile devices */
@media (max-width: 767.98px) {
    .header-logo-responsive {
        max-height: 40px;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .header-logo-responsive {
        max-height: 35px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .header-logo-responsive {
        max-height: 32px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .header-logo-responsive {
        max-height: 28px;
    }
}

/* Very small devices */
@media (max-width: 320px) {
    .header-logo-responsive {
        max-height: 25px;
    }
}

/* Ensure logo doesn't overflow on mobile */
@media (max-width: 767.98px) {

    .logo,
    .search_logo,
    .mobile-menu__logo {
        max-width: 100%;
        overflow: hidden;
    }
}

/* Desktop View - Center Navigation and Button */
@media (min-width: 1200px) {
    .header nav {
        justify-content: center !important;
    }
    
    .header-right {
        justify-content: center !important;
        width: auto !important;
    }
}

/* Mobile Navigation Layout - Button Left, Menu Right */
@media (max-width: 1199.98px) {
    .header nav {
        justify-content: space-between !important;
    }
    
    .header-right {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .header-button {
        order: 1;
        margin-right: auto;
    }
    
    .toggle-mobileMenu {
        order: 2;
        margin-left: auto;
    }
}

/* Programme Section New Design Styles */
.programme-tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.programme-nav-pills {
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: #1F1F2E;
    padding: 8px;
    gap: 12px;
    flex-wrap: wrap;
}

.programme-nav-pills .nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.programme-nav-pills .nav-link {
    border: 1px solid rgba(253, 163, 18, 0.3);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(253, 163, 18, 0.15) 0%, rgba(255, 140, 0, 0.15) 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 16px 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    width: 100%;
}

.programme-nav-pills .nav-link:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(253, 163, 18, 0.25) 0%, rgba(255, 140, 0, 0.25) 100%);
    border-color: rgba(253, 163, 18, 0.5);
    transform: translateY(-1px);
}

.programme-nav-pills .nav-link.active {
    background: linear-gradient(135deg, #fda312 0%, #ff8c00 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(253, 163, 18, 0.3);
}

.programme-nav-pills .nav-link .day-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
}

.programme-nav-pills .nav-link .day-date {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

.programme-schedule {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.schedule-item {
    display: flex;
    gap: 32px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(15, 11, 28, 0.8) 0%, rgba(31, 31, 46, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.schedule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #fda312 0%, #ff8c00 100%);
}

.schedule-item:hover {
    border-color: rgba(253, 163, 18, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.schedule-time {
    min-width: 140px;
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.time-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(253, 163, 18, 0.15) 0%, rgba(255, 140, 0, 0.15) 100%);
    border: 1px solid rgba(253, 163, 18, 0.3);
    border-radius: 8px;
    color: #fda312;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.schedule-content {
    flex: 1;
}

.schedule-title {
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.6;
}

.schedule-list li i {
    font-size: 20px;
    flex-shrink: 0;
}

.schedule-list li span {
    flex: 1;
}

/* Responsive Styles for Programme */
@media (max-width: 991.98px) {
    .programme-nav-pills {
        padding: 6px;
    }

    .programme-nav-pills .nav-item {
        min-width: 120px;
    }

    .programme-nav-pills .nav-link {
        padding: 12px 16px;
    }

    .programme-nav-pills .nav-link .day-name {
        font-size: 14px;
    }

    .programme-nav-pills .nav-link .day-date {
        font-size: 12px;
    }

    .schedule-item {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .schedule-time {
        min-width: auto;
    }

    .time-badge {
        padding: 8px 16px;
        font-size: 13px;
    }

    .schedule-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
}

@media (max-width: 767.98px) {
    .programme-nav-pills {
        flex-direction: column;
        border-radius: 8px;
    }

    .programme-nav-pills .nav-item {
        width: 100%;
        min-width: auto;
    }

    .programme-nav-pills .nav-link {
        width: 100%;
    }

    .schedule-item {
        padding: 20px;
    }

    .schedule-list li {
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .schedule-item {
        padding: 16px;
    }

    .schedule-title {
        font-size: 18px;
    }

    .schedule-list li {
        font-size: 14px;
        gap: 10px;
    }

    .schedule-list li i {
        font-size: 18px;
    }
}