:root {
  color-scheme: dark;

  --bg-primary: #0a0e27;
  --bg-secondary: rgba(15, 20, 40, 0.85);
  --bg-card: rgba(25, 30, 55, 0.7);
  --text-primary: #e8eaf6;
  --text-secondary: #7c4dff;
  --text-muted: #9fa8da;
  --accent-primary: #7c4dff;
  --accent-secondary: #536dfe;
  --accent-tertiary: #448aff;
  --accent-gold: #ffd740;
  --border-color: rgba(124, 77, 255, 0.3);
  --shadow-color: rgba(124, 77, 255, 0.4);
  --navbar-bg: rgba(10, 14, 39, 0.95);
}

body.light-mode {
  --bg-primary: #f5f7fa;
  --bg-secondary: rgba(255, 255, 255, 0.95);
  --bg-card: rgba(248, 249, 252, 0.9);
  --text-primary: #1a237e;
  --text-secondary: #5e35b1;
  --text-muted: #7986cb;
  --accent-primary: #5e35b1;
  --accent-secondary: #3949ab;
  --accent-tertiary: #1e88e5;
  --accent-gold: #ffa000;
  --border-color: rgba(94, 53, 177, 0.3);
  --shadow-color: rgba(94, 53, 177, 0.2);
  --navbar-bg: rgba(255, 255, 255, 0.98);
}

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

body {
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
  transition:
    background 0.4s ease,
    color 0.4s ease;
  line-height: 1.6;
  overflow-x: hidden;
}

#canvas3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
}

body.light-mode #canvas3d {
  opacity: 0.15;
}

/* Results Card Layout */
.results-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.res-category-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(15px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.res-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-color);
  border-color: var(--accent-primary);
}

.res-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.res-card-icon {
  font-size: 2rem;
}

.res-card-header h3 {
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin: 0;
}

.res-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.res-list-wrapper h4 {
  font-size: 0.85rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.res-list-wrapper ol {
  padding-left: 18px;
  list-style: decimal;
}

.res-list-wrapper li {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.3;
}

/* Specific styling for Top 3 rankings if desired */
.res-list-wrapper li:nth-child(1) {
  color: var(--accent-gold);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .results-grid-cards {
    grid-template-columns: 1fr; /* Stack on smaller tablets */
  }
}

@media (max-width: 480px) {
  .res-split {
    grid-template-columns: 1fr; /* Stack Online/Offline on mobile */
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 20px 40px;
  box-shadow: 0 2px 20px var(--shadow-color);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-tertiary),
    var(--accent-gold)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* =====================
   RESULTS BANNER (Hero)
   ===================== */
.results-banner {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 64, 0.18),
    rgba(255, 160, 0, 0.12)
  );
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  padding: 28px 35px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 40px rgba(255, 215, 64, 0.2),
    0 0 0 1px rgba(255, 215, 64, 0.1);
  animation: pulse-gold 2.5s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%,
  100% {
    box-shadow:
      0 10px 40px rgba(255, 215, 64, 0.2),
      0 0 0 1px rgba(255, 215, 64, 0.1);
  }
  50% {
    box-shadow:
      0 10px 55px rgba(255, 215, 64, 0.4),
      0 0 0 3px rgba(255, 215, 64, 0.2);
  }
}

.results-banner-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.results-banner-header strong {
  color: var(--accent-gold);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.results-trophy {
  font-size: 1.8rem;
}

.results-banner-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Mode label inside banner */
.results-mode-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  margin-bottom: 10px;
  margin-top: 18px;
  opacity: 0.85;
}

.results-mode-label-online {
  color: #38bdf8;
}

.results-btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 4px;
}

.result-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

/* Offline button variants */
.result-btn-subjunior {
  background: linear-gradient(135deg, #7b2ff7, #4c1d95);
  box-shadow: 0 6px 20px rgba(123, 47, 247, 0.4);
}
.result-btn-subjunior:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(123, 47, 247, 0.6);
}

.result-btn-junior {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}
.result-btn-junior:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.6);
}

.result-btn-senior {
  background: linear-gradient(135deg, #10b981, #065f46);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.result-btn-senior:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.6);
}

/* Online button variants — tinted with cyan glow */
.result-btn-subjunior-online {
  background: linear-gradient(135deg, #6d28d9, #0e7490);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}
.result-btn-subjunior-online:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.55);
}

.result-btn-junior-online {
  background: linear-gradient(135deg, #0284c7, #0f766e);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
}
.result-btn-junior-online:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20, 184, 166, 0.55);
}

.result-btn-senior-online {
  background: linear-gradient(135deg, #0891b2, #166534);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}
.result-btn-senior-online:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.55);
}

/* ============================
   RESULTS SECTION (full block)
   ============================ */
.results-section {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 64, 0.06),
    rgba(124, 77, 255, 0.06)
  ) !important;
  border-top: 3px solid var(--accent-gold);
  border-bottom: 3px solid var(--accent-gold);
}

/* ---------- Tab switcher ---------- */
.results-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.results-tab {
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.results-tab:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.results-tab.active {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-tertiary)
  );
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px var(--shadow-color);
}

/* Tab content visibility */
.results-tab-content {
  display: none;
}

.results-tab-content.active {
  display: block;
  animation: fadeInUp 0.35s ease;
}

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

/* ---------- Result cards ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  margin-bottom: 30px;
}

.result-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 35px 28px;
  text-align: center;
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.result-card:hover {
  transform: translateY(-10px);
}

/* Offline card borders */
.result-card-subjunior {
  border: 2px solid rgba(123, 47, 247, 0.5);
}
.result-card-subjunior:hover {
  box-shadow: 0 20px 50px rgba(123, 47, 247, 0.35);
  border-color: #7b2ff7;
}

.result-card-junior {
  border: 2px solid rgba(14, 165, 233, 0.5);
}
.result-card-junior:hover {
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.35);
  border-color: #0ea5e9;
}

.result-card-senior {
  border: 2px solid rgba(16, 185, 129, 0.5);
}
.result-card-senior:hover {
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.35);
  border-color: #10b981;
}

/* Online card borders — cyan-tinted variants */
.result-card-subjunior-online {
  border: 2px solid rgba(109, 40, 217, 0.45);
}
.result-card-subjunior-online:hover {
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
}

.result-card-junior-online {
  border: 2px solid rgba(2, 132, 199, 0.45);
}
.result-card-junior-online:hover {
  box-shadow: 0 20px 50px rgba(20, 184, 166, 0.3);
  border-color: #14b8a6;
}

.result-card-senior-online {
  border: 2px solid rgba(8, 145, 178, 0.45);
}
.result-card-senior-online:hover {
  box-shadow: 0 20px 50px rgba(34, 197, 94, 0.3);
  border-color: #22c55e;
}

.result-card-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.result-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.result-card-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.result-download-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-tertiary)
  );
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 5px 18px var(--shadow-color);
}

.result-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px var(--shadow-color);
}

/* Online download button — cyan gradient */
.result-download-btn-online {
  background: linear-gradient(135deg, #0284c7, #0f766e);
  box-shadow: 0 5px 18px rgba(14, 116, 144, 0.35);
}

.result-download-btn-online:hover {
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.55);
}

.results-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 24px;
  background: rgba(255, 215, 64, 0.08);
  border: 1px solid rgba(255, 215, 64, 0.3);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.results-note span:first-child {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* =============================
   REGISTRATION CLOSED (notice)
   ============================= */
.registration-closed-notice {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.12),
    rgba(185, 28, 28, 0.08)
  ) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15) !important;
}

.registration-closed-notice strong {
  color: #f87171 !important;
}

.registration-closed-box {
  padding: 50px 30px;
  text-align: center;
}

.closed-icon {
  font-size: 4rem;
  margin-bottom: 18px;
}

.closed-title {
  font-size: 2rem;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 12px;
}

.closed-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.closed-sub {
  font-size: 1rem;
  color: var(--text-muted);
}

.closed-sub a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--accent-gold);
  transition: all 0.3s ease;
}

.closed-sub a:hover {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* ====================
   REST OF ORIGINAL CSS
   ==================== */

.primer-desc {
  line-height: 1.7;
  font-size: 1rem;
}

.camp-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 35px;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.camp-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.camp-icon {
  font-size: 3rem;
}

.camp-title {
  font-size: 1.8rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 5px;
}

.camp-date {
  font-size: 1.2rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.camp-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 14px;
  background: rgba(124, 77, 255, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(124, 77, 255, 0.15);
  transform: translateX(10px);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text {
  font-size: 1rem;
  line-height: 1.5;
}

.camp-note {
  padding: 18px;
  background: linear-gradient(
    135deg,
    rgba(124, 77, 255, 0.1),
    rgba(68, 138, 255, 0.1)
  );
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.rule-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  padding: 25px;
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
}

.rule-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-color);
}

.rule-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.rule-title {
  font-size: 1.3rem;
  color: var(--accent-primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.rule-list {
  list-style: none;
  padding: 0;
}

.rule-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
}

.rule-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-tertiary);
  font-size: 1.4rem;
}

.registration-box {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 50px;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.form-btn-container {
  margin-top: 20px;
}

.footer {
  position: relative;
  background: var(--navbar-bg);
  border-top: 2px solid var(--border-color);
  padding: 60px 20px 30px;
  z-index: 100;
  overflow: hidden;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  margin-bottom: 5px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-tertiary),
    var(--accent-gold)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-heading {
  font-size: 1.2rem;
  color: var(--accent-primary);
  margin-bottom: 15px;
  font-weight: 700;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-links li {
  margin-bottom: 10px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-links a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.contact-icon {
  font-size: 1.2rem;
}

.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-social span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 77, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.footer-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.1;
}

.decoration-symbol {
  position: absolute;
  font-size: 6rem;
  color: var(--accent-primary);
  font-weight: 300;
  animation: float 20s infinite ease-in-out;
}

.decoration-symbol:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.decoration-symbol:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}
.decoration-symbol:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}
.decoration-symbol:nth-child(4) {
  bottom: 20%;
  right: 25%;
  animation-delay: 6s;
}
.decoration-symbol:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: 8s;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.nav-link:hover {
  color: var(--accent-primary);
  background: rgba(124, 77, 255, 0.1);
}

.dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--navbar-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 0;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 12px 24px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-link:hover {
  color: var(--accent-primary);
  background: rgba(124, 77, 255, 0.15);
}

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 150px 20px 80px;
  z-index: 10;
  position: relative;
}

.hero-content {
  max-width: 900px;
}

.hero-super {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  font-weight: 600;
}

.hero-title {
  font-size: 6rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-tertiary),
    var(--accent-gold)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 40px;
}

.hero-prize {
  margin: 40px 0;
}

.prize-highlight {
  background: linear-gradient(
    135deg,
    rgba(124, 77, 255, 0.15),
    rgba(68, 138, 255, 0.15)
  );
  border: 2px solid var(--accent-primary);
  border-radius: 15px;
  padding: 25px 40px;
  backdrop-filter: blur(10px);
  font-size: 1.1rem;
  line-height: 1.8;
}

.prize-highlight strong {
  color: var(--accent-primary);
  font-size: 1.3rem;
}

.prize-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.quick-link-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-block;
  padding: 18px 45px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border-radius: 50px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  margin: 10px 20px;
}

.important-notice {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 64, 0.15),
    rgba(255, 160, 0, 0.1)
  );
  border: 2px solid var(--accent-gold);
  border-radius: 15px;
  padding: 20px 30px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(255, 215, 64, 0.15);
}

.important-notice strong {
  color: var(--accent-gold);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 8px;
}

/* View Results Button */
.btn-results {
  background: linear-gradient(135deg, #d97706, #92400e);
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.5);
}

.btn-results:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(217, 119, 6, 0.7);
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

/* View Past Papers Button */
.btn-past-papers {
  background: linear-gradient(135deg, #0e7490, #0284c7);
  box-shadow: 0 8px 30px rgba(14, 116, 144, 0.5);
}

.btn-past-papers:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(14, 116, 144, 0.7);
  background: linear-gradient(135deg, #0891b2, #0369a1);
}

.page-section {
  padding: 80px 20px;
  z-index: 10;
  position: relative;
}

.page-section:nth-child(2n-1) {
  background: var(--bg-secondary);
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-tertiary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.about-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 70px var(--shadow-color);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.info-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px var(--shadow-color);
  border-color: var(--accent-primary);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.info-title {
  font-size: 1.4rem;
  color: var(--accent-primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.info-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.syllabus-link {
  display: inline-block;
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.syllabus-link:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
}

.quick-info-section {
  padding: 60px 20px;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.quick-info-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.quick-info-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.quick-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.quick-info-card h3 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quick-info-card p {
  font-size: 1.2rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.syllabus-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  padding: 25px;
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.syllabus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-color);
  border-color: var(--accent-primary);
}

.syllabus-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.syllabus-icon {
  font-size: 2rem;
}

.syllabus-topic {
  font-size: 1.2rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.topic-list {
  list-style: none;
  padding: 0;
}

.topic-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
}

.topic-list li::before {
  content: "∑";
  position: absolute;
  left: 0;
  color: var(--accent-tertiary);
  font-size: 1.2rem;
  font-weight: bold;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  padding-left: 50px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--accent-primary),
    var(--accent-tertiary)
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInRight 0.6s ease forwards;
  animation-delay: calc(0.1s * var(--item-index, 1));
}

.timeline-marker {
  position: absolute;
  left: -37px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 20px var(--shadow-color);
}

.timeline-item.highlight .timeline-marker {
  width: 26px;
  height: 26px;
  left: -40px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-gold)
  );
}

.timeline-content {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 40px var(--shadow-color);
}

.timeline-title {
  font-size: 1.2rem;
  color: var(--accent-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.timeline-date {
  font-size: 1rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.exam-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.exam-mode-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
}

.exam-mode-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow-color);
}

.mode-header {
  margin-bottom: 25px;
}

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.mode-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.mode-badge {
  display: inline-block;
  padding: 6px 15px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-tertiary)
  );
  color: #fff;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.mode-details {
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(124, 77, 255, 0.08);
  border-radius: 8px;
  gap: 50%;
}

.detail-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.mode-info {
  background: rgba(83, 109, 254, 0.1);
  border: 1px solid var(--accent-secondary);
  border-radius: 10px;
  padding: 18px;
}

.mode-info h4 {
  font-size: 1.1rem;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}

.mode-info ul {
  list-style: none;
  padding: 0;
}

.mode-info li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.9rem;
}

.mode-info li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-tertiary);
  font-weight: bold;
}

.registration-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.reg-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
}

.reg-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-color);
}

.reg-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.reg-title {
  font-size: 1.4rem;
  color: var(--accent-primary);
  margin-bottom: 18px;
  font-weight: 700;
}

.fee-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fee-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: rgba(124, 77, 255, 0.08);
  border-radius: 8px;
}

.fee-item strong {
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.reg-modes {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.reg-mode {
  padding: 12px;
  background: rgba(124, 77, 255, 0.08);
  border-radius: 8px;
}

.reg-mode strong {
  color: var(--accent-primary);
  display: block;
  margin-bottom: 5px;
}

.reg-mode p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.reg-note {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 215, 64, 0.1);
  border-left: 3px solid var(--accent-gold);
  border-radius: 6px;
}

.poster-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.poster-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 18px var(--shadow-color);
}

.poster-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px var(--shadow-color);
}

.poster-placeholder {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.registration-title {
  font-size: 1.6rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 20px 60px;
    min-height: 90vh;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

  .page-section {
    padding: 60px 20px;
  }

  .about-card {
    padding: 30px 20px;
  }

  .info-grid,
  .syllabus-grid,
  .exam-modes,
  .registration-info,
  .rules-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .quick-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    padding-left: 40px;
  }

  .timeline-marker {
    left: -32px;
  }

  .exam-mode-card,
  .reg-card,
  .rule-card {
    padding: 25px 20px;
  }

  .camp-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .registration-box {
    padding: 30px 20px;
  }

  .results-banner {
    padding: 22px 18px;
  }

  .results-banner-header strong {
    font-size: 1.2rem;
  }

  .results-btn-row {
    flex-direction: column;
    align-items: center;
  }

  .results-tabs {
    flex-direction: column;
    align-items: center;
  }

  .results-tab {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 450px) {
  .detail-row {
    gap: 20%;
  }
}
