ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: rgb(209, 188, 240);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  gap: 20px;
}
ul li { float: left; }
ul li a {
  display: block;
  color: rgb(64, 47, 86);
  text-align: center;
  padding: 14px 14px;
  font-size: larger;
  text-decoration-line: underline;
  font-family: 'Josefin Sans';
}

h1 {
  font-family: Impact;
  text-align: center;
  color: rgb(64, 47, 86);
  font-size: 60px;
}
h2 {
  font-family: Georgia;
  text-align: center;
  color: rgb(64, 47, 86);
  font-size: 25px;
  font-weight: 100;
  margin-left: 50px;
  margin-right: 50px;
}
h3 {
  font-family: Impact;
  text-align: center;
  color: rgb(64, 47, 86);
  font-size: 30px;
}
p {
  font-family: 'Josefin Sans';
  font-size: 20px;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background:
    linear-gradient(rgba(243,222,253,0.7), rgba(243,222,253,1)),
    url("backgroundbetatest.png");
  background-repeat: 250px 200px;
}

.title { margin-top: 30px; }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(0);
  transition: transform 0.3s ease;
  z-index: 1000;
}
.navbar.hide { transform: translateY(-100%); }

.Yearbookpic {
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
  width: 500px;
  height: auto;
  display: block;
  box-shadow: 0 4px 15px rgb(0,0,0);
}

/* shared section styles */
.volunteer-section,
.internship-section,
.summerprograms-section,
.competition-section,
.job-section {
  padding: 40px;
  box-sizing: border-box;
  width: 100%;
}

/* shared title styles */
.volunteer-title,
.internship-title,
.summerprograms-title,
.competition-title,
.job-title {
  font-size: 40px;
  text-align: left;
  margin: 0 0 20px 0;
  font-family: Impact;
  color: rgb(64, 47, 86);
}

/* carousel container */
.carousel {
  background-color: rgb(209, 188, 240);
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
  width: 100%;
}

.carousel-wrapper {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
}

.carousel-slide {
  flex: 0 0 220px;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid rgba(64, 47, 86, 0.15);
  background: white;
}

.carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.slide-caption {
  padding: 10px 12px;
  font-size: 13px;
  color: rgb(64, 47, 86);
  font-family: 'Josefin Sans';
  line-height: 1.5;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.carousel-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(64, 47, 86, 0.3);
  background: white;
  cursor: pointer;
  font-size: 16px;
  color: rgb(64, 47, 86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: static;
  transform: none;
}
.carousel-btn:hover { background: rgba(64, 47, 86, 0.1); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 768px) {
  br:not([class]) { display: none; }
  .Yearbookpic { width: 90% !important; max-width: 380px; }
}

@media (max-width: 600px) {
  .carousel-slide { flex: 0 0 100%; }
  .volunteer-section,
  .internship-section,
  .summerprograms-section,
  .competition-section,
  .job-section { padding: 24px 16px; }
}

.imagecredits {
  text-align: center;
  font-weight: bold;
  font-family: 'Josefin Sans';
  font-size: 12px;
  color: rgb(64, 47, 86);
  line-height: 1.5;
}

/* footer */
.footer { background-color: rgba(243, 222, 253, 1); }
footer {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-family: Helvetica;
}