.page-resources {
  --primary-color: #FFD700;
  --secondary-color: #4B0082;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #222222;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

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

.page-resources h1 {
  font-size: 2.8em;
  text-align: center;
  color: var(--text-light);
}

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

.page-resources h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-resources h3 {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-top: 25px;
}

.page-resources p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-resources ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-resources li {
  margin-bottom: 8px;
}

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

.page-resources a:hover {
  color: var(--primary-color);
}

.page-resources .btn-primary,
.page-resources .btn-secondary,
.page-resources .cta-button,
.page-resources .btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1em;
}

.page-resources .btn-primary,
.page-resources .cta-button {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-resources .btn-primary:hover,
.page-resources .cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources .btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources .btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources .btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 1px solid var(--secondary-color);
}

.page-resources .btn-small:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

/* 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: 60px 20px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #3a006e 100%); /* Darker gradient for text contrast */
  color: var(--text-light);
}

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

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

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

.page-resources .hero-content p {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Section Intro */
.page-resources .section-intro {
  background: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

.page-resources .section-intro h2 {
  color: var(--secondary-color);
}

.page-resources .section-intro p {
  max-width: 900px;
  margin: 0 auto 15px;
}

/* Section Guides */
.page-resources .section-guides {
  padding: 60px 0;
  background: #ffffff;
}

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

.page-resources .guide-card {
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .guide-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-resources .guide-card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-resources .guide-card h3 a {
  color: var(--secondary-color);
}

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

/* Section Betting Tips */
.page-resources .section-betting-tips {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0;
}

.page-resources .section-betting-tips h2 {
  color: var(--primary-color);
}

.page-resources .section-betting-tips p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
}

.page-resources .tip-item {
  display: flex;
  align-items: center;
  background: #333333;
  border-radius: 10px;
  margin-bottom: 30px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources .tip-item:last-child {
  margin-bottom: 0;
}

.page-resources .tip-item img {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 30px;
  flex-shrink: 0;
}

.page-resources .tip-item h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

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

.page-resources .tip-item p {
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  margin-bottom: 0;
}

/* Section Promotions */
.page-resources .section-promotions {
  padding: 60px 0;
  background: var(--bg-light);
}

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

.page-resources .promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-resources .promo-card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-resources .promo-card h3 a {
  color: var(--secondary-color);
}

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

.page-resources .btn-primary {
  margin-top: 15px;
}

/* FAQ Section */
.page-resources .section-faq {
  padding: 60px 0;
  background: #ffffff;
}

.page-resources .section-faq p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

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

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

.page-resources .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--secondary-color);
}

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

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

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

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

.page-resources .faq-answer p {
  margin: 0;
  text-align: left;
  color: var(--text-dark);
}

/* Section Contact */
.page-resources .section-contact {
  padding: 60px 0;
  background: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
}

.page-resources .section-contact h2 {
  color: var(--primary-color);
}

.page-resources .section-contact p {
  max-width: 800px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources .section-contact ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 30px;
}

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

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

.page-resources .section-contact .btn-secondary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

.page-resources .section-contact .btn-secondary:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  border-color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 992px) {
  .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 .tip-item {
    flex-direction: column;
    text-align: center;
  }
  .page-resources .tip-item img {
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
    height: auto;
  }
  .page-resources .tip-item p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-resources .container {
    padding: 15px;
  }
  .page-resources h1 {
    font-size: 2em;
  }
  .page-resources h2 {
    font-size: 1.6em;
  }
  .page-resources h3 {
    font-size: 1.2em;
  }
  .page-resources .hero-section {
    padding: 40px 15px;
  }
  .page-resources .hero-image img {
    border-radius: 4px;
  }
  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-resources .guide-card-grid,
  .page-resources .promo-card-grid {
    grid-template-columns: 1fr;
  }
  .page-resources .section-intro,
  .page-resources .section-guides,
  .page-resources .section-betting-tips,
  .page-resources .section-promotions,
  .page-resources .section-faq,
  .page-resources .section-contact {
    padding: 40px 0;
  }
  .page-resources .faq-question {
    padding: 12px 15px;
  }
  .page-resources .faq-question h3 {
    font-size: 1.1em;
  }
  .page-resources .faq-answer {
    padding: 0 15px;
  }
  .page-resources .faq-item.active .faq-answer {
    padding: 15px;
  }
}