.page-resources {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark: #343a40;
  --text-color-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --button-hover-bg: #0056b3;
  --button-secondary-hover-bg: #e0a800;
}

.page-resources .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.page-resources .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: var(--text-color-light);
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.page-resources .hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
}

.page-resources .hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-resources .cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources .cta-button:hover {
  background-color: var(--button-secondary-hover-bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
}

.page-resources .section-description {
  font-size: 1.1em;
  color: var(--text-color-dark);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

.page-resources .content-section {
  padding: 60px 0;
}

.page-resources .bg-light {
  background-color: var(--bg-light);
}

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

.page-resources .resource-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 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 .resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-resources .card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  margin-bottom: 0;
  flex-grow: 1;
}

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

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

.page-resources .card-text {
  font-size: 1em;
  color: var(--text-color-dark);
  padding: 0 20px 20px;
  line-height: 1.6;
}

.page-resources .card-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 12px 25px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease;
  text-align: center;
  width: 100%;
  border: none;
  cursor: pointer;
}

.page-resources .card-button:hover {
  background-color: var(--button-hover-bg);
}

.page-resources .paragraph-text {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-color-dark);
  margin: 40px auto;
  max-width: 900px;
  text-align: justify;
}

.page-resources .inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources .inline-link:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.page-resources .responsible-gaming-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-resources .full-width-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  object-fit: cover;
}

.page-resources .sub-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-resources .bullet-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 30px;
  color: var(--text-color-dark);
  font-size: 1.05em;
  line-height: 1.8;
}

.page-resources .list-strong {
  color: var(--primary-color);
}

/* FAQ Styles */
.page-resources .faq-container {
  max-width: 900px;
  margin: 50px auto;
}

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

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

.faq-question:hover {
  background: var(--bg-light);
}

.page-resources .faq-question-title {
  font-size: 1.3em;
  color: var(--text-color-dark);
  margin: 0;
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background: var(--bg-light);
  padding: 0 25px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
}

.page-resources .faq-answer-text {
  font-size: 1em;
  color: var(--text-color-dark);
  line-height: 1.7;
  margin: 0;
}

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

.page-resources .blog-post-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 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 .blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-resources .blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources .blog-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

.page-resources .blog-excerpt {
  font-size: 0.95em;
  color: var(--text-color-dark);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources .read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-resources .read-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources .hero-title {
    font-size: 2.5em;
  }
  .page-resources .hero-subtitle {
    font-size: 1.1em;
  }
  .page-resources .section-title {
    font-size: 2em;
  }
  .page-resources .sub-title {
    font-size: 1.8em;
  }
  .page-resources .resource-card-grid, .page-resources .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources .card-title {
    font-size: 1.4em;
  }
  .page-resources .blog-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-resources .hero-section {
    padding: 60px 0;
  }
  .page-resources .hero-title {
    font-size: 2em;
  }
  .page-resources .hero-subtitle {
    font-size: 1em;
  }
  .page-resources .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources .section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }
  .page-resources .section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources .content-section {
    padding: 40px 0;
  }
  .page-resources .resource-card-grid, .page-resources .blog-grid {
    grid-template-columns: 1fr;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .page-resources .faq-question-title {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-resources .paragraph-text {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-title {
    font-size: 1.8em;
  }
  .page-resources .hero-subtitle {
    font-size: 0.9em;
  }
  .page-resources .cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-resources .section-title {
    font-size: 1.5em;
  }
  .page-resources .sub-title {
    font-size: 1.5em;
  }
  .page-resources .card-image {
    height: 180px;
  }
  .page-resources .card-title {
    font-size: 1.2em;
  }
  .page-resources .blog-image {
    height: 160px;
  }
  .page-resources .blog-title {
    font-size: 1.1em;
  }
}