/* Kasthamandap Brand Logo Sizing */

/* Header logos - main and sticky */
.logo-image img,
.header-logo img {
    max-width: 200px !important;
    height: auto !important;
}

/* Footer logo - using more inclusive selectors */
.footer-logo img,
.widget-head img,
.single-footer-widget img,
footer img[src*="logo"] {
    max-width: 260px !important;
    height: auto !important;
}

/* Offcanvas sidebar logo */
.offcanvas__logo img {
    max-width: 180px !important;
    height: auto !important;
}

/* Ensure logos are responsive on smaller screens */
@media (max-width: 991px) {

    .logo-image img,
    .header-logo img,
    .offcanvas__logo img {
        max-width: 140px !important;
    }

    footer img[src*="logo"],
    .widget-head img {
        max-width: 200px !important;
    }
}

@media (max-width: 575px) {

    .logo-image img,
    .header-logo img {
        max-width: 130px !important;
    }

    footer img[src*="logo"],
    .widget-head img {
        max-width: 150px !important;
    }
}

/* Testimonial Profile Photo Sizing */
.testimonial-card.style1 .testimonial-header .fancy-box .item1 img,
.testmonialSliderOne .item1 img,
.testimonial-card.style1 .item1 img {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Special handling for the person fallback icon to ensure it looks centered and clean */
img[src*="person.png"] {
    background-color: #f0f0f0;
    padding: 12px;
}

/* ===== Header nav responsive fit (v2) ===== */
.header-main { flex-wrap: nowrap !important; }
.header-main .main-menu ul:not(.submenu) {
    display: flex !important; flex-wrap: nowrap !important; white-space: nowrap !important; align-items: center;
}
.header-main .header-right { flex-wrap: nowrap !important; align-items: center !important; }
.header-main .header-right .theme-btn { white-space: nowrap !important; flex-shrink: 0 !important; }
.header-main .logo { flex-shrink: 0; }

/* Condense at ALL widths so the logo/menu/actions keep even spacing (incl. >1900px) */
.main-header-wrapper { gap: 40px !important; }
.header-main { gap: 24px !important; }
.header-main .main-menu ul:not(.submenu) > li { margin-inline-end: 20px !important; }
.header-main .header-right { gap: 18px !important; }
.header-section .header-main .header-right .theme-btn,
.sticky .header-main .header-right .theme-btn { margin-right: 16px !important; }

@media (max-width: 1900px) {
    .main-header-wrapper { gap: 30px !important; }
    .header-main { gap: 20px !important; }
    .header-main .main-menu ul:not(.submenu) > li { margin-inline-end: 18px !important; }
    .header-main .header-right { gap: 16px !important; }
    .header-section .header-main .header-right .theme-btn,
    .sticky .header-main .header-right .theme-btn { margin-right: 12px !important; }
}
@media (max-width: 1600px) {
    .header-section .container-fluid { padding: 0 30px !important; }
    .main-header-wrapper { gap: 20px !important; }
    .header-main { gap: 16px !important; }
    .header-main .main-menu ul:not(.submenu) > li { margin-inline-end: 14px !important; }
    .header-main .main-menu ul:not(.submenu) > li > a { font-size: 15px !important; }
    .header-main .header-right { gap: 12px !important; }
    .header-main .header-right .theme-btn { padding-left: 18px !important; padding-right: 18px !important; }
}
@media (max-width: 1400px) {
    .header-main .main-menu ul:not(.submenu) > li { margin-inline-end: 10px !important; }
    .header-main .main-menu ul:not(.submenu) > li > a { font-size: 14px !important; }
    .header-main { gap: 12px !important; }
    .header-main .header-right { gap: 8px !important; }
}
@media (max-width: 1199px) {
    .header-section .container-fluid { padding: 0 24px !important; }
}
