/* style/resources.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000;
  --card-background-light: #ffffff;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --border-light: #e0e0e0;
  --button-hover-darken: #ccac00;
  --button-hover-darken-secondary: #6b0000;
}

.page-resources {
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark);
  min-height: 100vh;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px; /* Adjust for fixed header on mobile */
  }
}

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

.page-resources__hero-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
  border-bottom: 5px solid var(--primary-color);
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-resources__cta-button:hover {
  background-color: var(--button-hover-darken);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources__card {
  background-color: var(--card-background-light);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 40px;
  margin-bottom: 40px;
}

.page-resources__introduction-section,
.page-resources__core-services-section,
.page-resources__promotions-section,
.page-resources__blog-section,
.page-resources__faq-section {
  padding: 60px 0;
}

/* Introduction Section */
.page-resources__content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
}

.page-resources__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-resources__content-wrapper p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

.page-resources__content-wrapper p a {
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-resources__content-wrapper p a:hover {
  text-decoration: underline;
}

.page-resources__read-more-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.page-resources__read-more-button:hover {
  background-color: var(--button-hover-darken-secondary);
}

/* Core Services Section */
.page-resources__service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources__service-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-resources__service-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

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

.page-resources__service-item p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-dark);
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-resources__button:hover {
  background-color: var(--button-hover-darken);
  transform: translateY(-2px);
}

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

.page-resources__promo-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-resources__promo-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

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

.page-resources__promo-item p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-resources__promo-item p a {
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-resources__promo-item p a:hover {
  text-decoration: underline;
}

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

.page-resources__blog-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__blog-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-resources__blog-item h3 {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-resources__blog-link {
  text-decoration: none;
  color: inherit;
}

.page-resources__blog-link:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.page-resources__blog-item p {
  font-size: 0.95em;
  line-height: 1.6;
  padding: 0 20px 15px;
  flex-grow: 1;
  text-align: justify;
}

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

.page-resources__view-all-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__view-all-button:hover {
  background-color: var(--button-hover-darken-secondary);
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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.3s 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: #f9f9f9;
  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 var(--border-light);
  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: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.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: var(--secondary-color);
}

.page-resources__faq-answer p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-dark);
  text-align: justify;
}

.page-resources__faq-answer a {
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-resources__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-subtitle {
    font-size: 1.2em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__card {
    padding: 30px;
  }
  .page-resources__service-grid, .page-resources__promo-grid, .page-resources__blog-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding: 60px 0;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-subtitle {
    font-size: 1em;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__card {
    padding: 25px;
  }
  .page-resources__introduction-section, .page-resources__core-services-section, .page-resources__promotions-section, .page-resources__blog-section, .page-resources__faq-section {
    padding: 40px 0;
  }
  .page-resources__content-wrapper p {
    font-size: 0.95em;
  }
  .page-resources__service-item h3, .page-resources__promo-item h3 {
    font-size: 1.3em;
  }
  .page-resources__service-item p, .page-resources__promo-item p, .page-resources__blog-item p {
    font-size: 0.9em;
  }
  .page-resources__blog-item h3 {
    font-size: 1.1em;
  }
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 15px;
    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;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-subtitle {
    font-size: 0.9em;
  }
  .page-resources__cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__service-grid, .page-resources__promo-grid, .page-resources__blog-list {
    grid-template-columns: 1fr;
  }
  .page-resources__service-image, .page-resources__promo-image, .page-resources__blog-image {
    height: 180px;
  }
}