/* ============================================================
   Dr. Sneha Sharma – Beautiful Header Widget CSS
   Version: 1.0.0
============================================================ */

/* Google Font imported via PHP enqueue */
.ds-header-wrap * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ds-header-wrap a {
    text-decoration: none;
    color: inherit;
}

/* ── OUTER WRAP ─────────────────────────────────────── */
.ds-header-wrap {
    font-family: 'Quicksand', sans-serif;
    width: 100%;
    position: relative;
    z-index: 9999;
}

.ds-header-wrap.ds-sticky .ds-header-inner {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* ── INNER BAR ──────────────────────────────────────── */
.ds-header-inner {
    background: rgba(255, 255, 255, 0.95);
    padding: 14px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.35s ease, padding 0.35s ease, background 0.35s ease;
    width: 100%;
}

.ds-header-wrap.ds-blur .ds-header-inner {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ds-header-wrap.ds-scroll-effect .ds-header-inner.ds-scrolled {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.13);
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(255, 255, 255, 0.99);
}

/* ── CONTENT ROW ────────────────────────────────────── */
.ds-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ── LOGO ───────────────────────────────────────────── */
.ds-logo {
    flex-shrink: 0;
}

.ds-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.25s ease;
}

.ds-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.ds-logo-text {
    font-size: 21px;
    font-weight: 700;
    color: #1a2e77;
    white-space: nowrap;
    transition: color 0.25s ease;
    line-height: 1.2;
}

.ds-logo-link:hover .ds-logo-text {
    color: #FF594D;
}

/* ── DESKTOP NAV ────────────────────────────────────── */
.ds-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.ds-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
}

.ds-nav-item {
    position: relative;
}

.ds-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14.5px;
    font-weight: 700;
    color: #111;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
    line-height: 1;
    font-family: 'Quicksand', sans-serif;
}

.ds-nav-link i {
    font-size: 13px;
    color: #555;
    transition: color 0.25s ease;
}

.ds-nav-link:hover,
.ds-nav-item:hover > .ds-nav-link {
    color: #FF594D;
    background: rgba(255, 89, 77, 0.08);
}

.ds-nav-link:hover i,
.ds-nav-item:hover > .ds-nav-link i {
    color: #FF594D;
}

/* Dropdown arrow */
.ds-dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.ds-has-dropdown:hover .ds-dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ── DROPDOWN MENU ──────────────────────────────────── */
.ds-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #fff;
    min-width: 280px;
    border-radius: 14px;
    padding: 8px 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    z-index: 10000;
}

.ds-has-dropdown:hover .ds-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.ds-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: #1a2e77;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: 'Quicksand', sans-serif;
    margin: 1px 0;
}

.ds-dropdown-menu a i {
    width: 18px;
    font-size: 13px;
    color: #1a2e77;
    flex-shrink: 0;
    text-align: center;
    transition: color 0.2s ease;
}

.ds-dropdown-menu a:hover {
    background: rgba(255, 89, 77, 0.09);
    color: #FF594D;
}

.ds-dropdown-menu a:hover i {
    color: #FF594D;
}

/* ── CTA BUTTON ─────────────────────────────────────── */
.ds-cta {
    flex-shrink: 0;
}

.ds-cta-btn {
    display: inline-block;
    background: #283779;
    color: #fff !important;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 50px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(40, 55, 121, 0.25);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    line-height: 1;
    cursor: pointer;
    text-decoration: none !important;
}

.ds-cta-btn:hover {
    background: #FF594D;
    box-shadow: 0 6px 22px rgba(255, 89, 77, 0.32);
    transform: translateY(-1px);
    color: #fff !important;
}

/* ── HAMBURGER ──────────────────────────────────────── */
.ds-hamburger {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    position: relative;
    z-index: 10002;
    padding: 0;
    flex-shrink: 0;
}

.ds-hamburger span {
    display: block;
    position: absolute;
    height: 2.5px;
    width: 100%;
    background: #1a2e77;
    border-radius: 4px;
    left: 0;
    transition: all 0.32s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ds-hamburger span:nth-child(1) { top: 0; }
.ds-hamburger span:nth-child(2) { top: 10px; }
.ds-hamburger span:nth-child(3) { top: 20px; }

.ds-hamburger.ds-open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background: #FF594D;
}

.ds-hamburger.ds-open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-14px);
}

.ds-hamburger.ds-open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background: #FF594D;
}

/* ── MOBILE OVERLAY ─────────────────────────────────── */
.ds-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ds-mobile-overlay.ds-active {
    display: block;
    opacity: 1;
}

/* ── MOBILE MENU PANEL ──────────────────────────────── */
.ds-mobile-menu {
    position: fixed;
    top: 0;
    right: -310px;
    width: 295px;
    height: 100%;
    background: #fff;
    z-index: 10001;
    border-radius: 20px 0 0 20px;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    padding-top: 70px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ds-mobile-menu.ds-open {
    right: 0;
}

.ds-mobile-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(26, 46, 119, 0.07);
    border-radius: 50%;
    font-size: 18px;
    color: #1a2e77;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.ds-mobile-close:hover {
    background: rgba(255, 89, 77, 0.12);
    color: #FF594D;
    transform: rotate(90deg);
}

/* ── MOBILE NAV LIST ────────────────────────────────── */
.ds-mobile-nav-list {
    list-style: none;
    padding: 0 0 24px;
}

.ds-mobile-item {
    border-bottom: 1px solid #f0f0f0;
}

.ds-mobile-item:last-child {
    border-bottom: none;
}

.ds-mobile-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 20px;
    color: #1a2e77;
    font-size: 14.5px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    transition: background 0.2s, color 0.2s;
}

.ds-mobile-link i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: #555;
    flex-shrink: 0;
    transition: color 0.2s;
}

.ds-mobile-link:hover {
    background: rgba(255, 89, 77, 0.07);
    color: #FF594D;
}

.ds-mobile-link:hover i {
    color: #FF594D;
}

/* Mobile dropdown toggle */
.ds-mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: #1a2e77;
    font-size: 14.5px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.ds-mobile-dropdown-toggle:hover {
    background: rgba(255, 89, 77, 0.07);
    color: #FF594D;
}

.ds-mobile-toggle-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.ds-mobile-toggle-left i {
    width: 20px;
    font-size: 14px;
    color: #555;
    flex-shrink: 0;
    transition: color 0.2s;
}

.ds-mobile-dropdown-toggle:hover .ds-mobile-toggle-left i {
    color: #FF594D;
}

.ds-chevron {
    font-size: 12px;
    color: #888;
    transition: transform 0.3s ease;
}

.ds-mobile-has-dropdown.ds-drop-open .ds-chevron {
    transform: rotate(180deg);
}

/* Mobile dropdown body */
.ds-mobile-dropdown-body {
    max-height: 0;
    overflow: hidden;
    background: #f8f9ff;
    transition: max-height 0.35s ease;
}

.ds-mobile-has-dropdown.ds-drop-open .ds-mobile-dropdown-body {
    max-height: 600px;
}

.ds-mobile-dropdown-body a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 20px 11px 44px;
    color: #1a2e77;
    font-size: 13.5px;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
    border-bottom: 1px solid #efefef;
    transition: background 0.2s, color 0.2s;
}

.ds-mobile-dropdown-body a:last-child {
    border-bottom: none;
}

.ds-mobile-dropdown-body a i {
    width: 16px;
    font-size: 12px;
    color: #555;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.ds-mobile-dropdown-body a:hover {
    background: rgba(255, 89, 77, 0.07);
    color: #FF594D;
}

.ds-mobile-dropdown-body a:hover i {
    color: #FF594D;
}

/* Mobile CTA */
.ds-mobile-cta-wrap {
    padding: 20px;
    border-bottom: none !important;
}

.ds-mobile-cta-wrap .ds-cta-btn {
    display: block;
    text-align: center;
    width: 100%;
    background: #FF594D;
    box-shadow: 0 4px 16px rgba(255, 89, 77, 0.28);
}

.ds-mobile-cta-wrap .ds-cta-btn:hover {
    background: #283779;
    box-shadow: 0 4px 16px rgba(40, 55, 121, 0.28);
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .ds-header-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ds-nav-link {
        font-size: 13.5px;
        padding: 7px 9px;
    }
}

@media (max-width: 992px) {
    .ds-nav,
    .ds-cta {
        display: none;
    }

    .ds-hamburger {
        display: block;
    }
}

@media (min-width: 993px) {
    .ds-hamburger,
    .ds-mobile-menu,
    .ds-mobile-overlay {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .ds-header-inner {
        padding-left: 15px;
        padding-right: 15px;
    }

    .ds-logo-text {
        font-size: 17px;
    }

    .ds-logo-img {
        height: 36px;
    }

    .ds-mobile-menu {
        width: 270px;
    }
}
