/* ═══════════════════════════════════════════════════════════
   PAGE TITLE BANNER — BREADCRUMB HIDDEN SITEWIDE
═══════════════════════════════════════════════════════════ */

.page-breadcrumb { display: none !important; }

@media (max-width: 576px) {
    .page-title.breadcrumb-2 {
        margin: 0 !important;
        border-radius: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   SERVICE CARD (STYLE-3) — EQUAL HEIGHT FIX
═══════════════════════════════════════════════════════════ */

.service-item.style-3 .service-title h4 {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item.style-3 .service-cat {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP MEGA MENU
═══════════════════════════════════════════════════════════ */

.mega-services-panel {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 82%;
    max-height: calc(100vh - 80px);
    background: #fff;
    box-shadow: 0 12px 48px rgba(0,0,0,0.13);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    border-top: 3px solid var(--themeht-primary-color);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.mega-services-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

/* Two-column layout */
.mega-layout {
    display: flex;
    height: 100%;
    max-height: calc(100vh - 83px);
    overflow: hidden;
}

/* ── Left nav sidebar ───────────────────────────────────── */

.mega-nav {
    width: 240px;
    flex-shrink: 0;
    background: var(--themeht-light-color, #f4f8f6);
    border-right: 1px solid rgba(0,0,0,0.07);
    overflow-y: auto;
    padding: 12px 0 16px;
}

.mega-nav-section {
    margin-bottom: 6px;
}

.mega-nav-section-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    padding: 10px 18px 6px;
}

.mega-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    border-left: 3px solid transparent;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    position: relative;
}

.mega-nav-item:hover,
.mega-nav-item.is-active {
    background: #fff;
    border-left-color: var(--themeht-primary-color);
}

.mega-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #777;
    flex-shrink: 0;
    transition: background 0.18s, color 0.18s;
}

.mega-nav-item.is-active .mega-nav-icon,
.mega-nav-item:hover .mega-nav-icon {
    background: var(--themeht-primary-color);
    color: #fff;
}

.mega-nav-label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    line-height: 1.3;
    transition: color 0.18s;
}

.mega-nav-item.is-active .mega-nav-label,
.mega-nav-item:hover .mega-nav-label {
    color: var(--themeht-secondary-color);
    font-weight: 600;
}

.mega-nav-arrow {
    font-size: 14px;
    color: #ccc;
    opacity: 0;
    transition: opacity 0.18s, color 0.18s;
    flex-shrink: 0;
}

.mega-nav-item.is-active .mega-nav-arrow,
.mega-nav-item:hover .mega-nav-arrow {
    opacity: 1;
    color: var(--themeht-primary-color);
}

/* ── Right content area ─────────────────────────────────── */

.mega-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
}

.mega-pane {
    display: none;
    padding: 20px 28px 24px;
    animation: megaPaneIn 0.2s ease;
}

.mega-pane.is-active {
    display: block;
}

@keyframes megaPaneIn {
    from { opacity: 0; transform: translateX(6px); }
    to   { opacity: 1; transform: translateX(0); }
}

.mega-pane-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--themeht-light-color, #f4f8f6);
}

.mega-pane-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--themeht-primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.mega-pane-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--themeht-secondary-color);
    margin: 0;
    flex: 1;
}

.mega-view-all {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--themeht-primary-color);
    text-decoration: none;
    padding: 5px 14px;
    border: 1.5px solid var(--themeht-primary-color);
    border-radius: 50px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.mega-view-all:hover {
    background: var(--themeht-primary-color);
    color: #fff;
    text-decoration: none;
}

.mega-pane-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.mega-service-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    line-height: 1.3;
}

.mega-service-link i {
    font-size: 16px;
    color: var(--themeht-primary-color);
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s, transform 0.15s;
}

.mega-service-link:hover {
    background: var(--themeht-light-color, #f4f8f6);
    color: var(--themeht-primary-color);
    text-decoration: none;
}

.mega-service-link:hover i {
    opacity: 1;
    transform: translateX(3px);
}

.mega-empty {
    color: #aaa;
    font-size: 13px;
    padding: 12px;
    margin: 0;
}

/* Highlight nav item when mega open */
.has-megamenu.mega-active > a {
    color: var(--themeht-primary-color) !important;
}

/* Hide on mobile */
@media (max-width: 991px) {
    .mega-services-panel {
        display: none !important;
        pointer-events: none !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   MOBILE SERVICES PANEL — TWO-LAYER SLIDE
   Mirrors theme's .ht-mobile-menu-bg + .main-nav animation
═══════════════════════════════════════════════════════════ */

/* Layer 1: Green background (slides in first) */
.mdp-bg {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--themeht-primary-color);
    z-index: 9997;
    transform: translateX(101%);
    transition: transform 900ms ease;
    transition-delay: 0ms;
}

/* Layer 2: White panel (slides in second) */
.mdp-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    flex-direction: column;
    transform: translateX(101%);
    transition: transform 900ms ease;
    transition-delay: 0ms;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}

@media (max-width: 991px) {
    .mdp-bg   { display: block; }
    .mdp-panel { display: flex; }
}

/* Open states */
.mdp-bg.is-open {
    transform: translateX(0);
    transition-delay: 300ms;
}

.mdp-panel.is-open {
    transform: translateX(0);
    transition-delay: 600ms;
}

/* Close states (no delay — snap back immediately) */
.mdp-bg.is-closing {
    transform: translateX(101%);
    transition-delay: 300ms;
}

.mdp-panel.is-closing {
    transform: translateX(101%);
    transition-delay: 0ms;
}

/* ── Panel header ───────────────────────────────────────── */

.mdp-header {
    background: var(--themeht-primary-color);
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    flex-shrink: 0;
}

.mdp-back {
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    opacity: 0;
    pointer-events: none;
    transition: background 0.2s, opacity 0.2s;
}

.mdp-back.visible {
    opacity: 1;
    pointer-events: all;
}

.mdp-back:hover { background: rgba(255,255,255,0.3); }

.mdp-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mdp-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.mdp-close:hover { color: #fff; }

/* ── Levels container ───────────────────────────────────── */

.mdp-levels {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.mdp-level {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    background: #fff;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mdp-level--active { transform: translateX(0); }
.mdp-level--left   { transform: translateX(-100%); }
.mdp-level--right  { transform: translateX(100%); }

/* ── List ───────────────────────────────────────────────── */

.mdp-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

/* Section header row */
.mdp-section-header {
    padding: 14px 20px 4px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 4px;
}

.mdp-section-header:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 8px;
}

.mdp-section-header span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
}

/* Category buttons */
.mdp-list > li > button.mdp-cat-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    text-align: left;
    gap: 12px;
    transition: background 0.15s, color 0.15s;
}

.mdp-list > li > button.mdp-cat-btn:hover {
    background: var(--themeht-light-color, #f4f8f6);
    color: var(--themeht-primary-color);
}

.mdp-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--themeht-light-color, #f4f8f6);
    color: var(--themeht-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.mdp-item-text { flex: 1; }

.mdp-arrow {
    color: #ccc;
    font-size: 15px;
    flex-shrink: 0;
}

/* Level 2 — category heading */
.mdp-cat-header {
    padding: 14px 20px 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    border-bottom: 1px solid #f0f0f0;
}

/* Level 2 — service links */
.mdp-list > li.mdp-svc-item > a {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 400;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    gap: 12px;
    transition: background 0.15s, color 0.15s;
}

.mdp-list > li.mdp-svc-item > a:hover {
    background: var(--themeht-light-color, #f4f8f6);
    color: var(--themeht-primary-color);
    text-decoration: none;
}

.mdp-svc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--themeht-primary-color);
    flex-shrink: 0;
    opacity: 0.5;
}
