/************************************/
/*** 	    ATF Speakers Css	      ***/
/************************************/

.page-speakers {
    padding: 100px 0 70px;
}

.speakers-intro {
    margin-bottom: 60px;
}

.speakers-intro figure {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
}

.speakers-intro img {
    width: 100%;
    border-radius: 20px;
}

.speaker-group {
    margin-bottom: 40px;
}

.speaker-group-title {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.1em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--divider-color);
}

.speaker-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    margin-bottom: 30px;
    background-color: var(--white-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 2px 5px 10px 3px #0000001f;
}

.speaker-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.speaker-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    transition: all 0.5s ease-in-out;
}

.speaker-card:hover .speaker-image img {
    transform: scale(1.05);
}

.speaker-content h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.speaker-role {
    font-size: 15px;
    line-height: 1.5em;
    margin-bottom: 15px;
}

.speaker-sessions {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.speaker-sessions li {
    position: relative;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4em;
    padding-left: 24px;
    margin-bottom: 8px;
}

.speaker-sessions li i {
    position: absolute;
    top: 3px;
    left: 0;
    color: #D00E16;
}

.speaker-bio {
    margin-top: auto;
    border-top: 1px solid var(--divider-color);
    padding-top: 15px;
}

.speaker-bio summary {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #D00E16;
    font-weight: 600;
    line-height: 26px;
    cursor: pointer;
    list-style: none;
}

.speaker-bio summary::-webkit-details-marker {
    display: none;
}

.speaker-bio summary i {
    transition: transform 0.3s ease-in-out;
}

.speaker-bio[open] summary i {
    transform: rotate(45deg);
}

.speaker-bio .bio-close,
.speaker-bio[open] .bio-open {
    display: none;
}

.speaker-bio[open] .bio-close {
    display: inline;
}

/* Open bio covers its own card (above the button) so the row height never changes. */
.speaker-bio-text {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 62px;
    overflow-y: auto;
    padding: 0 10px 10px 0;
    background-color: var(--white-color);
    font-size: 15px;
}

.speaker-bio-text p:last-child {
    margin-bottom: 0;
}

.speaker-bio-text a {
    color: #D00E16;
    text-decoration: underline;
}

@media only screen and (max-width: 767px) {
    .page-speakers {
        padding: 50px 0 20px;
    }

    .speakers-intro {
        margin-bottom: 40px;
    }

    .speaker-group-title {
        font-size: 28px;
    }

    /* One card per row on phones, so the bio can simply open below. */
    .speaker-bio-text {
        position: static;
        padding: 15px 0 0;
    }
}
