/* ==========================================================================
   1. Design Tokens & CSS Custom Properties
   ========================================================================== */
@font-face {
    font-family: 'DejaVu Sans';
    src: url('../font/DejaVuSans.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 500;
    font-display: swap;
}

@font-face {
    font-family: 'DejaVu Sans';
    src: url('../font/DejaVuSans-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600 900;
    font-display: swap;
}

@font-face {
    font-family: 'DejaVu Sans';
    src: url('../font/DejaVuSans-Oblique.ttf') format('truetype');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --color-bg-primary: #1e4579;
    --color-bg-deep: #14335c;
    --color-bg-darkest: #081b33;
    
    --color-surface-card: #122b52;
    --color-surface-elevated: #163666;
    --color-surface-hover: #1b427d;
    --color-border-card: rgba(255, 255, 255, 0.16);
    --color-border-subtle: rgba(255, 255, 255, 0.08);
    
    --color-header-bg: #ffffff;
    --color-header-text: #1e293b;
    --color-header-link-hover: #1d4ed8;
    
    --color-gold: #e5b642;
    --color-gold-hover: #f5cf6d;
    --color-gold-deep: #c59724;
    
    --color-cyan: #00d2ff;
    --color-cyan-hover: #38bdf8;
    
    --color-text-white: #ffffff;
    --color-text-light: #f1f5f9;
    --color-text-muted: #94a3b8;
    
    --color-footer-bg: #081b33;
    --ribbon-opacity: 0.5;
    
    --font-sans: 'DejaVu Sans', sans-serif;
    --font-mono: var(--font-sans);
    
    --header-height: 4.5rem;
    --container-max-width: 1280px;
    --container-gutter: 24px;
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.875rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35);
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
}

/* ==========================================================================
   2. Reset & Base Elements
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    font-size: 100%;
    line-height: 1.6;
    color: var(--color-text-light);
    background-color: var(--color-bg-deep);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 10%, #295796 0%, #1a3e6f 60%, #112a4d 100%);
    background-attachment: fixed;
}

body.page-home {
    background: #4975a9;
}

body.page-about {
    --page-art: url('../images/program_bg.png?v=1794223880');
    --page-art-ratio: 0.3776;
    --page-surface: linear-gradient(180deg, #6794cb 0%, #2e4d7e 100%);
}

body.page-program {
    --page-art: url('../images/program_bg.png?v=1794223880');
    --page-art-ratio: 0.3776;
    --page-surface: linear-gradient(180deg, #6794cb 260px, #1d3c6d 100%);
}

body.page-speakers {
    --page-art: url('../images/speakers_bg.png?v=1794223881');
    --page-art-ratio: 0.3330;
    --page-surface: linear-gradient(160deg, #08264f 55%, #173b6c 100%);
}

body.page-news {
    --page-art: url('../images/news_bg.png?v=1794223881');
    --page-art-ratio: 0.7619;
    --page-surface: linear-gradient(180deg, #679fdf 260px, #134b82 100%);
}

body.page-media {
    --page-art: url('../images/media_bg.png?v=1794223881');
    --page-art-ratio: 0.3412;
    --page-surface: linear-gradient(180deg, #679fdf 260px, #23588d 100%);
}

body.page-previous-forums {
    --page-art: url('../images/program_bg.png?v=1794223880');
    --page-art-ratio: 0.3776;
    --page-surface: linear-gradient(180deg, #6794cb 260px, #1d3c6d 100%);
}

/* Reserve the artwork's full scaled height above the footer. */
:is(.page-about, .page-program, .page-speakers, .page-news, .page-media, .page-previous-forums) > main {
    position: relative;
    isolation: isolate;
    padding-bottom: calc(100vw * var(--page-art-ratio) + 32px);
    background-image: var(--page-surface, radial-gradient(circle at 50% 10%, #295796 0%, #1a3e6f 60%, #112a4d 100%));
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
}
.page-news > main {
    padding-bottom: calc(45vw * var(--page-art-ratio) + 32px);
}

:is(.page-about, .page-program, .page-speakers, .page-news, .page-media, .page-previous-forums) > main::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--page-art);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    opacity: var(--ribbon-opacity, 0.5);
    z-index: -1;
    pointer-events: none;
}

main {
    flex: 1 0 auto;
    outline: none;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
}

a {
    color: var(--color-cyan-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

a:hover, a:focus {
    color: var(--color-gold);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-white);
    font-weight: 700;
    line-height: 1.25;
}

/* Accessible Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background-color: var(--color-gold);
    color: #081b33;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-link:hover, .skip-link:focus {
    top: 1rem;
    outline: 3px solid #000000;
    color: var(--color-bg-primary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

/* ==========================================================================
   3. Top White Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 2px solid #003366;
    height: 86px;
}

.site-header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: #003366;
    transition: opacity 0.15s ease-in-out;
}

.brand-link:hover,
.brand-link:focus-visible {
    opacity: 0.82;
}

.brand-link-forum {
    flex-shrink: 1;
    min-width: 0;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logos img {
    flex-shrink: 0;
}

.logo-35th {
    height: 38px;
    width: auto;
    display: block;
}

.logo-ais {
    height: 38px;
    width: auto;
    display: block;
    margin-left: 0.25rem;
}

.brand-forum-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-left: 3rem;
    white-space: nowrap;
}

.forum-line-1 {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #003366;
    letter-spacing: 0.04em;
}

.forum-line-2 {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #003366;
    letter-spacing: 0.04em;
}

/* Navigation Links */
.site-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.35rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    color: #003366;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover, .nav-link:focus {
    color: #001f42;
    background-color: rgba(0, 51, 102, 0.10);
}

.nav-link.active {
    color: #003366;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #0f172a;
}

/* ==========================================================================
   4. Global Hero Sections
   ========================================================================== */
.hero-section {
    position: relative;
    height: 700px;
    padding-top: 112px;
    background: #071b3c url('../images/index_hero_bg.jpg?v=1794208233') no-repeat center / cover;
}

.hero-container {
    width: min(800px, calc(100% - 48px));
    margin: 0 auto;
    container-type: inline-size;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-emblem-lockup {
    position: relative;
    width: 100%;
    max-width: 711px;
}

.hero-emblem-img {
    width: 100%;
    max-width: 711px;
    height: auto;
    display: block;
}

.hero-details {
    position: relative;
    padding-top: 52px;
}

.hero-title {
    margin: 0;
    font-weight: 400;
    line-height: 1.15;
}

.hero-super {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 4px;
}

.hero-main-title {
    display: block;
    font-size: 30px;
    white-space: nowrap;
}

.hero-theme-sub {
    margin-top: 5px;
    color: #ffe45e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.hero-event-info-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-top: 24px;
    margin-left: clamp(0px, 29.66cqw, 210px);
    text-align: left;
}

.hero-info-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.9375rem;
    color: #ffffff;
}

.hero-info-icon {
    width: 19px;
    height: auto;
    flex-shrink: 0;
    margin-top: calc(0.5em);
    transform: translateY(-50%);
}

.hero-date-val {
    font-weight: 700;
    font-size: 1rem;
}

.hero-venue-val {
    font-weight: 400;
    line-height: 1.3;
    font-size: 0.9375rem;
}

.hero-section .hero-info-icon {
    width: 20px;
    max-height: 27px;
    object-fit: contain;
}

.hero-section .hero-date-val,
.hero-section .hero-venue-val {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

/* Banner heights and title offsets are independent of their text. */
.page-hero {
    position: relative;
    height: 260px;
    padding-top: 64px;
    text-align: left;
    background-color: #0c203d;
}

.page-about .page-hero {
    background: url('../images/about_hero_bg.jpg?v=1794208233') no-repeat center / cover;
}

.page-program .page-hero {
    background: url('../images/program_hero_bg.jpg?v=1794208233') no-repeat center / cover;
}

.page-speakers .page-hero {
    background: url('../images/speakers_hero_bg.jpg?v=1794208233') no-repeat center / cover;
}

.page-news .page-hero {
    background: url('../images/news_hero_bg.jpg?v=1794208233') no-repeat center / cover;
}

.page-media .page-hero {
    background: url('../images/media_hero_bg.jpg?v=1794208233') no-repeat center / cover;
}

.page-previous-forums .page-hero {
    background: url('../images/about_hero_bg.jpg?v=1794208233') no-repeat center / cover;
}

.page-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    color: #ffffff;
}

/* ==========================================================================
   5. Content Cards & Layout Utilities
   ========================================================================== */
.content-container,
.site-header-container,
.footer-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-gutter);
    padding-right: var(--container-gutter);
}

.section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

/* Section Title with Gold Left Bar (Used on About Page) */
.section-title-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: left;
}

.title-bar-accent {
    width: 6px;
    height: 1.75rem;
    background-color: var(--color-gold);
    border-radius: 3px;
    flex-shrink: 0;
}

/* Floating Abstract Card on Homepage */
.section-abstract {
    background-color: #6794cb;
}

.section-abstract > .content-container {
    display: flow-root;
}

.abstract-card {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    padding: 40px 64px 45px;
    background: linear-gradient(180deg, #4e78b0 0%, #203c6c 100%);
    border-radius: 0;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
}

.abstract-card p {
    font-size: 18px;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 32px;
    text-align: justify;
}

.abstract-card p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   6. Forum Highlights
   ========================================================================== */
.section-highlights {
    padding: 65px 0 0;
    background: linear-gradient(180deg, #6794cb, #557fb8);
}

.section-highlights .section-title {
    font-size: 30px;
    margin-bottom: 60px;
}

.highlights-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
}

.highlight-node {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight-circle-icon {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.highlight-icon-img {
    max-width: 44px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.highlight-label {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    max-width: 15rem;
}

/* ==========================================================================
   7. Speaker Cards & Grid
   ========================================================================== */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 1.25rem;
}

.speaker-card {
    background-color: var(--color-surface-card);
    border: 1px solid var(--color-border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.speaker-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-md);
}

.speaker-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.speaker-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #0c203d;
}

.speaker-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-card-img {
    transform: scale(1.04);
}

/* Gray Placeholder Box for Speakers without Photo */
.speaker-placeholder-box {
    width: 100%;
    height: 100%;
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.speaker-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background-color: rgba(8, 27, 51, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.speaker-card-body {
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.speaker-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-text-white);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.speaker-card-cname {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gold);
}

.speaker-card-title {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.speaker-card-institution {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: auto;
    font-weight: 500;
}

/* Non-clickable speaker cards without biography */
.speaker-card.no-bio,
.speaker-card.no-bio .speaker-card-link,
.speaker-card.no-bio .speaker-card-media,
.speaker-card.no-bio .speaker-card-img,
.speaker-card.no-bio .speaker-placeholder-box,
.speaker-card.no-bio .speaker-card-body,
.speaker-card.no-bio .speaker-card-name,
.speaker-card.no-bio .speaker-card-title,
.speaker-card.no-bio .speaker-directory-role {
    cursor: default;
}

/* Homepage portraits follow the supplied six-column layout. */
.home-program-sections {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #557fb8 0%, #315584 38%, #102c56 82%);
}

.home-program-sections::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/index_bg.png?v=1794223880') no-repeat center bottom / 100% auto;
    opacity: var(--ribbon-opacity, 0.5);
    z-index: -1;
    pointer-events: none;
}

.home-community-sections {
    background: linear-gradient(180deg, #203f6c 0%, #4975a9 78%);
}

.page-home .section-featured-speakers,
.page-home .section-committee {
    padding: 65px 0 100px;
}

.page-home .section-featured-speakers .section-title,
.page-home .section-panel-previews .section-title,
.page-home .section-committee .section-title,
.page-home .section-partners .section-title {
    font-size: 30px;
    margin-bottom: 42px;
}

.page-home .speakers-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 24px;
}

.section-featured-speakers .speakers-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 48px;
}

.section-committee .speakers-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 40px;
}

.page-home .speaker-card {
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.page-home .speaker-card:hover {
    transform: none;
    box-shadow: none;
}

.page-home .speaker-card-media {
    aspect-ratio: 0.89;
    background: #003b73;
    border-radius: 5px;
    overflow: hidden;
}

.page-home .speaker-card-link:hover .speaker-card-media,
.page-home .speaker-card-link:focus-visible .speaker-card-media {
    outline: 2px solid #87baff;
    outline-offset: 3px;
}

.page-home .speaker-card-body {
    padding: 12px 0 0;
}

.page-home .speaker-card-body.sr-only {
    padding: 0;
}

.page-home .speaker-card-name {
    font-size: 14px;
    line-height: 1.2;
    color: #8bc0ff;
    margin-bottom: 4px;
}

.page-home .speaker-card-title {
    font-size: 12px;
    line-height: 1.25;
    margin: 0;
    color: #ffffff;
}

.page-home .section-panel-previews {
    padding: 96px 0 64px;
}

/* ==========================================================================
   8. Thematic Panels (Homepage Container Card)
   ========================================================================== */
.panels-container-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 88px 80px 144px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.panels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.panel-card {
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.panel-card:hover {
    transform: translateY(-6px);
}

.panel-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.panel-card-media {
    width: 100%;
    aspect-ratio: 225 / 279;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: #0c213f;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.panel-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.panel-card:hover .panel-card-img {
    transform: scale(1.03);
}

.panel-card-caption {
    padding-top: 12px;
    color: #ffffff;
    line-height: 1.2;
}

.panel-card-number,
.panel-card-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.panel-card-summary {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
}

/* Organizing Institutional Partners */
.page-home .section-partners {
    padding: 40px 0 80px;
}

.partners-dark-box {
    padding: 0;
    width: 100%;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2.25rem;
    width: 100%;
    --partner-logo-scale: 0.44;
}

.partners-grid.partners-grid-single {
    justify-content: center;
}

.partner-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.partner-separator {
    display: block;
    width: 2px;
    height: 54px;
    background-color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.partners-grid-single .partner-logo-box {
    margin-inline: auto;
}

.partner-logo-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-box img {
    height: calc(var(--partner-logo-h, 116px) * var(--partner-logo-scale, 0.44));
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-inline: auto;
    display: block;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.partner-logo-box:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

/* ==========================================================================
   9. About Page Components
   ========================================================================== */
.section-about-body {
    padding-top: 14px;
    color: #ffffff;
    font-size: clamp(12px, 1.45vw, 20px);
    font-weight: 400;
    line-height: 1.28;
}

.section-about-part .section-title-bar {
    position: relative;
    width: 70%;
    min-height: 3.15em;
    gap: 0;
    margin-bottom: 0.85em;
    padding: 0.55em 0.9em;
    background: none;
    font-size: inherit;
}

.section-about-part .section-title-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(103, 164, 224, 0.9), rgba(17, 71, 127, 0.8));
    mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
}

.section-about-part .section-title-bar h2 {
    position: relative;
    font-size: 1.75em;
    line-height: 1.2;
}

.section-about-part .title-bar-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    height: auto;
    border-radius: 0;
    background: #d5ac46;
}

.about-message-card {
    position: relative;
    display: grid;
    grid-template-columns: 70% 19.2%;
    column-gap: 5.2%;
    align-items: start;
    min-height: 20.7em;
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
}

.about-message-card::after,
.section-about-part:not(:first-child)::before {
    content: '';
    display: block;
    width: 70%;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}

.about-message-card::after {
    position: absolute;
    bottom: 0;
    left: 0;
}

.about-message-card:last-child {
    min-height: 23.2em;
    margin-bottom: 1.9em;
}

.about-message-body p,
.about-info-card p {
    text-align: justify;
    color: #ffffff;
    margin-bottom: 1.35em;
}

.about-author-photo-side {
    text-align: left;
}

.about-author-photo-box {
    width: 100%;
    aspect-ratio: 146 / 168;
    margin-bottom: 0.65em;
    border-radius: 6px;
    background: #e6e6e6;
}

.about-author-photo-box a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.about-author-photo-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
}

.about-author-caption {
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
}

.section-about-part:not(:first-child)::before {
    margin-bottom: 1.7em;
}

/* The final organizer divider also separates the About IFIE section. */
.section-about-part:nth-child(2)::before {
    display: none;
}

.about-info-card {
    width: 70%;
    margin-bottom: 2.25em;
}

.about-info-card p {
    margin-bottom: 1.35em;
}

.about-info-card p:last-child,
.section-about-part:last-child .about-info-card {
    margin-bottom: 0;
}

/* ==========================================================================
   10. Program Page Components
   ========================================================================== */
.section-program-body {
    padding-top: 22px;
}

.program-venue-bar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 24px;
    margin-bottom: 16px;
}

.program-venue-details {
    display: grid;
    gap: 12px;
    font-size: clamp(13px, 1.45vw, 20px);
    font-weight: 700;
    line-height: 1.3;
}

.program-venue-details .hero-info-line {
    align-items: flex-start;
    gap: 12px;
}

.program-info-icon {
    width: 28px;
    max-height: 36px;
    object-fit: contain;
    flex: 0 0 28px;
    margin-top: calc(0.5em);
    transform: translateY(-50%);
}

.program-download-btn-wrap {
    flex-shrink: 0;
}

.program-download-btn-wrap .btn {
    padding: 10px 18px;
    border: 0;
    border-radius: 5px;
    background: #00285d;
    color: #ffffff;
    font-size: 13px;
}

.program-period {
    margin-bottom: 28px;
}

.program-period:last-child {
    margin-bottom: 0;
}

.program-period-bar {
    padding: 12px 20px;
    background: #2452a2;
    color: #ffffff;
    font-size: clamp(15px, 1.6vw, 22px);
    font-weight: 800;
    line-height: 1.3;
}

.program-period-afternoon .program-period-bar {
    background: #003b73;
}

.program-sessions {
    padding: 16px 0 40px;
    background: #dce5ef;
    color: #142e4d;
}

.program-session {
    display: grid;
    grid-template-columns: 14% minmax(0, 1fr);
    scroll-margin-top: 100px;
}

.program-session-time {
    padding: 16px 12px 12px 18px;
    color: #b57a09;
    font-size: clamp(12px, 1.1vw, 14px);
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.program-session-content {
    min-width: 0;
    padding: 14px 24px 18px 16px;
    border-top: 11px solid #eef3f8;
}

.program-session:first-child .program-session-content {
    border-top: none;
    padding-top: 16px;
}

.session-title-text {
    margin: 0 0 8px 0;
    color: #142e4d;
    font-size: clamp(14px, 1.4vw, 17.5px);
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.session-subtitle {
    margin: 0 0 6px 0;
    color: #205493;
    font-size: clamp(13px, 1.25vw, 16px);
    font-weight: 700;
    line-height: 1.35;
}

.session-desc {
    margin: 0 0 10px 0;
    color: #34649a;
    font-size: clamp(11.5px, 1.05vw, 13.5px);
    font-weight: 400;
    line-height: 1.4;
}

.program-participant {
    display: grid;
    grid-template-columns: 18% 34% minmax(0, 1fr);
    gap: 0 12px;
    margin-top: 6px;
    align-items: baseline;
    font-size: clamp(11px, 1.02vw, 13.5px);
    line-height: 1.4;
}

.program-participant-role {
    color: #b57a09;
    font-weight: 700;
}

.program-speaker-name {
    color: #142e4d;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.program-speaker-name:hover,
a.program-speaker-name:focus-visible {
    color: #205493;
    text-decoration: underline;
}

span.program-speaker-name {
    cursor: default;
}

.program-participant-affiliation {
    color: #425a75;
    font-weight: 400;
    font-size: clamp(10.5px, 0.96vw, 13px);
    line-height: 1.35;
}

.program-session-break .program-session-content {
    padding-bottom: 22px;
}

.program-lunch-block {
    margin: 20px 0 28px;
    background: #dce5ef;
    color: #142e4d;
}

.program-lunch-block .program-session-content {
    border-top: none;
    padding: 16px 24px 16px 16px;
}

.program-lunch-block .program-session-time {
    padding: 16px 12px 16px 18px;
}

.program-session-subheading {
    margin-top: 14px;
    margin-bottom: 6px;
    padding-top: 6px;
}

.session-subheading-title {
    margin: 0 0 4px 0;
    color: #205493;
    font-size: clamp(13px, 1.2vw, 15.5px);
    font-weight: 700;
}

.session-subheading-desc {
    margin: 0 0 8px 0;
    color: #34649a;
    font-size: clamp(11.5px, 1.05vw, 13.5px);
    font-weight: 400;
    line-height: 1.4;
}

/* ==========================================================================
   11. Speakers Directory Page Components
   ========================================================================== */
.section-speakers-body {
    padding-top: 28px;
}

.speakers-jump-nav-bar {
    display: flex;
    justify-content: flex-start;
    gap: 12px 28px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.speakers-jump-tab {
    padding-bottom: 7px;
    border-bottom: 3px solid transparent;
    color: #adbbce;
    font-size: clamp(12px, 1.3vw, 17px);
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.speakers-jump-tab.active,
.speakers-jump-tab:hover,
.speakers-jump-tab:focus-visible {
    border-bottom-color: #ffffff;
    color: #ffffff;
}

.speaker-category-section {
    margin-bottom: 56px;
    scroll-margin-top: 110px;
}

.speaker-category-section[hidden] {
    display: none;
}

.speaker-category-title {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: clamp(22px, 2.5vw, 32px);
}

.panel-speaker-block {
    margin-bottom: 48px;
}

.panel-speaker-title {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: clamp(18px, 2.1vw, 27px);
}

.page-speakers .speakers-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 18px;
}

.page-speakers .speaker-card {
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
}

.page-speakers .speaker-card:hover {
    transform: none;
    box-shadow: none;
}

.page-speakers .speaker-card-media {
    aspect-ratio: 0.89;
    border-radius: 5px;
    overflow: hidden;
    background: #e6e6e6;
}

.page-speakers .speaker-placeholder-box {
    background: #e6e6e6;
}

.page-speakers .speaker-card-link:hover .speaker-card-media,
.page-speakers .speaker-card-link:focus-visible .speaker-card-media {
    outline: 2px solid #87baff;
    outline-offset: 3px;
}

/* Panel Moderator Highlight on Speakers Page */
.page-speakers .speaker-card--moderator .speaker-directory-role {
    color: var(--color-gold);
    font-weight: 600;
}

.page-speakers .speaker-card--moderator .speaker-card-link:hover .speaker-card-media,
.page-speakers .speaker-card--moderator .speaker-card-link:focus-visible .speaker-card-media,
.page-speakers .speaker-card--moderator:hover .speaker-card-media {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.page-speakers .speaker-card-body {
    padding: 14px 0 0;
}

.page-speakers .speaker-card-name {
    margin-bottom: 4px;
    color: #77b5ff;
    font-size: clamp(12px, 1.3vw, 17px);
    line-height: 1.3;
}

.page-speakers .speaker-card-title,
.speaker-directory-role {
    margin: 0;
    color: #c1cddd;
    font-size: clamp(11px, 1.08vw, 14px);
    font-weight: 500;
    line-height: 1.45;
}

.page-speakers .speaker-card-link:focus-visible {
    outline-offset: 5px;
}

/* ==========================================================================
   12. News & Media Page Components
   ========================================================================== */
.section-news-body,
.section-media-body {
    padding-top: 44px;
}

.news-media-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}

.news-articles-column {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    padding-right: clamp(24px, 3.5vw, 48px);
}

.news-column-title,
.gallery-column-title,
.news-media-heading {
    margin: 0 0 28px 0;
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.news-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.news-article-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px 20px;
    align-items: start;
}

.news-thumb-box {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: #a6a6a6;
    flex-shrink: 0;
}

.news-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-article-body {
    min-width: 0;
}

.news-card-title {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 700;
    line-height: 1.35;
}

.news-card-date {
    display: block;
    margin-bottom: 8px;
    color: #c4d5ea;
    font-size: 13px;
    font-weight: 400;
}

.news-card-summary {
    display: -webkit-box;
    margin: 0 0 12px 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.news-article-card .btn-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.news-article-card .btn-link:hover,
.news-article-card .btn-link:focus-visible {
    text-decoration: underline;
    color: var(--color-cyan-hover, #64b5f6);
}

.gallery-column {
    min-width: 0;
}

.gallery-column-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
}

.gallery-column-header .gallery-column-title {
    margin: 0;
}

.gallery-view-all-link {
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.gallery-view-all-link:hover,
.gallery-view-all-link:focus-visible {
    text-decoration: underline;
    color: var(--color-cyan-hover, #64b5f6);
}

.gallery-3x2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
}

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 18px;
}

.gallery-photo-box {
    aspect-ratio: 1.5;
    border-radius: 6px;
    overflow: hidden;
    background: #b3b3b3;
    position: relative;
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.gallery-link:hover .gallery-thumb-img,
.gallery-link:focus-visible .gallery-thumb-img {
    transform: scale(1.04);
}

.gallery-placeholder-card {
    width: 100%;
    height: 100%;
    background: #b3b3b3;
}

@media (max-width: 1000px) {
    .program-participant {
        grid-template-columns: 17% 32% minmax(0, 1fr);
    }
    .program-info-icon {
        width: 22px;
        flex-basis: 22px;
    }
    .program-download-btn-wrap .btn {
        font-size: 11px;
        padding: 9px 13px;
    }
    .speakers-jump-nav-bar {
        gap: 10px 22px;
    }
    .news-article-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    :root {
        --container-gutter: 20px;
    }

    .section-program-body,
    .section-speakers-body,
    .section-news-body,
    .section-media-body {
        padding-top: 24px;
    }
    .program-venue-bar {
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 24px;
    }
    .program-venue-details {
        font-size: 14px;
    }
    .program-period-bar {
        padding: 12px;
        font-size: 16px;
    }
    .program-sessions {
        padding: 10px 0 24px;
    }
    .program-session {
        grid-template-columns: 86px minmax(0, 1fr);
    }
    .program-session-time {
        padding: 17px 5px 5px;
        font-size: 10px;
    }
    .program-session-content {
        padding: 8px 10px 18px;
        border-top-width: 8px;
    }
    .session-title-text {
        font-size: 13px;
    }
    .session-desc {
        font-size: 11px;
    }
    .program-participant {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        margin-top: 14px;
        font-size: 12px;
    }
    .program-participant-role:empty {
        display: none;
    }
    .page-speakers .speakers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px 16px;
    }
    .speaker-category-section,
    .panel-speaker-block {
        margin-bottom: 40px;
    }
    .speakers-jump-nav-bar {
        gap: 8px 18px;
    }
    .news-article-card {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 32px;
    }
    .news-card-title {
        margin-bottom: 8px;
    }
    .news-card-date,
    .news-card-summary,
    .news-article-card .btn-link {
        font-size: 12px;
    }
    .news-card-summary {
        margin-bottom: 10px;
        -webkit-line-clamp: 3;
    }
    .event-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .page-speakers .speakers-grid,
    .event-gallery-grid,
    .gallery-3x2-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .news-article-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}

/* ==========================================================================
   12b. Previous Forums Page Components
   ========================================================================== */
.section-previous-forums-body {
    padding-top: 48px;
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
}

.poster-showcase-centered {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.poster-download-frame {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0d1e38;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.poster-download-frame:hover,
.poster-download-frame:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.52);
    border-color: var(--color-gold, #dfb260);
    outline: none;
}

.poster-download-frame:focus-visible {
    outline: 3px solid var(--color-gold, #dfb260);
    outline-offset: 4px;
}

.poster-preview-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    transition: filter 0.25s ease;
}

.poster-download-frame:hover .poster-preview-img {
    filter: brightness(0.96);
}

.poster-download-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(8, 26, 53, 0.95) 0%, rgba(4, 15, 31, 0.98) 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, color 0.2s ease;
}

.poster-download-frame:hover .poster-download-hint,
.poster-download-frame:focus-visible .poster-download-hint {
    background: #072044;
    color: var(--color-gold, #dfb260);
}

@media (max-width: 640px) {
    .section-previous-forums-body {
        padding-top: 24px;
        padding-bottom: 48px;
    }
    .poster-showcase-centered {
        max-width: 100%;
    }
    .poster-download-hint {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ==========================================================================
   13. Modal Dialog (Bio Popup & Lightbox)
   ========================================================================== */
.site-dialog {
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    background-color: #122b52;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    margin: auto;
    padding: 0;
    max-height: 85vh;
    overflow: hidden;
}

.site-dialog::backdrop {
    background-color: rgba(8, 27, 51, 0.85);
    backdrop-filter: blur(6px);
}

/* Discrete transitions keep native dialogs and their backdrops in the top
   layer until the exit finishes, without delaying focus or URL handling. */
@supports (transition-behavior: allow-discrete) {
    .site-dialog {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
        transition:
            opacity 170ms ease,
            transform 170ms ease,
            display 170ms allow-discrete,
            overlay 170ms allow-discrete;
    }

    .site-dialog[open] {
        opacity: 1;
        transform: translateY(0) scale(1);
        transition-duration: 240ms;
        transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }

    .site-dialog::backdrop {
        background-color: rgba(8, 27, 51, 0);
        backdrop-filter: blur(0);
        transition:
            background-color 170ms ease,
            backdrop-filter 170ms ease,
            display 170ms allow-discrete,
            overlay 170ms allow-discrete;
    }

    .site-dialog[open]::backdrop {
        background-color: rgba(8, 27, 51, 0.85);
        backdrop-filter: blur(6px);
        transition-duration: 240ms;
    }

    @starting-style {
        .site-dialog[open] {
            opacity: 0;
            transform: translateY(12px) scale(0.98);
        }

        .site-dialog[open]::backdrop {
            background-color: rgba(8, 27, 51, 0);
            backdrop-filter: blur(0);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-dialog,
    .site-dialog::backdrop {
        transition: none;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

.wechat-dialog {
    width: min(380px, calc(100% - 40px));
    padding: 72px 28px 28px;
    overflow-y: auto;
    text-align: center;
}

.wechat-dialog h2 {
    margin-bottom: 12px;
    font-size: 22px;
}

.wechat-dialog p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.wechat-qr-image {
    width: 258px;
    height: auto;
    margin: 0 auto;
    background: #ffffff;
}

.speaker-dialog {
    width: 90vw;
    max-width: 48rem;
    height: min(680px, 85vh);
    max-height: 85vh;
}

.speaker-dialog .dialog-inner {
    position: relative;
    height: 100%;
    max-height: 85vh;
    padding: 2.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dialog-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.dialog-close-btn:hover, .dialog-close-btn:focus {
    background-color: var(--color-gold);
    color: #081b33;
}

.speaker-dialog .dialog-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.speaker-profile-header {
    flex-shrink: 0;
    padding-right: 3.5rem;
    margin-bottom: 1.25rem;
}

.speaker-profile-name {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.speaker-profile-cname {
    font-size: 1.125rem;
    color: var(--color-gold);
    margin-bottom: 0.25rem;
}

.speaker-profile-title {
    font-size: 1rem;
    color: var(--color-cyan-hover);
    margin-bottom: 0.25rem;
}

.speaker-profile-institution {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.speaker-profile-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: start;
}

.speaker-dialog .speaker-profile-layout {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.speaker-profile-media {
    flex-shrink: 0;
    width: 180px;
}

.speaker-profile-img {
    width: 100%;
    aspect-ratio: 0.89;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-gold);
}

.dialog-placeholder-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
}

.speaker-dialog .speaker-profile-bio {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.06);
}

.speaker-dialog .speaker-profile-bio::-webkit-scrollbar {
    width: 6px;
}

.speaker-dialog .speaker-profile-bio::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

.speaker-dialog .speaker-profile-bio::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 3px;
}

.speaker-dialog .speaker-profile-bio::-webkit-scrollbar-thumb:hover {
    background: #d4a34b;
}

.speaker-profile-bio .bio-paragraph {
    margin-bottom: 1.15rem;
    line-height: 1.7;
    font-size: 1rem;
    color: #f1f5f9;
    text-align: justify;
}

.speaker-dialog .speaker-profile-bio .bio-paragraph:last-child {
    margin-bottom: 0.5rem;
}

/* Lightbox Dialog */
.gallery-dialog {
    width: 92vw;
    max-width: 60rem;
    background-color: #081b33;
}

.gallery-dialog-inner {
    position: relative;
    padding: 4.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-close-btn {
    z-index: 1;
}

.gallery-dialog-stage {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 65vh;
}

.gallery-dialog-img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(8, 27, 51, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-prev-btn { left: 0.5rem; }
.gallery-next-btn { right: 0.5rem; }

.gallery-dialog-footer {
    margin-top: 1rem;
    text-align: center;
}

/* ==========================================================================
   14. Global Dark Blue Footer
   ========================================================================== */
.site-footer {
    background-color: #003974;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2.25rem 0 2rem 0;
    margin-top: auto;
    color: #ffffff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.footer-brand-link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo-hkust {
    height: 48px;
    width: auto;
    display: block;
}

.footer-forum-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.footer-line-1 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.footer-line-2 {
    font-size: 0.875rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.footer-links-social-row {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    flex-wrap: wrap;
}

.footer-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.footer-link {
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover, .footer-link:focus {
    color: var(--color-gold);
}

.footer-social-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.follow-us-label {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 500;
    margin-right: 0.25rem;
}

.footer-social-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

.social-circle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.social-circle-btn:hover, .social-circle-btn:focus {
    transform: scale(1.12);
    opacity: 0.9;
}

.social-circle-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: block;
}

.footer-copyright {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 400;
    text-align: right;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   15. Buttons & Global Utility
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--color-gold);
    color: #081b33;
    border-color: var(--color-gold);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-cyan-hover);
    text-decoration: underline;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   16. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .panels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-media-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .news-articles-column {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
        padding-bottom: 40px;
    }
    .hero-section {
        height: 600px;
        padding-top: 88px;
    }
    .abstract-card {
        padding: 56px 48px 64px;
    }
    .abstract-card p {
        font-size: 21px;
        line-height: 1.4;
    }
}

@media (max-width: 1280px) {
    .site-header {
        height: auto;
        padding: 0.75rem 0;
    }

    .site-header-container {
        flex-wrap: wrap;
        row-gap: 0;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 44px;
        flex-shrink: 0;
        font: inherit;
        font-size: 0.875rem;
        font-weight: 700;
    }

    .nav-toggle-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
    }

    .nav-toggle-icon span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #003366;
        border-radius: 2px;
    }

    .site-nav {
        display: none;
        flex-basis: 100%;
        min-width: 0;
        max-height: calc(100dvh - 6rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.75rem;
        border-top: 1px solid #e2e8f0;
        margin-top: 0.75rem;
    }

    .site-nav.nav-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.75rem 0.875rem;
        white-space: normal;
    }

    .brand-forum-title {
        margin-left: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.75rem;
    }

    .footer-left {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .footer-right {
        align-items: stretch;
        min-width: 0;
        gap: 1rem;
    }

    .footer-links-social-row {
        justify-content: space-between;
        gap: 1rem 2rem;
    }

    .footer-copyright {
        text-align: left;
    }

    .partners-grid {
        gap: 1.5rem;
        --partner-logo-scale: 0.36;
    }

    .partner-separator {
        height: 44px;
    }
}

@media (max-width: 1024px) {
    .partners-grid {
        gap: 1.25rem;
        --partner-logo-scale: 0.30;
    }

    .partner-separator {
        height: 38px;
    }
}

@media (max-width: 860px) {
    .partners-grid {
        flex-wrap: wrap;
        gap: 1.75rem 2rem;
        --partner-logo-scale: 0.38;
    }
    .partner-separator {
        display: none;
    }
    .page-home .speakers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 20px;
    }
    .page-home .section-featured-speakers,
    .page-home .section-committee {
        padding: 28px 0 56px;
    }
    .page-home .section-panel-previews {
        padding: 40px 0 56px;
    }
    .panels-container-card {
        padding: 40px 32px 56px;
    }
    .page-home .section-featured-speakers .section-title,
    .page-home .section-panel-previews .section-title,
    .page-home .section-committee .section-title,
    .page-home .section-partners .section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
}

@media (max-width: 767px) {
    .speaker-dialog {
        width: 94vw;
        height: min(90vh, 640px);
        max-height: 90vh;
    }

    .speaker-dialog .dialog-inner {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .dialog-close-btn {
        top: 0.875rem;
        right: 0.875rem;
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .speaker-profile-header {
        padding-right: 2.75rem;
        margin-bottom: 1rem;
    }

    .speaker-profile-layout {
        grid-template-columns: 1fr;
    }

    .speaker-dialog .speaker-profile-layout {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        gap: 1.25rem;
        padding-right: 0.25rem;
        scrollbar-width: thin;
        scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.06);
    }

    .speaker-dialog .speaker-profile-layout::-webkit-scrollbar {
        width: 6px;
    }

    .speaker-dialog .speaker-profile-layout::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.06);
        border-radius: 3px;
    }

    .speaker-dialog .speaker-profile-layout::-webkit-scrollbar-thumb {
        background: var(--color-gold);
        border-radius: 3px;
    }

    .speaker-profile-media {
        width: 130px;
    }

    .speaker-dialog .speaker-profile-bio {
        overflow-y: visible;
        height: auto;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .site-header-container {
        column-gap: 0.75rem;
    }
    .site-branding {
        flex: 1;
        min-width: 0;
    }
    .brand-logos {
        width: 100%;
        min-width: 0;
    }
    .brand-link-forum {
        min-width: 0;
    }
    .brand-logos {
        gap: 0.625rem;
    }
    .brand-forum-title {
        display: flex;
        margin-left: 0.25rem;
    }
    .forum-line-1 {
        font-size: 0.5rem;
    }
    .forum-line-2 {
        font-size: 0.5625rem;
    }
    .logo-35th,
    .logo-ais {
        height: 26px;
    }
    .logo-ais {
        margin-left: 0;
    }
    .nav-toggle {
        width: 44px;
        justify-content: center;
        padding: 0;
    }
    .hero-container {
        width: calc(100% - 32px);
    }
    .hero-section {
        height: 480px;
        padding-top: 64px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-emblem-lockup {
        width: 100%;
        max-width: 711px;
    }
    .hero-emblem-img {
        width: 100%;
        height: auto;
    }
    .hero-event-info-box {
        margin-top: 18px;
        margin-left: clamp(0px, 29.66cqw, 210px);
        gap: 10px;
    }
    .hero-section .hero-info-line {
        gap: 6px;
    }
    .hero-section .hero-info-icon {
        width: 14px;
        max-height: 19px;
    }
    .hero-section .hero-date-val,
    .hero-section .hero-venue-val {
        font-size: 11px;
        line-height: 1.4;
    }
    .page-hero {
        height: 220px;
        padding-top: 56px;
    }
    .page-hero-title {
        font-size: 36px;
    }
    .abstract-card {
        margin-top: -40px;
        padding: 32px 24px 40px;
    }
    .abstract-card p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    .section-highlights {
        padding: 32px 0 40px;
    }
    .section-highlights .section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
    .highlights-row {
        gap: 12px;
    }
    .highlight-circle-icon {
        height: 32px;
        margin-bottom: 12px;
    }
    .highlight-icon-img {
        max-width: 32px;
        max-height: 32px;
    }
    .highlight-label {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .section-about-body {
        padding-top: 20px;
        font-size: 14px;
        line-height: 1.5;
    }
    .section-about-part .section-title-bar,
    .about-info-card,
    .about-message-card::after,
    .section-about-part:not(:first-child)::before {
        width: 100%;
    }
    .section-about-part .section-title-bar h2 {
        font-size: 1.4em;
    }
    .about-message-card,
    .about-message-card:last-child {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 20px;
        min-height: 0;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    .about-author-photo-side {
        order: -1;
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 16px;
        align-items: end;
    }
    .about-author-photo-box {
        margin-bottom: 0;
    }
    .about-author-caption {
        font-size: 11px;
        line-height: 1.3;
    }
    .about-message-body p,
    .about-info-card p {
        /* text-align: left; */
    }
    .panels-grid {
        grid-template-columns: 1fr;
    }
    .partners-grid {
        gap: 1.5rem 1.75rem;
        --partner-logo-scale: 0.36;
    }
    .footer-left,
    .footer-links-social-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-social-wrap {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .footer-social-list {
        flex-wrap: wrap;
        gap: 0;
    }
    .social-circle-btn {
        width: 44px;
        height: 44px;
    }
    .footer-nav-links {
        gap: 1.25rem;
    }
    .footer-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .page-home .speakers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }
    .panels-container-card {
        padding: 28px 24px 40px;
    }
    .page-home .panels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }
    .panel-card-number,
    .panel-card-title {
        font-size: 12px;
    }
    .panel-card-summary {
        font-size: 11px;
    }
    .partner-logo-box {
        max-width: 100%;
        margin-inline: auto;
    }
    .partners-grid {
        gap: 1.5rem;
        --partner-logo-scale: 0.35;
    }
    .hero-section {
        height: 440px;
        padding-top: 60px;
    }
    .hero-event-info-box {
        margin-top: 14px;
        margin-left: 0;
    }
    .page-hero {
        height: 180px;
        padding-top: 48px;
    }
    .page-hero-title {
        font-size: 30px;
    }
    .highlights-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }
    .highlight-label {
        font-size: 12px;
    }
    .site-header-container {
        column-gap: 0.375rem;
    }
    .brand-logos {
        gap: 0.375rem;
    }
    .logo-35th,
    .logo-ais {
        height: clamp(16px, 5.4vw, 25.92px);
    }
    .brand-forum-title {
        margin-left: 0;
    }
    .forum-line-1 {
        font-size: clamp(5px, 1.65vw, 7.92px);
        letter-spacing: 0.02em;
    }
    .forum-line-2 {
        font-size: clamp(5.5px, 1.8vw, 8.64px);
        letter-spacing: 0;
    }
}
