/* style/resources.css */
.page-resources {
  padding-top: var(--header-offset, 120px); /* Default offset for fixed header */
  background-color: #FFFFFF; /* Body background is white */
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
  text-align: center;
  color: #FFFFFF; /* Text color for hero content over image */
}

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

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

.page-resources__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF; /* Ensure title is white */
}

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

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

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

.page-resources__hero-button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000;
}

.page-resources__hero-button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-resources__hero-button--secondary {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-resources__hero-button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-resources__introduction-section {
  padding: 60px 0;
  background-color: #F8F8F8; /* Light background for contrast */
  color: #333333;
}

.page-resources__section-heading {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #000000;
}

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

/* Articles Grid */
.page-resources__articles-grid {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-resources__section-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #555555;
}

.page-resources__article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
  flex-grow: 1; /* Allow title to take up space */
}

.page-resources__card-summary {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: #555555;
}

.page-resources__read-more-btn {
  display: inline-block;
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start; /* Align to start for consistent look */
}

.page-resources__read-more-btn:hover {
  background-color: #333333;
}

/* Deep Dive Section */
.page-resources__deep-dive-section {
  padding: 60px 0;
  background-color: #F0F0F0;
  color: #333333;
}

.page-resources__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__sub-heading {
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000000;
}

.page-resources__feature-list,
.page-resources__game-category-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-resources__list-item {
  background-color: #FFFFFF;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #FCBC45; /* Accent color */
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
}

.page-resources__list-item strong {
  color: #000000;
}

/* Call to Action Section */
.page-resources__cta-section {
  padding: 80px 0;
  background-color: #000000; /* Main color as background */
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__cta-content {
  position: relative;
  z-index: 1;
}

.page-resources__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
  z-index: 0;
}

.page-resources__cta-section .page-resources__section-heading {
  color: #FFFFFF;
  margin-bottom: 25px;
}

.page-resources__cta-section .page-resources__text-content {
  color: #F0F0F0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000;
}

.page-resources__cta-button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-resources__cta-button--secondary {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
}

.page-resources__cta-button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-resources__cta-button--tertiary {
  background-color: transparent;
  color: #FCBC45;
  border: 2px solid #FCBC45;
}

.page-resources__cta-button--tertiary:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__hero-button,
  .page-resources__cta-button {
    width: 100%;
    max-width: 300px;
  }

  .page-resources__section-heading {
    font-size: 2em;
  }

  .page-resources__sub-heading {
    font-size: 1.6em;
  }

  .page-resources__article-cards {
    grid-template-columns: 1fr;
  }

  /* Ensure content images are responsive and don't overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}

/* Mobile content area overflow prevention */
@media (max-width: 768px) {
  .page-resources {
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
  .page-resources__container {
    padding: 0 15px; /* Adjust padding for smaller screens */
  }
  /* Ensure all images within .page-resources are responsive */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
}