/* style/resources.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light-grey: #f1f3f5;
  --border-light: #e0e0e0;
  --dark-bg-1: #1a1a1a; /* Assuming shared.css defines this as a dark background */
}

.page-resources {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for the main page if body is dark */
  background-color: var(--dark-bg-1);
}

.page-resources__hero-banner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 120px; /* Desktop: Adjust based on fixed navbar height */
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: var(--text-light);
  min-height: 400px;
}

.page-resources__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
}

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

.page-resources__hero-cta-button:hover {
  background: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light); /* For dark body background */
}

.page-resources__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #cccccc;
}

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

/* Introduction Section */
.page-resources__introduction-section {
  background-color: var(--dark-bg-1);
  padding: 60px 0;
}

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

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

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

.page-resources__intro-image {
  width: 100%;
  max-width: 300px; /* Ensure images are not too wide */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-resources__card-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #cccccc;
}

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

.page-resources__card-link:hover {
  background: #0056b3;
}

/* Core Games Section */
.page-resources__core-games-section {
  background-color: var(--dark-bg-1);
  padding: 60px 0;
}

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

.page-resources__game-card-item {
  background: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  color: var(--text-light);
}

.page-resources__game-type-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-resources__game-type-description {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
}

/* Promotions Section */
.page-resources__promotions-section {
  background-color: var(--dark-bg-1);
  padding: 60px 0;
}

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

.page-resources__promo-card {
  background: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  color: var(--text-light);
}

.page-resources__promo-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources__promo-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.page-resources__promo-button:hover {
  background: #e0a800;
}

/* Latest Blog Section */
.page-resources__latest-blog-section {
  background-color: var(--dark-bg-1);
  padding: 60px 0;
}

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

.page-resources__blog-card {
  background: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

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

.page-resources__blog-content {
  padding: 25px;
  flex-grow: 1;
}

.page-resources__blog-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-resources__blog-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources__blog-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-resources__blog-date {
  font-size: 14px;
  color: #999999;
}

.page-resources__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-resources__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__view-all-button:hover {
  background: #0056b3;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: var(--dark-bg-1);
  padding: 60px 0;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #2a2a2a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.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 20px;
  opacity: 0;
  color: #cccccc;
  font-size: 16px;
  line-height: 1.6;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  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: #3a3a3a;
  border-color: #4a4a4a;
}

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

.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(--text-light);
}

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

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

.page-resources__view-all-faq-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 40px;
  }
  .page-resources__hero-subtitle {
    font-size: 18px;
  }
  .page-resources__section-title {
    font-size: 30px;
  }
  .page-resources__card-title {
    font-size: 20px;
  }
  .page-resources__game-type-title,
  .page-resources__blog-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile fixed navbar height */
    padding-bottom: 40px;
  }
  .page-resources__hero-title {
    font-size: 32px;
  }
  .page-resources__hero-subtitle {
    font-size: 16px;
  }
  .page-resources__hero-cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }

  .page-resources__container {
    padding: 30px 15px;
  }
  .page-resources__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-resources__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-resources__intro-grid,
  .page-resources__game-types,
  .page-resources__promo-grid,
  .page-resources__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__intro-card,
  .page-resources__game-card-item,
  .page-resources__promo-card,
  .page-resources__blog-card {
    padding: 20px;
  }
  
  .page-resources__intro-image,
  .page-resources__game-type-image,
  .page-resources__promo-image,
  .page-resources__blog-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__card-title,
  .page-resources__game-type-title,
  .page-resources__blog-title {
    font-size: 18px;
  }
  .page-resources__card-description,
  .page-resources__game-type-description,
  .page-resources__blog-excerpt {
    font-size: 15px;
  }
  .page-resources__blog-date {
    font-size: 13px;
  }
  .page-resources__card-link,
  .page-resources__promo-button,
  .page-resources__view-all-button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .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 containers with images are responsive */
  .page-resources__introduction-section .page-resources__container,
  .page-resources__core-games-section .page-resources__container,
  .page-resources__promotions-section .page-resources__container,
  .page-resources__latest-blog-section .page-resources__container,
  .page-resources__faq-section .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}