/* ========================================
   RAJHANS ALUMNI SECTION - REVISED LAYOUT
   ======================================== */

/* Main Wrapper */
.rajhans-alumni-wrapper {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 50%, #fafaff 100%);
  position: relative;
  overflow: hidden;
}

/* Header Section */
.rajhans-alumni-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.rajhans-alumni-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  transform: rotate(45deg);
}

.rajhans-alumni-icon i {
  font-size: 28px;
  color: #ffffff;
  transform: rotate(-45deg);
}

.rajhans-alumni-title {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.rajhans-alumni-subtitle {
  font-size: 18px;
  color: #5a5a6e;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Carousel Item Wrapper */
.rajhans-alumni-slide {
  padding: 15px; /* Space for shadow */
  height: 100%;
  display: flex; /* Ensure height stretches */
}

/* 
   CARD LAYOUT - MOBILE FIRST (VERTICAL)
   ===================================== 
*/
.rajhans-alumni-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.4s ease;
  
  /* Flex Layout for Vertical Alignment */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 100%;
  height: auto; /* Allow content to dictate height on mobile */
  min-height: 450px; /* Minimum height for consistency */
}

.rajhans-alumni-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

/* Image Wrapper (Mobile) */
.rajhans-alumni-img-wrapper {
  width: 140px;
  height: 140px;
  flex-shrink: 0; /* Prevent shrinking */
  border-radius: 50%;
  margin: 0 0 25px 0 !important; /* Bottom margin for vertical layout */
  border: 5px solid #ffffff;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.25);
  overflow: hidden;
  position: relative;
}

.rajhans-alumni-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Wrapper (Mobile) */
.rajhans-alumni-content {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* Center align for mobile */
  width: 100%;
}

/* Typography & Elements */
.rajhans-alumni-name {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #2d3748 !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.3 !important;
}

.rajhans-alumni-year {
  display: inline-block !important;
  background: rgba(102, 126, 234, 0.1) !important;
  color: #667eea !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 15px !important;
  margin: 0 0 15px 0 !important;
  border-radius: 50px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

.rajhans-alumni-position {
  font-size: 15px !important;
  color: #718096 !important;
  margin: 0 0 20px 0 !important;
  font-weight: 500 !important;
  min-height: 45px !important; /* Reserve space for 2 lines */
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.rajhans-alumni-separator {
  height: 3px !important;
  width: 50px !important;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
  margin: 0 0 20px 0 !important;
  border-radius: 2px !important;
}

.rajhans-alumni-achievement {
  font-size: 14px !important;
  color: #4a5568 !important;
  font-style: italic !important;
  line-height: 1.7 !important;
  background: #f7fafc !important;
  padding: 20px !important;
  border-radius: 12px !important;
  width: 100% !important;
  position: relative !important;
  border-left: 4px solid #667eea !important;
}

/* 
   DESKTOP LAYOUT (Horizontal)
   Apply from 992px upwards
   ===================================== 
*/
@media (min-width: 992px) {
  .rajhans-alumni-card {
    flex-direction: row !important; /* Force horizontal */
    align-items: center !important; /* Vertically center image and text */
    text-align: left !important;
    padding: 40px !important;
    min-height: 320px !important; /* Fixed height for consistency */
    height: 100% !important;
  }

  .rajhans-alumni-img-wrapper {
    width: 160px !important;
    height: 160px !important;
    margin: 0 35px 0 0 !important; /* Right margin for horizontal layout */
    flex: 0 0 160px !important; /* Fixed width, don't shrink */
  }

  .rajhans-alumni-content {
    align-items: flex-start !important; /* Left align content */
    justify-content: center !important;
    text-align: left !important;
  }

  .rajhans-alumni-name {
    font-size: 26px !important;
  }

  .rajhans-alumni-position {
    min-height: auto !important; /* Let it flow naturally or keep fixed if needed */
    margin-bottom: 15px !important;
  }

  .rajhans-alumni-separator {
    margin-left: 0 !important; /* Align left */
  }
  
  .rajhans-alumni-achievement {
    padding: 15px 20px !important;
    font-size: 14px !important;
  }
}

/* Owl Carousel Navigation Overrides */
.rajhans-alumni-carousel .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  color: #667eea !important;
  font-size: 24px !important;
  transition: all 0.3s ease;
}

.rajhans-alumni-carousel .owl-nav button:hover {
  background: #667eea !important;
  color: #fff !important;
}

.rajhans-alumni-carousel .owl-nav button.owl-prev {
  left: -20px;
}

.rajhans-alumni-carousel .owl-nav button.owl-next {
  right: -20px;
}

@media (max-width: 1250px) {
  .rajhans-alumni-carousel .owl-nav {
    display: none; /* Hide nav on smaller screens/tight fits */
  }
}
