/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #E0E0E0; /* Light grey for general text on dark background */
  background-color: #1A1A1A; /* Very dark grey/near black background */
}

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

.page-resources__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.page-resources__section:last-of-type {
  border-bottom: none;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  color: #C0C0C0;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Hero Section */
.page-resources__hero {
  background: linear-gradient(135deg, #B22222 0%, #8B0000 70%, #FFD700 100%);
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.page-resources__hero > .page-resources__container {
  position: relative;
  z-index: 2;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-subtitle {
  font-size: 1.4em;
  color: #F0F0F0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-resources__hero-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin-top: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease-in-out;
}

.page-resources__hero-image:hover {
  transform: scale(1.02);
}

/* Buttons */
.page-resources__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-resources__btn--primary {
  background-color: #FFD700; /* Gold */
  color: #B22222; /* Firebrick */
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-resources__btn--primary:hover {
  background-color: #E0B500;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-resources__btn--secondary {
  background-color: #B22222; /* Firebrick */
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
  box-shadow: 0 4px 10px rgba(178, 34, 34, 0.4);
}

.page-resources__btn--secondary:hover {
  background-color: #8B0000;
  border-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(178, 34, 34, 0.6);
}

.page-resources__btn--cta {
  background-color: #FFD700;
  color: #B22222;
  padding: 18px 35px;
  font-size: 1.2em;
  margin: 0 15px;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

.page-resources__btn--cta:hover {
  background-color: #E0B500;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.7);
}

/* Intro Section */
.page-resources__intro .page-resources__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-resources__intro .page-resources__text-content {
  flex: 1;
  line-height: 1.7;
  font-size: 1.05em;
}

.page-resources__intro .page-resources__text-content p {
  margin-bottom: 1em;
}

.page-resources__intro .page-resources__image-wrapper {
  flex: 0 0 400px;
  text-align: center;
}

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

/* Resource Types Section */
.page-resources__resource-types .page-resources__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources__card {
  background-color: #2A2A2A;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-resources__card:hover {
  transform: translateY(-5px);
  background-color: #3A3A3A;
}

.page-resources__card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.page-resources__card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__card-text {
  font-size: 1em;
  color: #C0C0C0;
  line-height: 1.6;
}

/* Detail Pages Section */
.page-resources__detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__detail-item {
  background-color: #2A2A2A;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__detail-item:hover {
  background-color: #3A3A3A;
  transform: translateY(-3px);
}

.page-resources__detail-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-resources__detail-title a:hover {
  color: #F0C419;
  text-decoration: underline;
}

.page-resources__detail-description {
  font-size: 0.95em;
  color: #C0C0C0;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Why Choose Us Section */
.page-resources__why-choose-us .page-resources__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-resources__why-choose-us .page-resources__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-resources__why-choose-us .page-resources__text-content {
  flex: 1;
  line-height: 1.7;
  font-size: 1.05em;
}

.page-resources__why-choose-us .page-resources__text-content ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-resources__why-choose-us .page-resources__text-content li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #E0E0E0;
}

.page-resources__why-choose-us .page-resources__text-content li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  top: 0;
}

.page-resources__why-choose-us .page-resources__image-wrapper {
  flex: 0 0 400px;
  text-align: center;
}

.page-resources__why-choose-us .page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* CTA Banner */
.page-resources__cta-banner {
  background: linear-gradient(90deg, #B22222, #FFD700);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin: 60px auto;
  max-width: 1160px;
}

.page-resources__cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-resources__cta-content {
  position: relative;
  z-index: 2;
}

.page-resources__cta-title {
  font-size: 2.5em;
  color: #1A1A1A;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.page-resources__cta-title strong {
  color: #8B0000;
}

.page-resources__cta-description {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-resources__cta-buttons {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.page-resources__cta-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* FAQ Section */
.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__faq-item {
  background-color: #2A2A2A;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 15px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-resources__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #B22222;
  transition: transform 0.3s ease;
}

.page-resources__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-resources__faq-answer {
  font-size: 1em;
  color: #C0C0C0;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding-top: 0;
}

.page-resources__faq-answer.active {
  max-height: 300px; /* Adjust based on content */
  padding-top: 15px;
}

.page-resources__faq-answer p {
  margin-bottom: 1em;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-subtitle {
    font-size: 1.2em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__intro .page-resources__content-grid,
  .page-resources__why-choose-us .page-resources__content-grid {
    flex-direction: column;
  }
  .page-resources__intro .page-resources__image-wrapper,
  .page-resources__why-choose-us .page-resources__image-wrapper {
    flex: none;
    width: 100%;
    margin-top: 30px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn--cta {
    width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-resources__hero {
    padding: 80px 0 40px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-subtitle {
    font-size: 1.1em;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__resource-types .page-resources__grid,
  .page-resources__detail-list {
    grid-template-columns: 1fr;
  }
  .page-resources__card-title {
    font-size: 1.4em;
  }
  .page-resources__detail-title {
    font-size: 1.2em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-subtitle {
    font-size: 1em;
  }
  .page-resources__btn {
    padding: 12px 20px;
    font-size: 0.95em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__section-description {
    font-size: 0.9em;
  }
  .page-resources__cta-title {
    font-size: 1.5em;
  }
  .page-resources__cta-buttons {
    gap: 10px;
  }
  .page-resources__btn--cta {
    width: 90%;
    padding: 15px 25px;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
  }
}