:root {
  /* Updated Colors to Match NT Logo */
  --primary-color: #2563eb; /* Blue - matches the T in your logo */
  --primary-hover: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #dc2626; /* Red - matches the N in your logo */
  --accent-color: #2563eb;
  --red-accent: #dc2626; /* Red accent matching logo */
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-dark: #111827;
  --text-gray: #6b7280;
  --text-dark-blue: #1e40af;
  --text-light-gray: #374151;
  --text-heading: #111827;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-light-blue: #eff6ff;
  --bg-light-red: #fef2f2;
  --bg-gradient-start: #dbeafe;
  --bg-overlay: rgba(37, 99, 235, 0.8);
  
  /* Border Colors */
  --border-light: #e5e7eb;
  --border-gray: #d1d5db;
  --border-focus: #2563eb;
  
  /* Shadow Colors */
  --shadow-light: rgba(37, 99, 235, 0.1);
  --shadow-medium: rgba(37, 99, 235, 0.15);
  --shadow-dark: rgba(37, 99, 235, 0.08);
  --shadow-popup: rgba(37, 99, 235, 0.1);
  --shadow-nav: rgba(37, 99, 235, 0.3);
  --shadow-red: rgba(220, 38, 38, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.hero-banner {
  height: 500px;
  background-image: url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bg-white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), var(--bg-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #60a5fa;

}

.hero-content h1 span {
  color: #60a5fa;

  position: relative;
  display: inline-block;
}

.hero-content h1 span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--primary-color);
  z-index: -1;
  opacity: 0.5;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  color: var(--bg-white);
}

/* Filter Section */
.filter-section {
  padding: 80px 0 40px;
  text-align: center;
  background: var(--bg-white);
}

.filter-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  color: var(--text-heading);
}

.filter-section h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-button {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.filter-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-medium);
  border-color: var(--primary-color);
}

.filter-button.active {
  background: var(--gradient);
  color: var(--bg-white);
  border-color: var(--primary-color);
}

.students-section {
  padding: 40px 0 100px;
  background: var(--bg-light);
}

.students-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.student-card {
  perspective: 1000px;
  height: 430px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
}

.student-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.card-front {
  background: var(--bg-white);
}

.card-back {
  background: var(--bg-white);
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.student-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.student-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.student-card:hover .student-image img {
  transform: scale(1.1);
}

.medal {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 20px;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.medal.gold {
  background-color: var(--gold);
}

.medal.silver {
  background-color: var(--silver);
}

.medal.bronze {
  background-color: var(--bronze);
}

.student-details {
  padding: 20px;
  text-align: center;
}

.student-details h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-heading);
}

.student-course {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.rank-text {
  display: inline-block;
  padding: 5px 15px;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.achievement {
  display: flex;
  align-items: center;
  margin: 20px 0;
  padding: 15px;
  background: var(--bg-light-blue);
  border-radius: 10px;
}

.achievement i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 15px;
}

.achievement p {
  font-weight: 600;
  color: var(--text-primary);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 5px;
}

.detail-value {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Call to Action Section */
.cta-section {
  background: var(--gradient);
  padding: 80px 0;
  color: var(--bg-white);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--bg-white);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  color: var(--bg-white);
}

.cta-button {
  display: inline-block;
  background: var(--bg-white);
  color: var(--primary-color);
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 10px 20px var(--shadow-light);
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-medium);
  background: var(--bg-light);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .students-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .filter-section h2 {
    font-size: 2rem;
  }

  .students-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .filter-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .students-gallery {
    grid-template-columns: 1fr;
  }

  .student-card {
    max-width: 350px;
    margin: 0 auto;
  }
}
