/* ==========================
   Root variables
========================== */
:root {
  --bg: #0f0f13;
  --text: #eef2f7;
  --muted: hsl(214, 15%, 69%);
  --accent: #6f2806;
  --accent-2: #866104;
  --success: #b76920;
  --danger: #ff7b7b;
  --glass: rgba(255,255,255,0.04);
  --max-width: 1100px;
  --radius: 12px;
  --gap: 18px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* ==========================
   Global Styles
========================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Libre Baskerville', serif;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Background image */
  background-image: 
  linear-gradient(rgba(0, 0, 0, 0.199), rgba(0, 0, 0, 0.199)),
    url('../images/stoneball_background.png');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
  background-color: var(--bg);

  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

/* ==========================
   Header
========================== */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background-color: transparent;
  padding: 20px 0px 20px 0px;
  /* z-index: 100; */
}
.header a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.header a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #f0f0f0;
}
.header.scrolled {
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================
   Schedule title image
========================== */
.faq-title {
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 50px;
  width: 50%;
  display: flex;
  justify-content: center;
}
.faq-title img {
  width: 90%;
  max-width: 100%;
  height: auto;
}

/* ==========================
   Timetable container
========================== */
.schedule-section {
  width: 80%;
  margin-top: 20px;
  margin-bottom: 30px;
  padding-bottom: 100px;
}

/* Timetable list */
.timetable {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Day header */
.day-header h2 {
  font-size: 300%;
  font-family: 'Cinzel', serif;
  color: #ece5db;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 6px;
  text-align: center;
  text-shadow: 2px 5px 1px rgba(0, 0, 0, 0.9); /* offsets + blur + color */
}

/* Each event slot */
.slot {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 14px;
  align-items: start;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.slot:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
}

/* Time column */
.slot .time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* Event column */
.slot .event {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slot .event .title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.slot .event .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  display: inline-block;
}

/* Special slot types */
.keynote {
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.workshop {
  border-left: 4px solid #683606;
  padding-left: 10px;
}
.social {
  border-left: 4px solid var(--success);
  padding-left: 10px;
}

/* Responsive */
@media (max-width: 980px) {
  .slot {
    grid-template-columns: 100px 1fr;
  }
  .schedule-section {
    width: 95%;
  }
  .faq-title {
    width: 70%;
  }
}

/* Utilities */
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
/* Add spacing between sections to prevent overlap */
.section {
  padding-top: 80px; /* Matches or exceeds the header height to prevent overlap */
  margin-top: -80px; /* Counteracts padding to keep sections aligned */
}
