/* ============================================================
   ICRIST-2026 Conference Website Styles
   Theme: Formal Academic — Deep Blue + Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Root ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0d1b4b;
  --navy-dark:  #071030;
  --blue:       #1a4fa0;
  --blue-light: #2563eb;
  --gold:       #c8992a;
  --gold-light: #f0bf5a;
  --gold-pale:  #fdf4e0;
  --white:      #ffffff;
  --light:      #f4f6fb;
  --text:       #1e2a42;
  --text-muted: #5a6880;
  --border:     #d5dff0;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, sans-serif;

  --shadow-sm: 0 2px 8px rgba(13,27,75,.08);
  --shadow-md: 0 6px 24px rgba(13,27,75,.13);
  --shadow-lg: 0 16px 48px rgba(13,27,75,.18);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── Utility ───────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-tag {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--gold-light);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 48px;
}
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 20px;
}
.divider-center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Scroll Animations ─────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-animate="left"]  { transform: translateX(-50px); }
[data-animate="right"] { transform: translateX(50px); }
[data-animate="zoom"]  { transform: scale(.9); }
[data-animate].in-view {
  opacity: 1;
  transform: none;
}
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }
[data-delay="6"] { transition-delay: .6s; }

/* ── Top Bar ───────────────────────────────────────────── */
#top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 7px 0;
  display: flex;
  align-items: center;
}
#top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#top-bar a { color: var(--gold-light); transition: color .2s; }
#top-bar a:hover { color: var(--white); }
.top-bar-links { display: flex; gap: 20px; align-items: center; }

/* ── Navigation ────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-brand img { height: 42px; width: auto; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  white-space: nowrap;
}
.nav-brand-sub { font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: .3px; white-space: nowrap; }
.nav-links {
  display: flex;
  gap: 1px;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--navy);
  color: var(--white);
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm) !important;
  margin-left: 4px;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: .3s;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero Section ──────────────────────────────────────── */
.hero-container {
  padding: clamp(48px, 8vw, 80px) 24px;
}
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,79,160,.45) 0%, transparent 70%),
    linear-gradient(135deg, #071030 0%, #0d1b4b 50%, #1a3570 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(200,153,42,.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;
}
.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,153,42,.15) 0%, transparent 70%);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.1); opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 820px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,153,42,.2);
  border: 1px solid rgba(200,153,42,.4);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.3} }
.hero-conf-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  backdrop-filter: blur(8px);
}
.hero-meta-icon { font-size: 22px; }
.hero-meta-text { display: flex; flex-direction: column; }
.hero-meta-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.hero-meta-value { font-size: 15px; font-weight: 600; color: var(--white); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,153,42,.4); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.35);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); transform: translateY(-2px); }

/* Countdown */
.countdown-wrap { display: flex; gap: 16px; flex-wrap: wrap; }
.countdown-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  min-width: 80px;
  backdrop-filter: blur(10px);
}
.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}
.countdown-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.55); margin-top: 6px; display: block; }
.countdown-title { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 14px; letter-spacing: .5px; }

/* Hero image card */
.hero-image-card {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 12px)) translateX(0); }
}
.hero-image-card img { width: 90px; height: 90px; object-fit: contain; border-radius: 12px; margin-bottom: 16px; }
.hero-image-card h4 { font-family: var(--font-serif); font-size: 17px; color: var(--white); margin-bottom: 6px; }
.hero-image-card p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; }
.mit-logo-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px rgba(200,153,42,.2), 0 0 0 12px rgba(200,153,42,.08);
}
.mit-logo-badge img { width: 85px; height: 85px; object-fit: contain; }

/* ── About Section ─────────────────────────────────────── */
#about {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 56px;
}
.about-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue-light));
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.about-card:hover::before { transform: scaleX(1); }
.about-card-icon { font-size: 36px; margin-bottom: 16px; }
.about-card h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; }
.about-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════
   QUICK LINKS — Keyframe Animations
   ══════════════════════════════════════════════════════════ */

/* Shimmer sweep across icon box */
@keyframes ql-shimmer {
  0%   { left: -120%; skewX(-15deg); }
  100% { left: 200%;  skewX(-15deg); }
}

/* Icon bounce on hover */
@keyframes ql-bounce {
  0%,100% { transform: scale(1)    translateY(0); }
  30%      { transform: scale(1.2) translateY(-6px); }
  55%      { transform: scale(.95) translateY(2px); }
  75%      { transform: scale(1.05) translateY(-2px); }
}

/* Pulsing ring behind icon */
@keyframes ql-ring {
  0%   { transform: scale(.85); opacity: .6; }
  100% { transform: scale(1.7);  opacity: 0; }
}

/* Arrow flies out then resets */
@keyframes ql-arrow-fly {
  0%   { transform: translate(0, 0)       scale(1); opacity: 1; }
  45%  { transform: translate(10px,-10px) scale(.8); opacity: 0; }
  46%  { transform: translate(-8px, 8px)  scale(.8); opacity: 0; }
  100% { transform: translate(0, 0)       scale(1); opacity: 1; }
}

/* Card entry — used with .in-view from IntersectionObserver */
@keyframes ql-slide-up {
  from { opacity: 0; transform: translateY(36px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Quick Links ───────────────────────────────────────── */
.quick-links-wrap {
  margin-top: 56px;
  margin-bottom: 0;
}
.ql-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ql-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(200,153,42,.3);
  border-radius: 20px;
  padding: 5px 14px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
/* subtle shimmer on the label itself */
.ql-label::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  left: -120%;
  animation: ql-shimmer 3s ease-in-out 1s infinite;
}
.ql-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* Grid */
.ql-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ── Card base ─────────────────────────────────────────── */
.ql-card {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  text-decoration: none;
  background: var(--white);
  position: relative;
  /* entry: start invisible, JS adds .in-view */
  opacity: 0;
  transform: translateY(36px) scale(.97);
  transition:
    opacity   .5s ease,
    transform .5s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}
/* when IntersectionObserver fires */
.ql-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* stagger each card */
.ql-card:nth-child(1) { transition-delay: .05s; }
.ql-card:nth-child(2) { transition-delay: .18s; }
.ql-card:nth-child(3) { transition-delay: .31s; }

/* Hover — lift + shadow + border glow */
.ql-card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow:
    0 20px 48px rgba(13,27,75,.14),
    0  4px 12px rgba(13,27,75,.08);
}
.ql-blue:hover  { border-color: #2563eb; }
.ql-navy:hover  { border-color: var(--navy); }
.ql-gold:hover  { border-color: var(--gold); }

/* ── Left accent bar (always visible, grows on hover) ──── */
.ql-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0%;
  border-radius: 0 2px 2px 0;
  transition: height .4s cubic-bezier(.22,.61,.36,1);
}
.ql-blue::before  { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.ql-navy::before  { background: linear-gradient(180deg, #3b82f6, #0d1b4b); }
.ql-gold::before  { background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.ql-card:hover::before { height: 100%; }

/* ── Bottom accent line ────────────────────────────────── */
.ql-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.ql-blue::after  { background: linear-gradient(90deg, #2563eb, #93c5fd); }
.ql-navy::after  { background: linear-gradient(90deg, #0d1b4b, #3b82f6); }
.ql-gold::after  { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.ql-card:hover::after { transform: scaleX(1); }

/* ── Icon box ──────────────────────────────────────────── */
.ql-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 18px;
  min-width: 80px;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
/* shimmer overlay on hover */
.ql-icon-box::after {
  content: '';
  position: absolute;
  top: -100%; bottom: -100%;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  left: -120%;
  transition: none;
  pointer-events: none;
}
.ql-card:hover .ql-icon-box::after {
  animation: ql-shimmer .6s ease forwards;
}

/* Colour gradients */
.ql-blue .ql-icon-box { background: linear-gradient(150deg, #3b82f6 0%, #1a4fa0 100%); }
.ql-navy .ql-icon-box { background: linear-gradient(150deg, #1e3a6e 0%, #071030 100%); }
.ql-gold .ql-icon-box { background: linear-gradient(150deg, #f0bf5a 0%, #a87020 100%); }

/* Pulse ring behind icon */
.ql-icon-box::before {
  content: '';
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  opacity: 0;
  pointer-events: none;
}
.ql-card:hover .ql-icon-box::before {
  animation: ql-ring .7s ease-out forwards;
}

.ql-icon {
  font-size: 28px;
  line-height: 1;
  display: block;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  z-index: 1;
}
.ql-card:hover .ql-icon {
  animation: ql-bounce .55s cubic-bezier(.34,1.56,.64,1) forwards;
}

.ql-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255,255,255,.45);
  position: relative;
  z-index: 1;
  transition: opacity .3s;
}
.ql-card:hover .ql-num { opacity: .7; }

/* ── Body text ─────────────────────────────────────────── */
.ql-body {
  flex: 1;
  padding: 20px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ql-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  display: block;
  margin-bottom: 6px;
  transition: letter-spacing .3s;
}
.ql-blue  .ql-type { color: #2563eb; }
.ql-navy  .ql-type { color: var(--navy); }
.ql-gold  .ql-type { color: var(--gold); }
.ql-card:hover .ql-type { letter-spacing: 2.4px; }

.ql-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color .25s;
}
.ql-blue:hover  .ql-title { color: #2563eb; }
.ql-navy:hover  .ql-title { color: var(--navy); }
.ql-gold:hover  .ql-title { color: #8a5e10; }

.ql-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  transition: color .25s;
}
.ql-card:hover .ql-desc { color: var(--text); }

/* ── Arrow ─────────────────────────────────────────────── */
.ql-arrow {
  width: 36px;
  height: 36px;
  margin: 0 14px 0 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--white);
  transition: background .3s, border-color .3s, color .3s, transform .3s;
  align-self: center;
}
.ql-card:hover .ql-arrow {
  animation: ql-arrow-fly .55s ease forwards;
}
.ql-blue:hover  .ql-arrow { background: #eff6ff; border-color: #93c5fd; color: #2563eb; }
.ql-navy:hover  .ql-arrow { background: #eef2ff; border-color: var(--blue); color: var(--navy); }
.ql-gold:hover  .ql-arrow { background: var(--gold-pale); border-color: var(--gold-light); color: var(--gold); }

.objectives-list { margin-top: 56px; }
.objectives-list h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 28px;
  text-align: center;
}
.obj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.obj-item {
  display: flex;
  gap: 16px;
  background: var(--gold-pale);
  border: 1px solid rgba(200,153,42,.2);
  border-radius: var(--radius-md);
  padding: 24px;
  align-items: flex-start;
  transition: transform .3s, box-shadow .3s;
}
.obj-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.obj-num {
  min-width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.obj-text { font-size: 15px; color: var(--text); line-height: 1.6; }

/* ── Themes Section ────────────────────────────────────── */
#themes {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--navy);
}
#themes .section-title { color: var(--white); }
#themes .section-subtitle { color: rgba(255,255,255,.65); }
.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.theme-chip {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .3s, border-color .3s, transform .3s;
  cursor: default;
}
.theme-chip:hover {
  background: rgba(200,153,42,.15);
  border-color: rgba(200,153,42,.4);
  transform: translateX(4px);
}
.theme-dot {
  width: 8px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 50%;
  flex-shrink: 0;
}
.theme-chip span { font-size: 14px; color: rgba(255,255,255,.85); font-weight: 500; line-height: 1.4; }

/* ── Dates Section ─────────────────────────────────────── */
#dates {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--white);
}
.timeline {
  position: relative;
  max-width: 700px;
  margin: 56px auto 0;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--navy), var(--gold));
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding: 24px 28px;
  background: var(--light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.timeline-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--blue-light); }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 28px;
  width: 16px;
  height: 16px;
  background: var(--navy);
  border: 3px solid var(--gold-light);
  border-radius: 50%;
  z-index: 1;
}
.timeline-item.past::before { background: var(--gold); }
.timeline-date {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 6px;
}
.timeline-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.timeline-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.timeline-badge {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge-deadline { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6cb; }
.badge-upcoming { background: #eef7ff; color: var(--blue); border: 1px solid var(--border); }
.badge-event { background: var(--gold-pale); color: var(--gold); border: 1px solid rgba(200,153,42,.3); }

/* ── Submission Section ────────────────────────────────── */
#submission {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--light);
}
.submission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
  align-items: start;
}
.guidelines-list { display: flex; flex-direction: column; gap: 16px; }
.guideline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  transition: box-shadow .3s, border-color .3s;
}
.guideline-item:hover { box-shadow: var(--shadow-sm); border-color: var(--blue); }
.guideline-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.guideline-text h4 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.guideline-text p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.submission-info-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--white);
}
.submission-info-box h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 20px; color: var(--gold-light); }
.email-box {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 24px;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 10px;
}
.note-box {
  background: rgba(200,153,42,.15);
  border: 1px solid rgba(200,153,42,.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin-top: 20px;
}

/* ── Registration Section ──────────────────────────────── */
#registration {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--white);
}
.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
}
.fee-table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  letter-spacing: .5px;
  font-weight: 600;
}
.fee-table td {
  padding: 18px 20px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.fee-table tr:last-child td { border-bottom: none; }
.fee-table tr:nth-child(even) td { background: var(--light); }
.fee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 6px;
}

.bank-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3570 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.bank-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(200,153,42,.1);
}
.bank-card h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--gold-light); margin-bottom: 24px; }
.bank-detail { margin-bottom: 16px; }
.bank-detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.bank-detail-value { font-size: 15px; font-weight: 600; color: var(--white); font-family: 'Courier New', monospace; letter-spacing: .5px; }
.bank-note { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }

.reg-cta {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  border: 1px solid var(--border);
  margin-top: 40px;
}
.reg-cta h3 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy); margin-bottom: 12px; }
.reg-cta p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }

/* ── Committee Sections ─────────────────────────────────── */
#committee, #advisory {
  padding: clamp(56px, 8vw, 100px) 0;
}
#committee { background: var(--light); }
#advisory { background: var(--white); }

.committee-hierarchy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 56px;
}
.hierarchy-level {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hierarchy-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hierarchy-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.hierarchy-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.person-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  min-width: min(220px, 100%);
  flex: 1;
}
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-light); }
.person-role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 6px; }
.person-name { font-family: var(--font-serif); font-size: 1rem; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.person-title { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.person-card.patron { border-top: 3px solid var(--gold); }
.person-card.chairman { border-top: 3px solid var(--navy); }
.person-card.convener { border-top: 3px solid var(--blue-light); }

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: 12px;
  margin-top: 8px;
}
.member-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: background .2s, border-color .2s;
}
.member-chip:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 16px;
  margin-top: 56px;
}
.advisory-card {
  display: flex;
  gap: 14px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.advisory-card:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: var(--blue); }
.advisory-num {
  min-width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.advisory-info h4 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.advisory-info p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* ── Contact Section ───────────────────────────────────── */
#contact {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--navy-dark);
}
#contact .section-title { color: var(--white); }
#contact .section-subtitle { color: rgba(255,255,255,.6); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.contact-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  color: var(--white);
  transition: background .3s, border-color .3s, transform .3s;
}
.contact-card:hover { background: rgba(255,255,255,.11); border-color: rgba(200,153,42,.4); transform: translateY(-4px); }
.contact-icon { font-size: 36px; margin-bottom: 16px; }
.contact-card h4 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold-light); margin-bottom: 10px; }
.contact-card p, .contact-card a {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}
.contact-card a:hover { color: var(--gold-light); }

/* ── Template Abstract Section ─────────────────────────── */
#template-abstract {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--light);
}

/* Paper mockup wrapper */
.at-paper-wrap {
  max-width: 820px;
  margin: 48px auto 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.at-paper-bar {
  background: var(--navy-dark);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.at-bar-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.at-dot-red    { background: #ff5f57; }
.at-dot-yellow { background: #febc2e; }
.at-dot-green  { background: #28c840; }
.at-bar-title {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-left: 8px;
  letter-spacing: .5px;
}

.at-paper {
  padding: 36px 40px;
  font-family: 'Times New Roman', Times, serif;
}

/* Each row = callout number + content */
.at-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.at-row-top { align-items: flex-start; margin-bottom: 10px; }

.at-callout {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--white);
}
.at-callout-navy  { background: var(--navy); }
.at-callout-blue  { background: var(--blue-light); }
.at-callout-gold  { background: var(--gold); }

.at-content-block { flex: 1; min-width: 0; }

/* The actual text elements (mimic real paper formatting) */
.at-el-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #111;
  margin: 0 0 5px;
  line-height: 1.3;
}
.at-el-authors {
  font-size: 13px;
  text-align: center;
  color: #222;
  margin: 0 0 5px;
}
.at-el-affil {
  font-size: 12px;
  text-align: center;
  color: #444;
  margin: 0 0 5px;
  line-height: 1.5;
}
.at-el-email {
  font-size: 12px;
  font-style: italic;
  text-align: center;
  color: #555;
  margin: 0 0 5px;
}
.at-el-corresponding {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #222;
  margin: 0;
}
.at-el-body {
  font-size: 12.5px;
  text-align: justify;
  color: #333;
  line-height: 1.75;
  margin: 0 0 6px;
}
.at-el-kw {
  font-size: 12.5px;
  text-align: justify;
  color: #333;
  line-height: 1.65;
  margin: 0;
}

/* Format spec pill (shown under each element) */
.at-format-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(200,153,42,.2);
  border-radius: 20px;
  padding: 2px 10px;
  margin-top: 4px;
  letter-spacing: .3px;
}

.at-separator {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 14px 0;
}

/* Quick-reference rule cards below the paper */
.at-rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.at-rule-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.at-rule-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.at-rule-num {
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.at-num-navy { background: var(--navy); }
.at-num-blue { background: var(--blue-light); }
.at-num-gold { background: var(--gold); }
.at-rule-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.at-rule-text strong { color: var(--navy); display: block; margin-bottom: 3px; }

/* Bottom row: notice + CTA */
.at-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: stretch;
  margin-top: 32px;
}
.at-notice {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  color: rgba(255,255,255,.85);
}
.at-notice-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 14px;
}
.at-notice-list { display: flex; flex-direction: column; gap: 8px; }
.at-notice-list li {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.at-notice-list li::before { content: '›'; position: absolute; left: 0; color: var(--gold-light); font-weight: 700; }
.at-notice-list a { color: var(--gold-light); }
.at-notice-list a:hover { color: var(--white); }

.at-cta-box {
  background: var(--gold-pale);
  border: 1px solid rgba(200,153,42,.3);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  min-width: 200px;
}
.at-cta-box p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.at-deadline-badge {
  font-size: 12px;
  font-weight: 700;
  color: #c0392b;
  background: #fff0f0;
  border: 1px solid #f5c6cb;
  border-radius: 20px;
  padding: 4px 12px;
}

/* Shared rule-link */
.rule-link { color: var(--blue-light); font-weight: 500; }
.rule-link:hover { color: var(--navy); }

/* ── Template Complete Paper Section ────────────────────── */
#template-paper {
  padding: clamp(56px, 8vw, 100px) 0;
  background: var(--white);
}

.paper-template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.paper-spec-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.paper-spec-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue-light));
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}
.paper-spec-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-light); }
.paper-spec-card:hover::after { transform: scaleX(1); }
.psc-icon { font-size: 28px; margin-bottom: 12px; }
.paper-spec-card h4 { font-family: var(--font-serif); font-size: 1rem; color: var(--navy); font-weight: 700; margin-bottom: 14px; }
.psc-list { display: flex; flex-direction: column; gap: 8px; }
.psc-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.psc-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.psc-list a { color: var(--blue-light); font-weight: 500; }
.psc-list a:hover { color: var(--navy); }

.paper-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--gold-pale);
  border: 1px solid rgba(200,153,42,.3);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
.paper-notice-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

/* ── Address Block ─────────────────────────────────────── */
.address-block {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  margin-top: 48px;
  width: 100%;
}
.address-text {
  text-align: left;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.address-link {
  color: var(--gold-light);
  font-weight: 600;
  border: 1px solid rgba(200,153,42,.3);
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.address-link:hover { background: rgba(200,153,42,.15); }

/* ── Footer ────────────────────────────────────────────── */
#footer {
  background: #040d24;
  border-top: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.5);
  font-size: 13px;
  padding: 28px 0;
  text-align: center;
}
#footer a { color: var(--gold-light); }
#footer a:hover { color: var(--white); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   Breakpoints: 1100 → 900 → 768 → 480 → 360
   ══════════════════════════════════════════════════════════ */

/* ── 1200px: Nav collapse (hamburger kicks in) ──────────── */
@media (max-width: 1200px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    border-top: 1px solid var(--border);
    padding: 10px 20px 18px;
    box-shadow: var(--shadow-md);
    gap: 2px;
    z-index: 9999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; font-size: 15px; }
  .nav-cta { margin-left: 0 !important; margin-top: 6px; text-align: center !important; }
  #navbar { position: sticky; }
  .nav-inner { position: relative; }
}

/* ── 1100px: Tablet landscape ──────────────────────────── */
@media (max-width: 1100px) {
  .hero-image-card { display: none; }
  .about-grid       { grid-template-columns: 1fr 1fr; }
  .themes-grid      { grid-template-columns: 1fr 1fr; }
  .contact-grid     { grid-template-columns: 1fr 1fr; }
}

/* ── 900px: Tablet portrait ────────────────────────────── */
@media (max-width: 900px) {
  .submission-grid,
  .reg-grid,
  .template-layout  { grid-template-columns: 1fr; gap: 24px; }
  .paper-template-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .obj-grid         { grid-template-columns: 1fr; }
  .about-grid       { grid-template-columns: 1fr; }
  .ql-grid          { grid-template-columns: 1fr; gap: 12px; }
  .section-subtitle { margin-bottom: 28px; }
}

/* ── 768px: Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* Top bar */
  #top-bar { padding: 6px 0; }
  #top-bar .container {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    text-align: center;
  }
  .top-bar-links { flex-wrap: wrap; justify-content: center; gap: 8px; }

  /* Navbar — already handled at 1200px; just tweak sizing */
  .nav-inner { padding: 10px 0; }
  .nav-brand img { height: 36px; }
  .nav-brand-title { font-size: 14px; }
  .nav-brand-sub { display: none; }

  /* Hero */
  #hero { min-height: auto; }
  .hero-container { padding: 52px 20px 48px; }
  .hero-badge { font-size: 11px; padding: 6px 12px; letter-spacing: 1px; }
  .hero-conf-name { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero-subtitle { font-size: 14px; margin-bottom: 24px; }
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-meta-item { padding: 10px 14px; gap: 10px; }
  .hero-meta-icon { font-size: 18px; }
  .hero-meta-value { font-size: 14px; }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
  }
  .btn { width: 100%; max-width: 340px; justify-content: center; padding: 13px 20px; }
  .countdown-title { font-size: 12px; }
  .countdown-wrap { gap: 8px; }
  .countdown-box { min-width: 64px; padding: 12px 10px; }
  .countdown-num { font-size: 1.7rem; }
  .countdown-label { font-size: 10px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 14px; }
  .about-card { padding: 24px 20px; }
  .obj-item { padding: 16px 18px; gap: 12px; }

  /* Quick Links */
  .ql-grid { grid-template-columns: 1fr; gap: 12px; }
  .ql-icon-box { padding: 20px 14px; min-width: 60px; }
  .ql-icon { font-size: 22px; }
  .ql-body { padding: 14px 12px; }
  .ql-title { font-size: .95rem; }
  .ql-arrow { padding: 0 12px 0 6px; font-size: 18px; }

  /* Themes */
  .themes-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .theme-chip { padding: 14px 14px; gap: 10px; }
  .theme-chip span { font-size: 13px; }

  /* Timeline */
  .timeline { padding-left: 26px; margin-top: 36px; }
  .timeline::before { left: 6px; width: 2px; }
  .timeline-item {
    padding: 14px 14px 14px 16px;
    margin-bottom: 20px;
  }
  .timeline-item::before { left: -25px; width: 12px; height: 12px; top: 22px; }
  .timeline-badge {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
    font-size: 10px;
  }

  /* Submission */
  .submission-info-box { padding: 22px 18px; }
  .submission-info-box h3 { font-size: 1.1rem; }
  .guideline-item { padding: 14px 16px; gap: 12px; }

  /* Committee */
  .committee-hierarchy { gap: 20px; }
  .hierarchy-cards { flex-direction: column; gap: 10px; }
  .person-card { min-width: 0; width: 100%; padding: 16px 18px; }
  .members-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .member-chip { padding: 10px 12px; font-size: 12px; }

  /* Advisory */
  .advisory-card { padding: 14px 16px; gap: 10px; }
  .advisory-info h4 { font-size: 13px; }
  .advisory-info p { font-size: 12px; }

  /* Registration */
  .fee-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fee-table { min-width: 320px; }
  .fee-table th, .fee-table td { padding: 12px 14px; font-size: 14px; }
  .bank-card { padding: 22px 18px; }
  .bank-detail-value { font-size: 13px; letter-spacing: 0; word-break: break-all; }
  .reg-cta { padding: 24px 20px; }
  .reg-cta .btn { max-width: 100%; }

  /* Abstract Template */
  .at-paper { padding: 24px 20px; }
  .at-rules-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .at-bottom-row { grid-template-columns: 1fr; }
  .at-cta-box { min-width: unset; }
  .paper-template-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .paper-spec-card { padding: 18px 16px; }
  .paper-notice { flex-direction: column; gap: 10px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-card { padding: 24px 18px; }

  /* Address block */
  .address-block { flex-direction: column; text-align: center; padding: 20px; gap: 12px; }
  .address-text { text-align: center; }
}

/* ── 480px: Small phones ───────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero-container { padding: 44px 14px 40px; }

  .themes-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; }
  .paper-template-grid { grid-template-columns: 1fr; }
  .at-rules-grid { grid-template-columns: 1fr 1fr; }
  .at-paper { padding: 18px 14px; }
  .at-row { gap: 10px; }
  .at-callout { min-width: 24px; height: 24px; font-size: 11px; }

  .section-title { font-size: clamp(1.3rem, 5vw, 1.6rem); }
  .section-subtitle { font-size: 14px; }

  .countdown-wrap { gap: 6px; }
  .countdown-box { min-width: 58px; padding: 10px 8px; }
  .countdown-num { font-size: 1.4rem; }

  /* Top bar: just the email link, drop long desc */
  #top-bar .container > span:first-child { display: none; }
  .top-bar-links > span { display: none; } /* hide pipe separator */

  .obj-num { min-width: 34px; height: 34px; font-size: 13px; }
  .about-card-icon { font-size: 28px; }
  .timeline-item { padding: 12px 12px 12px 14px; }
  .timeline-title { font-size: 1rem; }
  .bank-card::before { display: none; }
}

/* ── 360px: Very small (Galaxy S8 etc.) ────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-container { padding: 36px 12px 36px; }
  .countdown-box { min-width: 52px; padding: 8px 6px; }
  .countdown-num { font-size: 1.25rem; }
  .hero-badge { font-size: 10px; padding: 5px 10px; }
  .nav-brand-title { font-size: 13px; }
  .hero-meta-item { padding: 8px 12px; }
  .fee-table th, .fee-table td { padding: 10px 10px; font-size: 13px; }
}
