/* Registration fields */
:is(.is-registration, .registration-name, .registration-organization, .registration-email, .registration-phone) :is(input, textarea, select) {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: 15px;
}

:is(.registration-name, .registration-organization, .registration-email, .registration-phone) :is(input, textarea, select):focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 171, 158, 0.12);
    background-color: #fff !important;
}

:is(.registration-name, .registration-organization, .registration-email, .registration-phone) :is(input, textarea, select):is(:-webkit-autofill, :-webkit-autofill:hover, :autofill) {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #111 !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
}


.gform-theme--foundation .gform_fields {
    width: 99%;
}

/* Events list */
.events-list__section {
    box-sizing: border-box;
    padding-inline: 48px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.events-list__section + .events-list__section {
    margin-top: 34px;
    padding-top: 28px;
   /* border-top: 1px solid #d8d8d8; */
}

.events-filter {
    margin-bottom: 22px;
    display:none;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    box-sizing: border-box;
}


/* Responsive */
@media (max-width: 520px) {
    .events-list {
        grid-template-columns: 1fr;
    }
}



.event-card__category,
.event-single__category {
    padding: 6px 10px;
    background: rgba(0, 216, 125, 1);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    font-size: 13px;
}

.event-card__speaker-img,
.event-single__speaker-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.event-card__speaker-work-title,
.event-single__speaker-work-title,
.event-single__speaker-information,
.event-single__speaker-information p,
.event-single__speaker-information li,
.event-single__speaker-information span {
    color: #666;
}

.event-card__speaker-name,
.event-single__speaker-name {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 700;
}

/* Event cards */
.event-card {
    border: 1px solid #d8d8d8;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    border-radius: 20px;
}

.event-card__badges {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
    width: 100%;
    flex: 0 0 auto;
}

.event-card__category {
    display: inline-block;
    margin: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.event-card__content {
    padding: 18px;
}

.event-card__header {
    display: flex;
    align-items: flex-start;
    flex-direction:column;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.event-card__summary {
    max-width: 100%;
    min-width: 0;
}

.event-card__summary .city {
    margin-bottom: 5px;
}

.event-card__title {
    margin: 0 0 15px;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
}

.event-card__meta-item{
    font-weight:300;
    font-size:18px;
    line-height:1;
}

.event-card__meta-item,
.event-card__speaker-name,
.event-card__speaker-work-title,
.event-card__speaker-information {
    margin: 0;
}

.event-card__footer {
    margin-top: 20px;
   /* border-top: 1px solid #d8d8d8;*/
}

.event-card__speaker-work-title {
    font-size: 14px;
}

.events-list__section .events-list__section-title {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 30px;
}

.event-card__speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px 16px;
    margin-top: 20px;
}

.event-card__speaker-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.event-card__speaker-info .event-card__speaker-work-title {
    font-size: 13px;
}

.event-card__button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 12px 16px;
    font-size: 15px;
    background: #111;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    border-radius: 999px;
}

.event-card__button:hover,
.event-card__button:focus {
    background: #000;
    text-decoration: none;
}

.event-card__button,
.event-card__button *,
.event-card__button.button.button-secondary {
    color: #fff !important;
}

.event-card__button.button.button-secondary {
    background: #111;
}

/* Single event */
.event-single {
    background: rgba(108, 171, 158, 0.06);
}

.event-single__hero {
    position: relative;
    min-height: clamp(360px, 52vw, 620px);
    display: flex;
    align-items: flex-end;
    background-color: #6cab9e;
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 56px max(24px, calc((100vw - 1400px) / 2)) 150px;
}

.event-single__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.64));
}

.event-single__hero-inner {
    position: relative;
    z-index: 1;
    width: min(1400px, 100%);
}

.event-single__badges {
    position: absolute;
    top: -6px;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

.event-single__category {
    position: static;
}

.event-single__date {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.event_location__title {
    margin: 0 0 10px;
    color: #fff !important;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 600;
}

.event-single__title {
    margin: 0;
    max-width: 1000px;
    font-size: clamp(36px, 6vw, 55px) !important;
    line-height: 1.1;
}

.single-events .event-single__hero .event-single__title {
    color: #fff !important;
}

.event-single__wrap {
    position: relative;
    z-index: 2;
    width: min(1400px, calc(100% - 48px));
    margin: -96px auto 0;
    padding-bottom: 72px;
}

.event-single__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
    gap: 32px;
    padding: clamp(24px, 4vw, 48px);
    background: #fff;
    border: 1px solid #e4e0d6;
    border-radius: 6px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
}

.event-single__main {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 50px;
    padding-top: 20px;
}


.event-single__main > .event-single__section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.event-single__section-title {
    margin: 0 0 25px;
    font-size: 1.75rem !important;
    font-weight: 700;
    line-height: 1.2;
}

.event-single__rich-text,
.event-single__rich-text p,
.event-single__rich-text li,
.event-single__rich-text span,
.event-single__program-item p,
.event-single__speaker-information,
.event-single__speaker-information p,
.event-single__speaker-information li,
.event-single__speaker-information span {
    font-size: 1rem;
    line-height: 1.5rem;
}

.event-single__program {
    display: grid;
    gap: 18px;
}


.event-single__program-item {
    padding: 20px 15px 15px 15px;
    background: #eee;
    border-radius: 5px;
}
.event-single__program-item p:last-child {
    margin-bottom: 0px;
}


.event-single__program-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 500;
}

.event-single__speaker-text p {
margin-top: 5px;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 400;
}

.event-single__speakers-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.event-single__speaker-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.event-single__speaker-item:first-child {
    border-top: 1px solid #eee;
}

.event-single__speaker-top {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
}

.event-single__speaker-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-single__speaker-bottom {
    width: 100%;
}

.event-single__speaker-work-title {
    margin-top: 4px;
    font-size: 14px;
}

.event-single__speaker-event-title {
    color: #111;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.event-single__speaker-information {
    margin-top: 8px;
}

.event-single__speaker-information p {
    margin-bottom: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.event-single__speaker-text {
    margin-top: 0px;
}

/* Single-event signup form */
.event-single__signup {
    position: sticky;
    top: 45px;
    z-index: 1;
    align-self: start;
    max-height: calc(100vh - 160px);
    overflow: auto;
    color: #111;
}

.event-single__archive-message {
    font-size: 1rem;
    line-height: 1.5;
}

.event-single__archive-link {
    margin-left: 6px;
    color: #111;
    text-decoration: underline;
    font-weight: 600;
}

.event-single__signup-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    border: 0;
    color: #111;
    text-align: center;
    background: transparent;
}

.event-single__signup .gform_wrapper {
    width: 100%;
}

/*.event-single__signup .gform_wrapper,*/
/*.event-single__signup .gform_wrapper form {*/
/*    width: 100%;*/
/*}*/

.event-single__signup .gform_wrapper .gform_fields {
    row-gap: 8px;
}

.event-single__signup .gform_wrapper .gfield {
    margin-bottom: 8px;
}

.event-single__signup .gform_wrapper .registration-name :is(.ginput_container_name, .ginput_complex) {
    display: block !important;
}

.event-single__signup .gform_wrapper .registration-name :is(.ginput_complex > span.ginput_left, .ginput_complex > span.ginput_right, .ginput_complex > span.name_first, .ginput_complex > span.name_last, .ginput_container_name > span) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    float: none !important;
    clear: both !important;
}

.event-single__signup .gform_wrapper .registration-name :is(.ginput_container_name > span > label, .ginput_complex > span > label),
.event-single__signup .gform_wrapper label {
    display: block;
    margin-bottom: 6px;
}

.event-single__signup .gform_wrapper label {
    color: #111;
    font-weight: 600;
}

.event-single__signup .gform_wrapper .gfield:not(.gsection) > .gfield_label,
.event-single__signup .gform_wrapper .registration-name :is(.ginput_container_name > span > label, .ginput_complex > span > label) {
    margin-left: 6px;
}

.event-single__signup .gform_wrapper .registration-name :is(.ginput_container_name > span.name_first, .ginput_complex > span.name_first, .ginput_container_name > span.ginput_left, .ginput_complex > span.ginput_left) {
    margin-bottom: 10px;
}

.event-single__signup .gform_wrapper .registration-name > .gfield_label,
.event-single__signup .gform_wrapper .registration-name > legend.gfield_label,
.event-single__signup .gform_wrapper .registration-name > .gfield_label.registration-name__main-label--hidden,
.event-single__signup .gform_wrapper .registration-name > legend.gfield_label.registration-name__main-label--hidden {
    display: none !important;
}

.event-single__signup .gform_wrapper :is(input[type="text"], input[type="email"], input[type="tel"], textarea, select, .gfield input) {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    color: #111;
    text-align: left;
}

.event-single__signup .gform_wrapper :is(input[type="text"], input[type="email"], input[type="tel"], textarea)::placeholder {
    text-align: left;
}

.event-single__signup .gform_wrapper .gform_footer :is(input[type="submit"], button) {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}

.event-single__signup .gform_wrapper .gform_footer :is(input[type="submit"], button):is(:hover, :focus) {
    background: #000 !important;
    color: #fff !important;
}

.event-single__signup .gform_wrapper :is(.gsection .gsection_title, .gsection .gfield_label, .gfield.gsection .gfield_label) {
    font-size: 2rem;
}

.event-single__signup .gform_wrapper .gfield:not(.gsection),
.event-single__signup .gform_wrapper .gfield:not(.gsection) :is(.gfield_label, .gfield_description, .validation_message, input, textarea, select) {
    text-align: left !important;
}

.event-single__signup .gform_wrapper .registration-name__required-inline,
.event-single__signup .gform_wrapper .registration-name__required-inline.gfield_required {
    color: #c02b0a !important;
    font-weight: 400;
}

.event-single__rich-text ul {
    padding-left: 10px;
}
.event-single__rich-text *:last-child {
    margin-bottom: 0;
}

.event-single__rich-text ul li {
    margin-bottom: 10px;
    padding-left: 5px;
}
.event-single__rich-text ul li:last-child {
    margin-bottom: 0;
}


.registration-header {
    border: 0 !important;
}

.gsection_title {
        font-size: 1.75rem !important;
    font-weight: 700;
    line-height: 1.2;
    font-family: "NB International Pro", sans-serif;
    text-align: left;
    margin: 0;
}

.gform-body {
    --gf-field-gap-x: 0px;
}

.gform_button {
    padding: 15px !important;
    border-radius: 50px !important;
}

.event-single__signup .gform_wrapper :is(input[type="text"], input[type="email"], input[type="tel"], textarea, select, .gfield input) {
    border-radius: 50px;
}


@media (max-width: 820px) {
    .events-list__section {
        padding-inline: 24px;
    }

    .event-single__panel {
        grid-template-columns: 1fr;
    }

    .event-single__hero {
        padding: 40px 24px 120px;
    }

    .event-single__wrap {
        width: min(100% - 28px, 1180px);
        margin-top: -72px;
    }

    .event-single__signup {
        top: 32px;
        max-height: calc(100vh - 64px);
    }

}
