/* ===== SPLIT VIEW LAYOUT ===== */
.split-section {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* TOP HALF: Images */
.split-top {
  flex: 0 0 50%;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-brown);
}

.image-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease-in-out;
  transform: scale(1.02);
}

.image-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* BOTTOM HALF: Content */
.split-bottom {
  flex: 0 0 50%;
  position: relative;
  width: 100%;
  /* CHANGED: Match standard theme dark brown/bg-brown */
  background: var(--color-bg-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(196, 166, 118, 0.2);
}

.content-slider-wrapper {
  position: relative;
  width: 80%;
  max-width: 800px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.content-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  /* Add padding to ensure bounding box has space */
  padding: 3rem;
}

.content-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  z-index: 5;
}

/* === BOUNDING BOX ANIMATION === */
.content-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Cover the padding area */
  border: 2px solid rgba(196, 166, 118, 0.5);
  /* Theme accent color */
  pointer-events: none;
  opacity: 0;
}

.content-slide.active::before {
  opacity: 1;
  animation: boundingBoxDrawFull 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes boundingBoxDrawFull {
  0% {
    clip-path: polygon(0 0, 0 0, 0 0, 0 0, 0 0);
  }

  25% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 100% 0, 0 0);
  }

  50% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 0);
  }

  75% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  }

  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  }
}

.split-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: capitalize;
  letter-spacing: 2px;
}

.split-desc {
  font-family: 'QueensidesMedium', sans-serif;
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.split-link {
  display: inline-block;
  font-family: 'Olivera', cursive;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: capitalize;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.split-link:hover {
  background: var(--color-primary);
  color: var(--color-bg-brown);
}

/* NAVIGATION ARROWS */
.split-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  width: 100%;
}

.nav-btn {
  pointer-events: auto;
  background: transparent;
  /* Clean look */
  border: 1px solid rgba(196, 166, 118, 0.2);
  color: var(--color-primary);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--color-primary);
  color: var(--color-bg-brown);
  border-color: var(--color-primary);
}

/* MOBILE */
@media (max-width: 768px) {
  .split-section {
    height: auto;
    min-height: 100vh;
  }

  .split-top {
    height: 40vh;
    flex: 0 0 40vh;
  }

  .split-bottom {
    height: auto;
    flex: 1 1 auto;
    padding: 3rem 1rem;
  }

  .split-title {
    font-size: 1.8rem;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border: none;
    background: transparent;
  }

  .split-nav {
    padding: 0 1rem;
  }

  .content-slide {
    padding: 1.5rem;
  }

  .content-slide::before {
    inset: 0;
  }

  /* Prevent border from touching arrows */
  /* Prevent border from touching arrows */
  .content-slider-wrapper {
    width: 80%;
    /* Widen slightly but keep clear of arrows */
    max-width: 100%;
  }

  /* Remove all interaction states for arrow circle */
  .nav-btn:hover,
  .nav-btn:active,
  .nav-btn:focus {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--color-primary) !important;
  }
}