/* Guild Teacher Directory — .gtd namespace
   Matches Figma: Desktop 1435:10933, Mobile 1820:15820
   Card: vertical layout — circle avatar, centered name, details, teal footer */

.gtd,
.gtd * {
    font-family: "Heebo", Sans-serif !important;
}

.gtd {
    max-width: 1482px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Filter bar ── */
.gtd__filter-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

/* 4 dropdowns in a row */
.gtd__dropdowns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gtd__select {
    width: 100%;
    height: 61px;
    padding: 14px 16px;
    border: 1px solid #2e404a;
    border-radius: 10px;
    font-size: inherit;
    font-weight: 400;
    color: #2e404a;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='12' viewBox='0 0 21 12'%3E%3Cpath d='M1 1l9.5 9.5L20 1' stroke='%23003944' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    background-size: 18px 10px;
    text-align: right;
    padding-left: 44px;
}

.gtd__select:hover,
.gtd__select:focus {
    border-color: #003944;
    outline: none;
}

/* Search row */
.gtd__search-row {
    display: flex;
    gap: 0;
    max-width: 727px;
}

.gtd__search {
    flex: 1;
    position: relative;
}

.gtd__search-input {
    width: 100%;
    height: 61px;
    padding: 14px 48px 14px 16px;
    border: 1px solid #2e404a;
    border-radius: 0 100px 100px 0;
    font-size: inherit;
    font-weight: 400;
    color: #2e404a;
    outline: none;
    box-sizing: border-box;
}

.gtd__search-input:focus {
    border-color: #003944;
}

.gtd__search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.gtd__search-btn {
    height: 61px;
    padding: 0 32px;
    background: #225d73;
    color: #fff;
    border: none;
    border-radius: 100px 0 0 100px;
    font-weight: 500;
    font-size: 24px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.gtd__search-btn:hover {
    background: #1a4d60;
}

/* ── Active filters ── */
.gtd__active-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #2e404a;
}

.gtd__clear-filters {
    color: #dc3232;
    text-decoration: underline;
    font-size: 14px;
}

.gtd__clear-filters:hover {
    color: #a00;
}

/* ── Card grid — 2 columns ── */
.gtd__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ── Single card — vertical layout ── */
.gtd-card {
    border: 1px solid #003944;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* ── Card header: avatar + name side by side ── */
.gtd-card__header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 24px 16px;
    text-decoration: none;
    color: inherit;
}

.gtd-card__header:hover {
    text-decoration: none;
    color: inherit;
}

.gtd-card__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 3px solid #003944;
}

.gtd-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gtd-card__name {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #003944;
    text-align: right;
    line-height: 1.3;
}

/* ── Card body: details ── */
.gtd-card__body {
    padding: 0 24px 20px;
    flex: 1;
    text-align: right;
}

.gtd-card__detail {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.7;
    color: #2e404a;
}

.gtd-card__detail strong {
    font-weight: 700;
}

/* ── Teal footer bar ── */
.gtd-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.6rem 1.5rem;
    background: #003944;
    direction: ltr;  /* LTR so social icons are on the left, contacts on the right */
}

/* Social icon links (Facebook, Instagram) */
.gtd-card__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-decoration: none;
    transition: opacity .15s;
}

.gtd-card__social-icon:hover {
    opacity: .75;
}

/* Contact links with white circle + text */
.gtd-card__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: opacity .15s;
}

/* Push first contact link to the right (away from social icons on the left) */
.gtd-card__contact-link:first-of-type {
    margin-left: auto;
}

.gtd-card__contact-link:hover {
    opacity: .8;
    color: #fff;
}

.gtd-card__contact-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.gtd-card__contact-text {
    direction: ltr;
    unicode-bidi: embed;
}

/* ── Pagination ── */
.gtd__pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.gtd__page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 57, 68, .35);
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #003944;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.gtd__page-num:hover {
    background: #003944;
    color: #fff;
    text-decoration: none;
}

.gtd__page-num.is-current {
    background: #003944;
    color: #fff;
    border-color: #003944;
}

/* ── Empty state ── */
.gtd__empty {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gtd__empty-title {
    margin: 8px 0 0;
    color: #003944;
}

.gtd__empty-sub {
    margin: 0;
    color: #5a6a72;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
    .gtd__grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .gtd__dropdowns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .gtd {
        padding: 0 10px;
    }

    .gtd__dropdowns {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .gtd__select {
        height: 50px;
        font-size: 18px;
        padding: 10px 12px;
        padding-left: 36px;
    }

    .gtd__search-row {
        max-width: 100%;
    }

    .gtd__search-input {
        height: 50px;
        font-size: 18px;
    }

    .gtd__search-btn {
        height: 50px;
        font-size: 18px;
        padding: 0 20px;
    }

    .gtd-card__avatar {
        width: 90px;
        height: 90px;
    }

    .gtd-card__name {
        font-size: 1.4rem;
    }

    .gtd-card__footer {
        gap: 10px;
        padding: 0.6rem 1rem;
    }

    .gtd-card__contact-text {
        font-size: 12px;
    }
}
