/* style/resources.css */

/* Base Styles for page-resources */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background #121212 */
  background-color: transparent; /* Inherit from body or shared */
}

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

.page-resources__section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for titles */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #C80000 0%, #a00000 100%); /* Main brand color gradient */
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  display: block;
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* CTA Button Base */
.page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #C80000; /* Main brand color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #C80000;
}

.page-resources__btn-primary:hover {
  background-color: #a00000;
  border-color: #a00000;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  background-color: #FFD700; /* Auxiliary brand color */
  color: #333333; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__small-btn {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* About Thomo Section */
.page-resources__about-thomo {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #f0f0f0;
}

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

.page-resources__grid-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-resources__grid-item:hover {
  transform: translateY(-5px);
}

.page-resources__grid-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-resources__grid-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-resources__grid-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Rules Section */
.page-resources__rules {
  background-color: #0d0d0d;
  color: #f0f0f0;
}

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

.page-resources__rule-card {
  background-color: rgba(200, 0, 0, 0.1);
  border: 1px solid #C80000;
  border-radius: 8px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__rule-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-resources__rule-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-resources__rule-list li strong {
  color: #FFD700;
}

/* Betting Guide Section */
.page-resources__betting-guide {
  background-color: #C80000; /* Main brand color as background */
  color: #ffffff;
}

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

.page-resources__step-card {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__step-number {
  font-size: 2.5em;
  color: #FFD700;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-resources__step-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-resources__step-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tips Section */
.page-resources__tips {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-resources__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
  text-align: left;
}

.page-resources__tips-list li {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #C80000;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-resources__tips-list li strong {
  color: #FFD700;
}

/* Video Section */
.page-resources__video-section {
  background-color: #0d0d0d;
  color: #f0f0f0;
  padding: 80px 20px;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

/* FAQ Section */
.page-resources__faq {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-resources__faq-list {
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: rgba(200, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question:hover {
  background-color: rgba(200, 0, 0, 0.3);
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

.page-resources__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

/* Dark background specific styles */
.page-resources__dark-bg {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    min-height: 60vh;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-content {
    padding: 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-resources__section {
    padding: 50px 0;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__container {
    padding: 0 15px;
  }

  /* Images, Videos, Buttons responsive adaptation */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper,
  .page-resources__image-text-grid,
  .page-resources__rule-grid,
  .page-resources__steps-grid,
  .page-resources__faq-list,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 30px auto;
    padding-left: 0;
    padding-right: 0;
  }

  .page-resources__cta-button,
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }

  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px; /* Space between buttons if they wrap */
    display: flex; /* Ensure flex context for wrapping */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-resources__step-card {
    padding: 20px;
  }

  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__grid-title,
  .page-resources__rule-title,
  .page-resources__step-title {
    font-size: 1.5em;
  }
  .page-resources__step-number {
    font-size: 2em;
  }
}