/* style/resources.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f4f7f6;
  --background-dark: #0A192F;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --hover-color: #e0b800;
}

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

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

.page-resources-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a60 100%);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-resources-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:banner:8us game,cá cược trực tuyến,tài nguyên]') no-repeat center center/cover;
  opacity: 0.15;
  z-index: 0;
}

.page-resources-main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
  font-weight: bold;
}

.page-resources-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.page-resources-cta-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

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

.page-resources-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-resources-section:nth-of-type(even) {
  background-color: #e9ecef;
}

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

.page-resources-section-description {
  font-size: 1.1em;
  color: var(--text-dark);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

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

.page-resources-guide-card,
.page-resources-strategy-card,
.page-resources-news-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources-guide-card:hover,
.page-resources-strategy-card:hover,
.page-resources-news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

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

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

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

.page-resources-card-text {
  font-size: 0.95em;
  color: var(--text-dark);
  padding: 0 20px 15px 20px;
}

.page-resources-read-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  padding: 15px 20px 20px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: auto; /* Push to bottom */
}

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

.page-resources-arrow {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-resources-read-more:hover .page-resources-arrow {
  transform: translateX(5px);
}

.page-resources-news-date {
  font-size: 0.85em;
  color: #777;
  padding: 0 20px 10px 20px;
}

/* FAQ Section */
.page-resources-faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg);
  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: #f8f8f8;
  border-color: var(--secondary-color);
}

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

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.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: #fdfdfd;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

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

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-dark);
  line-height: 1.7;
}

.page-resources-responsible-gaming {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 60px 20px;
}

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

.page-resources-responsible-gaming .page-resources-section-description,
.page-resources-responsible-gaming .page-resources-text {
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-resources-secondary-button {
  background: none;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.page-resources-secondary-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources-main-title {
    font-size: 2.5em;
  }
  .page-resources-subtitle {
    font-size: 1.1em;
  }
  .page-resources-section-title {
    font-size: 2em;
  }
  .page-resources-guide-grid, .page-resources-strategy-grid, .page-resources-news-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources-hero {
    padding: 60px 15px;
  }
  .page-resources-main-title {
    font-size: 2em;
  }
  .page-resources-subtitle {
    font-size: 1em;
  }
  .page-resources-cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-resources-section {
    padding: 40px 0;
  }
  .page-resources-section-title {
    font-size: 1.8em;
  }
  .page-resources-section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources-guide-grid, .page-resources-strategy-grid, .page-resources-news-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-card-image {
    height: 180px;
  }
  .page-resources-card-title {
    font-size: 1.2em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources-main-title {
    font-size: 1.8em;
  }
  .page-resources-subtitle {
    font-size: 0.9em;
  }
  .page-resources-cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-resources-section-title {
    font-size: 1.5em;
  }
  .page-resources-card-title {
    font-size: 1.1em;
  }
  .page-resources-card-text {
    font-size: 0.9em;
  }
  .page-resources-read-more {
    font-size: 0.9em;
  }
  .faq-question h3 {
    font-size: 0.95em;
  }
}