/* ============================================================
   COMPONENTS — banner hero, all-menu side panel, LNB,
   sub-page layout, abstract form, committee, sessions
   ============================================================ */

/* ---------- HERO over banner photos ---------- */
.hero-bg-1 { background: url(../img/banner01.png) center/cover no-repeat; }
.hero-bg-2 { background: url(../img/banner02.png) center/cover no-repeat; }
.hero-bg-3 { background: url(../img/banner03.png) center/cover no-repeat; }
.hero-bg::before { background: linear-gradient(180deg, rgba(8,20,42,0.62) 0%, rgba(8,22,52,0.42) 45%, rgba(10,28,66,0.72) 100%); }
.hero-bg::after { display: none; }
.hero-title { color: #fff; }
.hero-title strong { background: linear-gradient(135deg, #8ed8ff, #eaf4ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-info { color: rgba(255,255,255,0.92); }
.hero-info .divider { background: rgba(255,255,255,0.5); }
.hero-badge { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); color: #fff; }
.countdown-box { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); box-shadow: none; }
.countdown-num { background: linear-gradient(135deg, #ffffff, #dfeeff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.countdown-label { color: rgba(255,255,255,0.75); }
.hero-free { color: rgba(255,255,255,0.82); }
.slide-btn { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.3); box-shadow: none; }
.slide-btn:hover { background: rgba(255,255,255,0.3); color: #fff; border-color: #fff; }

/* ---------- HEADER actions + all-menu button ---------- */
.header-actions { display: flex; align-items: center; gap: 16px; }
.all-menu-btn { display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: none; border: none; cursor: pointer; padding: 0; }
.all-menu-btn span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--transition); }
.all-menu-btn:hover span { background: var(--blue); }

/* ---------- ALL-MENU SIDE PANEL ---------- */
.all-menu {
  position: fixed; top: 0; right: -460px; width: 440px; max-width: 90vw; height: 100vh;
  background: #fff; z-index: 2000; transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; padding: 24px 30px; box-shadow: -12px 0 44px rgba(16,40,80,0.16);
}
.all-menu.open { right: 0; }
.all-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.all-menu-close { background: none; border: none; font-size: 34px; line-height: 1; cursor: pointer; color: var(--text); }
.all-menu-grid { display: flex; flex-direction: column; gap: 18px; }
.all-col { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.all-col-title { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 16px; color: var(--navy); margin-bottom: 10px; }
.all-col-title:hover { color: var(--blue); }
.all-col ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.all-col li a { color: var(--text-muted); font-size: 14px; }
.all-col li a:hover { color: var(--blue); }
.all-menu-foot { margin-top: 26px; display: flex; gap: 16px; }
.all-menu-foot a { font-weight: 700; font-size: 13px; color: var(--navy); letter-spacing: 0.5px; }
.all-menu-foot a:hover { color: var(--blue); }
.all-menu-overlay { position: fixed; inset: 0; background: rgba(15,31,46,0.45); z-index: 1999; opacity: 0; visibility: hidden; transition: all var(--transition); }
.all-menu-overlay.open { opacity: 1; visibility: visible; }

/* ---------- SUB-PAGE banner head + 2-column layout ---------- */
.sub-head { background: linear-gradient(rgba(10,26,58,0.62), rgba(10,26,58,0.62)), url(../img/banner02.png) center/cover no-repeat; padding: 132px 0 44px; }
.sub-eyebrow { display: inline-block; color: #bfe0ff; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.sub-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.sub-body { padding: 56px 0 80px; min-height: 46vh; }
.sub-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.sub-main { min-width: 0; }

/* LNB side panel */
.lnb { position: sticky; top: 96px; }
.lnb-title { font-family: var(--font-heading); font-weight: 800; font-size: 19px; padding: 16px 18px; background: var(--gradient); color: #fff; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.lnb-list { border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; background: #fff; }
.lnb-list li a { display: block; padding: 13px 18px; color: var(--text-muted); font-size: 14px; border-bottom: 1px solid var(--border); transition: all var(--transition); }
.lnb-list li:last-child a { border-bottom: none; }
.lnb-list li a:hover { background: var(--bg-tint); color: var(--blue); }
.lnb-list li a.active { background: var(--bg-tint); color: var(--blue); font-weight: 700; border-left: 3px solid var(--blue); padding-left: 15px; }

/* ---------- OVERVIEW / blocks ---------- */
.block-title { font-size: 24px; color: var(--navy); margin-bottom: 20px; }
.lead-p { color: var(--text-muted); font-size: 16px; line-height: 1.95; margin-bottom: 16px; }

/* ---------- COMMITTEE ---------- */
.committee-group { margin-bottom: 30px; }
.committee-role { font-size: 15px; color: #fff; background: var(--gradient); display: inline-block; padding: 8px 20px; border-radius: 50px; margin-bottom: 16px; }
.committee-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.committee-members li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow-sm); }
.cm-name { display: block; font-weight: 700; color: var(--text-strong); }
.cm-affil { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ---------- SESSIONS list ---------- */
.sessions-day { margin-bottom: 28px; }
.sessions-day-title { font-size: 18px; color: var(--navy); padding-bottom: 10px; border-bottom: 2px solid var(--border); margin-bottom: 14px; }
.sessions-day-title span { font-size: 13px; font-weight: 500; color: var(--text-dim); margin-left: 8px; }
.sessions-list li a { display: flex; gap: 14px; align-items: baseline; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; background: #fff; transition: all var(--transition); color: var(--text); }
.sessions-list li a:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.sess-num { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--blue); background: rgba(0,108,238,0.1); padding: 3px 10px; border-radius: 4px; }
.sess-title { font-size: 14px; font-weight: 500; }
.sess-title em { color: var(--text-muted); font-weight: 400; }

/* ---------- ABSTRACT SUBMISSION FORM ---------- */
.abs-form { max-width: 760px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.abs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.abs-field { margin-bottom: 18px; }
.abs-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.abs-field label span { color: var(--magenta); }
.abs-field label em { color: var(--text-dim); font-style: normal; font-weight: 400; }
.abs-field input, .abs-field select, .abs-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-xs);
  font-family: var(--font-body); font-size: 14px; color: var(--text); background: #fff; outline: none; transition: border-color var(--transition);
}
.abs-field input:focus, .abs-field select:focus, .abs-field textarea:focus { border-color: var(--blue); }
.abs-field textarea { resize: vertical; }
.abs-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-muted); margin: 4px 0 20px; }
.abs-check input { margin-top: 3px; }
.abs-check span { color: var(--magenta); }
.abs-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.abs-note { margin-top: 16px; font-size: 12px; color: var(--text-dim); }
.abs-success { max-width: 760px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 52px 32px; text-align: center; box-shadow: var(--shadow-sm); }
.abs-success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.abs-success h3 { font-size: 22px; margin-bottom: 10px; }
.abs-success p { color: var(--text-muted); margin-bottom: 24px; }

/* ---------- REGISTRATION (guideline + form) ---------- */
.reg-deadlines { margin-bottom: 30px; }
.reg-deadline-block { margin-bottom: 18px; }
.reg-deadline-heading { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.reg-deadline-date { font-size: 17px; font-weight: 700; color: var(--blue); margin: 0 0 4px; }
.reg-deadline-badge { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.3px; padding: 6px 16px; border-radius: 50px; background: var(--gradient); color: #fff; box-shadow: 0 4px 12px rgba(0,108,238,0.25); }
.reg-deadline-block.st-closed .reg-deadline-badge { background: var(--text-dim); box-shadow: none; }
.reg-deadline-block.st-today .reg-deadline-badge { background: var(--magenta); box-shadow: 0 4px 12px rgba(214,27,96,0.28); }
.reg-steps-wide { max-width: none; margin-bottom: 44px; }
.reg-info-2 { grid-template-columns: 1fr; margin-bottom: 40px; }
.reg-card-text { text-align: left; }
.reg-card-text .reg-card-icon { text-align: left; }
.reg-card-text p { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.reg-contact { background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 44px; }
.reg-contact h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.reg-contact > p { color: var(--text-muted); margin-bottom: 12px; font-size: 14px; }
.reg-contact ul { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.reg-contact li { color: var(--text); font-size: 14px; }
.reg-contact a { color: var(--blue); }

/* ---------- PARTNERS info ---------- */
.partners-grid-title { margin-top: 44px; }

/* ---------- ACCOUNT (login / my page) ---------- */
/* Login-only nav links (e.g. Abstract Submission) are hidden until signed in. */
body:not(.is-authed) .auth-only { display: none !important; }
.auth-form { max-width: 540px; }
.auth-error { color: var(--magenta); font-size: 14px; margin-bottom: 14px; }
.consent-field { margin-top: 6px; }
.consent-label { font-weight: 600; }
.consent-label span { color: var(--magenta); }
.consent-opts { display: flex; gap: 26px; margin-top: 8px; }
.consent-opts label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 400; color: var(--text); cursor: pointer; }
.consent-opts input { margin: 0; }
.auth-form input:disabled, .auth-form select:disabled { background: var(--bg-tint); color: var(--text-muted); cursor: not-allowed; }
/* My Page — center the form (and admin tools) horizontally */
#mypageBody .auth-form, #mypageBody .admin-tools { margin-left: auto; margin-right: auto; }
#mypageBody .admin-tools { max-width: 540px; }
#page-mypage .sub-head .container, #page-mypage .sub-head h1 { text-align: center; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; margin-bottom: 4px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xs); font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; transition: all var(--transition); }
.btn-google:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.btn-google .g-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(from -45deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); color: #fff; font-weight: 800; font-size: 12px; font-family: var(--font-heading); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-dim); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-alt { margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.auth-alt a { color: var(--blue); font-weight: 600; }
.verify-badge { font-size: 12px; font-weight: 600; margin-left: 8px; }
.verify-badge.verified { color: #1a8f4c; }
.verify-badge.unverified { color: var(--magenta); }

/* ---------- NOTICE board admin controls ---------- */
.notice-admin-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.notice-admin-bar:empty { display: none; }
.btn-sm { padding: 6px 21px; font-size: 13px; }
.btn-danger { background: var(--magenta); color: #fff; border: 2px solid var(--magenta); cursor: pointer; }
.btn-danger:hover { background: #d81b60; border-color: #d81b60; color: #fff; transform: translateY(-2px); }
.notice-detail-actions { gap: 10px; flex-wrap: wrap; }

/* ---------- USER / ACCOUNT MANAGEMENT (admin) ---------- */
.admin-tools { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.admin-tools-links { display: flex; gap: 12px; flex-wrap: wrap; }
.user-admin-head { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.user-search { width: 100%; max-width: 320px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-xs); font-family: var(--font-body); font-size: 14px; outline: none; }
.user-search:focus { border-color: var(--blue); }
.user-count { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.user-table { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.user-row { display: grid; grid-template-columns: 1.2fr 1.6fr 0.8fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.user-row:last-child { border-bottom: none; }
.user-row-head { background: var(--bg-tint); font-weight: 700; color: var(--text-strong); font-size: 13px; }
.u-email { color: var(--text-muted); word-break: break-all; }
.u-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.role-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.role-super { background: var(--gradient); color: #fff; }
.role-admin { background: rgba(0,108,238,0.12); color: var(--blue); }
.role-member { background: var(--bg-tint); color: var(--text-muted); }
.user-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 18px; padding: 12px 16px 16px; background: var(--bg-tint); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.user-detail strong { color: var(--text); font-weight: 600; }
@media (max-width: 700px) {
  .user-row, .user-row-head { grid-template-columns: 1fr; gap: 5px; }
  .user-row-head { display: none; }
  .u-actions { justify-content: flex-start; }
}
