/* style/resources.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #000080;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --border-light: #e0e0e0;
}

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

.page-resources__hero-banner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  background-color: var(--secondary-color); /* Fallback background */
  color: var(--text-light);
  overflow: hidden;
  min-height: 400px;
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-resources__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-resources__cta-button--small {
  padding: 10px 25px;
  font-size: 1em;
}

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

.page-resources__section--intro {
  background-color: #ffffff;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

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

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

.page-resources__image--full-width {
  width: 100%;
}

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

.page-resources__card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

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

.page-resources__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  width: 100%;
}

.page-resources__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-resources__card p {
  font-size: 1em;
  color: var(--text-dark);
  line-height: 1.7;
}

.page-resources__call-to-action-text {
  text-align: center;
  font-size: 1.2em;
  margin-top: 50px;
  font-weight: bold;
  color: var(--secondary-color);
}

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

.page-resources__call-to-action-text a:hover {
  color: #e6b800;
  text-decoration: underline;
}

.page-resources__section--faq {
  background-color: var(--background-light);
}

.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.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 25px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid var(--border-light);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  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;
}

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

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

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

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

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

.page-resources__feature-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.page-resources__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-resources__feature-icon {
  max-width: 150px; /* Larger icons as per requirement */
  height: 150px; /* Maintain aspect ratio */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-resources__feature-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  line-height: 1.7;
}

.page-resources__read-more-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-resources__read-more-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__read-more-text a:hover {
  color: #e6b800;
  text-decoration: underline;
}

.page-resources__section--conclusion {
  background-color: #ffffff;
  text-align: center;
}

.page-resources__final-cta {
  margin-top: 40px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
}

.page-resources__final-cta a {
  margin-left: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    min-height: 300px;
  }
  .page-resources__hero-container {
    padding: 0 15px;
  }
  .page-resources__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card-image {
    height: 150px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__card p {
    font-size: 0.9em;
  }
  .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: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  .page-resources__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__feature-card {
    padding: 20px;
  }
  .page-resources__feature-icon {
    max-width: 120px;
    height: 120px;
  }
  .page-resources__feature-title {
    font-size: 1.2em;
  }
  .page-resources__feature-card p {
    font-size: 0.9em;
  }
  .page-resources__final-cta {
    font-size: 1em;
  }
  .page-resources__final-cta a {
    display: block;
    margin-top: 15px;
    margin-left: 0;
  }
  /* All images and containers responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-resources__section,
  .page-resources__container,
  .page-resources__card,
  .page-resources__feature-card,
  .page-resources__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__cta-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-resources__faq-question h3 {
    font-size: 0.9em;
  }
  .page-resources__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-resources__feature-icon {
    max-width: 100px;
    height: 100px;
  }
}