/* ================= RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  overflow-x: hidden;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ================= NAVBAR WITH SLIDE DOWN ANIMATION ================= */
.simple-navbar, .navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.simple-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 70px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-left strong, .nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  display: block;
  transition: all 0.3s ease;
}

.nav-left strong:hover, .nav-logo:hover {
  color: #667eea;
  transform: scale(1.05);
}

.nav-right, .nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
}

.nav-right a, .nav-links a {
  color: #2d3748;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-right a::after, .nav-links a:not(.nav-btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-right a:hover::after, .nav-links a:not(.nav-btn):hover::after {
  width: 100%;
}

/* ================= NAVBAR FREE COUNSELLING BUTTON ================= */

.nav-btn {
  display: inline-flex;              /* 🔑 KEY FIX */
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;

  min-height: 42px;                  /* 🔑 forces breathing space */
  padding: 0 40px;                   /* left-right spacing */
  font-size: 15px;
  font-weight: 600;
  line-height: 1;                    /* 🔑 removes text squeeze */

  border-radius: 8px;                /* rectangle */
  white-space: nowrap;               /* prevents wrap */

  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.nav-btn {
  letter-spacing: 0.3px;
}


.nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
}

.nav-btn:hover::before {
  width: 300px;
  height: 300px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #2d3748;
  transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: rotate(90deg);
}

/* ================= HERO SECTION WITH DYNAMIC BACKGROUND ================= */
.hero-simple, #hero {
  position: relative;
  text-align: center;
  padding: 4rem 5%;
  color: #fff;
  min-height: 400px;
  overflow: hidden;
  background: #000;
  animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.hero-simple::before, #hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: crossfade 15s infinite;
  background-image: url('https://image-static.collegedunia.com/public/college_data/images/appImage/1503566414147288295925721RSTMApp.jpg');
}

@keyframes crossfade {
  0%, 30% { opacity: 1; background-image: url('https://image-static.collegedunia.com/public/college_data/images/appImage/1503566414147288295925721RSTMApp.jpg'); }
  33.33% { opacity: 0; }
  36.66%, 63.33% { opacity: 1; background-image: url('https://media.collegedekho.com/media/img/institute/crawled_images/None/rtmnu_1.png?width=1080'); }
  66.66% { opacity: 0; }
  70%, 96.66% { opacity: 1; background-image: url('https://ik.imagekit.io/syustaging/SYU_PREPROD/Cover-image_miH2UpqBqj.webp?tr=w-3840'); }
  100% { opacity: 0; }
}

.hero-simple::after, #hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero-simple h1, .hero-simple p, .hero-simple .hero-actions,
#hero h1, #hero p, #hero .hero-actions, .hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-simple h1, #collegeName {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-simple p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions, .cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ================= HERO CTA BUTTONS – BRAND PURPLE ================= */

.outline-btn,
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.9rem 2.4rem;
  min-height: 44px;

  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;

  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;

  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.cta-btn:hover,
.outline-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.45);
}

.outline-btn::before, .cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.outline-btn:hover::before, .cta-btn:hover::before {
  opacity: 1;
}
.outline-btn:hover, .cta-btn:hover {
  color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.btn-secondary {
  background: white;
  color: #667eea;
  border: 2px solid white;
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.hero-dot:nth-child(1) { animation: dotActive1 15s infinite; }
.hero-dot:nth-child(2) { animation: dotActive2 15s infinite; }
.hero-dot:nth-child(3) { animation: dotActive3 15s infinite; }

@keyframes dotActive1 {
  0%, 33.33% { background: white; width: 32px; border-radius: 6px; }
  33.34%, 100% { background: rgba(255, 255, 255, 0.5); width: 12px; border-radius: 50%; }
}

@keyframes dotActive2 {
  0%, 33.33% { background: rgba(255, 255, 255, 0.5); width: 12px; border-radius: 50%; }
  33.34%, 66.66% { background: white; width: 32px; border-radius: 6px; }
  66.67%, 100% { background: rgba(255, 255, 255, 0.5); width: 12px; border-radius: 50%; }
}

@keyframes dotActive3 {
  0%, 66.66% { background: rgba(255, 255, 255, 0.5); width: 12px; border-radius: 50%; }
  66.67%, 100% { background: white; width: 32px; border-radius: 6px; }
}

/* Badges */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.badge {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
  opacity: 0;
  transform: scale(0.8);
  animation: popIn 0.4s ease forwards;
}

.badge:nth-child(1) { animation-delay: 0.6s; }
.badge:nth-child(2) { animation-delay: 0.7s; }
.badge:nth-child(3) { animation-delay: 0.8s; }

@keyframes popIn {
  to { opacity: 1; transform: scale(1); }
}

.rating-display {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  animation: fadeInUp 0.5s ease 0.9s both;
}

.stars {
  font-size: 20px;
  color: #FFD700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ================= STREAMS ================= */
.streams-simple {
  padding: 4rem 5%;
  text-align: center;
  background: #fff;
}

.streams-simple h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.stream-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stream-box-grid > div {
  padding: 2rem;
  color: #fff;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUpStagger 0.6s ease forwards;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

@keyframes fadeInUpStagger {
  to { opacity: 1; transform: translateY(0); }
}

.stream-box-grid > div::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.stream-box-grid > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.stream-box-grid > div:hover::before {
  width: 400px;
  height: 400px;
}

.stream-box-grid > div:nth-child(1) { animation-delay: 0.1s; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stream-box-grid > div:nth-child(2) { animation-delay: 0.2s; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.stream-box-grid > div:nth-child(3) { animation-delay: 0.3s; background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.stream-box-grid > div:nth-child(4) { animation-delay: 0.4s; background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.stream-box-grid > div:nth-child(5) { animation-delay: 0.5s; background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.stream-box-grid > div:nth-child(6) { animation-delay: 0.6s; background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

/* ================= COLLEGES GRID ================= */
.college-simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.college-card, .card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.5s ease forwards;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

@keyframes scaleIn {
  to { opacity: 1; transform: scale(1); }
}

.college-card::before, .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s;
}

.college-card:hover, .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.college-card:hover::before, .card:hover::before {
  left: 100%;
}

.college-simple-grid .card:nth-child(1) { animation-delay: 0.1s; }
.college-simple-grid .card:nth-child(2) { animation-delay: 0.2s; }
.college-simple-grid .card:nth-child(3) { animation-delay: 0.3s; }
.college-simple-grid .card:nth-child(4) { animation-delay: 0.4s; }
.college-simple-grid .card:nth-child(5) { animation-delay: 0.5s; }
.college-simple-grid .card:nth-child(6) { animation-delay: 0.6s; }

.college-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.card:hover .college-img {
  transform: scale(1.05);
}

.card h3, .card h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.card:hover h3, .card:hover h4 {
  color: #667eea;
}

.card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.card a, .btn {
  display: inline-block;
  margin-top: 0.5rem;
  color: #3498db;
  font-weight: 600;
  position: relative;
}

.card a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3498db;
  transition: width 0.3s ease;
}

.card a:hover::after {
  width: 100%;
}

/* ================= SERVICES ================= */
.services-simple {
  padding: 4rem 5%;
  background: #f4f4f4;
}

.services-simple h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.counselling-info-box {
  max-width: 800px;
  margin: 0 auto 3rem;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.service-grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-grid-simple > div {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
  transition: all 0.3s ease;
}

.service-grid-simple > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.service-grid-simple > div:nth-child(1) { animation-delay: 0.1s; }
.service-grid-simple > div:nth-child(2) { animation-delay: 0.2s; }
.service-grid-simple > div:nth-child(3) { animation-delay: 0.3s; }
.service-grid-simple > div:nth-child(4) { animation-delay: 0.4s; }
.service-grid-simple > div:nth-child(5) { animation-delay: 0.5s; }

.service-grid-simple h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #3498db;
}

.service-grid-simple p {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
}

.counselling-info-box p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.8;
}

/* ================= STATS SECTION ================= */
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 5%;
  background: #fff;
  max-width: 900px;
  margin: -2.5rem auto 2.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  position: relative;
  z-index: 10;
  animation: slideUpStats 0.8s ease forwards;
}

@keyframes slideUpStats {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-box {
  text-align: center;
  padding: 1rem 0.5rem;
}

.stat-box h3, .counter {
  font-size: 2.2rem;
  color: #667eea;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.stat-box:nth-child(4) {
  grid-column: 1 / -1;
  margin-top: 1rem;
  border-top: 2px solid #f0f0f0;
  padding-top: 2rem;
}

.stat-box:nth-child(4) h3 {
  font-size: 2.5rem;
}

.no-counter::before, .no-counter::after,
.counter::before, .counter::after {
  content: none !important;
  display: none !important;
}

/* ================= CTA BOX ================= */
.cta-box {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  margin-top: 3rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.cta-button, .primary-btn, #college-cta a {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button::before, .primary-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover, .primary-btn:hover, #college-cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.cta-button:hover::before, .primary-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ================= COLLEGE DETAILS SECTIONS ================= */
#hero {
  height: 500px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  padding: 50px 80px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  background: white;
  margin: 30px auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
  max-width: 1200px;
}

section.hidden {
  display: none;
}

section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.3s; }
section:nth-of-type(4) { animation-delay: 0.4s; }
section:nth-of-type(5) { animation-delay: 0.5s; }
section:nth-of-type(6) { animation-delay: 0.6s; }

h2 {
  font-size: 28px;
  color: #1a202c;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #4299e1;
  display: inline-block;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-item {
  padding: 15px;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 4px solid #4299e1;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }
.info-item:nth-child(4) { animation-delay: 0.4s; }

.info-label {
  font-size: 13px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.info-value {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
}

#highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.highlight-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 28px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  opacity: 0;
  transform: rotateY(90deg);
  animation: flipIn 0.6s ease forwards;
  transition: all 0.3s ease;
}

@keyframes flipIn {
  to { opacity: 1; transform: rotateY(0); }
}

.highlight-card:nth-child(1) { animation-delay: 0.1s; }
.highlight-card:nth-child(2) { animation-delay: 0.2s; }
.highlight-card:nth-child(3) { animation-delay: 0.3s; }
.highlight-card:nth-child(4) { animation-delay: 0.4s; }

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.why-choose-list {
  list-style: none;
  margin-top: 20px;
}

.why-choose-list li {
  padding: 15px 20px;
  margin-bottom: 12px;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 4px solid #48bb78;
  font-size: 16px;
  color: #2d3748;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.5s ease forwards;
}

.why-choose-list li::before {
  content: '✓';
  color: #48bb78;
  font-weight: bold;
  margin-right: 12px;
  font-size: 18px;
}

.why-choose-list li:nth-child(1) { animation-delay: 0.1s; }
.why-choose-list li:nth-child(2) { animation-delay: 0.2s; }
.why-choose-list li:nth-child(3) { animation-delay: 0.3s; }
.why-choose-list li:nth-child(4) { animation-delay: 0.4s; }
.why-choose-list li:nth-child(5) { animation-delay: 0.5s; }

.placement-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.stat-card {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  padding: 24px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.recruiters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.recruiter-tag {
  background: #edf2f7;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
  border: 2px solid #cbd5e0;
  opacity: 0;
  transform: scale(0.8);
  animation: popIn 0.4s ease forwards;
}

.recruiter-tag:nth-child(1) { animation-delay: 0.1s; }
.recruiter-tag:nth-child(2) { animation-delay: 0.15s; }
.recruiter-tag:nth-child(3) { animation-delay: 0.2s; }
.recruiter-tag:nth-child(4) { animation-delay: 0.25s; }
.recruiter-tag:nth-child(5) { animation-delay: 0.3s; }

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
  font-size: 15px;
}

tbody tr {
  transition: background 0.2s ease;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.4s ease forwards;
}

tbody tr:nth-child(1) { animation-delay: 0.1s; }
tbody tr:nth-child(2) { animation-delay: 0.15s; }
tbody tr:nth-child(3) { animation-delay: 0.2s; }
tbody tr:nth-child(4) { animation-delay: 0.25s; }
tbody tr:nth-child(5) { animation-delay: 0.3s; }

tbody tr:hover {
  background: #f7fafc;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.spec-card {
  padding: 18px 22px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 10px;
  border-left: 4px solid #4299e1;
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.spec-card:hover {
  transform: translateX(5px) translateY(0);
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
}

.spec-card:nth-child(1) { animation-delay: 0.1s; }
.spec-card:nth-child(2) { animation-delay: 0.15s; }
.spec-card:nth-child(3) { animation-delay: 0.2s; }
.spec-card:nth-child(4) { animation-delay: 0.25s; }
.spec-card:nth-child(5) { animation-delay: 0.3s; }
.spec-card:nth-child(6) { animation-delay: 0.35s; }

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

#gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  opacity: 0;
  transform: scale(0.8);
  animation: scaleIn 0.5s ease forwards;
  transition: all 0.3s ease;
}

#gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

#gallery img:nth-child(1) { animation-delay: 0.1s; }
#gallery img:nth-child(2) { animation-delay: 0.15s; }
#gallery img:nth-child(3) { animation-delay: 0.2s; }
#gallery img:nth-child(4) { animation-delay: 0.25s; }
#gallery img:nth-child(5) { animation-delay: 0.3s; }
#gallery img:nth-child(6) { animation-delay: 0.35s; }
#gallery img:nth-child(7) { animation-delay: 0.4s; }
#gallery img:nth-child(8) { animation-delay: 0.45s; }

/* ================= FOOTER ================= */
.simple-footer, footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  padding: 3rem 5% 0;
  margin-top: 4rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-col h3, .footer-col h4 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-col p, .footer-col ul {
  font-size: 1rem;
  color: #ecf0f1;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.footer-col a {
  color: #3498db;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.footer-col a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #5dade2;
  transition: width 0.3s ease;
}

.footer-col a:hover {
  color: #5dade2;
}

.footer-col a:hover::after {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #4a5f7f;
  font-size: 0.95rem;
  color: #bdc3c7;
}

/* ================= SCROLL REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

/* ================= ADMIN DASHBOARD ================= */
.admin-body {
  background: #f0f2f5;
}

.admin-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 1.5rem 5%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.6s ease-out;
}

.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.view-site-btn, .logout-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 1rem;
}

.view-site-btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
}

.view-site-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.logout-btn {
  background: #e74c3c;
  color: #fff;
}

.logout-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.admin-main {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 5%;
}

.admin-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease both;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input, .form-group select, .form-group textarea {
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ================= LOADING ================= */
.loading, .loading-text {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #718096;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .simple-navbar, .nav-container {
    flex-direction: row;
    padding: 1rem 5%;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-right, .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    gap: 15px;
  }

  .nav-right.active, .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  .hero-simple, #hero {
    min-height: 350px;
    padding: 3rem 5%;
  }

  .hero-simple h1, #collegeName {
    font-size: 2rem;
  }

  .hero-simple p {
    font-size: 1rem;
  }

  .hero-content {
    padding: 30px 20px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .stream-box-grid {
    grid-template-columns: 1fr;
  }

  .college-simple-grid {
    grid-template-columns: 1fr;
  }

  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    padding: 2rem 4%;
  }

  .stat-box:nth-child(3) {
    grid-column: 1 / -1;
  }

  .stat-box:nth-child(4) {
    grid-column: 1 / -1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  #highlights {
    grid-template-columns: 1fr;
  }

  .quick-info {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  #gallery {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  section {
    padding: 24px;
    margin: 20px auto;
  }

  h2 {
    font-size: 22px;
  }

  table {
    font-size: 13px;
  }

  th, td {
    padding: 10px 8px;
  }
}

@media (max-width: 480px) {
  .hero-simple, #hero {
    min-height: 300px;
  }

  .hero-simple h1, #collegeName {
    font-size: 24px;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  .stat-box:nth-child(3) {
    grid-column: 1;
  }

  .stat-box h3 {
    font-size: 1.8rem;
  }

  .stat-box:nth-child(4) h3 {
    font-size: 2rem;
  }
}

/* ================= ACCESSIBILITY ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-simple::before, #hero::before {
    animation: none !important;
    background-image: url('https://image-static.collegedunia.com/public/college_data/images/appImage/1503566414147288295925721RSTMApp.jpg');
    opacity: 1;
  }

  .hero-dot {
    animation: none !important;
  }

  .hero-dot:first-child {
    background: white;
    width: 32px;
    border-radius: 6px;
  }
}
/* ================= COLLEGE DETAILS HERO FIX ================= */
/* Make #hero use ONLY JS-provided static image */

#hero::before {
  content: none !important;
  animation: none !important;
  background-image: none !important;
}

/* Ensure static image behaves correctly */
#hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Floating Robot Button */

#aiRobotButton{
position:fixed;
bottom:25px;
right:25px;
width:60px;
height:60px;
background:#6c63ff;
color:white;
font-size:28px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
cursor:pointer;
box-shadow:0 6px 20px rgba(0,0,0,0.2);
z-index:9999;
}

/* AI Panel */

#aiImportPanel{
position:fixed;
bottom:100px;
right:25px;
width:320px;
background:white;
padding:15px;
border-radius:10px;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
display:none;
z-index:9999;
}

#collegeListInput{
width:100%;
height:120px;
padding:10px;
border:1px solid #ccc;
border-radius:6px;
margin-top:10px;
}

#startAIImport{
margin-top:10px;
background:#6c63ff;
color:white;
border:none;
padding:10px;
width:100%;
border-radius:6px;
cursor:pointer;
}