/* style/resources.css */

/* Variables for colors */
:root {
  --page-resources-primary-color: #FFD700; /* Gold */
  --page-resources-secondary-color: #8B0000; /* Dark Red */
  --page-resources-text-dark: #333;
  --page-resources-text-light: #FFF;
  --page-resources-background-light: #F9F9F9;
  --page-resources-background-dark: #222;
}

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

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

.page-resources__section-title {
  font-size: 2.5em;
  color: var(--page-resources-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  font-weight: bold;
}

.page-resources__section-title--light {
  color: var(--page-resources-primary-color);
}

.page-resources__subsection-title {
  font-size: 1.8em;
  color: var(--page-resources-secondary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

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

.page-resources__btn--primary:hover {
  background-color: darken(var(--page-resources-primary-color), 10%);
  color: var(--page-resources-text-dark);
}

.page-resources__btn--secondary {
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-light);
  border: 2px solid var(--page-resources-secondary-color);
}

.page-resources__btn--secondary:hover {
  background-color: darken(var(--page-resources-secondary-color), 10%);
  color: var(--page-resources-primary-color);
}

.page-resources__btn--outline {
  background-color: transparent;
  color: var(--page-resources-secondary-color);
  border: 2px solid var(--page-resources-secondary-color);
}

.page-resources__btn--outline:hover {
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-light);
}

.page-resources__btn--large {
  padding: 15px 35px;
  font-size: 1.1em;
}

/* Hero Section */
.page-resources__hero-section {
  background: linear-gradient(135deg, var(--page-resources-primary-color) 0%, var(--page-resources-secondary-color) 100%);
  padding: 100px 0;
  text-align: center;
  color: var(--page-resources-text-light);
  position: relative;
  overflow: hidden;
}

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:hero:iwin_club,resource_center,gaming,luxury,gold_red]') no-repeat center center/cover;
  opacity: 0.15;
  z-index: 0;
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--page-resources-text-light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.9);
}

.page-resources__hero-cta .page-resources__btn {
  margin: 0 10px;
}

/* Introduction Section */
.page-resources__introduction-section {
  padding: 60px 0;
  background-color: var(--page-resources-background-light);
}

.page-resources__introduction-section p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--page-resources-text-dark);
}

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

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

.page-resources__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Featured Resources */
.page-resources__featured-resources {
  padding: 60px 0;
  background-color: #f0f0f0;
}

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

.page-resources__resource-card {
  background-color: var(--page-resources-text-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-resources__resource-card h3 {
  padding: 20px 20px 10px;
  font-size: 1.4em;
  color: var(--page-resources-secondary-color);
  margin: 0;
}

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

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

.page-resources__card-summary {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: #666;
  flex-grow: 1;
}

.page-resources__resource-card .page-resources__btn {
  margin: 0 20px 20px;
}

/* Call to Action Section */
.page-resources__cta-section {
  background-color: var(--page-resources-secondary-color);
  padding: 80px 0;
  text-align: center;
  color: var(--page-resources-text-light);
  position: relative;
  overflow: hidden;
}

.page-resources__cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:call_to_action:iwin_club,promotion,bonus,excitement]') no-repeat center center/cover;
  opacity: 0.15;
  z-index: 0;
}

.page-resources__cta-section .page-resources__container {
  position: relative;
  z-index: 1;
}

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.9);
}

.page-resources__cta-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-buttons .page-resources__btn {
  margin: 0 15px;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
  background-color: var(--page-resources-background-light);
}

.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  background-color: var(--page-resources-text-light);
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  padding: 20px;
  margin: 0;
  font-size: 1.2em;
  color: var(--page-resources-secondary-color);
  cursor: pointer;
  position: relative;
  background-color: #fff;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.page-resources__faq-question:hover {
  background-color: #f5f5f5;
}

.page-resources__faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-resources__faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 200px; /* Adjust based on content */
  padding: 15px 20px;
}

.page-resources__faq-answer p {
  margin: 0;
  color: #555;
}

/* Conclusion Section */
.page-resources__conclusion-section {
  padding: 60px 0 80px;
  background-color: #f0f0f0;
  text-align: center;
}

.page-resources__conclusion-section p {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__conclusion-section .page-resources__btn {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__subsection-title {
    font-size: 1.6em;
  }
  .page-resources__resource-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 70px 0;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta .page-resources__btn {
    display: block;
    margin: 15px auto;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__subsection-title {
    font-size: 1.4em;
  }
  .page-resources__cta-section {
    padding: 60px 0;
  }
  .page-resources__cta-buttons .page-resources__btn {
    display: block;
    margin: 15px auto;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-resources__faq-question::after {
    right: 15px;
  }
  .page-resources__faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__subsection-title {
    font-size: 1.2em;
  }
  .page-resources__btn--large {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources__container {
    padding: 0 15px;
  }
}