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

/* Header styles */

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(33, 211, 224, 0.7);
}
.back-btn {
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.back-btn:hover {
  transform: translateX(-5px);
  color: #03709E;
}

/* 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(82, 113, 236, 0.8), rgba(217, 81, 81, 0.8));
  z-index: 1;
}
   */
.hero {
  background: url('../img/banner/b1.png') center center no-repeat;
  background-size: cover;
  height: 500px; /* ✅ Set fixed height here */
  position: relative;
  overflow: hidden;
  /* margin-bottom: 40px; */
}


/* Gradient overlay for better readability */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); */
  z-index: 1;
}

/* Ensure content appears above the overlay */
.hero * {
  position: relative;
  z-index: 2;
}

/* .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  color: white;
} */
.hero-content {
  position: absolute;
  bottom: 110px;               /* Push button to bottom */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}

.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, #03709E, #5bb9e1);
  color: #fff;
  border: none;
  padding: 14px 40px;
  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);
}

.gray-light-bg{
    background: #f7f7f7;
}
.primary-bg{
    background: #3264f5;
}
.secondary-bg{
    background: #6a06ad;
}
.color-primary{
    color: #3264f5;
}
.color-secondary{
    color: #7202bb
}
.gradient-bg{
    background-image: linear-gradient(to left, #3264f5, #4a54e8, #5b42db, #682ccb, #7202bb) !important;
}

/* Category cards section */
.cards-section {
  padding: 2rem;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fcfcfc;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.cards-container {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: #1086b9 #e3e8f8;
}
.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, #03709E, #36abdd);
  border-radius: 10px;
}
.cards-container::-webkit-scrollbar-thumb:hover {
  background: #03709E;
}


.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.75));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 1rem;
  text-align: center;
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.card-sub {
  font-size: 0.95rem;
  opacity: 0.9;
}


/* Hall of Fame student grid */
.hall-of-fame {
  max-width: 1300px;
  margin: 3rem auto;
  background: #fff;
  color: #383636;
  border-radius: 12px;
  padding: 40px;
  overflow: visible;
  padding-top: 10px;
  padding-bottom: 10px;
}
.hof-header {
  text-align: center;
  margin-bottom: 30px;
}
.hof-header h2 {
  font-size: 2rem;
  color: #dceaef;
}
.hof-header p {
  font-size: 1rem;
  color: #fff5f5;
}
.hof-header h4 {
  font-size: 1rem;
  color: #fff9f9;
}
.hof-layout {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  /* max-width: 1440px; */
  margin: auto;
}

.hof-sidebar {
  width: 240px;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hof-sidebar input,
.hof-sidebar select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.hof-main {
  position: relative;
  padding: 2rem 1rem;
}

.hof-main::before {
  content: "";
  position: absolute;
  top: 25%;
  width: 200px;
  height: 480px;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
}

.hof-main::before {
  left: -129px;
  background-image: url('../img/banner/b3.png');
}

/* .hof-main::after {
  right: -40px;
  background-image: url('../img/banner/b4.png');
} */

.cards-container {
  position: relative;
  z-index: 1; /* Ensure cards show above the background people */
}
@media (max-width: 768px) {
  .hof-main::before,
  .hof-main::after {
    display: none;
  }
}


.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.role-tabs button {
  flex: 1;
  background: #e0e0e0;
  padding: 0.6rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.hof-content {
  flex: 1;
}

.hof-banner {
  position: relative;
  width: 100%;
  /* height: 250px; */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.hof-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-title {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.banner-title h2 {
  font-size: 2.5rem;
}
.banner-title p {
  font-size: 1.1rem;
}


/*  select  */



.filter-column {
  display: flex;
  gap: 0.2rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #03709E;
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid #03709E;
  border-radius: 6px;
  background: #fff;
  font-size: 0.9rem;
}

.cards-container.grid {
  display: grid;
  grid-template-columns: repeat(5, 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: 2px;
  left: 2px;
  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: #03709E;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
#seeMoreBtn:hover {
  background: #57b9e3;
}

#clearFilters {
  margin-top: 2px;
  padding: 10px 14px;
  background-color: #03709E;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#clearFilters:hover {
  background-color: #02597c;
}

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

/* 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: #fffefe;
  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;
  padding-top: 20px;
  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: 0px;
  width: 120px;
  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 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 */


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

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

}

.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;
}

.badge-list span {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 8px 12px;
  border: 2px solid #03709E;
  border-radius: 6px;
  text-align: center;
  color: #03709E;
  font-weight: 500;
  background: #fff;
  box-sizing: border-box;
}


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

/* Sections grid */
.modal-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px,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;
}
/* new add */
.modal-right {
  flex: .5;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-top {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.modal-left {
  background: #e9f5fc;
  flex: 1;
  text-align: center;
  border-radius: 10px;
  padding: 1rem;
}

/* Bottom section */
.modal-bottom {
  display: flex;
  gap: 1rem;
}

.achievement-box,
.interest-box {
  flex: 1;
}

.modal-achievements,
.modal-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-achievements span,
.modal-interests span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #03709E;
  border-radius: 12px;
  color: #03709E;
  background: #fff;
  font-size: 0.85rem;
}


.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

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

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  z-index: 100;
}


 
        .subtitle {
            font-size: 0.8rem;
            opacity: 0.8;
        }
        
        .app-container {
            display: flex;
            flex: 1;
            position: relative;
            overflow: hidden;
        }
        
        .editor-panel {
            flex: 0 0 100%;
            padding: 12px;
            display: flex;
            flex-direction: column;
            transition: transform 0.4s ease-in-out;
            overflow: hidden;
        }
        
        .equation-display {
            background: rgba(0, 0, 0, 0.25);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
            font-size: 1.2rem;
            font-family: 'Cambria Math', serif;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .coeff-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 12px;
            color: black;
        }
        
      
        
        .input-group label {
            margin-bottom: 6px;
            font-size: 1rem;
            color: #6b1dca;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .input-group input {
            padding: 10px;
            border-radius: 8px;
            border: none;
            background: rgba(255, 255, 255, 0.12);
            color: black;
            font-size: 0.9rem;
            border: 1px solid rgba(100, 181, 246, 0.3);
            transition: all 0.3s ease;
            width: 100%;
        }
        
        .input-group input:focus {
            outline: none;
            border-color: #64b5f6;
            background: rgba(100, 181, 246, 0.15);
            box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
        }
        
        .input-group input::-webkit-inner-spin-button,
        .input-group input::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        
        .input-group input[type=number] {
            -moz-appearance: textfield;
        }
        
        .graph-btn {
            background: linear-gradient(45deg, #2196f3, #7c4dff);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
            margin-bottom: 12px;
        }
        
        .graph-btn:active {
            transform: translateY(2px);
            box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
        }
        
        .instructions {
            background: rgba(100, 181, 246, 0.15);
            border-radius: 10px;
            padding: 12px;
            border: 1px solid rgba(100, 181, 246, 0.3);
            margin-bottom: 8px;
            overflow-y: auto;
            max-height: 25vh;
            font-size: 0.8rem;
        }
        
        .instructions h3 {
            margin-bottom: 8px;
            color: #bb86fc;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.9rem;
        }
        
        .instructions ul {
            padding-left: 12px;
        }
        
        .instructions li {
            margin-bottom: 6px;
            line-height: 1.3;
        }
        
        .instructions .highlight {
            background: rgba(255, 255, 255, 0.15);
            padding: 1px 4px;
            border-radius: 3px;
            font-weight: 600;
            color: #64b5f6;
        }
        
        .input-header {
            grid-column: span 2;
            text-align: center;
            margin-bottom: 4px;
            color: #64b5f6;
            font-size: 0.8rem;
        }
        
        .graph-panel {
            position: absolute;
            top: 0;
            right: -100%;
            width: 100%;
            height: 100%;
            background: rgba(20, 20, 40, 0.98);
            border-left: 1px solid rgba(100, 181, 246, 0.3);
            padding: 12px;
            display: flex;
            flex-direction: column;
            transition: right 0.3s ease-in-out;
            overflow: hidden;
        }
        
        .graph-panel.active {
            right: 0;
        }
        
        .graph-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(100, 181, 246, 0.3);
        }
        
        .back-btn {
            background: #ff4081;
            color: white;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .back-btn:active {
            transform: scale(0.95);
            background: #f50057;
        }
        
        #graph-canvas {
            background: rgba(0, 0, 30, 0.4);
            border-radius: 10px;
            width: 100%;
            flex: 1;
            border: 1px solid rgba(100, 181, 246, 0.2);
        }
        
        @media (orientation: landscape) {
            .app-container {
                flex-direction: row;
            }
            
            .editor-panel {
                flex: 0 0 50%;
                padding: 12px;
            }
            
            .graph-panel {
                position: relative;
                right: 0;
                transform: translateX(100%);
                flex: 0 0 50%;
            }
            
            .graph-panel.active {
                transform: translateX(0);
            }
            
            .instructions {
                max-height: none;
            }
        }