/* style/resources.css */

/* Custom properties for colors */
:root {
  --primary-color: #0A2239; /* Dark Blue */
  --secondary-color: #E6B325; /* Gold Yellow */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8; /* Light gray for contrast on white background */
  --border-color: #e0e0e0;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for clarity, assuming body is white */
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

/* Base container styles */
.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-resources__section {
  padding: 60px 0;
}

.page-resources__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__hero-description,
.page-resources__dark-section .page-resources__card-title,
.page-resources__dark-section .page-resources__card-text,
.page-resources__dark-section .page-resources__game-title,
.page-resources__dark-section .page-resources__game-description,
.page-resources__dark-section .page-resources__promo-title,
.page-resources__dark-section .page-resources__promo-description,
.page-resources__dark-section .page-resources__faq-question h3,
.page-resources__dark-section .page-resources__faq-answer p,
.page-resources__dark-section .page-resources__feature-title,
.page-resources__dark-section .page-resources__feature-text,
.page-resources__dark-section .page-resources__blog-item-title,
.page-resources__dark-section .page-resources__blog-item-excerpt,
.page-resources__dark-section .page-resources__blog-item-date,
.page-resources__dark-section .page-resources__contact-title,
.page-resources__dark-section .page-resources__contact-description {
  color: var(--text-light); /* Ensure text is light on dark background */
}

.page-resources__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-resources__section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-resources__dark-section .page-resources__section-title {
  color: var(--secondary-color);
}
.page-resources__dark-section .page-resources__section-description {
  color: var(--text-light);
}

/* Highlight text */
.page-resources .highlight {
  color: var(--secondary-color);
}
.page-resources__dark-section .highlight {
  color: var(--secondary-color);
}

/* Hero Section */
.page-resources__hero-section {
  padding: 100px 0;
  text-align: center;
  background-image: url('[GALLERY:bg:888b_link_hero_background,abstract,gradient]'); /* Background image for hero */
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
  z-index: -1;
}

.page-resources__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* CTA Buttons */
.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources__btn-primary:hover {
  background-color: #d6a120;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}
.page-resources__dark-section .page-resources__btn-secondary {
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}
.page-resources__light-bg .page-resources__btn-secondary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Guide Cards */
.page-resources__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__guide-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-resources__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-resources__card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  color: var(--primary-color);
}

.page-resources__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}
.page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__card-text {
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 20px;
  flex-grow: 1;
}

.page-resources__card-button {
  margin: 20px;
  align-self: flex-start;
  width: calc(100% - 40px);
}

/* Game Categories */
.page-resources__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-resources__game-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-resources__game-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}