/* ==============================================================
   PSH Annual Conference Portal - Dedicated Styling
   ============================================================== */

:root {
    --conf-navy: #0A192F;
    --conf-navy-light: #172A45;
    --conf-gold: #D4AF37;
    --conf-gold-light: #F3E5AB;
    --conf-accent: #E63946;
}

.conf-hero {
    margin-top: 0 !important;
    background: linear-gradient(135deg, #050d1a 0%, #0a192f 50%, #0f2744 100%);
    color: #FFFFFF;
    padding: 105px 0 85px 0;
    position: relative;
    border-bottom: 4px solid #D4AF37;
    box-shadow: inset 0 -30px 60px rgba(0, 0, 0, 0.7);
}

.conf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.conf-hero-badge {
    background: #F59E0B;
    border: 1.5px solid #D97706;
    color: #06111E !important;
    font-size: 0.88rem;
    font-weight: 850;
    padding: 8px 22px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.conf-hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85);
}

.conf-hero-title .conf-hero-pretitle {
    font-size: 0.62em;
    font-weight: 900;
    letter-spacing: 2px;
    color: #F59E0B !important;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 4px;
}

.conf-hero-title .conf-hero-main {
    color: #FFFFFF !important;
    font-weight: 950;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
}

.conf-hero-title .title-accent {
    color: #F59E0B !important;
    font-weight: 950;
    text-shadow: 0 3px 14px rgba(245, 158, 11, 0.5);
}

.conf-hero-title .title-dark-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.65);
    border: 1.5px solid rgba(212, 175, 55, 0.85);
    border-radius: 8px;
    padding: 6px 16px;
    color: #FFFFFF !important;
    font-size: 0.72em;
    margin-top: 10px;
    letter-spacing: 0.5px;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .conf-hero-title {
        font-size: 2.1rem !important;
        line-height: 1.2 !important;
    }
    .conf-hero {
        padding: 60px 0 50px 0 !important;
    }
}

@media (max-width: 575.98px) {
    .conf-hero-title {
        font-size: 1.65rem !important;
        line-height: 1.2 !important;
    }
    .conf-hero-badge {
        font-size: 0.72rem !important;
        padding: 6px 14px !important;
    }
    .conf-hero {
        padding: 45px 0 40px 0 !important;
    }
}

.conf-info-pill {
    background: rgba(6, 17, 33, 0.92);
    border: 1.5px solid rgba(212, 175, 55, 0.75);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.conf-info-pill i {
    color: #F59E0B;
    font-size: 1.1rem;
}

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

html,
body.conf-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    background-color: #0A192F !important;
    background: #0A192F !important;
    color: #FFFFFF !important;
}

body.conf-body {
    padding-top: 76px !important;
}

@media (min-width: 1200px) {
    body.conf-body {
        padding-top: 80px !important;
    }
}

@media (max-width: 991.98px) {
    body.conf-body {
        padding-top: 72px !important;
    }
}

@media (max-width: 575.98px) {
    body.conf-body {
        padding-top: 66px !important;
    }
}

body.conf-body p {
    color: #0A0F1D;
    line-height: 1.7;
    font-weight: 450;
}

body.conf-body .text-muted,
body.conf-body p.text-muted,
body.conf-body span.text-muted,
body.conf-body div.text-muted {
    color: #1E293B !important;
    font-weight: 500;
}

/* Timeline, Abstract, Committee & Speaker Cards */
.timeline-card h5,
.timeline-card h6 {
    color: #0A192F !important;
    font-weight: 750;
}

.timeline-card p,
.timeline-card .text-muted,
.timeline-card span {
    color: #0A0F1D !important;
    font-weight: 500;
}

.speaker-card h5,
.committee-card h5 {
    color: #0A192F !important;
    font-weight: 750;
}

.speaker-card p,
.speaker-card .text-muted,
.committee-card p,
.committee-card .text-muted {
    color: #0A0F1D !important;
    font-weight: 500;
}

.pricing-card h3,
.pricing-card h4,
.pricing-card h5 {
    color: #0A192F !important;
}

.pricing-card p,
.pricing-card li,
.pricing-card .text-muted {
    color: #0A0F1D !important;
    font-weight: 500;
}

/* Responsive Professional Desktop Sizing (Clear, Bold & Balanced) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .conf-nav-logo {
        height: 34px !important;
        max-width: 36px !important;
    }
    .conf-brand-title {
        font-size: 1.08rem !important;
    }
    .conf-brand-sub {
        font-size: 0.58rem !important;
    }
    .conf-navbar .nav-link {
        font-size: 0.84rem !important;
        padding: 6px 7px !important;
    }
    .btn-conf-register {
        font-size: 0.84rem !important;
        padding: 6px 12px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .conf-nav-logo {
        height: 36px !important;
        max-width: 38px !important;
    }
    .conf-brand-title {
        font-size: 1.15rem !important;
    }
    .conf-brand-sub {
        font-size: 0.62rem !important;
    }
    .conf-navbar .nav-link {
        font-size: 0.88rem !important;
        padding: 6px 9px !important;
    }
    .btn-conf-register {
        font-size: 0.88rem !important;
        padding: 6px 14px !important;
    }
}

@media (min-width: 1400px) {
    .conf-nav-logo {
        height: 38px !important;
        max-width: 40px !important;
    }
    .conf-brand-title {
        font-size: 1.20rem !important;
    }
    .conf-brand-sub {
        font-size: 0.65rem !important;
    }
    .conf-navbar .nav-link {
        font-size: 0.92rem !important;
        padding: 7px 11px !important;
    }
    .btn-conf-register {
        font-size: 0.92rem !important;
        padding: 7px 16px !important;
    }
}

/* ==============================================================
   CONFERENCE FIXED HEADER (MINIMALIST & PREMIUM)
   ============================================================== */
.psh-conf-fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    background: #0A192F !important;
}

.conf-top-ticker {
    background: rgba(6, 17, 33, 0.98);
    font-size: 0.76rem;
    padding: 3px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.conf-ticker-text {
    font-size: 0.74rem;
    opacity: 0.88;
}

.conf-back-link {
    font-size: 0.74rem;
    color: var(--conf-gold) !important;
    transition: all 0.2s ease;
}

.conf-back-link:hover {
    color: #FFFFFF !important;
}

.conf-navbar {
    background-color: #0A192F !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 8px 0 !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.conf-nav-logo {
    height: 36px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
}

.conf-brand-title {
    font-size: 1.15rem;
    letter-spacing: -0.2px;
    line-height: 1.1;
}

.conf-brand-year {
    color: var(--conf-gold);
    font-weight: 800;
    margin-left: 2px;
}

.conf-brand-sub {
    font-size: 0.62rem;
    color: var(--conf-gold-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    display: block !important;
}

.conf-navbar .nav-link {
    color: #E2E8F0 !important;
    font-size: 0.92rem;
    padding: 8px 12px !important;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.conf-navbar .nav-link:hover, 
.conf-navbar .nav-link.active {
    color: var(--conf-gold) !important;
    background-color: rgba(212, 175, 55, 0.12);
}

.btn-conf-register {
    background: linear-gradient(135deg, #D4AF37 0%, #C59B27 100%);
    color: #0A192F !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
    transition: all 0.25s ease;
}

.btn-conf-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.45);
    color: #000000 !important;
}

.conf-navbar-toggler {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.conf-navbar-toggler:hover,
.conf-navbar-toggler:focus {
    background: rgba(212, 175, 55, 0.22);
    border-color: var(--conf-gold) !important;
}

@media (max-width: 991.98px) {
    .conf-navbar {
        padding: 6px 0 !important;
    }
    .conf-navbar .navbar-collapse {
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 14px;
        padding: 16px 14px;
        margin-top: 10px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(212, 175, 55, 0.3);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .conf-navbar .navbar-nav {
        flex-direction: column !important;
        width: 100% !important;
        gap: 6px !important;
    }
    .conf-navbar .nav-link {
        padding: 11px 14px !important;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        width: 100%;
        color: #E2E8F0 !important;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid transparent;
        transition: all 0.2s ease;
    }
    .conf-navbar .nav-link:hover,
    .conf-navbar .nav-link:focus {
        background: rgba(212, 175, 55, 0.12);
        color: var(--conf-gold) !important;
        border-color: rgba(212, 175, 55, 0.25);
    }
    .conf-navbar .nav-link.active {
        color: #FFFFFF !important;
        background: linear-gradient(90deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
        border-left: 4px solid var(--conf-gold) !important;
        border-color: rgba(212, 175, 55, 0.35);
        font-weight: 700;
    }
    .btn-conf-register {
        width: 100% !important;
        margin-top: 8px;
        padding: 12px 16px !important;
        font-size: 1rem !important;
        font-weight: 800;
        text-align: center;
        justify-content: center;
        border-radius: 50px;
        box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    }
}

@media (max-width: 991.98px) {
    .conf-nav-logo {
        height: 32px !important;
        max-width: 34px !important;
    }
    .conf-brand-title {
        font-size: 1.02rem !important;
        line-height: 1.1;
    }
    .conf-brand-sub {
        font-size: 0.55rem !important;
        letter-spacing: 0.25px;
    }
}

@media (max-width: 575.98px) {
    .conf-nav-logo {
        height: 28px !important;
        max-width: 30px !important;
    }
    .conf-brand-title {
        font-size: 0.94rem !important;
        line-height: 1.1;
    }
    .conf-brand-sub {
        font-size: 0.48rem !important;
        letter-spacing: 0.2px;
        line-height: 1.15;
        display: block !important;
    }
    .conf-navbar-toggler {
        width: 34px !important;
        height: 34px !important;
    }
    .conf-top-ticker {
        padding: 2px 0 !important;
    }
    .conf-ticker-text {
        font-size: 0.65rem;
    }
}



/* Schedule Timeline Card */
.program-timeline {
    position: relative;
    padding-left: 25px;
}

.program-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #CBD5E1;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--psh-primary);
    border: 3px solid #FFFFFF;
    box-shadow: 0 0 0 2px var(--psh-primary);
}

.timeline-time {
    font-weight: 700;
    color: var(--psh-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.timeline-card {
    background: #FFFFFF;
    border: 1px solid var(--psh-border);
    border-radius: var(--psh-radius-sm);
    padding: 20px;
    box-shadow: var(--psh-shadow-sm);
    transition: var(--psh-transition);
}

.timeline-card:hover {
    border-color: var(--psh-primary);
    box-shadow: var(--psh-shadow-md);
    transform: translateX(4px);
}

/* Pricing Package Card */
.pricing-card {
    background: #FFFFFF;
    border-radius: var(--psh-radius);
    border: 1px solid var(--psh-border);
    padding: 35px 25px;
    text-align: center;
    transition: var(--psh-transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--psh-primary);
    box-shadow: var(--psh-shadow-lg);
    transform: scale(1.03);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--psh-shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--psh-primary);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 35px;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.pricing-price {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--psh-secondary);
    margin: 18px 0;
}

.pricing-price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--psh-text-muted);
}

/* Ensure all hero subtitles and text on conference dark background are 100% solid white */
.text-light-emphasis {
    color: #FFFFFF !important;
    opacity: 1 !important;
}


/* ==============================================================
   ENHANCED HIGH-CONTRAST & PROGRAM STYLING (PSH 2026)
   ============================================================== */
.session-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.session-card:hover {
    border-color: #0A192F;
    box-shadow: 0 8px 20px rgba(10, 25, 47, 0.08);
    transform: translateY(-2px);
}

.session-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.session-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: #0f172a !important;
}

.talk-row {
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3.5px solid var(--conf-gold);
}

.talk-row:hover {
    background: #f1f5f9;
}

.talk-topic {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.96rem;
}

.talk-speaker {
    font-weight: 600;
    color: #1e3a5f;
    font-size: 0.88rem;
}

.faculty-meta {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.90rem;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.faculty-meta strong {
    color: #0A192F;
}

.workshop-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.workshop-card:hover {
    border-color: var(--conf-gold);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-4px);
}

.workshop-fee-tag {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0A192F;
}

.abstract-guideline-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a !important;
    font-weight: 500;
    font-size: 0.94rem;
}

.abstract-guideline-item:last-child {
    border-bottom: none;
}

.abstract-guideline-item i {
    color: var(--conf-gold);
    margin-top: 4px;
    font-size: 1rem;
    flex-shrink: 0;
}


/* ==============================================================
   PROGRAM TABS & HIGH-CONTRAST COLOR GRADING (PSH 2026)
   ============================================================== */
#programTabs {
    background: #ffffff !important;
    padding: 6px !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

#programTabs .nav-link {
    color: #0A192F !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    font-weight: 750 !important;
    font-size: 0.96rem;
    transition: all 0.2s ease;
}

#programTabs .nav-link:hover {
    background: #e2e8f0 !important;
    color: #000000 !important;
}

#programTabs .nav-link.active {
    background: #0A192F !important;
    color: #F59E0B !important;
    border-color: #0A192F !important;
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.35) !important;
}

/* Universal Text Contrast Enforcement Across Conference Pages */
.conf-body h1:not(.text-white):not(.conf-white), 
.conf-body h2:not(.text-white):not(.conf-white), 
.conf-body h3:not(.text-white):not(.conf-white), 
.conf-body h4:not(.text-white):not(.conf-white), 
.conf-body h5:not(.text-white):not(.conf-white), 
.conf-body h6:not(.text-white):not(.conf-white) {
    color: #0A192F;
    font-weight: 800;
}

/* Explicit Text White Overrides for Dark Containers & Banners */
.conf-body .text-white,
.conf-body .text-white *,
.conf-body h1.text-white,
.conf-body h2.text-white,
.conf-body h3.text-white,
.conf-body h4.text-white,
.conf-body p.text-white,
.conf-body .lead.text-white,
.conf-abstract-banner h2,
.conf-abstract-banner p,
.conf-abstract-banner .lead,
.conf-abstract-banner span.text-white {
    color: #FFFFFF !important;
}

.conf-hero h1,
.conf-hero h2,
.conf-hero h3,
.conf-hero h4,
.conf-hero h5,
.conf-hero h6,
.conf-hero p,
.conf-hero span {
    color: #FFFFFF !important;
}

.conf-hero .highlight-gold,
.conf-hero .title-accent,
.conf-hero .conf-hero-pretitle,
.conf-hero .text-warning,
.conf-hero i.text-warning {
    color: #F59E0B !important;
}

.conf-hero .conf-hero-badge,
.conf-hero .badge.bg-warning,
.conf-hero .badge.bg-warning * {
    color: #06111E !important;
}

/* Cards & Text Crisp Dark Enforcement */
.conf-body .p-4.bg-white,
.conf-body .p-md-5.bg-white,
.conf-body .pricing-card,
.conf-body .workshop-card,
.conf-body .session-card,
.conf-body .doctor-card {
    color: #0F172A !important;
}

.conf-body p:not(.text-white):not(.conf-white) {
    color: #0F172A;
}

.conf-body .text-secondary:not(.text-white),
.conf-body p.text-secondary:not(.text-white),
.conf-body span.text-secondary:not(.text-white),
.conf-body div.text-secondary:not(.text-white) {
    color: #1E293B !important;
    font-weight: 550;
}

.conf-body .text-muted:not(.text-white),
.conf-body p.text-muted:not(.text-white),
.conf-body span.text-muted:not(.text-white),
.conf-body small.text-muted:not(.text-white) {
    color: #1E293B !important;
    font-weight: 550;
}

.conf-body .lead:not(.text-white) {
    color: #0F172A;
    font-weight: 600;
}

.conf-body .form-label {
    color: #0A192F !important;
    font-weight: 750;
    font-size: 0.94rem;
}

.conf-body .form-control,
.conf-body .form-select {
    color: #0F172A !important;
    font-weight: 500;
    border: 1.5px solid #94A3B8;
}

.conf-body .form-control:focus,
.conf-body .form-select:focus {
    border-color: #0A192F;
    box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.2);
}

.conf-body .table td,
.conf-body .table th {
    color: #0F172A !important;
    border-color: #CBD5E1;
}

.conf-body .table th {
    background-color: #F1F5F9 !important;
    color: #0A192F !important;
    font-weight: 750;
}

/* Inner Page Hero (Theme, Committee, Speakers, Venue, Abstracts, Registration) */
.conf-body section[style*="linear-gradient"] h1,
.conf-body section[style*="linear-gradient"] p,
.conf-body section[style*="linear-gradient"] span.text-white {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.badge-gold {
    background: #F59E0B;
    color: #06111E !important;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

/* Unified Inner Hero Background Across All Conference Pages */
.conf-body section.py-5[style*="linear-gradient"] {
    background: linear-gradient(135deg, #050d1a 0%, #0a192f 50%, #0f2744 100%) !important;
    border-bottom: 4px solid #D4AF37 !important;
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.5) !important;
}

/* ==============================================================
   COMPREHENSIVE MOBILE CONTAINMENT & ZERO-OVERFLOW ENFORCEMENT
   Guarantees all boxes, text, badges, tables & cards stay 100% inside screen
   ============================================================== */

/* 1. Global Box-Sizing & Viewport Boundary */
html, 
body.conf-body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    background-color: #0A192F !important;
}

.conf-body *,
.conf-body *::before,
.conf-body *::after {
    box-sizing: border-box !important;
    max-width: 100%;
}

/* 2. Text Overflow Wrap & Word-Break Protection */
.conf-body p,
.conf-body h1,
.conf-body h2,
.conf-body h3,
.conf-body h4,
.conf-body h5,
.conf-body h6,
.conf-body span,
.conf-body a,
.conf-body div,
.conf-body li,
.conf-body td,
.conf-body th,
.conf-body label {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* 3. Badges Never Overflow - Override Bootstrap's white-space: nowrap */
.conf-body .badge,
.conf-body .conf-hero-badge,
.conf-body .badge-gold {
    white-space: normal !important;
    max-width: 100% !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    text-align: left;
    display: inline-flex;
    align-items: center;
}

/* 4. Media & Tables Strict Boundary */
.conf-body img,
.conf-body iframe,
.conf-body video,
.conf-body svg {
    max-width: 100% !important;
    height: auto;
}

.conf-body table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
}

/* 5. Mobile Layout & Padding Normalization (< 768px) */
@media (max-width: 767.98px) {
    .conf-body .container,
    .conf-body .container-fluid {
        padding-left: 14px !important;
        padding-right: 14px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Prevent negative margin blowout */
    .conf-body .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }

    .conf-body .row > [class*="col"] {
        padding-left: 6px !important;
        padding-right: 6px !important;
        max-width: 100% !important;
    }

    /* Card & Panel Internal Padding Reduction for Maximum Text Room */
    .conf-body .p-4,
    .conf-body .p-5,
    .conf-body .p-md-5,
    .conf-body .session-card,
    .conf-body .workshop-card,
    .conf-body .pricing-card,
    .conf-body .doctor-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Featured Pricing Card no scale overflow */
    .pricing-card.featured {
        transform: none !important;
    }

    /* Typography Scaling for Mobile Viewports */
    .conf-hero-title {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
    }

    .conf-hero-title .conf-hero-pretitle {
        font-size: 0.72rem !important;
        letter-spacing: 1px !important;
    }

    .conf-hero-title .conf-hero-main {
        font-size: 1.35rem !important;
        line-height: 1.22 !important;
    }

    .conf-hero-title .title-accent {
        font-size: 1.60rem !important;
    }

    .conf-body h1.display-5,
    .conf-body .display-5 {
        font-size: 1.70rem !important;
        line-height: 1.25 !important;
    }

    .conf-body h2.display-6,
    .conf-body .display-6 {
        font-size: 1.40rem !important;
        line-height: 1.25 !important;
    }

    .conf-body .lead {
        font-size: 0.98rem !important;
        line-height: 1.6 !important;
    }

    /* Action Buttons Full Width & Multi-line Safe */
    .conf-hero .btn,
    .conf-abstract-banner .btn,
    .conf-body .d-flex.flex-wrap.gap-3 > a.btn,
    .conf-body .d-flex.flex-wrap.gap-3 > button.btn {
        width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        padding: 12px 14px !important;
        font-size: 0.98rem !important;
        margin-bottom: 6px !important;
    }

    /* Info Pills Stack Cleanly on Small Screens */
    .conf-info-pill {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        font-size: 0.82rem !important;
        padding: 8px 12px !important;
        white-space: normal !important;
        justify-content: flex-start !important;
    }

    /* Program Timetable Tabs Vertical Stack */
    #programTabs {
        flex-direction: column !important;
        border-radius: 12px !important;
        padding: 6px !important;
        gap: 6px !important;
    }

    #programTabs .nav-item {
        width: 100% !important;
    }

    #programTabs .nav-link {
        border-radius: 8px !important;
        padding: 10px 12px !important;
        font-size: 0.88rem !important;
        text-align: center !important;
        width: 100% !important;
        white-space: normal !important;
    }

    /* Talk Rows Vertical Stack */
    .talk-row {
        padding: 8px 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .talk-topic {
        font-size: 0.90rem !important;
    }

    .talk-speaker {
        font-size: 0.84rem !important;
    }

    .faculty-meta {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }

    /* Modals Fit Exactly Inside Mobile Screen */
    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }

    .modal-header {
        padding: 12px 14px !important;
        align-items: flex-start !important;
    }

    .modal-header .d-flex {
        flex-wrap: wrap !important;
        max-width: calc(100% - 32px) !important;
    }

    .modal-title {
        font-size: 1rem !important;
    }

    .modal-footer {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px 14px !important;
    }

    .modal-footer > * {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Floating Back to Top Button Position */
    #backToTop {
        bottom: 18px !important;
        right: 14px !important;
        width: 42px !important;
        height: 42px !important;
    }
}

/* 6. Ultra-Compact Screen Normalization (< 576px) */
@media (max-width: 575.98px) {
    .conf-hero {
        padding: 40px 0 35px 0 !important;
    }

    .conf-hero-title {
        font-size: 1.40rem !important;
    }

    .conf-hero-title .title-accent {
        font-size: 1.50rem !important;
    }

    .conf-hero-theme-text {
        font-size: 1.05rem !important;
        line-height: 1.45 !important;
    }

    /* Countdown Boxes Fit Perfectly in 1 Row (No Spilling) */
    .conf-body .countdown-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: space-between !important;
    }

    .conf-body .countdown-box {
        flex: 1 1 25% !important;
        min-width: 0 !important;
        padding: 8px 3px !important;
        border-radius: 8px !important;
    }

    .conf-body .countdown-num {
        font-size: 1.30rem !important;
        line-height: 1 !important;
        margin-bottom: 2px !important;
    }

    .conf-body .countdown-label {
        font-size: 0.62rem !important;
        letter-spacing: 0.2px !important;
    }

    /* Accordion Button Padding */
    .accordion-button {
        padding: 12px 14px !important;
        font-size: 0.94rem !important;
    }

    .accordion-body {
        padding: 12px 14px !important;
        font-size: 0.90rem !important;
    }
}
