:root {
  --primary-color: #080f5b;     /* dark blue */
  --primary-gradient: linear-gradient(135deg, #080f5b, #3a0ca3); /* hero gradient */
  --accent-color: #6cb4ee;      /* lighter blue */
  --accent-gradient: linear-gradient(135deg, #6cb4ee, #48cae4);
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --text-dark: #333333;
  --text-light: #ffffff;
}

/* =======================
   GENERAL
======================= */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  background: var(--bg-light);
  color: var(--text-dark);
  scroll-behavior: smooth;
}

a {
  transition: 0.3s ease;
}

/* =======================
   NAVBAR
======================= */
.navbar {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 14px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* Logo + title */
.usman {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nwis {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff10;
  padding: 4px;
}

.usman span {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color: var(--text-light);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 0;
}

/* Underline hover + active */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Optional pill emphasis for one item, e.g. Peer Help */
.nav-links a.highlight {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
}

.nav-links a.highlight:hover {
  background: var(--accent-color);
  color: #02063a;
}

.footer {
  text-align: center;
  padding: 10px;
  background: var(--primary-gradient);
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
  bottom:0;
  position:fixed;
  width:100%
}

:root {
  --primary-color: #080f5b;
  --accent-color: #6cb4ee;
  --card-bg: #ffffff;
  --text-dark: #111;
  --text-light: #ffffff;
  --tag-bg: #eef3ff;
}

/* GENERAL */
body {
  font-family: Inter, sans-serif;
  margin: 0;
  background: #f5f7fa;
  color: var(--text-dark);
}

/* HERO */
.competitions-hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #080f5b, #3a0ca3);
  color: white;
}

.competitions-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.search-bar {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  max-width: 450px;
}

.search-bar input {
  width: 100%;
  padding: 12px;
  border-radius: 8px 0 0 8px;
  border: none;
  outline: none;
}

.search-bar button {
  padding: 12px 20px;
  background: var(--accent-color);
  border: none;
  color: white;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

.filter-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: #ffffff20;
  color: white;
  border: 1px solid #ffffff40;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-color);
}

/* FEATURED EVENT */
.featured-section {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

.featured-card {
  background: var(--primary-color);
  color: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.featured-header {
  padding: 12px 20px;
  background: #061045;
  font-weight: bold;
}

.featured-body {
  padding: 20px;
}

.featured-btn {
  color: var(--accent-color);
  font-weight: bold;
}

/* COMP GRID */
.competitions-grid {
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.comp-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.comp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 32px rgba(0,0,0,0.2);
}

.comp-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.comp-body {
  padding: 16px 18px;
}

.comp-body h3 {
  margin: 0 0 10px;
  color: var(--primary-color);
}

.tags {
  margin: 8px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 10px;
  border-radius: 20px;
  background: var(--tag-bg);
  font-size: 12px;
  font-weight: 600;
}

.tag.blue {
  background: var(--accent-color);
  color: white;
}

.comp-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.register-btn {
  background: var(--accent-color);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

  MOBILE NAVBAR FIX (ALL-IN-ONE)
   =============================== */

.hamburger {
  display: none;
}

@media (max-width: 768px) {

  /* NAVBAR CONTAINER */
  .navbar {
    position: relative;
    padding: 14px 18px;
    height: 64px;
  }

  /* LOGO */
  .logo {
    font-size: 20px;
    line-height: 1.1;
  }

  .usman {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* HAMBURGER */
  .hamburger {
    display: block;
    font-size: 26px;
    cursor: pointer;
    color: white;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
  }

  /* NAV LINKS (HIDDEN BY DEFAULT) */
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #080f5b;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 12px 0;
    z-index: 1000;
    animation: slideDown 0.25s ease-out;
  }

  /* SHOW MENU WHEN ACTIVE */
  .nav-links.show {
    display: flex;
  }

  /* NAV ITEMS */
  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }
}

/* SLIDE ANIMATION */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

