.speakers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}
.speakers .column {
    width: 25%;
    position: relative;
}
.speakers .column .inner {
    padding: 0 15px 30px;
}
.speakers .column .inner .speaker {
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    overflow: hidden;
    width: 295px;
}
.speakers .column .inner .speaker .widget-speaker-container {
    position: relative;
    width: 280px;
    aspect-ratio: 4 / 3;
    margin-left: auto;
    margin-right: auto;
}
.widget-speaker-background {
    width: 100%;
    padding-top: 103%;
    border-radius: 15px;
    max-width: 265px;
    margin-left: auto;
    margin-right: auto;
}
.widget-speaker-photo {
    position: absolute;
    top: 0;
    left: 2.7%;
    max-width: 265px;
    width: 100%;
    border-radius: 15px;
}
.speakers .column .inner .speaker .content {
    padding: 20px;
    line-height: 1.7;
    text-align: center;
}
.speakers .column .inner .speaker .content .name {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 2px;
    text-align: center;
}
.speakers .column .inner .speaker .content .profession {
    font-weight: 400;
    font-size: 1.4rem;
    min-height: 50px;
    text-align: center;
}

.speakers .column .inner .speaker .content .company_name {
    font-weight: 600;
    font-size: 1.2rem;
}

.speakers .column .inner .speaker .content .company-logo,
.speakers .column .inner .speaker .content .company_logo {
    min-height: 50px;
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    align-items: flex-end;
}
.speakers .column .inner .speaker .content .company-logo img,
.speakers .column .inner .speaker .content .company_logo img {
    max-width: 160px;
    max-height: 50px;
}

@media (max-width: 1500px) {
    .speakers .column {
        width: 33%;
        max-width: 350px;
    }
}

@media (max-width: 991px) {
    .speakers .column {
        width: 50%;
        max-width: 350px;
    }
}

@media (max-width: 767px) {
    .speakers .column {
        width: 100%;
        max-width: 350px;
    }
}

/* === Modal alapbeállítások === */
#slw-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slw-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 0.3s ease-in-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slw-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.slw-modal-close:hover {
    color: #000;
}

.slw-modal-body {
    text-align: center;
}

.slw-modal-body img {
    max-width: 120px;
    border-radius: 10px;
    margin-bottom: 15px;
}

#slw-modal-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

#slw-modal-profession,
#slw-modal-company {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
}

#slw-modal-bio {
    margin-top: 15px;
    font-size: 15px;
    text-align: left;
    line-height: 1.5;
}

#slw-modal-agenda {
    margin-top: 20px;
    font-style: italic;
    color: #777;
}

/* Gomb stílus a névhez */
.slw-open-modal {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    font-weight: 600;
}

.slw-open-modal:hover {
    color: #005177;
}


#slw-modal-bio-wrapper {
    position: relative;
    text-align: left;
    margin-top: 15px;
}

#slw-modal-bio {
    max-height: 7.2em; /* kb. 4 sor */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
    line-height: 1.8em;
    cursor: pointer;
}

/* Maszk effekthez */
.slw-bio-collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5em;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}



.widget-speaker-container {
    position: relative;
    width: 280px;
    aspect-ratio: 4 / 3;
    margin-left: auto;
    margin-right: auto;
}
.widget-speaker-background {
    /*background: url(/wp-content/uploads/2025/06/speaker-frame-green-1.png) bottom / contain no-repeat;
    padding-top: 107.7%;*/
    /*background: url(/wp-content/uploads/2025/06/ciex-speaker-landing-page-FRAME.png) bottom / contain no-repeat;*/
    width: 100%;
    padding-top: 102.8%;
    border-radius: 15px;
    max-width: 265px;
    margin-left: auto;
    margin-right: auto;
}
.widget-speaker-photo {
    position: absolute;
    top: 0;
    left: 2.7%;
    max-width: 265px;
    width: 100%;
    border-radius: 15px;
    z-index: 3;
}
.widget-speaker-background-blue {
    position: absolute;
    top: 62%;
    left: 2.5%;
    width: 95%;
    height: 35.8%;
    background-color: #4D87BD;
    border-radius: 15px;
    z-index: 2;
}
.widget-speaker-background-green {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 115px;
    height: 2.5%;
    background-color: #9ACB7A;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 1;
}