/* Academic Programs Row */
.academic-row {
  padding: 60px 20px;
  background: #fff;
}

.row-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 10px;
}

.row-subtitle {
  text-align: center;
  color: #4a5568;
  font-size: 1.1rem;
  margin-bottom: 50px;
  font-weight: 500;
}

.programs-container {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: #3182ce #edf2f7;
}

.programs-container::-webkit-scrollbar {
  height: 8px;
}

.programs-container::-webkit-scrollbar-track {
  background: #edf2f7;
  border-radius: 4px;
}

.programs-container::-webkit-scrollbar-thumb {
  background: #3182ce;
  border-radius: 4px;
}

.program-card {
  flex: 0 0 240px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-5px);
  border-color: #3182ce;
  box-shadow: 0 10px 25px rgba(49, 130, 206, 0.1);
  background: #fff;
}

.program-header {
  margin-bottom: 15px;
}

.program-level {
  display: inline-block;
  background: #3182ce;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.program-card:nth-child(1) .program-level {
  background: #4299e1;
}
.program-card:nth-child(2) .program-level {
  background: #38b2ac;
}
.program-card:nth-child(3) .program-level {
  background: #ed8936;
}
.program-card:nth-child(4) .program-level {
  background: #e53e3e;
}
.program-card:nth-child(5) .program-level {
  background: #9f7aea;
}

.program-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  margin: 8px 0 0 0;
  line-height: 1.3;
}

.program-desc {
  color: #718096;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.program-cta {
  display: inline-block;
  color: #3182ce;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.program-cta:hover {
  border-bottom-color: #3182ce;
  padding-right: 25px;
  position: relative;
}

.program-cta:hover::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 8px;
  transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 1200px) {
  .programs-container {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .academic-row {
    padding: 40px 15px;
  }

  .row-title {
    font-size: 2rem;
  }

  .row-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .program-card {
    flex: 0 0 280px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .row-title {
    font-size: 1.8rem;
  }

  .program-card {
    flex: 0 0 260px;
  }
}

/* NEW TOPPERS SECTION STYLES */
.toppers-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.toppers-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #718096;
  line-height: 1.6;
}

/* Topper Category */
.topper-category {
  margin-bottom: 60px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.category-badge {
  background: #2c5aa0;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.category-header h3 {
  font-size: 1.8rem;
  color: #2d3748;
  margin: 0;
  font-weight: 600;
}

/* Toppers Grid */
.toppers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.topper-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.topper-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(44, 90, 160, 0.15);
  border-color: #2c5aa0;
}

.topper-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 5px solid #edf2f7;
  position: relative;
}

.topper-photo img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.topper-card:hover .topper-photo img {
  transform: scale(1.1);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 90, 160, 0.2) 0%,
    rgba(44, 90, 160, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.topper-card:hover .photo-overlay {
  opacity: 1;
}

.topper-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  line-height: 1.3;
}

.topper-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c5aa0;
  background: #ebf8ff;
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-block;
  margin: 0;
}

/* Statistics Section */
.results-statistics {
  background: linear-gradient(135deg, #2c5aa0 0%, #3a7bd5 100%);
  border-radius: 20px;
  padding: 3rem;
  color: white;
  margin: 40px auto;
  max-width: 1200px;
}

.stats-card h4 {
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 1.8rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffd700;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Marquee Section */
.marquee-section {
  margin: 40px 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .toppers-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .toppers-section {
    padding: 60px 15px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .category-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .toppers-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }

  .topper-photo {
    width: 100px;
    height: 100px;
  }

  .topper-name {
    font-size: 1.1rem;
  }

  .results-statistics {
    padding: 2rem 1.5rem;
    margin: 30px 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .toppers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .topper-card {
    padding: 20px 15px;
  }

  .topper-photo {
    width: 90px;
    height: 90px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Admission Lists Styles */
.list-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: transform 0.3s ease;
}

.list-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.list-header {
  padding: 25px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.list-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.list-header h3 {
  margin: 0;
  font-size: 1.4rem;
  flex-grow: 1;
}

.list-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.list-content {
  padding: 25px;
}

.list-content p {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.list-download {
  background: var(--bg2);
  border-radius: 8px;
  padding: 20px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.file-info i {
  color: var(--theme-red);
  font-size: 2rem;
}

.file-name {
  display: block;
  color: var(--header);
  font-weight: 600;
  margin-bottom: 3px;
}

.file-size {
  display: block;
  color: var(--text-light);
  font-size: 0.85rem;
}

.file-actions {
  display: flex;
  gap: 10px;
}

.view-btn,
.download-btn {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.view-btn {
  background: var(--theme-blue);
  color: var(--white);
  border: 2px solid var(--theme-blue);
}

.view-btn:hover {
  background: transparent;
  color: var(--theme-blue);
}

.download-btn {
  background: var(--theme-green);
  color: var(--white);
  border: 2px solid var(--theme-green);
}

.download-btn:hover {
  background: transparent;
  color: var(--theme-green);
}

/* Responsive Design */
@media (max-width: 768px) {
  .list-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 20px;
  }

  .file-actions {
    flex-direction: column;
  }

  .view-btn,
  .download-btn {
    width: 100%;
  }
}
