/* style/resources.css */
.page-resources {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Explicitly set for clarity if not from shared */
}

.page-resources__section {
  padding: 60px 0;
}

.page-resources__section--introduction,
.page-resources__section--guides,
.page-resources__section--news-updates,
.page-resources__section--faq,
.page-resources__section--responsible-gaming,
.page-resources__section--legal {
  background-color: #f8f8f8; /* Light background for sections */
  border-bottom: 1px solid #eee;
}

.page-resources__section--cta {
  background-color: #26A9E0; /* Brand primary color for CTA section */
  color: #ffffff; /* White text on primary color background */
  padding: 80px 0;
}

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

.page-resources__heading {
  font-size: 36px;
  font-weight: bold;
  color: #26A9E0; /* Brand primary color for headings */
  text-align: center;
  margin-bottom: 30px;
}

.page-resources__heading--white {
  color: #ffffff;
}

.page-resources__paragraph {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__paragraph--white {
  color: #ffffff;
}

.page-resources__text-center {
  text-align: center;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
}

.page-resources__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources__hero-content h1 {
  font-size: 48px;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-content p {
  font-size: 20px;
  color: #555555;
  margin-bottom: 30px;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__cta-button:hover {
  background: #1e87b5; /* Slightly darker primary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button--inverted {
  background: #ffffff;
  color: #26A9E0;
}

.page-resources__cta-button--inverted:hover {
  background: #f0f0f0;
  color: #1e87b5;
}

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

.page-resources__card {
  background: #ffffff;
  border-radius: 12px;
  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__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__card img {
  width: 100%;
  height: 250px; /* Fixed height for consistent card image size */
  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: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__card-title a {
  color: #26A9E0; /* Primary color for card titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #1e87b5;
  text-decoration: underline;
}

.page-resources__card-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
  text-align: left; /* Override global center alignment for card paragraphs */
  flex-grow: 1;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
  background: #1e87b5;
  border-color: #1e87b5;
  transform: translateY(-1px);
}

.page-resources__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background: #e0f2f7; /* Light background on hover */
  color: #1e87b5;
  border-color: #1e87b5;
  transform: translateY(-1px);
}

.page-resources__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* News List */
.page-resources__news-list {
  margin-top: 40px;
}

.page-resources__news-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}