/* CSS Reset */
* {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  max-width: 100vw;
}

/* Global Styles */
html,
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
  background-color: #2e0000; /* Garnet Glow BG */
  color: #ffffff;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Container */
.cqs7v7-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.cqs7v7-header-l-r-r {
  padding: 20px;
  background: rgba(46, 0, 0, 0.5); /* Semi-transparent Garnet Glow */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 20, 60, 0.3); /* Pri border */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cqs7v7-logo {
  display: flex;
  align-items: center;
  font-size: 1.3em;
  font-weight: 700;
  color: #ffc0cb; /* Acc color */
}

.cqs7v7-logo svg {
  margin-right: 10px;
}

.cqs7v7-logo span {
  color: #ffffff;
}

.cqs7v7-desktop-nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cqs7v7-desktop-nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 400;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
}

.cqs7v7-desktop-nav a:hover {
  color: #dc143c; /* Pri color on hover */
  transform: translateY(-2px);
}

.cqs7v7-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cqs7v7-age-flag {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  background-color: rgba(220, 20, 60, 0.5);
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 700;
}

.cqs7v7-age-flag img {
  border-radius: 3px;
}

.cqs7v7-hamburger {
  display: none; /* Hidden by default, shown on small screens via JS */
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2em;
  cursor: pointer;
}

/* Mobile Menu */
.cqs7v7-mobile-menu {
  display: none; /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 0, 0, 0.95); /* Darker Garnet Glow */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1001;
  padding: 30px;
  overflow-y: auto;
}

.cqs7v7-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.cqs7v7-mobile-menu a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.5em;
  font-weight: 700;
  transition: color 0.3s ease, transform 0.3s ease;
}

.cqs7v7-mobile-menu a:hover {
  color: #ffc0cb; /* Acc on hover */
  transform: scale(1.05);
}

.cqs7v7-close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2em;
  cursor: pointer;
}

/* Hero Section - Centered Text Above Image */
.cqs7v7-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px 20px 100px 20px;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.cqs7v7-hero h1 {
  font-size: 3.5em;
  font-weight: 700;
  color: #dc143c; /* Pri */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cqs7v7-hero p {
  font-size: 1.3em;
  line-height: 1.6;
  max-width: 700px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cqs7v7-hero-image-container {
  width: 100%;
  max-width: 1000px;
}

.cqs7v7-hero-image-container img {
  width: 100%;
  height: 500px; /* Fixed height for consistent aspect ratio */
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Content Section Styling */
.cqs7v7-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.05); /* Subtle tint for content blocks */
  border-radius: 24px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cqs7v7-content-section h2 {
  font-size: 2.5em;
  font-weight: 700;
  color: #ffc0cb; /* Acc */
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cqs7v7-content-section p {
  margin-bottom: 20px;
  opacity: 0.95;
}

.cqs7v7-content-section a {
  color: #ffc0cb;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cqs7v7-content-section a:hover {
  color: #dc143c;
}

/* Game Grid */
.cqs7v7-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
}

.cqs7v7-game-card {
  background-color: rgba(255, 255, 255, 0.08); /* Card background */
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.cqs7v7-game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.cqs7v7-game-card img {
  width: 100%;
  height: 220px; /* Consistent card image height */
  object-fit: cover;
  border-radius: 8px 8px 0 0; /* Rounded top corners */
  margin-bottom: 15px;
}

.cqs7v7-game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cqs7v7-game-card h3 {
  font-size: 1.5em;
  font-weight: 700;
  color: #ffc0cb; /* Acc */
  margin-bottom: 10px;
}

.cqs7v7-game-card p {
  font-size: 1em;
  opacity: 0.85;
  margin-bottom: 15px;
}

.cqs7v7-btn {
  display: inline-block;
  background-color: #dc143c; /* Pri */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4);
}

.cqs7v7-btn:hover {
  background-color: #ff4040; /* Lighter Pri */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(220, 20, 60, 0.5);
}

/* Footer */
.cqs7v7-footer {
  padding: 50px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  margin-top: auto; /* Pushes footer to the bottom */
  text-align: center;
  font-family: 'Raleway', sans-serif;
  color: rgba(255, 255, 255, 0.8);
}

.cqs7v7-footer h3 {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 1.8em;
  color: #ffc0cb; /* Acc */
}

.cqs7v7-footer ul {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid rgba(150, 150, 150, 0.2);
  padding-bottom: 20px;
}

.cqs7v7-footer ul li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.cqs7v7-footer ul li a:hover {
  color: #dc143c; /* Pri on hover */
  text-decoration: underline;
}

.cqs7v7-footer-contact p {
  margin: 5px 0;
  font-size: 0.95em;
  text-align: left;
}

.cqs7v7-footer-contact p strong {
  color: #ffc0cb; /* Acc */
}

.cqs7v7-footer h4 {
  margin: 0 0 8px 0;
  color: #ffcc00; /* Trust signal color */
  font-size: 1.2em;
}

.cqs7v7-footer p {
  margin: 10px 0;
  opacity: 0.9;
  font-size: 1em;
  text-align: justify;
}

.cqs7v7-footer p strong {
  color: #ffffff;
}

.cqs7v7-footer a {
  color: #ffc0cb;
  text-decoration: underline;
}

.cqs7v7-footer a:hover {
  color: #dc143c;
}

.cqs7v7-copyright {
  margin-top: 15px;
  font-size: 0.85em;
  opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cqs7v7-desktop-nav {
    display: none; /* Hide desktop nav on small screens */
  }
  .cqs7v7-hamburger {
    display: block; /* Show hamburger on small screens */
  }

  .cqs7v7-hero h1 {
    font-size: 2.8em;
  }

  .cqs7v7-hero p {
    font-size: 1.1em;
  }

  .cqs7v7-hero {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    text-align: center !important;
    padding: 100px 15px 70px 15px;
  }

  .cqs7v7-hero-text {
    text-align: center !important;
  }

  .cqs7v7-hero-visual {
    width: 100%;
  }

  .cqs7v7-hero-image-container img {
    height: 350px; /* Smaller hero image on mobile */
    border-radius: 12px;
  }

  .cqs7v7-hero-visual img {
    max-width: 100% !important;
  }

  .cqs7v7-content-section {
    padding: 60px 15px;
  }

  .cqs7v7-content-section h2 {
    font-size: 2em;
  }

  .cqs7v7-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .cqs7v7-footer ul {
    flex-direction: column;
    gap: 15px;
  }

  .cqs7v7-footer {
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .cqs7v7-logo {
    font-size: 1.1em;
  }
  .cqs7v7-age-flag {
    font-size: 0.8em;
    padding: 4px 8px;
  }

  .cqs7v7-hero h1 {
    font-size: 2.2em;
  }

  .cqs7v7-hero {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    text-align: center !important;
    padding: 80px 10px 50px 10px;
  }

  .cqs7v7-hero-text {
    text-align: center !important;
  }

  .cqs7v7-hero-visual {
    width: 100%;
  }

  .cqs7v7-hero-image-container img {
    height: 280px;
  }

  .cqs7v7-hero-visual img {
    max-width: 100% !important;
  }

  .cqs7v7-btn {
    font-size: 1em;
    padding: 10px 20px;
  }

  .cqs7v7-game-card-content {
    padding: 15px;
  }

  .cqs7v7-game-card h3 {
    font-size: 1.3em;
  }
}