/* style/resources.css */

/* Base styles for the page-resources class to ensure proper spacing from fixed header */
.page-resources {
  padding-top: 10px; /* Ensures content is not hidden by fixed header */
  margin-top: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default light text for dark body background */
  background: var(--bg-dark-1);
}

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

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

.page-resources__dark-bg {
  background: #1a1a1a;
  color: #ffffff;
}

.page-resources__light-bg {
  background: #f8f8f8;
  color: #333333;
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FF4500;
}

.page-resources__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: inherit;
}

.page-resources__hero-section {
  background: linear-gradient(135deg, #FF4500, #008080);
  padding: 80px 0;
  text-align: center;
  padding-top: 10px; /* Specific padding for hero section to clear fixed header */
}

.page-resources__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-resources__btn-primary {
  background: #FF4500;
  color: #ffffff;
  border-color: #FF4500;
}

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

.page-resources__btn-secondary {
  background: #ffffff;
  color: #FF4500;
  border-color: #FF4500;
}

.page-resources__btn-secondary:hover {
  background: #f0f0f0;
  color: #e63900;
  border-color: #e63900;
  transform: translateY(-2px);
}

.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;
  font-size: 17px;
  line-height: 1.7;
  color: inherit;
}

.page-resources__text-block p {
  margin-bottom: 15px;
}

.page-resources__image-block {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__image-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-resources__image-block--center {
  margin: 40px auto 0;
  max-width: 700px;
}

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

.page-resources__card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-resources__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.page-resources__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #FF4500;
  margin-bottom: 15px;
}

.page-resources__card-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #555555;
}

.page-resources__btn-link {
  display: inline-block;
  color: #008080;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #008080;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-resources__btn-link:hover {
  color: #005f5f;
  border-color: #005f5f;
}

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

.page-resources__guide-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-resources__guide-title {
  font-size: 24px;
  font-weight: 700;
  color: #FF4500;
  margin-bottom: 15px;
}

.page-resources__guide-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-resources__image-full-width {
  width: 100%;
  max-width: 100%;
  margin-top: 50px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__image-full-width img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-resources__list-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #555555;
}

.page-resources__list-features li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-resources__list-features li::before {
  content: '✔';
  color: #FF4500;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

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

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

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

.page-resources__faq-item.active .page-resources__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.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: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FF4500;
}

.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: #333;
  transform: rotate(180deg);
}

.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 20px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
  font-size: 16px;
  line-height: 1.6;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

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

.page-resources__news-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-resources__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-resources__news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-resources__news-content {
  padding: 20px;
}

.page-resources__news-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-resources__news-title a {
  color: #FF4500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
  color: #e63900;
}

.page-resources__news-excerpt {
  font-size: 15px;
  color: #555555;
  margin-bottom: 15px;
}

.page-resources__news-date {
  font-size: 14px;
  color: #888888;
}

.page-resources__view-all {
  text-align: center;
  margin-top: 50px;
}

.page-resources__cta-section {
  background: #008080;
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.page-resources__cta-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources__cta-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.text-highlight {
  color: #FFD700; /* Gold-like color for highlights */
  font-weight: 600;
}

.text-link {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: #e6c200;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 40px;
  }
  .page-resources__section-title {
    font-size: 32px;
  }
  .page-resources__cta-title {
    font-size: 36px;
  }
  .page-resources__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-resources__image-block {
    max-width: 100%;
    margin-bottom: 30px;
  }
  .page-resources__list-features {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 10px !important;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__hero-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 16px;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-resources__section-title {
    font-size: 28px;
  }
  .page-resources__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-resources__text-block {
    font-size: 16px;
  }
  .page-resources__card-title {
    font-size: 20px;
  }
  .page-resources__card-content p {
    font-size: 15px;
  }
  .page-resources__guide-title {
    font-size: 20px;
  }
  .page-resources__guide-item p {
    font-size: 15px;
  }
  .page-resources__image-block img,
  .page-resources__image-full-width img,
  .page-resources__card-image img,
  .page-resources__news-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  .page-resources__news-title {
    font-size: 18px;
  }
  .page-resources__news-excerpt {
    font-size: 14px;
  }
  .page-resources__cta-title {
    font-size: 30px;
  }
  .page-resources__cta-description {
    font-size: 16px;
  }
}