.about-wrapper {
  position: relative;
  padding: 2em;
}

.about-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/images/RepeatingBackground.png") repeat;
  opacity: 0.4;
  z-index: -1;
}

.about-title {
  color: #d83d7f;
  text-align: center;
  padding-top: 0.1em;
  position: relative;
  z-index: 2;
  font-family: "Fredoka", sans-serif;
  text-transform: uppercase;
}

.about-container {
  max-width: 75%;
  left: 20%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}
.about-text {
  left: -5%;
  z-index: -1;
  position: relative;
}

.about-image-wrapper {
  position: absolute;
  width: 30em;
  aspect-ratio: 1 / 1;
  left: -6%;
  bottom: 10%;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: 0;
}

.about-image {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  z-index: 2;
}

.about-image-fg {
  position: absolute;
  width: 60%;
  bottom: -1em;
  right: 16.35em;
  z-index: 3;
}

.about-text {
  background-color: #ffc0dc;
  border-radius: 20px;
  padding: 2em 3em;
  width: 70%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  color: #000;
  font-size: 1em;
}

.about-text p {
  margin-bottom: 1em;
  font-size: 1.7rem;
  text-align: left;
}

.team-wrapper {
  text-align: center;
  padding: 2em 0;
}

.team-section {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
}

.team-carousel {
  overflow: hidden;
  width: 100%;
}

.team-grid {
  display: flex;
  transition: transform 0.5s ease;
  gap: 0.5em;
}

.meet-the-team {
  color: #ac1b57;
  padding-bottom: 0.1em;
}

.team-member {
  flex: 0 0 calc(25% - 1em);
  background-color: #d83d7f;
  border-radius: 15px;
  padding: 0.1em;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.team-member img {
  width: 25em;
}

.team-member h3,
h4 {
  color: white;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-prev,
.team-next {
  position: absolute;
  top: 50%;

  transform: translateY(-50%);
  background-color: #ff5da4;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8em;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
  display: none; /* NEW: Hidden by default */
}

.team-prev:hover,
.team-next:hover {
  background-color: #d83d7f;
}

.team-prev {
  left: -0.5em;
}

.team-next {
  right: -0.5em;
}

/* MANIFESTO STYLES - UPDATED AND INTEGRATED */
.manifesto-wrapper {
  background-color: #ff4f9a;
  color: #fff;
  padding: 80px 40px;
  border-radius: 10px;
  max-width: 90%;
  margin: 80px auto;
  font-family: "Glacial Indifference", sans-serif;
  text-align: center;
}

.manifesto-title {
  font-family: "Fredoka", sans-serif;
  font-size: 4.5rem;

  text-transform: uppercase;
  letter-spacing: 1px;
}

.manifesto-content {
  max-width: 80%;
  margin: 0 auto;
  text-align: left;
  line-height: 1.8;
  font-size: 1em;
}

.manifesto-content p {
  margin-top: 1em;
  text-align: center;
  font-size: 1.75rem;
}

.values-heading {
  text-align: center;
  font-size: 2.5rem;
  font-family: "Fredoka", sans-serif;
  margin: 0.2em;
  color: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  gap: 1.5em;
  margin-bottom: 2.5em;
}

.value-box {
  background-color: #fff;
  color: #000000;
  border-radius: 20px;
  padding: 1.8em;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.value-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.value-box h4 {
  font-family: "Fredoka", sans-serif;
  color: #bb004e;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.6em;
}

.value-box p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.closing-text {
  margin-top: 1em;
  text-align: center;
  font-size: 1.5rem;
}

.tagline {
  text-align: center;
  margin-top: 2.5em;
  font-size: 1.25rem;
  font-family: "Fredoka", sans-serif;
  color: #fff;
}
.signature {
  font-family: "Brittany Signature", sans-serif;
  text-align: center;
  margin-top: 2.5em;
  font-size: 1.25rem;

  color: #fff;
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .manifesto-wrapper {
    padding: 60px 25px;
  }

  .manifesto-title {
    font-size: 2.3rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-box {
    text-align: center;
  }
}

/* Large Desktop */
@media (min-width: 1441px) {
  .about-container {
    max-width: 100%;
  }
  .about-image-wrapper {
    width: 35em;
  }
  .about-image-fg {
    right: 15em;
  }
}

/* Standard Desktop */
@media (max-width: 1440px) and (min-width: 1025px) {
  .about-container {
    max-width: 100%;
    left: 15em;
  }
  .about-image-wrapper {
    width: 28em;
    bottom: 20%;
    left: -5em;
  }
  .about-image {
    width: 90%;
    left: 1em;
    bottom: 4em;
  }
  .about-image-fg {
    width: 40%;
    right: 17em;
    bottom: 5em;
  }
  .about-text {
    width: 70%;
    padding: 2em 2.5em;
  }
  .about-text p {
    font-size: 1.6rem;
  }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .about-wrapper {
    padding: 1.5em;
  }
  .about-container {
    position: static;
    left: auto;
    flex-direction: column;
    gap: 2rem;
  }

  .about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 80%;
    left: 12%;
    bottom: auto;
    transform: none;
    margin: 0 auto 2em;
  }
  .about-image {
    width: 100%;
  }

  .about-image-fg {
    width: 50%;
    left: -10%;
    bottom: -10%;
  }
  .about-text {
    position: relative;
    left: 12%;
    width: 800px;
    padding: 1.5em 2em;
  }
  .about-text p {
    font-size: 1.5rem;
    text-align: left;
  }

  /* Team section tablet fixes */
  .team-member {
    flex: 0 0 calc(33.333% - 1em);
    padding: 0.5em;
  }
  .team-member img {
    width: 100%;
  }

  .manifesto-wrapper {
    padding: 50px 15px;
    margin: 30px auto;
  }
  .manifesto-text {
    max-width: 90%;
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .about-wrapper {
    padding: 1em;
  }
  .about-container {
    position: static;
    left: auto;
    flex-direction: column;
    gap: 2rem;
  }
  .about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    left: 12%;
    bottom: auto;
    transform: none;
    margin: 0 auto 2em;
  }
  .about-image-fg {
    position: relative;
    width: 50%;
    bottom: 30%;
    right: 20%;
    margin: -2em auto 0;
  }
  .about-text {
    width: 150%;
    left: 12%;
    padding: 0.5em;
    margin: 0 auto;
  }
  .about-text p {
    font-size: 1.4rem;
    text-align: center;
  }

  .about-title {
    font-size: 3.5em;
    padding-top: 0.5em;
  }

  /* Team section mobile fixes */
  .team-section {
    max-width: 95%;
  }
  .team-member {
    flex: 0 0 calc(100% - 1em);
    padding: 0.5em;
    margin-bottom: 1em;
  }
  .team-member img {
    width: 100%;
  }
  .team-prev,
  .team-next {
    width: 35px;
    height: 35px;
    font-size: 1.4em;
  }
  .team-prev {
    left: -1em;
  }
  .team-next {
    right: -1em;
  }

  .meet-the-team {
    font-size: 3em;
  }

  /* Manifesto mobile fixes */
  .manifesto-wrapper {
    padding: 40px 15px;
    margin: 20px auto;
  }
  .manifesto-text {
    max-width: 95%;
    font-size: 1rem;
  }
  .manifesto-title {
    font-size: 3em;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .about-wrapper {
    padding: 0.5em;
  }
  .about-image-wrapper {
    width: 90%;
    max-width: 250px;
  }
  .about-text {
    padding: 1em;
  }
  .about-text p {
    font-size: 1.2rem;
  }

  .about-title {
    font-size: 3em;
  }

  .team-member {
    padding: 0.3em;
  }

  .team-prev,
  .team-next {
    width: 30px;
    height: 30px;
    font-size: 1.2em;
  }

  .manifesto-wrapper {
    padding: 30px 10px;
  }

  .manifesto-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .team-member {
    flex: 0 0 calc(50% - 1em);
  }
}

@media (max-width: 600px) {
  .team-member {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .manifesto-wrapper {
    padding: 40px 15px;
  }

  .manifesto-title {
    font-size: 2rem;
  }

  .manifesto-text {
    font-size: 1rem;
  }
}

/* NEW: TEAM CAROUSEL RESPONSIVE BREAKPOINTS */
/* Desktop - Show 4 team members, hide buttons */
@media (min-width: 1025px) {
  .team-member {
    flex: 0 0 calc(25% - 1em);
  }

  .team-prev,
  .team-next {
    display: none;
  }
}

/* Tablet - Show 2 team members, show buttons */
@media (max-width: 1024px) and (min-width: 769px) {
  .team-member {
    flex: 0 0 calc(50% - 1em);
  }

  .team-prev,
  .team-next {
    display: block;
  }
}

/* Mobile - Show 1 team member, show buttons */
@media (max-width: 768px) {
  .team-member {
    flex: 0 0 calc(100% - 1em);
  }

  .team-prev,
  .team-next {
    display: block;
  }
}
