/* style/resources.css */

:root {
  --page-resources-primary-color: #26A9E0;
  --page-resources-secondary-color: #FFFFFF;
  --page-resources-text-dark: #333333;
  --page-resources-text-light: #ffffff;
  --page-resources-bg-dark: #0a0a0a;
  --page-resources-login-button-color: #EA7C07;
}

.page-resources {
  color: var(--page-resources-text-light); /* Body background is dark #0a0a0a */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

.page-resources__light-bg {
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-dark);
}

.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-content {
  z-index: 1;
  max-width: 900px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--page-resources-secondary-color);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.25em;
  margin-bottom: 40px;
  color: var(--page-resources-secondary-color);
}

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-small,
.page-resources__btn-large {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.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: #1e87c0;
  border-color: #1e87c0;
}

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

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

.page-resources__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

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

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

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-resources-primary-color);
}

.page-resources__intro-section {
  padding: 60px 20px;
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-dark);
}

.page-resources__intro-section .page-resources__section-title {
  color: var(--page-resources-text-dark);
}

.page-resources__intro-section p {
  color: var(--page-resources-text-dark);
}

.page-resources__intro-section a {
  color: var(--page-resources-primary-color);
  text-decoration: underline;
}

.page-resources__guide-section {
  padding: 60px 20px;
}

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

.page-resources__guide-section.page-resources__dark-bg .page-resources__section-title {
  color: var(--page-resources-secondary-color);
}

.page-resources__guide-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__guide-layout--reverse {
  flex-direction: row-reverse;
}

.page-resources__guide-content {
  flex: 1;
}

.page-resources__guide-subtitle {
  font-size: 1.8em;
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--page-resources-primary-color);
}

.page-resources__guide-section.page-resources__dark-bg .page-resources__guide-subtitle {
  color: var(--page-resources-secondary-color);
}

.page-resources__guide-section.page-resources__dark-bg .page-resources__text-block,
.page-resources__guide-section.page-resources__dark-bg a {
  color: var(--page-resources-secondary-color);
}

.page-resources__guide-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-resources__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-resources__download-section {
  padding: 60px 20px;
  text-align: center;
}

.page-resources__download-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--page-resources-text-light);
  text-align: left;
}

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

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

.page-resources__card a {
  color: var(--page-resources-primary-color);
  text-decoration: underline;
}

.page-resources__download-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-resources__games-section {
  padding: 60px 20px;
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-dark);
}

.page-resources__games-section .page-resources__section-title {
  color: var(--page-resources-text-dark);
}

.page-resources__games-section .page-resources__text-block {
  color: var(--page-resources-text-dark);
}

.page-resources__games-section .page-resources__text-block a {
  color: var(--page-resources-primary-color);
  text-decoration: underline;
}

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

.page-resources__game-card {
  background-color: var(--page-resources-secondary-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  color: var(--page-resources-text-dark);
}

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

.page-resources__game-title {
  font-size: 1.5em;
  margin: 15px 10px 10px;
}

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

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

.page-resources__game-description {
  font-size: 1em;
  padding: 0 15px 20px;
  color: var(--page-resources-text-dark);
}

.page-resources__promotions-section {
  padding: 60px 20px;
}

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

.page-resources__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--page-resources-text-light);
}

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

.page-resources__promo-title {
  font-size: 1.6em;
  margin: 20px 15px 10px;
  color: var(--page-resources-primary-color);
}

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

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

.page-resources__promo-description {
  font-size: 1em;
  padding: 0 15px 20px;
}

.page-resources__security-section {
  padding: 60px 20px;
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-dark);
}

.page-resources__security-section .page-resources__section-title {
  color: var(--page-resources-text-dark);
}

.page-resources__security-section .page-resources__text-block {
  color: var(--page-resources-text-dark);
}

.page-resources__security-section .page-resources__text-block a {
  color: var(--page-resources-primary-color);
  text-decoration: underline;
}

.page-resources__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__security-text {
  flex: 1;
}

.page-resources__security-subtitle {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-resources-primary-color);
}

.page-resources__security-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--page-resources-text-dark);
}

.page-resources__security-list li {
  margin-bottom: 8px;
}

.page-resources__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-resources__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-resources__faq-section {
  padding: 60px 20px;
}

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

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

.page-resources__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-resources-primary-color);
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources__faq-qtext {
  flex-grow: 1;
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
  content: '−';
}

.page-resources__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--page-resources-text-light);
}

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

.page-resources__faq-answer a {
  color: var(--page-resources-primary-color);
  text-decoration: underline;
}

.page-resources__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
  color: var(--page-resources-secondary-color);
}

.page-resources__cta-section .page-resources__text-block {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.2em;
}

.page-resources__cta-section .page-resources__text-block a {
  color: var(--page-resources-primary-color);
  text-decoration: underline;
}

/* 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__guide-layout,
  .page-resources__security-content {
    flex-direction: column;
  }
  .page-resources__guide-layout--reverse {
    flex-direction: column;
  }
  .page-resources__guide-content,
  .page-resources__security-text {
    order: 2;
  }
  .page-resources__guide-image-wrapper,
  .page-resources__security-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }
  .page-resources__download-cards {
    flex-direction: column;
    align-items: center;
  }
  .page-resources__card {
    max-width: 100%;
  }
  .page-resources__game-grid,
  .page-resources__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    padding: 60px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__intro-section,
  .page-resources__guide-section,
  .page-resources__download-section,
  .page-resources__games-section,
  .page-resources__promotions-section,
  .page-resources__security-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 40px 15px;
  }
  .page-resources__container,
  .page-resources__card,
  .page-resources__game-card,
  .page-resources__promo-card,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__guide-image-wrapper,
  .page-resources__security-image-wrapper,
  .page-resources__download-image,
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-resources__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-resources__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-resources__guide-subtitle,
  .page-resources__security-subtitle {
    font-size: 1.5em;
  }
  .page-resources__text-block,
  .page-resources__security-list li {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
}