/* =====================
   Premium, simplified CSS — cleaned (same visuals)
   ===================== */

/* ---------------------
   Global tokens & base
---------------------- */
:root {
  --bg: linear-gradient(135deg, #f8fafc, #eef2ff);
  --card-bg: #ffffff;
  --text: #1a237e;
  --org-text: #0c0c0c;
  --muted: #141516;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --ring: rgba(37, 99, 235, 0.25);
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --content-inset: clamp(12px, 5vw, 50px);
  --cover-border: #e9de47;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

/* ---------------------
   Layout shell
---------------------- */
.container {
  max-width: 1475px;
  margin: 28px auto;
  background: var(--card-bg);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: visible;
}

/* ---------------------
   Header / Navbar
---------------------- */
/* header {
  background: rgba(255, 255, 255, 0.85);
  color: #0b1220;
  backdrop-filter: saturate(140%) blur(8px);
} */
/* .header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
} */

header {
  display: contents; /* lets .header-top stick beyond the header */
}

.header-top {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 18px;
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 1000;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: saturate(140%) blur(8px);
}

.logo img { height: 60px; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
nav a {
  color: #0b1220;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
nav a:hover { background: #eef2ff; }

/* ---------------------
   Cover image + stacked text
---------------------- */
.cover-photo {
  position: relative;
  height: clamp(500px, 45vh, 700px); /* keeps your taller look; responsive */
  background: #0b1220;
  border-bottom: 10px solid var(--cover-border);
  
}
.cover-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 4-line cover text */
.cover-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 6px; padding: 0 16px; text-align: center; color: #000000;
}
.cover-text .l1 { font-size: clamp(48px, 5vw, 65px); font-weight: 1000; letter-spacing: .2px; margin-bottom: 30px; margin-top: 6.3%;}
.cover-text .l2 { font-size: clamp(30px, 3.2vw, 30px); font-weight: 900; letter-spacing: .15px; margin-bottom: clamp(25px, 1.2vw, 18px); }
.cover-text .l3, .cover-text .l4 { font-size: clamp(24px, 2.4vw, 22px); font-weight: 800; letter-spacing: .1px; }

/* ---------------------
   Sections & type
---------------------- */
main { padding: 22px; }
section { padding: 26px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
section h2 { text-align: center; margin: 0 0 14px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .2px; }

/* Body copy (not headings) */
main p, main li { font-size: 16px; line-height: 1.8; color: var(--muted);}

/* Left-aligned sections with responsive insets */
#about p,
#abstract p,
#practical-info  center {
  color: var(--muted);
  display: block;
  text-align: left;
  margin: 8px 0 0;
  padding-left: var(--content-inset);
  padding-right: var(--content-inset);
}


#practical-info #venue .venue-center,
#practical-info #venue center {
text-align: center !important; /* override the left-align paragraph rule */
color: var(--muted);
display: block;
margin: 8px 0 0;
padding-left: var(--content-inset);
padding-right: var(--content-inset);
}

/* #venue center1{
text-align: center;
} */

/* Organizers list with same insets */
#organizer ul {
  text-align: left !important;
  margin: 8px 0 0;
  padding-left: var(--content-inset);
  padding-right: var(--content-inset);
  list-style-position: inside;
  overflow-wrap: anywhere;
  color: var(--org-text);
}


/* Multi-logo row beside main logo */
.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;           /* keep in one line on wide screens */
}
.logo-row img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;              /* don't let images squish */
  margin-left: 0px;
}
.logo-main  { height: 60px; }  /* match your current logo size */
.logo-badge { height: 40px; }  /* smaller partner logos */

/* Keep nav pushed all the way to the right even if logos grow */
.header-top nav { margin-left: auto; }

/* On small screens, allow wrapping + slightly smaller logos */
@media (max-width: 700px) {
  .logo-row { flex-wrap: wrap; justify-content: center; }
  .logo-main  { height: 48px; }
  .logo-badge { height: 30px; }
}



/* Speakers (two-column bullet list) */
#speakers ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  /* Center the speakers block with an easy-to-tweak max width */
  max-width: 900px;
  margin: 8px auto 0;
  padding: 0 var(--content-inset);
  list-style: disc inside;
  color: var(--muted);
  overflow-wrap: anywhere;
  /* justify-items: start; keep each item left-aligned within its column */
  justify-items: center; text-align: center;
}
@media (max-width: 700px) {
  #speakers ul { grid-template-columns: 1fr; }
}


/* Sponsored by (names list, auto-fit grid) */
#sponsored-by ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 28px;
  max-width: 900px;        /* tweak this if you want wider/narrower */
  margin: 8px auto 0;      /* centers the whole block */
  padding: 0 var(--content-inset);
  list-style: disc outside;
  color: var(--muted);
  overflow-wrap: anywhere;
  justify-items: center; text-align: center;
  
}
@media (max-width: 700px) { #sponsored-by ul { grid-template-columns: 1fr; } }


/* ---------------------
   About split (text + photo)
---------------------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 35px; align-items: start; }
.about-text p { margin: 0 auto; }
.about-photo img { width: 70%; height: 305px; max-height: 420px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo img { max-height: none; } }

/* ---------------------
   PDF preview cards (panels)
---------------------- */
.panel { position: relative; padding: 14px 14px 16px; border-radius: var(--radius); background: linear-gradient(180deg, #ffffff, #fbfdff); border: 1px solid var(--border); box-shadow: var(--shadow); }
/* Unified heading row: title left, icon/button right */
.panel h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .2px; }

/* Pop‑out icon button (used for Poster/Schedule/Abstract previews) */
.panel .btn-popout {
  position: static; /* inline beside heading */
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: #fff; color: var(--primary);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.08);
  transition: transform .12s ease, background .2s ease, color .2s ease;
  margin-left: auto; /* push to far right */
}
.panel .btn-popout:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.panel .btn-popout svg { width: 16px; height: 16px; display: block; }

/* Legacy "Open PDF" pill kept (unused). Remove if no longer needed. */
/*
.panel .btn-open {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; font-size: 13px;
  box-shadow: 0 6px 16px rgba(37,99,235,.25);
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.panel .btn-open:hover { background: var(--primary-600); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37,99,235,.28); }
*/

/* Two-column grid (Poster & Schedule) */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* Single centered panel (Poster or Abstract) */
.one-col { display: grid; grid-template-columns: min(670px, 100%); justify-content: center; gap: 18px; }
.one-col .panel { width: 90%; margin: 0 auto; }
#poster-single .one-col { grid-template-columns: min(720px, 100%); }
#abstract .one-col, #abstract-preview .one-col, #abstract-single .one-col { grid-template-columns: min(670px, 100%); }

/* Preview iframe sizing */
iframe { width: 100%; height: 500px; border: 1px solid var(--border); border-radius: 12px; margin-top: 14px; background: #fff; }
#poster-single iframe { height: 560px; }
@media (max-width: 900px) { iframe { height: 70vh; } }
@media (max-width: 600px) { iframe { height: 75vh; } }

/* ---------------------
   Partners / Sponsors strip
---------------------- */
#partners .logo-grid {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center;
  padding-left: var(--content-inset); padding-right: var(--content-inset); box-sizing: border-box;
}
#partners .logo-grid img { max-height: 60px; width: auto; object-fit: contain; }

/* ---------------------
   Footer
---------------------- */
footer { background: #ffffff; border-top: 1px solid var(--border); color: var(--muted); text-align: center; padding: 8px 10px; font-size: 11.5px; }

/* ---------------------
   Focus & small-screen tweaks
---------------------- */
a:focus, button:focus { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 10px; }
@media (max-width: 600px) {
  .header-top { flex-direction: column; gap: 8px; }
  nav a { display: inline-block; margin: 2px; }
}
