body, h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.page {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background:
    linear-gradient(rgba(24,24,32,0.85), rgba(35,35,48,0.90)),
    url('https://aries.res.in/iaus412-hfs2026/Mysore.jpeg') center/cover no-repeat fixed;
  color: #f9f9f9;
  min-height: 100vh;
}
.header-bg {
  background: url('https://aries.res.in/iaus412-hfs2026/Mysore.jpeg') center/cover no-repeat;
  background-size: 100%;
  position: relative;
  width: 100vw;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}
.header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: rgba(27, 1, 1, 0.336);
  border-radius: 32px;
  box-shadow: 0 8px 40px rgba(30,40,80,0.13);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  max-width: 135px;
  height: auto;
}
.nav {
  background: rgba(0, 0, 0, 0.521);
  border-radius: 18px;
  padding: 0.55em 3.5em;
  display: flex;
  gap: 1.9em;
  align-items: center;
  box-shadow: 0 2px 20px rgba(20, 26, 39, 0.15);
  backdrop-filter: blur(3px);
}
.nav__link {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.42em 1em;
  border-radius: 10px;
  text-decoration: none;
  text-shadow: 0 2px 10px #000a, 0 1px 2px #111b;
  transition: background 0.23s, color 0.25s, font-weight 0.11s, transform 0.35s, box-shadow 0.25s;
}
.nav__link:hover,
.nav__link--active,
.nav__link:focus {
  background: rgba(255,255,255,0.20);
  color: #fff;
  box-shadow: 0 2px 12px rgba(25,70,146,0.18);
  transform: translateY(-3px) scale(1.01);
  outline: none;
}
.nav__link--active {
  border-bottom: 2.5px solid #ff6308;
  background: rgba(255, 162, 41, 0.22);
}
.nav__link--active:hover {
  transform: translateY(-4px);
}

.header-titleblock {
  text-align: center;
}
.header-title {
  font-size: 2.3rem;
  font-weight: 1000;
  color: #f5f7ff;
  text-shadow: 0 3px 16px #002, 0 5px 5px #2228;
}
.header-subtitle {
  font-size: 1.65rem;
  color: #ffffff;
  text-shadow: 0 3px 16px #002, 0 5px 5px #2228;
}
.header-action {
  text-align: center;
}
.update-box {
  display: inline-block;
  padding: 1.1rem 1.7rem;
  color: #000000d2;
  background: linear-gradient(90deg,#fde7af 0,#c7f5ff 100%);
  border-radius: 17px;
  font-weight: 630;
  font-size: 1.17rem;
  box-shadow: 0 2px 18px rgba(230,193,74,.09);
  transition: transform 0.28s cubic-bezier(.4,.18,.63,1.15), box-shadow 0.23s;
}

.update-box:hover {
  transform: translateY(-4px); /* Move up 7px */
  box-shadow: 0 8px 36px rgba(40,50,90,0.16);
}

.update-link {
  color: #2b50aa;
  font-weight: bold;
  text-decoration: underline;
}

/* Main content and carousel row */
.main-content {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 4rem;
  background: linear-gradient(180deg, #121212cc 0%, #00000099 40%, #1a1a1acc 100%);
  border-radius: 24px;
  box-shadow: 0 14px 60px rgba(0,0,0,0.7);
  color: #f9f9f9;
  font-size: 1.14rem;
  line-height: 1.75;
  transition: background-color 0.45s ease;
}

.carousel-row {
  background: rgba(20, 20, 20, 0.96);
  padding: 3rem 2rem 4rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.75);
  margin: 0rem auto;
  max-width: 1200px;
  display: flex;
  gap: 2.5rem;
  position: relative;
  min-height: 280px; /* Ensure room for stacked panels during fade */
}

.section.rationale {
  flex: 2;
  max-width: 645px;
  min-width: 340px;
  background: none;
  color: #fafcff;
  border-radius: 15px;
  padding: 0;
  box-shadow: none;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(.59,.25,.37,.96), visibility 0s linear 0.6s;
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
}
.section.rationale.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s, 0s;
  z-index: 3;
  position: relative;
}
.rationale-text {
  font-size: 1.13rem;
  line-height: 1.68;
  letter-spacing: 0.025em;
  padding: 0;
}
.rationale-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.rationale-image {
  width: 500px;
  max-width: 100%;
  border-radius: 1rem;
  align-items: center;
}

/* Dots navigation */
.carousel-dots {
  text-align: center;
  margin: 2rem 0 3rem 0;
}
.carousel-dots .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 8px;
  background-color: #444;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.carousel-dots .dot.active,
.carousel-dots .dot:hover {
  background-color: #ffd45c;
}

/* Section spacing and style */
.section {
  margin: 3.5rem 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: rgba(20, 20, 20, 0.93);
  color: #f9f9f9;
  border-radius: 15px;
  padding: 2.5rem 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.section.active,
.section.rationale.active {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  color: #ffd45c;
  text-shadow: 0 2px 12px #000000bb;
}
.speakers-announcement {
  color: #ffffff;
  font-weight: normal;
  margin: .5rem 0;
}
.topics-list, .dates-list ul {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.68;
  padding-left: 1.5rem;
  margin-bottom: 0;
}
.dates-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
}
.date-label {
  color: #859acf;
  font-weight: bold;
}
.info h3 {
  color: #859acf;
  font-size: 1.11rem;
  font-weight: 700;
  margin-top: 1rem;
}
.info p, .info a {
  font-size: 0.98rem;
  color: #ffffff;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 8px #00000088;
}
.info a {
  color: #ffd45c;
  font-weight: 700;
}
.site-footer {
  width: 100vw;
  padding: 1.5rem 0;
  text-align: center;
  background: #0000006c;
  color: #ffffff;
  font-size: 1rem;
  margin-top: 3rem;
}


/*-------Code for responsive design-------*/
@media (max-width: 900px) {
  .carousel-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.3rem;
  }
  .rationale-image-wrapper {
    justify-content: center;
    margin-top: 1.2rem;
  }
  .rationale-image {
    width: 98vw;
    max-width: 99vw;
  }

  /* Nav adjustments */
  .nav {
    flex-wrap: wrap;
    gap: 0.8em;
    padding: 0.2em 1em;
    justify-content: center;
  }
  .nav__link {
    padding: 0.36em 0.8em;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .carousel-row {
    padding: 0.5rem 0.15rem;
  }
  .carousel-text-stack {
    max-width: 99vw;
    padding: 0.2rem 0.15rem;
  }
  .rationale-image {
    min-width: 120px;
    max-width: 98vw;
    width: 98vw;
  }
  .section.rationale {
    padding: 1rem 0.3rem;
    max-width: 100vw;
  }

  /* Nav adjustments */
  .nav {
    flex-direction: column;
    gap: 0.5em;
    padding: 0.5em 0.9em;
    align-items: center;
  }
  .nav__link {
    width: 95vw;
    max-width: 320px;
    text-align: center;
    padding: 0.5em 0;
    font-size: 1rem;
  }
}
