/* style/resources.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f1f3f5;
  --bg-dark: #0A192F;
  --border-light: #e0e0e0;
  --highlight-color: #FFD700;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light); /* Default light background for main sections */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: var(--primary-color);
  color: var(--text-light);
}

.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%;
  margin-bottom: 30px;
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources__main-heading {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources__section {
  padding: 60px 20px;
  margin: 0 auto;
}

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

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

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

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-resources__section-title--white {
  color: var(--text-light);
}

.page-resources__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-resources__paragraph--white {
  color: var(--text-light);
}

.page-resources__highlight {
  font-weight: bold;
  color: var(--primary-color);
}

.page-resources__paragraph--white .page-resources__highlight {
  color: var(--secondary-color);
}

.page-resources__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-resources__text-link--white {
  color: var(--secondary-color);
}

.page-resources__text-link--white:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.page-resources__card-grid,
.page-resources__game-type-grid,
.page-resources__promotion-grid,
.page-resources__responsible-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-resources__card,
.page-resources__game-type-card,
.page-resources__promotion-card,
.page-resources__responsible-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources__card:hover,
.page-resources__game-type-card:hover,
.page-resources__promotion-card:hover,
.page-resources__responsible-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__card-title,
.page-resources__game-type-title,
.page-resources__promotion-title,
.page-resources__responsible-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources__card-image,
.page-resources__game-type-image,
.page-resources__promotion-image,
.page-resources__responsible-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 150px; /* Enforce minimum size */
}

.page-resources__card-text,
.page-resources__game-type-text,
.page-resources__promotion-text,
.page-resources__responsible-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
  text-align: justify;
}

.page-resources__center-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Styles */
.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.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.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  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: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 32px;
  height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change + to X or - */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-heading {
    font-size: 36px;
  }
  .page-resources__section-title {
    font-size: 30px;
  }
  .page-resources__card-title,
  .page-resources__game-type-title,
  .page-resources__promotion-title,
  .page-resources__responsible-title {
    font-size: 22px;
  }
  .page-resources__paragraph {
    font-size: 15px;
  }
  .page-resources__card-text,
  .page-resources__game-type-text,
  .page-resources__promotion-text,
  .page-resources__responsible-text {
    font-size: 14px;
  }
  .page-resources__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__main-heading {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-resources__card-grid,
  .page-resources__game-type-grid,
  .page-resources__promotion-grid,
  .page-resources__responsible-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card,
  .page-resources__game-type-card,
  .page-resources__promotion-card,
  .page-resources__responsible-item {
    padding: 25px;
  }
  .page-resources__card-title,
  .page-resources__game-type-title,
  .page-resources__promotion-title,
  .page-resources__responsible-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-resources__card-image,
  .page-resources__game-type-image,
  .page-resources__promotion-image,
  .page-resources__responsible-image {
    min-width: 150px; /* Adjust min size for mobile */
    min-height: 120px; /* Adjust min size for mobile */
    margin-bottom: 15px;
  }
  .page-resources__paragraph,
  .page-resources__card-text,
  .page-resources__game-type-text,
  .page-resources__promotion-text,
  .page-resources__responsible-text {
    font-size: 15px;
    text-align: left;
  }
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  
  /* Force images and containers to fit screen */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__container,
  .page-resources__card,
  .page-resources__game-type-card,
  .page-resources__promotion-card,
  .page-resources__responsible-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__hero-section .page-resources__container { /* Specific override for hero if needed */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}