/* style/resources.css */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f0f2f5;
}

.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); /* Ensures content is not hidden by fixed header */
  color: #ffffff;
  overflow: hidden;
}

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

.page-resources__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

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

.page-resources__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__intro-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Auxiliary color for CTA */
  color: #0A192F; /* Dark text for gold background */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources__center-button {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

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

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #0A192F; /* Main color for titles on light background */
}

.page-resources__dark-section .page-resources__section-title {
  color: #FFD700; /* Auxiliary color for titles on dark background */
}

.page-resources__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__dark-section .page-resources__text-block {
  color: #f0f0f0;
}

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

.page-resources__dark-bg {
  background-color: #0A192F;
  color: #ffffff;
}

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

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

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__feature-item h3,
.page-resources__news-item h3 {
  font-size: 1.4em;
  margin: 20px 20px 10px;
  color: #0A192F;
}

.page-resources__feature-item h3 a,
.page-resources__news-item h3 a {
  color: #0A192F;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__feature-item h3 a:hover,
.page-resources__news-item h3 a:hover {
  color: #FFD700;
}

.page-resources__feature-item p,
.page-resources__news-item p {
  padding: 0 20px 20px;
  font-size: 0.95em;
  line-height: 1.7;
  flex-grow: 1;
}

.page-resources__news-date {
  display: block;
  font-size: 0.85em;
  color: #666;
  padding: 0 20px 20px;
  margin-top: auto;
}

.page-resources__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-resources__step-item {
  background: #1a2b42;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-resources__step-item h3 {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__step-item p {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
  text-align: left;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px 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;
  padding: 20px 15px !important;
  opacity: 1;
  background: #e6f7ff; /* Light blue background for active FAQ answer */
  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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #0A192F;
}

.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: #FFD700;
  transform: rotate(45deg); /* Change to a cross when active */
}

.page-resources__contact-support {
  text-align: center;
  background-color: #f0f2f5;
  padding-bottom: 80px;
}

.page-resources a {
  color: #0A192F;
  text-decoration: none;
}

.page-resources a:hover {
  text-decoration: underline;
  color: #FFD700;
}

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

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

@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__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-resources__intro-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

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

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

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

  .page-resources__features-grid,
  .page-resources__news-grid,
  .page-resources__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-resources__card, .page-resources__step-item {
    padding: 20px;
  }

  .page-resources__feature-item h3,
  .page-resources__news-item h3 {
    font-size: 1.2em;
    margin: 15px 15px 8px;
  }

  .page-resources__feature-item p,
  .page-resources__news-item p {
    padding: 0 15px 15px;
    font-size: 0.9em;
  }

  .page-resources__news-date {
    padding: 0 15px 15px;
  }

  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}