/* ============================================================
   SECTION DIVIDERS & SPACING
   Stylish dividers between sections with reduced gaps
   ============================================================ */

/* ---- Consistent Section Spacing (reduced gaps) ---- */
section {
  padding: 40px 0 !important;
  position: relative;
}

/* Tighten the oversized gaps left by section headers
   (keeps the vertical rhythm balanced and professional) */
section .text-center.mb-5,
section > .container > .text-center.mb-5 {
  margin-bottom: 1.75rem !important;
}

/* ---- Primary Divider: soft hairline + centre diamond ----
   Background-agnostic (no solid box) so it looks clean on
   white, gradient and dark sections alike. */
.section-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin: 0;
  overflow: hidden;
}

/* Full-width soft gradient hairline */
.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(102, 126, 234, 0.25) 10%,
    rgba(118, 75, 162, 0.4) 50%,
    rgba(102, 126, 234, 0.25) 90%,
    transparent 100%
  );
}

/* Rotated-square diamond accent with a soft glow */
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(102, 126, 234, 0.45);
}

/* ---- Alternative Divider with Wave Pattern ---- */
.section-divider-wave {
  position: relative;
  width: 100%;
  height: 20px;
  overflow: hidden;
  margin: 0;
}

.section-divider-wave svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---- Divider with animated dots flanked by hairlines ---- */
.section-divider-dots {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 52px;
  margin: 0;
}

/* Flanking hairline lines */
.section-divider-dots::before,
.section-divider-dots::after {
  content: '';
  width: 90px;
  height: 1px;
  margin: 0 8px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.35), transparent);
}

.section-divider-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #667eea;
  opacity: 0.4;
  animation: dotPulse 2.2s ease-in-out infinite;
}

.section-divider-dots .dot:nth-child(2),
.section-divider-dots .dot:nth-child(4) {
  width: 8px;
  height: 8px;
  opacity: 0.6;
  animation-delay: 0.25s;
}

.section-divider-dots .dot:nth-child(3) {
  width: 11px;
  height: 11px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  opacity: 0.85;
  animation-delay: 0.5s;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.25); opacity: 0.85; }
}

/* ---- Gradient Divider Line ---- */
.section-divider-gradient {
  position: relative;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #667eea 20%,
    #764ba2 50%,
    #667eea 80%,
    transparent 100%
  );
  opacity: 0.25;
  margin: 0;
  border-radius: 2px;
}

/* ---- Section Spacing Helpers ---- */
.section-spacing-sm {
  padding: 30px 0 !important;
}

.section-spacing-md {
  padding: 40px 0 !important;
}

.section-spacing-lg {
  padding: 50px 0 !important;
}

/* ============================================================
   ENHANCED NEWS & INSIGHTS SECTION
   ============================================================ */

.news-section {
  padding: 40px 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  position: relative;
  overflow: hidden;
}

.news-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102,126,234,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.news-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(118,75,162,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.news-header {
  position: relative;
  z-index: 1;
  margin-bottom: 30px !important;
}

/* Enhanced News Card */
.news-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.06);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  height: 100%;
  border: 1px solid rgba(102,126,234,0.08);
}

.news-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(102,126,234,0.15);
  border-color: rgba(102,126,234,0.2);
}

.news-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 3;
}

.news-card:hover::after {
  transform: scaleX(1);
}

.news-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.news-card:hover .news-img {
  transform: scale(1.12);
}

.news-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 4rem;
  color: rgba(255,255,255,0.4);
}

.news-date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 8px 14px;
  text-align: center;
  min-width: 55px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 2;
}

.news-date-day {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  color: #0a0e27;
}

.news-date-month {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #667eea;
  letter-spacing: 0.5px;
}

.news-body {
  padding: 20px 22px 22px;
  position: relative;
  z-index: 1;
}

.news-category {
  font-size: 0.78rem;
  color: #8892b0;
  margin-bottom: 10px;
  display: inline-block;
  padding: 4px 12px;
  background: #f0f2ff;
  border-radius: 20px;
  font-weight: 500;
}

.news-title {
  font-weight: 700;
  color: #0a0e27;
  margin-bottom: 10px;
  line-height: 1.35;
  font-size: 1.05rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  color: #6b7294;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #667eea;
  transition: gap 0.3s ease;
}

.news-card:hover .news-footer-link {
  gap: 14px;
}

.news-footer-link i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.news-card:hover .news-footer-link i {
  transform: translateX(3px);
}

.news-glow {
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(102,126,234,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.news-card:hover .news-glow {
  opacity: 1;
}

.news-card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

.newsSwiper .swiper-slide {
  width: 350px;
  height: auto;
}

.newsSwiper .swiper-wrapper {
  padding-bottom: 45px;
}

.news-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #d1d5e0;
  opacity: 1;
  transition: all 0.3s ease;
}

.news-pagination .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================================
   ENHANCED PARTNER UNIVERSITIES SECTION
   ============================================================ */

.universities-section {
  padding: 40px 0 !important;
  background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
  position: relative;
}

.universities-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102,126,234,0.2), transparent);
}

/* Enhanced University Card */
.university-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  border: 1px solid rgba(102,126,234,0.06);
  position: relative;
}

.university-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102,126,234,0.12);
  border-color: rgba(102,126,234,0.15);
}

.university-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 2;
}

.university-card:hover::before {
  transform: scaleX(1);
}

.university-logo-wrapper {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.university-logo-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102,126,234,0.15), transparent);
}

.university-logo-wrapper img {
  max-height: 120px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: grayscale(0.2);
}

.university-card:hover .university-logo-wrapper img {
  transform: scale(1.08);
  filter: grayscale(0);
}

.university-info {
  padding: 18px 20px 20px;
  text-align: center;
  position: relative;
}

.university-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a0e27;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.university-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: #667eea;
  background: rgba(102, 126, 234, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.university-info .btn {
  font-size: 0.8rem;
  padding: 6px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(5px);
}

.university-card:hover .university-info .btn {
  opacity: 1;
  transform: translateY(0);
}

.university-info .btn:hover {
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

/* Uni Swiper */
.uniSwiper .swiper-slide {
  width: 240px;
  height: auto;
  transition: transform 0.3s ease;
}

.uniSwiper .swiper-slide:hover {
  transform: translateY(-5px);
}

.uniSwiper .swiper-wrapper {
  padding-bottom: 10px;
  transition-timing-function: linear !important;
}

/* ============================================================
   ABOUT SECTION ENHANCEMENT
   ============================================================ */

.about-section {
  padding: 40px 0 !important;
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.glass:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* ============================================================
   SERVICES SECTION ENHANCEMENT
   ============================================================ */

.services-section {
  padding: 40px 0 !important;
  background: #ffffff;
}

.service-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  height: 100%;
  border: 1px solid rgba(102,126,234,0.06);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102,126,234,0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  background: rgba(102, 126, 234, 0.08);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  transform: scale(1.1);
}

.service-card:hover .service-icon i {
  color: white !important;
}

/* ============================================================
   WHY CHOOSE US SECTION
   ============================================================ */

.why-choose-section {
  padding: 40px 0 !important;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */

.testimonials-section {
  padding: 40px 0 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  padding: 40px 0 !important;
}

/* ============================================================
   STATS SECTION
   ============================================================ */

.stats-section {
  padding: 30px 0 !important;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 100%);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  section {
    padding: 28px 0 !important;
  }
  
  .news-section {
    padding: 30px 0 !important;
  }
  
  .newsSwiper .swiper-slide {
    width: 280px;
  }
  
  .news-img-wrap {
    height: 180px;
  }
  
  .universities-section {
    padding: 30px 0 !important;
  }
  
  .uniSwiper .swiper-slide {
    width: 180px;
  }
  
  .university-logo-wrapper {
    min-height: 130px;
    padding: 18px;
  }
  
  .university-logo-wrapper img {
    max-height: 90px;
  }
  
  .news-header {
    margin-bottom: 20px !important;
  }
  
  .section-divider {
    height: 40px;
  }
  
  .section-divider-dots {
    height: 40px;
  }
  
  .section-divider-dots::before,
  .section-divider-dots::after {
    width: 50px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 22px 0 !important;
  }
  
  .news-section {
    padding: 25px 0 !important;
  }
  
  .universities-section {
    padding: 25px 0 !important;
  }
  
  .service-card {
    padding: 25px 20px;
  }
  
  .news-date-badge {
    min-width: 45px;
    padding: 6px 10px;
  }
  
  .news-date-day {
    font-size: 1.1rem;
  }
}