/* style/resources.css */

/* Variables */
:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f8f8f8;
  --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(--primary-color); /* Inherited from shared.css body */
}

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

.page-resources__section {
  padding: 80px 0;
}

.page-resources__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjusted padding-top for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  color: var(--text-light);
}

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

/* Section Titles and Descriptions */
.page-resources__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  color: inherit;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: normal;
  box-sizing: border-box;
}

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

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

.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);
}

.page-resources__btn-link {
  background: none;
  border: none;
  color: var(--secondary-color);
  padding: 0;
  text-align: left;
  font-size: 1em;
  white-space: normal;
}

.page-resources__btn-link:hover {
  text-decoration: underline;
}

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

.page-resources__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-resources__grid-reverse {
  grid-template-columns: 1fr 1fr;
}

.page-resources__grid-news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

/* Card Styles */
.page-resources__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark bg */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-resources__light-bg .page-resources__card {
  background-color: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-resources__light-bg .page-resources__card-title {
  color: var(--primary-color);
}

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

.page-resources__card-link:hover {
  text-decoration: underline;
}

.page-resources__card-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Text Blocks */
.page-resources__text-block {
  padding: 20px;
}

.page-resources__block-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-resources__block-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-resources__light-bg .page-resources__block-text {
  color: var(--text-dark);
}

.page-resources__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* News Cards */
.page-resources__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

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

.page-resources__news-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__news-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-resources__news-title a {
  text-decoration: none;
  color: inherit;
}

.page-resources__news-title a:hover {
  text-decoration: underline;
}

.page-resources__news-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-resources__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: var(--text-dark);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #e5e5e5;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-resources__faq-answer p {
  margin: 0;
  color: var(--text-dark);
}

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

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

/* CTA Section */
.page-resources__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-resources__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--primary-color);
}

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

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

.page-resources__cta-buttons .page-resources__btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.page-resources__cta-buttons .page-resources__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__cta-title {
    font-size: 2.4em;
  }
  .page-resources__grid-2-cols,
  .page-resources__grid-reverse {
    grid-template-columns: 1fr;
  }
  .page-resources__grid-reverse {
    flex-direction: column-reverse; /* Ensure image is above text on mobile for reversed grids */
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: var(--header-offset, 120px) 20px 60px; /* Adjust padding-top for header offset on mobile */
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-resources__section {
    padding: 60px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-resources__grid-3-cols,
  .page-resources__grid-news {
    grid-template-columns: 1fr;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__block-title {
    font-size: 1.6em;
  }
  .page-resources__block-text {
    font-size: 1em;
  }
  .page-resources__news-image {
    height: 200px;
  }
  .page-resources__news-content {
    padding: 20px;
  }
  .page-resources__news-title {
    font-size: 1.2em;
  }
  .page-resources__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile image and container responsiveness */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__text-block,
  .page-resources__image-wrapper,
  .page-resources__news-card,
  .page-resources__faq-list,
  .page-resources__faq-item,
  .page-resources__cta-section,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
  .page-resources__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources__hero-image {
    width: calc(100% + 30px); /* Account for padding */
    left: -15px;
  }

  /* Specific padding adjustments for sections to avoid double padding */
  .page-resources__section:not(.page-resources__hero-section) {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__section > .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}