
    /* reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
  color: white;
  min-height: 100vh;
  padding: 20px;
}

/* Header styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
}
.back-btn {
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.back-btn:hover {
  transform: translateX(-5px);
  color: #FFD700;
}

/* Hero section */
.hero {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%231a2a6c"/><path d="M0 50 L100 50" stroke="%23FFD700" stroke-width="1" stroke-opacity="0.3"/></svg>');
  background-size: cover;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 42, 108, 0.8), rgba(178, 31, 31, 0.8));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  color: white;
}
.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.nominate-btn {
  background: linear-gradient(to right, #FFD700, #FFA500);
  color: #1a2a6c;
  border: none;
  padding: 12px 35px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.nominate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(to right, #FFA500, #FFD700);
}

/* Category cards section */
.cards-section {
  padding: 2rem;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #FFD700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.cards-container {
  display: flex;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: #FFD700 #1a2a6c;
}
.cards-container::-webkit-scrollbar {
  height: 10px;
}
.cards-container::-webkit-scrollbar-track {
  background: rgba(26, 42, 108, 0.5);
  border-radius: 10px;
}
.cards-container::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #FFD700, #FFA500);
  border-radius: 10px;
}
.cards-container::-webkit-scrollbar-thumb:hover {
  background: #FFA500;
}
.card {
  flex: 0 0 auto;
  width: 230px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.3);
}
.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: #FFD700;
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 2px solid #FFD700;
}
.card-content {
  padding: 1.2rem;
}
.card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #FFD700;
}
.card-sub {
  font-size: 1rem;
  opacity: 0.8;
}

/* Hall of Fame student grid */
.hall-of-fame {
  max-width: 1200px;
  margin: 3rem auto;
  background: #fff;
  color: #333;
  border-radius: 12px;
  padding: 40px;
  overflow: visible;
  padding-top: 80px;
}
.hof-header {
  text-align: center;
  margin-bottom: 30px;
}
.hof-header h2 {
  font-size: 2rem;
  color: #1e3a8a;
}
.hof-header p {
  font-size: 1rem;
  color: #555;
}
.hof-header h4 {
  font-size: 1rem;
  color: #fff9f9;
}
.nav-link {
      color: white;
    }
.cards-container.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 20px;
}
.card.student {
  position: relative;
  background: #fff;
  color: #333;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  width: 220px;
}

/* Top-left Rank Circle */
.card.student .rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #03709E;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Top Image (full width) */
.card.student img.avatar {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* Name */
.card.student h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 12px 0 4px;
  color: #03709E;
}

/* Subtext */
.card.student .info {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 8px;
}

/* Blue Badge (for child name) */
.card.student .badge {
  display: inline-block;
  background: #03709E;
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}


/* See More button */
.see-more-wrap {
  text-align: center;
  margin-top: 30px;
}
#seeMoreBtn {
  background: #1e40af;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
#seeMoreBtn:hover {
  background: #1d4ed8;
}

/* Ranking display */
.ranking {
  background: rgba(0, 0, 0, 0.3);
  padding: 3rem 2rem;
  margin: 2rem;
  border-radius: 15px;
  /* overflow: hidden; */
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.ranking h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #FFD700;
}
.ranking p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.2rem; }
  .card, .card.student { width: 250px; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .card, .card.student { width: 220px; }
}

.hall-of-fame {
  position: relative;
  overflow: hidden;
  /* replace with your actual image path/url */
  background: url('../img/vmimg/') center center / cover no-repeat;
  /* optional dark overlay */
}
.hall-of-fame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  pointer-events: none;
}
.hall-of-fame > * {
    
  position: relative; /* bring content above the overlay */
  z-index: 1;
}

/* PRINCIPALS SECTION */
.principals-hof {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.principals-hof .hof-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.principals-hof .hof-header h2 {
  color: #03709E;
  font-size: 2rem;
}

.principals-hof .hof-header p {
  color: #555;
  font-size: 1.1rem;
}

/* horizontal scroll container */
.principals-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: visible;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #03709E transparent;
  overflow-y: visible;
}
.principals-container::-webkit-scrollbar {
  height: 8px;
}
.principals-container::-webkit-scrollbar-thumb {
  background: #03709E;
  border-radius: 10px;
}

/* individual principal card */
.principal-card {
  position: relative;
  background: #03709E;
  color: #fff;
  border-radius: 12px;
  overflow: visible;
  padding: 1.5rem 1rem 1rem;
  display: flex;
  align-items: center;
  flex: 0 0 250px;
  scroll-snap-align: start;
  min-height: 140px;
}

/* rank badge */
.principal-card .rank {
  position: absolute;
  top: -24px;
  left: -18px;
  background: #fff;
  color: #03709E;
  font-weight: bold;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* text block */
.principal-card .info {
  flex: 1;
  padding-right: 100px;
  text-align: left;
}

.principal-card .info .school {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-bottom: 0.2rem;
}

.principal-card .info .school i {
  margin-right: 0.5rem;
  display: inline-block;
  transform: rotate(90deg);
  border: 2px solid #fff;
  border-radius: 50%;
  width: 20px; height: 20px;
  text-align: center;
  line-height: 16px;
}

.principal-card .info .city {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.principal-card .info .name {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.2;
}

/* cut‑out photo */
.principal-card img.photo {
  position: absolute;
  right: -20px;
  top: -40px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 2;
}

/* remove vertical stacking on mobile if desired */
@media(max-width: 600px) {
  .principal-card {
    flex-direction: column;
    padding-bottom: 2.5rem;
  }
  .principal-card .info {
    padding-right: 0;
    text-align: center;
  }
  .principal-card img.photo {
    position: static;
    transform: scale(0.9);
    margin: 1rem auto 0;
  }
}

/* Modal  Student Pop Up overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.modal-overlay.active {
  display: flex;
}

/* Modal content */
.modal-content {
  background: #f0f8ff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  overflow-y: auto;
  max-height: 90vh;
  position: relative;
  padding: 1.5rem;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Header: avatar + basic info */
.modal-header {
  display: flex;
  gap: 1.5rem;
  background: #e6f2fb;
  padding: 1rem;
  border-radius: 8px;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid #03709e;
}

.modal-info h2 {
  margin: 0;
  color: #03709e;
}
.modal-info p {
  margin: 0.2rem 0;
  color: #333;
}

/* Quote */
.modal-quote {
  font-style: italic;
  margin: 1rem 0;
  color: #555;
}

/* Sections grid */
.modal-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 1rem;
}

.modal-box {
  background: #e6f2fb;
  border-radius: 8px;
  padding: 0.8rem;
}
.modal-box h3 {
  background: #03709e;
  color: #fff;
  padding: 0.5rem;
  margin: -0.8rem -0.8rem 0.8rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  text-align: center;
}
.modal-box ul {
  list-style: disc inside;
  margin: 0;
  padding: 0;
}
.modal-box li {
  margin-bottom: 0.5rem;
  color: #333;
}







