.page-resources {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #002244;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-resources h1, .page-resources h2, .page-resources h3, .page-resources h4, .page-resources h5, .page-resources h6 {
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-resources h1 {
  font-size: 2.8em;
  text-align: center;
  color: var(--text-light);
}

.page-resources h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  position: relative;
}

.page-resources h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-resources h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-resources p {
  margin-bottom: 15px;
}

.page-resources a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources a:hover {
  color: var(--secondary-color);
}

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

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

.page-resources__cta-button--secondary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-resources__text-link {
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources__text-link:hover {
  color: var(--secondary-color);
}

.page-resources__img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Hero Banner Section */
.page-resources__hero-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-resources__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__hero-content p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources__hero-image {
  width: 100%;
  max-width: 1000px;
}

.page-resources__hero-image img {
  border: 3px solid var(--secondary-color);
}

/* General Section Styling */
.page-resources__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.page-resources__section:nth-of-type(even) {
  background-color: #ffffff;
}

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

.page-resources__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-resources__card h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-resources__card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources__card h3 a:hover {
  color: var(--secondary-color);
}

.page-resources__card p {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
}

.page-resources__card-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-resources__card-link:hover {
  text-decoration: underline;
}

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

.page-resources__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid var(--secondary-color);
}

.page-resources__game-card h3 {
  font-size: 1.3em;
  margin: 20px 15px 10px 15px;
  flex-shrink: 0;
}

.page-resources__game-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources__game-card h3 a:hover {
  color: var(--secondary-color);
}

.page-resources__game-card p {
  padding: 0 20px 20px 20px;
  font-size: 0.9em;
  color: #555555;
  flex-grow: 1;
}

.page-resources__game-card .page-resources__cta-button {
  margin: 0 20px 25px 20px;
  width: calc(100% - 40px);
  padding: 12px 20px;
  font-size: 1em;
  flex-shrink: 0;
}

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

.page-resources__platform-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__platform-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid var(--secondary-color);
}

.page-resources__platform-card h3 {
  font-size: 1.4em;
  margin: 20px 15px 10px 15px;
  flex-shrink: 0;
}

.page-resources__platform-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources__platform-card h3 a:hover {
  color: var(--secondary-color);
}

.page-resources__platform-card p {
  padding: 0 20px 20px 20px;
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
}

.page-resources__platform-card .page-resources__cta-button {
  margin: 0 20px 25px 20px;
  width: calc(100% - 40px);
  padding: 12px 20px;
  font-size: 1em;
  flex-shrink: 0;
}

/* Responsible Gambling Section */
.page-resources__responsible-gambling {
  text-align: center;
}

.page-resources__responsible-gambling p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-top: 30px;
}

.page-resources__img-left {
  flex: 1 1 400px;
  max-width: 500px;
  margin-right: 20px;
  border: 2px solid var(--primary-color);
}

.page-resources__list-container {
  flex: 1 1 400px;
  text-align: left;
  padding-left: 20px;
}

.page-resources__responsible-gambling ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-resources__responsible-gambling ul li {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources__responsible-gambling ul li strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-resources__faq {
  background-color: var(--bg-light);
}

.page-resources__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  color: #555555;
  background-color: #fcfcfc;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

/* Latest Articles Section */
.page-resources__latest-articles {
  text-align: center;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  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 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid var(--secondary-color);
}

.page-resources__article-card h3 {
  font-size: 1.3em;
  margin: 20px 20px 10px 20px;
  flex-shrink: 0;
}

.page-resources__article-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources__article-card h3 a:hover {
  color: var(--secondary-color);
}

.page-resources__article-card p {
  padding: 0 20px 20px 20px;
  font-size: 0.9em;
  color: #555555;
  flex-grow: 1;
}

.page-resources__read-more {
  display: inline-block;
  margin: 0 20px 25px 20px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-resources__read-more:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources h1 {
    font-size: 2.5em;
  }
  .page-resources h2 {
    font-size: 2em;
  }
  .page-resources__hero-banner {
    flex-direction: column;
    padding: 60px 15px;
  }
  .page-resources__img-left {
    margin-right: 0;
    margin-bottom: 30px;
  }
  .page-resources__content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-resources__list-container {
    padding-left: 0;
  }
  .page-resources__responsible-gambling ul li {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-resources h1 {
    font-size: 2em;
  }
  .page-resources h2 {
    font-size: 1.8em;
  }
  .page-resources h3 {
    font-size: 1.3em;
  }
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__grid, .page-resources__game-grid, .page-resources__platform-grid, .page-resources__article-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.05em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources h1 {
    font-size: 1.8em;
  }
  .page-resources h2 {
    font-size: 1.6em;
  }
  .page-resources__hero-banner {
    padding: 40px 10px;
  }
  .page-resources__hero-content p {
    font-size: 1em;
  }
  .page-resources__section {
    padding: 30px 10px;
  }
}