body {
  /* max-width: 500px;
  margin: 0 auto; */
  padding: 20px 20px 0 20px;
  font-family: Arial, sans-serif;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.logo {
  position: fixed;
  top: 27px;
  left: 30px;
  width: 120px;
  height: auto;
  z-index: 1000;
}

.header {
  min-height: 100vh;
  width: 100%;
  position: relative;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2% 6%;
}
.nav-links {
  flex: 1;
  text-align: center;
}
.nav-linls ul li {
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}

/* Reset some defaults for better control */
body,
ul {
  margin: 0;
  padding: 0;
}

.navbar {
  display: flex;
  justify-content: flex-start; /* space between logo and nav */
  align-items: center;
  padding: 10px 30px 10px 20px;
  background-color: #fff; /* change to your preferred color */
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000; /* ensures navbar is above other content */
}

.logo {
  height: 50px; /* adjust as needed */
  margin-right: auto;
  position: static; /* remove fixed positioning */
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333; /* change color to match your brand */
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #d22163;
}

/* title */
.wlc-title {
  margin-top: 80px; /* Adjust based on your navbar height */
  text-align: center;
}
.wlc-title h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

/* rotaract wheel */
.wheel {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0; /* Add vertical spacing instead of min-height */
}

.wheel img {
  margin-top: 100px;
  width: 200px;
  height: auto;
  animation: spin 20s linear infinite;
  justify-content: center;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.main-pic {
  position: relative;
  width: 100vw;
  left: calc(-50vw + 50%);
  overflow: hidden;
  margin-top: 60px; /* Push below the fixed navbar */
}

.full-screen-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.main-text {
  text-align: center;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  padding: 0 10%;
  transform: translateY(-10%);
  pointer-events: none;
  animation: slideDownFromTop 1s ease-out forwards;
}

@keyframes slideDownFromTop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(-10%);
  }
}

/* Rotary Circles */
.rotary-circles {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  padding: 20px 0;
  width: 100%;
  align-self: stretch;
}

.rotary-circles .circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: transparent;
  border: none;
  opacity: 0;
  transform: translateX(-100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 36px);
  text-align: center;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.rotary-circles .circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: filter 0.2s ease;
}

.rotary-circles .circle:nth-child(1)::after {
  content: "Rotaract LAU Byblos is part of District 2452, which spans over 9 countries.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(12px, 1.3vw, 16px);
  line-height: 1.2;
  word-break: break-word;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rotary-circles .circle:nth-child(2)::after {
  content: "Rotaract is a Rotary International program for young leaders aged 18 and older, designed to foster leadership, professional skills, and community service.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(12px, 1.3vw, 16px);
  line-height: 1.2;
  word-break: break-word;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rotary-circles .circle:nth-child(3)::after {
  content: "In Lebanon, there are 27 Rotaract clubs distributed across the country.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(12px, 1.3vw, 16px);
  line-height: 1.2;
  word-break: break-word;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rotary-circles .circle:hover::after {
  opacity: 1;
}

.rotary-circles .circle:hover img {
  filter: blur(3px);
}

.rotary-circles .circle:nth-child(2):hover {
  z-index: 3;
}

.rotary-circles.visible .circle {
  opacity: 1;
  transform: translateX(0);
}

.rotary-circles.visible .circle:nth-child(1) {
  transition-delay: 0s;
}

.rotary-circles.visible .circle:nth-child(2) {
  transition-delay: 0.12s;
}

.rotary-circles.visible .circle:nth-child(3) {
  transition-delay: 0.24s;
}

.rotary-circles .circle + .circle {
  margin-left: -62px;
}

.rotary-circles .circle:nth-child(odd) {
  z-index: 2;
}

.rotary-circles .circle:nth-child(even) {
  z-index: 1;
}

.rotary-circles .circle.red {
  border-color: transparent;
  background: transparent;
}

.rotary-circles .circle.blue {
  border-color: transparent;
  background: transparent;
}

.rotary-circles .circle.orange {
  border-color: transparent;
  background: transparent;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.main-text h2 {
  margin: 0;
  font-size: clamp(0.1rem, 4vw, 3rem);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.main-text p {
  margin: -0.05em 0 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.08em;
  line-height: 1.1;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 50px;
}

.sentence {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  align-self: stretch;
}

.sentence h1 {
  width: 100%;
}

h1 > span {
  font-family: "Poppins", sans-serif;
  position: relative;
  display: inline-block;
  color: #d22163;
  height: 1.5em;
  vertical-align: bottom;
  overflow: hidden;
  line-height: 1.5em;
  text-align: center;
}

h1 > span > span {
  display: block;
  animation: slideWords 12.5s infinite ease-out;
  line-height: 1.5em;
  text-align: center;
}
@keyframes slideWords {
  0%,
  16% {
    transform: translateY(0);
  }
  20%,
  36% {
    transform: translateY(-1.5em);
  }
  40%,
  56% {
    transform: translateY(-3em);
  }
  60%,
  76% {
    transform: translateY(-4.5em);
  }
  80%,
  96% {
    transform: translateY(-6em);
  }
  100% {
    transform: translateY(-7.5em);
  }
}

.intro p {
  text-align: center;
  color: black;
  margin-top: 25px;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  line-height: 1.6;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  word-wrap: break-word;
}

.intro {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  align-self: stretch;
}

@media (max-width: 768px) {
  .intro p {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .main-pic {
    margin-top: 60px;
  }
}

@media (max-width: 480px) {
  .intro p {
    font-size: 0.85rem;
    padding: 0 5px;
    line-height: 1.5;
  }

  .main-pic {
    margin-top: 70px;
  }

  .main-text p {
    font-size: 0.4rem;
  }

  .moto-section {
    gap: 20px;
    padding: 0 10px;
  }

  .moto-section p {
    font-size: 0.85rem;
  }

  .rotary-circles .circle {
    width: 140px;
    height: 140px;
    border-width: 10px;
    font-size: clamp(12px, 3vw, 18px);
  }

  .rotary-circles .circle + .circle {
    margin-left: -35px;
  }
}

.numbers {
  padding: 3em 0;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  background: #fadce7;
  color: #333;
  text-align: center;
}

.numbers h3 {
  font-size: 1.2em;
}

.numbers > div {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4em 5em;
}

.number {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.number img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0 auto;
}

.number h1 {
  font-size: 3em;
  margin-bottom: 2px;
  margin-top: -5px;
}

.number:last-child h1 span::after {
  content: "+";
  margin-left: 5px;
  font-size: 0.8em;
}

.number:nth-last-child(2) h1 span::after {
  content: "+";
  margin-left: 5px;
  font-size: 0.8em;
}

.number:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 115%;
  width: 2px;
  height: 3em;
  background: #333;
  transform: translateY(-50%);
}

@media screen and (max-width: 900px) and (min-width: 501px) {
  .numbers > div {
    grid-template-columns: 1fr 1fr;
  }
  .number:nth-child(2)::before {
    display: none;
  }
}

@media screen and (max-width: 500px) {
  .numbers > div {
    grid-template-columns: 1fr;
    row-gap: 5em;
  }
  .number:not(:last-child)::before {
    width: 90%;
    height: 2px;
    top: initial;
    right: initial;
    bottom: -3em;
    left: 50%;
    transform: translateX(-50%);
  }
}

h2.moto {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 8px 20px;
  margin-top: 60px;
  margin-bottom: 18px;
  color: #000;
  width: calc(100% - 40px);
  align-self: stretch;
}

.moto-section {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.moto-section p {
  flex: 1 1 60%;
  margin: 0 0 0 20px;
  text-align: left;
}

.moto-section .rotary-circles {
  flex: 0 0 auto;
  margin: 0 auto;
  padding: 20px 0;
  width: 100%;
  justify-content: center;
  align-self: center;
}

h2.faq-heading {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 8px 0;
  margin-top: 60px;
  color: #000;
  width: 100%;
  align-self: stretch;
}

.faq-container {
  max-width: clamp(320px, 85vw, 600px);
  border-radius: 8px;

  margin: 32px auto;
  color: #1d3557;
  line-height: 1.9;
  text-align: left;
  background-color: #ffffff;
}

.faq-container .question-container {
  border-bottom: 1px solid #eee;
  color: #333;
}

.faq-container .question-container:last-child {
  border-bottom: none;
}

.faq-container .question {
  display: flex;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: bold;
  padding: 16px 24px;
  cursor: pointer;
  color: #333;
  text-align: left;
}

.faq-container .question .question-icon {
  width: 20px;
  height: 20px;
  background: #eee;
  padding: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  transition: all 300ms ease;
}

.faq-container .question-container.expanded .question-icon {
  background: #d22163;
  color: #fff;
  transform: rotateZ(180deg);
}

.faq-container .answer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  justify-content: flex-start;
  text-align: left;
}

.faq-container .answer .answer-icon {
  width: 20px;
  flex-shrink: 0;
  color: #d22163;
  display: flex;
  margin-top: 5px;
}

.faq-container .answer .answer-icon svg {
  width: 100%;
  height: 100%;
  min-width: 16px;
  min-height: 16px;
}

.faq-container .answer-container {
  padding: 0px 32px;
  background: #efefef;
  max-height: 0;
  overflow: hidden;
  transition: all 300ms ease;
  text-align: left;
}

.faq-container .question-container.expanded .answer-container {
  max-height: 500px;
  padding: 8px 32px;
}

/* Gallery Section */
.gallery {
  padding: 60px 3%;
  text-align: center;
  width: 100%;
  align-self: stretch;
}

.gallery h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #000;
  text-align: center;
  width: 100%;
  align-self: stretch;
}

.carousel-container {
  width: 100%;
  margin-top: 150px;
  overflow: hidden;
  background-color: #333;
  padding: 20px 0;
}

.card {
  flex: 0 0 auto;
  width: 200px;
  height: 300px;
  background: #d22163;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 10px;
  margin: 0 10px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

.gallery h2 {
  font-family: "Playfair Display", serif;
  font-weight: bold;
  font-style: italic;
  color: #d22163;
}

@media (max-width: 768px) {
  .moto-section {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0 15px;
  }

  .moto-section p {
    margin: 0;
    text-align: center;
    flex: 1 1 100%;
  }

  .moto-section .rotary-circles {
    padding: 10px 0;
    justify-content: center;
  }

  .rotary-circles .circle {
    width: 200px;
    height: 200px;
    border-width: 14px;
    font-size: clamp(14px, 2vw, 24px);
  }

  .rotary-circles .circle + .circle {
    margin-left: -45px;
  }

  .gallery-images {
    height: 350px;
    gap: 10px;
  }

  .gallery-image {
    width: 140px;
    height: 180px;
  }

  .gallery-image.center {
    transform: scale(1.12);
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
