.women-banner {
  width: 100%;
  height: 50vh;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.women-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--women-banner-url);
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.women-banner-content {
  position: absolute;
  top: 65%;
  left: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
  color: white;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.women-banner-content h2 {
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  word-wrap: break-word;
  hyphens: auto;
  flex-shrink: 1;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
  color: var(--white);
}

.women-banner-content h3 {
  margin: 0 0 1rem 0;
  word-wrap: break-word;
  flex-shrink: 1;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
  color: var(--white);
}

.typing-text::after {
  content: "|";
  animation: blink-caret 0.7s step-end infinite;
}

@keyframes blink-caret {
  from,
  to {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.typing-text.typing-done::after {
  content: none;
}

.women-text-wrapper {
  margin-top: 8vh !important;
  width: 60%;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 4vh;
}

.women-text-2 {
  width: 60%;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 4vh;
}

.women-text-2 h3 {
  margin-bottom: 0;
}

.women-text-2.side-bar {
  border-left: 6px solid var(--red);
  padding-left: 1rem;
  border-right: 6px solid var(--red);
  padding-right: 1rem;
  background: rgba(232, 48, 48, 0.05);
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
}

.title-decoration {
  display: block;
  margin: 0 auto;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  border-radius: 2px;
}

.teams-container {
  width: 60%;
  margin: 0 auto;
  display: grid;
  gap: 4vh;
  margin-bottom: 8vh;
}

.teams-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 4vh;
  min-height: 0;
}

.teams-item.normal-order .column-left {
  order: 0;
}

.teams-item.normal-order .column-right {
  order: 1;
}

.teams-item.reverse-order .column-left {
  order: 1;
}

.teams-item.reverse-order .column-right {
  order: 0;
}

.column-left {
  height: 100%;
}

.column-left {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.column-left h3 {
  color: var(--red);
}

.column-right {
  display: grid;
  height: 100%;
  min-height: 0;
  align-self: start;
}

.column-left,
.column-right {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.column-left.visible,
.column-right.visible {
  opacity: 1;
  transform: translateY(0);
}

.image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(232, 48, 48, 0.15);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  font-size: 1.2rem;
  text-align: center;
}

.gallery-overlay i {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.column-right:hover .gallery-overlay {
  background: rgba(0, 0, 0, 0);
}

.fancybox__container {
  z-index: 99999 !important;
}

@media (max-width: 1200px) {
  .teams-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .teams-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .teams-item:last-child {
    margin-bottom: 0;
  }

  .column-left {
    display: contents; 
  }

  .teams-title {
    order: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 8vh !important;
  }

  .column-right {
    order: 1 !important; 
  }

  .teams-text {
    order: 2 !important; 
  }

  .teams-item.normal-order,
  .teams-item.reverse-order {
    margin-bottom: 4vh !important;
  }

  .teams-item.normal-order,
  .teams-item.reverse-order,
  .teams-item.normal-order .column-left,
  .teams-item.normal-order .column-right,
  .teams-item.reverse-order .column-left,
  .teams-item.reverse-order .column-right {
    order: initial !important;
  }

  .image-wrapper {
    aspect-ratio: 3/2;
  }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .women-banner-content {
    padding: 0.5rem;
  }

  .women-text-wrapper {
    width: 80%;
  }

  .women-text-2 {
    width: 80%;
  }

  .teams-container {
    width: 80%;
  }

  .teams-item {
    margin-bottom: 0 !important;
  }

  .gallery-overlay i {
    font-size: 1.5rem;
  }

  .gallery-overlay span {
    font-size: 0.9rem;
  }

  .column-left h3 {
    margin-top: 0 !important;
  }
}

@media (min-width: 1920px) {
 .teams-container {
    max-width: 1890px;
 }
 
}