/* Hero Slider Block - Medical 1 Style Dots */
.hero-slider-block .custom-dots-style-1 .owl-dots {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-slider-block .custom-dots-style-1 .owl-dots .owl-dot {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 100% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    margin-left: 0 !important;
}

.hero-slider-block .custom-dots-style-1 .owl-dots .owl-dot>span {
    background: transparent !important;
    border-radius: 100% !important;
    width: 8px !important;
    height: 8px !important;
}

.hero-slider-block .custom-dots-style-1 .owl-dots .owl-dot.active>span {
    background: #FFF !important;
}

.hero-slider-block .custom-dots-style-1 .owl-dots .owl-dot+.owl-dot {
    margin-top: 6px !important;
}

.hero-slider-block .owl-carousel.dots-vertical-center .owl-dots {
    position: absolute !important;
    top: 50% !important;
    right: 30px !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
    .hero-slider-block .owl-carousel.dots-vertical-center .owl-dots {
        right: 15px !important;
    }
}

.feature-cards-block .card-body img {
    max-width: 227px;
    height: auto;
}

/* Latest Posts List - Medical Demo 1 Style */
.thumb-info-side-image-custom {
    border: 0 none;
    color: var(--default);
    margin: 0 0 35px;
    transition: all 0.3s ease;
}

.thumb-info-side-image-custom .thumb-info-side-image-wrapper {
    padding: 0;
    margin-right: 30px;
}

.thumb-info-side-image-custom .thumb-info-caption {
    text-align: left;
}

.thumb-info-side-image-custom .thumb-info-caption h4 {
    margin: 30px 0 0;
    padding: 0;
}

.thumb-info-side-image-custom .thumb-info-caption p {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 24px;
}

.thumb-info-side-image-custom:hover {
    box-shadow: 10px 10px 74px -15px rgba(0, 0, 0, 0.33) !important;
}

.thumb-info-side-image-custom.thumb-info-side-image-custom-highlight .thumb-info-side-image-wrapper {
    margin: 0 0 10px 0;
    padding: 0;
}

.thumb-info-side-image-custom.thumb-info-side-image-custom-highlight .thumb-info-caption {
    padding: 0 10px;
    display: block;
    clear: both;
}

.thumb-info-side-image-custom.thumb-info-side-image-custom-highlight .thumb-info-caption h4 {
    margin: 3px 0 0;
    padding: 0;
}

.thumb-info-side-image-custom.thumb-info-side-image-custom-highlight .thumb-info-caption p {
    margin: 0;
    padding: 0;
}

@media (max-width: 767px) {
    .thumb-info-side-image-custom.thumb-info-side-image-custom-highlight .thumb-info-side-image-wrapper {
        width: 100%;
    }
}

/* Sticky Header Logo Padding & Aspect Ratio Fix */
html.sticky-header-active #header .header-logo {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    margin: 0 !important;
}

html.sticky-header-active #header .header-logo img {
    height: auto !important;
    max-height: 50px !important;
    /* Scale down to fit the smaller sticky bar */
    width: auto !important;
}

/* Highlight current menu element */
#header .header-nav-main nav>ul>li.current-menu-item>a,
#header .header-nav-main nav>ul>li.current_page_item>a,
#header .header-nav-main nav>ul>li.current-menu-ancestor>a,
#header .header-nav-main nav>ul>li.current-page-ancestor>a,
#header .header-nav-main nav>ul>li.active>a {
    color: var(--primary) !important;
}

#header .header-nav-main nav>ul>li.current-menu-item>a:after,
#header .header-nav-main nav>ul>li.current_page_item>a:after,
#header .header-nav-main nav>ul>li.current-menu-ancestor>a:after,
#header .header-nav-main nav>ul>li.current-page-ancestor>a:after,
#header .header-nav-main nav>ul>li.active>a:after {
    background: var(--primary) !important;
}

/* Dropdown items */
#header .header-nav-main nav>ul>li.dropdown .dropdown-menu li.current-menu-item>a,
#header .header-nav-main nav>ul>li.dropdown .dropdown-menu li.active>a {
    color: var(--primary) !important;
}

/* Footer menu active state */
.nav-footer ul li.active a {
    color: var(--primary) !important;
}
/* Archive cards (events / publications) — uniform thumbnail aspect ratio */
.archive-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f7f7f7;
}

.archive-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    display: block;
}

.archive-card-thumb.bg-light img {
    object-fit: contain;
    padding: 1.5rem;
}
