.wp-block-gtheme-speakers-listing {
    --ahc-blue-500: #3d61a3;
    --ahc-blue-400: #6481b5;
    --ahc-light-blue-500: #5da8dc;
    --ahc-red-500: #ec1c24;
    --ahc-text: #434445;
    --ahc-white: #ffffff;
    --ahc-shadow: 0 8px 14px rgba(61, 97, 163, 0.35);

    width: 100%;
    background: #ffffff;
    font-family: "Lato", Arial, Helvetica, sans-serif;
    color: var(--ahc-text);

    * {
        box-sizing: border-box;
    }

    button,
    input,
    select {
        font: inherit;
    }
}

article:has(.ahc-speakers-page)>.entry-header h1 {
    color: #4B6EAA;
    font-size: 40px;
    margin-top: 90px;
    letter-spacing: -2%;
    line-height: 45px;
}

article:has(.ahc-speakers-page)>.entry-content p {
    font-size: 20px;
    color: #434445;
    line-height: 24px;
    font-family: "Lato", Arial, Helvetica, sans-serif;
}

.wp-block-gtheme-speakers-listing .ahc-speakers {
    width: 100%;
    padding: 0 0 90px;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__container {
    width: 100%;
    margin: 0 auto;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__intro {
    max-width: 1171px;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__intro h1 {
    margin: 0 0 18px;
    color: var(--ahc-blue-500);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 45px;
    letter-spacing: -0.02em;
    text-align: left;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__intro p {
    margin: 0;
    max-width: 1171px;
    color: var(--ahc-text);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.02em;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__filters {
    margin-top: 46px;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__filters-title {
    margin: 0 0 10px;
    color: var(--ahc-red-500);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: -0.02em;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__search {
    position: relative;
    display: block;
    width: 628px;
    max-width: 100%;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__search input {
    width: 100%;
    height: 48px;
    padding: 0 52px 0 22px;
    border: 1px solid rgba(67, 68, 69, 0.75);
    border-radius: 3px;
    background: var(--ahc-white);
    color: var(--ahc-blue-400);
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__search input::placeholder {
    color: var(--ahc-blue-400);
    opacity: 1;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__search input:focus {
    border-color: var(--ahc-light-blue-500);
    box-shadow: 0 0 0 3px rgba(93, 168, 220, 0.18);
}

.wp-block-gtheme-speakers-listing .ahc-speakers__search-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    display: inline-flex;
    color: var(--ahc-blue-400);
    transform: translateY(-50%);
    pointer-events: none;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__selects {
    display: flex;
    align-items: center;
    gap: 24px;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__selects label {
    display: block;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__selects select {
    width: 180px;
    height: 48px;
    padding: 0 42px 0 20px;
    border: 1px solid rgba(67, 68, 69, 0.75);
    border-radius: 3px;
    background-color: var(--ahc-white);
    color: var(--ahc-blue-400);
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    outline: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ahc-blue-400) 50%),
        linear-gradient(135deg, var(--ahc-blue-400) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__selects select:focus {
    border-color: var(--ahc-light-blue-500);
    box-shadow: 0 0 0 3px rgba(93, 168, 220, 0.18);
}

.wp-block-gtheme-speakers-listing .ahc-speakers__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__empty {
    margin: 40px 0 0;
    color: var(--ahc-blue-500);
    font-size: 18px;
    line-height: 26px;
}

/* Speaker Card */
.wp-block-gtheme-speakers-listing .ahc-speaker-card {
    --card-img-h: 330px;
    --card-img-h-md: 288px;
    position: relative;
    display: flex;
    min-height: 436px;
    padding: 0;
    border: 1px solid var(--ahc-light-blue-500);
    border-radius: 12px;
    background: var(--ahc-white);
    box-shadow: var(--ahc-shadow);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    appearance: none;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(61, 97, 163, 0.38);
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card:focus-visible {
    outline: 3px solid rgba(93, 168, 220, 0.55);
    outline-offset: 3px;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card__image-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: var(--card-img-h);
    background: #f2f2f2;
    flex: 0 0 var(--card-img-h);
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card__image-wrap>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .wp-block-gtheme-speakers-listing .ahc-speaker-card__image-wrap {
        height: var(--card-img-h-md);
        flex: 0 0 var(--card-img-h-md);
    }
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card__flag {
    position: absolute;
    right: 24px;
    bottom: -28px;
    display: grid;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--ahc-white);
    overflow: hidden;
    place-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card__flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card__flag span {
    display: grid;
    width: 100%;
    height: 100%;
    font-size: 34px;
    line-height: 1;
    place-items: center;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card__content {
    display: flex;
    flex: 1;
    padding: 24px 16px;
    flex-direction: column;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card__name {
    display: block;
    min-height: 64px;
    color: var(--ahc-blue-500);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.02em;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card__specialty {
    display: block;
    margin-top: 26px;
    color: var(--ahc-light-blue-500);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card__cta {
    display: inline-flex;
    width: 100%;
    min-height: 56px;
    margin-top: auto;
    padding: 14px 24px;
    border-radius: 32px;
    background: var(--ahc-red-500);
    color: var(--ahc-white);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.02em;
    align-items: center;
    justify-content: center;
}

/* Modal */
.wp-block-gtheme-speakers-listing .ahc-speaker-modal {
    width: min(994px, calc(100% - 48px));
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: var(--ahc-white);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    color: var(--ahc-text);
    overflow: auto;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal::backdrop {
    background: rgba(255, 255, 255, 0.72);
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__box {
    position: relative;
    display: grid;
    grid-template-columns: 339px minmax(0, 1fr);
    gap: 34px;
    min-height: 546px;
    padding: 36px 64px 30px 32px;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__close {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    place-items: center;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__close span {
    position: absolute;
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #000000;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__close span:first-child {
    transform: rotate(45deg);
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__close span:last-child {
    transform: rotate(-45deg);
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__image-col {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__image {
    display: block;
    width: 339px;
    height: 482px;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__socials {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    align-items: center;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__socials a {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__socials img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__content {
    min-width: 0;
    padding-top: 4px;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__flag {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    border-radius: 999px;
    overflow: hidden;
    place-items: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal h2 {
    margin: 0 0 14px;
    color: var(--ahc-blue-500);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 45px;
    letter-spacing: -0.02em;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal .ahc-speaker-modal-bio {
    margin: 0;
    color: var(--ahc-text);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.02em;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal .ahc-speaker-modal-bio ul {
    padding-left: 26px;
}

.wp-block-gtheme-speakers-listing .ahc-speaker-modal .ahc-speaker-modal-bio li {
    margin: 0;
}

body:has(.ahc-speaker-modal[open]) {
    overflow: hidden;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1180px) {
    .wp-block-gtheme-speakers-listing .ahc-speakers__container {
        width: min(100% - 64px, 1000px);
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__filters-row {
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__search {
        width: 100%;
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__selects {
        width: 100%;
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__selects label {
        flex: 1 1 50%;
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__selects select {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .wp-block-gtheme-speakers-listing .ahc-speakers {
        padding: 56px 0 70px;
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__container {
        width: min(100% - 40px, 680px);
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__intro h1 {
        font-size: 34px;
        line-height: 40px;
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__intro p {
        font-size: 18px;
        line-height: 26px;
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wp-block-gtheme-speakers-listing .ahc-speaker-modal {
        width: min(100% - 32px, 620px);
    }

    .wp-block-gtheme-speakers-listing .ahc-speaker-modal__box {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 58px 24px 30px;
    }

    .wp-block-gtheme-speakers-listing .ahc-speaker-modal__image {
        width: 100%;
        height: auto;
        max-height: 440px;
    }

    .wp-block-gtheme-speakers-listing .ahc-speaker-modal h2 {
        font-size: 32px;
        line-height: 38px;
    }

    .wp-block-gtheme-speakers-listing .ahc-speaker-modal .ahc-speaker-modal-bio {
        font-size: 18px;
        line-height: 26px;
        max-height: 110px;
        overflow-y: scroll;
    }
}

@media (max-width: 560px) {
    .wp-block-gtheme-speakers-listing .ahc-speaker-modal__image-col {
        flex-direction: row;
        justify-content: center;
    }

    .wp-block-gtheme-speakers-listing .ahc-speaker-modal__image {
        width: auto;
        height: 200px;
    }

    .wp-block-gtheme-speakers-listing .ahc-speaker-modal__flag {
        width: 30px;
        height: 30px;
        margin-top: -35px;
    }

    .wp-block-gtheme-speakers-listing .ahc-speaker-modal h2 {
        font-size: 28px;
        line-height: 33px;
        width: 80%;
    }

    .wp-block-gtheme-speakers-listing .ahc-speaker-modal .ahc-speaker-modal-bio {
        max-height: 210px;
    }

    .wp-block-gtheme-speakers-listing .ahc-speaker-modal .ahc-speaker-modal-bio ul {
        padding-left: 0;
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__container {
        width: min(100% - 28px, 420px);
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__selects {
        flex-direction: row;
        gap: 14px;
    }

    .wp-block-gtheme-speakers-listing .ahc-speakers__grid {
        grid-template-columns: 1fr;
    }

    .wp-block-gtheme-speakers-listing .ahc-speaker-card {
        min-height: 420px;
    }
}

/* Pagination / Ver mas */
.wp-block-gtheme-speakers-listing .ahc-speakers__load-more {
    display: none;
    /* Controlled via JS */
    margin: 40px auto 0;
    text-align: center;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__load-more button {
    display: inline-flex;
    padding: 12px 32px;
    background-color: var(--ahc-blue-500);
    color: var(--ahc-white);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wp-block-gtheme-speakers-listing .ahc-speakers__load-more button:hover {
    background-color: var(--ahc-blue-400);
}

.wp-block-gtheme-speakers-listing .ahc-speaker-card[hidden] {
    display: none !important;
}