/* ============================================================
   UoSEI (Union of Scholarly Exchange & Innovation) — shared stylesheet
   Modern academic design, responsive
   ============================================================ */
:root {
  --primary: #1a3a6b;
  --primary-dark: #122a4f;
  --accent: #e8a33d;
  --accent-dark: #c9842a;
  --ink: #22304a;
  --muted: #5c6b82;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --line: #e3e9f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 42, 79, .08);
  --shadow-lg: 0 18px 48px rgba(18, 42, 79, .14);
  --font: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }
ul { padding-left: 1.2em; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- top strip ---------- */
.topbar {
  background: var(--primary-dark);
  color: #cdd9ec;
  font-size: 13.5px;
  padding: 7px 0;
  letter-spacing: .02em;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #cdd9ec; }
.topbar a:hover { color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 60px; width: auto; flex-shrink: 0; margin-left: -10px; }
.brand .brand-name { font-weight: 700; font-size: 17px; color: var(--primary); line-height: 1.25; white-space: nowrap; }
.brand .brand-name small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav > li { list-style: none; position: relative; flex-shrink: 0; }
.nav > li > a {
  display: block; padding: 9px 11px; font-weight: 600; font-size: 14.5px;
  color: var(--ink); border-radius: 8px; white-space: nowrap;
}
.nav > li > a:hover, .nav > li > a.active { color: var(--primary); background: var(--bg-soft); }
.nav .dropdown { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease; }
.nav li:hover .dropdown, .nav li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .dropdown a { display: block; padding: 9px 14px; border-radius: 7px; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.nav .dropdown a:hover { background: var(--bg-soft); color: var(--primary); }

.btn {
  display: inline-block; padding: 11px 26px; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: all .2s ease; letter-spacing: .02em;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,132,42,.35); }
.btn.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn.btn-outline:hover { background: #fff; color: var(--primary); }
.btn.btn-primary { background: var(--primary); }
.btn.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(26,58,107,.35); color:#fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--primary); margin: 5px 0; border-radius: 2px; transition: .25s; }
.nav-cta-mobile { display: none; }

/* ---------- hero slider (portal) ---------- */
/* ---------- hero (light editorial) ---------- */
.hero { position: relative; overflow: hidden; background: #f9f7f8; }
.hero .hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(34px, 4.6vw, 62px); padding-bottom: clamp(14px, 2.2vw, 26px);
}
.hero h1 { color: #0f3357; font-size: clamp(28px, 3.55vw, 52px); line-height: 1.15; font-weight: 700; letter-spacing: -.018em; }
.hero h1 span { color: #18879b; }
.hero p { color: #4c5a6b; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.62; margin: 22px 0 30px; max-width: 470px; }
.hero .hero-btn { background: #0f3357; color: #fff; border-radius: 3px; padding: 15px 30px; font-size: 15px; font-weight: 600; }
.hero .hero-btn:hover { background: #0a2742; color: #fff; transform: none; box-shadow: none; }
.hero .hero-art img { width: 100%; height: auto; display: block; }
.hero-foot { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid #e4e6e9; padding: 16px 0 26px; color: #47617e; font-size: 14px; }
@media (max-width: 860px) {
  .hero .hero-inner { grid-template-columns: 1fr; padding-top: 30px; }
  .hero .hero-art { order: 2; max-width: 460px; margin: 6px auto 0; }
  .hero p { margin: 16px 0 24px; }
  .hero-foot { flex-direction: column; gap: 4px; align-items: flex-start; font-size: 13.5px; }
}
@keyframes fadeIn { from { opacity: .35; } to { opacity: 1; } }

/* ---------- conference hero (sub-sites) ---------- */
.conf-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(115deg, var(--conf-a, #14345f) 0%, var(--conf-b, #1f5f8b) 100%);
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 5.5vw, 76px);
}
.conf-hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255,255,255,.07);
}
.conf-hero::after {
  content: ""; position: absolute; right: 60px; bottom: -160px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255,255,255,.05);
}
.conf-hero .conf-short { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  padding: 5px 16px; border-radius: 999px; font-weight: 700; letter-spacing: .12em; font-size: 13px; text-transform: uppercase; margin-bottom: 18px; }
.conf-hero h1 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.25; font-weight: 800; max-width: 880px; position: relative; z-index: 1; }
.conf-hero .conf-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; position: relative; z-index: 1; }
.conf-hero .chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28); padding: 8px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; }
.conf-hero .hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- sections ---------- */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.hero + .section { padding-top: clamp(26px, 3.6vw, 44px); }
.section.soft { background: var(--bg-soft); }
.sec-title { text-align: center; max-width: 1000px; margin: 0 auto 46px; }
.sec-title > p { max-width: 720px; margin-left: auto; margin-right: auto; }
.sec-title .kicker { color: var(--accent-dark); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: 15px; }
.sec-title h2 { font-size: clamp(24px, 3vw, 36px); color: var(--primary); margin-top: 8px; font-weight: 800; }
.sec-title p { color: var(--muted); margin-top: 12px; }
.sec-title.left { text-align: left; margin-left: 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--primary); font-size: 20px; margin-bottom: 12px; }
.card p, .card li { color: var(--muted); font-size: 15px; }
.card ul { padding-left: 1.1em; }
.card li { margin-bottom: 6px; }
.card .icon-badge { width: 54px; height: 54px; border-radius: 14px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card .icon-badge img { width: 30px; height: 30px; object-fit: contain; }

/* conference cards on portal */
.conf-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.conf-card .conf-card-head { padding: 26px 26px 22px; color: #fff;
  background: linear-gradient(120deg, var(--cc-a, #14345f), var(--cc-b, #1f5f8b)); }
.conf-card .conf-card-head .tag { font-size: 12px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; opacity: .85; }
.conf-card .conf-card-head h3 { color: #fff; margin: 6px 0 0; font-size: 20px; line-height: 1.4; }
.conf-card .conf-card-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.conf-card .meta-line { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.conf-card .meta-line svg { flex: none; }
.conf-card .btn { margin-top: auto; align-self: flex-start; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 18px; box-shadow: var(--shadow); }
.stat img { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 12px; }
.stat .num { font-size: 38px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat .label { color: var(--muted); font-weight: 600; margin-top: 6px; font-size: 15px; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
.partners .p-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  display: flex; align-items: center; justify-content: center; height: 92px; transition: .25s; }
.partners .p-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.partners img { max-height: 58px; width: auto; object-fit: contain; }

/* ---------- people (committee / speakers) ---------- */
.person { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.person .avatar { flex: none; width: 108px; height: 108px; border-radius: 12px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h4 { color: var(--primary); font-size: 18.5px; margin-bottom: 2px; }
.person .affil { color: var(--accent-dark); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.person p { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.role-group { margin-bottom: 44px; }
.role-group > h3 { font-size: 22px; color: var(--primary); margin-bottom: 20px; padding-left: 14px; border-left: 4px solid var(--accent); }
.role-group .grid { gap: 20px; }

/* simple member list */
.member-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; }
.member-list .m { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 18px; font-size: 14.5px; color: var(--ink); box-shadow: var(--shadow); }
.member-list .m strong { color: var(--primary); }

/* ---------- content blocks ---------- */
.prose h2 { color: var(--primary); font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 18px; font-weight: 800; }
.prose h3 { color: var(--primary); font-size: 20px; margin: 30px 0 12px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul, .prose ol { color: var(--muted); margin-bottom: 14px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink); }

.date-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 10px; }
.date-card { background: linear-gradient(150deg, #fff, var(--bg-soft)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.date-card .d-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; }
.date-card .d-value { font-size: 19px; font-weight: 800; color: var(--primary); margin-top: 8px; }

.topic-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; padding: 0; list-style: none; }
.topic-list li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px 13px 40px; font-size: 14.8px; color: var(--ink); box-shadow: var(--shadow); }
.topic-list li::before { content: ""; position: absolute; left: 16px; top: 21px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent); }
.topic-list li small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
table.fee-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
table.fee-table th { background: var(--primary); color: #fff; text-align: left; padding: 14px 20px; font-size: 15px; }
table.fee-table td { padding: 15px 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); }
table.fee-table tr:nth-child(even) td { background: var(--bg-soft); }
table.fee-table .price { font-weight: 800; color: var(--accent-dark); white-space: nowrap; }

/* CTA band */
.cta-band { background: linear-gradient(115deg, var(--conf-a, #14345f), var(--conf-b, #1f5f8b));
  border-radius: var(--radius); padding: clamp(30px, 4vw, 46px); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 22px; }

/* contact */
.contact-card { text-align: center; }
.contact-card .c-icon { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.contact-card h3 { margin-bottom: 6px; }
.contact-card a { font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--primary-dark); color: #b9c7dd; margin-top: 0; }
.site-footer .footer-main { padding: 54px 0 34px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: .04em; }
.site-footer a { color: #b9c7dd; font-size: 14.5px; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.site-footer .footer-brand img { height: 42px; }
.site-footer .footer-brand span { color: #fff; font-weight: 700; }
.site-footer p { font-size: 14.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: 13.5px; color: #8ea2c0; }

/* breadcrumb for conf pages */
.conf-subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 74px; z-index: 90; }
.conf-subnav .container { display: flex; gap: 4px; overflow-x: auto; }
.conf-subnav a { padding: 13px 16px; font-weight: 600; font-size: 14.5px; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; }
.conf-subnav a:hover { color: var(--primary); }
.conf-subnav a.active { color: var(--primary); border-bottom-color: var(--accent); }

/* misc */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mb-4 { margin-bottom: 32px; }
.org-logo { width: 180px; height: 180px; object-fit: contain; margin: 10px auto 0; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .brand .brand-name small { display: none; }
}
@media (max-width: 1080px) {
  .site-header .container { gap: 14px; }
  .brand img { height: 52px; margin-left: -9px; }
  .brand .brand-name { font-size: 16px; }
  .nav > li > a { padding: 8px 9px; font-size: 14px; }
  .header-cta.btn-sm { padding: 7px 14px; font-size: 13.5px; }
}
@media (max-width: 960px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; }
  .date-cards { grid-template-columns: 1fr; }
  .topic-list { grid-template-columns: 1fr; }
  .member-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-wrap { position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); background: #fff; z-index: 200;
    transform: translateX(100%); transition: transform .3s ease; box-shadow: -10px 0 40px rgba(0,0,0,.15);
    padding: 84px 22px 30px; overflow-y: auto; }
  .nav-wrap.open { transform: translateX(0); }
  .nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav > li > a { padding: 12px 14px; }
  .nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-left: 2px solid var(--line); border-radius: 0; margin-left: 14px; padding: 2px 0; }
  .nav-toggle { display: block; z-index: 300; position: relative; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .header-cta { display: none; }
  .nav-cta-mobile { display: block; padding: 12px 14px; border-top: 1px solid var(--line); margin-top: 8px; }
  .overlay-mask { position: fixed; inset: 0; background: rgba(10,25,50,.45); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
  .overlay-mask.show { opacity: 1; visibility: visible; }
}
@media (max-width: 760px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .person { flex-direction: column; }
  .site-footer .footer-main { grid-template-columns: 1fr; }
  .conf-subnav { top: 73px; }
}

/* UoSEI common template additions */

/* UoSEI Step 2: hero kicker + theme cards */
.hero .kicker { display: block; color: #cfe0f7; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.stat .label { color: var(--primary); font-weight: 700; font-size: 16.5px; }
.stat .stat-desc { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* UoSEI Step 6: header layout — keep every label on one line */
.site-header .container { width: min(1280px, 96%); }
.nav-wrap { flex-shrink: 0; }
.header-cta { flex-shrink: 0; white-space: nowrap; }
