/* Enhanced Partners Animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* All your other CSS styles remain unchanged */
.form-input {
  background-color: #374151;
  border: 1px solid #4b5563;
  color: white;
  padding: 0.5rem;
  border-radius: 0.375rem;
  width: 100%;
}
.form-input:focus {
  border-color: #3b82f6;
  outline: none;
}
.btn-primary {
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}
.btn-secondary {
  background-color: #6b7280;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-secondary:hover {
  background-color: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}
.btn-secondary:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}
.card {
  background-color: #1f2937;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid #374151;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: #4b5563;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #1f2937;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  max-width: 600px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse animation for important elements */
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Bounce animation for CTAs */
.bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -8px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Stagger animation for lists */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Enhanced Marquee Animation */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 25s linear infinite;
  gap: 4rem;
  padding: 1.5rem 0;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-track .partner-box {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100px;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-track .partner-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  transition: 0.5s;
}

.marquee-track .partner-box:hover::before {
  left: 100%;
}

.marquee-track .partner-logo {
  height: 50px;
  max-width: 120px;
  width: auto;
  filter: grayscale(100%) brightness(0.8);
  transition: all 0.4s ease;
}

.marquee-track .partner-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.3);
}

.marquee-track .partner-box:hover .partner-logo {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.1);
}

/* Success Stories Animation */
.carousel-item {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.active {
  opacity: 1;
  transform: translateX(0);
}
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  overflow: hidden;
  touch-action: pan-y;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  cursor: grab;
}
.carousel-track:active {
  cursor: grabbing;
}
.carousel-item {
  min-width: 100%;
  flex-shrink: 0;
  flex-direction: column;
  background-color: #1f2937;
  border-radius: 1.5rem;
  padding: 3rem;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  height: 100%;
  max-width: 100%;
}
.carousel-content {
  flex: 1;
  width: 90%;
  padding: 0;
}
.carousel-quote {
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  margin: 1.5rem 0;
  color: #9ca3af;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  hyphens: auto;
}
.carousel-name {
  font-weight: bold;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.carousel-role {
  color: #9ca3af;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.carousel-company {
  color: #3b82f6;
  font-size: 1.1rem;
}
.carousel-image {
  margin-bottom: 2rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  backdrop-filter: blur(10px);
}
.carousel-button:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.carousel-button:active {
  transform: translateY(-50%) scale(0.95);
  transition: all 0.1s ease;
}
.carousel-button.prev {
  left: 2rem;
}
.carousel-button.next {
  right: 2rem;
}
.carousel-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 0.6rem;
  height: 0.6rem;
  background-color: #4b5563;
  border-radius: 50%;
  margin: 0 0.3rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.carousel-dot:hover {
  transform: scale(1.2);
  background-color: #6b7280;
}
.carousel-dot.active {
  background-color: #a855f7;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
}
.internship-heading {
  border: 2px solid #4b5563;
  background-color: #2d3748;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  display: inline-block;
}
.course-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}
.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}
.course-card:active {
  transform: translateY(-4px) scale(0.98);
  transition: all 0.1s ease;
}
.course-modal-content {
  max-width: 600px;
  width: 90%;
}
.course-details p {
  line-height: 1.6;
  margin-bottom: 1rem;
}
.course-features {
  list-style: none;
  padding: 0;
}
.course-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #374151;
  display: flex;
  align-items: center;
}
.course-features li:before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  margin-right: 0.5rem;
}
.carousel-container {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  align-items: center;
}

.carousel-button {
  transition: background-color 0.2s;
}
.carousel-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .carousel-track {
    justify-content: center;
  }
  .partner-box {
    width: 120px;
    height: 80px;
  }
  .partner-logo {
    max-height: 60px;
  }
}
/* Navbar container Prathmesh*/
nav {
  backdrop-filter: blur(6px);
}

/* Links section */
nav .nav-links a,
nav a,
nav button {
  font-family: Inter, Poppins, sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: 0.25s ease;
}

/* Category links (Learn / Build / Launch / Intern / Get Hired) */
nav .md\:flex a {
  background: rgba(31, 41, 55, 0.95); /* gray-800 */
  padding: 8px 14px;
  border-radius: 999px;
  color: #e5e7eb; /* gray-200 */
  border: 1px solid transparent;
}

nav .md\:flex a:hover {
  background: #374151; /* gray-700 */
  border-color: #4b5563; /* gray-600 */
}

/* Register button */
nav button {
  background: #2563eb; /* blue-600 */
  padding: 8px 20px;
  border-radius: 10px;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

nav button:hover {
  background: #1d4ed8; /* blue-700 */
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.45);
}

/* Admin Panel button */
nav .admin-btn,
nav a[href*="admin-dashboard"] {
  background: #4b5563; /* gray-700 */
  padding: 8px 20px;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

nav .admin-btn:hover,
nav a[href*="admin-dashboard"]:hover {
  background: #3b4451; /* gray-600 */
  box-shadow: 0 0 6px rgba(75, 85, 99, 0.4);
}

/* Logo hover effect */
nav .font-bold span {
  transition: 0.25s ease;
}

nav:hover .text-blue-400 {
  color: #60a5fa; /* slightly brighter blue */
}

nav:hover .text-green-400 {
  color: #6ee7b7; /* slightly brighter green */
}

/* Section background & layout Prathmesh */
section {
  background: rgba(17, 24, 39, 0.3); /* same gray look */
}

/* Title */
section h2 {
  font-family: Poppins, Inter, sans-serif;
  letter-spacing: 0.5px;
}

/* Stat card base style */
.stat-box {
  background: rgba(31, 41, 55, 0.7);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.35s ease;
  cursor: default;
}

/* Emoji styling */
.stat-box div:first-child {
  font-size: 56px;
  margin-bottom: 12px;
}

/* Number value (highlight text) */
.stat-box div:nth-child(2) {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Subtitle text */
.stat-box div:nth-child(3) {
  font-size: 15px;
  color: #9ca3af; /* muted gray */
}

/* Hover interaction */
.stat-box:hover {
  transform: translateY(-6px);
  background: rgba(31, 41, 55, 0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Slight emoji animation on hover */
.stat-box:hover div:first-child {
  transform: scale(1.08) rotate(-2deg);
  transition: 0.35s ease;
}

/* Section base Prathmesh*/
.about-section {
  background: #0b1220; /* same theme */
  padding: 70px 20px;
}

/* Max width container */
.about-section .container {
  max-width: 1050px;
  margin: auto;
}

/* Heading block */
.about-header {
  text-align: center;
  margin-bottom: 60px;
}

.about-header .about-icon {
  font-size: 60px;
  margin-bottom: 16px;
  animation: bounce 2.2s infinite ease-in-out;
}

.about-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 14px;
  color: white;
}

.about-header p {
  max-width: 850px;
  margin: auto;
  color: #9ca3af;
  font-size: 17px;
  line-height: 1.6;
}

/* Animated bounce */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Features grid */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 35px;
  text-align: center;
}

/* Feature box */
.feature-box {
  background: rgba(31, 41, 55, 0.65);
  border-radius: 16px;
  padding: 32px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.35s ease;
  cursor: default;
}

/* Emoji icon */
.feature-box .feature-icon {
  font-size: 48px;
  margin-bottom: 14px;
  transition: 0.35s ease;
}

/* Heading */
.feature-box h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  color: white;
}

/* Subtitle */
.feature-box p {
  color: #9ca3af;
  font-size: 15.5px;
}

/* Hover effects */
.feature-box:hover {
  transform: translateY(-6px);
  background: rgba(31, 41, 55, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.feature-box:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Careercraft Section Prathmesh  */
.careercraft-section {
  padding: 70px 20px;
  background: #0b1220;
}

/* Container max width */
.cc-container {
  max-width: 860px;
  margin: auto;
  text-align: center;
}

/* Header */
.cc-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.cc-header p {
  color: #9ca3af;
  font-size: 17px;
  line-height: 1.6;
  max-width: 850px;
  margin: 0 auto 55px;
}

/* Features grid */
.cc-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

/* Feature box */
.cc-box {
  background: rgba(31, 41, 55, 0.5);
  padding: 30px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Title colors (kept same) */
.cc-title.blue {
  color: #60a5fa;
} /* text-blue-400 */
.cc-title.green {
  color: #6ee7b7;
} /* text-green-400 */
.cc-title.purple {
  color: #c084fc;
} /* text-purple-400 */

/* Title text */
.cc-box h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Description */
.cc-box p {
  color: #9ca3af;
  font-size: 15.5px;
}

/* Hover enhancement */
.cc-box:hover {
  transform: translateY(-6px);
  background: rgba(31, 41, 55, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

/* Subtle animated glow background */
.cc-box::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.15),
    transparent 60%
  );
  transition: 0.4s ease;
}

.cc-box:hover::before {
  opacity: 1;
}

/*Journey section - Prathmesh*/
.journey-section {
  padding: 90px 20px;
  background: #0b1220;
}

.journey-container {
  max-width: 1150px;
  margin: auto;
  text-align: center;
}

.journey-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 15px;
}

.journey-sub {
  color: #bfbfbf;
  margin-bottom: 60px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.journey-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  align-items: center;
}

.step-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 28px 22px;
  border-radius: 15px;
  width: 195px;
  transition: 0.3s ease;
  cursor: pointer;
}

.step-card lottie-player {
  width: 85px;
  height: 85px;
  margin-top: -10px;
}

.step-card h3 {
  font-size: 21px;
  margin: 12px 0 6px;
  font-weight: 600;
}

.step-card p {
  color: #bdbdbd;
  font-size: 14px;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.45);
}

/* arrow */
.step-separator {
  font-size: 35px;
  color: gray;
  margin: 0 5px;
}

/* stats */
.journey-stats {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.journey-stats h4 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

.journey-stats p {
  color: #bfbfbf;
}

/* Responsive */
@media (max-width: 900px) {
  .step-separator {
    display: none;
  }
  .step-card {
    width: 220px;
  }
}

.lottie-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px; /* centers horizontally and adds spacing below */
  display: block; /* prevents inline-left alignment */
}

/* Stipend number animation styling Prathmeeh */
.stipend-value {
  font-weight: bold;
  transition: transform 0.3s ease;
}
.stipend-value.animated {
  transform: scale(1.1);
}
.stipend-card:hover .stipend-value {
  transform: scale(1.12);
  transition: 0.25s;
}

/*placment section*/
.placement-card {
  background: rgba(31, 41, 55, 0.55);
  padding: 24px;
  border-radius: 12px;
  transition: 0.3s ease;
  cursor: default;
}
.placement-card:hover {
  transform: translateY(-6px);
  background: rgba(55, 65, 81, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.stat-num {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.feature-card:hover {
  box-shadow: 0 0 16px rgba(0, 195, 255, 0.25);
}

.partner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 130px;
  transition: 0.3s ease;
  padding: 10px 0;
}

.partner-logo {
  height: 55px;
  object-fit: contain;
  transition: 0.3s ease;
}

.partner-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1; /* slate-300 */
  margin-top: 2px;
  transition: 0.3s ease;
}

/* Hover effect — premium and minimal */
.partner-box:hover {
  transform: scale(1.09);
}

.partner-box:hover .partner-name {
  color: #60a5fa; /* blue-400 */
}

/*-------------------courses */
/* Courses Section Glow / Animation */
.course-card {
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(0, 0, 0, 0.03)
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.course-card:hover {
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.5),
    0 6px 20px rgba(59, 130, 246, 0.15);
  transform: translateY(-6px);
}

.course-card:focus {
  outline: none;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2), 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(-6px);
}

/* Icon formatting */
.course-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  font-size: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Highlights Section (Horizontal + Smooth entry) ---------- */
.highlights-section {
  background: #0b1220;
  padding: 80px 20px;
  text-align: center;
}

.highlight-heading {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 60px;
}

/* Card Container - force horizontal layout, allow horizontal scroll on very small screens */
.highlight-cards {
  display: flex;
  flex-direction: row; /* keep cards horizontal */
  align-items: stretch;
  justify-content: center;
  gap: 42px;
  flex-wrap: nowrap; /* do not wrap by default */
  overflow-x: auto; /* allows small screens to scroll horizontally */
  padding-bottom: 6px; /* prevents scrollbar overlapping */
  -webkit-overflow-scrolling: touch;
}

/* individual card sizing */
.highlight-card {
  background: #0f1724; /* slightly darker card */
  width: 280px;
  min-width: 280px; /* prevents shrink that causes vertical stacking */
  padding: 44px 20px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(36px);
  opacity: 0;
  animation: cardEntry 0.62s cubic-bezier(0.22, 0.9, 0.34, 1) forwards;
  transition: transform 0.26s cubic-bezier(0.22, 0.9, 0.34, 1);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35); /* soft shadow to match screenshot */
}

/* sequential animation delays - same order as DOM */
.highlight-card:nth-child(1) {
  animation-delay: 0.12s;
}
.highlight-card:nth-child(2) {
  animation-delay: 0.28s;
}
.highlight-card:nth-child(3) {
  animation-delay: 0.44s;
}
.highlight-card:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes cardEntry {
  0% {
    opacity: 0;
    transform: translateY(36px);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px);
  } /* small overshoot for pleasant effect */
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover lift (subtle) */
.highlight-card:hover {
  transform: translateY(-10px);
}

/* Centered colorful icons */
.icon-img {
  width: 76px;
  height: 76px;
  display: block;
  margin: 0 auto 18px auto;
  object-fit: contain;
}

/* Dynamic value — big and prominent.
   To change its color/gradient, edit the .stat-value rule below (or set inline style via JS).
*/
.stat-value {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 8px;
  /* default gradient — replace with your own colors */
  background: linear-gradient(90deg, #49a4ff 0%, #6be3ff 50%, #9b8cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtitle */
.highlight-card p {
  font-size: 15px;
  color: #cbd5e1;
  opacity: 0.9;
  margin: 0;
}

/* Responsive adjustments:
   - On medium screens we allow wrapping so layout doesn't break.
   - On very small screens each card becomes full width (with horizontal scroll removed).
*/
@media (max-width: 1100px) {
  .highlight-cards {
    gap: 28px;
  }
  .highlight-card {
    width: 260px;
    min-width: 260px;
    padding: 38px 18px;
  }
  .stat-value {
    font-size: 30px;
  }
  .icon-img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 760px) {
  .highlight-cards {
    flex-wrap: nowrap;
    gap: 20px;
  }
  .highlight-card {
    width: 240px;
    min-width: 240px;
  }
  .highlight-heading {
    font-size: 28px;
    margin-bottom: 36px;
  }
}

/* Optional: when viewport extremely small, allow vertical stacking but keep styling */
@media (max-width: 420px) {
  .highlight-cards {
    flex-direction: column;
    gap: 18px;
    align-items: center;
    overflow-x: visible;
  }
  .highlight-card {
    width: 92%;
    min-width: auto;
    max-width: 360px;
  }
}

/*-------------------courses section----------------*/
/* ---------- Courses Section ---------- */
.courses-section {
  background: #0b1220;
  padding: 90px 20px;
  text-align: center;
}

.courses-heading {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.courses-subtitle {
  color: #b9c1cd;
  font-size: 17px;
  max-width: 850px;
  margin: 0 auto 60px auto;
}

/* --- GRID: Exactly 3 cards per row (desktop) --- */
.courses-grid {
  width: 85%; /* keeps cards centered */
  max-width: 1250px; /* prevents over-stretching */
  margin: 0 auto; /* CENTER the whole grid */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  justify-items: center;
}

/* --- COURSE CARD --- */
.course-card {
  background: #101a2f;
  width: 100%;
  height: 230px; /* ensures same height */
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* aligns duration & level at bottom */
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.28s ease;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 28px rgba(60, 131, 255, 0.32);
}

/* icon */
.course-card .icon {
  font-size: 36px;
  margin-bottom: 16px;
}

/* title */
.course-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  text-align: left;
}

/* description */
.course-card p {
  font-size: 14px;
  margin: 0;
  color: #bdc6d3;
  text-align: left;
}

/* duration + level row */
.course-meta {
  display: flex;
  justify-content: space-between;
  color: #cdd4e2;
  font-size: 13px;
  margin-top: 18px;
}

/* ------- SPECIAL LAST CARD ("Talk With Expert") ------- */
.special-card {
  grid-column: 1 / -1; /* forces next row & centered */
  width: 480px;
  margin: 35px auto 0 auto;
  background: #131c30;
  padding: 42px 30px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: all 0.28s ease;
}

.special-card:hover {
  transform: translateY(-10px);
}

.special-card img {
  width: 70px;
  display: block;
  margin: 0 auto 18px auto;
}

.special-card h3 {
  font-size: 23px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.special-card p {
  font-size: 15px;
  color: #b8c2d4;
  margin-bottom: 26px;
}

.special-btn {
  background: #227cff;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.25s;
}

.special-btn:hover {
  background: #1e3a8a;
}

/* -------- RESPONSIVE BEHAVIOR -------- */
@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 740px) {
  .courses-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .course-card {
    height: auto;
  }
  .special-card {
    width: 100%;
    max-width: 460px;
  }
}

/*--------------internship section---------*/
.internship-section {
  width: 85%;
  max-width: 1200px;
  margin: 120px auto 80px auto;

  text-align: center;
  color: white;
}

.internship-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.internship-subtitle {
  font-size: 17px;
  color: #cbd5e1;
  margin-bottom: 70px;
}

.internship-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 70px;
}

.internship-left,
.internship-right {
  flex: 1;
  text-align: left;
}

.internship-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.internship-icon {
  font-size: 46px;
}

.internship-btn {
  font-size: 24px;
  padding: 10px 26px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.internship-blue {
  background: rgba(43, 132, 255, 0.18);
  color: #4ea3ff;
}

.internship-green {
  background: rgba(0, 180, 80, 0.2);
  color: #3ddc84;
}

.intern-sub-heading {
  font-size: 22px;
  margin-bottom: 22px;
}

.intern-text {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 22px;
  margin-bottom: 20px;
}

.stipend-desc {
  margin-bottom: 35px;
}

.stipend-cards {
  display: flex;
  gap: 26px;
  margin-top: 10px;
}

.stipend-card {
  background: #101a2f;
  padding: 26px;
  border-radius: 14px;
  width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.stipend-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.stipend-value {
  font-size: 30px;
  font-weight: 700;
  color: #3ddc84; /* Matches screenshot green */
}

/*---------------placment support ----------------*/
.placement-support-section {
  width: 85%;
  max-width: 1200px;
  margin: 110px auto 70px auto;
  text-align: center;
  color: white;
}

.place-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 14px;
}

.place-subtitle {
  font-size: 17px;
  color: #cbd5e1;
  margin-bottom: 65px;
}

.support-features {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 65px;
}

.support-box {
  width: 230px;
}

.support-icon {
  font-size: 42px;
  margin-bottom: 14px;
}

.support-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.support-box p {
  font-size: 15px;
  line-height: 21px;
  color: #cbd5e1;
}

.placement-stats {
  display: flex;
  justify-content: center;
  gap: 85px;
  margin-top: 25px;
}

.stat-block {
  text-align: center;
}

.stat-number {
  font-size: 38px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.4s ease-in;
}

.stat-number[data-visible="true"] {
  opacity: 1;
}

.stat-label {
  margin-top: 6px;
  font-size: 16px;
  color: #cbd5e1;
}

/* Colors matching screenshot */
#studentsPlaced {
  color: #60a5fa;
}
#successRateStat {
  color: #22c55e;
}
#avgPackageStat {
  color: #eab308;
}
#highestPackageStat {
  color: #c084fc;
}
#projectsStat {
  color: #38bdf8;
}
/*------------------hiring partners section----------*/
.partners-section {
  width: 85%;
  max-width: 1200px;
  margin: 110px auto 60px auto;
  text-align: center;
  color: white;
}

.partners-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 50px;
}

.partners-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.partners-carousel {
  display: flex;
  gap: 60px;
  align-items: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.partners-carousel.visible {
  opacity: 1;
  transform: translateY(0);
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  flex-shrink: 0;
}

.partner-item img {
  width: 100px;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  filter: brightness(100%);
}

.partner-item p {
  font-size: 15px;
  margin-top: 4px;
  color: #cbd5e1;
}

/* Infinite auto-scroll */
@keyframes slideInfinite {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.partners-carousel.animate {
  animation: slideInfinite 22s linear infinite;
}

/*-----------------success section----------*/
.success-section {
  width: 80%;
  max-width: 1150px;
  margin: 80px auto;
  text-align: center;
  color: white;
}

.success-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-subtext {
  color: #b7c3d4;
  margin-bottom: 45px;
  font-size: 18px;
  max-width: 750px; /* forces line breaks */
  line-height: 28px;
  margin-left: auto;
  margin-right: auto;
}
.success-card {
  background: #16202f;
  border-radius: 28px;
  padding: 65px 40px;
  position: relative;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-left-btn,
.story-right-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0d131d;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
}

.story-left-btn:hover,
.story-right-btn:hover {
  background: #1a2738;
}

.story-left-btn {
  left: 35px;
}
.story-right-btn {
  right: 35px;
}

.story-rating {
  font-size: 26px;
  color: #ffcc00;
  margin-bottom: 20px;
}

.story-quote {
  color: #d7e1ef;
  font-size: 22px;
  font-style: italic;
  margin-bottom: 40px;
  line-height: 34px;
}

.story-name {
  font-size: 28px;
  font-weight: 700;
}

.story-role {
  color: #bcd0ea;
  font-size: 18px;
}

.story-company {
  color: #3da9ff;
  font-size: 19px;
  margin-bottom: 25px;
}

.story-img {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  margin: 20px auto 0; /* centers the image */
  display: block;
}

/*------------------achivement section --------------*/
.achievement-section {
  width: 85%;
  max-width: 1200px;
  margin: 90px auto;
  text-align: center;
  color: white;
}

.achievement-title {
  font-size: 40px;
  margin-bottom: 45px;
  font-weight: 700;
}

.achievement-wrapper {
  display: flex;
  justify-content: center;
  gap: 45px;
  flex-wrap: wrap;
}

.achievement-card {
  background: #16202f;
  padding: 45px 40px;
  border-radius: 22px;
  width: 320px;
  text-align: center;
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.achievement-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.achievement-icon {
  font-size: 48px;
  margin-bottom: 14px;
}

.achievement-value {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 8px;
}

.achievement-label {
  color: #b7c3d4;
  font-size: 18px;
}

/*---------------faq -------------*/
.faq-section {
  width: 85%;
  max-width: 1150px;
  margin: 60px auto 60px;
  text-align: center;
  color: #fff;
}

.faq-title {
  font-size: 42px;
  font-weight: 700;
}

.faq-subtext {
  font-size: 18px;
  margin: 15px 0 55px;
  color: #b7c3d4;
}

.faq-subtext a {
  color: #3b82f6;
  font-weight: 500;
  text-decoration: none;
}

/* FAQ Item */
.faq-item {
  background: #263142;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.faq-item:hover {
  background: #303b4e;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px; /* fixed height */
  font-size: 19px;
}

.faq-toggle {
  font-size: 28px;
  font-weight: 600;
  color: #3b82f6;
  margin-left: 25px;
}

/* Answer container (collapsible) */
.faq-answer {
  background: #1f2733;
  font-size: 17px;
  color: #d4dce9;
  line-height: 1.55;
  padding: 0 28px; /* NO VERTICAL PADDING when closed */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item.active .faq-answer {
  max-height: 999px; /* acts as auto while still animating */
  padding: 18px 28px 24px;
  opacity: 1;
}

/* Hover effect */
.faq-item:hover {
  background: #2c384b;
}

.hero-section {
  background: #0b1220;
}

.transform-section {
  background: #0b1220;
}

.program-section {
  background: #0b1220;
}
