.page-resources {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #000000;
  --bg-light: #ffffff;
  --login-color: #EA7C07;

  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark, so text should be light */
  background-color: var(--bg-dark);
  line-height: 1.6;
}

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

.page-resources__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-resources__hero-section {
  text-align: center;
  padding: 80px 0 60px;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  background-image: url('[GALLERY:hero:1920x1080:s666,resources,banner,guide]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

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

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

/* Video Section */
.page-resources__video-section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-resources__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
  background: transparent;
}

/* General Section Styles */
.page-resources__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__content-area {
  padding: 60px 0;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-resources__text-block strong {
  color: var(--primary-color);
}

.page-resources__text-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-resources__text-link:hover {
  color: var(--secondary-color);
}

/* Buttons */
.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.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;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-resources__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Image Styles */
.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-resources__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  max-width: 45%;
}

.page-resources__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  max-width: 45%;
}

/* Grid Layout for Guides */
.page-resources__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  clear: both;
}

.page-resources__grid-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-resources__grid-item .page-resources__image {
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__item-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-resources__game-card {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__game-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__game-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-resources__game-description {
  font-size: 1em;
  color: var(--text-dark);
}

/* Promotion Cards */
.page-resources__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-resources__card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__card-text {
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Security and Support Sections */
.page-resources__security-section,
.page-resources__support-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 80px;
  padding-bottom: 40px;
  clear: both;
}

.page-resources__security-content,
.page-resources__support-content {
  flex: 1;
  text-align: left;
}

.page-resources__security-section .page-resources__image,
.page-resources__support-section .page-resources__image {
  max-width: 45%;
  flex-shrink: 0;
  margin: 0;
  float: none; /* Override float */
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.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);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Ensure it expands */
  padding: 20px 30px;
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 1.05em;
}

.page-resources__cta-buttons--bottom {
  margin-top: 60px;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__image--left,
  .page-resources__image--right {
    max-width: 100%;
    float: none;
    margin: 0 auto 30px;
  }
  .page-resources__security-section,
  .page-resources__support-section {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__security-content,
  .page-resources__support-content {
    order: 2; /* Content after image on small screens */
  }
  .page-resources__security-section .page-resources__image,
  .page-resources__support-section .page-resources__image {
    order: 1;
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.9em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources__container {
    padding: 0 10px;
  }
  .page-resources__video-wrapper {
    margin: 20px auto;
  }
  .page-resources__grid-item,
  .page-resources__game-card,
  .page-resources__promotion-card {
    padding: 20px;
  }
  .page-resources__game-image {
    height: 180px;
  }
  .page-resources__item-title,
  .page-resources__card-title,
  .page-resources__game-title {
    font-size: 1.4em;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px;
  }
  /* Mobile specific image handling */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__video-wrapper,
  .page-resources__game-grid,
  .page-resources__promotion-cards,
  .page-resources__security-section,
  .page-resources__support-section,
  .page-resources__faq-list,
  .page-resources__grid-layout,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
    overflow: hidden !important;
  }
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__security-section .page-resources__image,
  .page-resources__support-section .page-resources__image {
    max-width: 100% !important;
  }
}