/* style/resources.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --btn-login-color: #EA7C07;
  --bg-color: #FFFFFF;
  --black-color: #000000;
}

/* Base styles for the page content */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--bg-color); /* Default page background */
  padding-bottom: 60px; /* Space before footer */
}

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

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

.page-resources__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-resources__flex-reverse {
  flex-direction: row-reverse;
}

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

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

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

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

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

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

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__sub-title {
  color: var(--text-dark);
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color), #4dbff2); /* Slightly varied gradient for hero */
}

.page-resources__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 20px;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Section Titles & Paragraphs */
.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--primary-color);
}

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

.page-resources__paragraph {
  font-size: 17px;
  margin-bottom: 15px;
  line-height: 1.7;
}

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

.page-resources__list-item {
  font-size: 17px;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.page-resources__list-item::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 20px;
  line-height: 1;
}

/* CTA Buttons */
.page-resources__cta-button,
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box; /* Ensure padding doesn't push width */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-resources__btn-primary {
  background: var(--btn-login-color); /* Using login color for primary CTA */
  color: var(--text-light);
  border-color: var(--btn-login-color);
}

.page-resources__btn-primary:hover {
  background: #f78d1f; /* Slightly darker orange */
  border-color: #f78d1f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-resources__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources__faq-question:active {
  background: #eeeeee;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg);
}

.page-resources__faq-answer p {
  margin: 0;
  color: var(--text-dark);
}

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

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

  .page-resources__hero-description {
    font-size: 18px;
  }

  .page-resources__section-title {
    font-size: 32px;
  }

  .page-resources__sub-title {
    font-size: 22px;
  }

  .page-resources__paragraph,
  .page-resources__list-item,
  .page-resources__faq-question h3 {
    font-size: 16px;
  }

  .page-resources__flex-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources__flex-reverse {
    flex-direction: column; /* Revert order for mobile */
  }

  .page-resources__image-wrapper {
    order: -1; /* Image appears above text on mobile */
  }

  .page-resources__guide-section .page-resources__image-wrapper,
  .page-resources__features-section .page-resources__image-wrapper {
    order: -1; /* For reverse sections, image still on top */
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-resources__hero-title {
    font-size: 32px;
  }

  .page-resources__hero-description {
    font-size: 16px;
  }

  .page-resources__section-title {
    font-size: 28px;
  }

  .page-resources__sub-title {
    font-size: 20px;
  }

  .page-resources__paragraph,
  .page-resources__list-item {
    font-size: 15px;
  }

  /* Images responsive for mobile */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section,
  .page-resources__container,
  .page-resources__flex-container,
  .page-resources__text-content,
  .page-resources__image-wrapper,
  .page-resources__faq-list,
  .page-resources__faq-item,
  .page-resources__faq-question,
  .page-resources__faq-answer,
  .page-resources__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}