/* ============================================
   HERO SPLIT LAYOUT & SLIDER
   ============================================ */
.hero-split {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-navy);
  overflow: hidden;
  padding-top: 80px;
}

.hero-split-container {
  display: flex;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  gap: 4rem;
  align-items: center;
}

/* Left Side - Text Content */
.hero-split-content {
  flex: 1;
  color: var(--white);
  z-index: 2;
}

.hero-split-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: #ffffff !important;
}

.hero-split-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 600px;
}

/* Background Elements */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.85);
  z-index: 1;
}

/* Right Side - Slider */
.hero-split-slider {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 2rem 0;
}

.university-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 520px;
  perspective: 1000px;
  overflow: hidden;
}

.university-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(100%);
}

/* Active Card */
.university-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

/* Exiting Card (Slide Left) */
.university-card.exit-left {
  opacity: 0;
  visibility: visible;
  transform: translateX(-100%);
  z-index: 1;
}

/* Exiting Card (Slide Right) */
.university-card.exit-right {
  opacity: 0;
  visibility: visible;
  transform: translateX(100%);
  z-index: 1;
}

/* Entering Card (from Left) */
.university-card.enter-left {
  transform: translateX(-100%);
}

/* Card Content Styles */
.uni-card-image {
  height: 250px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.uni-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.university-card:hover .uni-card-image img {
  transform: scale(1.05);
}

.uni-card-content {
  padding: 2rem;
}

.uni-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.uni-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  opacity: 1;
}

.uni-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 1;
}

.uni-rating {
  color: var(--secondary-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.uni-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.uni-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Slider Navigation Buttons */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-nav-btn:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: -70px;
}

.slider-next {
  right: -70px;
}

@media (max-width: 1024px) {
  .hero-split-container {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
    gap: 3rem;
  }

  .hero-split-subtitle {
    margin: 0 auto 2.5rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-split-slider {
    width: 100%;
    max-width: 100%;
  }

  .university-slider-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .hero-split {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-split-title {
    font-size: 2rem;
  }

  .university-slider-wrapper {
    max-width: 100%;
    height: 480px;
  }

  .slider-nav-btn {
    width: 40px;
    height: 40px;
  }

  .slider-prev {
    left: 5px;
  }

  .slider-next {
    right: 5px;
  }

  .uni-card-content {
    padding: 1.5rem;
  }

  .uni-card-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-split-title {
    font-size: 1.75rem;
  }

  .university-slider-wrapper {
    height: 450px;
  }

  .uni-card-content {
    padding: 1.25rem;
  }
}