/* ============================================================
   NAVBAR — Logo left | Menu center | Partner logos right
   ============================================================ */

/* 3-column grid: logo | links | actions */
.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

/* Remove the old flex-based nav-right wrapper styles */
.nav-right {
  display: contents;
}

/* ── Transparent navbar (default — over hero slider) ─────── */
.navbar {
  background: transparent !important;
  box-shadow: none !important;
}

/* Scrolled: restore white background */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 32px rgba(84, 0, 12, 0.06) !important;
}

/* ── Left: logo image ─────────────────────────────────────── */
.nav-logo {
  justify-self: start;
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  min-width: 60px;
}

.nav-logo-img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: opacity 0.35s ease;
  display: block;
}

/* Transparent: show light (6.svg), hide dark (2.png) */
.nav-logo-light { opacity: 1; pointer-events: auto; }
.nav-logo-dark  { opacity: 0; pointer-events: none; }

/* Scrolled: show dark, hide light */
.navbar.scrolled .nav-logo-light { opacity: 0; pointer-events: none; }
.navbar.scrolled .nav-logo-dark  { opacity: 1; pointer-events: auto; }

.nav-logo:hover .nav-logo-img { opacity: 0.82 !important; }

/* ── Center: nav links ────────────────────────────────────── */
.nav-links {
  justify-self: center;
  position: static !important;
  left: auto !important;
  transform: none !important;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 6px 12px;
  border-radius: 50px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Transparent state: white nav link text */
.nav-links a {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.3s ease, background 0.3s ease !important;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff !important;
}

/* Scrolled state: restore dark text */
.navbar.scrolled .nav-links a {
  color: var(--steel) !important;
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--black) !important;
}

/* Scrolled: pill glass effect */
.navbar.scrolled .nav-links {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(84, 0, 12, 0.06);
  padding: 8px 14px;
}

/* ── Right: partner logos + hamburger ────────────────────── */
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-partner-logos {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
}

/* Each set is a flex row of logos, stacked on top of each other */
.npl-set {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.35s ease;
}

.npl-dark {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

/* Transparent: light set visible */
.npl-light { opacity: 1; pointer-events: auto; }

/* Scrolled: swap sets */
.navbar.scrolled .npl-light { opacity: 0; pointer-events: none; }
.navbar.scrolled .npl-dark  { opacity: 1; pointer-events: auto; }

.nav-partner-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-partner-logo:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Hamburger: white lines when transparent, dark when scrolled */
.hamburger span {
  background: #fff;
  transition: background 0.3s ease;
}

.navbar.scrolled .hamburger span {
  background: var(--black);
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .nav-logo { height: 44px; }
  .nav-logo-img { height: 44px; }
  .nav-partner-logos { height: 44px; }
  .nav-partner-logo { height: 30px; }

  .nav-links a {
    padding: 7px 9px;
    font-size: 0.82rem;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Switch to 2-column: logo | hamburger */
  .nav-container {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .nav-logo { height: 38px; }
  .nav-logo-img { height: 38px; }

  /* Dropdown menu */
  .nav-links {
    display: none !important;
    position: fixed !important;
    top: var(--nav-h, 64px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    flex-direction: column;
    padding: 10px 0 16px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 999;
    gap: 0;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-links a {
    display: block;
    padding: 11px 24px;
    width: 100%;
    font-size: 0.9rem;
  }

  /* Hide partner logos on mobile */
  .nav-partner-logos {
    display: none;
  }

  /* Show hamburger */
  .hamburger {
    display: flex !important;
  }
}

/* ============================================================
   RESPONSIVE — Small mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .nav-logo { height: 32px; }
  .nav-logo-img { height: 32px; }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #0d1117;
}

/* ── Each slide ─────────────────────────────────────────────── */
.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hs-slide.hs-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Background image with Ken Burns zoom ───────────────────── */
.hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 7s ease;
  will-change: transform;
}

.hs-slide.hs-active .hs-bg {
  transform: scale(1);
}

/* ── Dark gradient overlays ─────────────────────────────────── */
.hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 4, 6, 0.82) 0%,
    rgba(13, 4, 6, 0.55) 55%,
    rgba(13, 4, 6, 0.18) 100%
  );
}

.hs-overlay-teal {
  background: linear-gradient(
    105deg,
    rgba(10, 20, 30, 0.85) 0%,
    rgba(10, 20, 30, 0.55) 55%,
    rgba(10, 20, 30, 0.15) 100%
  );
}

.hs-overlay-deep {
  background: linear-gradient(
    105deg,
    rgba(5, 8, 20, 0.88) 0%,
    rgba(5, 8, 20, 0.58) 55%,
    rgba(5, 8, 20, 0.18) 100%
  );
}

/* ── Slide content — bottom-left ────────────────────────────── */
.hs-content {
  position: absolute;
  bottom: 13%;
  left: 7%;
  max-width: 640px;
  z-index: 2;
  color: #fff;
}

/* Entrance animation — resets on every slide activation */
.hs-slide.hs-active .hs-tag     { animation: hs-fade-up 0.7s 0.1s both ease; }
.hs-slide.hs-active .hs-title   { animation: hs-fade-up 0.7s 0.25s both ease; }
.hs-slide.hs-active .hs-subtitle{ animation: hs-fade-up 0.7s 0.4s both ease; }
.hs-slide.hs-active .hs-stats   { animation: hs-fade-up 0.7s 0.52s both ease; }
.hs-slide.hs-active .hs-btns    { animation: hs-fade-up 0.7s 0.64s both ease; }

@keyframes hs-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tag pill ───────────────────────────────────────────────── */
.hs-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--yellow);
  color: var(--black);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}

/* ── Title ──────────────────────────────────────────────────── */
.hs-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 18px;
}

.hs-title span {
  color: var(--yellow);
  position: relative;
}

.hs-title span::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  opacity: 0.35;
}

/* ── Subtitle ───────────────────────────────────────────────── */
.hs-subtitle {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 24px;
}

/* ── Stats row ──────────────────────────────────────────────── */
.hs-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.hs-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hs-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.hs-stat-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hs-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.hs-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hs-btn-ghost {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(6px);
}

.hs-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-2px);
}

/* ── Prev / Next arrow buttons ──────────────────────────────── */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

.hs-prev { left: 28px; }
.hs-next { right: 28px; }

.hs-arrow:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  transform: translateY(-50%) scale(1.1);
}

/* ── Dot indicators ─────────────────────────────────────────── */
.hs-dots {
  position: absolute;
  bottom: 36px;
  left: 7%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.hs-dot.hs-dot-active {
  width: 28px;
  border-radius: 4px;
  background: var(--yellow);
}

/* ── Progress bar ───────────────────────────────────────────── */
.hs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 5;
}

.hs-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  border-radius: 0 2px 2px 0;
}

/* ── Slide counter (top-right) ──────────────────────────────── */
.hs-counter {
  position: absolute;
  top: calc(var(--nav-h, 68px) + 20px);
  right: 7%;
  z-index: 5;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ============================================================
   HERO SLIDER — RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hs-content {
    bottom: 12%;
    left: 5%;
    max-width: 580px;
  }
  .hs-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-slider {
    height: 100svh;
    min-height: 520px;
  }

  .hs-content {
    bottom: 10%;
    left: 5%;
    right: 5%;
    max-width: 100%;
  }

  .hs-overlay,
  .hs-overlay-teal,
  .hs-overlay-deep {
    background: linear-gradient(
      to top,
      rgba(5, 5, 10, 0.88) 0%,
      rgba(5, 5, 10, 0.55) 60%,
      rgba(5, 5, 10, 0.2) 100%
    );
  }

  .hs-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    letter-spacing: -1px;
  }

  .hs-subtitle {
    font-size: 0.875rem;
  }

  .hs-stats {
    gap: 14px;
  }

  .hs-stat-num { font-size: 1.1rem; }

  .hs-btns {
    gap: 10px;
  }

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

  .hs-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .hs-prev { left: 14px; }
  .hs-next { right: 14px; }

  .hs-dots {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hs-content {
    bottom: 8%;
  }

  .hs-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    margin-bottom: 12px;
  }

  .hs-subtitle {
    font-size: 0.83rem;
    margin-bottom: 18px;
  }

  .hs-stats {
    display: none; /* hide stats on very small screens */
  }

  .hs-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

  .hs-arrow { display: none; }
}

/* ============================================================
   RULES PAGE — Sub-lists, Evaluation Grid
   ============================================================ */

/* ── Rule sub-lists ─────────────────────────────────────────── */
.rule-sub-list {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rule-sub-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.6;
}

.rule-sub-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── Evaluation criteria grid ───────────────────────────────── */
.eval-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.eval-card {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.eval-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 3px 3px 0 0;
}

.eval-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
}

.eval-icon {
  width: 52px;
  height: 52px;
  background: var(--yellow-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.3rem;
  color: var(--yellow-dark);
}

.eval-score {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.eval-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black-soft);
  margin-bottom: 10px;
}

.eval-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ── Judges note ────────────────────────────────────────────── */
.eval-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--yellow-glow);
  border: 1.5px solid rgba(245, 183, 0, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.eval-note i {
  color: var(--yellow-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.eval-note p {
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.65;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .eval-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .eval-grid {
    grid-template-columns: 1fr;
  }
}

.login-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 22px;
    margin-right:18px;
    border-radius:30px;
    background:#f5b700;
    color:#111;
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    text-decoration:none;
    transition:all .3s ease;
}

.login-btn:hover{
    background:#ffd54a;
    color:#000;
    text-decoration:none;
}

@media(max-width:768px){
    .login-btn{
        display:none;
    }
}