.page-arcade {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-arcade__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-arcade__container--flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-arcade__text-content {
  flex: 1;
  min-width: 300px;
}

.page-arcade__image-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 0;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-arcade__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-arcade__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-arcade__button--primary {
  background-color: #FFD700; /* Gold primary color */
  color: #8B0000; /* Deep red secondary color */
  border: 2px solid #FFD700;
}

.page-arcade__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-arcade__button--secondary {
  background-color: #8B0000; /* Deep red secondary color */
  color: #FFD700; /* Gold primary color */
  border: 2px solid #8B0000;
}

.page-arcade__button--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-arcade__button--promo {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.page-arcade__button--promo:hover {
  background-color: #e6c200;
  transform: scale(1.05);
}

.page-arcade__heading {
  font-size: 2.5em;
  color: #8B0000; /* Deep red secondary color */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-arcade__heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold primary color */
  border-radius: 2px;
}

.page-arcade__subheading {
  font-size: 1.8em;
  color: #8B0000;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-arcade__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-arcade__game-category {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-arcade__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1 1 calc(50% - 30px); /* Two cards per row for desktop */
  min-width: 300px;
  max-width: calc(50% - 15px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-arcade__game-card:hover {
  transform: translateY(-10px);
}

.page-arcade__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-arcade__game-card .page-arcade__card-title {
  font-size: 1.5em;
  color: #8B0000;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-arcade__game-card .page-arcade__card-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
  margin: 0;
  text-align: justify;
}

.page-arcade__promotions-section, .page-arcade__security-section, .page-arcade__cta-section {
  background-color: #f8f8f8;
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
  border-radius: 10px;
}

.page-arcade__promotions-section .page-arcade__heading, .page-arcade__security-section .page-arcade__heading, .page-arcade__cta-section .page-arcade__heading {
  color: #8B0000;
}

.page-arcade__button--cta, .page-arcade__button--download {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-arcade__button--cta:hover, .page-arcade__button--download:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-arcade__mobile-image, .page-arcade__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: block; /* Ensure it doesn't cause overflow */
  margin: 0 auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-arcade__tips-section {
  padding: 60px 20px;
  margin-top: 40px;
}

.page-arcade__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-arcade__tips-item {
  background-color: #ffffff;
  border-left: 5px solid #FFD700;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-arcade__tips-item .page-arcade__subheading {
  color: #8B0000;
  margin-top: 0;
  font-size: 1.5em;
}

.page-arcade__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }
  .page-arcade__heading {
    font-size: 2em;
  }
  .page-arcade__game-card {
    flex: 1 1 calc(100% - 20px); /* One card per row for smaller desktops/tablets */
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-arcade__heading {
    font-size: 1.8em;
  }
  .page-arcade__subheading {
    font-size: 1.3em;
  }
  .page-arcade__paragraph {
    font-size: 1em;
  }
  .page-arcade__container--flex {
    flex-direction: column;
  }
  .page-arcade__game-card {
    flex: 1 1 100%;
  }
  /* Mobile content area images must not overflow */
  .page-arcade img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 0.95em;
  }
  .page-arcade__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-arcade__heading {
    font-size: 1.5em;
  }
  .page-arcade__tips-list {
    grid-template-columns: 1fr;
  }
}