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

:root {
  --primary-color: #5b4fdb;
  --primary-dark: #4a3fb8;
  --secondary-color: #4ecdc4;
  --accent-color: #7c6fe8;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(91, 79, 219, 0.1);
  --shadow-lg: 0 20px 60px rgba(91, 79, 219, 0.15);
}

body {
  font-family: "Cairo", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
  padding: 1.5rem 0;
  background: rgba(78, 205, 196, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(78, 205, 196, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a4d2e !important;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  color: #1a4d2e;
  font-size: 1.8rem;
}

.navbar .nav-link {
  color: #1a4d2e !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 0;
  height: 2px;
  background: #1a4d2e;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after,
.navbar .nav-link:focus::after {
  width: 80% !important;
  right: 10% !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #1a4d2e !important;
}

/* Hero Slider Styles */
.hero-section {
  margin-top: 0;
  position: relative;
  padding-top: 76px;
}

.carousel {
  height: auto;
  min-height: 100vh;
}

.carousel-inner,
.carousel-item {
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.carousel-caption-custom {
  position: relative;
  width: 100%;
  padding:30px 0 50px;
  text-align: center;
  color: var(--white);
  z-index: 10;
}

.carousel-caption-custom h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-caption-custom .lead {
  font-size: 1.5rem;
  font-weight: 400;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(5px);
}

/* Button Styles */
.btn-primary {
  background: var(--secondary-color);
  border: none;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-primary:hover {
  background: #3db8af;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-outline-light {
  border: 2px solid var(--white);
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background: var(--primary-color);
  margin-top: -2px;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(70, 100, 130, 0.25);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(100, 140, 180, 0.2);
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(80, 110, 145, 0.35);
  border-color: rgba(120, 160, 200, 0.3);
}

.stat-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

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

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(26, 77, 46, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  background: var(--bg-light);
}

.about-image img {
  border-radius: 20px;
  transition: all 0.3s ease;
}

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

.about-features {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-item i {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-left: 1rem;
}

/* News Section */
.news-section {
  background: var(--white);
}

.news-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.news-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.news-meta i {
  margin-left: 0.5rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
  flex: 1;
}

.news-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.news-link:hover {
  color: var(--secondary-color);
  gap: 0.5rem;
}

.news-link i {
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

/* Achievements Section */
.achievements-section {
  background: var(--bg-light);
}

.achievement-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.achievement-icon {
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.achievement-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.achievement-card p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Contact Section */
.contact-section {
  background: var(--white);
}

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(26, 77, 46, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1.5rem;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-details h5 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-light);
  margin: 0;
}

.contact-form {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 20px;
}

.contact-form .form-control {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(26, 77, 46, 0.1);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-right: 0.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form .form-control {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 50px;
}

.newsletter-form .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  white-space: nowrap;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

/* Responsive Design */
@media (max-width: 991px) {
  .carousel-caption-custom h1 {
    font-size: 2.5rem;
  }

  .carousel-caption-custom .lead {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .carousel {
    height: 70vh;
    min-height: 500px;
  }

  .carousel-caption-custom h1 {
    font-size: 2rem;
  }

  .carousel-caption-custom .lead {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}


/* Top Students Slider Styles */
.top-students-list {
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.student-card {
  background: rgba(70, 100, 130, 0.25);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(100, 140, 180, 0.1);
}

.student-card:hover {
  background: rgba(80, 110, 145, 0.35);
  transform: translateX(-5px);
  border-color: var(--secondary-color);
}

.student-rank {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.student-info {
  flex: 1;
  text-align: right;
}

.student-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
               0 0 20px rgba(255, 215, 0, 0.6),
               0 0 30px rgba(255, 215, 0, 0.4),
               2px 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.student-details {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin: 0;
}

.student-details .badge {
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

/* Responsive adjustments for student cards */
@media (max-width: 767px) {
  .top-students-list {
    max-width: 100%;
    padding: 0 1rem;
  }

  .student-card {
    padding: 1rem;
    gap: 1rem;
  }

  .student-rank {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .student-name {
    font-size: 1.1rem;
  }

  .student-details .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}
