/*---------------------------------------------------------------------------------

 Theme Name:   SpinnerMedia Child Theme
 Theme URI:    https://garealtor.com/
 Description:  Divi Child Theme
 Author:       SpinnerMedia
 Author URI:   http://spinnermedia.com/
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

------------------------------ ADDITIONAL CSS HERE ------------------------------*/
/* ---------------------------------------------
   NRDS Gate – Full Styling
   Applies to:
   - Standard gate: .nrds-login-only
   - Special gate: .nrds-fpid-login-only
   --------------------------------------------- */

/* Wrapper */
.nrds-login-only .nrds-gate-wrapper,
.nrds-fpid-login-only .nrds-gate-wrapper {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 28px;
    background: #1d37a3;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* Intro text */
.nrds-login-only .nrds-intro,
.nrds-fpid-login-only .nrds-intro {
    margin-bottom: 18px;
    font-size: 15px;
    color: #ffffff;
    line-height: 1.5;
}

/* Form layout */
.nrds-login-only .nrds-gate-form,
.nrds-fpid-login-only .nrds-gate-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Field block */
.nrds-login-only .nrds-field label,
.nrds-fpid-login-only .nrds-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: #ffffff;
}

.nrds-login-only .nrds-field input[type="text"],
.nrds-login-only .nrds-field input[type="number"],
.nrds-login-only .nrds-field input[type="search"],
.nrds-fpid-login-only .nrds-field input[type="text"],
.nrds-fpid-login-only .nrds-field input[type="number"],
.nrds-fpid-login-only .nrds-field input[type="search"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 15px;
    background: #ffffff;
}

/* Submit button */
.nrds-login-only .nrds-actions,
.nrds-fpid-login-only .nrds-actions {
    margin-top: 2px;
}

.nrds-login-only input[type="submit"],
.nrds-login-only .nrds-submit-btn,
.nrds-fpid-login-only input[type="submit"],
.nrds-fpid-login-only .nrds-submit-btn {
    background-color: #f8cf0c !important;
    color: #000000 !important;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 26px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    width: 180px;
    max-width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    font-size: 15px;
    display: inline-block;
}

.nrds-login-only input[type="submit"]:hover,
.nrds-login-only .nrds-submit-btn:hover,
.nrds-login-only input[type="submit"]:focus,
.nrds-login-only .nrds-submit-btn:focus,
.nrds-fpid-login-only input[type="submit"]:hover,
.nrds-fpid-login-only .nrds-submit-btn:hover,
.nrds-fpid-login-only input[type="submit"]:focus,
.nrds-fpid-login-only .nrds-submit-btn:focus {
    opacity: 0.9;
}

/* ---------------------------------------------
   Error Message Box – force vertical centering
   --------------------------------------------- */
.nrds-login-only .nrds-error,
.nrds-fpid-login-only .nrds-error {
    margin: 18px 0 0;
    height: 40px;
    line-height: 40px;
    padding: 0 18px;
    box-sizing: border-box;

    background: #ffffff;
    color: #c30000;
    border: 1px solid #c30000;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* ---------------------------------------------
   Mobile responsiveness
   --------------------------------------------- */
@media (max-width: 600px) {
    .nrds-login-only .nrds-gate-wrapper,
    .nrds-fpid-login-only .nrds-gate-wrapper {
        padding: 28px 22px;
    }

    .nrds-login-only input[type="submit"],
    .nrds-login-only .nrds-submit-btn,
    .nrds-fpid-login-only input[type="submit"],
    .nrds-fpid-login-only .nrds-submit-btn {
        width: 100%;
    }
}
/* ============================================
   GAR Directory Tabs – Centered + Styled
   ============================================ */
.staff-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 40px auto 28px;
    text-align: center;
}

.staffFilterBtn {
    display: inline-block;
    cursor: pointer;
}

/* Base tab text */
.staffFilterBtn span {
    font-size: 20px;
    font-weight: 700;
    color: #003ca5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    padding-bottom: 6px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

/* Active tab = yellow underline */
.staffFilterBtn span.active {
    border-bottom-color: #facf0e;
}

/* Hover state */
.staffFilterBtn span:hover {
    color: #002a75;
}

/* ============================================
   Section Headings (Department Titles)
   ============================================ */
.staffHdr {
    margin: 2.5rem 0 1rem;
    text-align: left;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

/* Updated underline styling — prevents mobile overlap */
.staffHdr span {
    display: inline-block;
    border-bottom: 3px solid #facf0e;
    padding-bottom: 0.35rem;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

/* Extra spacing for wrapped headings on mobile */
@media (max-width: 767px) {
    .staffHdr span {
        padding-bottom: 0.55rem;
        margin-bottom: 0.9rem;
        line-height: 1.4;
    }
}

/* ============================================
   Grid of People (Cards)
   ============================================ */
.staffWrap ul.staff {
    list-style: none !important;
    margin: 0 2rem !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.staffWrap ul.staff li {
    text-align: center;
    width: 220px;
    margin: 0 1.75rem 2.5rem 0;
}

/* ============================================
   Image Area — Square Corners (not rounded)
   ============================================ */
.staffImage,
.staffIcon {
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
    width: 100%;
    padding-top: 120%;
    background-size: cover !important;
    background-position: 50% 50% !important;
    margin-bottom: 0.75rem;
}

.staffImage img,
.staffIcon img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

/* Default icon */
.staffIcon i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
}

/* ============================================
   Name + Title Text
   ============================================ */
.staffWrap .name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.staffWrap .name a,
.staffWrap .name a:visited {
    color: #003ca5;
    font-weight: 600;
    text-decoration: none;
}

.staffWrap .name a:hover {
    text-decoration: underline;
}

.staffWrap ul.staff li p {
    margin: 0;
    font-size: 0.95rem;
}

/* No-results message */
.no-contacts {
    margin: 2rem 0;
    text-align: center;
}