/* ===================================
    Analife - custom overrides
====================================== */

/* variable */
:root {
    --alt-font: 'Rufina', serif;
    --primary-font: 'Manrope', sans-serif;
    --base-color: #b24fa0;
    --dark-gray: #0e2a62;
    --medium-gray: #5f6b82;
    --aluminium-grey: rgba(255, 255, 255, 0.5);
    --very-light-gray: rgba(235, 239, 246, 0.4);
}
body {
    font-size: 17px;
    line-height: 28px;
}

/* Prevent theme "outside-box" bleed helpers from creating page-level horizontal scroll */
html {
    overflow-x: clip;
}
.service-gallery-wrap,
.department-gallery-wrap {
    overflow: hidden;
    max-width: 100%;
}
/* header */
header .navbar-brand img {
    max-height: 62px;
    width: auto;
    height: auto;
    aspect-ratio: 255 / 168;
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a,
.navbar .navbar-nav .nav-link {
    font-weight: 600;
    font-size: 15px;
}
.navbar .navbar-nav .dropdown .dropdown-menu {
    margin: 0;
    padding: 40px 0 25px;
}
.navbar .navbar-nav .submenu-content .mega-menu {
    width: 90%;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 25px;
}
/* button */
.btn {
    font-weight: 600;
    font-family: var(--primary-font);
    letter-spacing: normal;
    text-transform: none;
}
.btn.btn-switch-text.btn-extra-large > span {
    padding: 18px 34px;
}
.btn.btn-switch-text.btn-large > span {
    padding: 16px 32px;
}
.btn.btn-large {
    font-size: 17px;
}
.btn.btn-switch-text.btn-medium > span {
    padding: 13px 26px;
}
.btn.btn-transparent-blue-light {
    border-color: rgba(14, 42, 48, 0.20);
    color: var(--dark-gray);
}
.btn.btn-transparent-blue-light:hover {
    background-color: var(--dark-gray);
    border-color: var(--dark-gray);
    color: var(--white);
}
/* bg background color */
.bg-light-blue-gray {
    background-color: #ebeff6;
}
/* Gradient background color */
.bg-gradient-blue-transparent-first {
    background: linear-gradient(to top, rgb(235, 239, 246, 1) 10%, rgba(235, 239, 246, 0) 100%);
}
.bg-gradient-blue-transparent-second {
    background: linear-gradient(to bottom, rgb(235, 239, 246, 1) 10%, rgba(235, 239, 246, 0) 100%);
}
.bg-gradient-pink-transparent-first {
    background: linear-gradient(to top, rgb(235, 239, 246, 1) 10%, rgba(255, 243, 253, 1) 100%);
}
.bg-gradient-pink-transparent-second {
    background: linear-gradient(to bottom, rgb(255, 243, 253, 1) 10%, rgba(235, 239, 246, 0) 100%);
}
.bg-gradient-white-bottom-transparent {
    background: rgb(0, 0, 0);
    background: linear-gradient(271deg, rgba(0, 0, 0, 0) 0%, rgb(255, 255, 255) 60%);
}
/* Border color */
.border-color-extra-medium-gray {
    border-color: rgba(14, 42, 98, 0.2) !important;
}
/* Video icons */
.video-icon-extra-large .video-icon {
    width: 170px;
    height: 170px;
    font-size: 16px;
}
/* Page title style */
.page-title-double-large h1 {
    font-size: 56px;
    line-height: 4.375rem;
}
.down-section {
    bottom: 30px;
}
/* left */
.left-25 {
    left: 25%;
}
/* footer */
footer .footer-logo img {
    max-height: fit-content;
    width: 130px;
    height: auto;
    aspect-ratio: 255 / 168;
}
.footer-dark a:hover {
    color: var(--white);
    opacity: 1;
}
.footer-dark .newsletter-style-02 input::placeholder {
    color: var(--white) !important;
    opacity: 0.5; /* Firefox */
}
.footer-dark .newsletter-style-02 input:-ms-input-placeholder {
    color: var(--white) !important;
}
.footer-dark .newsletter-style-02 input::-ms-input-placeholder {
    color: var(--white) !important;
}
footer ul li {
    margin-bottom: 2px;
}
.content-show h2 {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}
.content-show h3 {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}
.content-show p {
    line-height: 1.5;
    font-size: 16px;
    margin-bottom: 12px;
}
.content-show li {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 4px;
}
.content-show a {
    color: #b24fa0;
}
.content-show ul,
.content-show ol {
    margin-bottom: 12px;
}
.content-show h2,
.content-show h3,
.content-show h4 {
    margin-top: 0.95em;
}
.content-show tr {
    border-color: #f1f1f1;
    border-style: solid;
    border-width: 1px;
}
.content-show tr td {
    padding: 10px;
}
.content-show tr td p {
    margin-bottom: 0px;
}
.content-show {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.content-show table {
    max-width: 100%;
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    animation: slideInRight 0.3s ease-out;
}
.toast-notification.success {
    border-left: 4px solid #10b981;
}
.toast-notification.error {
    border-left: 4px solid #ef4444;
}
.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.toast-notification.success .toast-icon::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}
.toast-notification.error .toast-icon::before {
    content: "✕";
    color: #ef4444;
    font-weight: bold;
}
.toast-message {
    color: #1f2937;
    font-size: 16px;
    line-height: 1.5;
}
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
.toast-notification.hide {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Prevent iOS zoom on form focus */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select,
.form-control {
    font-size: 16px;
}

/* Doctor card images — stable aspect to reduce CLS */
.team-style-06 img.rounded-circle.w-150px {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

@media (max-width: 1600px) {
    .navbar .navbar-nav .nav-link {
        padding-left: 16px;
        padding-right: 16px;
    }
}
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1345px;
    }
}
@media (max-width: 1400px) {
    .navbar .navbar-nav .nav-link {
        padding-left: 12px;
        padding-right: 12px;
    }
}
@media (max-width: 1199px) {
    .video-icon-extra-large .video-icon {
        width: 140px;
        height: 140px;
    }
    .extra-small-screen {
        height: 300px !important;
    }
    .navbar > .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    .navbar .navbar-nav .nav-link {
        padding-left: 8px;
        padding-right: 8px;
    }
}
@media (max-width: 991px) {
    .video-icon-extra-large .video-icon {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 790px) {
    header .navbar-brand {
        padding: 6px 0;
    }

    .page-title-double-large h1 {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 12px !important;
    }
    .page-title-double-large h2 {
        font-size: 16px !important;
        line-height: 1.45 !important;
        font-weight: 400;
    }
    .extra-very-small-screen {
        height: auto !important;
        min-height: 120px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .breadcrumb ul {
        margin: 0;
        padding: 0;
        text-align: center;
    }
    .row > * {
        padding-right: 10px;
        padding-left: 10px;
    }
    .team-style-06 {
        margin-bottom: 10px !important;
    }
}

.department-panel {
    display: none;
}
.department-panel.is-open {
    display: block !important;
}
.department-toggle[aria-expanded="true"] .fa-angle-down {
    transform: rotate(180deg);
}
.department-toggle .fa-angle-down {
    transition: transform 0.2s ease;
}
.department-link {
    color: var(--dark-gray, #232323);
    line-height: 1.35;
    padding: 6px 0;
}
.department-link:hover,
.department-link:focus {
    color: var(--base-color, #c4a35a);
}
.department-toggle {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--dark-gray, #232323);
}

/* Desktop: expand services on hover, click title goes to department */
@media (min-width: 992px) {
    .mega-menu-accordion .department-item {
        position: relative;
    }
    .mega-menu-accordion .department-item:hover > .department-panel,
    .mega-menu-accordion .department-item:focus-within > .department-panel {
        display: block !important;
    }
    .mega-menu-accordion .department-item:hover .department-toggle .fa-angle-down,
    .mega-menu-accordion .department-item:focus-within .department-toggle .fa-angle-down {
        transform: rotate(180deg);
    }
    .mega-menu-accordion .department-panel {
        padding-bottom: 6px;
    }
    .mega-menu-accordion .service-link {
        display: block;
        padding: 4px 0;
        color: var(--medium-gray, #6f6f6f);
        font-size: 14px;
        line-height: 1.4;
    }
    .mega-menu-accordion .service-link:hover {
        color: var(--base-color, #c4a35a);
    }
}

/* Compact mobile header + menu (≤991px = collapsed nav) */
@media (max-width: 991px) {
    header .navbar {
        min-height: 56px;
        padding-top: 0;
        padding-bottom: 0;
    }
    header .navbar > .container-fluid {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        min-height: 56px;
        padding-left: 14px !important;
        padding-right: 10px !important;
        gap: 4px;
    }
    header .navbar > .container-fluid > [class*=col-] {
        display: flex;
        align-items: center;
        align-self: center;
        float: none;
        width: auto;
        max-width: none;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    header .navbar > .container-fluid > [class*=col-]:first-child {
        margin-right: auto;
        flex: 0 1 auto;
    }
    header .navbar-brand {
        padding: 0;
        margin: 0;
        line-height: 1;
        display: flex;
        align-items: center;
    }
    header .navbar-brand img {
        max-height: 42px;
        width: auto;
        display: block;
    }
    header .menu-order {
        margin-left: 0;
        margin-right: 0;
        justify-content: flex-end;
    }
    .navbar-toggler {
        float: none !important;
        margin: 0;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        background: transparent;
        position: relative;
    }
    .navbar-toggler .navbar-toggler-line {
        left: 50%;
        right: auto;
        margin-left: 0;
        margin-right: 0;
        transform: translateX(-50%);
    }
    .navbar-toggler .navbar-toggler-line:nth-child(1) {
        top: 15px;
        width: 12px;
        margin-left: -5px; /* short line offset like theme */
        left: calc(50% - 1px);
        transform: none;
    }
    .navbar-toggler .navbar-toggler-line:nth-child(2),
    .navbar-toggler .navbar-toggler-line:nth-child(3) {
        top: 21px;
        width: 18px;
        transform: translateX(-50%);
    }
    .navbar-toggler .navbar-toggler-line:nth-child(4) {
        top: 27px;
        width: 12px;
        left: calc(50% - 1px);
        transform: none;
    }
    .navbar-collapse-show .navbar-toggler .navbar-toggler-line:nth-child(1),
    .navbar-collapse-show .navbar-toggler .navbar-toggler-line:nth-child(4) {
        top: 21px;
        width: 0 !important;
        opacity: 0;
    }
    .navbar-collapse-show .navbar-toggler .navbar-toggler-line:nth-child(2) {
        top: 21px;
        transform: translateX(-50%) rotate(45deg);
    }
    .navbar-collapse-show .navbar-toggler .navbar-toggler-line:nth-child(3) {
        top: 21px;
        transform: translateX(-50%) rotate(-45deg);
    }
    header .header-icon,
    header .header-button {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;
    }
    header .header-button .btn.btn-small {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        padding: 0 !important;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        box-shadow: 0 4px 12px rgba(178, 79, 160, 0.25);
    }
    header .header-button .btn.btn-switch-text.btn-small > span {
        padding: 0 !important;
        width: 44px;
        height: 44px;
        min-height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    header .header-button .btn.btn-switch-text.btn-small > span > span {
        padding: 0 !important;
        margin: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    header .header-button .btn i {
        margin: 0 !important;
        font-size: 16px;
        line-height: 1;
    }
    /* Opened classic mobile menu */
    .navbar-collapse {
        max-height: calc(100vh - 56px);
        border-top: 1px solid rgba(14, 42, 98, 0.08);
        z-index: 999;
    }
    /* Hide theme custom cursor on touch layouts (ghost circle) */
    .cursor-page-inner,
    .circle-cursor {
        display: none !important;
    }
    [data-mobile-nav-style=classic] .navbar .navbar-nav {
        padding: 6px 0 12px;
    }
    .navbar .navbar-nav .nav-link {
        font-size: 16px;
        line-height: 1.3;
        padding: 10px 14px !important;
    }
    .navbar .navbar-nav .dropdown .dropdown-menu {
        padding: 4px 0 8px !important;
        margin: 0 !important;
    }
    .navbar .navbar-nav .dropdown .dropdown-toggle,
    .navbar .navbar-nav .submenu .dropdown-toggle,
    .navbar .navbar-nav .simple-dropdown .dropdown-toggle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .navbar .navbar-nav .simple-dropdown .dropdown-menu li a {
        padding: 10px 18px !important;
        font-size: 16px;
        line-height: 1.4;
    }
    .mega-menu-accordion {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-bottom: 8px !important;
    }
    .department-item {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    .department-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 8px 4px 8px 10px;
        font-size: 16px;
        font-weight: 600;
    }
    .department-toggle {
        min-height: 44px;
        min-width: 44px;
        width: 44px;
        height: 44px;
        font-size: 16px;
        text-align: center;
        box-shadow: none !important;
        background: transparent !important;
        border: 0 !important;
        color: var(--dark-gray);
    }
    .department-toggle .fw-semibold {
        font-weight: 600;
    }
    .service-link {
        display: block;
        min-height: 40px;
        padding: 8px 4px;
        font-size: 16px;
        line-height: 1.4;
        color: var(--medium-gray);
    }
}

/* Google Mobile-Friendly overrides */
@media (max-width: 767px) {
    /* Prevent horizontal overflow from theme bleed helpers */
    .outside-box-right-10,
    .outside-box-right-20,
    .outside-box-right-25,
    .outside-box-right-30,
    .xxl-outside-box-right-7 {
        margin-right: 0 !important;
    }

    /* —— Compact but readable mobile typography (≥16px body) —— */
    body {
        font-size: 16px;
        line-height: 1.45;
    }
    p {
        font-size: 16px;
        line-height: 1.45;
        margin-bottom: 10px;
    }
    .fs-13,
    .fs-14,
    .fs-15 {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    .fs-18,
    .fs-20 {
        font-size: 16px !important;
        line-height: 1.45 !important;
    }
    /* Breadcrumb: one compact line, no wrap, truncate long labels */
    .breadcrumb.breadcrumb-style-01 {
        max-width: 100%;
        overflow: hidden;
        margin-bottom: 6px !important;
    }
    .breadcrumb.breadcrumb-style-01 ul {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        overflow: hidden;
        text-align: center;
    }
    .breadcrumb.breadcrumb-style-01 ul li {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 38%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    .breadcrumb.breadcrumb-style-01 ul li a,
    .breadcrumb.breadcrumb-style-01 ul li span {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    .breadcrumb.breadcrumb-style-01 ul li:last-child {
        max-width: 48%;
    }
    .breadcrumb.breadcrumb-style-01 ul li:after {
        padding: 0 3px 0 5px !important;
        font-size: 10px !important;
        vertical-align: middle;
    }
    /* Current page is already in the H1 — drop marked crumbs */
    .breadcrumb.breadcrumb-style-01 ul li.breadcrumb-current {
        display: none;
    }
    .breadcrumb.breadcrumb-style-01 ul li:has(+ li.breadcrumb-current):after {
        content: "" !important;
        padding: 0 !important;
    }
    .page-title-double-large h2 {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    /* Section / list headings */
    h2.fs-40,
    .fs-40 {
        font-size: 22px !important;
        line-height: 1.2 !important;
        letter-spacing: -0.3px !important;
    }
    h2.alt-font,
    h3.alt-font {
        line-height: 1.2;
    }
    .list-style-01 li,
    .list-style-01 li a {
        font-size: 15px !important;
        line-height: 1.4;
    }
    /* CMS article / service long text — denser to cut scroll */
    .content-show,
    .dropcap-style-01 {
        font-size: 16px;
        line-height: 1.45;
    }
    .content-show p,
    .content-show li,
    .dropcap-style-01 p {
        font-size: 16px !important;
        line-height: 1.45 !important;
        margin-bottom: 9px !important;
    }
    .content-show ul,
    .content-show ol {
        margin-bottom: 10px !important;
        padding-left: 1.1em;
    }
    .content-show li {
        margin-bottom: 3px;
    }
    .content-show h2 {
        font-size: 19px !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
        margin-top: 0.85em !important;
    }
    .content-show h3 {
        font-size: 17px !important;
        line-height: 1.25 !important;
        margin-bottom: 5px !important;
        margin-top: 0.75em !important;
    }
    .content-show h4,
    .content-show h5 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
        margin-top: 0.7em !important;
    }
    .content-show tr td {
        padding: 6px;
        font-size: 15px;
        line-height: 1.35;
    }
    /* Cards / meta / comments */
    .team-style-06 .fs-18,
    .team-style-06 a.text-dark-gray {
        font-size: 16px !important;
        line-height: 1.3;
    }
    .team-style-06 p {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    .feature-box .fs-19,
    .feature-box-content span.fs-19 {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }
    .feature-box-content p,
    .feature-box-content .text-light-opacity {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }
    /* Footer */
    footer,
    footer p,
    footer li,
    footer a,
    footer .fs-15,
    footer .fs-16 {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
    footer h5 {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }
    /* Blog / news meta */
    .blog-category-tabs .blog-tab-btn {
        font-size: 16px !important;
    }
    .author,
    .blog-post .fs-14,
    .comment-style-03 .fs-14,
    .last-paragraph-no-margin {
        font-size: 16px !important;
        line-height: 1.45 !important;
    }
    /* Buttons keep readable label size */
    .btn.btn-medium,
    .btn.btn-large,
    .btn.btn-extra-large,
    .btn.btn-link {
        font-size: 16px !important;
    }

    /* Hero headline scale */
    .fs-85 {
        font-size: 38px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.5px !important;
    }
    .lh-75 {
        line-height: 1.15 !important;
    }

    /* Toast fits narrow viewports */
    .toast-notification {
        left: 12px;
        right: 12px;
        top: 12px;
        min-width: 0;
        max-width: none;
        width: auto;
    }
    .toast-message {
        font-size: 16px;
    }

    /* Departments list padding on mobile */
    .ps-8.md-ps-15px,
    .ps-8 {
        padding-left: 15px !important;
    }

    /* Footer CTA stack */
    footer .btn-large {
        margin-bottom: 8px;
    }
}

@media (max-width: 575px) {
    .fs-85 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    header .navbar-brand img {
        max-height: 40px;
    }
    header .navbar > .container-fluid {
        min-height: 52px;
    }
    header .navbar {
        min-height: 52px;
    }
    .page-title-double-large h1 {
        font-size: 26px;
        line-height: 1.25;
    }
    h2.fs-40,
    .fs-40 {
        font-size: 24px !important;
    }
}

/* Mobile related services accordion on service pages */
.related-services-mobile .related-services-toggle {
    min-height: 48px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    white-space: normal;
    gap: 12px;
}
.related-services-mobile .related-services-chevron {
    transition: transform 0.25s ease;
}
.related-services-mobile .related-services-toggle[aria-expanded="true"] .related-services-chevron {
    transform: rotate(180deg);
}
.related-services-mobile .related-services-list a {
    font-size: 16px;
    line-height: 1.45;
    display: block;
    padding-right: 28px;
}
.related-services-mobile .related-services-list li {
    position: relative;
    display: flex;
    align-items: center;
}

/* Media centar */
.media-press-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.media-press-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.media-video-card .media-video-trigger,
.media-video-card .media-video-iframe {
    display: block;
    aspect-ratio: 16 / 9;
    background: #111;
}
.media-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-video-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.media-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 28px;
    transition: background 0.2s ease;
}
.media-video-trigger:hover .media-video-play,
.media-video-trigger:focus-visible .media-video-play {
    background: rgba(178, 79, 160, 0.55);
}
.media-gallery-item {
    aspect-ratio: 4 / 3;
}
.media-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 767px) {
    .media-press-card .btn {
        width: 100%;
        text-align: center;
    }
}

/* Sertifikati */
.sertifikati-gallery-item {
    aspect-ratio: 3 / 4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.sertifikati-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

/* Zdravstveni turizam */
.turizam-gallery-item {
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.turizam-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Galerija bolnice */
.galerija-bolnice-item {
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
}
.galerija-bolnice-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* O nama */
.about-hero-photo,
.about-mission-photo,
.about-center-photo {
    object-fit: cover;
}
.about-center-photo {
    aspect-ratio: 600 / 467;
    height: auto;
}
.o-nama-gallery-item {
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
}
.o-nama-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Accessibility: contrast helpers */
.text-medium-gray,
.text-light-opacity,
p.text-light-opacity {
    color: #4a5568 !important;
}
.footer-dark .number-holder a,
.footer-dark a {
    color: #ffffff;
}
.footer-dark .number-holder a:hover {
    color: #fee300;
}
.bg-dark-gray .text-white {
    color: #ffffff !important;
}
header .navbar-brand img {
    aspect-ratio: 255 / 168;
    object-fit: contain;
}

/* Instagram feed (native Graph API grid) */
.instagram-feed-item {
    aspect-ratio: 1 / 1;
    background: #f3f5f9;
}
.instagram-feed-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.instagram-feed-item:hover img {
    transform: scale(1.05);
}
.instagram-feed-video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Department services list */
.department-service-children {
    list-style: disc !important;
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin: 0;
}
.department-service-children > li {
    list-style: disc !important;
    list-style-type: disc !important;
    display: list-item !important;
    padding-bottom: 6px;
    line-height: 1.45;
    padding-left: 0.25rem;
}
.department-service-children > li::marker {
    color: var(--base-color, #b24fa0);
    font-size: 1.05em;
}

@media (max-width: 991px) {
    .department-services-list {
        width: 100%;
        max-width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .department-services-list > .row {
        margin-left: 0;
        margin-right: 0;
    }
    .department-services-list > .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    .department-service-children {
        padding-left: 1.75rem !important;
        margin-top: 12px !important;
    }
    .department-service-children > li {
        padding-bottom: 8px;
    }
}

/* Tel buttons must stay white on base-color (parent .text-dark-gray otherwise forces dark text) */
.text-dark-gray a.btn[href^="tel"],
a.btn.btn-base-color[href^="tel"],
.btn.btn-base-color {
    color: #ffffff !important;
}
.btn.btn-base-color:hover,
.btn.btn-base-color:active,
.btn.btn-box-shadow.btn-base-color:hover,
.btn.btn-box-shadow.btn-base-color:active,
.text-dark-gray a.btn.btn-base-color[href^="tel"]:hover {
    color: var(--base-color) !important;
}
.btn.btn-base-color .btn-double-text,
.btn.btn-base-color i {
    color: inherit !important;
}
