/* style/resources.css */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

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

/* Hero Section */
.page-resources__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_main:1920x1080:xoso_s666,lottery,vietnam_flag,online_betting]') center center / cover no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px 80px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #26A9E0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* General Section Styling */
.page-resources__section {
  padding: 60px 0;
}

.page-resources__section--light {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-resources__section--dark {
  background-color: #0d0d0d; /* Darker background */
  color: #ffffff;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Call to Action Buttons */
.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-resources__cta-center {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Card Grid */
.page-resources__grid,
.page-resources__promo-grid,
.page-resources__steps-grid,
.page-resources__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__card,
.page-resources__promo-card,
.page-resources__step-card,
.page-resources__strategy-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card:hover,
.page-resources__promo-card:hover,
.page-resources__step-card:hover,
.page-resources__strategy-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image,
.page-resources__promo-image,
.page-resources__info-image,
.page-resources__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-resources__card-title,
.page-resources__promo-title,
.page-resources__step-title,
.page-resources__strategy-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources__card-text,
.page-resources__promo-text,
.page-resources__step-text,
.page-resources__strategy-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1; /* Make text take up available space */
}

.page-resources__card-link,
.page-resources__step-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push link to bottom */
  position: relative;
  padding-bottom: 3px;
}

.page-resources__card-link::after,
.page-resources__step-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #26A9E0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.page-resources__card-link:hover::after,
.page-resources__step-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Info Block (image + text) */
.page-resources__info-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__info-image {
  flex: 1;
  border-radius: 8px;
  min-width: 200px; /* Minimum size */
  max-width: 50%;
}

.page-resources__info-content {
  flex: 1;
  text-align: left;
}

.page-resources__info-subtitle {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources__info-text {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-resources__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-resources__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #e0e0e0;
  line-height: 1.7;
}

.page-resources__faq-answer p {
  margin-bottom: 10px;
}

.page-resources__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* App Download Section */
.page-resources__download-app {
  text-align: center;
}

.page-resources__app-image {
  margin: 40px auto;
  display: block;
  max-width: 800px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Final CTA Section */
.page-resources__final-cta {
  padding-bottom: 100px;
}

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

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__info-block {
    flex-direction: column;
    text-align: center;
  }

  .page-resources__info-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__hero-section {
    padding: 80px 15px 60px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }

  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__section {
    padding: 40px 0;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__cta-center {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__grid,
  .page-resources__promo-grid,
  .page-resources__steps-grid,
  .page-resources__strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card,
  .page-resources__promo-card,
  .page-resources__step-card,
  .page-resources__strategy-item {
    padding: 20px;
  }

  .page-resources__card-title,
  .page-resources__promo-title,
  .page-resources__step-title,
  .page-resources__strategy-title {
    font-size: 1.3em;
  }

  .page-resources__info-block {
    padding: 20px;
  }

  .page-resources__info-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__info-subtitle {
    font-size: 1.5em;
  }

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

  .page-resources__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  .page-resources__app-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All images responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/buttons/videos */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__cta-buttons,
  .page-resources__cta-center,
  .page-resources__info-block,
  .page-resources__faq-list,
  .page-resources__download-app,
  .page-resources__final-cta,
  .page-resources__grid,
  .page-resources__promo-grid,
  .page-resources__steps-grid,
  .page-resources__strategy-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for sections/containers */
  .page-resources__section .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no filter on images */
.page-resources img {
  filter: none !important;
}