:root {
    --brand-red: #dc4405;
    --brand-red-dark: #a83504;
    --brand-orange: #f58220;
    --brand-gold: #f1b434;
    --brand-gold-light: #fff6e6;
    --brand-black: #000000;
    --dark-neutral: #1f1f1f;
    --gray-text: #555555;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;

    /* legacy variable names kept as aliases so nothing else breaks */
    --primary-rust: var(--brand-red);
    --primary-rust-dark: var(--brand-red-dark);
    --accent-gold: var(--brand-gold);
    --accent-gold-light: var(--brand-gold-light);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-neutral);
    background-color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading { font-family: 'Montserrat', sans-serif; }

/* ============ Navbar (white, logo-led) ============ */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding-top: .5rem;
    padding-bottom: .5rem;
}
.navbar-custom .navbar-logo { height: 52px; width: auto; }
.navbar-brand .brand-subtitle { color: var(--brand-red); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.navbar-custom .nav-link { color: #333333 !important; font-weight: 600; font-size: .92rem; }
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active { color: var(--brand-red) !important; }
.navbar-custom .navbar-toggler { border-color: rgba(0,0,0,.15); }

/* ============ Buttons ============ */
.btn-rust {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-orange) 100%);
    color: #fff; border: none; font-weight: 600; padding: .7rem 1.6rem; border-radius: 8px;
    transition: var(--transition); box-shadow: 0 4px 15px rgba(220,68,5,.3);
}
.btn-rust:hover, .btn-rust:focus { filter: brightness(0.92); color: #fff; transform: translateY(-2px); }
.btn-gold { background-color: var(--brand-gold); color: var(--dark-neutral); border: none; font-weight: 700; padding: .7rem 1.6rem; border-radius: 8px; transition: var(--transition); }
.btn-gold:hover { background-color: #dba32a; color: var(--dark-neutral); transform: translateY(-2px); }
.btn-outline-gold { border: 2px solid var(--brand-gold); color: var(--brand-gold); font-weight: 600; padding: .65rem 1.5rem; border-radius: 8px; background: transparent; }
.btn-outline-gold:hover { background-color: var(--brand-gold); color: var(--dark-neutral); }

/* ============ Hero (image + brand gradient overlay) ============ */
.hero-section {
    position: relative;
    color: #ffffff;
    padding: 150px 0 90px 0;
    background-image:
        linear-gradient(120deg, rgba(0,0,0,.82) 0%, rgba(120,30,0,.72) 40%, rgba(220,68,5,.55) 75%, rgba(245,130,32,.45) 100%),
        url('../img/hero-bg.svg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero-badge { background-color: var(--brand-red); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: .4rem 1rem; border-radius: 50px; display: inline-block; }
.hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.theme-highlight-box { background: rgba(0,0,0,.28); border-left: 4px solid var(--brand-gold); padding: 1.2rem 1.5rem; border-radius: 0 12px 12px 0; backdrop-filter: blur(2px); }
.event-info-pill { background: rgba(0,0,0,.32); border: 1px solid rgba(241,180,52,.35); border-radius: 12px; padding: 1.25rem; }

.countdown-card { background: #fff; color: var(--dark-neutral); border-radius: 16px; padding: 2rem; box-shadow: 0 15px 35px rgba(0,0,0,.35); border-top: 6px solid var(--brand-red); }
.timer-unit { background: var(--brand-gold-light); border-radius: 10px; padding: 12px 6px; text-align: center; }
.timer-val { font-size: 2rem; font-weight: 800; color: var(--brand-red); line-height: 1; }
.timer-lbl { font-size: .7rem; text-transform: uppercase; font-weight: 700; color: var(--gray-text); margin-top: 4px; }

/* ============ Page banner (inner pages) ============ */
.page-banner {
    position: relative;
    color: #fff;
    padding: 130px 0 50px 0;
    background-image: linear-gradient(120deg, rgba(0,0,0,.85) 0%, rgba(220,68,5,.75) 60%, rgba(245,130,32,.6) 100%), url('../img/hero-bg.svg');
    background-size: cover;
    background-position: center;
}
.page-banner h1 { font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.page-banner .breadcrumb a { color: var(--brand-gold); text-decoration: none; }
.page-banner .breadcrumb-item.active { color: #f5dca4; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ============ Section header ============ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-subtitle { text-transform: uppercase; font-weight: 700; font-size: .85rem; color: var(--brand-red); letter-spacing: 1px; display: block; margin-bottom: .5rem; }
.section-title { font-weight: 800; font-size: 2.1rem; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: linear-gradient(90deg, var(--brand-red), var(--brand-gold)); margin: 10px auto 0 auto; border-radius: 2px; }

/* ============ Sub-theme cards ============ */
.subtheme-card { background: #fff; border-radius: 14px; border: 1px solid rgba(0,0,0,.06); padding: 1.75rem; height: 100%; box-shadow: var(--card-shadow); transition: var(--transition); }
.subtheme-card:hover { transform: translateY(-6px); border-color: var(--brand-gold); box-shadow: 0 15px 35px rgba(220,68,5,.12); }
.subtheme-icon-wrapper { width: 55px; height: 55px; background-color: var(--brand-gold-light); color: var(--brand-red); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; }
.subtheme-card:hover .subtheme-icon-wrapper { background: linear-gradient(135deg, var(--brand-red), var(--brand-orange)); color: #fff; }

/* ============ Date cards ============ */
.date-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: var(--card-shadow); border-top: 4px solid var(--brand-gold); height: 100%; }
.date-card.active-date { border-top-color: var(--brand-red); background: linear-gradient(180deg, #fff 0%, var(--brand-gold-light) 100%); }
.date-badge { background: linear-gradient(135deg, var(--brand-red), var(--brand-orange)); color: #fff; font-weight: 700; font-size: .8rem; padding: .35rem .75rem; border-radius: 6px; display: inline-block; margin-bottom: .75rem; }

/* ============ Pricing ============ */
.pricing-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); border: 1px solid #eee; height: 100%; display: flex; flex-direction: column; }
.pricing-header-dark { background-color: var(--dark-neutral); color: #fff; padding: 1.75rem 1.5rem; text-align: center; }
.pricing-header-rust { background: linear-gradient(135deg, var(--brand-red), var(--brand-orange)); color: #fff; padding: 1.75rem 1.5rem; text-align: center; }
.price-amount { font-size: 2.1rem; font-weight: 800; color: var(--brand-red); }
.price-item { padding: 1rem 0; border-bottom: 1px dashed #e5e5e5; }
.price-item:last-child { border-bottom: none; }

.bank-card { background: #fff; border-radius: 16px; border: 2px solid var(--brand-gold); padding: 2rem; box-shadow: var(--card-shadow); }
.copy-btn { background: #f1f1f1; border: 1px solid #ddd; border-radius: 6px; font-size: .8rem; padding: .2rem .6rem; color: var(--dark-neutral); }
.copy-btn:hover { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }

.contact-info-card { background: var(--dark-neutral); color: #fff; border-radius: 16px; padding: 2.5rem; }
.contact-form-card { background: #fff; border-radius: 16px; padding: 2.5rem; box-shadow: var(--card-shadow); border: 1px solid #eee; }
.icon-box-round { width: 46px; height: 46px; background-color: var(--brand-gold); color: var(--dark-neutral); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }

/* ============ Speaker profile cards (avatar + ~100-word bio) ============ */
.speaker-card { background: #fff; border-radius: 16px; box-shadow: var(--card-shadow); overflow: hidden; height: 100%; transition: var(--transition); border: 1px solid rgba(0,0,0,.05); display: flex; flex-direction: column; }
.speaker-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(220,68,5,.16); }
.speaker-card-top { background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-orange) 55%, var(--brand-gold) 100%); padding: 1.6rem 1.5rem; display: flex; align-items: center; gap: 1.1rem; text-align: left; }
.speaker-avatar { width: 84px; height: 96px; min-width: 84px; border-radius: 14px; background: #fff; color: var(--brand-red); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 6px 16px rgba(0,0,0,.2); overflow: hidden; }
.speaker-avatar img, .board-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.speaker-info { min-width: 0; }
.speaker-card-top h5 { color: #fff; font-weight: 800; margin-bottom: .15rem; }
.speaker-role { color: #fff; font-weight: 600; font-size: .85rem; opacity: .95; }
.speaker-org { color: #fff; font-size: .8rem; opacity: .85; }
.speaker-bio { padding: 1.25rem 1.5rem 1.5rem 1.5rem; color: var(--gray-text); font-size: .87rem; flex-grow: 1; }
.speaker-bio-label { text-transform: uppercase; font-size: .7rem; font-weight: 700; color: var(--brand-red); letter-spacing: .5px; display: block; margin-bottom: .4rem; }

/* ============ Editorial board profile cards (avatar + ~200-word bio) ============ */
.board-card { background: #fff; border-radius: 16px; box-shadow: var(--card-shadow); overflow: hidden; height: 100%; transition: var(--transition); border: 1px solid rgba(0,0,0,.05); }
.board-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(220,68,5,.14); }
.board-card-header { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: var(--brand-gold-light); border-bottom: 3px solid var(--brand-gold); }
.board-avatar { width: 72px; height: 82px; min-width: 72px; border-radius: 13px; background: linear-gradient(135deg, var(--brand-red), var(--brand-orange)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; box-shadow: 0 4px 10px rgba(0,0,0,.15); overflow: hidden; }

/* Colored ring variants for photo avatars (cycled across cards) */
.ring-red   { border-color: var(--brand-red) !important; box-shadow: 0 6px 16px rgba(220,68,5,.25) !important; }
.ring-orange{ border-color: var(--brand-orange) !important; box-shadow: 0 6px 16px rgba(245,130,32,.25) !important; }
.ring-gold  { border-color: var(--brand-gold) !important; box-shadow: 0 6px 16px rgba(241,180,52,.3) !important; }
.board-card-header h5 { font-weight: 800; margin-bottom: .2rem; }
.board-role-badge { background: var(--brand-red); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: .2rem .6rem; border-radius: 20px; display: inline-block; margin-bottom: .2rem; }
.board-card-body { padding: 1.5rem; color: var(--gray-text); font-size: .88rem; }

/* ============ Program schedule timeline (slick) ============ */
.nav-pills .nav-link.active { background: linear-gradient(135deg, var(--brand-red), var(--brand-orange)); }
.nav-pills .nav-link { color: var(--dark-neutral); font-weight: 600; border: 1px solid rgba(0,0,0,.08); }

/* Centered, larger wrapper so the schedule reads as the page's focal block */
.schedule-wrap { max-width: 1080px; margin: 0 auto; }

.schedule-timeline { position: relative; padding-left: 190px; }
.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 83px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: linear-gradient(180deg, var(--brand-red), var(--brand-gold));
    border-radius: 4px;
}
.timeline-item { position: relative; margin-bottom: 2.3rem; }
.timeline-dot {
    position: absolute;
    left: -190px;
    top: 2px;
    width: 166px;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    color: #fff;
    font-weight: 700;
    font-size: 2em;
    line-height: 1.25;
    padding: .8rem .5rem;
    border-radius: 14px;
    box-shadow: 0 5px 14px rgba(220,68,5,.35);
}
.timeline-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--brand-gold);
    transition: var(--transition);
}
.timeline-item:hover .timeline-card { border-left-color: var(--brand-red); transform: translateX(5px); box-shadow: 0 14px 32px rgba(220,68,5,.16); }
.timeline-item:hover .timeline-dot { transform: scale(1.08); }
.timeline-card h6 { font-weight: 800; margin-bottom: .4rem; font-size: 1.15rem; }
.timeline-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-gold-light); color: var(--brand-red); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-right: .7rem; vertical-align: middle; }
.session-tag { font-size: .72rem; text-transform: uppercase; font-weight: 700; letter-spacing: .5px; padding: .25rem .65rem; border-radius: 20px; }
.tag-plenary { background: var(--brand-gold-light); color: var(--brand-red); }
.tag-break { background: #f1f1f1; color: #666; }
.tag-track { background: var(--dark-neutral); color: #fff; }

@media (max-width: 575px) {
    .schedule-timeline { padding-left: 118px; }
    .schedule-timeline::before { left: 50px; }
    .timeline-dot { left: -118px; width: 100px; font-size: 1.15em; padding: .55rem .35rem; }
    .timeline-card { padding: 1.25rem 1.4rem; }
}

/* ============ Footer ============ */
footer { background-color: #0f0f0f; color: #aaa; font-size: .9rem; padding: 2.5rem 0 1.5rem 0; }
footer a { color: var(--brand-gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 991px) {
    .hero-title { font-size: 2rem; }
    .hero-section { padding-top: 120px; padding-bottom: 60px; }
    .page-banner { padding-top: 110px; }
}
