* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #222;
  line-height: 1.6;
}

/* Body-width */
.page-wrapper {
  max-width: 65%;
  margin: 0 auto;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid #ddd;
  transition: transform 0.3s ease;
}

.navbar-inner {
  max-width: 70%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
}

.nav-left {
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.nav-center a {
  text-decoration: none;
  color: #222;
  margin: 0 6px;
  font-weight: 400;
}

.nav-center a:hover {
  text-decoration: underline;
}

.nav-right img {
  height: 35px;
  margin-left: 10px;
}

/* HERO */
.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 60vh;
  background: url("https://www.haute-maurienne-vanoise.com/content/uploads/sites/2/2025/08/2500x1500-HomePage_VF_Hiver_02.jpg")
    center / cover no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding-left: 15%;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 600;
  max-width: 850px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.meta-icon {
  font-size: 1.6rem; /* change icon size */
  margin-top: 2px;
}

.meta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.meta-top {
  font-size: 1.3rem;
  font-weight: 550; /* adjust boldness of text above */
}

.meta-bottom {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
}

.separator {
  font-size: 1.3rem;
  opacity: 0.8;
  font-weight: 500;
}

/* SECTIONS */
.section {
  padding: 60px 80px;
  position: relative;
  scroll-margin-top: 150px;
}

.split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}

.center {
  text-align: center;
}

.section h2 {
  font-weight: 600;
  font-size: 1.8rem;
}

/* TO TOP */
.to-top {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  background: white;
}

.to-top:hover {
  background: #333;
  color: white;
}

/* THEMES */
.topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.topic {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon i {
  font-size: 1.4rem;
}

.program-section {
  overflow: visible;
}

.program-layout {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 50px;
  margin-top: 50px;
}

.program-days {
  position: sticky;
  top: 120px;   /* below navbar */
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.day-link {
  display: flex;
  align-items: center;
  justify-content: center;   /* center horizontally */
  text-align: center;

  width: 60px;
  height: 60px;
  border-radius: 4px;
  
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid #333;
  background: white;
  color: #333;
  transition: 0.2s ease;
}

.day-link.seen {
  background: #333;
  color: white;
}

.program-day {
  margin-bottom: 80px;
  scroll-margin-top: 180px;
}

.program-day h3 {
  margin-bottom: 25px;
  font-weight: 600;
}

.slot {
  border: 1px solid #333;
  background: white;
}

.slot-title {
  font-weight: 600;
  font-size: 1.15rem;
  padding: 18px 20px;
  position: relative;
}

.slot-title + .slot-title {
  border-top: 1px solid #333;
}

.slot-details {
  font-size: 1rem;
  font-weight: 400;
  margin-top: 8px;
  line-height: 1.6;
}

.slot-details a {
  text-decoration: none;
  color: inherit;
}

.slot-details a:visited {
    color: inherit;
}

.talk-title {
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.talk-author {
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 18px;
  border: 1px solid #333;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}

.btn:hover {
  background: #333;
  color: white;
}

/* VENUE */
.venue-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.venue-content img {
  width: 100%;
  border-radius: 4px;
}

.justification a {
  text-decoration: none;
  color: #222;
  font-weight: 550;
}

.justification a:hover {
  text-decoration: underline;
}

/* CONTACT */
.contact-box {
  background: #f2f2f2;
  padding: 20px;
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-email {
  margin-top: 5px;
}

.justification {
  text-align: justify;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #666;
}

footer a {
  text-decoration: none;
  color: inherit;
}

footer a:visited {
  color: inherit;
}

/* ------------------------ Mobile style ------------------------ */
@media (max-width: 900px) {
  .page-wrapper {
    max-width: 90%;
  }

  nav {
    padding: 8px 15px;
  }

  nav img {
    height: 28px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .nav-left {
    text-align: center;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 15px;
  }

  .navbar-inner {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .nav-center {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .nav-center a {
    font-size: 0.85rem;
    margin: 0 4px;
    white-space: nowrap;
  }

  .nav-right {
    width: 100%;
    text-align: center;
  }

  nav.nav-hidden {
    transform: translateY(-100%)
  }

  .hero {
    height: 45vh;
  }

  .hero-overlay {
    padding-left: 0;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
    padding: 0 15px;
    max-width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .separator {
    display: none;
  }

  .program-layout {
    display: block;
    width: 100%;
  }

  .program-content {
    width: 100%;
  }

  .program-day {
    width: 100%;
  }

  .program-days {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 120px;
  }

  .day-link {
    width: 60px;
    height: 60px;
    font-size: 0.85rem;
  }

  #program {
    padding-left: 20px;
    padding-right: 20px;
  }

  .slot-title {
    font-size: 1.2rem;
  }

  .day-link {
    font-size: 0.75rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .topics {
    grid-template-columns: 1fr;
  }

  .venue-content {
    grid-template-columns: 1fr;
  }

  #venue .btn {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
  }

  .section {
    padding: 40px 20px;
  }

  .section h2 {
    text-align: center;
  }
}
