.page-resources {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #1A202C;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

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

.page-resources section {
  padding: 60px 0;
  text-align: center;
}

.page-resources .section-title {
  font-size: 38px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-resources .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: var(--background-dark);
  color: var(--text-color-light);
  overflow: hidden;
}

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

.page-resources .hero-image {
  width: 100%;
  height: 450px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-resources .hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-resources .hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #e0e0e0;
  line-height: 1.6;
}

.page-resources .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-resources .cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* Guides Section */
.page-resources .section-guides {
  background: var(--background-light);
}

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

.page-resources .guide-card {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources .guide-card .card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
  min-height: 70px; /* Ensure consistent title height */
}

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

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

.page-resources .card-text {
  font-size: 16px;
  color: var(--text-color-dark);
  padding: 0 20px;
  margin-bottom: 20px;
  line-height: 1.6;
  min-height: 90px; /* Ensure consistent text height */
}

.page-resources .card-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px 20px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

/* News & Updates Section */
.page-resources .section-news-updates {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-resources .section-news-updates .section-title {
  color: var(--secondary-color);
}

.page-resources .section-news-updates .section-description {
  color: #e0e0e0;
}

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

.page-resources .news-item {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .news-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

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

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

.page-resources .news-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 70px; /* Consistent height */
}

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

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

.page-resources .news-excerpt {
  font-size: 16px;
  color: var(--text-color-dark);
  margin-bottom: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-resources .news-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources .news-link:hover {
  background: #e6c200;
}

/* FAQ & Support Section */
.page-resources .section-faq-support {
  background: var(--background-light);
}

.page-resources .faq-list {
  max-width: 900px;
  margin: 40px auto 60px auto;
  text-align: left;
}

.page-resources .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--card-background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-resources .faq-question:hover {
  background: #f5f5f5;
}

.page-resources .faq-question-title {
  font-size: 20px;
  color: var(--primary-color);
  margin: 0;
  flex-grow: 1;
}

.page-resources .faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-resources .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  color: var(--text-color-dark);
  text-align: left;
}

.page-resources .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px 25px 25px 25px;
  background: #f9f9f9;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

.page-resources .faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.page-resources .contact-support {
  background: var(--primary-color);
  color: var(--text-color-light);
  padding: 40px;
  border-radius: 12px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources .support-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid var(--secondary-color);
}

.page-resources .contact-title {
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-resources .contact-text {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Responsible Gambling Section */
.page-resources .section-responsible-gambling {
  background: #f0f0f0;
}

.page-resources .responsible-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 40px auto;
  text-align: left;
  background: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-resources .responsible-image {
  width: 100%;
  max-width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-resources .responsible-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.page-resources .responsible-list li {
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-color-dark);
  line-height: 1.6;
  position: relative;
  padding-left: 30px;
}

.page-resources .responsible-list li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 20px;
  top: -2px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources .hero-image {
    height: 350px;
  }
  .page-resources .hero-title {
    font-size: 42px;
  }
  .page-resources .hero-description {
    font-size: 18px;
  }
  .page-resources .section-title {
    font-size: 32px;
  }
  .page-resources .section-description {
    font-size: 16px;
  }
  .page-resources .news-grid {
    grid-template-columns: 1fr;
  }
  .page-resources .responsible-content {
    flex-direction: column;
  }
  .page-resources .responsible-image {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources .hero-section {
    padding: 60px 15px;
  }
  .page-resources .hero-image {
    height: 280px;
  }
  .page-resources .hero-title {
    font-size: 32px;
  }
  .page-resources .hero-description {
    font-size: 16px;
  }
  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-resources section {
    padding: 40px 0;
  }
  .page-resources .section-title {
    font-size: 28px;
  }
  .page-resources .section-description {
    font-size: 15px;
  }
  .page-resources .guides-grid {
    grid-template-columns: 1fr;
  }
  .page-resources .card-image {
    height: 200px;
  }
  .page-resources .guide-card .card-title {
    font-size: 20px;
    min-height: auto;
  }
  .page-resources .card-text {
    font-size: 15px;
    min-height: auto;
  }
  .page-resources .news-image {
    height: 180px;
  }
  .page-resources .news-title {
    font-size: 20px;
    min-height: auto;
  }
  .page-resources .news-excerpt {
    font-size: 15px;
  }
  .page-resources .faq-question {
    padding: 15px 20px;
  }
  .page-resources .faq-question-title {
    font-size: 18px;
  }
  .page-resources .faq-toggle {
    font-size: 24px;
  }
  .page-resources .faq-answer {
    padding: 0 20px;
  }
  .page-resources .faq-item.active .faq-answer {
    padding: 15px 20px 20px 20px;
  }
  .page-resources .contact-support {
    padding: 30px;
  }
  .page-resources .support-image {
    width: 120px;
    height: 120px;
  }
  .page-resources .contact-title {
    font-size: 26px;
  }
  .page-resources .contact-text {
    font-size: 16px;
  }
  .page-resources .responsible-content {
    padding: 20px;
  }
  .page-resources .responsible-image {
    height: 200px;
  }
  .page-resources .responsible-list li {
    font-size: 15px;
    padding-left: 25px;
  }
  .page-resources .responsible-list li::before {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-image {
    height: 200px;
  }
  .page-resources .hero-title {
    font-size: 26px;
  }
  .page-resources .hero-description {
    font-size: 14px;
  }
  .page-resources .section-title {
    font-size: 24px;
  }
  .page-resources .section-description {
    font-size: 14px;
  }
  .page-resources .guide-card .card-title {
    font-size: 18px;
  }
  .page-resources .card-text {
    font-size: 14px;
  }
  .page-resources .news-title {
    font-size: 18px;
  }
  .page-resources .news-excerpt {
    font-size: 14px;
  }
  .page-resources .faq-question-title {
    font-size: 16px;
  }
  .page-resources .faq-toggle {
    font-size: 20px;
  }
  .page-resources .contact-title {
    font-size: 22px;
  }
  .page-resources .contact-text {
    font-size: 14px;
  }
  .page-resources .responsible-list li {
    font-size: 14px;
  }
}