/* =====================================================================
   Event Page review 01.12 ("Indonesian Society - Event Page.docx")
   ===================================================================== */

/* --- Top bar: quick links left, contact + social right --- */
.top-bar__right { display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; }
.top-bar__right .top-bar__info { flex-wrap: nowrap; }
.top-bar__right .top-bar__social { flex: none; }

/* --- Back-to-top: left, above WhatsApp (was hidden behind the Tawk chat bubble on the right) --- */
.back-to-top { right: auto; left: 1.6rem; bottom: calc(1.4rem + 52px + .8rem); }
@media (max-width: 767.98px) { .back-to-top { left: 1.1rem; bottom: calc(1rem + 48px + .7rem); width: 44px; height: 44px; } }

/* --- Security alert bar (fixed bottom, Close button) - as on WARK --- */
.ev-alertbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045; background: #fff; border-top: 3px solid var(--secondary); box-shadow: 0 -10px 30px rgba(36, 24, 51, .18); }
.ev-alertbar[hidden] { display: none; }
.ev-alertbar__inner { display: flex; align-items: center; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.ev-alertbar__icon { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fbeef6; color: var(--secondary); }
.ev-alertbar__text { margin: 0; flex: 1; font-size: .84rem; line-height: 1.5; color: var(--dark); }
.ev-alertbar__text strong { color: var(--secondary); margin-right: .25rem; }
.ev-alertbar__text a { color: var(--primary); font-weight: 700; }
.ev-alertbar__close { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; border: 0; border-radius: 10px; padding: .55rem 1.05rem; background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem; cursor: pointer; }
.ev-alertbar__close:hover { background: var(--secondary); }
body.has-alertbar .footer-bottom { padding-bottom: calc(var(--ev-alertbar-h, 70px) + 1rem); }
body.has-alertbar .whatsapp-float { bottom: calc(var(--ev-alertbar-h, 70px) + 16px); }
body.has-alertbar .back-to-top { bottom: calc(var(--ev-alertbar-h, 70px) + 16px + 52px + .8rem); }
@media (max-width: 575.98px) {
    .ev-alertbar__inner { flex-wrap: wrap; gap: .6rem; }
    .ev-alertbar__icon { display: none; }
    .ev-alertbar__text { font-size: .78rem; flex-basis: 100%; }
    .ev-alertbar__close { margin-left: auto; padding: .4rem .9rem; }
}

/* --- Dark sections inside the inner-page layout ----------------------------
   .page-layout__main > section { background: none } removed the dark gradient,
   leaving the light text of .section--dark (stats, Important Notes, Need
   Assistance...) on white - "make this section visible". Give them their
   background back as a rounded panel. */
.page-layout__main > section.section--dark {
    background: var(--grad-hero);
    border-radius: 22px;
    padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.2rem, 3vw, 2.4rem);
    margin-bottom: 3rem;
}
.page-layout__main > section.section--dark:last-child { margin-bottom: 0; padding-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.page-layout__main > section.section--dark > .container { padding-left: 0; padding-right: 0; }

/* --- Award cards: same size (descriptions removed) --- */
.award-highlight__paper { margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.award-highlight__name { min-height: 2.6em; }
.award-highlight__org { min-height: 2.6em; }

/* --- Home banner like the other WWC sites (review 01.12): conference photo under a deep
       brand overlay, white text, theme + meta + buttons left, SDG panel right; countdown removed --- */
.hero.hero--wwc { background: #2a0f3f; color: #fff; padding: clamp(3rem, 6vw, 5.2rem) 0 clamp(4.5rem, 8vw, 6.5rem); }
.hero.hero--wwc::before {
    background:
        linear-gradient(100deg, rgba(36, 10, 58, .94) 0%, rgba(67, 31, 98, .88) 45%, rgba(155, 27, 74, .72) 100%),
        url("../img/highlights/highlight-02.jpg") center/cover no-repeat;
    opacity: 1;
}
.hero--wwc .hero__title { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero--wwc .hero__title span { color: #ff8fb6; }
.hero--wwc .hero__code { color: #ffb3cf; }
.hero--wwc .hero__meta li { color: #fff; }
.hero--wwc .hero__meta i { background: rgba(255, 255, 255, .14); color: #ffb3cf; }
.hero--wwc .hero__org { color: #e8d6f2; }
.hero--wwc .hero__org strong { color: #fff; }
.hero--wwc .assoc__label { color: #fff; }
.hero--wwc .assoc__item { background: rgba(255, 255, 255, .95); color: var(--primary-dark); border-color: transparent; }
.hero--wwc .conf-theme.hero-theme { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-left: 4px solid #ff8fb6; border-radius: 0 14px 14px 0; backdrop-filter: blur(4px); }
.hero--wwc .conf-theme.hero-theme .conf-theme__label { color: #ffb3cf; }
.hero--wwc .conf-theme.hero-theme .conf-theme__text { color: #fff; }
.hero--wwc .btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero--wwc .btn-outline-light:hover { background: #fff; color: var(--primary-dark); }
.hero--wwc .hero-sdg { margin-top: 0; }
.hero--wwc .hero-sdg .sdgb { background: rgba(255, 255, 255, .96); }
.hero--wwc .assoc__item:hover { background: #fff; }

/* --- Recent Conference Highlights: equal-tile photo slider --- */
.hl-slider { position: relative; }
.hl-slider__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: .25rem 0 .5rem; }
.hl-slider__track::-webkit-scrollbar { display: none; }
.hl-slider__item { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; background: var(--light); }
.hl-slider__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.hl-slider__item:hover img { transform: scale(1.05); }
.hl-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--primary); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
.hl-slider__nav:hover { background: var(--grad-brand); color: #fff; }
.hl-slider__nav--prev { left: -18px; }
.hl-slider__nav--next { right: -18px; }
@media (max-width: 991.98px) { .hl-slider__item { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 575.98px) { .hl-slider__item { flex-basis: 100%; } .hl-slider__nav--prev { left: 4px; } .hl-slider__nav--next { right: 4px; } }

/* --- Important Dates: four step cards in a row (review 01.12 "change the design") --- */
.timeline--steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.timeline--steps::before { left: 12%; right: 12%; top: 16px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--secondary), var(--accent)); }
.timeline--steps .timeline__item { padding: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.timeline--steps .timeline__dot { position: relative; left: auto; top: auto; margin-bottom: 1rem; z-index: 1; }
.timeline--steps .timeline__card { width: 100%; flex: 1; padding: 1.3rem 1rem; border-top: 3px solid var(--secondary); }
.timeline--steps .timeline__card:hover { transform: translateY(-6px); }
.timeline--steps .timeline__date { font-size: 1.05rem; color: var(--primary); }
.timeline--steps .timeline__item--active .timeline__card { background: var(--grad-brand); border-color: transparent; }
.timeline--steps .timeline__item--active .timeline__card * { color: #fff; }
@media (max-width: 991.98px) { .timeline--steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .timeline--steps::before { display: none; } }
@media (max-width: 575.98px) { .timeline--steps { grid-template-columns: 1fr; } }

/* --- Paper form: co-author name boxes + "same as mobile" tick --- */
.coauthor-list { display: grid; gap: .5rem; }
.coauthor-list__none { margin: 0; }
.same-wa { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; color: var(--dark); margin: 0 0 .45rem; cursor: pointer; }
.same-wa input { width: 1rem; height: 1rem; accent-color: var(--secondary); }
.phone-pair .is-locked { pointer-events: none; background: var(--light); }

/* --- Speaker photos: always a 140px circle (a tall photo showed as an oval) --- */
.speaker-card__photo { flex: none; }
.speaker-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border-radius: 50%; object-fit: cover; object-position: center top; }
.speaker-card__name { min-height: 2.6em; display: flex; align-items: flex-start; justify-content: center; }

/* --- Editorial Board "Key Responsibilities": card grid instead of the zigzag timeline --- */
.ms-timeline--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: none; padding: 0; }
.ms-timeline--grid::before { display: none; }
.ms-timeline--grid .ms-item { position: static; width: auto; left: auto; padding: 0; }
.ms-timeline--grid .ms-item__dot { display: none; }
.ms-timeline--grid .ms-card { height: 100%; display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 1.1rem; align-content: start; border-top: 3px solid var(--secondary); background: #fff; }
.ms-timeline--grid .ms-card__status { grid-column: 1 / -1; justify-self: start; }
.ms-timeline--grid .ms-card__icon { grid-row: span 4; margin-bottom: 0; }
@media (max-width: 767.98px) { .ms-timeline--grid { grid-template-columns: 1fr; } }

/* --- Footer newsletter: Zoho subscription confirmation --- */
.footer-newsletter__done { margin: 0 0 .7rem; padding: .55rem .9rem; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: .9rem; }
.footer-newsletter__done i { color: #7dffb0; margin-right: .35rem; }

/* --- Speakers / committee members by department (dashboard database) --- */
.dept-group { margin-bottom: 2.4rem; }
.dept-group:last-child { margin-bottom: 0; }
.dept-group__title { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); padding-bottom: .6rem; margin-bottom: 1.2rem; border-bottom: 2px solid var(--border); }
.dept-group__title i { color: var(--secondary); }
.dept-group__count { margin-left: auto; min-width: 28px; height: 28px; padding: 0 .55rem; border-radius: var(--radius-pill); background: var(--grad-brand); color: #fff; font-size: .8rem; display: inline-grid; place-items: center; }
.dept-card { height: 100%; text-align: center; padding: 1.6rem 1.2rem 1.3rem; }
.dept-card__photo { position: relative; width: 110px; height: 110px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; background: var(--light-2, #f3e9f3); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.dept-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dept-card__photo i { font-size: 2.4rem; color: var(--primary); opacity: .35; }
.dept-card__name { font-size: 1.02rem; font-weight: 700; color: var(--primary-dark); margin-bottom: .3rem; }
.dept-card__role { font-size: .86rem; color: var(--dark); margin-bottom: .3rem; line-height: 1.45; }
.dept-card__place { font-size: .84rem; color: var(--muted); margin-bottom: .7rem; }
.dept-card__place i { color: var(--secondary); }
.dept-card__badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--secondary); background: rgba(var(--secondary-rgb), .1); padding: .25rem .7rem; border-radius: var(--radius-pill); }
.top-bar .col-xl-7 > .top-bar__info { flex-wrap: nowrap; gap: 1.2rem; }
@media (max-width: 1399.98px) { .top-bar { font-size: .8rem; } .top-bar .col-xl-7 > .top-bar__info { gap: .9rem; } .top-bar__right { gap: 1rem; } }
@media (max-width: 1199.98px) { .top-bar__right { justify-content: flex-start; } }

/* ===================== Correction 2.12 ===================== */
/* Speakers / committee by department: topic centred, no count badge, no icon over the photo */
.dept-group__title { justify-content: center; text-align: center; border-bottom: 0; padding-bottom: 0; margin-bottom: 1.4rem; }
.dept-group__name { position: relative; display: inline-block; padding-bottom: .55rem; }
.dept-group__name::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--grad-brand); transform: translateX(-50%); }
.dept-card__photo i { display: none; }
.dept-card__photo.is-empty::before { content: "\f007"; font-family: "Font Awesome 6 Pro"; font-weight: 900; font-size: 2.4rem; color: var(--primary); opacity: .35; }
/* Editorial board / speakers pages: no tall empty gap between the last cards and the CTA */
.page-layout__main > section.section--people { padding-bottom: 1.5rem; }
.page-layout__main > section.section--people + section { padding-top: 0; }
.speaker-card__photo.is-empty { display: grid; place-items: center; background: var(--light-2, #f3e9f3); }
.speaker-card__photo.is-empty::before { content: "\f007"; font-family: "Font Awesome 6 Pro"; font-weight: 900; font-size: 2.8rem; color: var(--primary); opacity: .35; }
/* Social media cards (event home) */
.social-card { display: flex; flex-direction: column; align-items: center; gap: .55rem; height: 100%; padding: 2rem 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--primary-dark); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--secondary-rgb), .4); color: var(--primary-dark); }
.social-card__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; color: #fff; }
.social-card--fb .social-card__icon { background: #1877f2; }
.social-card--in .social-card__icon { background: #0a66c2; }
.social-card__name { font-size: 1.15rem; font-weight: 700; }
.social-card__cta { font-size: .9rem; color: var(--secondary); font-weight: 600; }
.social-card__cta i { font-size: .75rem; margin-left: .2rem; }
