/* Site-wide overrides applied on top of the template's default skin. */

/* The template's default pagination color is a hardcoded red (#f42223) that
   doesn't match this site's blue brand color. Align it with --bs-primary
   (set by skin-1.css) on every page that renders Bootstrap pagination. */
.page-link {
    color: var(--bs-primary, #0B3157) !important;
}

.page-link:hover,
.page-link:focus {
    color: var(--bs-primary, #0B3157) !important;
    background-color: #e9ecef !important;
}

.page-item.active .page-link {
    background-color: var(--bs-primary, #0B3157) !important;
    border-color: var(--bs-primary, #0B3157) !important;
    color: #fff !important;
}

.page-item.disabled .page-link {
    color: #6c757d !important;
}

/* Floating WhatsApp contact button, shown on every public page. */
.wa-float-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    animation: waFloatPulse 2s ease-in-out infinite;
    transition: transform .2s ease;
}

.wa-float-btn:hover {
    color: #fff;
    transform: scale(1.08);
}

@keyframes waFloatPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, .25), 0 0 0 0 rgba(37, 211, 102, .5); }
    50% { box-shadow: 0 4px 16px rgba(0, 0, 0, .25), 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* Label pill that slides out from behind the button on hover/focus,
   giving a hint that the icon is clickable without adding a permanent
   text label that would crowd the button on small screens. */
.wa-float-label {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    white-space: nowrap;
    background: #1f2937;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.wa-float-label::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #1f2937;
}

.wa-float-btn:hover .wa-float-label,
.wa-float-btn:focus-visible .wa-float-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    z-index: 1;
}

/* When a team member has no social links filled in, .team-social's only
   child is the absolutely-positioned "+" button, which doesn't count
   toward the container's height — it collapses to 0 and pulls the name
   below up to overlap the "+" button. Reserve one icon row's worth of
   height so the layout stays consistent either way, and pin the "+"
   button's own position explicitly instead of relying on its "static
   position" fallback (which shifts depending on whether sibling icons
   exist). */
.dz-team.style-1 .team-social {
    min-height: 60px;
    position: relative;
}

.dz-team.style-1 .team-social li.add-social {
    top: 0;
}

@media only screen and (max-width: 575px) {
    .wa-float-btn {
        width: 48px;
        height: 48px;
        font-size: 24px;
        left: 15px;
        bottom: 15px;
    }

    /* Hover has no equivalent on touch devices, and the label would
       otherwise sit permanently hidden with no way to reveal it. */
    .wa-float-label {
        display: none;
    }
}
