/* style/resources.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --button-register: #C30808;
  --button-login: #C30808;
  --font-register-login: #FFFF00;
}

.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color); /* Body background is light, so use dark text */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 500px;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-resources__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

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

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-resources__hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-resources__dark-section .page-resources__section-title {
  color: var(--text-light);
}

.page-resources__sub-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources__dark-section .page-resources__sub-title {
  color: var(--text-light);
}

.page-resources__paragraph {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-resources__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources__list--ordered {
  list-style-type: decimal;
}

.page-resources__list-item {
  margin-bottom: 10px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 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(--button-register);
  color: var(--font-register-login);
  border: 2px solid var(--button-register);
}

.page-resources__btn-primary:hover {
  background-color: darken(var(--button-register), 10%);
  border-color: darken(var(--button-register), 10%);
}

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

.page-resources__btn-secondary:hover {
  background-color: var(--font-register-login);
  color: var(--button-login);
}

.page-resources__btn-tertiary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  margin-top: 15px;
}

.page-resources__btn-tertiary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

/* App Download Cards */
.page-resources__app-download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__app-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: var(--text-light);
}

.page-resources__app-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-light);
}

/* Video Section */
.page-resources__video-section {
  padding: 60px 20px;
  background-color: #0d0d0d; /* Dark background for video */
  color: var(--text-light);
  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;
}

.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%;
  object-fit: contain;
  cursor: pointer;
}

/* Game Cards */
.page-resources__games-section {
  padding: 60px 20px;
}

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

.page-resources__game-card {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources__game-card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 0 15px 10px;
}

.page-resources__game-card .page-resources__paragraph {
  padding: 0 15px;
  font-size: 0.95em;
  flex-grow: 1;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 20px;
}

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

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

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

.page-resources__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-resources__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

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

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

.page-resources__faq-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-resources__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Conclusion Section */
.page-resources__conclusion-section {
  padding: 60px 20px;
  text-align: center;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

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

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

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

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

  .page-resources__hero-buttons,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__container,
  .page-resources__video-section,
  .page-resources__video-wrapper,
  .page-resources__app-download-cards,
  .page-resources__game-cards,
  .page-resources__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-resources__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    margin-left: 0;
    margin-right: 0;
  }

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

  .page-resources__sub-title {
    font-size: 1.4em;
  }

  .page-resources__game-image {
    height: 200px;
  }

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

  .page-resources__faq-answer {
    padding: 10px 15px;
  }

  .page-resources__app-download-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__sub-title {
    font-size: 1.2em;
  }
}