#homePopupOverlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 20, 0.75); /* Dark overlay with navy blue tint */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  transition: opacity 0.4s ease;
}

#homePopupOverlay.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

#homePopupCard {
  position: relative;
  max-width: 850px;
  width: 100%;
  max-height: 95vh;
  transform: scale(0.9);
  animation: popupAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: flex;
  flex-direction: column;
  background: #052c65; /* Navy blue background matching website's header */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes popupAppear {
  to {
    transform: scale(1);
  }
}

#homePopupHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  background: #052c65; /* Solid Navy color */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#homePopupTitle {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  text-align: left;
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

#homePopupCloseBtn {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px; /* Square close button from the image */
  font-size: 22px;
  background: #ffffff; /* White background */
  color: #000000; /* Dark/Black X icon */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  padding: 0;
  line-height: 0;
}

#homePopupCloseBtn span {
  margin-top: -3px; /* Vertical alignment for × symbol */
}

#homePopupCloseBtn:hover {
  background: #ff4d4d;
  color: #ffffff;
  transform: scale(1.05);
}

#homePopupVideoContainer {
  width: 100%;
  position: relative;
  background: #000;
}

#homePopupVideo {
  width: 100%;
  max-height: 65vh;
  display: block;
  object-fit: contain;
  background-color: #000;
  border: none;
}

#homePopupFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 25px;
  background: #052c65; /* Solid Navy color */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#homePopupAdmissionBtn {
  background: #ffffff;
  color: #052c65; /* Navy text color */
  border: none;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Outfit', 'Inter', sans-serif;
}

#homePopupAdmissionBtn:hover {
  background: #ff9100; /* Website's highlight orange/gold on hover */
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 145, 0, 0.4);
}

.contact-phone-link {
  transition: color 0.2s ease-in-out;
}

.contact-phone-link:hover {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  #homePopupCard {
    max-width: 95%;
    border-radius: 8px;
  }

  #homePopupVideo {
    max-height: 50vh;
  }

  #homePopupCloseBtn {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  #homePopupTitle {
    font-size: 16px;
  }

  #homePopupAdmissionBtn {
    font-size: 13px;
    padding: 8px 18px;
  }

  #homePopupHeader {
    padding: 10px 15px;
  }

  #homePopupFooter {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 12px 15px;
  }
}

/* Impact stats cards */
.impact-box {
  background: #ffffff;
  border: 1px solid #dee2ed;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(20, 44, 84, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  padding: 2rem 1.75rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.impact-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(20, 44, 84, 0.12);
}

.impact-box h2 {
  font-size: 2.5rem;
  color: #0d3d8b;
  margin-bottom: 0.8rem;
}

.impact-box p {
  color: #4f5d7d;
  margin-bottom: 0.35rem;
}

.impact-card-1 {
  background: #d0def7;
  border-color: #c8d6fa;
}

.impact-card-2 {
  background: #ffefef;
  border-color: #ffd7d7;
}

.impact-card-3 {
  background: #eff9f1;
  border-color: #d6f0de;
}

.impact-card-4 {
  background: #fff4ea;
  border-color: #ffe3cc;
}
/* Achievements Image Overlay on Hover */
.achieve-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}

.achieve-img-wrapper .achieve-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.achieve-img-wrapper:hover .achieve-img {
  transform: scale(1.08);
}

.achieve-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.achieve-img-wrapper:hover .achieve-img-overlay {
  opacity: 1;
}

.achieve-eye-icon {
  color: #ffffff !important;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achieve-img-wrapper:hover .achieve-eye-icon {
  transform: scale(1);
}

@media (max-width: 768px) {
  .achieve-img-wrapper .achieve-img {
    height: 200px;
  }
}

/* Testimonials Section Premium Styling */
.alumni-stories {
  background: linear-gradient(135deg, #05053c 0%, #0a0a85 50%, #0d3d8b 100%) !important;
  padding: 60px 0 !important;
  position: relative;
  overflow: hidden;
}

.alumni-stories::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(13, 61, 139, 0.15);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.alumni-stories::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 215, 0, 0.06);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.jsec-testimonial-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  padding: 15px 10px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  padding: 35px 28px !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 400px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 380px !important;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), 0 0 15px rgba(255, 215, 0, 0.12) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.testimonial-quote-icon {
  position: absolute;
  top: 25px;
  right: 28px;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transition: transform 0.4s ease, color 0.4s ease;
}

.testimonial-card:hover .testimonial-quote-icon {
  transform: scale(1.15) rotate(-5deg);
  color: rgba(255, 215, 0, 0.15);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars i {
  color: #ffd700 !important;
  font-size: 0.95rem;
}

.testimonial-text {
  font-size: 0.92rem !important;
  line-height: 1.75 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-style: italic;
  margin-bottom: 25px !important;
  flex-grow: 1;
  text-align: justify;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  width: 100%;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #05053c;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
  flex-shrink: 0;
}

/* Dynamic avatar gradients */
.swiper-slide:nth-child(2n) .testimonial-avatar {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3) !important;
}

.swiper-slide:nth-child(3n) .testimonial-avatar {
  background: linear-gradient(135deg, #b180ff 0%, #803cff 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(128, 60, 255, 0.3) !important;
}

.testimonial-author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.testimonial-author-name {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.testimonial-author-role {
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Custom Testimonial Navigation Buttons */
#test-prev, #test-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

#test-prev:hover, #test-next:hover {
  background: #ffd700 !important;
  border-color: #ffd700 !important;
  color: #05053c !important;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

#test-prev {
  left: -65px !important;
}

#test-next {
  right: -65px !important;
}

/* Navigation positions relative to the swiper container width */
@media (max-width: 1199.98px) {
  #test-prev {
    left: -15px !important;
  }
  #test-next {
    right: -15px !important;
  }
}

@media (max-width: 768px) {
  .testimonial-container {
    padding: 0 5px;
  }
  #test-prev, #test-next {
    display: none !important;
  }
  .testimonial-card {
    min-height: auto !important;
    padding: 25px 20px !important;
  }
}

#test-counter {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-top: 25px !important;
}

/* Inspiring Message Section Custom Styling */
.mgmt-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: none;
  border: 3px solid rgba(5, 44, 101, 0.08); /* Faint navy blue border matching brand colors */
  margin: 15px 0;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mgmt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 70px -15px rgba(5, 44, 101, 0.12), 0 0 1px 1px rgba(5, 44, 101, 0.05);
  border-color: rgba(13, 110, 253, 0.25); /* Fades into site's accent blue on hover */
}

.mgmt-quote-icon {
  position: absolute;
  top: -15px;
  left: 25px;
  font-size: 110px;
  color: rgba(13, 110, 253, 0.06); /* Faint accent blue tint */
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.mgmt-content-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 40px;
}

.mgmt-text-side {
  flex: 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
}

.mgmt-badge {
  display: inline-block;
  background-color: rgba(13, 110, 253, 0.08); /* light blue accent background */
  color: #052c65; /* Navy blue */
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 15px;
  font-family: 'Outfit', 'Inter', sans-serif;
}

.mgmt-title {
  color: #052c65; /* Navy blue title */
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Outfit', 'Inter', sans-serif;
}

.mgmt-text-body {
  width: 100%;
}

.mgmt-text-body .mes-para {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563; /* soft grey for description text */
  text-align: justify;
  margin-bottom: 12px;
}

.mgmt-profile-side {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid rgba(227, 242, 253, 0.8);
  padding-left: 40px;
}

.mgmt-avatar-container {
  position: relative;
  width: 180px;
  height: 220px;
  margin-bottom: 20px;
}

.mgmt-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 25px rgba(5, 44, 101, 0.12);
  background-color: #e8f1ff;
}

.mgmt-avatar-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff9100; /* Accent orange/gold color from the website */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(255, 145, 0, 0.3);
  border: 2px solid #ffffff;
}

.mgmt-name {
  color: #052c65; /* Navy blue */
  font-size: 17px;
  font-weight: 750;
  margin-top: 5px;
  margin-bottom: 4px;
  font-family: 'Outfit', 'Inter', sans-serif;
}

.mgmt-role {
  color: #ff9100; /* Website's accent orange/gold color */
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'Outfit', 'Inter', sans-serif;
}

.mgmt-readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #052c65; /* Navy blue */
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  margin-top: 15px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(5, 44, 101, 0.15);
  font-family: 'Outfit', 'Inter', sans-serif;
}

.mgmt-readmore-btn:hover {
  background: #ff9100; /* Website's accent gold/orange */
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 145, 0, 0.3);
}

.mgmt-readmore-btn i {
  transition: transform 0.3s ease;
}

.mgmt-readmore-btn:hover i {
  transform: translateX(4px);
}

/* Tablet view adjustment */
@media (max-width: 991px) {
  .mgmt-content-row {
    flex-direction: column-reverse;
    gap: 30px;
  }
  
  .mgmt-profile-side {
    border-left: none;
    border-bottom: 1px solid rgba(227, 242, 253, 0.8);
    padding-left: 0;
    padding-bottom: 10px;
    margin-bottom: 0px;
  }
  
  .mgmt-text-side {
    align-items: center;
    text-align: center;
  }
  
  .mgmt-text-body .mes-para {
    text-align: justify;
  }
  
  .mgmt-text-body .mes-para:nth-child(n+2) {
    display: none;
  }

  .mgmt-title {
    font-size: 24px;
  }
}

/* Mobile view adjustments */
@media (max-width: 576px) {
  .mgmt-card {
    padding: 30px 20px;
  }
  
  .mgmt-avatar-container {
    width: 140px;
    height: 170px;
  }
  
  .mgmt-title {
    font-size: 22px;
  }
}

/* Custom View More Button */
.btn-view-more {
  background-color: #052c65 !important; /* Navy brand color */
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(5, 44, 101, 0.15);
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  margin-top: 10px;
}

.btn-view-more:hover {
  background-color: #ff9100 !important; /* Accent orange/gold on hover */
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 145, 0, 0.35);
}

.btn-view-more i {
  transition: transform 0.25s ease;
}

.btn-view-more:hover i {
  transform: translateX(4px);
}

/* Hide native fullscreen control from popup video */
#homePopupVideo::-webkit-media-controls-fullscreen-button {
  display: none !important;
}