/* ==========================================================================
   About NABL - Homepage Multi-Slide Slider Styles
   ========================================================================== */

.about-nabl-slider-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 30px;
}

/* Prevent layout distortion & multiple blocks before Owl Carousel initializes */
.about-nabl-slider.owl-carousel:not(.owl-loaded) {
    display: block !important;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.about-nabl-slider.owl-carousel:not(.owl-loaded) > .item {
    display: none !important;
    width: 100% !important;
}

.about-nabl-slider.owl-carousel:not(.owl-loaded) > .item:first-child {
    display: flex !important;
}

.about-nabl-slider.owl-carousel:not(.owl-loaded) .about-slider-slide-hidden,
.about-slider-slide-hidden {
    display: none !important;
}

/* Base Slide Container */
.about-slider-slide {
    position: relative;
    border-radius: 20px;
    min-height: 310px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    padding: 36px 42px 42px 42px;
    transition: background 0.3s ease;
}

/* Neutral Plain Background (Scenario A, D, E without image) */
.about-slider-slide.no-image {
    background-color: #f7f9fa;
    background-image: url("../images/text-bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Overlay Layer (Above Image, Below Content) */
.about-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
}

/* Slide Content (Crisp Text & Interactive Elements) */
.about-slider-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
}

/* Content Alignments when image-only or button-only */
.about-slider-slide.button-only .about-slider-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Slide Title */
.about-slider-title {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

/* Slide Description */
.about-slider-description {
    font-size: 13.5px;
    line-height: 1.62;
    margin-bottom: 16px;
    max-height: 148px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    overscroll-behavior: contain;
    touch-action: pan-y;
    word-break: break-word;
    scrollbar-width: thin;
    scrollbar-color: #0869a6 #f1f5f9;
}

/* If slide has no button, allow more vertical height */
.about-slider-slide.no-button .about-slider-description,
.about-slider-slide:not(:has(.about-slider-btn)) .about-slider-description {
    max-height: 190px;
    margin-bottom: 0;
}

/* Custom Scrollbar for Description (Matches Brand Styling) */
.about-slider-description::-webkit-scrollbar {
    width: 5px;
}

.about-slider-description::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

.about-slider-description::-webkit-scrollbar-thumb {
    background: #0869a6;
    border-radius: 8px;
}

.about-slider-description::-webkit-scrollbar-thumb:hover {
    background: #065384;
}

/* Dark overlay / Image slide scrollbar styling */
.about-slider-slide:not(.no-image) .about-slider-description,
.about-nabl-slider.is-dark-overlay .about-slider-description {
    scrollbar-color: rgba(255, 255, 255, 0.75) rgba(255, 255, 255, 0.2);
}

.about-slider-slide:not(.no-image) .about-slider-description::-webkit-scrollbar-track,
.about-nabl-slider.is-dark-overlay .about-slider-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
}

.about-slider-slide:not(.no-image) .about-slider-description::-webkit-scrollbar-thumb,
.about-nabl-slider.is-dark-overlay .about-slider-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.75);
}

.about-slider-slide:not(.no-image) .about-slider-description::-webkit-scrollbar-thumb:hover,
.about-nabl-slider.is-dark-overlay .about-slider-description::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

.about-slider-description p {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.62;
    color: inherit;
}

.about-slider-description p:last-child {
    margin-bottom: 0;
}

.about-slider-description a {
    color: inherit;
    text-decoration: underline;
}

/* Button Pill (Matches XD Reference & Site Brand) */
.about-slider-btn {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    background-color: #0869a6;
    color: #ffffff !important;
    border: 1.5px solid #0869a6;
    padding: 7px 24px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(8, 105, 166, 0.22);
    margin-top: 6px;
    cursor: pointer;
}

.about-slider-btn:hover,
.about-slider-btn:focus {
    background-color: #065384;
    border-color: #065384;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(8, 105, 166, 0.35);
}

/* Navigation Dots (Positioned in Bottom Right) */
.about-nabl-slider .owl-dots {
    position: absolute;
    bottom: 20px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    z-index: 5;
    line-height: 1;
}

.about-nabl-slider .owl-dots .owl-dot {
    display: inline-block;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
}

.about-nabl-slider .owl-dots .owl-dot span {
    display: block;
    width: 9px;
    height: 9px;
    margin: 0;
    background: transparent;
    border: 1.5px solid #0869a6;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.about-nabl-slider .owl-dots .owl-dot.active span {
    background: #0869a6;
    border-color: #0869a6;
    transform: scale(1.15);
}

.about-nabl-slider .owl-dots .owl-dot:hover span {
    border-color: #065384;
}

/* Dark Overlay adjustments for Dots */
.about-nabl-slider.is-dark-overlay .owl-dots .owl-dot span {
    border-color: rgba(255, 255, 255, 0.75);
}

.about-nabl-slider.is-dark-overlay .owl-dots .owl-dot.active span {
    background: #ffffff;
    border-color: #ffffff;
}

/* Side Navigation Arrows (if enabled) */
.about-nabl-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 6;
    padding: 0 12px;
    box-sizing: border-box;
}

.about-nabl-slider .owl-nav button.owl-prev,
.about-nabl-slider .owl-nav button.owl-next {
    pointer-events: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0869a6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.about-nabl-slider .owl-nav button.owl-prev:hover,
.about-nabl-slider .owl-nav button.owl-next:hover {
    background: #0869a6 !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

/* Single Slide View (No Carousel Overhead) */
.about-nabl-single-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .about-slider-slide {
        min-height: 260px;
        padding: 30px 28px 36px 28px;
    }
    .about-slider-title {
        font-size: 21px;
    }
    .about-slider-description {
        max-height: 130px;
    }
    .about-slider-slide.no-button .about-slider-description,
    .about-slider-slide:not(:has(.about-slider-btn)) .about-slider-description {
        max-height: 170px;
    }
}

@media (max-width: 767px) {
    .about-slider-slide {
        min-height: auto;
        padding: 26px 20px 44px 20px;
    }
    .about-slider-content {
        max-width: 100%;
    }
    .about-slider-title {
        font-size: 19px;
        margin-bottom: 12px;
    }
    .about-slider-description {
        font-size: 13px;
        margin-bottom: 16px;
        max-height: 160px;
    }
    .about-slider-slide.no-button .about-slider-description,
    .about-slider-slide:not(:has(.about-slider-btn)) .about-slider-description {
        max-height: 200px;
    }
    .about-nabl-slider .owl-dots {
        bottom: 14px;
        right: 18px;
    }
}

/* Equal Height with Announcements Card on Desktop */
@media (min-width: 992px) {
    .about-announcements-row {
        display: flex;
        align-items: stretch;
    }

    .about-announcements-row > .about-slider-col,
    .about-announcements-row > .about-announcements-col {
        display: flex;
        flex-direction: column;
        margin-bottom: 0 !important;
    }

    .about-announcements-row .about-nabl-slider-wrapper {
        height: 100% !important;
        min-height: 100% !important;
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    .about-announcements-row .about-nabl-slider.owl-carousel:not(.owl-loaded) {
        display: block !important;
        height: 100% !important;
        min-height: 310px !important;
        overflow: hidden;
    }

    .about-announcements-row .about-nabl-slider.owl-carousel:not(.owl-loaded) > .item:not(:first-child) {
        display: none !important;
    }

    .about-announcements-row .about-nabl-slider.owl-carousel:not(.owl-loaded) > .item:first-child {
        display: flex !important;
        height: 100% !important;
        min-height: 310px !important;
        width: 100%;
    }

    .about-announcements-row .about-nabl-slider,
    .about-announcements-row .about-nabl-single-card {
        height: 100% !important;
        min-height: 100% !important;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    .about-announcements-row .owl-stage-outer {
        height: 100% !important;
        min-height: 100% !important;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    .about-announcements-row .owl-stage {
        height: 100% !important;
        min-height: 100% !important;
        display: flex;
    }

    .about-announcements-row .owl-item {
        height: 100% !important;
        min-height: 100% !important;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
    }

    .about-announcements-row .about-slider-slide {
        height: 100% !important;
        min-height: 310px !important;
        width: 100%;
        flex: 1 1 auto;
    }

    .about-announcements-row .event-section {
        height: 100% !important;
        min-height: 310px !important;
        display: flex;
        flex-direction: column;
    }

    .about-announcements-row .event-section .event-list-wrapper {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }
}

