/* style/resources-popular-game-tips.css */

/* Base Styles for the page */
.page-resources-popular-game-tips {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for default light body background */
  background-color: #f5f5f5; /* Light background for the content area */
}

/* Header offset to prevent content from being hidden by fixed header */
.page-resources-popular-game-tips__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first visible section */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  color: #ffffff; /* White text on dark hero overlay */
}

.page-resources-popular-game-tips__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-resources-popular-game-tips__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

.page-resources-popular-game-tips__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-resources-popular-game-tips__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Brand primary color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-popular-game-tips__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources-popular-game-tips__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General content area styling */
.page-resources-popular-game-tips__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* White background for main content sections */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-resources-popular-game-tips__introduction-section {
  padding-top: 30px; /* Adjust padding as hero already has offset */
}

.page-resources-popular-game-tips__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Brand secondary color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-resources-popular-game-tips__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Primary brand color for underline */
  border-radius: 2px;
}

.page-resources-popular-game-tips__sub-title {
  font-size: 1.8em;
  color: #FFD700; /* Primary brand color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-popular-game-tips__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #333333;
}

/* Image styles */
.page-resources-popular-game-tips__game-image,
.page-resources-popular-game-tips__section-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover; /* Ensure images cover their area */
}

/* Dark section styling */
.page-resources-popular-game-tips__dark-section {
  background-color: #8B0000; /* Secondary brand color as background */
  color: #ffffff; /* White text for dark background */
}

.page-resources-popular-game-tips__dark-section .page-resources-popular-game-tips__section-title,
.page-resources-popular-game-tips__dark-section .page-resources-popular-game-tips__sub-title,
.page-resources-popular-game-tips__dark-section .page-resources-popular-game-tips__card-title {
  color: #FFD700; /* Primary brand color for titles on dark background */
}

.page-resources-popular-game-tips__dark-section .page-resources-popular-game-tips__paragraph {
  color: #f0f0f0;
}

/* Grid layout for game tips */
.page-resources-popular-game-tips__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-popular-game-tips__grid-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-resources-popular-game-tips__dark-section .page-resources-popular-game-tips__grid-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-popular-game-tips__card-title {
  font-size: 1.4em;
  color: #8B0000;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-resources-popular-game-tips__dark-section .page-resources-popular-game-tips__card-title {
  color: #FFD700;
}

/* Buttons */
.page-resources-popular-game-tips__btn-primary,
.page-resources-popular-game-tips__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-popular-game-tips__btn-primary {
  background-color: #FFD700; /* Primary brand color */
  color: #8B0000; /* Secondary brand color for text on primary button */
  border: 2px solid #FFD700;
}

.page-resources-popular-game-tips__btn-primary:hover {
  background-color: #e0b800;
  color: #ffffff;
}

.page-resources-popular-game-tips__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Primary brand color for text on secondary button */
  border: 2px solid #FFD700;
}

.page-resources-popular-game-tips__btn-secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
}

.page-resources-popular-game-tips__cta-section {
  text-align: center;
}

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

/* Video section */
.page-resources-popular-game-tips__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-popular-game-tips__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-resources-popular-game-tips__video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.page-resources-popular-game-tips__video-caption {
  text-align: center;
  font-style: italic;
  margin-top: 15px;
  color: #555555;
  font-size: 0.9em;
}

/* FAQ Section */
.page-resources-popular-game-tips__faq-list {
  margin-top: 40px;
}

.page-resources-popular-game-tips__faq-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-popular-game-tips__dark-section .page-resources-popular-game-tips__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-popular-game-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

.page-resources-popular-game-tips__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.page-resources-popular-game-tips__faq-title {
  font-size: 1.2em;
  color: #FFD700; /* Primary brand color for FAQ questions */
  margin: 0;
}

.page-resources-popular-game-tips__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-resources-popular-game-tips__faq-item.active .page-resources-popular-game-tips__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-popular-game-tips__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-resources-popular-game-tips__faq-item.active .page-resources-popular-game-tips__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-resources-popular-game-tips__faq-answer .page-resources-popular-game-tips__paragraph {
  margin-bottom: 0;
  color: #f0f0f0;
}

.page-resources-popular-game-tips__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources-popular-game-tips__faq-answer a:hover {
  color: #e0b800;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-popular-game-tips__hero-title {
    font-size: 3em;
  }
  .page-resources-popular-game-tips__hero-description {
    font-size: 1.2em;
  }
  .page-resources-popular-game-tips__section-title {
    font-size: 2em;
  }
  .page-resources-popular-game-tips__sub-title {
    font-size: 1.6em;
  }
  .page-resources-popular-game-tips__paragraph {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-resources-popular-game-tips__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-resources-popular-game-tips__hero-title {
    font-size: 2.2em;
  }
  .page-resources-popular-game-tips__hero-description {
    font-size: 1em;
  }
  .page-resources-popular-game-tips__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-popular-game-tips__btn-primary,
  .page-resources-popular-game-tips__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources-popular-game-tips__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources-popular-game-tips__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-popular-game-tips__sub-title {
    font-size: 1.4em;
  }
  .page-resources-popular-game-tips__paragraph {
    font-size: 0.95em;
  }
  .page-resources-popular-game-tips__grid-container {
    grid-template-columns: 1fr;
  }
  .page-resources-popular-game-tips__game-image,
  .page-resources-popular-game-tips__section-image,
  .page-resources-popular-game-tips__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important; /* Ensure padding/border is included in width */
  }

  .page-resources-popular-game-tips__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important; /* Reset any unwanted padding */
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .page-resources-popular-game-tips__video-caption {
    padding: 0 15px; /* Add padding to caption */
  }

  .page-resources-popular-game-tips__faq-question {
    padding: 15px 20px;
  }
  .page-resources-popular-game-tips__faq-answer {
    padding: 0 20px;
  }
  .page-resources-popular-game-tips__faq-item.active .page-resources-popular-game-tips__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources-popular-game-tips__hero-title {
    font-size: 1.8em;
  }
  .page-resources-popular-game-tips__hero-description {
    font-size: 0.9em;
  }
  .page-resources-popular-game-tips__section-title {
    font-size: 1.5em;
  }
  .page-resources-popular-game-tips__sub-title {
    font-size: 1.2em;
  }
  .page-resources-popular-game-tips__faq-title {
    font-size: 1.1em;
  }
}

/* Ensure images don't use filters */
.page-resources-popular-game-tips img {
  filter: none;
}

/* Ensure good contrast for links in paragraphs */
.page-resources-popular-game-tips__paragraph a {
  color: #8B0000; /* Dark red for links on light background */
  text-decoration: underline;
}

.page-resources-popular-game-tips__paragraph a:hover {
  color: #FFD700;
}

/* Contrast fix for dark background links */
.page-resources-popular-game-tips__dark-section .page-resources-popular-game-tips__paragraph a {
  color: #FFD700; /* Gold for links on dark background */
}

.page-resources-popular-game-tips__dark-section .page-resources-popular-game-tips__paragraph a:hover {
  color: #ffffff;
}