/* =====================================================
   UNDERGRADUATE PAGE – PREMIUM EXPERIENCE (UPDATED)
   Depends on: global style.css
===================================================== */

/* ================= COMMON SECTION SPACING ================= */

.undergraduate-info,
.ug-btech-list,
.ug-partner-universities,
.why-sye,
.process,
.testimonials,
.universities,
.psychometric-section,
.student-testimonials {
  padding: 90px 0;
}

.section-lead {
  max-width: 760px;
  margin: 10px auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ================= TRUST STRIP ================= */

.ug-trust-strip {
  background: var(--bg-light);
  padding: 40px 0;
}

.trust-grid {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-grid strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.trust-grid span {
  font-size: .85rem;
  color: var(--text-muted);
}

/* ================= INFO GRID ================= */

.info-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.info-card {
  background: #fff;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: .35s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.info-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ================= COLLEGE LIST ================= */

.college-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.college-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: .35s ease;
}

.college-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.college-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--primary);
}

/* ================= WHY SYE ================= */

.why-sye {
  background: var(--bg-light);
  text-align: center;
}

.why-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.why-card {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 16px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: .35s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

/* ================= PROCESS ================= */

.process {
  background: var(--bg-light);
  text-align: center;
}

.process-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.process-card {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: .35s ease;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
/* ================= PROCESS IMAGE FIX ================= */

.process-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
  transition: .35s ease;
}

.process-card:hover img {
  transform: scale(1.05);
}


/* ================= TESTIMONIALS ================= */

.testimonial-container {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.testimonial {
  background: #020617;
  color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
}

/* ================= UNIVERSITY SLIDER ================= */

.university-slider {
  overflow: hidden;
  margin-top: 40px;
}

.slide-track {
  display: flex;
  width: calc(250px * 12);
  animation: scroll 30s linear infinite;
}

.slide {
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= PSYCHOMETRIC SECTION ================= */

.psychometric-section {
  background: #ffffff;
}

.psychometric-layout {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
}

.psychometric-heading {
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.psychometric-points li,
.psychometric-instructions li {
  margin-bottom: 6px;
  color: var(--text-muted);
}

.psychometric-cta {
  background: linear-gradient(135deg, #020617, #1e293b);
  color: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

/* ================= POPUP ================= */

#psychometricTestPopup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 99999;
  transition: .35s ease;
}

#psychometricTestPopup.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#psychometricTestPopup .popup-box {
  background: #fff;
  width: min(520px, 92%);
  padding: 32px;
  border-radius: 16px;
  position: relative;
  animation: popupFade .35s ease;
}

#psychometricTestPopup .popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  border: none;
  background: none;
  cursor: pointer;
}

@keyframes popupFade {
  from {
    transform: translateY(20px) scale(.95);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* ================= SHORT TESTIMONIALS ================= */

.student-testimonials {
  background: var(--bg-light);
  text-align: center;
}

.student-testimonials .testimonial-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .psychometric-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .undergraduate-info,
  .ug-btech-list,
  .ug-partner-universities,
  .why-sye,
  .process,
  .testimonials,
  .universities,
  .psychometric-section,
  .student-testimonials {
    padding: 60px 0;
  }
}
/* ================= PREMIUM UG SECTION UPGRADE ================= */

.premium-ug-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  position: relative;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.premium-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 36px 28px;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  transition: all .35s ease;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}

.icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(237,53,0,.3);
}

.premium-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.premium-card p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
/* ================= PREMIUM B.TECH SECTION ================= */

.premium-btech-section {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.premium-college-card {
  background: #fff;
  padding: 36px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.05);
  transition: all .35s ease;
  position: relative;
}

.premium-college-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,.12);
}

.card-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  margin-bottom: 14px;
}

.premium-college-card h3 {
  margin-bottom: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.styled-list {
  list-style: none;
  padding: 0;
}

.styled-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: .95rem;
  color: var(--text-dark);
}

.styled-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
}
/* ================= PREMIUM PARTNER UNIVERSITIES ================= */

.premium-partner-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.partner-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.05);
  transition: all .35s ease;
}

.partner-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,.12);
}

.region-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 16px;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
/* ================= PREMIUM WHY SECTION ================= */

.premium-why-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  text-align: center;
}

.premium-why-card {
  background: #fff;
  padding: 40px 28px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.05);
  transition: all .35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.premium-why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,.12);
}

.why-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(237,53,0,.3);
}

.premium-why-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.premium-why-card p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
}
/* ================= PREMIUM UNIVERSITY LOGO STRIP ================= */

.premium-universities {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  text-align: center;
}

.logo-card {
  width: 220px;
  height: 140px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,.08);
  transition: all .35s ease;
}

.logo-card img {
  max-width: 120px;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all .35s ease;
}

.logo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0,0,0,.12);
}

.logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
