/* Landing Page Styles — IBAO Conferences */

/* Background */
body {
    background-color: #061446;
    background-image: url('/images/bkg-home.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    background-attachment: scroll;
}

/* Alternate background for inner pages (Register, Cart, Sponsors, etc.) */
body.bg-inner {
    background-image: url('/images/bkg-2.png') !important;
}

/* Responsive zoom — scale down on smaller monitors to match design */
@media (min-width: 1024px) and (max-width: 1279px) {
    body { zoom: 0.75; }
}
@media (min-width: 1280px) and (max-width: 1535px) {
    body { zoom: 0.8; }
}
@media (min-width: 1536px) and (max-width: 2559px) {
    body { zoom: 0.9; }
}
@media (min-width: 2560px) {
    body { zoom: 1; }
}

/* Nav link styles */
.nav-link {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    color: #8495D3 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.nav-link:hover, .nav-active {
    color: #ffffff !important;
}

/* Font utility classes */
.f-playfair { font-family: 'Playfair Display', serif; }
.f-roboto { font-family: 'Roboto', sans-serif; }
.f-poppins { font-family: 'Poppins', sans-serif; }

/* Line-height utilities */
.lh-tight { line-height: 1.1; }
.lh-extra-tight { line-height: 1; }

/* Stagger classes — desktop only (use transform to avoid breaking grid flow) */
@media (min-width: 1024px) {
    .stagger-down-1 { transform: translateY(40px); }
    .stagger-down-2 { transform: translateY(80px); }
    .stagger-up-1 { transform: translateY(-40px); }
    .stagger-up-2 { transform: translateY(-80px); }
}

/* Gradient button */
.btn-gradient-blue {
    background: linear-gradient(180deg, #0a215e 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Swiper Custom pagination */
.swiper-pagination-bullet {
    background: #FFFFFF !important;
    opacity: 1 !important;
    width: 6px !important;
    height: 6px !important;
}
.swiper-pagination-bullet-active {
    background: #F6A100 !important;
    width: 30px !important;
    border-radius: 10px !important;
}

/* Mobile menu overlay */
.mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.mobile-menu.hidden {
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}
.mobile-menu:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ===== Workshop Title & Preview ===== */
.workshop-title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.workshop-preview-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Workshop Detail Modal ===== */
.workshop-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 13, 50, 0);
    backdrop-filter: blur(0);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    pointer-events: none;
    padding: 20px;
}

.workshop-modal.active {
    background: rgba(5, 13, 50, 0.85);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.workshop-modal-content {
    position: relative;
    width: 100%;
    max-width: 780px;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #0a1a4a 0%, #061446 50%, #0d1f5c 100%);
    border: 1px solid #94ABFF;
    border-radius: 1.5rem;
    padding: 32px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.workshop-modal.active .workshop-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.workshop-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8495D3;
    transition: all 0.2s ease;
}

.workshop-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Scrollbar styling for modal */
.workshop-modal-content::-webkit-scrollbar {
    width: 6px;
}

.workshop-modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 1.5rem 0;
}

.workshop-modal-content::-webkit-scrollbar-thumb {
    background: rgba(148, 171, 255, 0.3);
    border-radius: 3px;
}

.workshop-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 171, 255, 0.5);
}

/* HTML content styling inside modal — override inline styles injected by the
   rich-text editor (Quill) such as color:rgb(0,0,0) and background-color. */
.workshop-modal-body,
.workshop-modal-body p,
.workshop-modal-body span,
.workshop-modal-body li,
.workshop-modal-body h1,
.workshop-modal-body h2,
.workshop-modal-body h3,
.workshop-modal-body h4,
.workshop-modal-body h5,
.workshop-modal-body h6 {
    color: rgba(255, 255, 255, 0.85) !important;
    background-color: transparent !important;
}

.workshop-modal-body p {
    margin-bottom: 12px;
}

.workshop-modal-body ol,
.workshop-modal-body ul {
    padding-left: 24px;
    margin-bottom: 12px;
}

.workshop-modal-body ol {
    list-style-type: none;
}
.workshop-modal-body li[data-list="bullet"] {
    list-style-type: disc;
}
.workshop-modal-body li[data-list="ordered"] {
    list-style-type: decimal;
}

.workshop-modal-body ul {
    list-style-type: disc;
}

.workshop-modal-body li {
    margin-bottom: 6px;
}

.workshop-modal-body strong,
.workshop-modal-body b {
    color: #ffffff !important;
    background-color: transparent !important;
    font-weight: 700;
}

.workshop-modal-body em {
    font-style: italic;
    color: #ffffff !important;
    background-color: transparent !important;
}

.workshop-modal-body a {
    color: #94ABFF;
    text-decoration: underline;
    transition: color 0.2s;
}

.workshop-modal-body a:hover {
    color: #F6A100;
}

.workshop-modal-body br + br {
    display: none;
}

@media (max-width: 640px) {
    .workshop-modal-content {
        padding: 24px 20px;
        max-height: 90vh;
        border-radius: 1rem;
    }
}

/* ===== Sponsors Page ===== */

/* Hero text styles */
.txt-pre-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: #F6A100;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
}

.txt-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    color: #ffffff;
    line-height: 1.1;
}

.txt-hero-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #8495D3;
}

/* Benefits table */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.card-level {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    text-transform: capitalize;
}

.card-price {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.btn-sponsor-add {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    border: 1.5px solid #ffffff;
    border-radius: 9999px;
    padding: 8px 24px;
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sponsor-add:hover {
    background: #ffffff;
    color: #050D32;
}

.table-row-item {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #ffffff;
    padding: 14px 8px;
    border-bottom: 1px solid #8495D3;
    vertical-align: middle;
}

.col-desc {
    text-align: left;
    width: 300px;
    max-width: 300px;
    padding-left: 0;
    padding-right: 48px;
    line-height: 1.4;
}

.col-val {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

.th-pricing {
    vertical-align: bottom;
    padding-bottom: 20px;
    border-bottom: 1px solid #8495D3;
    text-align: center;
}

/* Why Sponsor section */
.why-sponsor-container {
    position: relative;
    background-image: url('/images/Group_142.png');
    background-size: cover;
    background-position: center;
    min-height: 400px;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-sponsor-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 13, 50, 0.55);
}

.why-sponsor-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 48px 24px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .txt-pre-title {
        font-size: 16px;
    }
    .txt-hero-title {
        font-size: 36px;
    }
    .card-price {
        font-size: 28px;
    }
    .col-desc {
        width: 160px;
        min-width: 140px;
        padding-right: 16px;
    }
    .table-row-item {
        font-size: 14px;
        padding: 10px 6px;
    }
}

/* ===== Program Page Timeline ===== */

/* Hero */
.program-hero-presenting {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #F6A100;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0;
}
.program-hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 56px;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 0;
}

/* Day navigation tabs */
.program-txt-day-active {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    color: #F6A100 !important;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
}
.program-txt-day-inactive {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    color: #7080BC !important;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.2em;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.program-txt-day-inactive:hover {
    color: #F6A100 !important;
    text-shadow: 0px 4px 15px rgba(246, 161, 0, 0.1);
    opacity: 0.7;
}

/* Timeline text styles */
.program-txt-title-gold {
    font-family: 'Playfair Display', serif !important;
    font-weight: 400 !important;
    font-size: 24px !important;
    color: #F6A100 !important;
    line-height: 1.2 !important;
    margin-bottom: 4px;
}
.program-txt-tag-blue {
    font-family: 'Playfair Display', serif !important;
    font-weight: 400 !important;
    font-size: 24px !important;
    color: #7080BC !important;
    display: block;
    margin-bottom: 2px;
}
.program-txt-body {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    color: #FFFFFF !important;
    line-height: 1.5 !important;
}
.program-txt-body-bold {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #FFFFFF !important;
}

/* Timeline line */
.program-timeline-line {
    position: absolute;
    top: 0;
    bottom: 24px;
    left: 50%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-50%);
}

/* Dots — aligned with category header */
.program-dot-large {
    width: 53px;
    height: 53px;
    background-color: #F6A100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    z-index: 20;
}
.program-dot-small {
    width: 17px;
    height: 17px;
    background-color: #F6A100;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    z-index: 20;
}
/* Offset dot when speaker photo is above the category */
.program-dot-small.program-dot-photo-offset {
    top: 104px;
}

/* Speaker photo */
.program-speaker-photo {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
}

/* Symposium speaker line with topic */
.program-speaker-line-truncate {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 1.5;
    margin-bottom: 4px;
}
.program-txt-speaker-topic {
    font-weight: 400;
    font-size: 15px;
    color: #A6B5E0;
    font-style: italic;
}

/* Invited speaker topic subtitle */
.program-txt-topic {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #A6B5E0;
    line-height: 1.4;
    font-style: italic;
    margin-top: 2px;
    margin-bottom: 6px;
}

/* Event description (rendered HTML) */
.program-event-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 1.5;
}
.program-event-desc p {
    margin-bottom: 4px;
}
.program-event-desc ol,
.program-event-desc ul {
    padding-left: 20px;
    margin-bottom: 4px;
}
.program-event-desc ol {
    list-style-type: none;
}
.program-event-desc ul {
    list-style-type: disc;
}
.program-event-desc li[data-list="bullet"] {
    list-style-type: disc;
}
.program-event-desc li[data-list="ordered"] {
    list-style-type: decimal;
}
.program-event-desc li {
    margin-bottom: 2px;
}
.program-event-desc strong,
.program-event-desc b {
    color: #FFFFFF !important;
    background-color: transparent !important;
    font-weight: 700;
}
.program-event-desc span,
.program-event-desc em,
.program-event-desc h1,
.program-event-desc h2,
.program-event-desc h3,
.program-event-desc h4,
.program-event-desc h5,
.program-event-desc h6 {
    color: #FFFFFF !important;
    background-color: transparent !important;
}
.program-event-desc .ql-ui,
.program-bio-body .ql-ui,
.workshop-modal-body .ql-ui {
    display: none;
}

/* Speaker initials fallback */
.program-speaker-initials {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background-color: rgba(148, 171, 255, 0.2);
    border: 1px solid rgba(148, 171, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #F6A100;
    font-weight: 700;
}

/* Time wrapper */
.program-time-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.program-time-right { justify-content: flex-end; }
.program-time-left { justify-content: flex-start; }

/* Grid columns */
.program-col-left, .program-col-right, .program-spacer {
    width: 45.833333% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Break event top spacing */
.program-break-spacing {
    margin-top: 40px !important;
}

/* Event row spacing */
.program-event-row {
    margin-bottom: 16px !important;
}
.program-event-row:not(:first-child):not(.program-break-spacing) {
    margin-top: 0 !important;
}

/* Page fade animation */
@keyframes programFadeIn {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Speaker link clickable styling */
.program-speaker-link {
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}
.program-speaker-link:hover {
    color: #F6A100;
    border-bottom-color: #F6A100;
}
.program-speaker-link-gold {
    color: #F6A100 !important;
    border-bottom-color: rgba(246, 161, 0, 0.4);
    font-family: 'Playfair Display', serif !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}
.program-speaker-link-gold:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
}
.program-speaker-line-truncate .program-speaker-link {
    font-weight: 700;
}
.program-topic-link {
    color: #A6B5E0 !important;
    font-style: italic;
    font-size: 16px;
    text-decoration: none;
    border-bottom: 1px dotted rgba(166, 181, 224, 0.35);
    cursor: pointer;
    transition: color 0.2s ease;
}
.program-topic-link:hover {
    color: #F6A100 !important;
    border-bottom-color: #F6A100;
}
.program-topic-link-invited {
    font-size: 17px !important;
}

/* Speaker Bio Modal */
.program-bio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    backdrop-filter: none;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    padding: 20px;
    pointer-events: none;
}
.program-bio-modal.active {
    background: rgba(5, 13, 50, 0.85);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}
.program-bio-modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #0a1d55 0%, #061446 100%);
    border: 1px solid rgba(148, 171, 255, 0.15);
    border-radius: 1.5rem;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.program-bio-modal.active .program-bio-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.program-bio-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.program-bio-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.program-bio-modal-content::-webkit-scrollbar { width: 6px; }
.program-bio-modal-content::-webkit-scrollbar-track { background: transparent; margin: 1.5rem 0; }
.program-bio-modal-content::-webkit-scrollbar-thumb { background: rgba(148, 171, 255, 0.3); border-radius: 3px; }
.program-bio-modal-content::-webkit-scrollbar-thumb:hover { background: rgba(148, 171, 255, 0.5); }

.program-bio-modal-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.program-bio-modal-initials {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(148, 171, 255, 0.2);
    border: 1px solid rgba(148, 171, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #F6A100;
    font-weight: 700;
    flex-shrink: 0;
}
.program-bio-body p { margin-bottom: 12px; }
.program-bio-body ol, .program-bio-body ul { padding-left: 24px; margin-bottom: 12px; }
.program-bio-body ol { list-style-type: none; }
.program-bio-body ul { list-style-type: disc; }
.program-bio-body li[data-list="bullet"] { list-style-type: disc; }
.program-bio-body li[data-list="ordered"] { list-style-type: decimal; }
.program-bio-body li { margin-bottom: 6px; }
.program-bio-body strong, .program-bio-body b { color: #ffffff !important; background-color: transparent !important; font-weight: 700; }
.program-bio-body em { font-style: italic; color: #ffffff !important; background-color: transparent !important; }
.program-bio-body span,
.program-bio-body h1, .program-bio-body h2, .program-bio-body h3,
.program-bio-body h4, .program-bio-body h5, .program-bio-body h6 { color: #ffffff !important; background-color: transparent !important; }

@media (max-width: 640px) {
    .program-bio-modal-content {
        padding: 24px 20px;
        max-height: 90vh;
        border-radius: 1rem;
    }
    .program-bio-modal-photo,
    .program-bio-modal-initials {
        width: 80px;
        height: 80px;
    }
    .program-bio-modal-initials {
        font-size: 28px;
    }
}

/* Program mobile responsive */
@media (max-width: 768px) {
    .program-timeline-line {
        left: 26px;
        transform: none;
        bottom: 0;
    }
    .program-event-row {
        flex-direction: column !important;
        margin-bottom: 32px !important;
        margin-top: 0 !important;
    }
    .program-col-left {
        text-align: left !important;
        padding-right: 0 !important;
        padding-left: 56px !important;
        width: 100% !important;
    }
    .program-col-right {
        text-align: left !important;
        padding-left: 56px !important;
        width: 100% !important;
    }
    .program-dot-large {
        left: 26px !important;
        transform: translateX(-50%) !important;
        top: 0 !important;
    }
    .program-dot-small {
        left: 26px !important;
        transform: translateX(-50%) !important;
        top: 8px !important;
    }
    .program-spacer {
        display: none;
    }
    .program-time-right {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    .program-flex-end-mobile {
        justify-content: flex-start !important;
        margin-bottom: 10px;
    }
    .program-hero-title {
        font-size: 36px;
    }
    .program-hero-presenting {
        font-size: 16px;
    }
    .program-txt-day-active,
    .program-txt-day-inactive {
        font-size: 16px !important;
    }
}
