/* style/resources.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --dark-background: #1a1a2e;
  --light-text: #ffffff;
  --dark-text: #333333;
  --button-register-login-bg: #C30808;
  --button-register-login-text: #FFFF00;
}

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

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

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 0 60px; /* Adjusted padding-top for header offset */
  color: var(--light-text);
  overflow: hidden;
  min-height: 600px;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  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;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: var(--button-register-login-bg);
  color: var(--button-register-login-text);
  border: 2px solid var(--button-register-login-bg);
}

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

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

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

.page-resources__section-intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: inherit;
}

.page-resources__why-choose-us-section,
.page-resources__promotions-section,
.page-resources__cta-app-section {
  padding: 80px 0;
  color: var(--dark-text);
  background-color: var(--secondary-color);
}

.page-resources__guides-section,
.page-resources__faq-section,
.page-resources__contact-section {
  padding: 80px 0;
  color: var(--light-text);
  background-color: var(--dark-background);
}

.page-resources__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-resources__feature-item {
  background: rgba(255, 255, 255, 0.05); /* Light background for dark section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--light-text);
}

.page-resources__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

.page-resources__card {
  background: var(--secondary-color);
  color: var(--dark-text);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.page-resources__card:hover {
  transform: translateY(-10px);
}

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

.page-resources__card-content {
  padding: 25px;
}

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

.page-resources__card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.page-resources__card-link {
  color: var(--primary-color);
  font-weight: bold;
  display: block;
}

.page-resources__promotions-section .page-resources__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

.page-resources__promotions-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--light-text);
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-question-text {
  margin: 0;
  color: inherit;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

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

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

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

.page-resources__faq-answer p {
  margin: 0;
  color: inherit;
}

.page-resources__cta-app-section {
  background-color: var(--secondary-color);
  color: var(--dark-text);
}

.page-resources__cta-app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-resources__cta-app-text {
  flex: 1;
}

.page-resources__cta-app-image {
  flex: 0 0 400px; /* Fixed width for desktop */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

.page-resources__cta-app-button {
  margin-top: 30px;
}

.page-resources__contact-section .page-resources__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

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

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

  .page-resources__cta-app-image {
    flex: 0 0 300px;
  }
}

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

  .page-resources__hero-section {
    padding: var(--header-offset, 120px) 20px 40px;
    min-height: 450px;
  }

  .page-resources__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

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

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

  .page-resources__features-grid,
  .page-resources__guide-cards-grid {
    grid-template-columns: 1fr;
  }

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

  .page-resources__cta-app-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-resources__cta-app-image {
    flex: none;
    width: 80%;
    max-width: 300px;
  }

  /* Force responsive for all images, buttons, and sections */
  .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,
  .page-resources__hero-section,
  .page-resources__why-choose-us-section,
  .page-resources__guides-section,
  .page-resources__promotions-section,
  .page-resources__faq-section,
  .page-resources__cta-app-section,
  .page-resources__contact-section,
  .page-resources__features-grid,
  .page-resources__guide-cards-grid,
  .page-resources__cta-app-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .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__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Color contrast specific styles */
.page-resources__dark-bg {
  color: var(--light-text);
  background-color: var(--dark-background);
}

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

.page-resources__card {
  background: var(--secondary-color);
  color: var(--dark-text);
  border: 1px solid #e0e0e0;
}

.page-resources__faq-item {
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-text);
}

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

.page-resources__feature-item {
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-text);
}