/* style/resources.css */
:root {
    --primary-color: #0056B3;
    --secondary-color: #FFC107;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f1f3f5;
    --bg-dark: #004085; /* Slightly darker primary for contrast on dark sections */
    --border-light: #e0e0e0;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--dark-bg-1); /* Inherit from shared.css, which is dark */
}

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

.page-resources__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-resources__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources__main-title,
.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    color: inherit; /* Inherit color from parent section */
}

.page-resources__section-description,
.page-resources__intro-text {
    font-size: 17px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    color: inherit;
}

/* Fixed navigation padding */
.page-resources__intro-section {
    padding-top: 120px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
}

.page-resources__cta-wrapper {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-resources__btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources__btn-primary:hover {
    background-color: #e6a700; /* Darker secondary */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources__btn-secondary {
    background-color: var(--text-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Benefits Section */
.page-resources__benefits-section {
    padding: 60px 0;
}

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

.page-resources__benefit-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-resources__benefit-icon {
    width: 100px; /* Minimum 200x200px, but icon itself can be smaller visually */
    height: auto;
    margin-bottom: 20px;
    max-width: 100px;
    display: block;
    object-fit: contain;
}

.page-resources__benefit-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources__benefit-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Criteria Section */
.page-resources__criteria-section {
    padding: 60px 0;
}

.page-resources__criteria-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-resources__criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-resources__criteria-icon {
    width: 80px;
    height: auto;
    flex-shrink: 0;
    max-width: 80px;
    display: block;
    object-fit: contain;
}

.page-resources__criteria-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-resources__criteria-text {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Game Types Section */
.page-resources__game-types-section {
    padding: 60px 0;
}

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

.page-resources__game-type-card {
    background-color: var(--text-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__game-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-resources__game-type-image {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    max-width: 150px;
    display: block;
    object-fit: contain;
}

.page-resources__game-type-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-resources__game-type-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Promotions Section */
.page-resources__promotions-section {
    padding: 60px 0;
}

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

.page-resources__promo-card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-resources__promo-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources__promo-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 25px;
}

.page-resources__promo-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* News Section */
.page-resources__news-section {
    padding: 60px 0;
}

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

.page-resources__news-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

.page-resources__news-title {
    font-size: 20px;
    font-weight: bold;
    padding: 20px 20px 10px;
    color: var(--primary-color);
}

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

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

.page-resources__news-excerpt {
    font-size: 15px;
    color: var(--text-dark);
    padding: 0 20px 15px;
    line-height: 1.7;
    flex-grow: 1;
}

.page-resources__news-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0 20px 20px;
    transition: color 0.3s ease;
}

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

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

.page-resources__faq-list {
    margin-top: 40px;
}

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

.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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: var(--primary-color);
  transform: rotate(45deg);
}

/* Final CTA Section */
.page-resources__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__main-title {
        font-size: 32px;
    }
    .page-resources__section-title {
        font-size: 30px;
    }
    .page-resources__intro-text,
    .page-resources__section-description {
        font-size: 16px;
    }
    .page-resources__benefits-grid,
    .page-resources__game-types-grid,
    .page-resources__promotions-grid,
    .page-resources__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__criteria-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-resources__criteria-icon {
        margin-bottom: 15px;
    }
    .page-resources__criteria-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-resources__intro-section {
        padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
    }
    .page-resources__main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-resources__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    .page-resources__intro-text,
    .page-resources__section-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-resources__benefits-section,
    .page-resources__criteria-section,
    .page-resources__game-types-section,
    .page-resources__promotions-section,
    .page-resources__news-section,
    .page-resources__faq-section,
    .page-resources__final-cta-section {
        padding: 40px 0;
    }
    .page-resources__benefits-grid,
    .page-resources__game-types-grid,
    .page-resources__promotions-grid,
    .page-resources__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__criteria-item {
        padding: 20px;
        gap: 15px;
    }
    .page-resources__criteria-title {
        font-size: 20px;
    }
    .page-resources__criteria-text {
        font-size: 14px;
    }
    .page-resources__benefit-icon,
    .page-resources__criteria-icon,
    .page-resources__game-type-image {
        width: 60px;
        max-width: 60px;
    }
    .page-resources__news-image {
        height: 180px;
    }
    
    /* FAQ Responsive */
    .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;
    }
}

/* Ensure all images are responsive and containers don't overflow */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-resources__section,
.page-resources__card,
.page-resources__container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; padding-right: 15px; handled by .page-resources__container */
  }
}