/* style/resources.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #0a0a0a;
  --register-btn-bg: #C30808;
  --login-btn-bg: #C30808;
  --register-login-font: #FFFF00;
}

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

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

.page-resources__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), #005f2e);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

.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: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-resources__btn-primary {
  background-color: var(--register-btn-bg); /* Use specific color for Register/Login */
  color: var(--register-login-font); /* Use specific font color */
  border: 2px solid var(--register-btn-bg);
}

.page-resources__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-resources__section {
  padding: 80px 0;
}

.page-resources__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-light);
}

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

.page-resources__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-resources__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-resources__text-block {
  flex: 1;
  color: var(--text-light);
}

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

.page-resources__text-block h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.page-resources__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-resources__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources__list li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__list li a:hover {
  color: #00a04a;
  text-decoration: underline;
}

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

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

.page-resources__dark-bg .page-resources__text-block {
  color: var(--text-light);
}

.page-resources__guide-section,
.page-resources__security-section {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-resources__guide-section p,
.page-resources__security-section p {
  color: var(--text-dark);
}

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

.page-resources__faq-intro-text {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.page-resources__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-resources__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

.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;
  background-color: #ffffff;
  color: var(--text-dark);
}

.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-bottom: 15px;
  color: var(--text-dark);
}

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

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

.page-resources__cta-faq {
  text-align: center;
  margin-top: 40px;
}

.page-resources__cta-section {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, #005f2e, var(--primary-color));
  color: var(--text-light);
}

.page-resources__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--text-light);
}

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

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

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

  .page-resources__content-wrapper {
    flex-direction: column;
  }

  .page-resources__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-resources__text-block,
  .page-resources__image-wrapper {
    flex: none;
    width: 100%;
  }
}

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

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

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

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

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 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;
    box-sizing: border-box !important;
  }

  .page-resources__section {
    padding: 60px 0;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

  .page-resources__content-wrapper {
    gap: 30px;
  }

  .page-resources__text-block h3 {
    font-size: 1.5em;
  }

  /* Images responsive for mobile */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__image-wrapper,
  .page-resources__content-wrapper,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-resources__faq-question h3 {
    font-size: 1em;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px;
  }

  .page-resources__cta-title {
    font-size: 2.2em;
  }

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

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

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

  .page-resources__faq-question h3 {
    font-size: 0.95em;
  }

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