/* style/resources.css */
:root {
  --primary-color: #0A1930;
  --secondary-color: #E8A900;
  --text-color-light: #F0F2F5;
  --text-color-dark: #333333;
  --bg-dark: #0A1930;
  --bg-light: #ffffff;
  --accent-light: #FFD700;
  --border-color: #e0e0e0;
}

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

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

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

.page-resources section:nth-child(odd) {
  background-color: #f8f8f8;
}

.page-resources .section-title {
  font-size: 2.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources .section-description {
  font-size: 1.1em;
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-resources .cta-button:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources .cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Hero Section */
.page-resources .hero-section {
  position: relative;
  background-color: var(--bg-dark);
  color: var(--text-color-light);
  padding: 0;
  overflow: hidden;
}

.page-resources .hero-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-resources .hero-image-full {
  width: 100%;
  height: 550px; /* Adjusted for visual impact */
  object-fit: cover;
  display: block;
  opacity: 0.7;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-resources .hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 20px;
  background: linear-gradient(rgba(10, 25, 48, 0.7), rgba(10, 25, 48, 0.9));
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-resources .hero-title {
  font-size: 3.8em;
  color: var(--text-color-light);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.page-resources .hero-description {
  font-size: 1.3em;
  color: var(--text-color-light);
  max-width: 900px;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-resources .intro-section {
  background-color: var(--bg-light);
}

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

.page-resources .intro-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-resources .card-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources .card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources .card-text {
  font-size: 1em;
  color: #666;
  margin-bottom: 25px;
}

.page-resources .card-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-resources .card-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Game Guides Section */
.page-resources .game-guides-section {
  background-color: #f0f4f8;
}

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

.page-resources .game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-resources .game-card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

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

.page-resources .game-card-title a:hover {
  color: var(--secondary-color);
}

.page-resources .game-card-text {
  font-size: 0.95em;
  color: #666;
  padding: 0 20px 20px 20px;
}

.page-resources .btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  transition: all 0.3s ease;
}

.page-resources .btn-small:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* Strategies Section */
.page-resources .strategies-section {
  background-color: var(--bg-light);
}

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

.page-resources .strategy-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-resources .strategy-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources .strategy-title {
  font-size: 1.7em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources .strategy-text {
  font-size: 1em;
  color: #666;
}

/* FAQ Section */
.page-resources .faq-section {
  background-color: #f0f4f8;
}

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

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
  border-color: var(--secondary-color);
}

.faq-question h3 {
  font-size: 1.25em;
  color: var(--primary-color);
  margin: 0;
  font-weight: bold;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #555;
}

/* Responsible Gaming Section */
.page-resources .responsible-gaming-section {
  background-color: var(--bg-dark);
  color: var(--text-color-light);
}

.page-resources .responsible-gaming-section .section-title {
  color: var(--secondary-color);
}

.page-resources .responsible-gaming-section .section-description {
  color: var(--text-color-light);
}

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

.page-resources .feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources .feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.page-resources .feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources .feature-title {
  font-size: 1.7em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-resources .responsible-text {
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--text-color-light);
}

/* Latest Articles Section */
.page-resources .latest-articles-section {
  background-color: var(--bg-light);
}

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

.page-resources .article-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources .article-content {
  padding: 20px;
}

.page-resources .article-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-resources .article-title a:hover {
  color: var(--secondary-color);
}

.page-resources .article-meta {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 15px;
}

.page-resources .article-excerpt {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
}

.page-resources .btn-read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-resources .btn-read-more:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources .hero-title {
    font-size: 3em;
  }
  .page-resources .hero-description {
    font-size: 1.1em;
  }
  .page-resources .section-title {
    font-size: 2.2em;
  }
  .page-resources .intro-cards, .page-resources .game-cards-grid, .page-resources .strategy-grid, .page-resources .responsible-features, .page-resources .article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources section {
    padding: 40px 0;
  }
  .page-resources .hero-image-full {
    height: 400px;
  }
  .page-resources .hero-content {
    padding: 60px 15px;
  }
  .page-resources .hero-title {
    font-size: 2.5em;
  }
  .page-resources .hero-description {
    font-size: 1em;
  }
  .page-resources .section-title {
    font-size: 1.8em;
  }
  .page-resources .section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources .intro-card, .page-resources .game-card, .page-resources .strategy-item, .page-resources .feature-item, .page-resources .article-card {
    padding: 25px;
  }
  .page-resources .card-icon, .page-resources .strategy-icon, .page-resources .feature-icon {
    width: 90px;
    height: 90px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-image-full {
    height: 300px;
  }
  .page-resources .hero-content {
    padding: 40px 10px;
  }
  .page-resources .hero-title {
    font-size: 2em;
  }
  .page-resources .hero-description {
    font-size: 0.9em;
  }
  .page-resources .section-title {
    font-size: 1.6em;
  }
  .page-resources .intro-cards, .page-resources .game-cards-grid, .page-resources .strategy-grid, .page-resources .responsible-features, .page-resources .article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources .intro-card, .page-resources .game-card, .page-resources .strategy-item, .page-resources .feature-item, .page-resources .article-card {
    padding: 20px;
  }
  .page-resources .card-icon, .page-resources .strategy-icon, .page-resources .feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-resources .card-title, .page-resources .strategy-title, .page-resources .feature-title, .page-resources .game-card-title, .page-resources .article-title {
    font-size: 1.4em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.3em;
  }
}