/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #e5dfd3; /* Light text for dark background */
  background-color: #1A202C;
  line-height: 1.6;
}

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

/* Hero Section */
.page-resources__hero {
  background: linear-gradient(135deg, #1A202C 0%, #3a475a 100%); /* Dark gradient for depth */
  padding: 80px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-content {
  z-index: 10;
  max-width: 900px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.3em;
  color: #e5dfd3;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  overflow: hidden;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

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

.page-resources__btn--primary {
  background-color: #FFD700; /* Gold */
  color: #1A202C; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

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

.page-resources__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-resources__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-resources__btn--link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s ease;
}

.page-resources__btn--link:hover {
  border-bottom: 2px solid #FFD700;
}

.page-resources__btn--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Section Styling */
.page-resources__section {
  padding: 60px 0;
  position: relative;
}

.page-resources__section:nth-of-type(even) {
  background-color: #2a3340; /* Slightly lighter dark background */
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources__section-subtitle {
  font-size: 1.2em;
  color: #bbb;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e5dfd3;
  text-align: justify;
}

.page-resources__text-block strong {
  color: #FFD700;
}

/* About Section specific */
.page-resources__section--about .page-resources__cta-banner {
  background-color: #FFD700; /* Gold banner */
  color: #1A202C; /* Dark text on gold */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-resources__section--about .page-resources__cta-banner p {
  font-size: 1.4em;
  font-weight: bold;
  margin: 0;
}

/* Article Grid */
.page-resources__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__article-card {
  background-color: #1A202C;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #e5dfd3;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__article-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #FFD700;
}

.page-resources__article-title {
  font-size: 1.4em;
  color: #FFD700;
  padding: 20px 20px 10px;
  margin: 0;
}

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

.page-resources__article-title a:hover {
  color: #e6c200;
}

.page-resources__article-description {
  font-size: 0.95em;
  color: #bbb;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-resources__article-card .page-resources__btn--link {
  margin: 0 20px 20px;
  align-self: flex-start;
}

.page-resources__more-resources-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 30px;
}

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

.page-resources__faq-question {
  font-size: 1.3em;
  color: #FFD700;
  margin-top: 0;
  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;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  font-size: 1em;
  color: #e5dfd3;
  margin-top: 0;
  display: none; /* Hidden by default, toggled by JS */
}

.page-resources__faq-answer.show {
  display: block;
}

.page-resources__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__faq-answer a:hover {
  color: #e6c200;
}

/* CTA Section */
.page-resources__section--cta {
  background-color: #FFD700; /* Gold background */
  color: #1A202C; /* Dark text */
  text-align: center;
  padding: 80px 0;
}

.page-resources__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-resources__cta-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: invert(1) brightness(0.1); /* Make dark icon visible on gold */
}

.page-resources__cta-title {
  font-size: 2.8em;
  color: #1A202C;
  margin-bottom: 10px;
}

.page-resources__cta-description {
  font-size: 1.2em;
  color: #333;
  max-width: 700px;
}

/* Floating Ad Menu */
.page-resources__floating-ad-menu {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  background-color: rgba(26, 32, 44, 0.85); /* Semi-transparent dark background */
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.page-resources__floating-ad-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background-color: #FFD700; /* Gold button */
  color: #1A202C; /* Dark text */
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-resources__floating-ad-btn:hover {
  background-color: #e6c200;
  transform: translateX(-5px);
}

.page-resources__floating-ad-icon {
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.15em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero {
    padding: 60px 0 30px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn {
    width: 80%;
    max-width: 300px;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-subtitle {
    font-size: 1em;
  }
  .page-resources__text-block {
    font-size: 0.95em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__floating-ad-menu {
    right: 10px;
    bottom: 10px;
    padding: 8px;
  }
  .page-resources__floating-ad-btn {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__btn {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__article-title {
    font-size: 1.2em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
}