/* --- Base --- */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 2em auto;
  padding: 1em;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

h1, h2, h3 { color: #2c3e50; }

a { color: #0073e6; text-decoration: none; }
a:hover { text-decoration: underline; }

.logo-container { text-align: center; margin-bottom: 1.5em; }
.qcomical-logo { max-width: 100%; height: auto; width: 300px; }

.tagline { font-size: 1.2em; font-weight: 500; color: #222; margin-top: -1em; margin-bottom: 0.5em; }

/* --- Schedule --- */
.schedule table { width: 100%; border-collapse: collapse; margin-top: 1em; font-size: 14px; }
.schedule td, .schedule th { vertical-align: middle; text-align: center; padding: 0.4em; border: 1px solid #ccc; }
.schedule th { background-color: #f2f2f2; font-weight: bold; color: #555; }
.schedule td:first-child, .schedule th:first-child { white-space: nowrap; min-width: 90px; font-size: 90%; }
.schedule th:not(:first-child), .schedule td:not(:first-child) { width: 20%; }
.schedule td.empty { border: none !important; background: transparent; }

/* Row heights */
.schedule tr.row-30 td { height: 20px; }
.schedule tr.row-60 td { height: 40px; }
.schedule tr.row-90 td { height: 60px; }
.schedule tr.row-120 td { height: 80px; }

/* Cell types */
.lunch { background-color: #e6daf0; font-style: italic; }
.coffee { background-color: #d9ead3; font-style: italic; }
.schedule td.logo-cell { background: #fff; padding: 2px; }
.schedule td.logo-cell img { display: block; max-width: 100%; height: 100%; object-fit: contain; margin: 0 auto; }

/* --- Lecturers & Courses --- */
.lecturers { list-style: none; padding-left: 0; }
.lecturers li { margin: 0 0 0.6em 0; }

.course { border: 1px solid #e3e3e3; border-radius: 8px; margin-bottom: 0.6em; }
.course[open] { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.course summary {
  display: flex; justify-content: flex-start; align-items: center;
  flex-wrap: wrap; gap: 6px; padding: 10px 12px; cursor: pointer; list-style: none;
}
.course summary::-webkit-details-marker { display: none; }
.course summary::before { content: "▸"; margin-right: 6px; }
.course[open] summary::before { content: "▾"; }

.course summary .left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.course summary .right { margin-left: auto; white-space: nowrap; }

.course .abstract { padding: 10px 12px 12px 34px; border-top: 1px solid #eee; color: #333; line-height: 1.45; text-align: justify; }

/* Course Colors */
.course.kc { background-color: #b3c7f9; }
.course.om { background-color: #a7ddb4; }
.course.rp { background-color: #ffd8a8; }
.course.sp { background-color: #b2ebff; }
.course.ps { background-color: #ffcccc; }
.course.bv { background-color: #d1e7dd; }
.course.qc { background-color: #e2bef7; } 
.course.fl { background-color: #ffe3a8; }


/* --- UI Components --- */
.prereg-box { border: 2px solid #e74c3c; background-color: #fff5f5; padding: 15px; margin: 20px 0; text-align: center; border-radius: 6px; }
.venue-box, .visa-box { background-color: #f7f9ff; border-left: 4px solid #2c3e50; padding: 12px 15px; margin: 20px 0; border-radius: 6px; }
.eu-funding { margin-top: 3em; padding-top: 1em; border-top: 1px solid #ccc; text-align: center; font-size: 90%; }
.eu-funding img { margin-top: 0.5em; width: 160px; }

/* --- Sponsors --- */
.sponsors { background: #fff; border: 1px solid #ddd; border-radius: 10px; overflow: hidden; }
.sponsors .tier { padding: 14px 16px; }
.sponsors .tier:not(:has(.logos:empty)) + .tier:not(:has(.logos:empty)) { border-top: 2px dashed #d7d7d7; }
.sponsors h3 { margin: 0 0 8px; font-size: 1.05em; text-align: center; }
.sponsors .logos { display: grid; grid-auto-flow: column; justify-content: space-evenly; gap: 36px; padding: 8px 24px; align-items: center; min-height: 70px; }
.sponsors .tier-diamond img { max-height: 100px; }
.sponsors .tier-gold img { max-height: 90px; }
.sponsors .tier-silver img { max-height: 70px; }
.sponsors .tier:has(.logos:empty) { display: none; }

/* --- Responsive --- */
@media (max-width: 560px) {
  .schedule { overflow-x: auto; }
  .schedule table { min-width: 600px; }
  .schedule td:first-child, .schedule th:first-child { position: sticky; left: 0; background: #fff; z-index: 2; }
  .schedule th:first-child { background: #f2f2f2; z-index: 3; }
  
  .sponsors .logos { grid-auto-flow: row; }
  .course summary { flex-direction: column; align-items: flex-start; }
  .course summary .right { margin-left: 0; }
}
