/* style/resources.css */
.page-resources {
  color: #ffffff; /* Light text for dark body background */
  background-color: #111;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Header offset to prevent content being hidden by fixed header */
.page-resources__hero-intro-section {
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, #1A237E, #0d0d0d);
  text-align: center;
}

.page-resources__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__intro-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-resources__section-description {
  font-size: 16px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #1A237E;
  border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  color: #0d0d0d;
  border-color: #e6c200;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A237E;
}

.page-resources__btn-full-width {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  text-align: center;
}

/* Benefits Section */
.page-resources__benefits-section {
  padding: 60px 0;
  background-color: #1A237E;
}

.page-resources__benefits-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-resources__benefits-text {
  flex: 1;
}

.page-resources__benefits-text p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-resources__benefits-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFD700" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #ffffff;
}

.page-resources__benefits-list li strong {
  color: #FFD700;
}

.page-resources__benefits-image {
  flex: 1;
  text-align: center;
}

.page-resources__benefits-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Guide Sections */
.page-resources__guide-section {
  padding: 60px 0;
}

.page-resources__guide-section--sports {
  background-color: #0d0d0d;
}

.page-resources__guide-section--casino {
  background-color: #1A237E;
}

.page-resources__guide-section--security {
  background-color: #0d0d0d;
}

.page-resources__guide-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-resources__guide-content--reverse {
  flex-direction: row-reverse;
}

.page-resources__guide-image {
  flex: 1;
  text-align: center;
}

.page-resources__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__guide-text {
  flex: 1;
}

.page-resources__guide-subtitle {
  font-size: 28px;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-resources__guide-text p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Responsible Gaming Section */
.page-resources__responsible-gaming-section {
  padding: 60px 0;
  background-color: #1A237E;
  text-align: center;
}

.page-resources__responsible-gaming-image {
  margin-bottom: 40px;
}

.page-resources__responsible-gaming-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #222;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #1a1a1a;
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 15px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A237E;
  border: 1px solid #FFD700;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #2a348e;
  border-color: #e6c200;
}

.page-resources__faq-question:active {
  background: #3a449e;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

/* News Section */
.page-resources__news-section {
  padding: 60px 0;
  background-color: #1A237E;
}

.page-resources__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-resources__news-card {
  background-color: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-resources__news-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

.page-resources__news-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
}

.page-resources__news-excerpt {
  font-size: 15px;
  color: #f0f0f0;
  margin: 0 20px 20px 20px;
}

/* CTA Contact Section */
.page-resources__cta-contact-section {
  padding: 60px 0;
  background-color: #0d0d0d;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 36px;
  }

  .page-resources__section-title {
    font-size: 30px;
  }

  .page-resources__benefits-content,
  .page-resources__guide-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources__guide-content--reverse {
    flex-direction: column-reverse;
  }

  .page-resources__news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-resources__news-card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__container {
    padding: 15px;
  }

  .page-resources__hero-intro-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-resources__main-title {
    font-size: 28px;
  }

  .page-resources__intro-description {
    font-size: 16px;
  }

  .page-resources__section-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-top: 20px;
  }

  .page-resources__section-description {
    font-size: 15px;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__benefits-section, .page-resources__guide-section, .page-resources__responsible-gaming-section, .page-resources__faq-section, .page-resources__news-section, .page-resources__cta-contact-section {
    padding: 40px 0;
  }

  .page-resources__benefits-list li {
    font-size: 15px;
  }

  .page-resources__guide-subtitle {
    font-size: 22px;
  }

  .page-resources__guide-text p {
    font-size: 15px;
  }

  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  .page-resources__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__news-card img {
    
  }

  .page-resources__news-title {
    font-size: 18px;
    margin: 15px 15px 8px 15px;
  }

  .page-resources__news-excerpt {
    font-size: 14px;
    margin: 0 15px 15px 15px;
  }

  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__container, 
  .page-resources__benefits-content, 
  .page-resources__guide-content, 
  .page-resources__responsible-gaming-section, 
  .page-resources__faq-section, 
  .page-resources__news-section, 
  .page-resources__cta-contact-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }
}