/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
  color: #ffffff; /* Light text on dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Offset for fixed header - Desktop */
}

/* General Section Styling */
.page-resources__section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--dark-bg-1);
}

.page-resources__dark-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

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

.page-resources__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #E0B14A; /* Auxiliary brand color */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources__section-description a {
  color: #E0B14A;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__section-description a:hover {
  text-decoration: underline;
}

/* Hero Banner Section */
.page-resources__hero-banner {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.page-resources__hero-container {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for banner */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 48px;
  color: #E0B14A;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-resources__hero-description a {
  color: #E0B14A;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__hero-description a:hover {
  text-decoration: underline;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-resources__btn-primary {
  background: #E0B14A;
  color: #0A2463;
  border: 2px solid #E0B14A;
}

.page-resources__btn-primary:hover {
  background: #ffc107;
  border-color: #ffc107;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  background: transparent;
  color: #E0B14A;
  border: 2px solid #E0B14A;
  margin-left: 15px;
}

.page-resources__btn-secondary:hover {
  background: #E0B14A;
  color: #0A2463;
  transform: translateY(-2px);
}

.page-resources__btn-link {
  color: #E0B14A;
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  text-decoration: underline;
}

.page-resources__btn-link:hover {
  color: #ffc107;
}

/* Guide Cards */
.page-resources__guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources__card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-resources__card-image-wrapper {
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-resources__card-title {
  font-size: 24px;
  color: #E0B14A;
  margin-bottom: 15px;
}

.page-resources__card-title a {
  color: #E0B14A;
  text-decoration: none;
}

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

.page-resources__card-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-resources__card-text a {
  color: #E0B14A;
  text-decoration: none;
  font-weight: bold;
}

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

/* Promotion Grid */
.page-resources__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  overflow: hidden;
}

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

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

.page-resources__promo-content {
  padding: 25px;
}

.page-resources__promo-title {
  font-size: 24px;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-resources__promo-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 25px;
}

.page-resources__promo-text a {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__promo-text a:hover {
  text-decoration: underline;
}

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

.page-resources__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

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

.page-resources__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}

.page-resources__game-title {
  font-size: 22px;
  color: #E0B14A;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-resources__game-title a {
  color: #E0B14A;
  text-decoration: none;
}

.page-resources__game-title a:hover {
  text-decoration: underline;
}

.page-resources__game-text {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 15px;
}

.page-resources__game-text a {
  color: #E0B14A;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__game-text a:hover {
  text-decoration: underline;
}

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

.page-resources__support-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__support-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-resources__support-title {
  font-size: 24px;
  color: #0A2463;
  margin-bottom: 15px;
}

.page-resources__support-text {
  font-size: 16px;
  color: #555555;
}

.page-resources__support-text a {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__support-text a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* FAQ container style */
.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ default state - answer 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, opacity 0.3s ease;
  padding: 0 15px;
  opacity: 0;
  color: #f0f0f0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-answer p {
  color: #f0f0f0;
}

.page-resources__faq-answer a {
  color: #E0B14A;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__faq-answer a:hover {
  text-decoration: underline;
}

/* Question style */
.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-resources__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #E0B14A;
}

.page-resources__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Question title style */
.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #ffffff;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffc107;
}

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

.page-resources__blog-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  overflow: hidden;
}

.page-resources__blog-card:hover {
  transform: translateY(-10px);
  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: 25px;
}

.page-resources__blog-title {
  font-size: 22px;
  color: #0A2463;
  margin-bottom: 10px;
}

.page-resources__blog-title a {
  color: #0A2463;
  text-decoration: none;
}

.page-resources__blog-title a:hover {
  text-decoration: underline;
}

.page-resources__blog-date {
  font-size: 14px;
  color: #777777;
  margin-bottom: 15px;
}

.page-resources__blog-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

.page-resources__blog-excerpt a {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__blog-excerpt a:hover {
  text-decoration: underline;
}

/* Call to Action Section */
.page-resources__section--cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #0A2463, #3C5A8F);
  color: #ffffff;
}

.page-resources__cta-title {
  font-size: 40px;
  color: #E0B14A;
  margin-bottom: 20px;
}

.page-resources__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-description a {
  color: #E0B14A;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__cta-description a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 40px;
  }
  .page-resources__hero-description {
    font-size: 18px;
  }
  .page-resources__section-title {
    font-size: 32px;
  }
  .page-resources__cta-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px !important; /* Mobile offset for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__section {
    padding: 60px 0;
  }
  .page-resources__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__hero-container {
    height: 400px;
  }
  .page-resources__hero-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 16px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }
  .page-resources__guide-cards,
  .page-resources__promotion-grid,
  .page-resources__game-grid,
  .page-resources__support-grid,
  .page-resources__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card,
  .page-resources__promo-card,
  .page-resources__game-card,
  .page-resources__support-item,
  .page-resources__blog-card {
    padding: 20px;
  }
  .page-resources__card-title,
  .page-resources__promo-title,
  .page-resources__game-title,
  .page-resources__support-title,
  .page-resources__blog-title {
    font-size: 20px;
  }
  .page-resources__section-title {
    font-size: 28px;
  }
  .page-resources__section-description {
    font-size: 16px;
  }
  .page-resources__faq-question {
    padding: 15px;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
  }
  .page-resources__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  .page-resources__cta-title {
    font-size: 28px;
  }
  .page-resources__cta-description {
    font-size: 16px;
  }
  
  /* Image responsiveness for mobile */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-container,
  .page-resources__guide-cards,
  .page-resources__promotion-grid,
  .page-resources__game-grid,
  .page-resources__support-grid,
  .page-resources__blog-grid,
  .page-resources__promo-card,
  .page-resources__game-card,
  .page-resources__support-item,
  .page-resources__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-container {
    height: 300px;
  }
  .page-resources__hero-title {
    font-size: 28px;
  }
  .page-resources__hero-description {
    font-size: 14px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-bottom: 15px;
  }
  .page-resources__btn-secondary {
    margin-bottom: 0;
  }
  .page-resources__section-title {
    font-size: 24px;
  }
  .page-resources__cta-title {
    font-size: 24px;
  }
}