/* style/resources.css */

/* Variables for color scheme */
:root {
  --primary-color: #0A2239;
  --secondary-color: #E0B04C;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

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

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  text-align: center;
  background-color: var(--primary-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:1920x1080:jj88,resources,hero_background,abstract_lines]');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
}

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

.page-resources__description {
  font-size: 1.25em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

.page-resources__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources__btn-primary:hover {
  background-color: #d4a53e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.page-resources__content-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555;
}

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

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

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

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 1.5em;
  padding: 20px 20px 10px 20px;
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
}

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

.page-resources__card-title a:hover {
  color: var(--secondary-color);
}

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

.page-resources__card-link {
  display: inline-block;
  padding: 12px 20px;
  margin: 0 20px 20px 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__card-link:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

.page-resources__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  color: var(--text-light);
  font-size: 1.1em;
  font-weight: 600;
}

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

.page-resources__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-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: 30px;
  height: 30px;
}

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

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

/* Final CTA Section */
.page-resources__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:bg:1920x1080:jj88,resources,final_cta_background,dynamic_lights]');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
}

.page-resources__final-cta-section .page-resources__section-title {
  color: var(--secondary-color);
}

.page-resources__final-cta-section .page-resources__description {
  margin-bottom: 50px;
}

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 0 !important;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__main-title {
    font-size: 2.2em;
  }
  .page-resources__description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-resources__content-section,
  .page-resources__faq-section,
  .page-resources__final-cta-section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__grid {
    gap: 20px;
    padding: 0 15px;
  }
  .page-resources__card {
    margin: 0 auto;
  }
  .page-resources__card-title {
    font-size: 1.3em;
    padding: 15px 15px 8px 15px;
  }
  .page-resources__card-description {
    padding: 0 15px 15px 15px;
  }
  .page-resources__card-link {
    margin: 0 15px 15px 15px;
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-resources__faq-list {
    padding: 0 15px;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-resources__faq-question h3 {
    font-size: 0.95em;
  }
  .page-resources__faq-toggle {
    font-size: 1.5em;
    width: 25px;
    height: 25px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }

  /* Image responsive adaptations */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__container,
  .page-resources__grid-item,
  .page-resources__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }
  .page-resources__hero-section .page-resources__container,
  .page-resources__content-section .page-resources__container,
  .page-resources__faq-section .page-resources__container,
  .page-resources__final-cta-section .page-resources__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__description {
    font-size: 0.9em;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }
}