/* style/resources.css */

/* Base styles for the page */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-resources__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-resources a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources a:hover {
  color: #FFD700;
  text-decoration: underline;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(139, 0, 0, 0.5)); /* Dark overlay with auxiliary color */
  z-index: -1;
}

.page-resources__hero-content {
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-resources__hero-cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #121212;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources__hero-cta-button:hover {
  background-color: #f0c200;
  transform: translateY(-3px);
  text-decoration: none;
}

/* Introduction Section */
.page-resources__introduction-section {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Game Guides Section */
.page-resources__game-guides-section {
  background-color: rgba(0, 0, 0, 0.2);
}

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

.page-resources__guide-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-resources__guide-card h3 {
  font-size: 1.5em;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
}

.page-resources__guide-card h3 a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources__guide-card p {
  color: #f0f0f0;
  padding: 0 20px;
  flex-grow: 1;
}

.page-resources__guide-link {
  display: inline-block;
  background-color: #8B0000;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__guide-link:hover {
  background-color: #a00000;
  text-decoration: none;
}

/* Strategies Section */
.page-resources__strategies-section {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-resources__strategy-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-resources__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFD700;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__strategy-item strong {
  color: #FFD700;
}

/* Security Section */
.page-resources__security-section {
  background-color: rgba(0, 0, 0, 0.2);
}

.page-resources__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-resources__security-image {
  width: 50%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__security-features {
  list-style: none;
  padding: 0;
  width: 50%;
}

.page-resources__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #8B0000;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-resources__security-item strong {
  color: #FFD700;
}

/* Beginner Section */
.page-resources__beginner-section {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-resources__beginner-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-resources__beginner-image {
  width: 50%;
  max-width: 700px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__beginner-steps {
  list-style: decimal;
  padding-left: 20px;
  width: 50%;
}

.page-resources__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-resources__step-item strong {
  color: #FFD700;
}

.page-resources__beginner-cta-button {
  display: inline-block;
  background-color: #8B0000;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources__beginner-cta-button:hover {
  background-color: #a00000;
  transform: translateY(-3px);
  text-decoration: none;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: rgba(0, 0, 0, 0.2);
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px 20px 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
}

.page-resources__faq-more-link {
  display: inline-block;
  background-color: #FFD700;
  color: #121212;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__faq-more-link:hover {
  background-color: #f0c200;
  transform: translateY(-3px);
  text-decoration: none;
}

/* News Section */
.page-resources__news-section {
  background-color: rgba(255, 255, 255, 0.05);
}

.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: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-resources__news-title {
  font-size: 1.5em;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
}

.page-resources__news-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources__news-excerpt {
  color: #f0f0f0;
  padding: 0 20px;
  flex-grow: 1;
}

.page-resources__news-link {
  display: inline-block;
  background-color: #8B0000;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__news-link:hover {
  background-color: #a00000;
  text-decoration: none;
}

.page-resources__news-more-link {
  display: inline-block;
  background-color: #FFD700;
  color: #121212;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__news-more-link:hover {
  background-color: #f0c200;
  transform: translateY(-3px);
  text-decoration: none;
}

/* Final CTA Section */
.page-resources__cta-final {
  background: linear-gradient(135deg, #8B0000, #FFD700);
  padding: 80px 0;
  color: #ffffff;
}

.page-resources__cta-final .page-resources__section-title {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__cta-final .page-resources__section-description {
  color: #f0f0f0;
}

.page-resources__cta-button {
  display: inline-block;
  background-color: #121212;
  color: #FFD700;
  padding: 18px 40px;
  border-radius: 8px;
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 40px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
  cursor: pointer;
}

.page-resources__cta-button:hover {
  background-color: #333333;
  transform: translateY(-5px);
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__security-content,
  .page-resources__beginner-content {
    flex-direction: column;
  }
  .page-resources__security-image,
  .page-resources__security-features,
  .page-resources__beginner-image,
  .page-resources__beginner-steps {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    height: 500px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-resources__guides-grid,
  .page-resources__news-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__guide-card,
  .page-resources__news-card {
    margin: 0 15px;
  }
  .page-resources__strategy-list,
  .page-resources__faq-list {
    margin: 20px 15px;
  }
  .page-resources__strategy-item,
  .page-resources__security-item,
  .page-resources__step-item,
  .page-resources__faq-item {
    padding: 15px;
    font-size: 1em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 15px 15px 15px;
  }
  .page-resources__cta-button {
    font-size: 1.2em;
    padding: 15px 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* Mobile responsive image styles */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__guides-grid,
  .page-resources__news-grid,
  .page-resources__security-content,
  .page-resources__beginner-content,
  .page-resources__faq-list,
  .page-resources__news-grid,
  .page-resources__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__hero-content {
    padding: 10px;
  }
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-resources__cta-buttons {
    display: flex;
    flex-direction: column;
  }
  .page-resources__guide-card, .page-resources__news-card {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__hero-section {
    height: 400px;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__section-description {
    font-size: 0.85em;
  }
}