/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    font-family: 'Questrial', sans-serif;
    font-size: 1.125rem; /* ~18px, slightly larger than default 16px */
    background-color: #1A1A2E;
    color: #000;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    position: relative;
}

.text-primary { color: #00A3E0; }

a { color: #00A3E0; }

/* Navbar – previous colors */
#mainNavbar {
    background-color: #1A1A2E !important;
}
#mainNavbar .navbar-nav { gap: 0.5rem; }
#mainNavbar .navbar-collapse > .dropdown { margin-left: 0.75rem; }
#mainNavbar .navbar-brand {
    color: #00A3E0 !important;
    font-size: 1.5rem;
}
#mainNavbar .nav-link:hover,
#mainNavbar .nav-link:focus,
#mainNavbar .navbar-brand:hover {
    color: #00A3E0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
#mainNavbar .dropdown-toggle::after { display: none !important; }
#mainNavbar.scrolled {
    background-color: rgba(26, 26, 46, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
#mainNavbar .dropdown-menu {
    margin-top: 0;
    padding: 0.4rem 0;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 163, 224, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.dropdown-menu-dark {
    background-color: #1A1A2E;
    border-color: rgba(0, 163, 224, 0.6);
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: transparent;
    color: #00A3E0;
    box-shadow: none;
    outline: none;
}
.btn-primary {
    background: linear-gradient(135deg, #00A3E0, #0d8ec9);
    border-color: #00A3E0;
}
.btn-primary:hover {
    background: #0d8ec9;
    border-color: #00A3E0;
    opacity: 0.95;
}

/* Outline buttons: center text vertically and horizontally */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-light,
.btn-outline-danger,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
}
.btn-outline-primary {
    background-color: #fff;
    border-width: 2px;
    color: #00A3E0;
}
.btn-outline-primary:hover {
    background-color: rgba(0, 163, 224, 0.08);
    color: #0d8ec9;
    border-color: #0d8ec9;
}

/* Header: fits banner image only */
.header {
    display: block;
    background: #1A1A2E;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 70px 0 0 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 0;
    font-size: 0;
}

.header img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.header .hero {
    margin-top: auto;
    padding-bottom: 3rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-top: 80px
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00A3E0, #F1C40F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.date-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #cccccc;
}

.date-location i {
    color: #00A3E0;
    font-size: 1.5rem;
}

.cta-button {
    background: linear-gradient(135deg, #00A3E0, #F1C40F);
    color: white;
    border: none;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 163, 224, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4);
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

/* Add decorative line between sections */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #00A3E0, #F1C40F);
    border-radius: 2px;
}

section:last-child::after {
    display: none;
}

section.header {
    padding: 5rem 0 0 0 !important;
}

.section-title {
    font-family: 'Signika', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #00A3E0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #00A3E0, #F1C40F);
    border-radius: 2px;
}

/* Welcome Section */
.welcome {
    background: #1A1A2E;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.speaker-photo {
    text-align: center;
}

.speaker-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #00A3E0;
    box-shadow: 0 20px 40px rgba(0, 163, 224, 0.25);
}

.welcome-text h3 {
    font-size: 2rem;
    color: #00A3E0;
    margin-bottom: 0.5rem;
}

.speaker-title {
    color: #000;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.welcome-message {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #000;
}

.join-button {
    background: transparent;
    color: #00A3E0;
    border: 2px solid #00A3E0;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-button:hover {
    background: #00A3E0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 163, 224, 0.25);
}

/* Theme Section */
.theme {
    background: #f7f9fc;
}

.dark-section {
    background: #1A1A2E !important;
    color: #fff;
}
.dark-section .section-title { color: #00A3E0; }
.dark-section .card.theme-card {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.dark-section .card.theme-card .card-title,
.dark-section .card.theme-card h3,
.dark-section .card.theme-card h5 { color: #fff !important; font-weight: 600; }
.dark-section .card.theme-card .card-text,
.dark-section .card.theme-card p { color: rgba(255,255,255,0.9) !important; line-height: 1.6; }
.dark-section .card.theme-card .card-body { color: #fff; }
.dark-section .card.theme-card .card-icon { color: #00A3E0; }

.theme-card {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e6e9ef;
}

.theme-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #e6e9ef;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00A3E0, #F1C40F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.theme-card h3 {
    font-size: 1.5rem;
    color: #1A1A2E;
    margin-bottom: 1rem;
}

.theme-card p {
    color: #333333;
    line-height: 1.6;
}

.theme-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Important Dates Section */
.important-dates {
    background: #f7f9fc;
}

.dates-table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dates-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
}

.dates-table th {
    background: linear-gradient(135deg, #00A3E0, #F1C40F);
    color: white;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
}

.dates-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #e6e9ef;
    color: #0a0a0a;
    font-size: 1.1rem;
}

.dates-table tr:hover {
    background: #f2f5fa;
}

.dates-table tr:last-child td {
    border-bottom: none;
}

/* Paper submission process flow */
.paper-process-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.paper-process-flow .process-step {
    flex: 1 1 140px;
    min-width: 120px;
    padding: 1rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.paper-process-flow .process-step-dark {
    background: #1A1A2E;
    color: #fff;
}
.paper-process-flow .process-step-light {
    background: #00A3E0;
    color: #fff;
}
.paper-process-flow .process-label {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}
.paper-process-flow .process-date {
    font-size: 0.75rem;
    opacity: 0.95;
}
.paper-process-flow .process-arrow {
    flex: 0 0 28px;
    width: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1A2E;
    font-size: 1.25rem;
    font-weight: bold;
}
.paper-process-flow .process-arrow::after {
    content: '›';
}
@media (max-width: 767px) {
    .paper-process-flow {
        flex-direction: column;
        align-items: center;
    }
    .paper-process-flow .process-step {
        width: 100%;
        max-width: 280px;
        min-width: 0;
    }
    .paper-process-flow .process-arrow {
        width: 100%;
        height: 24px;
        flex: 0 0 24px;
    }
    .paper-process-flow .process-arrow::after {
        content: '↓';
    }
}

/* Get More Section */
.get-more {
    background: #f7f9fc;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.more-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e6e9ef;
}

.more-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #e6e9ef;
}

.more-image {
    height: 250px;
    overflow: hidden;
}

.more-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.more-card:hover .more-image img { transform: none; }

.more-card h3 {
    padding: 1.5rem 1.5rem 1rem;
    font-size: 1.5rem;
    color: #1A1A2E;
}

.more-card p {
    padding: 0 1.5rem 1.5rem;
    color: #333333;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: #1A1A2E;
    background-image: url('../images/contact.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.8);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact,
.contact .section-title {
    color: #ffffff;
}
.contact .contact-item,
.contact .contact-item span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.contact-item i {
    color: #00A3E0;
    font-size: 1.5rem;
    width: 30px;
    flex-shrink: 0;
}

.social-media {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border: 2px solid #00A3E0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00A3E0;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover { background: #FFFFFF; color: #00A3E0; transform: none; box-shadow: none; }

/* Footer */
.footer {
    background: #1A1A2E;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #2a315a;
}

/* Profile page – label/value list, no boxes */
.profile-details {
    margin: 0;
    padding: 0;
    list-style: none;
}
.profile-details dt {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}
.profile-details dt:first-child { margin-top: 0; }
.profile-details dd {
    margin: 0;
    padding: 0;
    font-size: 1.05rem;
    color: #111;
}
.light-section .profile-details dd { color: #0a0a0a; }

.footer p {
    color: #A8DADC;
}

/* Form styles – label vs field contrast (all forms) */
.form-label,
label.form-label {
    color: #374151;
    font-weight: 600;
    font-size: 0.9375rem;
}
.light-section .form-label,
.light-section label.form-label {
    color: #0389bc;
}
.form-control,
.form-select,
textarea.form-control {
    background-color: #fefefe;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    border-radius: 6px;
}
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #00A3E0;
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.15);
    background-color: #fff;
}
.form-control::placeholder,
textarea.form-control::placeholder {
    color: #94a3b8;
}
.light-section .form-control,
.light-section .form-select,
.light-section textarea.form-control {
    background-color: #fff;
    border-color: #e2e8f0;
    color: #0f172a;
}
.light-section .form-control:focus,
.light-section .form-select:focus,
.light-section textarea.form-control:focus {
    background-color: #fff;
}
/* Form section titles (e.g. "Participant details") */
.form-section-title,
.light-section .form-section-title,
h3.h6.text-uppercase.text-muted {
    color: #475569 !important;
    font-weight: 600;
}
.light-section h3.h6.text-uppercase.text-muted {
    color: #64748b !important;
}

/* Registration page – clean form style (Participant / Professional sections) */
.registration-page {
    background-color: #f0f4f8;
}
.registration-form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.registration-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #08469d !important;
    margin-bottom: 1rem;
}
.registration-page .form-label {
    color: #0389bc;
    font-weight: 500;
    margin-bottom: 0.35rem;
}
.registration-page .form-control,
.registration-page .form-select {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-height: 2.5rem;
}
.registration-page .form-control:focus,
.registration-page .form-select:focus {
    border-color: #00A3E0;
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.12);
}
.registration-page .form-control::placeholder {
    color: #9ca3af;
}
.registration-page .text-danger {
    color: #dc2626 !important;
}

/* Field validation notification (tooltip below input: orange icon + message + arrow) */
.form-field-noti {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
    padding: 0.5rem 0.6rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: #111;
    position: relative;
}
.form-field-noti::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 1rem;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #d1d5db;
}
.form-field-noti::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 1rem;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
}
.form-field-noti-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #ea580c;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1;
}
.form-field-noti-msg {
    flex: 1;
}

/* Form styles (used on Login, Register, Program pages) */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #000;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 8px;
    background: #ffffff;
    color: #000;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin: 1.25rem 0 0.75rem 0;
    padding-bottom: 0.25rem;
}
.form-section-title:first-of-type { margin-top: 0; }

.form-question {
    color: #000;
    margin: 1rem 0 0.5rem 0;
    font-weight: 500;
}
.form-hint {
    color: #333;
    font-size: 0.95rem;
    margin: 0.5rem 0 0.75rem 0;
}
.form-row--radio { align-items: center; }
.form-group--radio label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0; cursor: pointer; }
.form-group--radio input[type="radio"] { width: auto; }

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4A90E2;
    color: white;
}

.btn-primary:hover {
    background: #357ABD;
}

.btn-secondary {
    background: transparent;
    color: #000;
    border: 1px solid #333;
}

.btn-secondary:hover {
    background: #333;
}

/* Light section variant */
.light-section {
    background: #f7f9fc;
    color: #0a0a0a;
}

.light-section .section-title {
    color: #0a0a0a;
}

.light-section .section-title::after {
    background: linear-gradient(135deg, #7B68EE, #4A90E2);
}

/* Light cards for contrast */
.card--light,
.light-section .theme-card,
.light-section .more-card {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    color: #0a0a0a;
}

.card--light h3,
.light-section .theme-card h3,
.light-section .more-card h3 {
    color: #0a0a0a;
}

.card--light p,
.light-section .theme-card p,
.light-section .more-card p {
    color: #333333;
}

.light-section .card-icon {
    background: linear-gradient(135deg, #7B68EE, #4A90E2);
}

/* Important dates table in light section */
.light-section .dates-table {
    background: #ffffff;
}

.light-section .dates-table th {
    background: linear-gradient(135deg, #7B68EE, #4A90E2);
    color: #ffffff;
}

.light-section .dates-table td {
    color: #0a0a0a;
    border-bottom: 1px solid #e6e9ef;
}

.light-section .dates-table tr:hover {
    background: #f2f5fa;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}
th {
    background-color: #f2f2f2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        width: 100%;
        max-width: 100vw;
        margin-top: 70px;
    }

    .header img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-details {
        flex-direction: column;
        gap: 1rem;
    }

    .welcome-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .speaker-img {
        width: 250px;
        height: 250px;
    }

    .theme-cards {
        grid-template-columns: 1fr;
    }

    .more-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
    }

    .dates-table th,
    .dates-table td {
        padding: 1rem;
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .theme-card,
    .more-card {
        margin: 0 10px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 3-column menu board (homepage) */
.apc-menu-board {
    background-color: #0b2233;
    color: #ffffff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.apc-menu-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.apc-menu-board__container {
    position: relative;
    z-index: 1;
}
.apc-menu-board__grid {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 0 1.5rem;
}
.apc-menu-board__primary {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.apc-menu-pill {
    display: block;
    text-decoration: none;
    color: #0a0a0a;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 1.1rem 0.8rem;
    border-radius: 999px;
    line-height: 1.05;
}
.apc-menu-pill--about { background: #ffffff; }
.apc-menu-pill--speaker { background: #f3efe6; }
.apc-menu-pill--program { background: #f0c3c8; }
.apc-menu-pill--venue { background: #59b7c8; }
.apc-menu-pill--registration { background: #7f8f2a; }
.apc-menu-pill--freepaper { background: #3e6ed9; color: #ffffff; }
.apc-menu-pill--sponsors { background: #c63b35; color: #ffffff; }
.apc-menu-pill--download { background: #b6bcc7; }

.apc-menu-board__rows {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}
.apc-menu-row {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2.5rem;
    align-items: start;
}
.apc-menu-row__sub {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
}
.apc-subpill {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    color: #0a0a0a;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    line-height: 1.1;
    max-width: 100%;
}
.apc-subpill--wide { width: 100%; }
.apc-subpill--about { background: #ffffff; }
.apc-subpill--speaker { background: #f3efe6; }
.apc-subpill--program { background: #f0c3c8; }
.apc-subpill--venue { background: #59b7c8; }
.apc-subpill--registration { background: #7f8f2a; color: #0a0a0a; }
.apc-subpill--freepaper { background: #3e6ed9; color: #ffffff; }
.apc-subpill--sponsors { background: #c63b35; color: #ffffff; }
.apc-subpill--download { background: #b6bcc7; }
.apc-menu-row__detail {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.75;
    min-height: 1.2rem;
}
.apc-menu-detail-line { white-space: normal; }
.apc-menu-detail-spacer { margin-top: 0.75rem; }

@media (max-width: 992px) {
    .apc-menu-board__grid { grid-template-columns: 1fr; }
    .apc-menu-row { grid-template-columns: 1fr; gap: 1rem; }
}

/* Poster show – two-column layout (thumbnail left, details right) */
.poster-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.poster-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.poster-entry-thumb {
    flex: 0 0 200px;
    min-height: 280px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.poster-thumb-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}
.poster-thumb-placeholder.poster-thumb-fallback {
    position: absolute;
    inset: 0;
}
.poster-thumb-iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: none;
    pointer-events: none;
}
.poster-thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}
.poster-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #64748b;
    height: 100%;
    min-height: 280px;
}
.poster-thumb-code {
    font-weight: 600;
    color: #08469d;
    margin-top: 0.5rem;
}
.poster-entry-details {
    flex: 1;
    min-width: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.poster-entry-badge {
    display: inline-block;
    background: #facc15;
    color: #000;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    width: fit-content;
}
.poster-meta {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}
.poster-meta dt {
    color: #d97706;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}
.poster-meta dt:first-child { margin-top: 0; }
.poster-meta dd {
    margin-left: 0;
    color: #111;
    line-height: 1.5;
}
.poster-btn-details {
    align-self: flex-start;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    margin-top: auto;
}
.poster-btn-details:hover {
    background: #bae6fd;
    color: #0c4a6e;
    border-color: #38bdf8;
}
@media (max-width: 576px) {
    .poster-entry { flex-direction: column; }
    .poster-entry-thumb { flex: 0 0 auto; width: 100%; min-height: 240px; }
    .poster-thumb-iframe, .poster-thumb-video, .poster-thumb-placeholder { min-height: 240px; }
}
