/* ================= BASE + VARIABLES ================= */

:root {
  --color-bg-main: #010d26;   /* main background */
  --color-accent-1: #033e8c;
  --color-accent-2: #022859;
  --color-accent-3: #0487d9;
  --color-accent-4: #04b2d9;
  --color-accent-gold: #f2b705;
  --color-light-panel: #c1dceb;
  --color-text-main: #e5e7eb;
  --color-text-muted: #9ca3af;

  --font-heading: "gibson", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "source-sans-3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset-ish */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-main);
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================= HEADER / NAV ================= */

.site-header {
  position: fixed;          /* fixed at top */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(1, 13, 38, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(4, 135, 217, 0.3);
}

.header-spacer {
  height: 70px;  /* must roughly match header height */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 40px;  /* adjust to your actual logo */
  width: auto;
}

/* Nav list */
.main-nav {
  font-size: 0.9rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: #e5e7eb;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
  background-color: var(--color-accent-1);
  color: #ffffff;
}

.nav-link.active {
  background-color: var(--color-accent-3);
  color: #ffffff;
}

/* Currently “dull” but clickable */
.nav-muted {
  opacity: 0.7;
}

/* Dropdowns */
.nav-item {
  position: relative;
}

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #010d26;
  border-radius: 0.5rem;
  padding: 0.4rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: none;
}

.has-dropdown:hover .dropdown {
  display: block;  /* open on hover */
}

.dropdown li {
  list-style: none;
}

.dropdown-link {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  color: #e5e7eb;
  white-space: nowrap;
}

.dropdown-link:hover {
  background-color: var(--color-accent-1);
}

/* "Dull" dropdown entries (but still clickable for now) */
.dropdown-muted {
  opacity: 0.6;
}

/* ================= HERO + CAROUSEL ================= */

.hero {
  margin-top: 0;  /* header is already accounted for by spacer */
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}
.hero-temp {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

/* Background carousel wrapper */
/* .hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
} */

/* Each slide covers entire area */
/* .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 10s infinite;
} */

/* Individual slides – update URLs with your real images */
/* .slide-1 {
  background-image: url("../img/hero-bg-1.png");
  animation-delay: 0s;
}
.slide-2 {
  background-image: url("../img/hero-bg-2.png");
  animation-delay: 5s;
}
.slide-3 {
  background-image: url("../img/hero-bg-3.jpg");
  animation-delay: 10s;
}
.slide-4 {
  background-image: url("../img/hero-bg-4.jpg");
  animation-delay: 15s;
} */

/* Simple fade in/out cycle */
/* @keyframes heroFade {
  0%, 20%   { opacity: 1; }
  25%, 100% { opacity: 0; }
} */

/* Foreground banner centered, same footprint as carousel */
.hero-banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* clicks pass through if banner has no buttons */
}

.hero-banner img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
}

/* Maintain aspect ratio with a min height if images are not loaded yet */
.hero-carousel::before {
  content: "";
  display: block;
  padding-top: 40%; /* height ~40% of width; adjust to match your images */
}

/* ================= COUNTDOWN ================= */

.countdown-section {
  padding: 1.5rem 0 2.5rem;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.countdown-timer {
  font-size: 1.2rem;
  font-weight: 600;
}

/* ================= ABOUT + DATES ================= */

.about-dates {
  padding: 1.5rem 0 2.5rem;
}

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

.panel {
  background-color: rgba(193, 220, 235, 0.09); /* subtle panel */
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(4, 135, 217, 0.35);
}

.panel-about h2,
.panel-dates h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.panel-about p {
  color: var(--color-text-main);
}

.panel-about p + p {
  margin-top: 1rem;  /* space between paragraphs */
}

.dates-list {
  list-style: none;
}

.dates-list li + li {
  margin-top: 0.4rem;
}

.date-label {
  font-weight: 600;
  color: var(--color-accent-gold);
}

/* ======== TIMELINE AS TABLE (GRID LAYOUT) ======== */

.timeline-table {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-row {
  display: grid;
  grid-template-columns: 20px 160px 1fr;
  align-items: start;
  gap: 0.8rem;
  margin-bottom: 1rem;

  /* Fade-in prep */
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-row.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ICON COLUMN */
.col-icon {
  width: 12px;
  height: 12px;
  margin-top: 0.3rem;
  border-radius: 999px;
  background-color: var(--color-accent-3);
  box-shadow: 0 0 0 3px rgba(4, 135, 217, 0.35);
}

/* DATE COLUMN */
.col-date {
  font-weight: 700;
  color: var(--color-accent-gold);
}

/* TEXT COLUMN */
.col-text {
  line-height: 1.5;
}

/* ======== TIMELINE STATES (past / future / next) ======== */

.timeline-row.past-deadline .col-text {
  opacity: 0.6;
}

.timeline-row.future-deadline .col-icon {
  background-color: var(--color-accent-4);
}

.timeline-row.next-deadline .col-icon {
  background-color: var(--color-accent-gold);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.5);
}

.timeline-row.next-deadline {
  background-color: rgba(4, 135, 217, 0.18);
  border-radius: 0.5rem;
  padding: 0.3rem 0.5rem;
}

/* ================= POSTER DOWNLOAD ================= */

.poster-section {
  padding: 0 0 2.5rem;
}

.poster-card {
  background-color: rgba(193, 220, 235, 0.09);
  border-radius: 1rem;
  border: 1px solid rgba(4, 135, 217, 0.35);
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.poster-text h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.poster-text p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 36rem;
}

.poster-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--color-accent-3),
    var(--color-accent-4)
  );
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.poster-download-btn:hover {
  background: linear-gradient(
    to right,
    var(--color-accent-4),
    var(--color-accent-3)
  );
}

/* ================= TOPICS OF INTEREST ================= */

.topics-section {
  padding: 0 0 2.5rem;
}

.topics-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.topics-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

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

.topics-grid ul {
  list-style: disc;
  padding-left: 1.3rem;
}

.topics-grid li + li {
  margin-top: 0.4rem;
}

/* Stack into one column on small screens */
@media (max-width: 800px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
}



/* ================= LATEST NEWS ================= */

.latest-news {
  padding: 1.5rem 0 2.5rem;
}

.section-title {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.section-title-link {
  border-bottom: 2px solid var(--color-accent-3);
  padding-bottom: 0.1rem;
}

.section-title-link:hover {
  color: var(--color-accent-4);
  border-color: var(--color-accent-4);
}

.news-list {
  list-style: none;
  border-radius: 1rem;
  border: 1px solid rgba(4, 135, 217, 0.25);
  padding: 1rem 1.25rem;
  background-color: rgba(1, 13, 38, 0.6);
}

.news-list li + li {
  margin-top: 0.4rem;
}

.news-date {
  font-weight: 600;
  color: var(--color-accent-gold);
}




/* ================= FOOTER ================= */

.site-footer {
  background-color: #010d26;
  border-top: 1px solid rgba(4, 135, 217, 0.4);
  padding: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  text-align: center;
}

.site-footer a {
  color: var(--color-accent-4);
}

.site-footer a:hover {
  color: var(--color-accent-3);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-list {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-inline: 1rem;
  }

  .header-spacer {
    height: 90px; /* header taller when wrapped */
  }
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.past-deadline .timeline-content {
  opacity: 0.6;
}

.timeline-item.future-deadline .timeline-icon {
  background-color: var(--color-accent-4);
}

.timeline-item.next-deadline .timeline-icon {
  background-color: var(--color-accent-gold);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.5);
}

.timeline-item.next-deadline .timeline-content {
  background-color: rgba(4, 135, 217, 0.18);
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
}

/* ========== Organizing Committee Layout ========== */

.committee-section {
  margin-bottom: 2.5rem;
}

.committee-role {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(4, 135, 217, 0.4);
  padding-bottom: 0.3rem;
}

.committee-members {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.committee-card {
  background-color: rgba(193, 220, 235, 0.06);
  border-radius: 1rem;
  border: 1px solid rgba(4, 135, 217, 0.25);
  padding: 1rem;
  width: min(220px, 100%);
  text-align: center;
}

.committee-photo img {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  filter: grayscale(0.1);
}

.committee-name {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;   /* makes the NAME appear in ALL CAPS */
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* Institution/country is deliberately less visually prominent */
.committee-affiliation {
  font-size: 0.85rem;
  color: var(--color-text-muted);  /* uses muted text colour */
  font-weight: 400;
  line-height: 1.4;
}

/* Responsive: full-width cards on very narrow screens */
@media (max-width: 600px) {
  .committee-card {
    width: 100%;
  }
}

.submission-banner {
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(242, 183, 5, 0.65);
  background-color: rgba(242, 183, 5, 0.08);
  font-size: 0.95rem;
  font-weight: 600;
}

.submission-section {
  max-width: 52rem;
}

.submission-heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.submission-section p {
  font-size: 0.95rem;
  line-height: 1.7;
}
