/* style/resources.css */

:root {
  --primary-color: #FFD700;
  --secondary-color: #000000;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #1a1a1a;
  --border-color: #e0e0e0;
}

.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default dark text for light body background */
  background-color: #ffffff; /* Explicitly set for clarity */
}

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

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-resources__section-title--light {
  color: var(--text-light);
}

.page-resources__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
}

.page-resources__section-description--light {
  color: var(--text-light);
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #333333 100%);
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 80px;
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources__main-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--primary-color);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-resources__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 16px 36px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-resources__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-resources__cta-button--primary:hover {
  background-color: #e0b600;
  border-color: #e0b600;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-resources__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-resources__intro-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

/* Guides Section */
.page-resources__guides-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
}

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

.page-resources__guide-item {
  background-color: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__guide-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__guide-title {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 15px 10px 15px;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-resources__guide-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__guide-title a:hover {
  color: #e0b600;
}

.page-resources__guide-excerpt {
  font-size: 16px;
  color: #cccccc;
  padding: 0 20px 15px 20px;
  flex-grow: 1;
}

.page-resources__guide-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__guide-link:hover {
  background-color: #e0b600;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.page-resources__faq-item.active {
  border-color: var(--primary-color);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: var(--bg-light);
}

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

.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: 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.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

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

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

/* News & Promo Section */
.page-resources__news-promo-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

.page-resources__news-promo-item {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources__news-promo-title {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 15px 10px 15px;
  color: var(--secondary-color);
  line-height: 1.3;
}

.page-resources__news-promo-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__news-promo-title a:hover {
  color: var(--primary-color);
}

.page-resources__news-promo-excerpt {
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 20px 15px 20px;
  flex-grow: 1;
}

.page-resources__news-promo-link {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__news-promo-link:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

/* Contact Section */
.page-resources__contact-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 44px;
  }

  .page-resources__hero-description {
    font-size: 20px;
  }

  .page-resources__section-title {
    font-size: 32px;
  }

  .page-resources__section-description {
    font-size: 16px;
  }

  .page-resources__guide-title, .page-resources__news-promo-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-resources__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources__hero-container {
    padding: 0;
  }

  .page-resources__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__section-title {
    font-size: 28px;
  }

  .page-resources__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-resources__content-image, .page-resources__guide-image, .page-resources__news-promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-resources__guide-list, .page-resources__news-promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__guide-item, .page-resources__news-promo-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__guide-image, .page-resources__news-promo-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-resources__guide-title, .page-resources__news-promo-title {
    font-size: 20px;
  }

  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 26px;
    height: 26px;
    font-size: 22px;
  }
  
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  .page-resources__contact-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}