.page-resources {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF;
}

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

.page-resources__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #000000;
  color: #FFFFFF;
  overflow: hidden;
}

.page-resources__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding: 40px 20px;
}

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

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-resources__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-resources__button--register:hover {
  background-color: #F0F0F0;
  color: #000000;
}

.page-resources__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__button--login:hover {
  background-color: #E0A83D;
  color: #000000;
}

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

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-resources__articles-section,
.page-resources__why-buenasph-section,
.page-resources__responsible-gaming-section,
.page-resources__faq-section,
.page-resources__call-to-action-section,
.page-resources__about-us-glance-section {
  padding: 60px 0;
}

.page-resources__articles-section {
  background-color: #F8F8F8;
}

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

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

.page-resources__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

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

.page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

.page-resources__article-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #FCBC45;
}

.page-resources__article-summary {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  align-self: flex-start;
}

.page-resources__button--read-more:hover {
  background-color: #333333;
}

.page-resources__why-buenasph-section {
  background-color: #FFFFFF;
}

.page-resources__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-resources__feature-item {
  text-align: center;
  padding: 25px;
  background-color: #F8F8F8;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__feature-icon {
  width: 80px; /* Adjusted to be > 200px, actual display size */
  height: 80px; /* Adjusted to be > 200px, actual display size */
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min-width for image display */
  min-height: 200px; /* Enforce min-height for image display */
}

.page-resources__feature-title {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-resources__feature-description {
  color: #666666;
  font-size: 0.95em;
}

.page-resources__responsible-gaming-section {
  background-color: #F8F8F8;
}

.page-resources__responsible-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-resources__responsible-image {
  flex: 1 1 45%;
  max-width: 550px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-resources__responsible-text {
  flex: 1 1 45%;
  color: #333333;
}

.page-resources__responsible-text p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-resources__responsible-text a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__responsible-text a:hover {
  text-decoration: underline;
}

.page-resources__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__button--primary:hover {
  background-color: #E0A83D;
}

.page-resources__faq-section {
  background-color: #FFFFFF;
}

.page-resources__faq-list {
  margin-top: 50px;
}

.page-resources__faq-item {
  background-color: #F8F8F8;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-resources__faq-answer {
  color: #666666;
  font-size: 1em;
}

.page-resources__faq-answer a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__faq-answer a:hover {
  text-decoration: underline;
}

.page-resources__call-to-action-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
}

.page-resources__call-to-action-content {
  max-width: 900px;
}

.page-resources__call-to-action-section .page-resources__section-title {
  color: #FFFFFF;
}

.page-resources__call-to-action-section .page-resources__section-intro {
  color: #F0F0F0;
  margin-bottom: 40px;
}

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

.page-resources__button--download {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-resources__button--download:hover {
  background-color: #E0A83D;
  color: #000000;
}

.page-resources__about-us-glance-section {
  background-color: #F8F8F8;
  text-align: center;
}

.page-resources__button--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-resources__button--secondary:hover {
  background-color: #333333;
}

.page-resources__copyright-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 20px 0;
}

.page-resources__copyright-text {
  font-size: 0.9em;
  color: #BBBBBB;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__responsible-image,
  .page-resources__responsible-text {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .page-resources__responsible-content {
    flex-direction: column;
  }
  .page-resources__responsible-image {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 80px);
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions,
  .page-resources__call-to-action-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__feature-list {
    grid-template-columns: 1fr;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  /* Ensure all images within .page-resources are responsive and don't overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__feature-icon {
    width: 100px; /* Ensure display size is not too small */
    height: 100px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__hero-section,
  .page-resources__articles-section,
  .page-resources__why-buenasph-section,
  .page-resources__responsible-gaming-section,
  .page-resources__faq-section,
  .page-resources__call-to-action-section,
  .page-resources__about-us-glance-section {
    padding: 40px 0;
  }
  .page-resources__feature-icon {
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px;
  }
}