/* style/game-guides.css */

/* Custom properties for colors from palette */
:root {
  --page-game-guides-primary-color: #113B7A;
  --page-game-guides-secondary-color: #1D5FD1;
  --page-game-guides-text-main: #F3F8FF;
  --page-game-guides-text-secondary: #AFC4E8;
  --page-game-guides-card-bg: #10233F;
  --page-game-guides-border-color: #244D84;
  --page-game-guides-glow-color: #4FA8FF;
  --page-game-guides-gold-color: #F2C14E;
  --page-game-guides-divider-color: #1B3357;
  --page-game-guides-deep-navy: #08162B; /* This is body background from shared */
  --page-game-guides-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

/* Base styles for the page content, ensuring contrast with shared body background */
.page-game-guides {
  color: var(--page-game-guides-text-main); /* Light text on dark body background */
  background-color: transparent; /* Body background handled by shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  color: var(--page-game-guides-text-main);
  text-align: center;
  background-color: var(--page-game-guides-primary-color); /* A solid background for the section */
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  max-width: 1920px; /* Ensure image scales down */
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space between image and content */
  border-radius: 8px;
}

.page-game-guides__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3rem); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--page-game-guides-gold-color); /* Use gold for emphasis */
  text-shadow: 0 0 10px rgba(79, 168, 255, 0.5); /* Glow effect */
}

.page-game-guides__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure buttons adapt to smaller screens */
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-button-gradient);
  color: var(--page-game-guides-text-main); /* White text on dark gradient */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-game-guides__btn-secondary {
  background: var(--page-game-guides-card-bg);
  color: var(--page-game-guides-gold-color); /* Gold text on dark background */
  border: 2px solid var(--page-game-guides-border-color);
}

.page-game-guides__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--page-game-guides-primary-color);
}

/* Content Area */
.page-game-guides__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-game-guides__dark-section {
  background-color: var(--page-game-guides-card-bg);
  color: var(--page-game-guides-text-main);
}

.page-game-guides__section-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: var(--page-game-guides-gold-color);
  text-shadow: 0 0 8px rgba(79, 168, 255, 0.3);
}

.page-game-guides__dark-section .page-game-guides__section-title {
  color: var(--page-game-guides-gold-color);
}

.page-game-guides__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__dark-section .page-game-guides__text-block {
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__grid-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-game-guides__grid-item--reverse {
  flex-direction: row-reverse;
}

.page-game-guides__image {
  flex: 1;
  min-width: 200px; /* Minimum size requirement */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-game-guides__text-content {
  flex: 1;
}

.page-game-guides__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-game-guides__cta-section {
  background-color: var(--page-game-guides-primary-color);
  text-align: center;
  padding: 80px 20px;
  border-radius: 10px;
  margin-top: 40px;
}

.page-game-guides__cta-section .page-game-guides__section-title {
  color: var(--page-game-guides-gold-color);
}

.page-game-guides__cta-section .page-game-guides__text-block {
  color: var(--page-game-guides-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-guides__grid-item {
    flex-direction: column;
    text-align: center;
  }

  .page-game-guides__grid-item--reverse {
    flex-direction: column;
  }

  .page-game-guides__hero-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 10px 15px 40px;
  }

  .page-game-guides__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-game-guides__description {
    font-size: 1rem;
  }

  .page-game-guides__content-area {
    padding: 40px 15px;
  }

  .page-game-guides__section-title {
    font-size: 1.8rem;
  }

  .page-game-guides__text-block {
    font-size: 0.95rem;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Mobile specific image adaptation */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile specific container adaptation */
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-section,
  .page-game-guides__content-area,
  .page-game-guides__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile specific button adaptation */
  .page-game-guides__cta-button,
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
    gap: 10px;
  }
}

/* Ensure no CSS filters are used on images */
.page-game-guides img {
  filter: none; /* Explicitly disable any filter */
}

/* Color contrast fixes if needed */
.page-game-guides__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-game-guides__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}