/* style/resources.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Deep Red */
  --dark-background: #1A1A1A;
  --text-light: #F0F0F0;
  --text-dark: #333333;
  --card-background: #2A2A2A;
  --border-color: #444444;
  --button-hover-bg: #E0BF00;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  color: var(--text-light);
  background-color: var(--dark-background);
  line-height: 1.6;
}

.page-resources h1, .page-resources h2, .page-resources h3, .page-resources h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources h1 {
  font-size: 2.8em;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-resources h3 {
  font-size: 1.6em;
  color: var(--text-light);
}

.page-resources p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

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

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

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

.page-resources section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-resources section:last-of-type {
  border-bottom: none;
}

/* Hero Section */
.page-resources .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, var(--dark-background) 0%, #333333 100%);
}

.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: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-resources .hero-content h1 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-resources .hero-content p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-light);
}

.page-resources .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-resources .cta-button:hover {
  background: var(--button-hover-bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: var(--dark-background);
}

/* Section Intro */
.page-resources .section-intro p {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources .card {
  background-color: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-resources .card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-resources .card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources .card-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4em;
}

.page-resources .card-content h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources .card-content h3 a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources .card-content p {
  font-size: 1em;
  color: var(--text-light);
  flex-grow: 1;
}

.page-resources .card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-align: center;
  align-self: flex-start;
}

.page-resources .card-button:hover {
  background: var(--button-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: var(--dark-background);
}

/* Game Categories */
.page-resources .game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-resources .category-item {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .category-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-resources .category-item h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-resources .category-item h3 a {
  color: var(--primary-color);
}

.page-resources .category-item p {
  font-size: 0.95em;
  color: var(--text-light);
}

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

.page-resources .tip-item {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources .tip-item h3 {
  color: var(--primary-color);
  font-size: 1.5em;
}

.page-resources .tip-item p {
  font-size: 1em;
  color: var(--text-light);
}

/* News & Promo Grid */
.page-resources .news-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources .news-card {
  background-color: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources .news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-resources .news-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-resources .news-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources .news-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4em;
}

.page-resources .news-content h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources .news-content h3 a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources .news-content p {
  font-size: 1em;
  color: var(--text-light);
  flex-grow: 1;
}

/* FAQ Section */
.page-resources .faq-list {
  margin-top: 40px;
}

.page-resources .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-background);
  overflow: hidden;
}

.page-resources .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2A2A2A;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-resources .faq-question:hover {
  background: #3A3A3A;
}

.page-resources .faq-question h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.3em;
  flex-grow: 1;
}

.page-resources .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.page-resources .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.page-resources .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #222222;
  color: var(--text-light);
}

.page-resources .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px 25px;
}

.page-resources .faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Contact Section */
.page-resources .section-contact ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: center;
}

.page-resources .section-contact ul li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-light);
}

.page-resources .section-contact ul li strong {
  color: var(--primary-color);
}

.page-resources .section-contact ul li a {
  color: var(--secondary-color);
}

.page-resources .section-contact p {
  text-align: center;
}

/* Conclusion Section */
.page-resources .section-conclusion p {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources h1 {
    font-size: 2.4em;
  }
  .page-resources h2 {
    font-size: 1.8em;
  }
  .page-resources h3 {
    font-size: 1.4em;
  }
  .page-resources .hero-content p {
    font-size: 1.1em;
  }
  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-resources .guide-cards, .page-resources .game-categories, .page-resources .tips-grid, .page-resources .news-promo-grid {
    gap: 20px;
  }
  .page-resources .card-image, .page-resources .news-image {
    height: 180px;
  }
  .page-resources .category-icon {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .page-resources h1 {
    font-size: 2em;
  }
  .page-resources h2 {
    font-size: 1.6em;
  }
  .page-resources h3 {
    font-size: 1.2em;
  }
  .page-resources section {
    padding: 40px 0;
  }
  .page-resources .hero-section {
    padding: 60px 15px 40px;
  }
  .page-resources .hero-image img {
    border-radius: 8px;
  }
  .page-resources .guide-cards, .page-resources .game-categories, .page-resources .tips-grid, .page-resources .news-promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-resources .card-content, .page-resources .news-content {
    padding: 20px;
  }
  .page-resources .card-image, .page-resources .news-image {
    height: 200px;
  }
  .page-resources .category-item {
    padding: 25px;
  }
  .page-resources .category-icon {
    width: 100px;
    height: 100px;
  }
  .page-resources .faq-question {
    padding: 15px 20px;
  }
  .page-resources .faq-question h3 {
    font-size: 1.1em;
  }
  .page-resources .faq-toggle {
    font-size: 20px;
  }
  .page-resources .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources h1 {
    font-size: 1.8em;
  }
  .page-resources h2 {
    font-size: 1.4em;
  }
  .page-resources h3 {
    font-size: 1.1em;
  }
  .page-resources .hero-content p {
    font-size: 1em;
  }
  .page-resources .cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-resources .card-content h3, .page-resources .news-content h3 {
    font-size: 1.2em;
  }
  .page-resources .card-button, .page-resources .news-content .card-button {
    padding: 8px 20px;
    font-size: 0.9em;
  }
  .page-resources .category-item h3 {
    font-size: 1.1em;
  }
  .page-resources .tip-item h3 {
    font-size: 1.3em;
  }
}