/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color); /* Inherited from shared.css */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

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

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

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

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

/* General Section Styles */
.page-resources__content-section,
.page-resources__guide-section,
.page-resources__safety-section,
.page-resources__faq-section,
.page-resources__cta-banner {
  padding: 80px 0;
}

.page-resources__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 60px;
  color: inherit; /* Inherit from parent section */
}

.page-resources__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: inherit;
}

/* Card Layout */
.page-resources__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-resources__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Inverted Card Style for Dark Sections */
.page-resources__card--inverted {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__card--inverted .page-resources__card-title a {
  color: #FFFFFF;
}

.page-resources__card--inverted .page-resources__card-title a:hover {
  text-decoration: underline;
}

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

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

.page-resources__btn-primary:hover,
.page-resources__cta-button:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

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

.page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
.page-resources__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #e0e0e0;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-heading {
  margin: 0;
  font-size: 1.1em;
  color: #333333;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  max-height: 0; /* Initial state for collapse */
  overflow: hidden;
  padding: 0 25px; /* Adjust padding for visual consistency */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

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

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

.page-resources__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Banner Section */
.page-resources__cta-banner {
  background-image: url('[GALLERY:cta_banner:1920x600:3win no hu,register,download app,promotions,casino,vietnam]');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  text-align: center;
  padding: 100px 0;
}

.page-resources__cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-resources__cta-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .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__sub-title {
    font-size: 1.6em;
  }
  .page-resources__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__content-section,
  .page-resources__guide-section,
  .page-resources__safety-section,
  .page-resources__faq-section,
  .page-resources__cta-banner {
    padding: 60px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-resources__sub-title {
    font-size: 1.4em;
  }
  .page-resources__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-resources__card-image {
    height: 200px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button,
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-resources__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-section {
    height: 400px;
  }
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-resources__faq-heading {
    font-size: 1em;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px;
  }
}