* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fcfbfe;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}
.speaker-detail-container {
    max-width: 760px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(21, 3, 40, 0.05);
    border: 1px solid rgba(21, 3, 40, 0.04);
    overflow: hidden;
    padding: 30px;
}
/* Header section */
.speaker-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 25px;
}
.speaker-photo-wrap {
    width: 140px;
    height: 175px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}
.speaker-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Anchors the crop to the top of the photo to avoid cropping heads */
}
.speaker-meta {
    flex-grow: 1;
}
.speaker-meta h1 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1a0a1e;
    margin-bottom: 8px;
}
.speaker-meta .position {
    font-size: 15px;
    font-weight: 600;
    color: #fc097c;
    margin-bottom: 6px;
}
.speaker-meta .org, .speaker-meta .nationality {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.4;
}
.speaker-meta .nationality {
    margin-bottom: 12px;
}
.speaker-meta .contact {
    font-size: 13px;
}
.speaker-meta .contact a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}
.speaker-meta .contact a:hover {
    color: #fc097c;
    text-decoration: underline;
}

/* Section heading */
.section-bar-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fc097c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fc097c;
}

/* CV Content Styles */
.cv-section {
    margin-bottom: 25px;
}
.cv-section h3 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a0a1e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #fc097c;
}
.cv-section p, .cv-section li {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}
.cv-section ul {
    list-style: none;
    padding-left: 0;
}
.cv-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}
.cv-section ul li::before {
    content: "•";
    color: #fc097c;
    font-size: 16px;
    position: absolute;
    left: 5px;
    top: -1px;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    gap: 5px;
}
.tab-btn {
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
}
.tab-btn:hover {
    color: #fc097c;
}
.tab-btn.active {
    color: #fc097c;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #fc097c;
}

/* Tab Contents */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Abstract Content Styles */
.abstract-container {
    padding: 5px 0;
}
.abstract-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a0a1e;
    line-height: 1.4;
    margin-bottom: 20px;
    background: rgba(252, 9, 124, 0.03);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #fc097c;
}
.abstract-authors {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.abstract-affiliations {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
    font-style: italic;
}
.abstract-body {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    text-align: justify;
}

@media (max-width: 576px) {
    .speaker-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .speaker-photo-wrap {
        margin: 0 auto;
    }
    .tabs-nav {
        justify-content: center;
    }
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}
