/* style/resources.css */
.page-resources {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f5f5f5;
  --background-dark: #1a1a1a;
  --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: 0 20px;
}

/* 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-color: var(--secondary-color); /* Fallback for image */
  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 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
  border-radius: 8px;
}

.page-resources .hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources .hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-resources .cta-button:hover {
  background: #FFC107; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-resources section {
  padding: 80px 0;
  background-color: var(--background-light);
}

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

.page-resources .section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

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

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

.page-resources .intro-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources .item-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-resources .item-text {
  color: var(--text-dark);
}

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

.page-resources .guide-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources .card-content {
  padding: 25px;
}

.page-resources .card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  min-height: 60px;
}

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

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

.page-resources .card-text {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 0.95em;
  min-height: 80px;
}

.page-resources .read-more-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Tips List */
.page-resources .tips-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources .tips-list li {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .tips-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources .tip-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-resources .tip-text {
  color: var(--text-dark);
}

/* Promotions */
.page-resources .promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

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

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

.page-resources .promo-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin: 20px 15px 10px 15px;
}

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

.page-resources .promo-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.page-resources .promo-button:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.faq-item {
  margin-bottom: 15px;
}

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

.faq-question:hover {
  background: var(--background-light);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: inherit;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

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

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

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

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

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

.page-resources .responsible-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-resources .responsible-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-resources .responsible-list {
  flex: 2;
  list-style: none;
  padding: 0;
}

.page-resources .responsible-list li {
  margin-bottom: 25px;
}

.page-resources .responsible-list li:last-child {
  margin-bottom: 0;
}

.page-resources .list-item-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 5px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources .hero-title {
    font-size: 2.8em;
  }
  .page-resources .section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources .hero-section {
    padding: 40px 15px;
  }
  .page-resources .hero-image {
    margin-bottom: 20px;
  }
  .page-resources .hero-image img {
    border-radius: 4px;
  }
  .page-resources .hero-content {
    padding: 15px;
  }
  .page-resources .hero-title {
    font-size: 2.2em;
  }
  .page-resources .hero-description {
    font-size: 1em;
  }
  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 1em;
    margin-top: 15px;
  }
  .page-resources section {
    padding: 60px 0;
  }
  .page-resources .section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-resources .section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-resources .intro-item, .page-resources .guide-card, .page-resources .promo-card {
    padding: 20px;
  }
  .page-resources .intro-icon {
    width: 80px;
    height: 80px;
  }
  .page-resources .item-title {
    font-size: 1.3em;
  }
  .page-resources .card-title, .page-resources .tip-title, .page-resources .promo-title {
    font-size: 1.2em;
  }
  .page-resources .card-text, .page-resources .tip-text, .page-resources .promo-text {
    font-size: 0.9em;
  }
  .page-resources .guide-image, .page-resources .promo-image {
    height: 180px;
  }
  .page-resources .responsible-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources .responsible-image {
    min-width: unset;
    width: 100%;
  }
  .page-resources .list-item-title {
    font-size: 1.2em;
  }
  .faq-question {
    padding: 12px 15px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-title {
    font-size: 1.8em;
  }
  .page-resources .hero-description {
    font-size: 0.9em;
  }
  .page-resources .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-resources .section-title {
    font-size: 1.6em;
  }
  .page-resources .intro-item {
    padding: 15px;
  }
  .page-resources .intro-icon {
    width: 70px;
    height: 70px;
  }
  .page-resources .item-title {
    font-size: 1.2em;
  }
  .page-resources .guide-image, .page-resources .promo-image {
    height: 150px;
  }
  .page-resources .card-title, .page-resources .tip-title, .page-resources .promo-title {
    font-size: 1.1em;
  }
  .page-resources .card-text, .page-resources .tip-text, .page-resources .promo-text {
    font-size: 0.85em;
  }
}