* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #E6B33D;
  --secondary-color: #4a9fa6;
  --accent-color: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --background: #ffffff;
  --background-secondary: #f8fafc;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--background);
  font-size: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-1{
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Header */
.header {
  background: white;
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--primary-color);
}
/* Submenu: Base Style */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  list-style: none;
}

/* Submenu Items */
.submenu li {
  position: relative;
  list-style: none;
}

.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

.submenu a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Show submenu on hover */
.has-submenu:hover > .submenu {
  display: flex;
}

/* Nested submenu (flyout) */
.submenu .submenu {
  top: 0;
  left: 100%;
  margin-left: 0px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
  list-style: none;
}

/* Optional: Only show arrows for items that have further submenus */
.has-submenu > a::after {
  content: '';
  margin-left: 6px;
  font-size: 0.6rem;
  color: var(--text-primary);
}

.has-submenu > a + .submenu {
  /* This selector applies only if there is a submenu */
}

.has-submenu > .submenu .has-submenu > a::after {
  content: '▶';
  font-size: 0.65rem;
  color: var(--text-primary);
  margin-left: 6px;
}

/* Remove unnecessary arrows from items that do not have submenu */
.submenu li:not(.has-submenu) > a::after {
  content: none;
}

/* Show only when .open is active */
.has-submenu.open > .submenu {
  display: flex;
  flex-direction: column;
}
/* Mobile Styles */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    display: none;
    flex-direction: column;
    padding: 1rem;
    height: 100vh;
  }

  .nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .submenu {
    position: static;
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    box-shadow: none;
  }

  .has-submenu.open > .submenu {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}


/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 110px 0 70px;
  text-align: center;
  margin-top: 80px;
}
.hero {
  position: relative;
  overflow: hidden;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.carousel-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
}

.hero-foreground {
  position: relative;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0.5;
  pointer-events: none;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.025em;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: white;
  color: var(--primary-color);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding: 70px 0;
}

.section:nth-child(even) {
  background: var(--background-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Colleges Grid */
.colleges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.college-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.college-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.college-image {
  height: 200px;
  overflow: hidden;
}

.college-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.college-card:hover .college-image img {
  transform: scale(1.05);
}

.college-info {
  padding: 1.5rem;
}

.college-logo {
  width: 60px;
  height: 60px;
  background: var(--background-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 2px solid var(--border-color);
}

.college-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.college-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.stat-item {
  background: var(--background-secondary);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.salary-range {
  color: var(--success-color);
  font-weight: 700;
}

.college-info h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.location,
.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.college-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.college-link:hover {
  color: var(--secondary-color);
}

.view-more {
  text-align: center;
}

.college-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}

.college-card-link:hover {
  transform: scale(1.02);
}

.college-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.college-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Universities Section */
.universities-list {
  display: grid;
  gap: 1.1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.university-item {
  display: grid;
  grid-template-columns: 180px 1fr; 
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.university-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.university-logo-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.university-logo-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.university-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.university-logo-name h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #222;
  line-height: 1.2;
}

.university-info-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
}
.university-info-grid div {
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.4;
}

.university-info-grid strong {
  color: #111;
  font-weight: 600;
}

/* Responsive layout */
@media (max-width: 992px) {
  .university-item {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .university-logo-name {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .university-logo-img {
    width: 70px;
    height: 70px;
  }

  .university-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .university-info-grid {
    grid-template-columns: 1fr;
  }
}
.university-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.university-link:hover .university-item {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Ranking Section */
.ranking-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 9px 18px;
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.875rem;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.ranking-table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9375rem;
}

.ranking-table th {
  background: var(--background-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.rank {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.0625rem;
}

.score {
  background: var(--success-color);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8125rem;
}

.placement {
  color: var(--success-color);
  font-weight: 600;
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.course-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.course-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.course-icon {
  font-size: 2.75rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.course-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.course-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.course-stats span {
  background: var(--background-secondary);
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
}

.course-link:hover {
  text-decoration: none;
}

/* Exams Grid */
.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.exam-card {
  background: white;
  padding: 1.375rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.exam-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.exam-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  justify-content: space-between;
}

.exam-logo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-color: #f8f8f8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.exam-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.exam-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}

.exam-header h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.exam-level {
  background: var(--primary-color);
  color: white;
  padding: 3px 7px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
  display: inline-block;
}

.exam-details p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.exam-details strong {
  color: var(--text-primary);
}

/* Top Courses List */
.top-courses-list {
  display: grid;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.top-course-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  padding: 1.375rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.top-course-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.course-rank {
  background: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.0625rem;
}

.course-info {
  flex: 1;
}

.course-info h4 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.course-info p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.course-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.course-meta span {
  background: var(--background-secondary);
  padding: 3px 7px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.course-trend {
  text-align: center;
  color: var(--text-secondary);
}

.trend-up {
  color: var(--success-color);
}

.trend-stable {
  color: var(--accent-color);
}
.top-course-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.top-course-link:hover {
  text-decoration: none;
}



/* Responsive Design */
@media (max-width: 768px) {
  .nav-list {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.125rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .colleges-grid,
  .courses-grid,
  .exams-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .university-item,
  .top-course-item {
    flex-direction: column;
    text-align: center;
  }
  
  .course-meta {
    justify-content: center;
  }
  
  .ranking-table {
    font-size: 0.8125rem;
  }
  
  .ranking-table th,
  .ranking-table td {
    padding: 0.6875rem 0.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.6s ease-out;
}

.loading {
  opacity: 0.7;
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
}

.btn:focus,
.nav-link:focus,
.tab-btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}


.footer {
  background: #1f2937;
  color: white;
  padding: 2.5rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: 1.75rem;
}

.footer-section {
  flex: 1 1 15%; /* Each section takes up ~15% */
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: white;
}

.footer-section h3 {
  color: #E6B33D !important;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.875rem;
  line-height: 1.4;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 0.8125rem;
}
@media (max-width:480px){
  .footer-section {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .container-1{
    text-align: center;
  }
}

.exam-card-link {
  text-decoration: none;
  color: inherit; /* keep text same */
  display: block;
}
.exam-card-link .btn {
  pointer-events: none; /* so click on button also triggers card link */
}