/* style/resources.css */

/* Base styles for the page-resources scope */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color); /* Inherited from shared.css */
}

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

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

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

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

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

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

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

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

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

/* Light Background Section */
.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-resources__light-bg .page-resources__section-intro,
.page-resources__light-bg .page-resources__section-text {
  color: #555555;
}

/* Dark Background Section */
.page-resources__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than pure black for depth */
  color: #ffffff;
}

.page-resources__dark-bg .page-resources__section-title {
  color: #26A9E0;
}

.page-resources__dark-bg .page-resources__section-intro,
.page-resources__dark-bg .page-resources__section-text {
  color: #f0f0f0;
}

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

.page-resources__card {
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

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

.page-resources__card-title {
  font-size: 1.4em;
  padding: 15px 20px 10px;
  color: #26A9E0;
  font-weight: bold;
}

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

.page-resources__card-title a:hover {
  color: #1e87c5;
}

.page-resources__card-text {
  padding: 0 20px 15px;
  flex-grow: 1;
  color: #555555;
}

.page-resources__card-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
  background: #1e87c5;
}

/* Dark Cards for Dark Sections */
.page-resources__card--dark {
  background: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-resources__card--dark .page-resources__card-title a {
  color: #26A9E0;
}

.page-resources__card--dark .page-resources__card-title a:hover {
  color: #4ac1f7;
}

.page-resources__card--dark .page-resources__card-text {
  color: #f0f0f0;
}

.page-resources__card--dark .page-resources__card-link {
  background: #26A9E0;
  color: #ffffff;
}

.page-resources__card--dark .page-resources__card-link:hover {
  background: #4ac1f7;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-resources__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  list-style: none;
  color: #000000;
}

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

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-resources__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1.1em;
  color: #555555;
  border-top: 1px solid #eee;
  background-color: #f8f8f8;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
}

.page-resources__faq-item[open] summary {
  border-bottom: none;
}

/* Download Section */
.page-resources__download-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__download-section .page-resources__section-intro {
  color: #f0f0f0;
}

.page-resources__flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.page-resources__download-content {
  flex: 1;
  max-width: 60%;
}

.page-resources__download-content ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-resources__download-content li {
  background: url('/images/check-icon.svg') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-resources__download-image-wrapper {
  flex: 1;
  max-width: 40%;
  text-align: center;
}

.page-resources__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-resources__download-btn {
  margin-top: 30px;
  font-size: 1.1em;
  padding: 15px 30px;
}

/* CTA Section */
.page-resources__cta-section .page-resources__section-title {
  color: #000000;
}

.page-resources__cta-section .page-resources__section-intro {
  color: #555555;
}

.page-resources__cta-content {
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card-image {
    height: 200px;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-resources__flex-container {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources__download-content,
  .page-resources__download-image-wrapper {
    max-width: 100%;
    width: 100%;
  }
  .page-resources__download-content {
    order: 2;
  }
  .page-resources__download-image-wrapper {
    order: 1;
  }
  .page-resources__download-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsiveness */
  .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: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button responsiveness */
  .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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-resources__faq-answer {
    font-size: 0.95em;
    padding: 10px 15px 15px;
  }
}