/* =====================================================================
   Dynamic Dialogue — Public Website Styles
   Primary: Royal Navy  ·  Accent: Gold  ·  Supporting: logo palette
   ===================================================================== */
:root {
  --navy-950: #050f26;
  --navy-900: #071a3d;
  --navy-800: #0b2559;
  --navy-700: #0f3380;
  --navy-600: #1846a3;
  --navy-100: #e6ecf8;
  --navy-50:  #f3f6fc;

  --gold-600: #b8881f;
  --gold-500: #d4a537;
  --gold-400: #e6bd57;
  --gold-300: #f2d68b;
  --gold-100: #fbf2da;

  --crimson:  #a8192e;
  --leaf:     #3f8f3a;
  --saffron:  #e8862a;
  --violet:   #7b3fa0;
  --sky:      #2b8fd6;

  --ink:      #16203a;
  --body:     #3b4560;
  --muted:    #6b7489;
  --line:     #e3e7ef;
  --paper:    #ffffff;
  --cream:    #fbf9f4;

  --radius:   14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(7, 26, 61, .06);
  --shadow:    0 10px 30px rgba(7, 26, 61, .10);
  --shadow-lg: 0 24px 60px rgba(7, 26, 61, .18);

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 2px solid transparent; cursor: pointer; transition: all .25s;
  font-family: var(--font-body); line-height: 1.2;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950); box-shadow: 0 8px 20px rgba(212, 165, 55, .35); }
.btn-gold:hover { color: var(--navy-950); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(212, 165, 55, .45); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: rgba(255,255,255,.75); font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: var(--gold-400); }
.topbar-info { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-info i { color: var(--gold-500); margin-right: .35rem; }
.social { display: flex; gap: .4rem; }
.social a {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); font-size: .8rem;
}
.social a:hover { background: var(--gold-500); color: var(--navy-950); }

/* ---------- Brand header ---------- */
.brandbar { background: #fff; border-bottom: 1px solid var(--line); }
.brandbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 1rem; color: inherit; }
.brand:hover { color: inherit; }
.brand img { width: 78px; height: 78px; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; color: var(--navy-800); }
.brand-name span { color: var(--crimson); }
.brand-tag { font-family: var(--font-head); font-style: italic; color: var(--ink); font-size: 1rem; margin-top: .25rem; }
.brand-sub {
  display: inline-block; margin-top: .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-600);
}
.brand-meta { text-align: right; font-size: .82rem; color: var(--muted); line-height: 1.6; }
.brand-meta strong { color: var(--navy-800); }
.brand-meta .pill {
  display: inline-block; background: var(--gold-100); color: var(--gold-600); border: 1px solid var(--gold-300);
  padding: .2rem .7rem; border-radius: 999px; font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .35rem;
}

/* ---------- Navigation ---------- */
.mainnav {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
  position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 18px rgba(5, 15, 38, .25);
}
.mainnav::after { content: ''; display: block; height: 3px; background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-600)); }
.mainnav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: flex; align-items: center; gap: .35rem; height: 56px; padding: 0 1.05rem;
  color: rgba(255,255,255,.88); font-weight: 600; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase;
  background: none; border: 0; cursor: pointer; font-family: var(--font-body); position: relative;
}
.nav-list > li > a::after, .nav-list > li > button::after {
  content: ''; position: absolute; left: 1.05rem; right: 1.05rem; bottom: 10px; height: 2px; background: var(--gold-400);
  transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav-list > li > a:hover, .nav-list > li > button:hover, .nav-list > li.active > a, .nav-list > li.active > button { color: var(--gold-300); }
.nav-list > li > a:hover::after, .nav-list > li.active > a::after, .nav-list > li.active > button::after, .nav-list > li > button:hover::after { transform: scaleX(1); }
.nav-list .caret { font-size: .65rem; transition: transform .2s; }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 310px; background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s; border-top: 3px solid var(--gold-500);
}
.dropdown a {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem; border-radius: 8px; color: var(--ink); font-size: .9rem; font-weight: 500;
}
.dropdown a i { color: var(--gold-500); font-size: .7rem; }
.dropdown a:hover, .dropdown a.active { background: var(--navy-50); color: var(--navy-700); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .caret { transform: rotate(180deg); }

.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.4rem; height: 56px; padding: 0 .3rem; cursor: pointer; }
.nav-mobile-title { display: none; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(43, 143, 214, .28), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(123, 63, 160, .25), transparent 60%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  padding: 90px 0 110px;
}
.hero::before {
  content: ''; position: absolute; left: -10%; right: -10%; bottom: 70px; height: 46px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300) 40%, var(--gold-500) 70%, var(--gold-600));
  transform: rotate(-4deg); box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: .95;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem; border-radius: 999px;
  background: rgba(212, 165, 55, .14); border: 1px solid rgba(242, 214, 139, .4); color: var(--gold-300);
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.4rem;
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; letter-spacing: -.015em; margin-bottom: .35em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tagline { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--gold-300); margin-bottom: 1rem; }
.hero p.lead { font-size: 1.06rem; color: rgba(255,255,255,.82); max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 1.6rem;
  backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); position: relative;
}
.hero-card .label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); font-weight: 700; }
.hero-card h3 { color: #fff; font-size: 1.35rem; margin: .4rem 0 .2rem; }
.hero-card .meta { color: rgba(255,255,255,.7); font-size: .88rem; }
.hero-cover { border-radius: 12px; overflow: hidden; margin-bottom: 1.1rem; aspect-ratio: 3/4; max-height: 330px; background: var(--navy-900); }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-emblem { width: 190px; height: 190px; margin: .5rem auto 1.4rem; filter: drop-shadow(0 18px 30px rgba(0,0,0,.4)); }
.hero-emblem img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.bg-cream { background: var(--cream); }
.bg-soft { background: var(--navy-50); }
.bg-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: rgba(255,255,255,.85); }
.bg-navy h2, .bg-navy h3 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head.left { text-align: left; margin-left: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .7rem;
}
.kicker::before, .kicker::after { content: ''; width: 28px; height: 2px; background: var(--gold-500); }
.section-head.left .kicker::after { display: none; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .4em; }
.section-head p { color: var(--muted); font-size: 1.04rem; margin: 0; }
.bg-navy .section-head p { color: rgba(255,255,255,.7); }
.bg-navy .kicker { color: var(--gold-400); }

/* ---------- About / intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: start; }
.intro-text p { font-size: 1.05rem; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.facts-head { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: .7rem; }
.facts-head h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.facts-head i { color: var(--gold-400); }
.facts dl { margin: 0; padding: .4rem 1.4rem 1rem; }
.facts dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.facts dl div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- Highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.highlight {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: all .3s; position: relative; overflow: hidden;
}
.highlight::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent, var(--gold-500)); }
.highlight:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.highlight .icon {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 1.1rem; display: grid; place-items: center; font-size: 1.6rem;
  color: var(--accent, var(--gold-500)); background: color-mix(in srgb, var(--accent, #d4a537) 12%, white);
}
.highlight h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.highlight p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Research areas ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.area {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; border-radius: 12px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 500; font-size: .95rem; transition: all .25s;
}
.area:hover { background: rgba(212, 165, 55, .14); border-color: rgba(242, 214, 139, .45); transform: translateY(-3px); }
.area .num {
  flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950); font-size: .95rem;
}

/* ---------- Issue / articles ---------- */
.issue-feature { display: grid; grid-template-columns: 320px 1fr; gap: 2.5rem; align-items: start; }
.issue-cover {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  aspect-ratio: 3/4; position: relative;
}
.issue-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: #fff; }
.cover-placeholder::before { content: ''; position: absolute; left: -20%; right: -20%; top: 74%; height: 22px; background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-600)); transform: rotate(-8deg); }
.cover-placeholder img { width: 90px; height: 90px; margin-bottom: 1rem; position: relative; }
.cover-placeholder .t { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; position: relative; }
.cover-placeholder .s { color: var(--gold-300); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .5rem; position: relative; }
.cover-placeholder .v { position: absolute; bottom: 1.4rem; left: 0; right: 0; font-size: .85rem; color: rgba(255,255,255,.85); }

.issue-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.tag {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--navy-50); color: var(--navy-700); border: 1px solid var(--navy-100);
}
.tag.gold { background: var(--gold-100); color: var(--gold-600); border-color: var(--gold-300); }
.tag.crimson { background: #fbe9ec; color: var(--crimson); border-color: #f2c4cc; }

.article-list { display: flex; flex-direction: column; gap: 1rem; }
.article-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500); border-radius: 12px; padding: 1.2rem 1.4rem; transition: all .25s;
}
.article-row:hover { box-shadow: var(--shadow); transform: translateX(4px); border-left-color: var(--navy-700); }
.article-row .type { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--crimson); }
.article-row h3 { font-size: 1.12rem; margin: .25rem 0 .35rem; }
.article-row h3 a { color: var(--ink); }
.article-row h3 a:hover { color: var(--navy-700); }
.article-row .authors { font-size: .9rem; color: var(--muted); }
.article-row .authors i { color: var(--gold-500); margin-right: .3rem; }
.article-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; white-space: nowrap; }
.article-row .pages { font-size: .8rem; color: var(--muted); }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: all .3s; position: relative;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-card .type { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--crimson); margin-bottom: .6rem; }
.article-card h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--navy-700); }
.article-card .authors { font-size: .88rem; color: var(--muted); margin-bottom: .9rem; }
.article-card .excerpt { font-size: .92rem; color: var(--body); flex: 1; }
.article-card .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; font-size: .82rem; color: var(--muted); }
.article-card .foot a { font-weight: 600; }
.featured-badge { position: absolute; top: 1.2rem; right: 1.2rem; color: var(--gold-500); font-size: .9rem; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--navy-900); padding: 2rem 1rem; text-align: center; }
.stat .n { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--gold-400); line-height: 1; }
.stat .l { color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .5rem; }

/* ---------- Editor / CTA ---------- */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 2rem; box-shadow: var(--shadow-sm); }
.panel.dark { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); border: 0; color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.panel.dark::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(212,165,55,.12); }
.panel.dark h3 { color: #fff; }
.panel h3 { font-size: 1.45rem; }
.editor-box { display: flex; gap: 1.3rem; align-items: center; margin-top: 1rem; }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 3px solid var(--gold-400);
  background: var(--navy-50); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--navy-700); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Inner page banner ---------- */
.page-banner {
  position: relative; overflow: hidden; color: #fff; padding: 64px 0 70px;
  background: radial-gradient(700px 300px at 90% 0%, rgba(43,143,214,.25), transparent 60%), linear-gradient(135deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
}
.page-banner::before {
  content: ''; position: absolute; left: -10%; right: -10%; bottom: 18px; height: 16px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-600)); transform: rotate(-1.5deg); opacity: .9;
}
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: .4rem; position: relative; }
.page-banner p { color: rgba(255,255,255,.75); max-width: 720px; margin: 0; position: relative; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: .8rem; position: relative; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.crumbs a { color: var(--gold-300); }
.crumbs i { font-size: .6rem; }

/* ---------- Content layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.5rem; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.side-box h4 { margin: 0; padding: 1rem 1.25rem; background: var(--navy-800); color: #fff; font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.side-box h4 i { color: var(--gold-400); }
.side-links { list-style: none; margin: 0; padding: .5rem; }
.side-links a { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 8px; color: var(--body); font-size: .92rem; }
.side-links a i { color: var(--gold-500); font-size: .65rem; transition: transform .2s; }
.side-links a:hover { background: var(--navy-50); color: var(--navy-700); }
.side-links a:hover i { transform: translateX(3px); }
.side-links a.active { background: var(--navy-800); color: #fff; }
.side-links a.active i { color: var(--gold-400); }
.side-box .body { padding: 1.25rem; font-size: .92rem; }

/* ---------- Prose (CMS content) ---------- */
.prose { font-size: 1.03rem; color: var(--body); }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; padding-left: .9rem; border-left: 4px solid var(--gold-500); }
.prose h4 { font-size: 1.15rem; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--gold-500); }
.prose ol li::marker { color: var(--navy-700); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-decoration-color: var(--gold-400); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.prose th { background: var(--navy-800); color: #fff; text-align: left; padding: .8rem 1rem; font-weight: 600; }
.prose td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.prose tr:nth-child(even) td { background: var(--navy-50); }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--gold-500); background: var(--gold-100); border-radius: 0 10px 10px 0; font-style: italic; }
.prose img { border-radius: 10px; margin: 1rem 0; height: auto; }

/* ---------- Members ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; }
.member {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; padding: 2rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm); transition: all .3s; position: relative; overflow: hidden;
}
.member::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 74px; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); }
.member::after { content: ''; position: absolute; top: 70px; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-600)); }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member .avatar { margin: 0 auto 1rem; position: relative; z-index: 1; width: 112px; height: 112px; border-width: 4px; box-shadow: 0 8px 20px rgba(7,26,61,.18); background: #fff; }
.member h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.member .role { color: var(--gold-600); font-weight: 600; font-size: .88rem; }
.member .inst { color: var(--muted); font-size: .88rem; margin-top: .35rem; }
.member .bio { font-size: .85rem; color: var(--body); margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--line); text-align: left; }
.member .mail { display: inline-flex; gap: .35rem; align-items: center; font-size: .82rem; margin-top: .7rem; }
.member.lead { border-color: var(--gold-300); }
.member.lead .badge-lead {
  position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--gold-500); color: var(--navy-950); font-size: .66rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px;
}

/* ---------- Board member card (Editorial / Advisory) — compact ---------- */
.bcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.2rem; }
.bcard {
  position: relative; display: flex; flex-direction: column; padding: 1.1rem 1.15rem;
  background: linear-gradient(160deg, #fffefb 0%, #fdf8ec 100%); border: 1px solid #e6cf97; border-top: 3px solid var(--gold-500);
  border-radius: 14px; box-shadow: 0 6px 18px rgba(120, 90, 20, .07); transition: transform .3s, box-shadow .3s;
}
.bcard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(120, 90, 20, .14); }
.bcard-top { display: flex; align-items: center; gap: .9rem; }
.bcard-photo { flex: 0 0 auto; padding: 3px; border-radius: 50%; background: linear-gradient(145deg, var(--gold-300), var(--gold-600)); box-shadow: 0 5px 12px rgba(184,136,31,.25); }
.bcard-photo .avatar { width: 72px; height: 72px; border: 2px solid #fff; background: #fff; font-size: 1.4rem; }
.bcard-id { min-width: 0; }
.bcard-id h3 { font-family: var(--font-head); font-size: 1.1rem; color: #111; margin: 0 0 .3rem; line-height: 1.25; }
.bcard-badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, #d9ae4b, #a8781a); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px rgba(168,120,26,.25);
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
}
.bcard-desig { margin-top: .35rem; font-weight: 700; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: #6b6b6b; }
.bcard-org { margin-top: .8rem; padding-bottom: .7rem; border-bottom: 1px solid #eadfc4; font-size: .86rem; line-height: 1.5; }
.bcard-org .dept { font-weight: 700; color: #222; }
.bcard-org .inst { color: #444; margin-top: .1rem; }
.bcard-bio { font-size: .8rem; color: var(--body); margin: .6rem 0 0; line-height: 1.55; }
.bcard-foot { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem .8rem; }
.bcard-mail { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .82rem; color: #8a6414; word-break: break-all; min-width: 0; }
.bcard-mail i { color: var(--gold-500); font-size: .9rem; }
.bcard-mail:hover { color: var(--navy-700); }
.bcard-link {
  display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border-radius: 8px; font-weight: 700; font-size: .76rem; white-space: nowrap;
  background: linear-gradient(180deg, #2a2a2a, #111); color: #fff; border: 1px solid var(--gold-500); box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.bcard-link i { color: var(--gold-400); font-size: .72rem; }
.bcard-link:hover { color: var(--gold-300); transform: translateY(-1px); }
.panel .bcard { box-shadow: none; }

/* ---------- Reviewers table ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.search-input {
  display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; min-width: 300px;
}
.search-input input { border: 0; outline: 0; font: inherit; font-size: .92rem; width: 100%; background: transparent; color: var(--ink); }
.search-input i { color: var(--muted); }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { background: var(--navy-800); color: #fff; text-align: left; padding: .9rem 1rem; font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--navy-50); }
.table .name { font-weight: 600; color: var(--ink); }
.table .sub { font-size: .84rem; color: var(--muted); }

/* ---------- Archives ---------- */
.year-block { margin-bottom: 2.6rem; }
.year-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.year-title h2 { margin: 0; font-size: 1.8rem; color: var(--navy-800); }
.year-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold-400), transparent); }
.volume-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.2rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.volume-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; background: var(--navy-50); border-bottom: 1px solid var(--line); }
.volume-head h3 { margin: 0; font-size: 1.2rem; }
.volume-head span { font-size: .85rem; color: var(--muted); }
.issue-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; padding: 1.2rem 1.4rem 1.4rem; }
.issue-tile { display: flex; gap: .9rem; align-items: center; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: all .25s; }
.issue-tile:hover { border-color: var(--gold-400); background: var(--gold-100); color: var(--ink); transform: translateY(-3px); }
.issue-tile .thumb { width: 54px; height: 70px; border-radius: 6px; overflow: hidden; flex: 0 0 auto; background: linear-gradient(160deg, var(--navy-700), var(--navy-950)); display: grid; place-items: center; color: var(--gold-300); font-family: var(--font-head); font-weight: 700; }
.issue-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.issue-tile strong { display: block; font-size: .98rem; }
.issue-tile small { color: var(--muted); font-size: .8rem; }

/* ---------- Article detail ---------- */
.article-head .type { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: .6rem; position: relative; }
.article-authors { font-size: 1.05rem; color: rgba(255,255,255,.9); margin-top: .8rem; position: relative; }
.article-authors i { color: var(--gold-400); margin-right: .4rem; }
.abstract-box { background: var(--cream); border: 1px solid #efe6cf; border-radius: var(--radius); padding: 1.8rem 2rem; margin-bottom: 2rem; position: relative; }
.abstract-box h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; }
.abstract-box h2 i { color: var(--gold-500); }
.abstract-box p { white-space: pre-line; text-align: justify; margin: 0; }
.keywords { display: flex; flex-wrap: wrap; gap: .5rem; }
.info-list { list-style: none; margin: 0; padding: .4rem 1.25rem 1rem; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); }
.info-list strong { color: var(--ink); text-align: right; word-break: break-word; }
.cite-box { font-size: .88rem; background: var(--navy-50); border-radius: 10px; padding: 1rem; color: var(--ink); line-height: 1.6; word-break: break-word; }
.copy-btn { margin-top: .7rem; }
.pdf-viewer { width: 100%; height: 820px; border: 1px solid var(--line); border-radius: var(--radius); background: #f4f4f4; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; align-items: start; }
.contact-card { display: flex; gap: 1rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.contact-card .ic { width: 50px; height: 50px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-400); font-size: 1.15rem; }
.contact-card h4 { margin: 0 0 .2rem; font-size: 1rem; }
.contact-card p, .contact-card a { margin: 0; font-size: .93rem; color: var(--body); word-break: break-word; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2.2rem; box-shadow: var(--shadow); border-top: 5px solid var(--gold-500); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field label .req { color: var(--crimson); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .95rem; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(24, 70, 163, .1); }
.field textarea { min-height: 150px; resize: vertical; }
.field .err { color: var(--crimson); font-size: .82rem; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.4rem; display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.alert-success { background: #e9f6ec; color: #1f6b33; border: 1px solid #bfe3c8; }
.alert-error { background: #fbe9ec; color: var(--crimson); border: 1px solid #f2c4cc; }
.map-wrap { border-radius: var(--radius); overflow: hidden; margin-top: 1rem; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 4rem 1.5rem; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty i { font-size: 2.6rem; color: var(--gold-400); margin-bottom: 1rem; display: block; }
.empty h3 { font-size: 1.35rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); font-size: .92rem; position: relative; }
.site-footer::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-600)); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2.5rem; padding: 64px 0 44px; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.footer-brand .n { font-family: var(--font-head); color: #fff; font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.footer-brand .n span { color: var(--gold-400); }
.footer-brand .t { font-size: .78rem; color: var(--gold-300); font-style: italic; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gold-500); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: .5rem; }
.footer-links a i { font-size: .6rem; color: var(--gold-500); }
.footer-links a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .8rem; }
.footer-contact i { color: var(--gold-500); margin-top: .3rem; width: 16px; }
.footer-contact a { color: rgba(255,255,255,.75); word-break: break-word; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; font-size: .84rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--gold-300); }
.oa-badge { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .45rem .9rem; border: 1px solid rgba(242,214,139,.35); border-radius: 999px; color: var(--gold-300); font-size: .78rem; font-weight: 600; }

.back-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; z-index: 60;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950); box-shadow: var(--shadow); font-size: 1rem;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Pagination (Laravel bootstrap-5 markup) ---------- */
.pagination { display: flex; gap: .4rem; list-style: none; padding: 0; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination .page-link { display: block; padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--line); color: var(--navy-700); background: #fff; }
.pagination .active .page-link { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.pagination .disabled .page-link { color: var(--muted); opacity: .6; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-list > li > a, .nav-list > li > button { padding: 0 .7rem; font-size: .8rem; letter-spacing: .05em; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
  .hero .container, .intro-grid, .issue-feature, .layout, .contact-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .issue-feature .issue-cover { max-width: 300px; }
  .sidebar { position: static; }
  .brand-meta { display: none; }

  /* Mobile: desktop menu bar is replaced by the side drawer */
  .mainnav { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar-info span.hide-sm { display: none; }
  .topbar .container { padding-top: 6px; padding-bottom: 6px; min-height: 0; }
  .topbar-info { gap: .1rem 1rem; }
  .brand img { width: 58px; height: 58px; }
  .brand-name { font-size: 1.45rem; }
  .brand-tag { font-size: .82rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .1em; }
  .hero { padding: 60px 0 100px; }
  .section { padding: 60px 0; }
  .highlights, .article-grid, .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .article-row { grid-template-columns: 1fr; }
  .article-row .side { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .form-card { padding: 1.5rem; }
  .search-input { min-width: 0; width: 100%; }
  .abstract-box { padding: 1.3rem; }
  .pdf-viewer { height: 520px; }
}

/* ---------- Current vs previous issue ---------- */
.banner-badge {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .8rem; padding: .35rem .9rem; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.banner-badge.current { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950); }
.banner-badge.previous { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.cover-ribbon {
  position: absolute; top: 14px; left: -6px; z-index: 3; padding: .4rem .9rem .4rem .8rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; border-radius: 0 6px 6px 0; box-shadow: 0 6px 14px rgba(0,0,0,.3);
}
.cover-ribbon.current { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950); }
.cover-ribbon.previous { background: #4b5468; color: #fff; }
.issue-cover { overflow: visible; }
.issue-cover > img, .issue-cover .cover-placeholder { border-radius: var(--radius); overflow: hidden; }
.prev-notice {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.3rem; margin-bottom: 2rem; border-radius: 12px;
  background: var(--navy-50); border: 1px solid var(--navy-100); border-left: 4px solid var(--navy-700);
}
.prev-notice > i { font-size: 1.3rem; color: var(--navy-700); }
.prev-notice > div { flex: 1; min-width: 220px; }
.prev-notice strong { display: block; color: var(--ink); }
.prev-notice span { font-size: .9rem; color: var(--muted); }
.dl-list { list-style: none; margin: 0; padding: .5rem; }
.dl-list a { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .92rem; }
.dl-list a > i:first-child { color: var(--crimson); font-size: 1.1rem; }
.dl-list a span { flex: 1; }
.dl-list a .dl { color: var(--muted); font-size: .85rem; }
.dl-list a:hover { background: var(--gold-100); color: var(--navy-800); }
.dl-list a:hover .dl { color: var(--gold-600); }

.current-feature {
  position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 2rem; align-items: center; padding: 2rem; border-radius: 18px;
  background: radial-gradient(500px 200px at 100% 0%, rgba(212,165,55,.25), transparent 70%), linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: rgba(255,255,255,.85); box-shadow: var(--shadow-lg); border: 2px solid var(--gold-500);
}
.cf-ribbon {
  position: absolute; top: -14px; left: 2rem; padding: .4rem 1rem; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950); box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.cf-cover { display: grid; place-items: center; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, var(--navy-600), var(--navy-950)); border: 3px solid rgba(255,255,255,.15); color: var(--gold-300); font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; }
.cf-cover img { width: 100%; height: 100%; object-fit: cover; }
.cf-body h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .3rem; }
.cf-body h2 small { color: var(--gold-300); font-size: .7em; }
.cf-title { font-family: var(--font-head); font-style: italic; color: var(--gold-300); font-size: 1.1rem; }
@media (max-width: 640px) {
  .current-feature { grid-template-columns: 1fr; padding: 2rem 1.3rem 1.5rem; }
  .cf-cover { max-width: 150px; }
}

/* ---------- Header login button ---------- */
.brand-right { display: flex; align-items: center; gap: 1.6rem; }
.header-login {
  display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: .9rem;
  color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); border: 2px solid var(--gold-500);
  box-shadow: 0 6px 16px rgba(11,37,89,.25); white-space: nowrap; transition: all .25s;
}
.header-login i { color: var(--gold-400); }
.header-login:hover { color: var(--navy-950); background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); transform: translateY(-2px); }
.header-login:hover i { color: var(--navy-950); }


/* ---------- Contact captcha ---------- */
.captcha-box { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.captcha-q {
  display: inline-flex; align-items: center; gap: .55rem; padding: .78rem 1.1rem; border-radius: 10px; font-weight: 700; color: var(--navy-800);
  background: var(--gold-100); border: 1.5px dashed var(--gold-400); letter-spacing: .02em; user-select: none;
}
.captcha-q i { color: var(--gold-600); }
.captcha-box input { max-width: 140px; }
.g-recaptcha { transform-origin: left top; }
@media (max-width: 380px) { .g-recaptcha { transform: scale(.88); } }

/* ---------- Home image slider (3D cube flip) ---------- */
.hs { position: relative; padding: 24px 20px 8px; max-width: 1520px; margin: 0 auto; }
.hs-stage {
  --d: 150px; --hs-time: 1.1s; --hs-ease: cubic-bezier(.65, 0, .25, 1);
  position: relative; max-width: 100%; margin: 0 auto; aspect-ratio: 3 / 1;
  border-radius: 24px; overflow: hidden; background: var(--navy-900); perspective: 1800px;
  box-shadow: 0 22px 50px rgba(7, 26, 61, .30); border: 1px solid rgba(212, 165, 55, .35);
}
.hs-stage::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.hs-slide {
  position: absolute; inset: 0; overflow: hidden; visibility: hidden;
  backface-visibility: hidden; will-change: transform;
  transform: translateZ(calc(var(--d) * -1)) rotateX(0deg) translateZ(var(--d));
  transition: transform var(--hs-time) var(--hs-ease), visibility 0s linear var(--hs-time);
}
.hs-slide.no-anim { transition: none !important; }
.hs-slide.is-top { transform: translateZ(calc(var(--d) * -1)) rotateX(90deg) translateZ(var(--d)); }
.hs-slide.is-bottom { transform: translateZ(calc(var(--d) * -1)) rotateX(-90deg) translateZ(var(--d)); }
.hs-slide.is-active { visibility: visible; z-index: 2; transition: transform var(--hs-time) var(--hs-ease), visibility 0s; }
.hs-blur { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none !important; object-fit: cover; filter: blur(22px) brightness(.7); }
.hs-link { position: absolute; inset: 0; display: block; z-index: 1; }
.hs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hs-dim { position: absolute; inset: 0; background: #000; opacity: .65; pointer-events: none; transition: opacity var(--hs-time) var(--hs-ease); }
.hs-slide.is-active .hs-dim { opacity: 0; }
.hs-nav { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hs-arrow { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(5,15,38,.45); color: #fff; cursor: pointer; transition: .25s; display: grid; place-items: center; }
.hs-arrow:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.hs-dots { display: flex; flex-direction: column; gap: 8px; }
.hs-dot { width: 10px; height: 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.6); cursor: pointer; transition: .3s; padding: 0; }
.hs-dot.is-on { height: 26px; background: var(--gold-400); }
.hs-count { position: absolute; left: 22px; bottom: 16px; z-index: 6; padding: 5px 12px; border-radius: 999px; background: rgba(5,15,38,.5); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.hs-count b { color: var(--gold-300); }
.hs-progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; z-index: 6; background: rgba(255,255,255,.18); }
.hs-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); }
@media (max-width: 576px) {
  .hs { padding: 10px 10px 0; }
  .hs-stage { border-radius: 14px; box-shadow: 0 12px 28px rgba(7, 26, 61, .25); }
  .hs-blur { display: none; }
  .hs-nav { right: 6px; gap: 5px; }
  .hs-arrow { width: 26px; height: 26px; font-size: 10px; }
  .hs-dots { gap: 5px; }
  .hs-dot { width: 6px; height: 6px; }
  .hs-dot.is-on { height: 16px; }
  .hs-count { left: 8px; bottom: 8px; padding: 3px 8px; font-size: 10px; }
  .hs-progress { height: 3px; }
}
@media (prefers-reduced-motion: reduce) { .hs-slide { transition: visibility 0s !important; } }

/* =====================================================================
   Mobile header + side drawer menu
   ===================================================================== */
.drawer-btn { display: none; }
.mdrawer, .mdrawer-backdrop { display: none; }

@media (max-width: 992px) {
  /* Compact sticky header */
  .brandbar { position: sticky; top: 0; z-index: 60; box-shadow: 0 4px 16px rgba(7,26,61,.08); }
  .brandbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold-600), var(--gold-300), var(--gold-600)); }
  .brandbar .container { padding-top: 10px; padding-bottom: 12px; gap: .8rem; }
  .brand { gap: .7rem; min-width: 0; }
  .brand > div { min-width: 0; }
  .brand-right { gap: .55rem; flex: 0 0 auto; }

  .drawer-btn {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer; padding: 0;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); box-shadow: 0 6px 14px rgba(11,37,89,.25);
  }
  .drawer-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; }
  .drawer-btn span:nth-child(2) { width: 12px; background: var(--gold-400); margin-left: 6px; }

  .header-login { padding: 0; width: 42px; height: 42px; border-radius: 12px; justify-content: center; border-width: 1.5px; box-shadow: none; }
  .header-login span { display: none; }

  /* Backdrop */
  .mdrawer-backdrop {
    display: block; position: fixed; inset: 0; z-index: 998; background: rgba(5, 15, 38, .55);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease;
  }
  .mdrawer-backdrop.show { opacity: 1; }
  .mdrawer-backdrop[hidden] { display: none !important; }

  /* Drawer panel */
  .mdrawer {
    display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 999;
    width: min(320px, 86vw); background: #fff; overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 18px 0 50px rgba(5,15,38,.28); border-radius: 0 20px 20px 0;
    transform: translateX(-105%); transition: transform .35s cubic-bezier(.22,.8,.3,1); visibility: hidden;
  }
  .mdrawer.open { transform: none; visibility: visible; }
  html.drawer-lock, html.drawer-lock body { overflow: hidden; }

  .md-head {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    padding: 1rem 1rem .9rem 1.1rem; background: #fff; border-bottom: 1px solid var(--line);
  }
  .md-head::after { content: ''; position: absolute; left: 1.1rem; right: 1rem; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold-500), transparent); }
  .md-brand { display: flex; align-items: center; gap: .65rem; min-width: 0; color: inherit; }
  .md-brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 2px var(--gold-300); background: #fff; }
  .md-brand span { min-width: 0; }
  .md-brand strong { display: block; font-family: var(--font-head); font-size: 1.08rem; color: var(--navy-800); line-height: 1.15; }
  .md-brand strong em { font-style: normal; color: var(--crimson); }
  .md-brand small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-600); margin-top: .2rem; line-height: 1.3; }
  .md-close {
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--navy-50);
    color: var(--navy-800); cursor: pointer; display: grid; place-items: center; font-size: 1rem; transition: .2s;
  }
  .md-close:hover { background: var(--navy-800); color: #fff; }

  .md-nav { display: flex; flex-direction: column; gap: .3rem; padding: 1rem .9rem .6rem; }
  .md-link {
    display: flex; align-items: center; gap: .75rem; width: 100%; padding: .78rem .95rem; border-radius: 12px; border: 0; background: none;
    font-family: var(--font-body); font-size: .93rem; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; transition: background .2s, color .2s;
  }
  .md-link > i:first-child { width: 18px; text-align: center; color: var(--navy-600); font-size: .92rem; }
  .md-link:hover { background: var(--navy-50); color: var(--navy-800); }
  .md-link.active {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; box-shadow: 0 8px 18px rgba(15,51,128,.28);
  }
  .md-link.active > i:first-child, .md-link.active .md-caret { color: var(--gold-300); }
  .md-caret { margin-left: auto; font-size: .7rem; color: var(--muted); transition: transform .25s; }
  .md-group.open .md-caret { transform: rotate(180deg); }
  .md-sub { display: none; margin: .3rem 0 .3rem 1.55rem; padding-left: .8rem; border-left: 2px solid var(--gold-300); }
  .md-group.open .md-sub { display: block; }
  .md-sub a { display: block; padding: .5rem .6rem; border-radius: 8px; font-size: .86rem; color: var(--body); line-height: 1.35; }
  .md-sub a:hover { background: var(--gold-100); color: var(--navy-800); }
  .md-sub a.active { color: var(--navy-800); font-weight: 700; background: var(--gold-100); }

  .md-cta { padding: .4rem 1rem 1rem; }
  .md-login {
    display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; padding: .85rem 1rem; border-radius: 12px;
    font-weight: 700; font-size: .95rem; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    border: 1.5px solid var(--gold-500); box-shadow: 0 10px 22px rgba(11,37,89,.25);
  }
  .md-login i { color: var(--gold-400); }
  .md-login:hover { color: var(--navy-950); background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); }
  .md-login:hover i { color: var(--navy-950); }

  .md-contact { margin-top: auto; padding: 1rem 1.1rem 1.4rem; border-top: 1px solid var(--line); background: var(--cream); }
  .md-label { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
  .md-contact > a, .md-contact > span { display: flex; align-items: flex-start; gap: .6rem; padding: .35rem 0; font-size: .84rem; color: var(--body); word-break: break-word; }
  .md-contact > a i, .md-contact > span i { width: 16px; margin-top: .2rem; color: var(--gold-600); text-align: center; flex: 0 0 auto; }
  .md-social { display: flex; gap: .45rem; margin-top: .7rem; }
  .md-social:empty { display: none; }
  .md-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: #fff; font-size: .82rem; }
  .md-social a:hover { background: var(--gold-500); color: var(--navy-950); }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .brand img { width: 50px; height: 50px; }
  .brand-name { font-size: 1.2rem; }
  .brand-tag { font-size: .72rem; line-height: 1.35; margin-top: .15rem; }
  .brand-sub { display: none; }
  .header-login, .drawer-btn { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
  .brand-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mdrawer, .mdrawer-backdrop { transition: none; } }

/* ---------- Desktop menu icons ---------- */
.nav-list .nav-ic { font-size: .78rem; color: var(--gold-400); opacity: .9; margin-right: .1rem; transition: color .2s, transform .2s; }
.nav-list > li > a:hover .nav-ic, .nav-list > li > button:hover .nav-ic { transform: translateY(-1px); color: var(--gold-300); }
.nav-list > li.active .nav-ic { color: var(--gold-300); opacity: 1; }
@media (max-width: 1240px) {
  .nav-list > li > a, .nav-list > li > button { padding: 0 .75rem; }
}
@media (max-width: 1100px) {
  .nav-list .nav-ic { display: none; }
}