/* Wafaq mobile refinements — load after the template and page styles. */
/* Blend the supplied white logo background into each navigation surface. */
.header .navbar-brand.logo img,
.dashboard .sidebar-logo img {
    mix-blend-mode: multiply;
}
.banner-content__title,
.wafaq-member-welcome h3,
.wafaq-discovery-heading h3,
.dashboard h1, .dashboard h2, .dashboard h3,
.dashboard h4, .dashboard h5, .dashboard h6 {
    font-family: var(--body-font);
}
.banner-content__title { font-weight: 700; line-height: 1.22; }
.banner-content__button .wafaq-find-partner { order: -1; }
.wafaq-dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.wafaq-dashboard-actions .btn { min-height: 44px; }
.dashboard .dashboard__right { width: calc(100% - 330px); }
.dashboard .dashboard-item-wrapper > div[class*="col"]:nth-child(n) .dashboard-item {
    background: hsl(var(--base) / .06);
    border: 1px solid hsl(var(--base) / .12);
    padding: 22px 18px;
    gap: 12px;
    border-radius: 12px;
}
.dashboard .dashboard-item-wrapper .dashboard-item::after { display: none; }
.dashboard .dashboard-item-wrapper > div[class*="col"]:nth-child(n) .dashboard-item__icon {
    background: hsl(var(--base) / .12);
    color: hsl(var(--base));
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    font-size: 20px;
}
.dashboard .dashboard-item__content { min-width: 0; width: auto; flex: 1; padding-right: 0; }
.dashboard .dashboard-item__currency { font-size: 25px; overflow-wrap: anywhere; }
.dashboard .dashboard-item__title { font-size: 14px; line-height: 1.45; }
.wafaq-members-page .filter-icon {
    border: 1px solid #dce5eb;
    border-radius: 10px;
    background: #fff;
    color: hsl(var(--base));
    padding: 9px 14px;
    min-height: 44px;
    font: 600 14px var(--body-font);
}
.wafaq-members-page .filter-icon i { margin-inline-end: 6px; }
.wafaq-members-page .wafaq-discovery-photo--placeholder img { object-fit: contain; padding: 16px; }
.wafaq-members-page .wafaq-discovery-photo--placeholder:hover img { transform: none; }
.wafaq-member-hub .wafaq-discovery-nav { flex-wrap: wrap; overflow-x: visible; }
.wafaq-member-hub .wafaq-discovery-item { min-height: 44px; }
.wafaq-member-hub .wafaq-stat-badge[hidden] { display: none !important; }
.wafaq-member-hub .wafaq-member-stat:last-child { grid-column: auto; }
.wafaq-dashboard-actions a:focus-visible,
.wafaq-member-hub a:focus-visible,
.sidebar-menu-list__link:focus-visible,
.wafaq-members-page .filter-icon:focus-visible {
    outline: 3px solid hsl(var(--base));
    outline-offset: 3px;
}
@media (min-width: 768px) and (max-width: 1199px) {
    .wafaq-member-hub .wafaq-member-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wafaq-member-hub .wafaq-member-person { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 1199px) {
    .header, .header.fixed-header { padding-block: 10px; }
    .header .navbar { padding-block: 0; min-height: 52px; }
    /* The supplied logo has white space above/below it; crop the display box. */
    .header .navbar-brand.logo { padding: 0; width: 180px; height: 50px; overflow: hidden; position: relative; }
    .header .navbar-brand.logo img { width: 180px; max-width: none; max-height: none; position: absolute; inset-inline-start: 0; top: -20px; }
    .header .navbar-toggler.header-button { width: 44px; height: 44px; padding: 0; font-size: 28px; }
    .header .offcanvas-header { padding: 16px 20px; }
    .header .offcanvas-body { padding: 12px 20px 24px; }
    .header .offcanvas .nav-link { padding-block: 12px; min-height: 44px; }
    .header .offcanvas .nav-item { margin-block: 0; }
    .banner-section { padding-block: 48px; }
}
@media (max-width: 767px) {
    .banner-section { padding-block: 36px 40px; }
    .banner-content__title { font-size: clamp(28px, 7.5vw, 38px); margin-bottom: 16px; }
    .banner-content__subtitle { font-size: 17px; }
    .banner-content__desc { font-size: 16px; line-height: 1.65; }
    .banner-content__button { margin-top: 24px; }
    .banner-content__button .btn { width: 100%; max-width: 360px; min-height: 48px; }
    .banner-content__top-thumb img { max-width: 36px; }
    .wafaq-member-hub .wafaq-member-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wafaq-member-hub .wafaq-member-person { grid-column: 1 / -1; padding: 16px; }
    .wafaq-member-hub .wafaq-member-welcome h3 { font-size: 19px; }
    .wafaq-member-hub .wafaq-member-stat {
        width: auto; min-width: 0; min-height: 100px; padding: 12px 4px;
        flex-direction: column; gap: 8px; border: 0;
        text-align: center; justify-content: center;
    }
    .wafaq-member-hub .wafaq-member-stat + .wafaq-member-stat { border-inline-start: 1px solid #edf1f4; }
    .wafaq-member-hub .wafaq-member-stat strong { font-size: 15px; }
    .wafaq-member-hub .wafaq-member-stat span { font-size: 11px; }
    .wafaq-member-hub .wafaq-discovery-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-block: 12px; }
    .wafaq-member-hub .wafaq-discovery-item { flex: 1 1 calc(33.333% - 8px); padding: 8px 9px; font-size: 12px; }
    .wafaq-members-page { margin-top: 20px; }
    .wafaq-members-page .wafaq-discovery-photo { height: 220px; }
    .wafaq-members-page .wafaq-discovery-photo--placeholder { height: 160px; }
    .dashboard .dashboard-widget-wrapper { padding: 16px; }
    .dashboard .dashboard-item-wrapper { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
    .dashboard .dashboard-item-wrapper > .col-xl-4 { width: 50%; }
    .dashboard .dashboard-item-wrapper > div[class*="col"]:nth-child(n) .dashboard-item { padding: 14px 12px; min-height: 112px; }
    .dashboard .dashboard-item-wrapper > div[class*="col"]:nth-child(n) .dashboard-item__icon { display: none; }
    .dashboard .dashboard-item__currency { font-size: 23px; }
    .dashboard .dashboard-item__title { font-size: 12px; }
    .wafaq-dashboard-actions .btn { flex: 1 1 calc(50% - 10px); font-size: 13px; padding-inline: 10px; }
    .dashboard .dashboard-header { padding: 14px; }
    .dashboard .sidebar-menu__inner { padding: 0 16px; }
    .dashboard .sidebar-logo { margin: 24px 0 16px; }
    .dashboard .sidebar-logo img { max-width: 150px; }
    .dashboard .sidebar-menu-list { margin-top: 16px; }
    .dashboard .dashboard-profile-card { padding: 12px; }
    .dashboard .dashboard-profile-avatar { width: 72px; height: 72px; }
    .dashboard .dashboard-profile-avatar .team-card__img-is { width: 72px; height: 72px; object-fit: cover; }
    .dashboard .dashboard-profile-avatar .profile-picture { width: 28px; height: 28px; font-size: 16px; }
    .dashboard .dashboard-profile__id { font-size: 13px; }
    .dashboard .sidebar-menu-list__link { padding: 12px; min-height: 44px; }
}
@media (max-width: 991px) {
    .dashboard .dashboard__right { width: 100%; }
    .dashboard .sidebar-menu { width: min(320px, 88vw); height: 100dvh; }
    .dashboard .sidebar-menu__close { border: 0; background: transparent; width: 44px; height: 44px; top: 4px; right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .header.fixed-header, .wafaq-discovery-card, .wafaq-discovery-photo img,
    .dashboard .dashboard-item { animation: none; transition: none; }
}
