 <style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
 font-family: 'Poppins', 'Segoe UI', 'Open Sans', sans-serif;
}
    html {
      height: 100%;
      overflow-x: hidden;
    }
   body {
  background: #f8f9fa;
  color: #1D0D5A;
  line-height: 1.6;
  min-height: 100%;
  overflow-y: auto;
  padding-top: 100px;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  transition: all 0.3s ease;
  background: linear-gradient(to bottom right, rgba(255, 240, 220, 0.8), rgba(255,255,255,0.7), rgba(255, 230, 230, 0.8));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

header.scrolled {
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 6px 18px !important;
}

header.scrolled .logo img {
  height: 50px !important;
}

header.scrolled nav a {
  font-size: 14px !important;
}

header,
header .logo img,
header nav a {
  transition: all 0.3s ease;
}

    .logo img {
      height: 70px;
      width: auto;
      transition: transform 0.3s ease;
    }
    .logo img:hover {
      transform: scale(1.08);
    }
    .logo a {
      display: inline-block;
    }
 nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 20px;
}
    nav a {
      margin: 10px;
      color: #1D0D5A;
      text-decoration: none;
      font-weight: 600;
      font-size: 16px;
      transition: color 0.3s ease;
    }
    nav a:hover {
      color: #EB5525;
    }
    .navbar-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  list-style: none;
}

    .hero {
      background: #1D0D5A;
      color: white;
      padding-top: 20px;
      text-align: center;
    }
    .carousel {
      position: relative;
      overflow: hidden;
      height: 50vh;
      max-height: 400px;
      border-radius: 24px;
      margin: 0 auto 20px auto;
      width: 100%;
      max-width: 1100px;  
      box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    }
    .carousel-images {
      display: flex;
      width: 300%;
      animation: slide 21s infinite ease-in-out;
    }
    .carousel-images img {
      width: 100%;
      height: 50vh;
      max-height: 400px;
      object-fit: cover;
      border-radius: 24px;
    }
    @keyframes slide {
  0%, 30% { transform: translateX(0); }
  33%, 63% { transform: translateX(-100%); }
  66%, 96% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}
    .dots {
      text-align: center;
      margin-top: -20px;
      position: relative;
      z-index: 1;
    }
    .dot {
      height: 12px;
      width: 12px;
      margin: 0 5px;
      background-color: #ccc;
      border-radius: 50%;
      display: inline-block;
      cursor: pointer;
    }
    .dot.active {
      background-color: #EB5525;
    }
    .hero-text {
      padding: 20px 10px 40px 10px;
    }
    .typing {
      overflow: hidden;
      white-space: nowrap;
      margin: 0 auto;
      letter-spacing: .05em;
      width: 0;
      animation: typing 4s steps(30, end) forwards;
      position: relative;
    }
    .typing::after {
      content: '';
      position: absolute;
      right: 0;
      top: 0;
      height: 100%;
      width: 2px;
      background-color: white;
      animation: blink-caret 0.8s step-end infinite, hide-caret 0s 4s forwards;
    }
    .typing2 {
      opacity: 0;
      animation: fadeIn 2s ease-in-out 4s forwards;
      font-family: 'Segoe UI', 'Open Sans', sans-serif;
      font-size: 17px;
      font-weight: 500;
      color: #fefefe;
      text-align: center;
      line-height: 1.5;
      letter-spacing: 0.2px;
    }
    @keyframes blink-caret {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }
    @keyframes hide-caret {
      to { opacity: 0; }
    }
    @keyframes typing {
      from { width: 0 }
      to { width: 100% }
    }
    @keyframes fadeIn {
      to { opacity: 1; }
    }
   .hero-description {
  font-size: 20px;
  font-weight: 500;
  margin-top: 12px;
  color: #FFEEE5;
  text-align: center;
  letter-spacing: 0.3px;
}

    .section {
      padding: 40px 5vw;
      max-width: 1000px;
      margin: auto;
    }
    .section h3 {
      font-size: 24px;
      margin-bottom: 10px;
      color: #1D0D5A;
    }
    .courses, .why {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }
   /* Mega Dropdown */

.mega-dropdown {
  display: none;
  position: fixed;
  left: 0;
  top: 90px; /* or whatever your header height is */
  width: 100%;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  padding: 48px 0 40px 0;
  z-index: 2000;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0 0 28px 28px;
  animation: fadeIn 0.25s ease-in;
}

.dropdown:hover .mega-dropdown {
  display: block;
}

.dropdown-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  justify-content: flex-start;
  padding: 0 60px;
  text-align: left;
}

@media (max-width: 900px) {
  .dropdown-content {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }
  .mega-dropdown {
    padding: 30px 0 25px 0;
  }
}

 .card {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  padding: 24px;
  border-radius: 18px 0 18px 0;
  flex: 1 1 280px;
  border: 2px solid #EB5525; /* orange border */
  color: #1D0D5A;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  background: #fff4ee;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
    .info-panel {
      position: fixed;
      top: 0;
      right: -400px;
      width: 350px;
      height: 100vh;
      overflow-y: auto;
      overflow-x: hidden;
      background: #ffffff;
      box-shadow: -4px 0 20px rgba(0,0,0,0.1);
      padding: 20px;
      transition: right 0.3s ease;
      z-index: 1000;
    }
    .info-panel::-webkit-scrollbar {
      width: 6px;
    }
    .info-panel::-webkit-scrollbar-thumb {
      background-color: #ccc;
      border-radius: 10px;
    }
    .info-panel.active {
      right: 0;
    }
    .close-btn {
      background: transparent;
      border: none;
      font-size: 20px;
      float: right;
      cursor: pointer;
    }
    @media (max-width: 768px) {
      .info-panel {
        width: 100%;
      } 
    }
.logo-scroll-section {
  width: 100%;
  background-color: #ffffff;
  padding: 30px 0;
  overflow: hidden;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.logo-scroll {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: scrollLoop 40s linear infinite;
}

.logo-scroll img {
  height: 100px;
  width: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-scroll img:hover {
  transform: scale(1.08);
}

@keyframes scrollLoop {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
    .exam-info-section {
  background: #faf8ff;
  padding: 60px 20px;
  text-align: center;
}

.exam-info-container {
  max-width: 1100px;
  margin: 0 auto;
}

.exam-title {
  font-size: 32px;
  font-weight: 800;
  color: #1D0D5A;
  margin-bottom: 10px;
}
    .ipm-color {
  color: #EB5525; /* Your orange brand color */
  font-weight: 800;
}

.exam-title .highlight {
  background: #d8e7ff;
  color: #EB5525;
  padding: 0 8px;
  border-radius: 4px;
}

.exam-description {
  font-size: 18px;
  font-weight: 400;
  color: #1D0D5A;
  line-height: 1.75;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  letter-spacing: 0.3px;
}


.exam-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.highlight-tile {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 30px 20px;
  max-width: 300px;
  flex: 1 1 250px;
  transition: 0.3s;
}

.highlight-tile img {
  width: 50px;
  margin-bottom: 15px;
}

.highlight-tile h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1D0D5A;
}

.highlight-tile p {
  font-size: 15px;
  color: #555;
}

.highlight-tile.active {
  border: 2px solid #EB5525;
  background: #fff5f0;
}
    .highlight-tile:hover {
  background: #fff4ee;
  transform: translateY(-5px);
  border: 2px solid #EB5525;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  cursor: pointer;
}

.cuet-style {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.cuet-card {
  flex: 1 1 250px;
  background: white;
  padding: 30px 20px;
  border-radius: 18px 0 18px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
  font-weight: 600;
  color: #1D0D5A;
  font-size: 18px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cuet-card:hover {
  background: #fff4ee;
  transform: translateY(-5px);
  border-color: #EB5525;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


.cuet-card span {
  display: block;
  margin-top: 8px;
  font-weight: 400;
  font-size: 14px;
  color: #666;
}
    .cuet-flex-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.cuet-style {
  flex: 1 1 60%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cuet-image {
  flex: 1 1 35%;
  text-align: center;
}

.cuet-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  animation: floatUpDown 3s ease-in-out infinite;
}

/* Optional animation effect */
@keyframes floatUpDown {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
  
    .ipm-description {
  font-size: 16px;
  color: #1D0D5A;
  line-height: 1.6;
  text-align: center;
  margin: 30px auto 50px;
  max-width: 900px;
}
.cuet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.cuet-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cuet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.cuet-card span {
  display: block;
  margin-top: 8px;
  color: #555;
  font-size: 14px;
}
.timeline-section {
  background: linear-gradient(120deg, #fff9f5 65%, #ffe5d1 100%);
  border-radius: 28px;
  box-shadow: 0 8px 40px 0 rgba(20,28,72,0.04);
  padding: 44px 0 24px 0;           /* Upar niche padding thik hai, left/right 0 rehne do */
  max-width: 1400px;                /* Pehle 1050px tha, ab 1400px kar do */
  margin: 40px auto 0 auto;
  position: relative;
}

.timeline-section h2 {
  text-align: center;
  color: #1b1850;
  font-size: 2.15rem;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}
.timeline-section .highlight {
  background: #241b50;
  color: #fff;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 1.05em;
  font-weight: 800;
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 0 auto;
  max-width: 700px;
  min-width: 250px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(#eb5525 60%, #fff 100%);
  border-radius: 5px;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.11;
}

.timeline-row {
  width: 98%;
  display: flex;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.timeline-row.left { justify-content: flex-end; }
.timeline-row.right { justify-content: flex-start; }

.timeline-card {
  background: #fff;
  color: #1b1850;
  padding: 22px 28px 19px 28px;
  border-radius: 14px;
  box-shadow: 0 4px 16px #2a1b5022;
  font-size: 1.03rem;
  font-weight: 500;
  min-width: 260px;
  max-width: 355px;
  text-align: left;
  border-left: 7px solid #eb5525;
  margin: 0 8px;
 transition: box-shadow 0.24s cubic-bezier(.16,1,.32,1), transform 0.23s cubic-bezier(.16,1,.32,1);
}
 .timeline-dot {
  width: 16px;
  height: 16px;
  background: #eb5525;
  border: 4px solid #fff;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 2px 8px #eb552511;
}
.timeline-card:hover {
  box-shadow: 0 8px 32px #eb552533, 0 2px 18px #eb552515;
  transform: translateY(-9px) scale(1.028) rotate(-0.7deg);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .timeline-section { padding: 30px 0 12px 0; }
  .timeline { max-width: 96vw; }
  .timeline-card { min-width: 165px; max-width: 98vw; font-size: 0.97rem; }
  .timeline-section h2 { font-size: 1.24rem;}
}
@media (max-width: 600px) {
  .timeline-section { padding: 14px 0 7px 0;}
  .timeline-card { padding: 15px 8px; min-width: 120px; }
}
@media (max-width: 900px) {
  .timeline-section {
    max-width: 99vw;
    padding: 24px 0 10px 0;
  }
}

.content {
  background-color: white;
  color: #1D0D5A;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-weight: 500;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.content h3 {
  margin-top: 0;
  font-size: 18px;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
  .timeline-block,
  .timeline-block.right,
  .timeline-block.left {
    width: 100%;
    left: 0 !important;
    padding-left: 55px;
    padding-right: 15px;
  }

  .timeline-container::after {
    left: 25px;
  }

  .timeline-block::after {
    left: 12px;
  }
}
.community-join-section {
  padding: 80px 20px;
  text-align: center;
  background: #f9f9fb;
}

.community-heading {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.highlight-nextiim {
  background-color: #1D0D5A;
  color: white;
  padding: 2px 12px;
  border-radius: 8px;
}

.community-subtext {
  color: #555;
  font-size: 16px;
  margin-bottom: 50px;
}

.community-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.community-card {
  flex: 1 1 280px;
  max-width: 300px;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  padding: 30px 20px;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  object-fit: contain;
}
.community-card h3 {
  font-size: 20px;
  margin: 10px 0;
  color: #1D0D5A;
}

.community-card p {
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 8px 18px;
  background-color: #EB5525;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #c9441e;
}

.community-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Optional gradients per card */
.community-card.youtube {
  background: linear-gradient(135deg, #fff5f0, #ffe6e0);
}

.community-card.instagram {
  background: linear-gradient(135deg, #f7e8ff, #e8dcf8);
}

.community-card.telegram {
  background: linear-gradient(135deg, #e8f5ff, #dceeff);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .community-cards {
    flex-direction: column;
    align-items: center;
  }
}
    /* Update background */
.community-join-section {
  padding: 80px 20px;
  text-align: center;
  background: #fef4f0; /* light cream-orange as per brand */
}

/* Orange badge version of heading */
.highlight-nextiim-orange {
  background-color: #EB5525;
  color: white;
  padding: 2px 12px;
  border-radius: 8px;
}
.footer {
  background-color: #00225a;
  color: #ffffff;
  padding: 60px 20px 30px;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1300px; /* Increased from 1200px for better spacing */
  margin: 0 auto; /* Centering */
  padding: 0 50px; /* Balanced left-right margin */
  box-sizing: border-box;
}

.footer-column {
  flex: 1 1 220px;
}

.footer-column.logo-column {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-left: 0;
  padding-left: 0;
  flex: 1 1 280px;
}

.footer-logo {
  width: 200px;
  margin-bottom: 10px;
}

.footer-desc h2 {
  font-size: 18px;
  margin: 0;
  color: #ffffff;
}

.footer-desc p {
  font-size: 13px;
  margin: 4px 0 0;
  color: #cccccc;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 16px;
  border-bottom: 2px solid #EB5525;
  padding-bottom: 6px;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-column ul li a {
  color: #eeeeee;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #EB5525;
}

.footer-sub-columns {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.footer-column.contact-info ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #eeeeee;
  line-height: 1.6;
}

.footer-column.contact-info ul li a {
  color: #eeeeee;
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid #555;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: #aaa;
  font-size: 13px;
}

.footer-policy-links a {
  color: #aaa;
  margin: 0 8px;
  text-decoration: none;
}

.footer-policy-links a:hover {
  color: #EB5525;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 10px;
  }

  .footer-column {
    width: 100%;
  }

  .footer-sub-columns {
    flex-direction: column;
  }

  .footer-bottom {
    text-align: left;
  }
  .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #eeeeee;
}
}

#community {
  scroll-margin-top: 100px;
}

    /* --- Hamburger Icon Styles --- */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 36px;
  height: 30px;
  justify-content: center;
  align-items: center;
  z-index: 3001;
  margin-left: 14px;
  margin-right: 4px;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 28px;
  background: #EB5525;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -6px);
}

/* --- Responsive Nav --- */
@media (max-width: 900px) {
  header {
    padding: 8px 12px;
  }
  nav {
    flex-direction: row;
    justify-content: flex-end;
  }
.navbar-links {
  position: fixed;
  top: 80px; /* below header */
  right: -100%;   /* <-- yahi major fix hai */
  width: 90%;     /* ya 80vw bhi rakh sakte, but 90% jyada safe hai */
  max-width: 340px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 22px rgba(0,0,0,0.08);
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  z-index: 2002;
  padding: 30px 24px;
  transition: right 0.3s;
  border-radius: 12px 0 0 12px;
  border-left: 2px solid #EB5525;
}
.navbar-links.open {
  right: 0;
}

  .navbar-links li {
    margin: 0 0 18px 0;
    width: 100%;
  }
  .navbar-links li a {
    font-size: 18px;
    display: block;
    padding: 10px 0;
  }
  .hamburger {
    display: flex;
  }

  /* Dropdown menu in mobile */
  .mega-dropdown {
    position: static !important;
    width: 100%;
    padding: 8px 0 10px 0;
    border-radius: 10px;
    box-shadow: none;
    border-bottom: none;
    background: #f8f9fa;
    z-index: 1;
  }
  .dropdown .mega-dropdown {
    display: none;
  }
  .dropdown.open .mega-dropdown {
    display: block;
  }
  .dropdown-content {
    padding: 0 6px;
    gap: 12px;
    flex-direction: column;
  }
}
.nextiim-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(115deg, #eef4fa 75%, #dbe9ff 100%);
  border-radius: 36px;
  box-shadow: 0 8px 40px 0 rgba(20,28,72,0.08);
  padding: 24px 2vw;
  max-width: 1200px;
  margin: 30px auto;
  gap: 10px;
  overflow: hidden;
}
.hero-left {
  flex: 1;
  min-width: 0;  /* ✅ This will allow shrinking on mobile */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}
@media (min-width: 700px) {
  .hero-left {
    min-width: 390px;
  }
}
.hero-right {
  flex: 1.25;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}
.hero-right img {
  width: 100%;
  max-width: 600px;
  min-width: 0 !important;
  border-radius: 24px;
  box-shadow: 0 8px 36px #2a1b5022;
  object-fit: cover;
  display: block;
}

/* ----------- Responsive ------------ */
@media (max-width: 1100px) {
  .nextiim-hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 16px;
    padding: 22px 2vw;
    max-width: 100%;
    border-radius: 20px;
  }
  .hero-left {
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 0 4vw;
  }
  .hero-right img {
    max-width: 330px;
  }
  .nextiim-hero h1 { font-size: 2rem; }
  .hero-badge { font-size: 1.06rem; }
  .ug-prep-gradient { font-size: 1.13rem; padding: 5px 15px; }
}

@media (max-width: 700px) {
  .nextiim-hero {
    flex-direction: column-reverse;
    padding: 0 !important;
    gap: 12px;
    max-width: 100% !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }
  .hero-left {
    width: 100%;
    min-width: 0 !important;
    align-items: center;
    padding: 0 2vw;
    box-sizing: border-box;
  }
  .hero-right {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center;
    align-items: center;
  }
  .hero-right img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    display: block;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    box-shadow: none !important;
  }
  .btn-primary, .btn-outline { padding: 9px 16px; font-size: 1rem; }
}


.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, #eb5525 80%, #ee9138 100%);
  color: #fff;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.14rem;
  padding: 7px 30px 6px 30px;
  border-radius: 22px;
  margin-bottom: 16px;
  letter-spacing: 0.7px;
  box-shadow: 0 2px 14px 0 rgba(235, 85, 37, 0.11);
  border: 2.5px solid #fff4;
  text-shadow: 0 1px 6px #cf3b0c2e;
  transition: box-shadow 0.18s;
}

.nextiim-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1b1850;
  line-height: 1.12;
  margin-bottom: 10px;
  letter-spacing: 0.8px;
}

.subtitle {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  color: #273974;
  margin-top: 3px;
}

.ug-prep-gradient {
  display: inline-block;
  margin: 20px 0 15px 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  background: linear-gradient(90deg, #273974 5%, #eb5525 65%, #ee9138 100%);
  color: #fff;
  border-radius: 12px;
  padding: 7px 32px 7px 20px;
  box-shadow: 0 4px 24px #eb55253a;
  line-height: 1.12;
  text-shadow: 0 3px 15px #fff1;
}

.hero-desc {
  margin: 14px 0 7px 0;
  color: #222d4e;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.hero-highlight {
  color: #eb5525;
  font-weight: 700;
  font-size: 1.19rem;
  margin-bottom: 27px;
  margin-top: 2px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #1b1850;
  color: #fff;
  padding: 15px 38px;
  font-size: 1.14rem;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 16px 0 #eb55252d;
  transition: 0.18s;
  outline: none;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-primary:hover { background: #eb5525; }

.btn-outline {
  padding: 15px 38px;
  font-size: 1.14rem;
  color: #eb5525;
  background: #fff;
  border: 2px solid #eb5525;
  border-radius: 10px;
  font-weight: 700;
  transition: 0.18s;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-outline:hover { background: #eb5525; color: #fff; }

  .nextiim-hero h1 { font-size: 2rem; }
  .hero-badge { font-size: 1.06rem; }
  .ug-prep-gradient { font-size: 1.13rem; padding: 5px 15px; }
}
html {
  scroll-behavior: smooth;
}

.lead-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 75vh;
  background: linear-gradient(110deg, #f6f9ff 60%, #f5f0fc 100%);
  border-radius: 30px;
  margin: 48px auto 60px auto;
  padding: 48px 0;
  max-width: 1120px;
  box-shadow: 0 10px 36px #2a1b5020;
  gap: 56px;
  position: relative;
  overflow: hidden;
}

.lead-section::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 400px;
  height: 380px;
  background: radial-gradient(ellipse at 60% 50%, #e8ebff 80%, transparent 100%);
  z-index: 0;
  opacity: 0.65;
  pointer-events: none;
}

.lead-left {
  flex: 1;
  margin-right: 48px;
  z-index: 1;
  padding-left: 32px;
}

.lead-left h2 {
  font-size: 2.7rem;
  color: #211e5a;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.lead-gradient {
  display: inline-block;
  background: linear-gradient(90deg, #284be8 0%, #49b9e6 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.lead-left .tagline {
  font-size: 1.18rem;
  margin: 16px 0 16px 0;
  font-weight: 700;
  color: #25316d;
}

.lead-left .sub {
  font-size: 1.12rem;
  color: #48465e;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.lead-form {
  background: #fff;
  padding: 38px 32px 32px 32px;
  border-radius: 20px;
  box-shadow: 0 8px 28px #2a1b5035;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
}

.lead-form label {
  font-weight: 600;
  color: #263375;
  margin-bottom: 2px;
  font-size: 1.06rem;
}

.lead-form input,
.lead-form select {
  padding: 14px 13px;
  border: 1.4px solid #d2dbf2;
  border-radius: 9px;
  font-size: 1.08rem;
  margin-bottom: 7px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  background: #f8f9ff;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: #284be8;
  box-shadow: 0 2px 12px #284be820;
}

.lead-form button {
  background: linear-gradient(90deg, #284be8 0%, #49b9e6 90%);
  color: #fff;
  border: none;
  padding: 14px 0;
  border-radius: 9px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 20px #49b9e62d;
}

.lead-form button:hover {
  background: #1b1850;
  box-shadow: 0 4px 24px #284be840;
}

.success-msg {
  color: #219838;
  font-weight: 600;
  margin-top: 12px;
}

.error-msg {
  color: #ec4543;
  font-weight: 600;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .lead-section {
    flex-direction: column;
    gap: 32px;
    padding: 22px 0;
    max-width: 98vw;
  }
  .lead-left {
    margin-right: 0;
    margin-bottom: 0;
    padding-left: 0;
    text-align: center;
  }
  .lead-form {
    min-width: 220px;
    margin: 0 auto;
  }
}

html, body { overflow-x: hidden !important; }

@media (max-width: 700px) {
  .nextiim-hero,
  .lead-section,
  .timeline-section,
  .logo-scroll-section,
  .exam-info-section,
  .community-join-section,
  .footer-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
  .hero-right img,
  .logo-scroll img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    object-fit: cover !important;
  }
  /* Jo grid/tile/slider hai usko wrap hone do aur scrollable banao */
  .courses, .exam-highlights, .cuet-grid {
    flex-wrap: wrap !important;
    gap: 18px !important;
    overflow-x: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 8px !important;
  }
  .courses .card, .exam-highlights .highlight-tile, .cuet-grid .cuet-card {
    min-width: 220px !important;
    max-width: 96vw !important;
    flex: 1 1 100% !important;
  }
}


</style>

