/* =========================================
   GLOBAL BASE STYLES (Desktop / Default)
========================================= */
.mobile-quicknav {
  display: none;
  /* force hidden on desktop */
  clear: both;
}


body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: black;
  color: #ffffff;
}

a {
  color: white;
  text-decoration: none;
}

header {
  background-color: black;
  padding: 10px 40px;
  position: relative;
}

.logo {
  text-align: left;
}

.tagline {
  color: grey;
  font-size: 30px;
  text-align: left;
  margin-top: 5px;
  margin-left: 100px;
  margin-bottom: 10px;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.logo img {
  width: 40%;
  height: auto;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: none;
  /* mobile only */
}

.header-actions {
  display: none;
}

nav#nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

nav#nav-menu a {
  color: white;
  font-size: 28px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

nav#nav-menu a:hover {
  background-color: #333;
}

/* --- Desktop hover dropdowns --- */
#nav-menu .nav-group {
  position: relative;
}

#nav-menu .nav-parent {
  cursor: pointer;
}


/* DESKTOP SUBMENU */
@media (min-width: 769px) {
  #nav-menu .nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    background: dimgrey;
    border: 1px solid #333;
    border-radius: 4px;
    display: none;
    min-width: 200px;
    padding: 6px 0;
    z-index: 1000;
  }

  #nav-menu .nav-group:hover .nav-sub {
    display: block;
  }

  #nav-menu .nav-sub a {
    display: block;
    padding: 10px 14px;
    color: white;
    white-space: nowrap;
  }

  #nav-menu .nav-sub a:hover {
    background: #333;
  }
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
  background-color: black;
  background-size: 100% 100%;
  text-align: center;
  height: 200px;
  padding: 20px;
  position: relative;
}

.hero h1 {
  font-size: 48px;
  margin-top: 0;
  margin-bottom: 10px;
  color: red;
}

.hero p {
  font-size: 20px;
  color: #ccc;
}

/* =========================================
   BUTTONS, SECTIONS, CARDS
========================================= */

.btn {
  background-color: #d72638;
  color: white;
  padding: 10px 20px;
  margin: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.section {
  padding: 40px;
  border-top: 1px solid #222;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  border-left: 5px solid #d72638;
  padding-left: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  padding: 0 10px;
}

.card,
.thread-post {
  background-color: #161616;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.05);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.thread-post:hover {
  background-color: #1e1e1e;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.15);
}

.news-card {
  color: steelblue;
  font-size: 14pt;
  padding: 6px;
}

.progress-card {
  color: steelblue;
  font-size: 13pt;
  padding: 6px;
}

/* =========================================
   PROGRESS BAR
========================================= */

.progress-wrap {
  position: relative;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #1c1c1c;
  border: 2px solid dimgrey;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 28px;
  width: 80%;
  background: linear-gradient(to right, darkred, crimson);
  border: 1px solid darkred;
  transition: width 0.5s;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f5f5f5;
  font-size: 12pt;
  text-shadow: 0 0 5px black;
}

/* =========================================
   FOOTER
========================================= */

footer {
  background-color: #111;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #777;
}

/* =========================================
   MODALS
========================================= */

#termsModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 98%;
  height: 100%;
  background: black;
  color: white;
  z-index: 9999;
  padding: 5px;
  overflow-y: auto;
}

.terms-box {
  max-width: 600px;
  margin: 40px auto;
  background: #1f1f1f;
  padding: 30px;
  border-radius: 8px;
  line-height: 1.6;
}

/* =========================================
   DESKTOP-ONLY GRID WIDENING
========================================= */

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  }
}

/* =========================================
   MOBILE STYLES (<= 768px ONLY)
========================================= */

@media (max-width: 768px) {
  .mobile-quicknav {
    display: block;
    padding: 10px 12px 0 12px;
  }

 .mq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;              /* 40 was huge; feel free to raise it */
}

.mq-btn {
  display: flex;
  flex-direction: column;     /* STACK icon then text */
  align-items: center;
  justify-content: center;
  text-align: center;

  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;

  padding: 14px 10px;
  height: 150px;              /* more room for icon+label */
  gap: 10px;                  /* space between icon and label */

  color: #eaeaea;
  text-decoration: none;

  box-shadow: 0 0 10px rgba(215, 38, 56, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.mq-btn:active {
  transform: translateY(1px);
  opacity: 0.95;
}

/* IMAGE ICON */
.mq-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* EMOJI ICON (if you use <span class="mq-emoji">🔥</span>) */
.mq-emoji {
  font-size: 44px;
  line-height: 1;
}

/* LABEL */
.mq-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

  .flashbanner {
    display: none;
  }

  .tagline {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .profile-icon {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .nav-group {
    display: none;
  }

  /* Header / logo / tagline */
  header {
    padding: 20px 16px;
    margin-bottom: 40px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .logo {
    display: block;
    padding: 0px;
    margin: 0px;
    width: 100%;

  }

  .logo img {
    width: 68%;
    float: left;
  }

  .tagline {
    text-align: center;
    margin-left: 0;
    margin-top: 6px;
    font-size: 22px;
    color: lightgrey;
  }

  #nav-profile-mobile {
    display: block;
    padding: 10px 12px 0 12px;
    margin-bottom: 30px;
  }

  #nav-profile-mobile .mobile-auth {
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  #nav-profile-mobile .mobile-auth a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #eaeaea;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 14px;
  }

  /* Sections */
  .section {
    padding: 20px 10px 40px 10px;
    display: none;
  }

  .section h2 {
    font-size: 20px;
    border-left: 2px solid #d72638;
    margin-left: 10px;
  }

  /* Cards */
  .card,
  .thread-post {
    margin: 0;
  }

  /* Progress bar tweaks */
  .progress-wrap {
    max-width: 640px;
    border-color: grey;
  }

  .progress-text {
    font-size: 13pt;
  }
}