/* style/resources-mcw87-login-latest-games.css */

:root {
  --page-primary-color: #017439;
  --page-secondary-color: #FFFFFF;
  --page-text-on-dark: #FFFFFF;
  --page-text-on-light: #333333;
  --page-bg-dark: #0a0a0a;
  --page-btn-register-bg: #C30808;
  --page-btn-register-text: #FFFFFF; /* Overriding #FFFF00 for WCAG AA contrast */
  --page-btn-login-bg: #C30808;
  --page-btn-login-text: #FFFFFF; /* Overriding #FFFF00 for WCAG AA contrast */
}

.page-resources-mcw87-login-latest-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-on-dark); /* Default text color for dark body background */
  background-color: var(--page-bg-dark);
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

.page-resources-mcw87-login-latest-games__dark-bg {
  background-color: var(--page-bg-dark);
  color: var(--page-text-on-dark);
}

.page-resources-mcw87-login-latest-games__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-resources-mcw87-login-latest-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources-mcw87-login-latest-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-resources-mcw87-login-latest-games__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-resources-mcw87-login-latest-games__hero-title {
  font-size: 3.5em;
  color: var(--page-secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-mcw87-login-latest-games__hero-description {
  font-size: 1.2em;
  color: var(--page-secondary-color);
  margin-bottom: 40px;
}

.page-resources-mcw87-login-latest-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-mcw87-login-latest-games__btn-primary,
.page-resources-mcw87-login-latest-games__btn-secondary,
.page-resources-mcw87-login-latest-games__btn-play {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-mcw87-login-latest-games__btn-primary {
  background-color: var(--page-btn-login-bg); /* Custom color for Login/Register */
  color: var(--page-btn-login-text); /* Custom color for Login/Register font */
  border: 2px solid var(--page-btn-login-bg);
}

.page-resources-mcw87-login-latest-games__btn-primary:hover {
  background-color: darken(var(--page-btn-login-bg), 10%);
  border-color: darken(var(--page-btn-login-bg), 10%);
}

.page-resources-mcw87-login-latest-games__btn-secondary {
  background-color: transparent;
  color: var(--page-secondary-color);
  border: 2px solid var(--page-secondary-color);
}

.page-resources-mcw87-login-latest-games__btn-secondary:hover {
  background-color: var(--page-secondary-color);
  color: var(--page-primary-color);
}

.page-resources-mcw87-login-latest-games__btn-play {
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
  border: 2px solid var(--page-primary-color);
}

.page-resources-mcw87-login-latest-games__btn-play:hover {
  background-color: darken(var(--page-primary-color), 10%);
  border-color: darken(var(--page-primary-color), 10%);
}

.page-resources-mcw87-login-latest-games__section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-mcw87-login-latest-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-resources-mcw87-login-latest-games__section-title {
  font-size: 2.8em;
  color: var(--page-primary-color);
  margin-bottom: 20px;
}

.page-resources-mcw87-login-latest-games__section-description {
  font-size: 1.1em;
  color: var(--page-text-on-dark);
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-resources-mcw87-login-latest-games__game-grid,
.page-resources-mcw87-login-latest-games__category-grid,
.page-resources-mcw87-login-latest-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-mcw87-login-latest-games__game-card,
.page-resources-mcw87-login-latest-games__category-card,
.page-resources-mcw87-login-latest-games__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  padding-bottom: 20px;
}

.page-resources-mcw87-login-latest-games__game-card:hover,
.page-resources-mcw87-login-latest-games__category-card:hover,
.page-resources-mcw87-login-latest-games__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-resources-mcw87-login-latest-games__game-card-image,
.page-resources-mcw87-login-latest-games__category-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 15px;
}

.page-resources-mcw87-login-latest-games__game-card-title,
.page-resources-mcw87-login-latest-games__category-card-title {
  font-size: 1.6em;
  color: var(--page-primary-color);
  margin: 0 15px 10px 15px;
}

.page-resources-mcw87-login-latest-games__game-card-title a,
.page-resources-mcw87-login-latest-games__category-card-title a {
  color: var(--page-primary-color);
  text-decoration: none;
}

.page-resources-mcw87-login-latest-games__game-card-title a:hover,
.page-resources-mcw87-login-latest-games__category-card-title a:hover {
  text-decoration: underline;
}

.page-resources-mcw87-login-latest-games__game-card-text,
.page-resources-mcw87-login-latest-games__category-card-text {
  font-size: 0.95em;
  color: var(--page-text-on-dark);
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-resources-mcw87-login-latest-games__btn-play {
  margin-left: 15px;
  padding: 10px 20px;
}

.page-resources-mcw87-login-latest-games__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  text-align: center;
}

.page-resources-mcw87-login-latest-games__feature-card-title {
  font-size: 1.4em;
  color: var(--page-primary-color);
  margin-bottom: 15px;
}

.page-resources-mcw87-login-latest-games__feature-card-text {
  color: var(--page-text-on-dark);
  font-size: 0.95em;
}

.page-resources-mcw87-login-latest-games__promotions-section {
  background-color: #1a1a1a;
  color: var(--page-text-on-dark);
}

.page-resources-mcw87-login-latest-games__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-mcw87-login-latest-games__promotions-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-resources-mcw87-login-latest-games__promotion-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 50px auto;
  max-width: 800px;
  text-align: left;
}

.page-resources-mcw87-login-latest-games__promotion-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.05em;
  color: var(--page-text-on-dark);
  display: flex;
  align-items: center;
}

.page-resources-mcw87-login-latest-games__promotion-item::before {
  content: '✔️';
  margin-right: 10px;
  color: var(--page-primary-color);
  font-size: 1.2em;
}

.page-resources-mcw87-login-latest-games__btn-full-width {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

.page-resources-mcw87-login-latest-games__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-resources-mcw87-login-latest-games__security-section {
  background-color: var(--page-primary-color);
  color: var(--page-text-on-dark);
}

.page-resources-mcw87-login-latest-games__security-section .page-resources-mcw87-login-latest-games__section-title {
  color: var(--page-secondary-color);
}

.page-resources-mcw87-login-latest-games__security-section .page-resources-mcw87-login-latest-games__section-description {
  color: var(--page-secondary-color);
}

.page-resources-mcw87-login-latest-games__security-list {
  list-style: none;
  padding: 0;
  margin: 50px auto 0 auto;
  max-width: 900px;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-resources-mcw87-login-latest-games__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-mcw87-login-latest-games__security-item-title {
  font-size: 1.5em;
  color: var(--page-secondary-color);
  margin-bottom: 10px;
}

.page-resources-mcw87-login-latest-games__security-item-text {
  font-size: 1em;
  color: var(--page-secondary-color);
}

.page-resources-mcw87-login-latest-games__faq-section {
  background-color: var(--page-bg-dark);
  color: var(--page-text-on-dark);
}

.page-resources-mcw87-login-latest-games__faq-container {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-resources-mcw87-login-latest-games__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources-mcw87-login-latest-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--page-secondary-color);
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources-mcw87-login-latest-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-mcw87-login-latest-games__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-resources-mcw87-login-latest-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-mcw87-login-latest-games__faq-item.active .page-resources-mcw87-login-latest-games__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-mcw87-login-latest-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-text-on-dark);
  background-color: rgba(255, 255, 255, 0.02);
}

.page-resources-mcw87-login-latest-games__faq-item.active .page-resources-mcw87-login-latest-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 20px !important;
}

.page-resources-mcw87-login-latest-games__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: inherit;
}

.page-resources-mcw87-login-latest-games__cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background-color: #1a1a1a;
}

.page-resources-mcw87-login-latest-games__cta-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
}

.page-resources-mcw87-login-latest-games__cta-section .page-resources-mcw87-login-latest-games__content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-resources-mcw87-login-latest-games__cta-section .page-resources-mcw87-login-latest-games__section-title {
  color: var(--page-secondary-color);
}

.page-resources-mcw87-login-latest-games__cta-section .page-resources-mcw87-login-latest-games__section-description {
  color: var(--page-secondary-color);
}

.page-resources-mcw87-login-latest-games__cta-buttons-bottom {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-resources-mcw87-login-latest-games__btn-register-bottom {
  background-color: var(--page-btn-register-bg);
  color: var(--page-btn-register-text);
  border: 2px solid var(--page-btn-register-bg);
}

.page-resources-mcw87-login-latest-games__btn-register-bottom:hover {
  background-color: darken(var(--page-btn-register-bg), 10%);
  border-color: darken(var(--page-btn-register-bg), 10%);
}

.page-resources-mcw87-login-latest-games__btn-login-bottom {
  background-color: var(--page-btn-login-bg);
  color: var(--page-btn-login-text);
  border: 2px solid var(--page-btn-login-bg);
}

.page-resources-mcw87-login-latest-games__btn-login-bottom:hover {
  background-color: darken(var(--page-btn-login-bg), 10%);
  border-color: darken(var(--page-btn-login-bg), 10%);
}

/* General image responsiveness */
.page-resources-mcw87-login-latest-games img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-resources-mcw87-login-latest-games__hero-title {
    font-size: 2.8em;
  }
  .page-resources-mcw87-login-latest-games__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources-mcw87-login-latest-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-mcw87-login-latest-games__hero-section {
    height: 80vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-resources-mcw87-login-latest-games__hero-title {
    font-size: 2em;
  }
  .page-resources-mcw87-login-latest-games__hero-description {
    font-size: 1em;
  }
  .page-resources-mcw87-login-latest-games__hero-cta-buttons,
  .page-resources-mcw87-login-latest-games__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-mcw87-login-latest-games__btn-primary,
  .page-resources-mcw87-login-latest-games__btn-secondary,
  .page-resources-mcw87-login-latest-games__btn-play {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources-mcw87-login-latest-games__section {
    padding: 60px 0;
  }
  .page-resources-mcw87-login-latest-games__section-title {
    font-size: 1.8em;
  }
  .page-resources-mcw87-login-latest-games__section-description {
    font-size: 0.95em;
  }
  .page-resources-mcw87-login-latest-games__game-grid,
  .page-resources-mcw87-login-latest-games__category-grid,
  .page-resources-mcw87-login-latest-games__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-mcw87-login-latest-games__game-card,
  .page-resources-mcw87-login-latest-games__category-card,
  .page-resources-mcw87-login-latest-games__feature-card,
  .page-resources-mcw87-login-latest-games__security-item {
    padding: 20px;
  }
  .page-resources-mcw87-login-latest-games__game-card-image,
  .page-resources-mcw87-login-latest-games__category-card-image {
    height: 200px;
  }
  .page-resources-mcw87-login-latest-games__security-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-mcw87-login-latest-games__content-area,
  .page-resources-mcw87-login-latest-games__content-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  /* Mobile specific image adaptation */
  .page-resources-mcw87-login-latest-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-resources-mcw87-login-latest-games__faq-question,
  .page-resources-mcw87-login-latest-games__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-resources-mcw87-login-latest-games__faq-item.active .page-resources-mcw87-login-latest-games__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-resources-mcw87-login-latest-games__hero-title {
    font-size: 1.8em;
  }
  .page-resources-mcw87-login-latest-games__section-title {
    font-size: 1.6em;
  }
  .page-resources-mcw87-login-latest-games__hero-cta-buttons {
    flex-direction: column;
  }
}