/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default page background */
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.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.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

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

/* Video Showcase Section */
.page-resources__video-showcase {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #FFFFFF;
  text-align: center;
}

.page-resources__video-showcase .page-resources__section-title {
  color: #FFFFFF;
}

.page-resources__video-showcase .page-resources__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 30px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
  background: transparent; /* Make it transparent */
}


/* General Section Styles */
.page-resources__introduction-section,
.page-resources__games-section,
.page-resources__app-download-section,
.page-resources__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-resources__guide-section,
.page-resources__promotions-section,
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-resources__dark-bg .page-resources__section-title {
  color: #FFFFFF;
}

.page-resources__dark-bg .page-resources__text-block {
  color: #F0F0F0;
}

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

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

.page-resources__guide-card:hover {
  transform: translateY(-5px);
}

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

.page-resources__guide-card .page-resources__card-title {
  font-size: 1.5em;
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-resources__guide-card .page-resources__card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__guide-card .page-resources__card-title a:hover {
  color: #005f2e; /* Darker shade of brand color */
}

.page-resources__btn-link {
  display: inline-block;
  background-color: #017439;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-resources__btn-link:hover {
  background-color: #005f2e;
}


/* Games Section */
.page-resources__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-resources__game-card:hover {
  transform: translateY(-5px);
}

.page-resources__game-card .page-resources__card-title {
  font-size: 1.4em;
  margin: 15px 15px 8px 15px;
  font-weight: bold;
}

.page-resources__game-card .page-resources__card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__game-card .page-resources__card-title a:hover {
  color: #005f2e;
}