:root {
  --ink: #0b1f3a;
  --muted: #42526b;
  --light: #f2f7fb;
  --white: #ffffff;
  --line: #d8e3ef;
  --accent: #0e8a5a;
  --brand: #0d4f9e;
  --dark: #0b1e36;
  --hero-bg-image: url("assets/images/amu_back.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: var(--white);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.15;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logos {
  display: flex;
  gap: 0.55rem;
}

.logo-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
}

.logo-pop {
  position: relative;
  display: inline-flex;
}

.logo-flyout {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.94);
  transform-origin: top center;
  width: 190px;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1200;
}

.logo-flyout img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

.logo-flyout p {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.logo-pop:hover .logo-flyout,
.logo-pop:focus-within .logo-flyout {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.logo-pop:focus-visible .logo-thumb {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover {
  background: rgba(13, 79, 158, 0.12);
  color: var(--ink);
}

nav a.is-active {
  background: var(--brand);
  color: #fff;
}

.btn-mini {
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.35rem);
  letter-spacing: -0.03em;
}

.hero-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.8rem;
}

.hero-meta span {
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #2368b5);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 79, 158, 0.24);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
}

.section {
  padding: 6rem 0;
}

.section.light {
  background: var(--light);
}

.section.dark {
  background: var(--dark);
  color: #fff;
}

.section.dark p {
  color: #d1d5db;
}

.centered {
  max-width: 760px;
  margin: 0 auto 2.3rem;
  text-align: center;
}

.centered h2,
.split h2 {
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  letter-spacing: -0.02em;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.content h3 {
  margin-top: 1.1rem;
}

#about .content p {
  text-align: justify;
  text-justify: inter-word;
}

.org-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.6rem;
}

.org-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.9rem;
  align-items: center;
}

.org-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
}

.org-card h4 {
  margin: 0 0 0.35rem;
}

#about .org-card p {
  margin: 0;
  text-align: justify;
}

.ticks {
  margin: 0;
  padding-left: 1.1rem;
}

.ticks li {
  margin-bottom: 0.4rem;
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.dates-grid article {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
}

.dates-grid h3 {
  font-size: 1rem;
}

.tracks-panel {
  border: 1px solid #374151;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  border-radius: 12px;
}

.tracks-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.section.dark .tracks-panel h3 {
  color: #f3f4f6;
}

.theme-list {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}

.theme-list li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  color: #d1d5db;
  margin-bottom: 0.45rem;
}

.submit-panel {
  margin-top: 1.1rem;
  border: 1px solid #374151;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.1rem;
}

.submit-panel h3 {
  margin-top: 0;
}

.section.dark .submit-panel h3 {
  color: #f3f4f6;
}

.submit-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.speaker-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.speaker-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center;
  background: #f6f9fd;
  padding: 6px;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.speaker-card:hover img {
  filter: grayscale(0);
}

.speaker-card div {
  padding: 0.9rem;
  text-align: center;
}

.tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.tab-btn {
  border: 0;
  background: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--ink);
  color: #fff;
}

.tab-panel {
  display: none;
  gap: 0.7rem;
}

.tab-panel.active {
  display: grid;
}

.slot {
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  background: #fff;
}

.slot strong {
  color: var(--accent);
  margin-right: 0.5rem;
}

.committee-lines {
  display: grid;
  gap: 0.85rem;
}

.committee-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.co-patron-line {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.co-patron-line .committee-card {
  flex: 0 0 200px;
}

.committee-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 235px;
}

.committee-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  background: #f6f9fd;
  padding: 6px;
  display: block;
}

.committee-card img.passport-crop {
  object-fit: cover;
  object-position: center top;
  padding: 0;
}

.committee-body {
  padding: 0.75rem 0.7rem 0.8rem;
  text-align: center;
}

.committee-card h3 {
  margin-bottom: 0.35rem;
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 0.98rem;
  color: var(--brand);
}

.committee-card p {
  margin: 0;
  text-align: center;
}

.committee-body .member-name {
  font-weight: 600;
  color: var(--ink);
}

.committee-body .member-title {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.committee-details {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.committee-note,
.committee-table-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.95rem;
}

.committee-note h3,
.committee-table-card h3 {
  margin-bottom: 0.6rem;
}

.member-photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.organizing-photo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.member-photo-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem;
  text-align: center;
}

.member-photo-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f9fd;
  padding: 4px;
}

.member-photo-placeholder {
  position: relative;
  width: 100%;
  height: 130px;
  border: 1px solid #c6cfde;
  border-radius: 8px;
  background: linear-gradient(180deg, #f3f6fb 0%, #e7edf7 100%);
  overflow: hidden;
}

.member-photo-placeholder::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 78px;
  height: 54px;
  transform: translateX(-50%);
  background: #9aa8bd;
  border-radius: 40px 40px 10px 10px;
}

.member-photo-placeholder::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 42px;
  height: 42px;
  transform: translateX(-50%);
  background: #9aa8bd;
  border-radius: 50%;
}

.member-photo-card p {
  margin: 0.45rem 0 0;
  line-height: 1.35;
}

.member-photo-card p strong {
  display: block;
  color: var(--ink);
}

.member-photo-card p span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.committee-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.committee-table {
  width: 100%;
  border-collapse: collapse;
}

.committee-table th,
.committee-table td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.6rem;
  text-align: left;
  font-size: 0.93rem;
}

.committee-table th {
  background: #edf4fb;
}

.register-wrap {
  text-align: center;
}

.register-steps {
  max-width: 780px;
  margin: 0.3rem auto 0.1rem;
  text-align: left;
}

.center-actions {
  justify-content: center;
}

.bank-table-wrap {
  max-width: 820px;
  margin: 1rem auto 0;
  text-align: left;
}

.bank-table-wrap h3 {
  margin-bottom: 0.6rem;
}

.bank-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.bank-table th,
.bank-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
}

.bank-table th {
  background: #eef2f7;
}

.scan-pay {
  margin-top: 1rem;
  text-align: center;
}

.scan-pay h3 {
  margin-bottom: 0.55rem;
}

.scan-pay img {
  width: min(220px, 52vw);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

.fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.fees-grid article {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.9rem;
}

.fees-grid h3 {
  font-size: 0.95rem;
}

.register-wrap .btn-primary,
.register-wrap .btn-ghost {
  margin: 0.25rem;
}

.venue-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: 1fr;
}

.venue-map {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.venue-map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  display: block;
}

.gallery-marquee {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  width: max-content;
  animation: gallery-scroll 36s linear infinite;
}

.gallery-set {
  display: flex;
}

.gallery-set img {
  flex: 0 0 auto;
  width: min(320px, 80vw);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-right: 1rem;
  border: 1px solid var(--line);
}

@keyframes gallery-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.75rem;
  font: inherit;
}

footer {
  background: linear-gradient(180deg, #0b1e36 0%, #081526 100%);
  color: #fff;
  padding: 3rem 0 1.2rem;
}

footer h3 {
  font-size: 1.06rem;
}

footer p {
  color: #c9d0dd;
}

.footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.copyright {
  text-align: center;
  margin-top: 1.3rem;
  color: #afbdd1;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.copyright + .copyright {
  margin-top: 0.4rem;
  color: #d2dcee;
  font-weight: 600;
}

@media (max-width: 980px) {
  .split,
  .dates-grid,
  .speakers-grid,
  .fees-grid,
  .venue-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .theme-list {
    columns: 1;
  }

  .committee-tables {
    grid-template-columns: 1fr;
  }

  .organizing-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .org-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .org-card img {
    width: min(170px, 100%);
    margin: 0 auto;
  }

  .speaker-card {
    grid-column: span 1;
  }

  nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
  }

  nav.open {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  }

  .logo-flyout {
    display: none;
  }
}

@media (max-width: 640px) {
  .committee-card {
    max-width: 290px;
  }

  .organizing-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* Legacy page support (about.html, submission.html, etc.) */
.wrap {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand {
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.org-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.section.alt {
  background: #f8fafc;
}

.page-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.08), rgba(255, 255, 255, 0.1));
  border-bottom: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
}

.accent {
  border-left: 4px solid var(--accent);
}

.timeline {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timeline-item {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
}

.plain-list {
  margin: 0;
  padding-left: 1rem;
}

.text-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.top-gap {
  margin-top: 1rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.logo-card {
  text-align: center;
}

.logo-card img {
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: #fff;
}

.note {
  color: #6b7280;
}

.footer-wrap {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.footer-wrap a {
  color: #c9d0dd;
}

@media (max-width: 980px) {
  .two-col,
  .cards-3,
  .timeline,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .org-logo {
    width: 30px;
    height: 30px;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 0;
  }
}
