/* Banner section styles */
#bannerSection {
    position: relative;
}

/* Banner content styles */
.hideLeft.noselect.fontsize700.col-12.col-sm-8.old-banner-h2 {
    margin: auto;
    justify-content: center;
    align-items: center;
    align-content: center;
    /* padding-right: 15%; */
}

/* Old banner h2 styles */
.old-banner-h2 {
    font-family: "Roboto", sans-serif !important;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0;
    padding-left: 15%;
    font-weight: 900;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
}

/* Custom div margins */
.cusdiv2.justify-content-center {
    align-content: center;
}

/* Custom alignments */
.cus-align-right {
    float: right;
}

/* Print section styles */
#printSlider {
    display: none;
}

/* Hide elements initially */
.slick-play,
.slick-autoplay-toggle-button {
    display: none;
}

/* Dynamic element states */
#topBtn {
    display: none;
}

/* Dynamic navbar font size */
.navbar-nav.lang-3 {
    font-size: 0.938em;
}

/* ===== NEW BANNER LAYOUT STYLES ===== */

/* YouTube Column */
#youtubeColumn {
    padding: 12px;
}

.youtube-video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
}

#youtubeEmbed {
    width: 100%;
    height: 100%;
}

/* Make ratio container maintain 16:9 aspect ratio */
#youtubeColumn .ratio {
    aspect-ratio: 16 / 9;
}

/* Right Column */
#rightColumn {
    padding: 0;
    gap: 0;
    height: 100%;
}

/* Registration Counter Section */
.registration-counter-link {
    display: block;
    color: inherit;
    text-decoration: none;
    flex: 0 0 30%;
    max-height: 30%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.registration-counter-link:hover,
.registration-counter-link:focus {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
}

.registration-counter-link:visited,
.registration-counter-link:active {
    color: inherit;
    text-decoration: none;
}

.registration-counter-section {
    position: relative;
    padding: 8px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    height: 100%;
}

.registration-counter-section .registration-content {
    width: 100%;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.registration-counter-section .registration-heading {
    color: rgba(189, 79, 0, 1);
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.1;
    padding: 0.1rem 0;
    margin: 0;
    font-family: "Roboto", sans-serif !important;
}

/* Flipper container sizing */
/* .registration-counter-section .registration-content .flipper-container {
    transform: scale(0.9);
    transform-origin: center;
    gap: 0;
} */

.registration-counter-section .registration-content .flipper-container > .d-flex {
    margin-bottom: 0 !important;
}

.registration-counter-section .registration-content .tick {
    font-size: 1.4rem;
}

.registration-counter-section .registration-content .flipper-last-update {
    font-size: 1rem;
    font-weight: bold;
}

/* Highlights Section */
.highlights-section {
    padding: 0 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 0 70%;
    min-height: 0;
}

#rightColumn .hero {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#rightColumn .hero .slick-list,
#rightColumn .hero .slick-track {
    height: 100%;
}

#rightColumn .hero .hero-slide {
    align-items: center;
    justify-content: center;
    height: 100%;
}

#rightColumn .hero .slick-slide > div {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#rightColumn .hero .hero-slide img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.highlights-title {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #096081;
    padding-bottom: 8px;
}

.highlights-list {
    overflow-y: auto;
    flex: 1 1 0;
    min-height: 0;
}

.highlight-item {
    border-radius: 4px;
    margin-bottom: 8px;
}

.highlight-title {
    color: #3ec6ff;
    font-size: 0.9rem;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 10px 12px;
    width: 100%;
    text-align: left;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    line-height: 1.3;
}

.highlight-title.active, 
.highlight-item .highlight-title.active {
    background: #083a4c !important;
    color: #fff !important;
}

.highlight-title:hover, 
.highlight-title:focus {
    background: #0b7ca6 !important;
    color: #fff !important;
    text-decoration: none !important;
    outline: 2px solid #fff;
}

#mainBannerRow {
    align-items: stretch !important;
}

/* Responsive Styles */

/* Large tablets and small laptops */
@media screen and (max-width: 1200px) {
    /* Old banner h2 responsive styles for large tablets/small laptops */
    .old-banner-h2 {
        font-size: 1.1rem;
        margin-block-start: 0.75em;
        margin-block-end: 0.75em;
        padding-right: 10%;
    }

    .custitle8 {
        right: 8%;
    }
}

/* Handle high zoom levels (150%+) by reducing font sizes */
@media screen and (max-width: 900px) and (max-height: 600px) {
    /* This targets high zoom scenarios where viewport becomes smaller */
    .highlights-title {
        font-size: 0.95rem !important;
    }

    .highlight-title {
        font-size: 0.75rem !important;
    }

    .registration-counter-section .tick {
        font-size: 1.4rem !important;
    }
}

@media screen and (max-width: 768px) {
    #youtubeColumn {
        order: 1;
        aspect-ratio: 16 / 9;
        width: 100%;
    }

    #rightColumn {
        order: 2;
        min-height: auto;
    }

    .youtube-video-container,
    #youtubeEmbed {
        /* min-height: 400px; */
    }

    .registration-heading {
        font-size: 1.2rem;
    }

    .registration-counter-section .registration-content .tick {
        /* font-size: 3.5rem !important; */
    }

    /* Reduce font sizes for better zoom compatibility */
    .highlights-title {
        font-size: 1rem;
    }

    .highlight-title {
        font-size: 0.8rem;
    }

    /* Old banner h2 responsive styles for tablets */
    .old-banner-h2 {
        font-size: 1.5rem !important;
        margin-block-start: 0.7em !important;
        margin-block-end: 0.7em !important;
        padding-right: 10%
    }

    /* Custom column layout for banner slider at 768px */
    .hideLeft.noselect.fontsize700.col-sm-6.old-banner-h2 {
        flex: 0 0 100%;
        margin-right: 10%;
        text-align: center;
        display: flex;
        align-items: center; /* vertical alignment */
        justify-content: center; /* horizontal alignment */
        margin-bottom: 1rem;
    }

    .cusdiv2.col-sm-4 {
        flex: 0 0 100%;
        text-align: center;
    }

    .cusdiv2.col-sm-4 .cusimage,
    .cusdiv2.col-sm-4 .cusimage2 {
        float: none;
        margin: 0 auto;
        display: block;
    }
}


@media screen and (max-width: 576px) {
    .registration-heading {
        font-size: 1rem;
    }

    .registration-counter-section .tick {
        /* font-size: 3rem !important; */
    }

    .registration-counter-section {
        padding: 0.5rem 0;
    }

    .highlights-section {
        padding: 0.5rem 0;
    }

    .highlight-title {
        font-size: 0.75rem;
        padding: 8px 10px;
    }

    /* Further reduce font sizes for better zoom compatibility */
    .highlights-title {
        font-size: 0.9rem;
    }

    /* Old banner h2 responsive styles for mobile */
    .old-banner-h2 {
        font-size: 1.25rem;
        margin-block-start: 0.6em;
        margin-block-end: 0.6em;
    }
}

/* Animation for banner section */
#bannerSection.fadeIn {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Accessibility improvements */
.flipper-container .tick[aria-hidden="true"] {
    pointer-events: none;
}

/* Scrollbar styling for highlights list */
.highlights-list::-webkit-scrollbar {
    width: 8px;
}

.highlights-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.highlights-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.highlights-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Link styling override for highlights */
.highlight-title.btn-link {
    text-decoration: none !important;
}

.highlight-title.btn-link:hover,
.highlight-title.btn-link:focus {
    text-decoration: none !important;
}