/* ===== SPEAKERS PAGE STYLES ===== */

/* ===== SPEAKERS TITLE SECTION ===== */

.speakers-title-section {
    width: 100%;
    max-width: 1440px;
    margin: 45px auto 0;
    padding: 0 54px;
    box-sizing: border-box;
}

.speakers-title {
    flex: 1;
    width: 100%;
    position: relative;
    font-size: 52px;
    line-height: 60px;
    display: inline-block;
    font-family: 'Be Vietnam Pro';
    color: #0065a4;
    text-align: left;
    margin: 0;
    font-weight: 600;
}

/* ===== FEATURED SPEAKERS SECTION ===== */

/* Featured Speakers Section - Full width */
.featured-speakers-section {
    width: 100%;
    max-width: 1440px;
    padding: 0 54px;
    box-sizing: border-box;
    margin: 45px auto 0;
}

/* Override global container for speakers sections */
.featured-speakers-section .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

/* Featured Speakers Section Container - Maps to .frame-parent from Figma */
.featured-speakers-band {
    width: 100%;
    position: relative;
    border-radius: 12px;
    background: #000229;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 45px 50px;
    box-sizing: border-box;
    gap: 45px;
    text-align: left;
    font-size: 28px;
    color: #00b1ee;
    font-family: 'Be Vietnam Pro';
    overflow: hidden;
}

/* Band Header */
.featured-band-header {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 0px;
    gap: 25px;
    width: 100%;
}

.featured-band-title {
    align-self: stretch;
    position: relative;
    font-size: 28px;
    color: #00b1ee;
    font-family: 'Be Vietnam Pro';
    font-weight: 600;
    margin: 0;
}

.featured-band-toggle {
    background: none;
    border: none;
    color: #00b1ee;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    display: none;
}

/* Divider Line - Maps to .frame-child from Figma */
.featured-band-header::after {
    content: '';
    align-self: stretch;
    height: 1px;
    position: relative;
    border-top: 1px solid #00b1ee;
    box-sizing: border-box;
}

/* Featured Speakers Content - Maps to .featured-speakers-parent from Figma */
.featured-speakers-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 0px;
    gap: 25px;
    width: 100%;
}

/* Featured Speakers Grid - Grid layout with max 5 columns for 1440px design */
.featured-speakers-grid {
    width: 100% !important;
    position: relative;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    padding: 0 !important;
}

/* Desktop: Max 5 speakers per row (designed for 1440px container) */
@media (min-width: 1200px) {

    .featured-speakers-grid,
    .page-template-page-industrial-network .featured-speakers-grid,
    .page-template-page-speakers .featured-speakers-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* Mobile: exactly 2 cards per row on Speakers page */
@media (max-width: 768px) {
    .page-template-page-speakers .featured-speakers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Industrial Network - Speakers Title (Mobile) */
@media (max-width: 768px) {
    .page-template-page-industrial-network .speakers-title-section {
        width: 100%;
        margin: 0;
        padding: 32px 16px 16px;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        background: #fff;
        box-sizing: border-box;
    }

    .page-template-page-industrial-network .speakers-title {
        width: 100%;
        font-size: 32px;
        line-height: 40px;
        font-weight: 700;
        color: #0065a4;
        text-align: left;
        display: inline-block;
        margin: 0;
    }
}

/* Industrial Network - All Speakers (Mobile) */
@media (max-width: 768px) {
    .page-template-page-industrial-network .all-speakers-section {
        width: 100%;
        margin: 0;
        padding: 0 16px 32px;
        box-sizing: border-box;
    }

    .page-template-page-industrial-network .all-speakers-section .all-speakers-container {
        width: 100%;
        padding: 25px;
        gap: 32px;
        border-radius: 12px;
        background-color: #eeeeef !important;
    }

    .page-template-page-industrial-network .all-speakers-parent {
        gap: 16px;
    }

    .page-template-page-industrial-network .all-speakers {
        font-size: 24px;
        line-height: 30px;
    }

    .page-template-page-industrial-network .frame-child {
        display: block;
    }

    .page-template-page-industrial-network .frame-group {
        gap: 16px;
    }

    .page-template-page-industrial-network .search-parent {
        width: 100%;
        padding: 0;
        gap: 20px;
        justify-content: space-between;
        align-items: center;
    }

    .page-template-page-industrial-network .search {
        flex: 0 0 auto;
        height: 40px;
    }

    .page-template-page-industrial-network .searchbar {
        width: 180px;
        height: 40px;
        padding: 6px 8px;
        box-sizing: border-box;
    }

    .page-template-page-industrial-network .searchbar input {
        font-size: 12px;
        line-height: 18px;
    }

    .page-template-page-industrial-network .buttonicon {
        padding: 8px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .page-template-page-industrial-network .of-210-results {
        font-size: 12px;
        line-height: 16px;
        font-weight: 500;
        white-space: nowrap;
        color: #000229;
    }

    .page-template-page-industrial-network .navmenu {
        padding: 16px;
        gap: 10px;
        width: fit-content;
        max-width: 100%;
    }

    .page-template-page-industrial-network .region-parent {
        width: 100%;
        justify-content: space-between;
    }

    .page-template-page-industrial-network .all-speakers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px !important;
    }

    .page-template-page-industrial-network .all-speakers-grid .frame-container {
        min-width: 0;
        width: 100%;
    }

    .page-template-page-industrial-network .frame-wrapper {
        padding: 16px 0 0;
    }
}

/* Individual Featured Speaker Tile */
.featured-speaker-tile,
.page-template-page-industrial-network .featured-speaker-tile,
.page-template-page-speakers .featured-speaker-tile {
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

.featured-speaker-tile:hover,
.page-template-page-industrial-network .featured-speaker-tile:hover,
.page-template-page-speakers .featured-speaker-tile:hover {
    transform: translateY(-4px) !important;
}

.featured-speaker-tile.active {
    opacity: 1;
}

.featured-speaker-photo,
.page-template-page-industrial-network .featured-speaker-photo,
.page-template-page-speakers .featured-speaker-photo {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border-radius: 12px !important;
    background-color: #E6F7FD !important;
}

.featured-speaker-photo img,
.page-template-page-industrial-network .featured-speaker-photo img,
.page-template-page-speakers .featured-speaker-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.featured-speaker-tile.active .featured-speaker-photo {
    border: 3px solid #00b1ee;
    border-radius: 12px 12px 0px 0px;
}

/* Featured Speaker Info */
.featured-speaker-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 5px;
    background-color: #000229;
    transition: all 0.3s ease;
    border-radius: 0px 0px 12px 12px;
}

.featured-speaker-tile.active .featured-speaker-info {
    background-color: #00b1ee;
}

/* Featured photo: square bottom corners only when active on mobile */
.page-template-page-speakers .featured-speaker-tile.active .featured-speaker-photo {
    border-radius: 12px 12px 0 0 !important;
}

.featured-speaker-name {
    align-self: stretch;
    position: relative;
    line-height: 24px;
    font-weight: 600;
    color: #00b1ee;
    margin: 0;
    font-size: 18px;
    text-align: left;
    font-family: 'Be Vietnam Pro';
    transition: all 0.3s ease;
}

.featured-speaker-tile.active .featured-speaker-name {
    color: #fff;
}

.featured-speaker-title {
    align-self: stretch;
    position: relative;
    font-size: 13px;
    line-height: 17px;
    font-weight: 300;
    color: #fff;
    margin: 0;
    text-align: left;
    font-family: 'Be Vietnam Pro';
    transition: all 0.3s ease;
}

.featured-speaker-tile.active .featured-speaker-title {
    color: #000229;
}

.featured-speaker-company {
    align-self: stretch;
    position: relative;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-align: left;
    font-family: 'Be Vietnam Pro';
    transition: all 0.3s ease;
}

.featured-speaker-tile.active .featured-speaker-company {
    color: #000229;
}

/* All Speakers Detail Container */
#all-speakers-detail-container {
    grid-column: 1 / -1;
    width: 100%;
}

/* Featured Speaker Detail Panel */
.featured-speaker-detail-panel {
    width: 100%;
    position: relative;
    border-radius: 12px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    padding: 45px;
    box-sizing: border-box;
    text-align: left;
    font-size: 21px;
    color: #0065a4;
    font-family: 'Be Vietnam Pro';
    grid-column: 1 / -1;
    gap: 0;
    align-items: stretch;
}

/* Top row with 3 columns */
.detail-top-row {
    --detail-photo-size: 320px;
    display: grid;
    grid-template-columns: minmax(320px, 560px) minmax(240px, 320px) minmax(180px, 1fr);
    align-items: stretch;
    gap: 24px;
    width: 100%;
    padding-top: 25px;
}

/* Wrapper for content with padding */
/* Close button positioned absolutely in top-right */
.detail-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border-radius: 0;
    background-color: #E6F7FD;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #0065A4;
}

.detail-close-btn:hover {
    background-color: #d0eef9;
    transform: scale(1.1);
}

.detail-close-btn svg {
    width: 14px;
    height: 14px;
    stroke: #0065A4;
}

/* All Speakers Detail Panel - Spans full width */
#all-speakers-detail-container .featured-speaker-detail-panel {
    grid-column: 1 / -1;
}

.detail-close-btn:focus {
    outline: 2px solid #0065a4;
    outline-offset: 2px;
}

/* Speaker info card - with light blue background */
.detail-info-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background-color: rgba(230, 247, 253, 0.5);
    padding: 25px;
    border-radius: 12px;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    min-width: 320px;
    max-width: 560px;
    height: var(--detail-photo-size);
}

/* Detail Bio Accordion */
.detail-bio {
    padding-bottom: 25px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 101, 164, 0.5);
    /* Darker divider */
    display: flex;
    flex-direction: column;
}

.detail-bio .bio-content {
    max-height: 170px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-out;
}

/* Subtle fade-out effect at the bottom when collapsed and has overflow */
.detail-bio:not(.expanded).has-overflow .bio-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.detail-bio.expanded .bio-content {
    max-height: none;
    overflow: visible;
}

/* Hide fade-out when expanded */
.detail-bio.expanded .bio-content::after {
    opacity: 0;
}

.detail-bio .read-more-link {
    display: none;
    color: #0065A4;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    text-decoration: none;
    cursor: pointer;
    align-self: stretch;
    justify-content: space-between;
    align-items: center;
}

.detail-bio.has-overflow .read-more-link {
    display: flex;
}

.detail-bio .read-more-link::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('images/icons/ArrowUp.svg');
    /* Local icon */
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    transform: rotate(180deg);
    /* Points down initially */
}

.detail-bio.expanded .read-more-link::after {
    transform: rotate(0deg);
    /* Points up when expanded */
}

/* Photo in top row - center column */
.detail-top-row .detail-photo {
    width: var(--detail-photo-size);
    max-width: var(--detail-photo-size);
    min-width: var(--detail-photo-size);
    justify-self: center;
    align-self: stretch;
    height: var(--detail-photo-size);
    display: flex;
    align-items: stretch;
    margin: 0;
    aspect-ratio: 1 / 1;
}

/* Speaking on in top row - right column */
.detail-top-row .detail-speaking {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 220px;
    min-width: 160px;
    align-self: flex-start;
    justify-self: flex-start;
    box-sizing: border-box;
}

.detail-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.detail-location-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
    border-top: none;
    /* Removed as per user request */
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0065a4;
    font-size: 17px;
}

.location-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.detail-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #0065a4;
    text-decoration: none;
}

.linkedin-icon {
    width: 21px;
    height: 21px;
}

.detail-photo {
    width: 100%;
    max-width: 320px;
    min-width: 240px;
    justify-self: center;
    align-self: stretch;
    height: 100%;
    display: flex;
    align-items: stretch;
    margin: 0;
    overflow: hidden;
}

.detail-photo img {
    height: 100%;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.detail-name {
    position: relative;
    font-size: 32px;
    line-height: 38px;
    font-weight: 600;
    color: #0065a4;
    margin: 0 0 10px 0;
}

.detail-title {
    position: relative;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    color: #0065a4;
    margin: 0 0 5px 0;
}

.detail-company {
    position: relative;
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    color: #090a0a;
    margin: 0 0 20px 0;
}

.detail-bio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    border-radius: 0;
    background-color: transparent;
    padding: 45px 0 0 0;
    box-sizing: border-box;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    align-self: stretch;
}

/* All Speakers Detail Bio */
#all-speakers-detail-container .detail-bio {
    padding: 0;
    gap: 15px;
}

.detail-bio h4 {
    position: relative;
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    color: #0065a4;
    margin: 0 0 5px 0;
}

.bio-content {
    align-self: stretch;
    position: relative;
    font-size: 17px;
    line-height: 23px;
    font-weight: 300;
    color: #000229;
}

.read-more-link {
    color: #0065a4;
    text-decoration: none;
    font-weight: 400;
    font-size: 17px;
    line-height: 23px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: block;
    margin-top: 0;
}

.read-more-link:hover {
    color: #00b1ee;
    text-decoration: underline;
}

.detail-actions {
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.btn-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #00b1ee;
    color: #000229;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-copy-link:hover {
    background-color: #0099cc;
    transform: translateY(-2px);
}

.read-more-link {
    color: #0065a4;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: #00b1ee;
}

/* Limit bio height by default (Desktop: 170px) */
.detail-bio:not(.expanded) .bio-content {
    max-height: 170px;
    overflow: hidden;
    position: relative;
}

/* Gradient removed as per user request to improve readability */

.read-more-link {
    display: none;
    /* Hidden by default, shown via JS if overflows */
    margin-top: 10px;
    margin-bottom: 0;
}

/* Read more: unified style per Figma */
.detail-bio .read-more-link,
.read-more-link {
    width: 100%;
    position: relative;
    font-size: 17px;
    line-height: 23px;
    font-weight: 300;
    font-family: 'Be Vietnam Pro';
    color: #0065a4;
    text-align: left;
    display: inline-block;
    text-decoration: none;
}

/* Mobile specific overrides */
@media (max-width: 768px) {

    /* Limit bio height on Mobile: 126px */
    .detail-bio:not(.expanded) .bio-content {
        max-height: 126px;
    }

    /* Mobile Read More with Arrow Icon */
    .read-more-link {
        display: none;
        /* JS will toggle flex/block */
        align-items: center;
        gap: 8px;
        margin-bottom: 0;
    }

    .read-more-link::after {
        content: "";
        display: inline-block;
        width: 12px;
        height: 12px;
        background-image: url('images/icons/ArrowUp.svg');
        /* Using ArrowUp rotated */
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        transform: rotate(180deg);
        /* Point down */
        transition: transform 0.3s ease;
    }

    /* If creating "Read Less" state later, we can rotate it back */
    .detail-bio.expanded+.read-more-link::after,
    /* If link is sibling */
    .detail-bio.expanded .read-more-link::after {
        /* If link is child */
        transform: rotate(0deg);
    }
}

.detail-speaking {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    background-color: transparent;
    border-radius: 0;
    height: auto;
}

.detail-speaking h4 {
    position: relative;
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    color: #0065a4;
    margin: 0 0 5px 0;
}

/* All Speakers Speaking Content */
#all-speakers-detail-container .speaking-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#all-speakers-detail-container .speaking-content>div {
    border-radius: 12px;
    background-color: rgba(230, 247, 253, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 25px;
    font-size: 17px;
    line-height: 23px;
    font-weight: 300;
}

.speaking-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 17px;
    color: #0065a4;
    width: 100%;
}

.speaking-content div {
    font-size: 16px;
    line-height: 22px;
    background-color: #e6f7fd;
    padding: 14px 18px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    color: #0065a4;
    font-weight: 400;
}

/* ===== SPEAKERS PAGE LAYOUT ===== */

.speakers-page {
    margin: 0;
    margin-top: 136px;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.speakers-page-loading {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 2, 41, 0.9);
    color: #fff;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    line-height: 1;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.speakers-page-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.speakers-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #00b1ee;
    animation: gws-speakers-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes gws-speakers-spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    color: #0065a4;
}

.loading-message::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(0, 101, 164, 0.25);
    border-top-color: #0065a4;
    animation: gws-speakers-spin 0.8s linear infinite;
}

/* Avoid horizontal scroll on Speakers page */
body.page-template-page-speakers {
    overflow-x: hidden;
}

/* Ensure full-width layout for Speakers page */
.page-template-page-speakers .site-main,
.page-template-page-speakers .speakers-page,
.page-template-page-speakers .speakers-hero-section,
.page-template-page-speakers .featured-speakers-section,
.page-template-page-speakers .all-speakers-section,
.page-template-page-speakers .agenda-section,
.page-template-page-speakers footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Mobile: force sections to span full viewport width (avoid right white gap) */
@media (max-width: 768px) {

    .page-template-page-speakers .site-main,
    .page-template-page-speakers .speakers-page,
    .page-template-page-speakers .speakers-hero-section,
    .page-template-page-speakers .featured-speakers-section,
    .page-template-page-speakers .all-speakers-section,
    .page-template-page-speakers .agenda-section,
    .page-template-page-speakers footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ===== SPEAKERS HERO SECTION ===== */

.speakers-hero-section {
    position: relative;
    width: 100%;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
}

.speakers-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}

.hero-text-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* Left side - Text content */
.hero-left {
    display: flex;
    padding: 90px 90px 90px 104px;
    align-items: center;
    gap: 105px;
    flex: 1;
    background: #000229;
}

.hero-left-content {
    max-width: 560px;
}

.hero-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 52px;
    line-height: 60px;
    color: #00b1ee;
    margin: 0 0 24px 0;
    text-transform: none;
}

.hero-description {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #FFFFFF;
    margin: 0;
}

/* Right side - Image with card */
.hero-right {
    display: flex;
    padding: 0 90px 0 0;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 10px;
    flex: 1 0 0;
    align-self: stretch;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-template-page-speakers .speakers-hero-section {
    background-color: #000229;
}

.page-template-page-speakers .hero-right {
    position: relative;
    background-image: none;
}

.page-template-page-speakers .hero-right::before {
    content: "";
    position: absolute;
    top: 0;
    right: calc(50% - 50vw);
    bottom: 0;
    left: 0;
    background-image: var(--speakers-hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.page-template-page-speakers .hero-right>* {
    position: relative;
    z-index: 1;
}

.confirmed-speakers-card {
    display: flex;
    padding: 25px 25px 25px 25px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #E6F7FD 0%, #00B1EE 187.5%);
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    position: relative;
}

.speakers-count {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 72px;
    line-height: 1;
    color: #0065A4;
    margin: 0 0 20px 0;
}

/* White line separator between number and title */
.speakers-count::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #FFFFFF;
    margin: 15px auto 15px auto;
}

.speakers-label {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: #0065A4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 0 0 0;
}

/* ===== MOBILE HERO SECTION ===== */

.speakers-hero-section-mobile {
    display: none;
    width: 100%;
    position: relative;
    background-color: #000229;
    background-image: var(--speakers-mobile-hero-bg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.speakers-hero-section-mobile::after {
    content: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background-image: var(--hero-bg-url);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    transform: translateY(-40px);
    z-index: 0;
    pointer-events: none;
}

.frame-parent-mobile {
    width: 100%;
    position: relative;
    background-color: #000229;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 16px 0px;
    box-sizing: border-box;
    gap: 25px;
    text-align: left;
    font-size: 32px;
    color: #00b1ee;
    font-family: 'Be Vietnam Pro';
    z-index: 1;
}

.frame-wrapper-mobile {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px 25px;
    box-sizing: border-box;
}

.frame-container-mobile {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.frame-div-mobile {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.meet-the-water-mobile {
    align-self: stretch;
    position: relative;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: #00b1ee;
    margin: 0;
}

.the-global-water-summit-brings-wrapper-mobile {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px 25px;
    box-sizing: border-box;
}

.the-global-water-mobile {
    align-self: stretch;
    position: relative;
    width: 100%;
    display: inline-block;
    font-size: 12px;
    line-height: 18px;
    font-weight: 300;
    font-family: 'Be Vietnam Pro';
    color: #fff;
    text-align: left;
}

.frame-parent-card-mobile {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 75px 16px 0px;
    box-sizing: border-box;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    text-align: left;
    font-size: 32px;
    color: #0065a4;
    font-family: 'Be Vietnam Pro';
}

.frame-wrapper-card-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px 25px;
    box-sizing: border-box;
}

.frame-container-card-mobile {
    border-radius: 12px 12px 0px 0px;
    background: linear-gradient(180deg, #e6f7fd, #00b1ee);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 16px 32px;
}

.frame-group-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.wrapper-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.b-mobile {
    align-self: stretch;
    position: relative;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: #0065a4;
}

.frame-div-card-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
}

.line-parent-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.frame-child-mobile {
    align-self: stretch;
    height: 2px;
    position: relative;
    border-top: 2px solid #e6f7fd;
    box-sizing: border-box;
}

.confirmed-speakers-mobile {
    align-self: stretch;
    position: relative;
    line-height: 18px;
    font-weight: 300;
    color: #0065a4;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .speakers-page {
        margin-top: 80px;
    }

    .featured-speaker-tile {
        flex: 0 1 calc(50% - 8px);
    }

    .detail-content {
        flex-direction: column;
        align-items: center;
    }

    .detail-photo {
        height: 280px;
        width: 280px;
    }
}

@media (max-width: 768px) {

    /* Extra guard to prevent horizontal scroll on speakers page */
    body.page-template-page-speakers,
    .page-template-page-speakers .site-main,
    .page-template-page-speakers .speakers-page {
        overflow-x: hidden;
        max-width: 100%;
    }

    .speakers-hero-section {
        display: none;
    }

    .speakers-hero-section-mobile {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }

    .page-template-page-speakers .speakers-hero-section-mobile .frame-parent-mobile {
        background-color: transparent;
    }

    /* Hero mobile wrappers width control to avoid overflow */
    .frame-parent-mobile,
    .frame-wrapper-mobile,
    .the-global-water-summit-brings-wrapper-mobile,
    .frame-parent-card-mobile,
    .frame-wrapper-card-mobile,
    .frame-container-card-mobile {
        /*     width: 100%; */
        max-width: 100%;
        box-sizing: border-box;
    }

    .frame-wrapper-mobile {
        padding: 0 16px;
    }

    .the-global-water-summit-brings-wrapper-mobile {
        padding: 0 16px;
    }

    .frame-parent-card-mobile {
        padding-left: 16px;
        padding-right: 16px;
    }

    .frame-wrapper-card-mobile {
        padding: 0 16px;
    }

    .page-template-page-speakers .speakers-title-section {
        width: 100%;
        margin: 0;
        padding: 32px 16px;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        background: #fff;
        box-sizing: border-box;
    }

    .page-template-page-speakers .speakers-title {
        font-size: 32px;
        line-height: 40px;
        padding: 0 16px;
        font-weight: 700;
        box-sizing: border-box;
        margin: 0;
    }

    /* ✅ FIX: padding lateral para featured speakers en móvil */
    .page-template-page-speakers .featured-speakers-section {
        width: 100%;
        margin: 0;
        padding: 0 16px 32px;
        box-sizing: border-box;
        background: transparent;
    }

    .page-template-page-speakers .featured-speakers-section .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .page-template-page-speakers .featured-speakers-band {
        padding: 25px 16px;
        gap: 32px;
        align-items: flex-end;
        justify-content: center;
        box-sizing: border-box;
        font-size: 24px;
        color: #00b1ee;
    }

    .page-template-page-speakers .featured-band-header {
        padding: 0;
        gap: 16px;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .page-template-page-speakers .featured-band-title {
        font-size: 24px;
        line-height: 30px;
        font-weight: 700;

    }

    .page-template-page-speakers .featured-speakers-content {
        gap: 16px;
    }

    .page-template-page-speakers .featured-speakers-grid {
        padding: 0;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        box-sizing: border-box;
    }

    .page-template-page-speakers .featured-speaker-info {
        padding: 16px 0 0;
        background: transparent;
        border-radius: 0 0 12px 12px;
    }

    .page-template-page-speakers .featured-speaker-tile.active .featured-speaker-info {
        padding: 16px !important;
        background-color: #00b1ee;
        border-left: 3px solid #00b1ee;
        border-right: 3px solid #00b1ee;
        border-bottom: 3px solid #00b1ee;
        box-sizing: border-box;
    }

    .page-template-page-speakers .featured-speaker-name {
        font-size: 18px;
        line-height: 23px;
        font-weight: 600;
        color: #00b1ee;
    }

    .page-template-page-speakers .featured-speaker-title,
    .page-template-page-speakers .featured-speaker-company {
        font-size: 12px;
        line-height: 18px;
    }

    .page-template-page-speakers .featured-speaker-title {
        font-weight: 300;
        color: #fff;
    }

    .page-template-page-speakers .featured-speaker-company {
        font-weight: 300;
        color: #fff;
    }

    .page-template-page-speakers .featured-speaker-photo {
        border-radius: 12px;
    }

    .page-template-page-speakers .featured-speaker-tile.active .featured-speaker-photo {
        border-radius: 12px 12px 0 0 !important;
    }

    .page-template-page-speakers .featured-speaker-tile.active .featured-speaker-name,
    .page-template-page-speakers .featured-speaker-tile.active .featured-speaker-title {
        color: #000229;
    }

    .page-template-page-speakers .featured-speaker-tile.active .featured-speaker-company {
        color: #fff;
    }

    .page-template-page-speakers .frame-parent {
        width: 100%;
        margin: 0;
        padding: 30px 16px;
        box-sizing: border-box;
    }
}

/* ===== FEATURED SPEAKERS SECTION (from page-speakers.php) ===== */

.featured-speakers-section {
    background: #ffffff;
}



/* ===== ALL SPEAKERS SECTION ===== */

/* All Speakers Section - Full width */
.all-speakers-section {
    width: 100%;
    max-width: 1440px;
    padding: 0 54px;
    box-sizing: border-box;
    margin: 45px auto 0;
}

/* All Speakers container (Speakers page only) */
.page-template-page-speakers .all-speakers-section .all-speakers-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    background-color: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 45px 54px;
    box-sizing: border-box;
    gap: 45px;
    text-align: left;
    font-size: 21px;
    color: #0065a4;
    font-family: 'Be Vietnam Pro';
}

/* Generic frame-parent for other sections */
.page-template-page-speakers .frame-parent {
    width: 100%;
    position: relative;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 45px 54px;
    box-sizing: border-box;
    gap: 45px;
    text-align: left;
    font-size: 21px;
    color: #0065a4;
    font-family: 'Be Vietnam Pro';
}

.all-speakers-parent {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 0px;
    gap: 25px;
    font-size: 28px;
    color: #000229;
}

.all-speakers {
    align-self: stretch;
    position: relative;
}

.frame-child {
    align-self: stretch;
    height: 1px;
    position: relative;
    border-top: 1px solid rgba(0, 101, 164, 0.3);
    box-sizing: border-box;
}

.navmenu-parent {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    box-sizing: border-box;
    gap: 20px;
    text-align: left;
    font-size: 16px;
    color: #000229;
    font-family: 'Be Vietnam Pro';
}

.navmenu {
    box-shadow: 0px 2px 4px rgba(21, 22, 25, 0.08);
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 16px 15px;
    /* Reduced lateral padding by half */
    gap: 30px;
    /* Added gap between filters */
}

.region-parent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.company-expertise-parent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.filter-select {
    border: none;
    border-radius: 0;
    padding: 0 20px 0 0 !important;
    font-size: 14px;
    font-family: 'Be Vietnam Pro';
    color: #000229;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 12.8244L15.4978 9.25191C15.6622 9.08397 15.8714 9 16.1256 9C16.3797 9 16.5889 9.08397 16.7534 9.25191C16.9178 9.41985 17 9.63359 17 9.89313C17 10.1527 16.9178 10.3664 16.7534 10.5344L12.6278 14.7481C12.5381 14.8397 12.441 14.9046 12.3363 14.9427C12.2317 14.9809 12.1196 15 12 15C11.8804 15 11.7683 14.9809 11.6637 14.9427C11.559 14.9046 11.4619 14.8397 11.3722 14.7481L7.24664 10.5344C7.08221 10.3664 7 10.1527 7 9.89313C7 9.63359 7.08221 9.41985 7.24664 9.25191C7.41106 9.08397 7.62033 9 7.87444 9C8.12855 9 8.33782 9.08397 8.50224 9.25191L12 12.8244Z' fill='%23111113'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center !important;
    background-size: 16px;
    width: auto !important;
    min-width: 0 !important;
    cursor: pointer;
    margin: 0;
    display: inline-block;
}

.region {
    position: relative;
    line-height: 24px;
}

.region-filter-select {
    position: relative;
    line-height: 24px;
    border: none;
    background: transparent;
    font-family: 'Be Vietnam Pro';
    font-size: 16px;
    color: #000229;
    outline: none;
    cursor: pointer;
    appearance: none;
    padding-right: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 12.8244L15.4978 9.25191C15.6622 9.08397 15.8714 9 16.1256 9C16.3797 9 16.5889 9.08397 16.7534 9.25191C16.9178 9.41985 17 9.63359 17 9.89313C17 10.1527 16.9178 10.3664 16.7534 10.5344L12.6278 14.7481C12.5381 14.8397 12.441 14.9046 12.3363 14.9427C12.2317 14.9809 12.1196 15 12 15C11.8804 15 11.7683 14.9809 11.6637 14.9427C11.559 14.9046 11.4619 14.8397 11.3722 14.7481L7.24664 10.5344C7.08221 10.3664 7 10.1527 7 9.89313C7 9.63359 7.08221 9.41985 7.24664 9.25191C7.41106 9.08397 7.62033 9 7.87444 9C8.12855 9 8.33782 9.08397 8.50224 9.25191L12 12.8244Z' fill='%23111113'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 16px;
}

.company-expertise {
    position: relative;
    line-height: 18px;
    font-weight: 400;
    font-size: 14px;
    font-family: 'Be Vietnam Pro';
    color: #000229;
    background: transparent;
}

.chevrondown-icon {
    height: 24px;
    width: 24px;
    position: relative;
}

.keynote-toggle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #000229;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.keynote-toggle:checked {
    background-color: #000229;
    border-color: #000229;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.search-parent {
    display: flex;
    align-items: center;
    gap: 45px;
    color: #545560;
}

.search {
    width: 301px;
    border-radius: 2px;
    background-color: #fff;
    border: 1px solid #dddddf;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.searchbar {
    flex: 1;
    border-radius: 2px 0px 0px 2px;
    border: 1px solid #dddddf;
    display: flex;
    align-items: center;
    padding: 8px;
}

.searchbar input {
    border: none;
    outline: none;
    flex: 1;
    font-family: 'Be Vietnam Pro';
    font-size: 16px;
    line-height: 24px;
    color: #545560;
}

.searchbar input::placeholder {
    color: #545560;
}

.buttonicon {
    border-radius: 0px 2px 2px 0px;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

/* Mobile override: shrink search icon button on Speakers page */
@media (max-width: 768px) {
    .page-template-page-speakers .buttonicon {
        padding: 1px;
        width: 40px;
        height: 36px;
    }
}

.search-icon {
    height: 24px;
    width: 24px;
    position: relative;
}

.of-210-results {
    position: relative;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #000229;
    text-align: right;
}

.frame-group {
    align-self: stretch;
    display: block;
    padding: 0px 0px;
}

/* All Speakers grid --------------------------------------------------- */
/* All Speakers Grid - Works with or without page-template class */
.all-speakers-grid,
.page-template-page-speakers .all-speakers-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 15px !important;
    row-gap: 15px !important;
    column-gap: 15px !important;
    width: 100% !important;
}

.all-speakers-grid .frame-container,
.page-template-page-speakers .all-speakers-grid .frame-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    cursor: pointer !important;
    height: 100% !important;
}

.all-speakers-grid .frame-item-wrapper,
.page-template-page-speakers .all-speakers-grid .frame-item-wrapper {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-color: #E6F7FD !important;
}

.all-speakers-grid .frame-item,
.page-template-page-speakers .all-speakers-grid .frame-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}

.all-speakers-grid .frame-wrapper,
.page-template-page-speakers .all-speakers-grid .frame-wrapper {
    align-self: stretch !important;
    border-radius: 0 0 12px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 25px 0 0 !important;
    flex: 1 !important;
}

.all-speakers-grid .frame-div,
.page-template-page-speakers .all-speakers-grid .frame-div {
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.all-speakers-grid .frame-parent2,
.page-template-page-speakers .all-speakers-grid .frame-parent2 {
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
}

.all-speakers-grid .jessika-roswall-parent,
.page-template-page-speakers .all-speakers-grid .jessika-roswall-parent {
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
}

.all-speakers-grid .jessika-roswall,
.page-template-page-speakers .all-speakers-grid .jessika-roswall {
    align-self: stretch !important;
    position: relative !important;
    line-height: 27px !important;
    font-weight: 600 !important;
    font-size: 21px !important;
    color: #0065a4 !important;
    margin: 0 !important;
}

.all-speakers-grid .eu-commissioner-for,
.page-template-page-speakers .all-speakers-grid .eu-commissioner-for {
    align-self: stretch !important;
    position: relative !important;
    font-size: 15px !important;
    line-height: 19px !important;
    font-weight: 300 !important;
    color: #0065a4 !important;
    margin: 0 !important;
}

.all-speakers-grid .european-commission,
.page-template-page-speakers .all-speakers-grid .european-commission {
    align-self: stretch !important;
    position: relative !important;
    font-size: 17px !important;
    line-height: 23px !important;
    font-weight: 600 !important;
    color: #090a0a !important;
    margin: 0 !important;
}

.navmenu-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0px 0px 0px 0px;
    font-size: 16px;
    color: #000229;
    background-color: #ffffff;
    gap: 10px;
    width: fit-content;
    margin-left: auto;
}

/* Scrollable pagination container */
.pagination-scroll-container {
    flex: 0 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(21, 22, 25, 0.08);
    width: fit-content;
    max-width: 280px;
}

/* Hide scrollbar for cleaner look */
.pagination-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.pagination-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.pagination-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.pagination-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.navmenu2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 16px;
    box-sizing: border-box;
    gap: 8px;
    text-align: left;
    font-size: 15px;
    color: #000229;
    font-family: 'Be Vietnam Pro';
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Removed unused .container style that was conflicting with main layout container */

.pagination-btn {
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #000229;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.pagination-btn:hover {
    background-color: #f0f0f0;
}

.pagination-btn.active {
    background-color: #0065a4;
    color: #fff;
}

/* Arrow buttons styling - Fixed position */
.pagination-btn.pagination-prev,
.pagination-btn.pagination-next {
    font-size: 20px;
    font-weight: bold;
    color: #0065a4;
    flex-shrink: 0;
    min-width: 44px;
    height: 44px;
}

.pagination-btn.pagination-prev:hover,
.pagination-btn.pagination-next:hover {
    background-color: #e6f7fd;
    color: #004c84;
}

.pagination-ellipsis {
    display: none;
}

/* Pagination Arrow Buttons */
.pagination-arrow-btn {
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #0065a4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.pagination-arrow-btn:hover {
    background-color: #f0f0f0;
    color: #004c84;
}

.pagination-arrow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-arrow-btn.prev {
    order: -1;
}

.pagination-arrow-btn.next {
    order: 999;
}

.speaker-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.speaker-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #0066CC;
}

.speaker-card:focus {
    outline: 2px solid #0066CC;
    outline-offset: 2px;
}

.speaker-photo {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #E6F7FD;
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-info {
    padding: 24px;
}

.speaker-name {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 28px;
    color: #0065A4;
    margin: 0 0 8px 0;
}

.speaker-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: #004C84;
    margin: 0 0 4px 0;
}

.speaker-company {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #666666;
    margin: 0;
}

/* ===== SPEAKER DETAIL MODAL ===== */

.speaker-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    z-index: 1001;
    background: #FFFFFF;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666666;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #0066CC;
}

.speaker-detail-body {
    padding: 40px;
}

.speaker-detail-body .detail-name {
    font-size: 32px;
    margin-bottom: 16px;
}

.speaker-detail-body .detail-photo {
    height: 300px;
    margin-bottom: 24px;
}

/* ===== RESPONSIVE DESIGN (from page-speakers.php) ===== */

@media (max-width: 1200px) {
    .hero-text-wrapper {
        padding: 0 40px;
        gap: 40px;
    }

    .hero-title {
        font-size: 52px;
        line-height: 60px;
    }

    .all-speakers-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }

    .detail-content {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .speakers-hero-section {
        height: auto;
        min-height: 500px;
    }

    .hero-text-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-left {
        padding: 60px 40px;
        gap: 0;
        background: #000229;
        text-align: center;
    }

    .hero-right {
        padding: 40px;
        justify-content: center;
        align-items: center;
        min-height: 300px;
    }

    .hero-title {
        font-size: 42px;
        line-height: 50px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 24px;
    }

    .confirmed-speakers-card {
        margin-bottom: 0;
    }

    .all-speakers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .featured-speakers-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .featured-speaker-detail-panel {
        display: flex;
        flex-direction: column;
        padding: 25px;
        gap: 0;
    }

    .detail-top-row {
        display: contents;
        /* allow children to reorder with siblings */
        width: 100%;
    }

    /* Prevent overflow from fixed widths on detail cards */
    .detail-top-row .detail-info-card {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        order: 2;
    }

    .detail-top-row .detail-photo {
        order: 1;
        width: 100%;
        height: auto;
        margin-bottom: 15px !important;
    }

    .detail-top-row .detail-photo img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .detail-top-row .detail-info-card {
        width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 auto !important;
        height: auto !important;
        order: 2 !important;
        background-color: rgba(230, 247, 253, 0.5) !important;
        padding: 20px !important;
        border-radius: 12px !important;
    }

    .detail-top-row .detail-speaking {
        width: 100%;
        min-width: 100%;
        flex: 1 1 auto;
        order: 4;
    }

    .detail-bio {
        order: 3;
        padding-top: 30px;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: 1.5px solid rgba(0, 101, 164, 0.4);
        width: 100%;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-left {
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .hero-right {
        padding: 20px;
        min-height: 250px;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: 32px;
        line-height: 40px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 22px;
    }

    .confirmed-speakers-card {
        padding: 20px;
        min-width: 180px;
        box-sizing: border-box;
    }

    .all-speakers-grid,
    .page-template-page-speakers .all-speakers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        box-sizing: border-box;
    }

    .speakers-count {
        font-size: 48px;
        line-height: 56px;
    }

    .speakers-label {
        font-size: 14px;
    }

    .featured-speakers-band {
        padding: 12px 16px;
        gap: 10px;
        box-sizing: border-box;
    }

    .featured-speakers-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        padding: 0 16px;
        box-sizing: border-box;
    }

    .featured-band-header {
        padding: 0 16px;
        box-sizing: border-box;
    }

    .featured-band-title {
        width: 100%;
        font-size: 24px;
        line-height: 30px;
        font-weight: 700;
        color: #00b1ee;
        text-align: left;
        display: inline-block;
        box-sizing: border-box;
    }

    .featured-speakers-content {
        padding: 0 16px 20px;
        gap: 32px;
        box-sizing: border-box;
    }

    .featured-speaker-detail-panel {
        flex-direction: column;
        padding: 20px;
        box-sizing: border-box;
        gap: 20px;
    }

    .detail-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .detail-content {
        flex-direction: column;
        gap: 20px;
    }

    .detail-left,
    .detail-center,
    .detail-right {
        width: 100%;
        min-width: 100%;
    }

    .detail-photo {
        width: 100%;
        height: 300px;
    }

    .detail-name {
        font-size: 22px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .speaker-detail-body {
        padding: 20px;
    }
}

/* ===== THIS YEAR'S AGENDA SECTION ===== */

.agenda-section {
    width: 100%;
    position: relative;
    background-color: #e6f7fd;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 90px 0;
    box-sizing: border-box;
    text-align: left;
    font-size: 52px;
    color: #0065a4;
    font-family: 'Be Vietnam Pro';
    margin-top: 90px;
}

.agenda-frame-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 90px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 104px;
    box-sizing: border-box;
}

.agenda-frame-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
}

.agenda-title-wrapper {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.agenda-title {
    flex: 1;
    position: relative;
    line-height: 60px;
    margin: 0;
    font-weight: 600;
    font-size: 52px;
    color: #0065a4;
}

.agenda-content-parent {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
    font-size: 28px;
    color: #000229;
}

.agenda-theme-title {
    align-self: stretch;
    position: relative;
    margin: 0;
    font-weight: 600;
    font-size: 28px;
}

.agenda-description {
    align-self: stretch;
    position: relative;
    font-size: 17px;
    line-height: 23px;
    font-weight: 300;
    margin: 0;
    color: #000229;
}

.agenda-button-parent {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    color: #fff;
}

.agenda-button {
    position: relative;
    border-radius: 2px;
    background-color: #0065a4;
    width: 166px;
    height: 44px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    box-sizing: border-box;
    text-align: left;
    font-size: 16px;
    color: #fff;
    font-family: 'Be Vietnam Pro';
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-template-page-speakers .agenda-button:hover,
.page-template-page-speakers .agenda-button:focus-visible {
    background-color: #00b1ee !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 177, 238, 0.25) !important;
    opacity: 1;
}

.agenda-button-dark {
    position: relative;
    border-radius: 2px;
    background-color: #000229;
    width: 114px;
    height: 44px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    box-sizing: border-box;
    text-align: left;
    font-size: 16px;
    color: #fff;
    font-family: 'Be Vietnam Pro';
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-template-page-speakers .agenda-button-dark:hover,
.page-template-page-speakers .agenda-button-dark:focus-visible {
    background-color: #00b1ee !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 177, 238, 0.25) !important;
    opacity: 1;
}

.agenda-button-text {
    position: relative;
    line-height: 20px;
    text-decoration: none;
}

.agenda-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 397px;
    flex: 1;
}

.agenda-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.agenda-carousel {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.agenda-carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.agenda-carousel-slide.active {
    opacity: 1;
}

.agenda-carousel-image {
    height: 397px;
    width: 100%;
    position: relative;
    border-radius: 12px;
    object-fit: cover;
}

.frame-icon {
    height: 397px;
    width: 100%;
    position: relative;
    border-radius: 12px;
    object-fit: cover;
}

.agenda-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-weight: bold;
}

.page-template-page-speakers .agenda-carousel-btn {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
}

.agenda-carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8) !important;
    transform: translateY(-50%);
    box-shadow: none !important;
}

.page-template-page-speakers .agenda-carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8) !important;
    box-shadow: none !important;
}

.agenda-carousel-prev {
    left: 20px;
}

.agenda-carousel-next {
    right: 20px;
}

/* ===== MOBILE SPEAKERS SECTION ===== */

.speakers-section-mobile {
    display: none;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.speakers-mobile-container {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
}

.speakers-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.speaker-mobile-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.speaker-mobile-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.speaker-mobile-card:focus {
    outline: 2px solid #0065A4;
    outline-offset: 2px;
}

.speaker-mobile-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #E6F7FD;
}

.speaker-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-mobile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.speaker-mobile-name {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #0065A4;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speaker-mobile-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 16px;
    color: #004C84;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speaker-mobile-company {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    color: #666666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Detail Panel */
.speaker-mobile-detail-panel {
    width: 100%;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.speaker-mobile-detail-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #E6F7FD;
    margin-bottom: 12px;
}

.speaker-mobile-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-mobile-detail-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.speaker-mobile-detail-name {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #0065A4;
    margin: 0;
}

.speaker-mobile-detail-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    color: #004C84;
    margin: 0;
}

.speaker-mobile-detail-company {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    color: #666666;
    margin: 0;
}

.speaker-mobile-detail-bio {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #333333;
    margin: 8px 0 0 0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .page-template-page-speakers .all-speakers-section {
        width: 100%;
        margin: 0;
        padding: 0 16px 32px;
        box-sizing: border-box;
    }

    /* All Speakers container (Speakers page only) */
    .page-template-page-speakers .all-speakers-section .all-speakers-container {
        width: 100%;
        padding: 16px;
        gap: 32px;
        border-radius: 12px;
        background-color: #ffffff !important;
    }

    /* Generic frame-parent for other sections in mobile */
    .page-template-page-speakers .frame-parent {
        width: 100%;
        padding: 30px 15px;
        gap: 30px;
        border-radius: 12px;
    }

    .page-template-page-speakers .all-speakers-parent {
        gap: 16px;
    }

    .page-template-page-speakers .all-speakers {
        font-size: 24px;
        line-height: 30px;
    }

    .page-template-page-speakers .frame-child {
        display: none;
    }

    .page-template-page-speakers .navmenu-parent {
        gap: 16px;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .page-template-page-speakers .navmenu {
        padding: 0 8px;
        gap: 8px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        align-items: center;
        order: 2;
        width: 100%;
        height: 56px;
        min-height: 56px;
    }

    .page-template-page-speakers .search-parent {
        order: 1;
        width: 100%;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        gap: 20px;
        justify-content: space-between;
        flex: none;
    }

    .page-template-page-speakers .search {
        flex: 0 0 auto;
        width: 220px;
        height: 40px;
    }

    .page-template-page-speakers .searchbar {
        width: 180px;
        height: 40px;
        padding: 8px 12px;
        box-sizing: border-box;
    }

    .page-template-page-speakers .searchbar input {
        font-size: 12px;
        line-height: 18px;
    }

    .page-template-page-speakers .buttonicon2 {
        padding: 1px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    /* Simple magnifier icon for mobile search */
    .page-template-page-speakers .buttonicon2::before {
        content: "🔍";
        font-size: 20px;
        line-height: 1;
        color: #0065a4;
        display: block;
        width: 100%;
        text-align: center;
    }

    .page-template-page-speakers .of-210-results {
        font-size: 12px;
        line-height: 16px;
        font-weight: 500;
        white-space: nowrap;
        flex-shrink: 0;
        color: #000229;
    }

    .page-template-page-speakers .company-expertise-parent {
        justify-content: flex-start;
        min-width: 0;
        flex-shrink: 1;
        gap: 4px;
        font-size: 12px;
    }

    .page-template-page-speakers .navmenu .company-expertise-parent:nth-child(1),
    .page-template-page-speakers .navmenu .company-expertise-parent:nth-child(2) {
        width: 100%;
    }

    .page-template-page-speakers .filter-select {
        font-size: 12px;
        padding: 0 12px 0 0 !important;
        height: auto;
        appearance: none;
        -webkit-appearance: none;
        background-position: right 2px center !important;
        background-repeat: no-repeat;
        background-size: 8px;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: block;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    /* Bring the Region select closer to the first select */
    .page-template-page-speakers .company-expertise-parent+.company-expertise-parent {
        margin-left: 4px;
    }

    /* Hide labels for selects to avoid overflow; text lives inside select options */
    /* But show labels for checkboxes (Keynote) */
    .page-template-page-speakers .company-expertise-parent:not(:has(.keynote-toggle)) .company-expertise {
        display: none;
    }

    .page-template-page-speakers .company-expertise-parent .keynote-toggle+.company-expertise,
    .page-template-page-speakers .company-expertise-parent .company-expertise:has(+ .keynote-toggle),
    .page-template-page-speakers .company-expertise-parent label.company-expertise {
        display: block !important;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Checkbox styling on mobile */
    .keynote-toggle {
        width: 16px;
        height: 16px;
        margin: 0;
    }

    .page-template-page-speakers .all-speakers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .page-template-page-speakers .frame-wrapper {
        padding: 16px 0 0;
    }

    /* Aggressive refinements for narrow mobile screens (e.g. iPhone SE/Mini) */
    @media (max-width: 390px) {
        .page-template-page-speakers .all-speakers-section .all-speakers-container {
            padding: 16px 8px !important;
            /* Reduce container side padding */
        }

        .page-template-page-speakers .navmenu {
            padding: 0 4px 0 8px !important;
            /* Minimized inner padding */
            gap: 4px !important;
            /* Minimized gap between filters */
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        }

        .page-template-page-speakers .company-expertise-parent {
            gap: 2px !important;
            /* Tighten internal label/select gap */
        }

        .page-template-page-speakers .company-expertise-parent+.company-expertise-parent {
            margin-left: 0 !important;
            /* Remove extra margin */
        }

        .page-template-page-speakers .filter-select {
            font-size: 11px !important;
            /* Slightly smaller font */
            padding-right: 10px !important;
            /* Even tighter arrow */
            background-position: right 1px center !important;
        }

        .page-template-page-speakers .company-expertise-parent .keynote-toggle+.company-expertise,
        .page-template-page-speakers .company-expertise-parent label.company-expertise {
            font-size: 11px !important;
            /* Smaller font for Keynote label */
        }
    }

    .page-template-page-speakers .jessika-roswall {
        font-size: 18px;
        line-height: 23px;
    }

    .page-template-page-speakers .eu-commissioner-for {
        font-size: 12px;
        line-height: 18px;
    }

    .page-template-page-speakers .european-commission {
        font-size: 12px;
        line-height: 18px;
        color: #090a0a;
    }

    .page-template-page-speakers .navmenu-wrapper {
        padding: 0;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-template-page-speakers .pagination-scroll-container {
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        width: 100%;
    }

    .page-template-page-speakers .navmenu2 {
        padding: 10px 16px;
        gap: 20px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .page-template-page-speakers .agenda-section {
        padding: 32px 0;
        box-sizing: border-box;
        margin-top: 0;
    }

    .page-template-page-speakers .agenda-frame-group {
        flex-direction: column;
        gap: 32px;
        width: 100%;
        padding: 0 16px;
    }

    .page-template-page-speakers .agenda-frame-container {
        width: 100%;
        gap: 25px;
        padding: 0 16px;
    }

    .page-template-page-speakers .agenda-title {
        font-size: 32px;
        line-height: 40px;
        font-weight: 700;
    }

    .page-template-page-speakers .agenda-content-parent {
        gap: 16px;
    }

    .page-template-page-speakers .agenda-theme-title {
        font-size: 18px;
        line-height: 23px;
        font-weight: 600;
    }

    .page-template-page-speakers .agenda-description {
        font-size: 12px;
        line-height: 18px;
    }

    .page-template-page-speakers .agenda-button-parent {
        gap: 20px;
        width: 100%;
    }

    .page-template-page-speakers .agenda-button,
    .page-template-page-speakers .agenda-button-dark {
        flex: 0 0 auto;
        width: auto;
    }

    .page-template-page-speakers .agenda-carousel-container {
        height: 290px;
    }

    .page-template-page-speakers .agenda-carousel-wrapper {
        border-radius: 12px;
    }

    .page-template-page-speakers .frame-icon {
        height: 290px;
        width: 100%;
        object-fit: cover;
    }

    .page-template-page-speakers .agenda-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
        background-color: rgba(0, 0, 0, 0.5) !important;
        color: #fff !important;
        left: 15px !important;
        right: auto !important;
    }

    .page-template-page-speakers .agenda-carousel-btn:hover {
        background-color: rgba(0, 0, 0, 0.7) !important;
    }

    .page-template-page-speakers .agenda-carousel-next {
        left: auto !important;
        right: 15px !important;
    }

    /* Detail Panel Mobile Styles */
    .featured-speaker-detail-panel {
        padding: 20px;
        gap: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .featured-speaker-detail-panel {
        display: flex;
        flex-direction: column;
    }

    .detail-top-row {
        display: contents;
        /* allow children to flow with detail-bio */
        width: 100%;
    }

    /* reorder elements as: photo, info, about, speaking (via order) */
    .detail-top-row .detail-photo {
        order: 1 !important;
        width: 100%;
        max-width: 320px;
        min-width: 0;
        height: auto;
        margin: 0 auto;
        border-radius: 12px;
        position: relative;
    }

    .detail-top-row .detail-photo img {
        width: 100%;
        height: auto;
        max-height: 320px;
        object-fit: cover;
        border-radius: 12px;
    }

    .detail-top-row .detail-info-card {
        order: 2 !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        height: auto;
        background-color: rgba(230, 247, 253, 0.5);
        padding: 20px;
        gap: 20px;
        border-radius: 12px;
    }

    .detail-bio {
        order: 3;
        padding-top: 20px;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Featured speakers mobile: no extra space below "Read more" */
    .page-template-page-speakers .featured-speaker-detail-panel .detail-bio {
        padding-bottom: 16px !important;
        margin-bottom: 0 !important;
    }

    .page-template-page-speakers .featured-speaker-detail-panel .detail-bio .read-more-link {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        display: flex;
        align-items: center;
    }

    .detail-location-footer {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .detail-top-row .detail-speaking {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        order: 4;
        /* after About */
        margin-top: 16px;
        gap: 15px;
    }

    .page-template-page-speakers .featured-speaker-detail-panel .detail-top-row .detail-speaking h4 {
        margin: 0;
    }

    .page-template-page-speakers .featured-speaker-detail-panel .detail-top-row .speaking-content div {
        padding: 16px;
        border-radius: 12px;
        background-color: rgba(230, 247, 253, 0.5);
    }

    .detail-close-btn.close-in-photo {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 12px;
        background: #e6f7fd;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
    }

}

/* ========================================
   LARGE SCREEN ADJUSTMENTS (from DreamHost)
   Additional responsive styles for screens 1440px+
   ======================================== */

/* Base styles - apply to all screen sizes */
.page-template-page-speakers .hero-left-content {
    padding-top: 0;
    max-width: 560px;
    width: 100%;
}

/* Large screens - 1440px */
@media (min-width:1440px) {

    .featured-speakers-section,
    .speakers-title-section {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .featured-speakers-section .container,
    .all-speakers-section .frame-parent,
    .speakers-title-section {
        max-width: 1440px !important;
    }
}

/* Extra large screens - 1441px */
@media (min-width:1441px) {
    .page-template-page-speakers .hero-left-content {
        padding-left: 0;
    }

    .page-template-page-speakers .confirmed-speakers-card {
        margin-right: 0;
    }
}

/* Ultra wide screens - 2160px */
@media (min-width: 2160px) {
    .page-template-page-speakers .hero-left-content {
        padding-left: 0;
    }

    .page-template-page-speakers .confirmed-speakers-card {
        margin-right: 0;
    }
}

/* Detail modal adjustments for smaller large screens */
@media (max-width: 1441px) {
    .detail-top-row .detail-info-card {
        min-width: unset !important;
        max-width: unset !important;
    }
}
