/*
|--------------------------------------------------------------------------
| Home Center Content
|--------------------------------------------------------------------------
*/

.display-page-content {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/*
|--------------------------------------------------------------------------
| Home Content Shell
|--------------------------------------------------------------------------
*/

.home-content-shell {
    height: 100%;
    min-height: 0;
    overflow: hidden;

    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;

    background: #eef4ff;
    border-radius: 8px;
}

/*
|--------------------------------------------------------------------------
| Slider Card
|--------------------------------------------------------------------------
*/

.home-slider-card {
    min-height: 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid rgba(34, 67, 182, 0.12);
    border-radius: 8px;

    box-shadow: 0 3px 10px rgba(15, 35, 95, 0.08);
}

.home-slider-wrapper {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 320px;

    overflow: hidden;
    border-radius: 8px;
}

/*
|--------------------------------------------------------------------------
| Home Carousel
|--------------------------------------------------------------------------
| Custom carousel. Does not depend on FlexSlider runtime.
|--------------------------------------------------------------------------
*/

#main_slider {
    width: 100%;
    height: 100%;
    min-height: 320px;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;
    border: 0 !important;
    border-radius: 8px;

    background: #f8fbff;
    position: relative;
}

#main_slider .slides {
    width: 100%;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;

    position: relative;
}

#main_slider .slides > li {
    display: block !important;

    width: 100%;
    height: 100% !important;

    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;
    z-index: 1;

    overflow: hidden;

    transition:
        opacity 700ms ease,
        visibility 700ms ease;
}

#main_slider .slides > li.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

#main_slider .slides > li > a {
    display: block;

    width: 100%;
    height: 100%;

    position: relative;

    color: inherit;
    text-decoration: none;
}

#main_slider img {
    width: 100% !important;
    height: 100% !important;

    min-height: 320px;

    object-fit: cover;
    object-position: center center;

    display: block !important;

    background: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Slider Caption
|--------------------------------------------------------------------------
*/

.home-slider-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 48px;

    padding: 10px 14px;

    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(13, 79, 168, 0.92),
        rgba(31, 86, 124, 0.92)
    );

    color: #ffffff;

    box-shadow: 0 6px 16px rgba(15, 35, 95, 0.2);

    overflow: hidden;
}

.home-slider-caption strong {
    display: block;

    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-slider-caption span {
    display: block;

    margin-top: 3px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;

    opacity: 0.94;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-slider-empty {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2243B6;
    font-size: 24px;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Slider Dots
|--------------------------------------------------------------------------
*/

.home-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    transform: translateX(-50%);

    max-width: calc(100% - 32px);
    padding: 6px 10px;

    border-radius: 999px;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(4px);
}

.home-slider-dot {
    width: 10px;
    height: 10px;

    display: inline-block;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.6);

    cursor: pointer;

    transition:
        width 160ms ease,
        background 160ms ease,
        transform 160ms ease,
        opacity 160ms ease;
}

.home-slider-dot:hover,
.home-slider-dot:focus {
    background: #ffffff;
    transform: scale(1.15);
    outline: none;
}

.home-slider-dot.is-active {
    width: 24px;
    border-radius: 999px;

    background: #169b62;
}

.home-slider-dots.is-hidden {
    display: none !important;
}

.home-slider-dots:not(.is-hidden) {
    display: flex !important;
}

#main_slider.is-ready .slides > li.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
}

/*
 * Safety fallback:
 * while JS is initializing, show the first slide instead of showing only dots.
 */
#main_slider:not(.is-ready) .slides > li:first-child {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/*
|--------------------------------------------------------------------------
| Member Panel
|--------------------------------------------------------------------------
*/

.home-member-panel {
    min-height: 0;

    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;

    overflow: hidden;
}

.home-member-card {
    min-width: 0;
    flex: 1 1 0;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;

    padding: 8px 9px;

    background: #ffffff;
    border: 1px solid rgba(34, 67, 182, 0.12);
    border-radius: 14px;

    box-shadow: 0 3px 10px rgba(15, 35, 95, 0.08);

    overflow: hidden;
}

.home-member-image {
    width: 48px;
    height: 48px;

    border-radius: 13px;
    overflow: hidden;

    background: rgba(34, 67, 182, 0.08);

    flex: 0 0 auto;
}

.home-member-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

.home-member-info {
    min-width: 0;
    overflow: hidden;
}

.home-member-info p,
.home-member-info h4 {
    margin: 0;
}

.home-member-designation {
    color: #2243B6;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-member-info h4 {
    margin-top: 2px;

    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-member-contact {
    margin-top: 2px !important;

    color: #475569;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*
|--------------------------------------------------------------------------
| Small Height Safety
|--------------------------------------------------------------------------
*/

@media (max-height: 760px) {
    .home-content-shell {
        gap: 6px;
    }

    .home-slider-wrapper,
    #main_slider {
        min-height: 280px;
    }

    #main_slider img {
        min-height: 280px;
    }

    .home-slider-caption {
        left: 10px;
        right: 10px;
        bottom: 42px;

        padding: 8px 11px;
        border-radius: 10px;
    }

    .home-slider-caption strong {
        font-size: 16px;
    }

    .home-slider-caption span {
        font-size: 12px;
    }

    .home-slider-dots {
        bottom: 10px;
        gap: 6px;
        padding: 5px 8px;
    }

    .home-slider-dot {
        width: 9px;
        height: 9px;
    }

    .home-slider-dot.is-active {
        width: 22px;
    }

    .home-member-panel {
        gap: 6px;
    }

    .home-member-card {
        padding: 7px 8px;
        gap: 8px;
        border-radius: 12px;
    }

    .home-member-image {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .home-member-designation,
    .home-member-contact {
        font-size: 10px;
    }

    .home-member-info h4 {
        font-size: 13px;
    }
}