/* Guild Courses — Archive Styles */

/* Force Heebo on every element inside .gc so the theme reset.css can't override */
.gc,
.gc * {
    font-family: "Heebo", Sans-serif !important;
}

/* ── Container ── */
.gc {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Filter pills ── */
.gc__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gc__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 2px solid rgba(10, 70, 80, .55);
    border-radius: 999px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    color: #225D73;
    background: #fff;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}

.gc__pill:hover,
.gc__pill:focus {
    background: #0a4650;
    color: #fff;
    text-decoration: none;
}

.gc__pill.is-active {
    background: #0a4650;
    color: #fff;
    border-color: #0a4650;
}

/* ── Filter bar ── */
.gc__filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 20px 0 30px;
}

.gc__filters {
    margin: 0;
}

/* ── Location dropdown ── */
.gc__location-filter {
    display: flex;
    align-items: center;
}

.gc__location-select {
    padding: 10px 16px;
    border: 2px solid rgba(10, 70, 80, .55);
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    color: #0a4650;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-left: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a4650' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

.gc__location-select:hover,
.gc__location-select:focus {
    border-color: #0a4650;
    outline: none;
}

/* ── Card grid (vertical stack) ── */
.gc__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.gc__empty-img {
    max-width: 260px;
    height: auto;
    margin-bottom: 16px;
}

.gc__empty-title {
    margin: 0;
    color: var(--e-global-color-accent, #4B2D45);
}

.gc__empty-sub {
    margin: 0;
    color: var(--e-global-color-accent, #4B2D45);
}

/* ── Single card ── */
.gc-card {
    border: 2px solid rgba(10, 70, 80, .45);
    overflow: hidden;
    background: #fff;
}

/* Inner grid: media (360px) | content (1fr).
   In RTL first column (media) is on the RIGHT, second (content) on the LEFT. */
.gc-card__grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 260px;
}

/* ── Media ── */
.gc-card__media {
    background: #e8edef;
}

.gc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Content wrapper (no padding — body & footer own their padding) ── */
.gc-card__content {
    display: flex;
    flex-direction: column;
    text-align: start;
}

/* Body area — badge, title, subtitle, excerpt */
.gc-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 1.5rem;
    flex: 1;
}

/* Location badge */
.gc-card__badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(10, 70, 80, .08);
    font-weight: 600;
    font-size: 13px;
    color: #0a4650;
}

.gc-card__pin {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: #0a4650;
}

/* Title – matches Elementor H2 (secondary) */
.gc-card__title {
    margin: 4px 0 0;
    font-size: var(--e-global-typography-secondary-font-size, 2rem);
    font-weight: var(--e-global-typography-secondary-font-weight, 700);
    line-height: var(--e-global-typography-secondary-line-height, 2rem);
    color: #0a4650;
}

/* Subtitle – between H2 and body text */
.gc-card__subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.9rem;
    color: #0a4650;
    margin-bottom: 2px;
}

/* Excerpt */
.gc-card__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #3a4a50;
}

/* ── Contact footer — teal bar with white text ── */
.gc-card__footer {
    margin-top: auto;
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.5rem 1.5rem;
    background: #0a4650;
}

.gc-card__contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: opacity .15s;
}

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

/* Circle icon buttons — white circles with teal icons on teal bar */
.gc-card__contact-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
}

/* Social icon links */
.gc-card__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity .15s;
}

.gc-card__social:hover {
    opacity: .8;
}

.gc-card__social img {
    width: 30px;
    height: 30px;
}

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

    .gc__filter-bar {
        flex-direction: column;
        gap: 12px;
    }

    /* Stacked full-width pills */
    .gc__filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0;
    }

    .gc__location-select {
        width: 100%;
    }

    .gc__pill {
        justify-content: center;
        padding: 12px 18px;
    }

    /* Stacked card — image on top */
    .gc-card__grid {
        grid-template-columns: 1fr;
    }

    .gc-card__media {
        height: 240px;
    }

    .gc-card__body {
        padding: 1.25rem;
    }

    .gc-card__title {
        font-size: 1.4rem;
    }

    .gc-card__subtitle {
        font-size: 1.2rem;
    }

    .gc-card__footer {
        flex-direction: column;
        gap: 10px;
        padding: 0.5rem 1.25rem;
    }
}
