/* style/resources.css */
.page-resources {
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8;
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 20px 40px;
  background-color: #000080; /* Dark blue background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 1000px; /* Limit image width */
  object-fit: cover;
}

.page-resources__hero-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for emphasis */
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.6;
}

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

.page-resources__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__hero-button--primary {
  background-color: #FFD700; /* Gold */
  color: #000080; /* Dark blue text */
}

.page-resources__hero-button--primary:hover {
  background-color: #e6c200; /* Darker gold */
  transform: translateY(-2px);
}

.page-resources__hero-button--secondary {
  background-color: #000080; /* Dark blue */
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-resources__hero-button--secondary:hover {
  background-color: #000066; /* Darker blue */
  transform: translateY(-2px);
}

/* Articles Section */
.page-resources__articles-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-resources__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  color: #000080; /* Dark blue */
}

.page-resources__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__article-card {
  background-color: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-resources__article-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-resources__article-title a {
  color: #000080; /* Dark blue link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #FFD700; /* Gold on hover */
}

.page-resources__article-category {
  font-size: 0.9em;
  color: #FFD700; /* Gold */
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.page-resources__article-summary {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__article-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700; /* Gold */
  color: #000080; /* Dark blue text */
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__article-button:hover {
  background-color: #e6c200; /* Darker gold */
  transform: translateY(-2px);
}

/* Call to Action Section */
.page-resources__cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #000080, #000066); /* Dark blue gradient */
  color: #ffffff;
  text-align: center;
}

.page-resources__cta-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold */
}

.page-resources__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button--primary {
  background-color: #FFD700; /* Gold */
  color: #000080; /* Dark blue text */
}

.page-resources__cta-button--primary:hover {
  background-color: #e6c200; /* Darker gold */
  transform: translateY(-2px);
}

.page-resources__cta-button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-resources__cta-button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1); /* Light gold transparent */
  transform: translateY(-2px);
}

/* Responsible Gaming Section */
.page-resources__responsible-gaming-section {
  padding: 60px 0;
  background-color: #f0f0f0;
  text-align: center;
}

.page-resources__responsible-gaming-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-resources__responsible-gaming-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000080; /* Dark blue */
  color: #FFD700; /* Gold text */
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__responsible-gaming-button:hover {
  background-color: #000066; /* Darker blue */
  transform: translateY(-2px);
}

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

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

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

  .page-resources__hero-button {
    width: 80%;
    max-width: 300px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__section-subtitle {
    font-size: 0.9em;
  }

  .page-resources__article-image {
    height: 200px;
  }

  .page-resources__article-title {
    font-size: 1.3em;
  }

  .page-resources__cta-title {
    font-size: 2em;
  }

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

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

  .page-resources__cta-button {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-section {
    padding: 60px 15px 30px;
  }

  .page-resources__articles-section,
  .page-resources__cta-section,
  .page-resources__responsible-gaming-section {
    padding: 40px 0;
  }

  .page-resources__hero-title {
    font-size: 1.6em;
  }

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

  .page-resources__hero-button,
  .page-resources__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-resources__section-title,
  .page-resources__cta-title {
    font-size: 1.5em;
  }

  .page-resources__article-card {
    margin-bottom: 20px;
  }
}