:root {
  --blue-900: #082b5f;
  --blue-800: #0d3f82;
  --blue-700: #1559b7;
  --blue-100: #e8f1ff;
  --blue-50: #f5f9ff;
  --white: #ffffff;
  --ink: #172033;
  --muted: #5c6980;
  --line: #d9e4f5;
  --shadow: 0 18px 45px rgba(8, 43, 95, 0.14);
}

.alert {
  margin-top: 100px;
  padding: 18px;
  border-radius: 8px;
}

.alert-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.admin-wrap {
  display: grid;
  gap: 24px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-stat,
.admin-panel {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.admin-stat {
  padding: 22px;
  color: #16396f;
}

.admin-stat span {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

.admin-panel {
  padding: 18px;
  overflow: hidden;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5edf7;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #16396f;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #17447f;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.nav-logout {
  margin: 0;
}

.nav-logout button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.login-shell {
  display: flex;
  justify-content: center;
}

.login-form {
  width: min(100%, 520px);
}

@media (max-width: 760px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header and navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.navbar {
  width: min(1320px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.organizer-logos,
.conference-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--blue-900);
}

.organizer-logos {
  flex: 0 0 auto;
}

.conference-logo {
  flex: 0 0 auto;
}

.logo-image {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-900);
}

.nav-menu a {
  position: relative;
  padding: 8px 0;
}

.nav-menu a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--blue-700);
  transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-900);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 148px 20px 74px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(rgba(8, 43, 95, 0.68), rgba(8, 43, 95, 0.78)),
    url("assets/main-poster-bg.png") center/cover;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(8, 43, 95, 0.95));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: #cfe3ff;
}

.hero h1 {
  width: min(900px, 100%);
  margin: 0 auto;
  font-size: clamp(2rem, 4.7vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.theme {
  width: min(820px, 100%);
  margin: 24px auto 0;
  font-size: clamp(1.05rem, 2.3vw, 1.55rem);
  font-weight: 600;
  color: #edf5ff;
}

.organizer-line {
  margin: 16px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #cfe3ff;
}

.event-date {
  margin: 14px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #d8e9ff;
}

.event-location {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #cfe3ff;
}

.countdown {
  width: min(660px, 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.countdown div {
  min-height: 104px;
  padding: 18px 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.countdown span {
  display: block;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1;
  font-weight: 800;
}

.countdown small {
  font-weight: 700;
  color: #dcecff;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  color: var(--white);
  background: var(--blue-700);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
}

/* Content sections */
.section {
  padding: 92px 0;
}

.two-column,
.contact-grid,
.registration-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 58px;
  align-items: start;
}

.section-label {
  color: var(--blue-700);
}

h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.16rem;
  line-height: 1.3;
}

.section-copy p,
.registration-panel p,
.contact-grid p {
  margin: 0 0 18px;
  color: var(--muted);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 38px;
}

.blue-band {
  background: var(--blue-50);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.theme-card,
.collaboration-card,
.registration-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(8, 43, 95, 0.08);
}

.theme-card {
  min-height: 130px;
  padding: 26px;
  display: flex;
  align-items: center;
}

.theme-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.collaboration-section {
  background: var(--white);
}

.collaboration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.collaboration-card {
  min-height: 230px;
  padding: 24px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.collaboration-card img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  display: block;
}

.collaboration-card h3 {
  font-size: 1rem;
}

.date-list {
  display: grid;
  gap: 14px;
}

.date-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue-700);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(8, 43, 95, 0.06);
}

.date-item span {
  color: var(--blue-800);
  font-weight: 800;
}

.date-item strong {
  font-size: 1.05rem;
}

.date-item.highlight {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: var(--white);
}

.date-item.highlight span {
  color: #bcd8ff;
}

.facilities-section {
  background: var(--blue-50);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.facility-item {
  min-height: 82px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue-700);
  border-radius: 8px;
  color: var(--blue-900);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(8, 43, 95, 0.07);
  font-weight: 800;
}

.registration-section {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
}

.registration-panel {
  align-items: center;
}

.registration-panel h2,
.registration-panel .section-label {
  color: var(--white);
}

.registration-panel p {
  color: #d7e7ff;
}

.registration-card {
  padding: 32px;
}

.registration-card ul {
  margin: 18px 0 28px;
  padding-left: 20px;
  color: var(--muted);
}

.registration-card li {
  margin-bottom: 10px;
}

.contact-card {
  padding: 28px;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 26px 0;
  color: #d9e8ff;
  background: #061e43;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-content p {
  margin: 0;
}

.footer-content a {
  font-weight: 800;
  color: var(--white);
}

/* Inner pages */
.page-hero {
  position: relative;
  padding: 154px 0 80px;
  color: var(--white);
  background:
    linear-gradient(rgba(8, 43, 95, 0.76), rgba(8, 43, 95, 0.82)),
    url("assets/main-poster-bg.png") center/cover;
}

.page-hero h1 {
  width: min(860px, 100%);
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-hero p:last-child {
  width: min(760px, 100%);
  margin: 20px 0 0;
  color: #e5f0ff;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  font-weight: 600;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 34px;
  align-items: start;
}

.info-panel,
.conference-form,
.schedule-day,
.speaker-card,
.gallery-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(8, 43, 95, 0.08);
}

.info-panel {
  position: sticky;
  top: 104px;
  padding: 30px;
}

.info-panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
  background: var(--blue-700);
  box-shadow: inset 0 0 0 5px var(--blue-100);
}

.conference-form {
  padding: 32px;
  display: grid;
  gap: 28px;
}

.form-section {
  display: grid;
  gap: 18px;
}

.form-section h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.conference-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-900);
  font-size: 0.94rem;
  font-weight: 800;
}

.conference-form input,
.conference-form select,
.conference-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.conference-form textarea {
  resize: vertical;
}

.conference-form input:focus,
.conference-form select:focus,
.conference-form textarea:focus {
  outline: 3px solid rgba(21, 89, 183, 0.16);
  border-color: var(--blue-700);
}

.form-grid,
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-row input,
.option-card input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.option-card {
  min-height: 86px;
  padding: 18px;
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-50);
}

.form-note {
  margin: 0;
  color: var(--blue-800);
  font-weight: 800;
}

.contact-lines {
  margin-top: 20px;
}

.contact-lines p {
  margin: 0 0 14px;
  color: var(--muted);
}

.schedule-tabs {
  display: grid;
  gap: 22px;
}

.schedule-day {
  display: grid;
  grid-template-columns: 270px 1fr;
  overflow: hidden;
}

.schedule-date {
  padding: 28px;
  color: var(--white);
  background: var(--blue-900);
}

.schedule-date span,
.schedule-list time {
  display: block;
  font-weight: 800;
  color: #bcd8ff;
}

.schedule-date strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.schedule-list {
  display: grid;
}

.schedule-list div {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.schedule-list div:last-child {
  border-bottom: 0;
}

.schedule-list h3 {
  margin-top: 4px;
}

.schedule-list p,
.speaker-card p,
.gallery-item figcaption {
  margin: 8px 0 0;
  color: var(--muted);
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.speaker-card {
  padding: 26px;
}

.speaker-card h2 {
  margin-top: 6px;
  font-size: 1.45rem;
}

.speaker-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), #1d8a9b);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  background: var(--blue-50);
}

.gallery-item:not(.feature) img {
  padding: 28px;
  object-fit: contain;
}

.gallery-item.feature {
  grid-column: span 2;
}

.gallery-item.feature img {
  height: 360px;
}

.gallery-item figcaption {
  padding: 18px 20px 20px;
  font-weight: 800;
  color: var(--blue-900);
}

/* Admin-ready dashboard */
.admin-body {
  min-height: 100vh;
  background: var(--blue-50);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  padding: 28px;
  color: var(--white);
  background: #061e43;
}

.admin-sidebar img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
}

.admin-sidebar h1 {
  margin: 18px 0 28px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.admin-sidebar a {
  font-weight: 800;
  color: #cfe3ff;
}

.admin-main {
  padding: 44px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.admin-stats article,
.admin-table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(8, 43, 95, 0.08);
}

.admin-stats article {
  padding: 24px;
}

.admin-stats span {
  display: block;
  color: var(--blue-700);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  margin-top: 10px;
  color: var(--blue-900);
}

.admin-table-card {
  padding: 26px;
}

.admin-table-card h2 {
  margin-bottom: 18px;
  font-size: 1.55rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  color: var(--blue-900);
  background: var(--blue-50);
}

@media (max-width: 900px) {
  .navbar {
    min-height: 86px;
  }

  .logo-image {
    width: 46px;
    height: 46px;
  }

  .logo-text {
    display: none;
  }

  .organizer-logos,
  .conference-logo {
    gap: 8px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .conference-logo {
    order: 2;
    margin-left: auto;
  }

  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: 86px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 20px 30px rgba(8, 43, 95, 0.08);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 13px 0;
  }

  .two-column,
  .contact-grid,
  .registration-panel,
  .form-layout,
  .schedule-day {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .info-panel {
    position: static;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collaboration-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .speaker-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.feature {
    grid-column: span 2;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .admin-sidebar h1 {
    margin: 0;
  }

  .admin-sidebar a {
    margin-left: auto;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .navbar {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .page-hero {
    padding: 132px 0 62px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown div {
    min-height: 92px;
  }

  .section {
    padding: 68px 0;
  }

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

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

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

  .date-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px;
  }

  .registration-card,
  .contact-card,
  .theme-card,
  .conference-form,
  .info-panel {
    padding: 22px;
  }

  .form-grid,
  .option-grid,
  .speaker-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.feature {
    grid-column: span 1;
  }

  .gallery-item.feature img,
  .gallery-item img {
    height: 240px;
  }

  .admin-main {
    padding: 28px 18px;
  }

  .admin-sidebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-sidebar a {
    margin-left: 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
