/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #1a1a1a; /* Body background from shared.css */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
  min-height: 600px;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-section .page-resources__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-resources__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-resources__hero-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
  background-color: #1e87c2;
  border-color: #1e87c2;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* General Section Styles */
.page-resources__introduction-section,
.page-resources__guide-section,
.page-resources__video-section,
.page-resources__strategy-tips-section,
.page-resources__news-updates-section,
.page-resources__faq-section,
.page-resources__cta-bottom-section {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
}

.page-resources__light-bg .page-resources__section-title {
  color: #333333;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  color: #f0f0f0;
}

.page-resources__light-bg .page-resources__paragraph {
  color: #555555;
}

.page-resources__dark-bg,
.page-resources__dark-section {
  background-color: #1e1e1e;
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Guide Section */
.page-resources__guide-section .page-resources__container {
  text-align: center;
}

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

.page-resources__guide-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 450px; /* Ensure cards have similar height */
  box-sizing: border-box;
}

.page-resources__guide-card:hover {
  transform: translateY(-5px);
}

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

.page-resources__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-resources__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-resources__card-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__card-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

/* Video Section */
.page-resources__video-section .page-resources__container {
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  box-sizing: border-box;
}

.page-resources__video-wrapper .page-resources__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  max-width: 100%;
  display: block;
}

/* Strategy Tips Section */
.page-resources__strategy-tips-section .page-resources__container {
  text-align: center;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid #26A9E0;
  border-radius: 5px;
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-resources__list-item strong {
  color: #26A9E0;
}

.page-resources__list-item a {
  color: #26A9E0;
  text-decoration: none;
}

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

/* News Updates Section */
.page-resources__news-updates-section .page-resources__container {
  text-align: center;
}

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

.page-resources__news-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
  min-height: 250px;
  box-sizing: border-box;
}

.page-resources__news-item:hover {
  transform: translateY(-5px);
}

.page-resources__news-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-resources__news-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-resources__news-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-resources__news-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources__view-all-news {
  margin-top: 40px;
}

/* FAQ Section */
.page-resources__faq-section .page-resources__container {
  text-align: center;
}

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

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

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

.page-resources__faq-item details > summary {
  list-style: none;
}

.page-resources__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-item[open] .page-resources__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  width: 25px;
  text-align: center;
}

.page-resources__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #e0e0e0;
  text-align: left;
}

.page-resources__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-resources__view-all-faq {
  margin-top: 40px;
}

/* Bottom CTA Section */
.page-resources__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
}

.page-resources__cta-bottom-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__cta-bottom-section .page-resources__paragraph {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section .page-resources__container {
    flex-direction: column;
    text-align: center;
  }

  .page-resources__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__cta-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }

  .page-resources__hero-image-wrapper {
    margin-top: 30px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__paragraph {
    font-size: 0.95em;
  }

  .page-resources__grid-layout,
  .page-resources__news-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__guide-card,
  .page-resources__news-item {
    min-height: auto;
    padding: 20px;
  }

  .page-resources__card-image {
    height: auto;
  }

  .page-resources__list-item {
    font-size: 1em;
    padding: 15px;
  }

  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-resources__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  /* Mobile specific overrides for images, videos, buttons */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section .page-resources__container,
  .page-resources__video-section .page-resources__container,
  .page-resources__cta-bottom-section .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing from fixed header */
  }

  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px; /* Container already handles padding */
    padding-right: 0px;
    overflow: hidden !important;
  }

  .page-resources__cta-button,
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px; /* Buttons handle padding */
    padding-right: 0px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources__cta-buttons {
    flex-direction: column !important;
  }
}