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

 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 */
.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 */
@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 */
.staffHdr {
    margin: 2.5rem 0 1rem;
    text-align: left;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.staffHdr span {
    display: inline-block;
    border-bottom: 3px solid #facf0e;
    padding-bottom: 0.35rem;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .staffHdr span {
        padding-bottom: 0.55rem;
        margin-bottom: 0.9rem;
        line-height: 1.4;
    }
}

/* Grid of people */
.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 */
.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;
}

.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;
}

/* ============================================
   GAR Certified Facilitators Table
   ============================================ */

/* Outer wrapper */
.gar-facilitators-wrap {
    width: 100%;
}

/* Controls area — label + search box + updated timestamp */
.gar-facilitators-controls {
    margin-bottom: 8px;
}

.gar-facilitators-search-label {
    font-size: 14px;
    color: #333333;
    margin-bottom: 6px;
}

.gar-facilitators-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.gar-facilitator-search-input {
    width: 220px;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid #cccccc;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.4;
    background: #ffffff;
    color: #333333;
    box-sizing: border-box;
}

.gar-facilitator-search-input:focus {
    outline: 2px solid #003ca6;
    outline-offset: 1px;
}

.gar-facilitators-updated {
    font-size: 13px;
    color: #555555;
    white-space: nowrap;
    margin-left: auto;
}

/* Table header */
.entry-content .gar-facilitators-table thead tr,
.gar-facilitators-table thead tr {
    background-color: #003ca6 !important;
}

.entry-content .gar-facilitators-table thead tr th,
.gar-facilitators-table thead tr th {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
    background-color: #003ca6 !important;
    border-top: none !important;
}

/* Alternating body rows */
.entry-content .gar-facilitators-table tbody tr.gar-row-even,
.gar-facilitators-table tbody tr.gar-row-even {
    background-color: #f2f2f2 !important;
}

.entry-content .gar-facilitators-table tbody tr.gar-row-odd,
.gar-facilitators-table tbody tr.gar-row-odd {
    background-color: #d9e1ef !important;
}

/* Cell styling */
.entry-content .gar-facilitators-table tbody tr td,
.gar-facilitators-table tbody tr td {
    vertical-align: top !important;
    color: #333333 !important;
    border-top: none !important;
}

/* Facilitator name — bold */
.gar-facilitators-table .gar-facilitator-name {
    font-weight: 700;
    font-size: 1.05em;
    display: block;
    margin-bottom: 2px;
}

/* Member type label */
.gar-facilitators-table .gar-facilitator-member {
    font-size: 0.95em;
    color: #444444;
    display: block;
}

/* Livestream Certified label — red, matching existing site */
.gar-facilitators-table .gar-facilitator-livestream {
    font-size: 0.9em;
    color: #c0392b;
    font-weight: 600;
    display: block;
}

/* No results message */
.gar-facilitators-no-results {
    margin: 1.5rem 0;
    color: #555555;
    font-size: 15px;
}

/* Mobile: hide header row, stack search row */
@media (max-width: 767px) {
    .gar-facilitators-table thead {
        display: none !important;
    }

    .gar-facilitators-search-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .gar-facilitators-updated {
        margin-left: 0;
    }
}

/* ============================================
   GAR REALTOR Board Table
   ============================================ */
table.gutenTable {
  width: 100%;
  border-collapse: collapse;
}
table.gutenTable col.cellOne,
table.gutenTable td.cellOne {
  width: 42.4469%;
}
table.gutenTable col.cellTwo,
table.gutenTable td.cellTwo {
  width: 18.2272%;
}
table.gutenTable col.cellThree,
table.gutenTable td.cellThree {
  width: 39.201%;
}
table.gutenTable tbody td {
  padding: 12px 24px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}
table.gutenTable tbody tr {
  transition: background-color 0.2s ease;
}
table.gutenTable tbody tr:nth-child(odd) {
  background-color: #f2f2f2;
}
table.gutenTable tbody tr:nth-child(even) {
  background-color: #ffffff;
}
table.gutenTable tbody tr:hover {
  background-color: #e6f2fa;
}

/* ============================================
   GAR Past Presidents Table
   ============================================ */
table.pastPresidents td.cellOne {
  width: 15% !important;
}
table.pastPresidents td.cellTwo {
  width: 42.5% !important;
}
table.pastPresidents td.cellThree {
  width: 42.5% !important;
}
table.pastPresidents thead tr {
  background-color: #003ca6 !important;
}
table.pastPresidents thead th {
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  background-color: #003ca6 !important;
  border-bottom: 3px solid #003359 !important;
  text-align: left !important;
}
@media (max-width: 767px) {
  table.pastPresidents thead {
    display: none !important;
  }
  table.pastPresidents,
  table.pastPresidents tbody,
  table.pastPresidents tr,
  table.pastPresidents td {
    display: block !important;
    width: 100% !important;
  }
  table.pastPresidents tbody tr {
    margin: 0 0 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
  }
  table.pastPresidents tbody td {
    border: none;
    border-bottom: 1px solid #f2f2f2;
    padding: 10px 12px;
    position: relative;
  }
  table.pastPresidents tbody td:last-child {
    border-bottom: none;
  }
}