/* ============================================================================
   IPAV design polish — [Loco 2026-07-08]
   Loaded AFTER style.css. Targeted refinements only; never restyles wholesale.
   1. Logos readable (header + footer were squeezed to 28px tall)
   2. Pagination: breathing room above, no wrap (arrow used to drop to its own line)
   3. Mobile search: compact, advanced filters behind a "More filters" toggle
   4. Member profile page: compact contact rows on mobile (was bulky stacked cards)
   5. Apply-for-membership CTA styling (button added in navbar.blade.php)
   ========================================================================== */

/* ---------- 1. Logos ---------- */
.nav-box .logo img {
    height: 44px;
    width: auto;
    max-width: none;
}

.offcanvas-header .logo img {
    height: 40px;
    width: auto;
}

.footer-logo img {
    height: 54px;
    width: auto;
    max-width: 100%;
}

.footer-logo {
    margin-bottom: 18px;
}

@media only screen and (max-width: 767px) {
    .nav-box .logo img {
        height: 38px;
    }

    .footer-logo img {
        height: 46px;
    }
}

/* ---------- 2. Pagination ---------- */
.pagination-container {
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid var(--warm-beige, #e8e3d6);
    display: flex;
    justify-content: center;
}

.pagination-container:not(:has(.page-item)) {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.pagination {
    display: flex;
    flex-wrap: nowrap;          /* the next-arrow used to wrap onto its own line */
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--warm-beige, #e8e3d6);
    background: var(--white-color, #fff);
    color: var(--primary-color, #1d316f);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    box-shadow: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.pagination .page-item .page-link:hover {
    background: var(--soft-cream, #faf8f3);
    border-color: var(--accent-gold, #d4a554);
    color: var(--deep-blue, #0f1b3d);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color, #1d316f);
    border-color: var(--primary-color, #1d316f);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    opacity: .45;
    pointer-events: none;
    background: transparent;
}

@media only screen and (max-width: 481px) {
    .pagination {
        gap: 5px;
    }

    .pagination .page-item .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
        font-size: 14px;
        border-radius: 9px;
    }

    .pagination-container {
        margin-top: 40px;
        padding-top: 20px;
    }
}

/* ---------- 3. Search box (mobile compactness) ---------- */
/* The "More filters" toggle button lives between the quick-search row and the
   advanced filters. Hidden on desktop where all filters fit comfortably. */
.filters-toggle {
    display: none;
    width: 100%;
    margin-top: 14px;
    padding: 11px 16px;
    background: transparent;
    border: 1px dashed var(--warm-beige, #e8e3d6);
    border-radius: 10px;
    color: var(--primary-color, #1d316f);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease;
}

.filters-toggle:hover {
    background: var(--soft-cream, #faf8f3);
}

.filters-toggle i {
    margin-right: 6px;
    color: var(--accent-gold, #d4a554);
}

@media only screen and (max-width: 767px) {
    .filters-toggle {
        display: block;
    }

    /* collapsed by default on mobile; .open re-shows it */
    .search-form .filters-row {
        display: none;
        margin-top: 14px;
    }

    .search-form .filters-row.open {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-header {
        margin-bottom: 1.1rem;
    }

    .search-header h3 {
        font-size: 1.45rem;
    }

    .search-header p {
        font-size: .9rem;
    }

    .search-row {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .btn-search {
        width: 100%;
        padding: 13px 20px;
    }

    /* results header: keep count + view toggle on one tidy line */
    .results-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    .results-count {
        font-size: 14px;
    }
}

/* ---------- 4. Member profile page (mobile) ---------- */
@media only screen and (max-width: 481px) {

    /* Compact horizontal rows instead of tall centered cards */
    .contact-quick-item {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 11px;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .contact-icon i {
        font-size: 14px;
    }

    .contact-details {
        min-width: 0;               /* allow long emails/URLs to wrap not overflow */
    }

    .contact-details .contact-value {
        word-break: break-word;
        overflow-wrap: anywhere;
        font-size: 14px;
    }

    .contact-details .contact-label {
        font-size: 11px;
        letter-spacing: .06em;
    }

    .profile-contact-quick {
        gap: 9px;
        margin-top: 18px;
    }

    /* slightly larger avatar than the 60px override, still compact */
    .profile-avatar {
        width: 84px;
        height: 84px;
        font-size: 32px;
        border-width: 2px;
    }

    .member-badge {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
}

/* ---------- 5. Apply-for-membership CTA ---------- */
.nav-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--secondary-color, #c88a11);
    color: var(--white-color, #fff) !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}

.nav-apply-btn:hover {
    background: var(--accent-gold, #d4a554);
    color: var(--deep-blue, #0f1b3d) !important;
    transform: translateY(-1px);
}

.nav-apply-btn i {
    font-size: 12px;
}

/* full label by default; compact "Apply" on phones */
.nav-apply-btn .apply-label-short {
    display: none;
}

@media only screen and (max-width: 575px) {
    .nav-bar .nav-apply-btn .apply-label-full {
        display: none;
    }

    .nav-bar .nav-apply-btn .apply-label-short {
        display: inline;
    }
}

/* Offcanvas (mobile menu) variant: full-width block at the top */
.offcanvas-body .nav-apply-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
    padding: 13px 20px;
    font-size: 15px;
}

/* keep the desktop menu on one line now the CTA shares the row */
@media only screen and (min-width: 992px) {
    .nav-bar .menu ul li a {
        white-space: nowrap;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1399px) {
    .nav-bar .nav-apply-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    /* tighten the menu so logo + 5 links + CTA share the row without overflow */
    .nav-bar .menu ul li a {
        padding: 12px 9px;
        font-size: 13.5px;
    }

    .nav-bar .logo img {
        max-width: 170px;
    }
}

@media only screen and (max-width: 991px) {
    /* compact pill between logo and hamburger on small screens */
    .nav-bar .nav-apply-btn {
        padding: 8px 16px;
        font-size: 13px;
        margin-left: auto;
        margin-right: 14px;
    }
}

@media only screen and (max-width: 375px) {
    .nav-bar .nav-apply-btn {
        padding: 7px 13px;
        font-size: 12px;
        margin-right: 10px;
    }
}

/* ---------- Small global niceties ---------- */
/* keep the members grid from crowding whatever follows it */
.members-section .members-grid {
    margin-bottom: 6px;
}

/* footer contact block: a touch more separation under the (now larger) logo */
.footer-image-contact-box p {
    margin-bottom: 6px;
}
