/* ===========================
   TECHNOVA 2026 – Fresh Modern Design
   =========================== */

:root {
  /* TechNova 3.0 brand palette */
  --tn-blue: #0c77e2;
  --tn-navy: #0a2969;
  --tn-orange: #f16c28;
  --tn-blue-rgb: 12, 119, 226;
  --tn-navy-rgb: 10, 41, 105;
  --tn-orange-rgb: 241, 108, 40;

  --primary: var(--tn-blue);
  --primary-dark: var(--tn-navy);
  --primary-light: var(--tn-blue);
  --secondary: var(--tn-blue);
  --accent: var(--tn-orange);
  --accent-2: var(--tn-orange);
  --bg: #ffffff;
  --bg-2: rgba(var(--tn-blue-rgb), 0.06);
  --bg-dark: var(--tn-navy);
  --card: #ffffff;
  --text: var(--tn-navy);
  --text-muted: rgba(var(--tn-navy-rgb), 0.65);
  --text-light: rgba(var(--tn-navy-rgb), 0.45);
  --border: rgba(var(--tn-blue-rgb), 0.2);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --radius-sm: 12px;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 104px;
  --sub-nav-height: 48px;
  --header-height: calc(var(--nav-height) + var(--sub-nav-height));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--tn-blue) 0%, var(--tn-navy) 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(var(--tn-blue-rgb), 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--tn-blue-rgb), 0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

#navbar.scrolled {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-image {
  height: 82px;
  width: auto;
  display: block;
}

.school-logo-image {
  height: 76px;
  width: auto;
  display: block;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--tn-blue) 0%, var(--tn-navy) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.nav-links a {
  color: var(--tn-navy);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-dark);
  background: rgba(var(--tn-blue-rgb), 0.1);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(var(--tn-navy-rgb), 0.3);
}

.btn-nav::after {
  display: none !important;
}

.btn-nav:hover {
  background: var(--primary-dark);
  color: white !important;
}

/* Sub Navigation */
.sub-navbar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--tn-navy);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  min-height: var(--sub-nav-height);
  display: flex;
  align-items: center;
}

.sub-navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.sub-navbar-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

.sub-navbar a {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.sub-navbar a:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  background-color: rgba(var(--tn-blue-rgb), 0.04);
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 48px;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  background-image: url('TECHNOVA3.0 banner (1).svg');
}

.hero::after {
  display: none;
  background-image: url('TECHNOVA 3.0 mobile banner.svg');
}

#particleCanvas {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin-top: auto;
  padding: clamp(220px, 38vh, 420px) 24px 0;
}

.edition-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--primary-light);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--tn-navy);
  margin-bottom: 16px;
  line-height: 1.1;
  animation: titleFloat 5s ease-in-out infinite;
}

.neon-text {
  background: linear-gradient(120deg, var(--tn-blue) 0%, var(--tn-navy) 55%, var(--tn-orange) 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 6px 18px rgba(var(--tn-blue-rgb), 0.25);
  -webkit-text-stroke: 0;
  animation: neonShift 4.8s ease-in-out infinite, neonPulse 3.2s ease-in-out infinite;
}

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

@keyframes neonPulse {
  0%, 100% {
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55), 0 0 20px rgba(var(--tn-blue-rgb), 0.35);
  }
  50% {
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.58), 0 0 32px rgba(var(--tn-orange-rgb), 0.45);
  }
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Countdown */
.countdown-wrapper {
  margin-bottom: 40px;
}

.countdown-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.cd-block {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 20px 24px;
  min-width: 80px;
}

.cd-block span {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.cd-block label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.cd-sep {
  font-size: 2rem;
  color: var(--text-light);
  align-self: center;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(15, 23, 42, 0.45);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.technical-partner {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: auto;
  top: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.technical-partner p {
  margin: 6px 0 0;
  color: var(--tn-navy);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.technical-partner img {
  display: block;
  width: 130px;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(var(--tn-blue-rgb), 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
}

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

.accent {
  color: var(--tn-blue);
}

.hero .btn-ghost {
  color: var(--tn-navy);
  border-color: var(--tn-blue);
}

.hero .btn-ghost:hover {
  background: rgba(var(--tn-blue-rgb), 0.1);
  border-color: var(--tn-navy);
  color: var(--tn-navy);
}

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

.principal-message-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-text strong {
  color: var(--text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  background: white;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.about-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
}

.about-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ac-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--tn-blue) 0%, var(--tn-navy) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.about-card h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-photo-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.about-photo-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

/* Leadership Message Sections */
.principal-message-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}

.manager-aside {
  display: flex;
  justify-content: flex-end;
}

.manager-portrait {
  margin: 0;
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.manager-portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.manager-portrait figcaption {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Photo Highlights */
.highlights-section {
  background: var(--bg-2);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.highlight-item {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.highlight-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.highlight-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.highlight-item figcaption {
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

/* Editions Section */
.editions-section {
  background: var(--bg-2);
}

.editions-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.edition-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 900px;
  width: 100%;
  display: flex;
  gap: 30px;
  transition: all 0.3s ease;
}

.edition-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.edition-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
}

.glow-num {
  opacity: 1;
  background: linear-gradient(135deg, var(--tn-blue) 0%, var(--tn-navy) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.edition-year-badge {
  display: inline-block;
  background: rgba(var(--tn-blue-rgb), 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.upcoming-badge {
  background: rgba(var(--tn-orange-rgb), 0.1);
  color: var(--accent);
}

.edition-content h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 12px;
}

.edition-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.edition-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 16px;
}

.edition-stats > div {
  text-align: center;
}

.edition-stats span {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.edition-stats label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.edition-highlight {
  background: rgba(var(--tn-blue-rgb), 0.05);
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.edition-highlight span {
  color: var(--accent);
  font-weight: 600;
}

.edition-upcoming {
  border-color: var(--accent);
  background: rgba(var(--tn-orange-rgb), 0.03);
}

.timeline-connector {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, var(--tn-blue), var(--tn-navy));
  opacity: 0.3;
}

/* Events Section */
.events-section {
  background: var(--bg);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--clr, var(--primary));
}

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

.event-icon {
  width: 56px;
  height: 56px;
  background: rgba(var(--tn-blue-rgb), 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr, var(--primary));
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.event-card h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 12px;
}

.event-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.event-tag {
  display: inline-block;
  color: var(--clr, var(--primary));
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(var(--tn-blue-rgb), 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Prizes Section */
.prizes-section {
  background: var(--bg-2);
}

/* Event Schedule Section */
.event-schedule-section {
  background: var(--bg);
}

.event-schedule-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.event-schedule-head,
.event-schedule-row {
  display: grid;
  grid-template-columns: 1.1fr 2.4fr 1.1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
}

.event-schedule-head {
  background: linear-gradient(90deg, rgba(var(--tn-blue-rgb), 0.1), rgba(var(--tn-orange-rgb), 0.08));
  border-bottom: 1px solid var(--border);
}

.event-schedule-head span {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
}

.event-schedule-row {
  border-bottom: 1px solid var(--border);
}

.event-schedule-row p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.event-venue {
  padding: 20px 24px;
  background: rgba(var(--tn-blue-rgb), 0.05);
  color: var(--text);
  font-weight: 600;
}

/* General Guidelines Section */
.guidelines-section {
  background: var(--bg-2);
}

.guidelines-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}

.guideline-item {
  position: relative;
  padding-left: 26px;
}

.guideline-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
}

.guideline-item + .guideline-item {
  margin-top: 22px;
}

.guideline-item h4 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: var(--text);
}

.guideline-item p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.prizes-showcase {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.prize-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  width: 280px;
  transition: all 0.3s ease;
}

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

.prize-gold {
  border-color: var(--accent);
  background: rgba(var(--tn-orange-rgb), 0.03);
  width: 320px;
  transform: translateY(-20px);
}

.prize-gold:hover {
  transform: translateY(-28px);
}

.prize-silver {
  border-color: var(--tn-blue);
}

.prize-bronze {
  border-color: var(--tn-orange);
}

.prize-medal {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.prize-position {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prize-gold .prize-position {
  color: var(--accent);
}

.prize-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 24px;
}

.prize-gold .prize-amount {
  color: var(--accent);
}

.prize-perks {
  list-style: none;
  text-align: left;
}

.prize-perks li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.prize-perks li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

.special-awards {
  text-align: center;
}

.special-awards h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 30px;
}

.sa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.sa-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
}

.sa-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.sa-item span {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--tn-blue) 0%, var(--tn-navy) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sa-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
}

/* Gallery Section */
.gallery-section {
  background: var(--bg);
  overflow: hidden;
}

.gallery-marquee {
  margin-bottom: 60px;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.gal-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  min-width: 180px;
  transition: all 0.3s ease;
}

.gal-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.gal-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.test-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: all 0.3s ease;
}

.test-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.test-card > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tn-blue) 0%, var(--tn-navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.test-author strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.test-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Register Section */
.register-section {
  background: var(--bg-2);
}

.register-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.register-text > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 16px 0 32px;
}

.reg-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reg-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.rd-icon {
  width: 44px;
  height: 44px;
  background: rgba(var(--tn-blue-rgb), 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.reg-detail strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.reg-detail p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-card h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--tn-blue-rgb), 0.1);
}

input::placeholder {
  color: var(--text-light);
}

.btn-form {
  width: 100%;
  justify-content: center;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.contact-item {
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-item a {
  color: var(--primary);
  font-weight: 500;
}

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

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

.social-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.map-placeholder {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 4rem;
  transition: all 0.3s ease;
}

.map-placeholder:hover {
  border-color: var(--primary);
}

.map-placeholder p {
  font-size: 1rem;
  text-align: center;
  line-height: 1.6;
}

.map-embed {
  width: 100%;
  height: 350px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .nav-logo {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-logo-image {
  height: 112px;
  width: auto;
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-partner {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-partner span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-partner img {
  width: 130px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.footer-partner a:hover img {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal h3 {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.modal p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.7;
}

/* Image Lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px;
}

.image-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.image-lightbox img {
  max-width: min(95vw, 1100px);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Animations */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .container,
  .nav-inner,
  .sub-navbar-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    padding: 7px 8px;
    font-size: 0.88rem;
  }

  .btn-nav {
    padding: 9px 14px;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principal-message-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .message-layout {
    grid-template-columns: 1fr;
  }

  .manager-aside {
    justify-content: flex-start;
  }

  .register-inner {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container,
  .nav-inner,
  .sub-navbar-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  :root {
    --nav-height: 88px;
    --sub-nav-height: 48px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 86vw);
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 40px;
    gap: 20px;
    transition: right 0.35s ease;
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .brand-logo-image {
    height: 56px;
  }

  .school-logo-image {
    height: 50px;
  }

  .btn-nav {
    display: inline-block;
  }

  .hamburger {
    display: flex;
  }

  .sub-navbar-inner {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 16px;
    gap: 16px;
  }

  .hero {
    display: block;
    min-height: calc(var(--header-height) + 143vw);
    padding: 0;
    padding-bottom: 20px;
    overflow: visible;
  }

  .hero::before {
    display: none;
  }

  .hero::after {
    display: block;
    top: var(--header-height);
    bottom: auto;
    height: 143vw;
    background-size: 100% 100%;
    background-position: center top;
  }

  .hero-content {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--header-height) + 58vw);
    margin: 0 auto;
    padding: 0 12px;
    z-index: 2;
  }

  .countdown-wrapper {
    margin-top: 0;
    margin-bottom: 16px;
  }

  .hero-cta {
    margin-bottom: 0;
  }

  .scroll-indicator {
    display: none;
  }

  .technical-partner {
    position: absolute;
    top: calc(var(--header-height) + 8px);
    right: 10px;
    left: auto;
    bottom: auto;
    z-index: 2;
    margin: 0;
  }

  .technical-partner img {
    width: 72px;
  }

  .technical-partner p {
    font-size: 0.58rem;
    padding: 4px 7px;
    margin-top: 4px;
    letter-spacing: 0.05em;
  }

  .countdown {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .cd-sep {
    display: none;
  }

  .cd-block {
    min-width: 70px;
    padding: 16px 12px;
  }

  .cd-block span {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    width: 100%;
    max-width: 320px;
  }

  .about-card-grid {
    grid-template-columns: 1fr;
  }

  .highlight-item img {
    height: 200px;
  }

  .edition-card {
    flex-direction: column;
    gap: 20px;
  }

  .edition-num {
    font-size: 2rem;
  }

  .edition-stats {
    flex-wrap: wrap;
  }

  .prizes-showcase {
    flex-direction: column;
    align-items: center;
  }

  .prize-gold {
    transform: none;
    width: 100%;
    max-width: 320px;
  }

  .event-schedule-head,
  .event-schedule-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }

  .event-schedule-head {
    display: none;
  }

  .event-schedule-row p:first-child {
    font-weight: 700;
    color: var(--text);
  }

  .event-venue {
    padding: 16px;
    font-size: 0.95rem;
  }

  .guidelines-card {
    padding: 20px 16px;
  }

  .guideline-item {
    padding-left: 20px;
  }

  .guideline-item h4 {
    font-size: 1.05rem;
  }

  .guideline-item p {
    font-size: 0.95rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 34px;
  }

  .section-desc {
    font-size: 0.97rem;
  }

  .about-text p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .contact-item {
    align-items: flex-start;
    line-height: 1.6;
    word-break: break-word;
  }

  .map-embed,
  .map-placeholder {
    height: 280px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 34px;
  }

  .footer-partner {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container,
  .nav-inner,
  .sub-navbar-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  :root {
    --nav-height: 80px;
    --sub-nav-height: 44px;
  }

  .sub-navbar a {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .countdown {
    gap: 8px;
  }

  .cd-block {
    min-width: 60px;
    padding: 14px 10px;
  }

  .cd-block span {
    font-size: 1.5rem;
  }

  .technical-partner {
    top: calc(var(--header-height) + 6px);
    right: 8px;
    left: auto;
    bottom: auto;
  }

  .technical-partner p {
    margin-top: 3px;
    font-size: 0.52rem;
    padding: 3px 6px;
  }

  .technical-partner img {
    width: 62px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-content {
    top: calc(var(--header-height) + 56vw);
    padding: 0 10px;
  }

  .btn-primary,
  .btn-ghost {
    padding: 12px 18px;
    font-size: 0.85rem;
  }

  .contact-info h3 {
    font-size: 1.45rem;
  }

  .footer-logo-image {
    height: 90px;
  }

  .form-card {
    padding: 24px;
  }
}
