/* Header CSS - Kahani Corner Custom Redesign */

/* Reset / General Header Styles */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;

}

.header-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 8vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85px;
    position: relative;
    border-top: 4px solid #f9c5c8;
}

/* Logo Styles (Circular overlapping/hanging design) */
.header-logo {
    position: relative;
    width: 140px;
    height: 85px;
    display: flex;
    align-items: center;
}

.header-logo a {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 100%;
}

.header-logo img,
.header-logo .custom-logo-link img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    /* position: absolute;
    top: 0px;
    left: 0;
    z-index: 1010; */
    object-fit: contain;
    background-color: #ffffff;
    transition: transform 0.3s ease;
}

.header-logo .site-title {
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Desktop Menu Styles */
.desktop-menu {
    display: block;
}

.desktop-menu ul {
    display: flex;
    gap: 5px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.desktop-menu li {
    margin: 0;
    padding: 0;
}

.desktop-menu a {
    text-decoration: none;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.desktop-menu a:hover {
    color: #fff;
    background: #1e3a6f;
    border-radius: 50px;
}

/* Current Active Menu Item (Pill shape background) */
.desktop-menu .current-menu-item a,
.desktop-menu .current_page_item a {
    background-color: #1e3a6f;
    color: #ffffff !important;
    padding: 5px 20px;
    border-radius: 50px;
}

.desktop-menu .current-menu-item a:hover,
.desktop-menu .current_page_item a:hover {
    background-color: #1e3a6f;
}

/* Header Right / Call Button */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.call-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f9c5c875;
    border: 1.5px solid #1e3a6f;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.call-btn .btn-icon,
.call-btn i {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    color: #1e3a6f;
    flex-shrink: 0;
}

.call-btn .btn-icon.default-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D79B00'%3E%3Cpath d='M6.62 10.79a15.15 15.15 0 006.59 6.59l2.2-2.2a1 1 0 011.11-.27 11.72 11.72 0 003.7 1.05 1 1 0 01.88 1v3.58a1 1 0 01-1 1A16 16 0 013 4a1 1 0 011-1h3.58a1 1 0 011 .88 11.72 11.72 0 001.05 3.7 1 1 0 01-.27 1.11l-2.24 2.2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.call-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.call-btn-text span {
    font-size: 9px;
    color: #1e3a6f;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.1;
}

.call-btn-text strong {
    font-size: 14px;
    color: #1e3a6f;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1px;
}

.call-btn:hover {
    /* background-color: #FFF2D6; */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(215, 155, 0, 0.1);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: #333333;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    align-items: center;
    justify-content: center;
}

.mobile-toggle:focus {
    outline: none;
}

/* Mobile Menu Overlay / Backdrop */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Offcanvas Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important;
    /* Ensure it overrides display: none */
    flex-direction: column;
    padding: 60px 24px 30px;
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Close Button inside Offcanvas */
.mobile-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #333333;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-close:hover {
    color: #D79B00;
    transform: rotate(90deg);
}

.mobile-close:focus {
    outline: none;
}

/* Force vertical stacking on mobile navigation to override parent theme flex styles */
.mobile-menu ul.menu,
.mobile-menu ul {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    gap: 0 !important;
}

.mobile-menu ul.menu li,
.mobile-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
}

.mobile-menu ul.menu li:last-child,
.mobile-menu li:last-child {
    border-bottom: none !important;
}

.mobile-menu ul.menu li a,
.mobile-menu a {
    display: block !important;
    width: 100% !important;
    padding: 12px 0 !important;
    text-decoration: none !important;
    color: #333333 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-align: left !important;
    background: none !important;
    border-radius: 0 !important;
}

.mobile-menu ul.menu li a:hover,
.mobile-menu a:hover {
    color: #D79B00 !important;
    background: none !important;
}

/* RESPONSIVENESS */

/* Medium Screens / Small Laptops */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 3vw;
    }
}

@media (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }

    .call-btn {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

/* Tablet View */
@media (max-width: 991px) {


    .header-container {
        min-height: 75px;
        padding: 0 2rem;
    }

    .header-logo {
        width: 100px;
        height: 75px;
    }

    .header-logo img,
    .header-logo .custom-logo-link img {
        width: 100px;
        height: 100px;
        position: absolute;
        top: 0px;
        left: 0;
        border-width: 4px;
    }
}

/* Mobile View */
@media (max-width: 480px) {
    .header-container {
        min-height: 65px;
        padding: 0 15px;
    }

    .header-logo {
        width: 120px;
        height: 65px;
    }

    .header-logo img,
    .header-logo .custom-logo-link img {
        width: 100px;
        height: 100px;
        position: absolute;
        top: 0px;
        left: 0;
        border-width: 3px;
    }
}