/* style/resources.css */
.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;
}

.page-resources__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-resources__hero-section {
  padding-top: var(--header-offset, 120px);
  text-align: center;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-resources__btn-primary:hover {
  background-color: #d16b05;
}

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

.page-resources__btn-secondary:hover {
  background-color: #e0f2f7;
}

.page-resources__section-heading {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit from parent section */
}

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

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

.page-resources__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-resources__feature-image,
.page-resources__resource-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources__feature-title,
.page-resources__resource-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  padding: 0 20px;
}

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

.page-resources__feature-title a:hover,
.page-resources__resource-title a:hover {
  text-decoration: underline;
}

.page-resources__feature-text,
.page-resources__resource-text {
  padding: 0 20px;
  font-size: 1em;
  margin-bottom: 20px;
}

.page-resources__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-resources__video-section {
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
}

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

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.page-resources__video-link:hover .page-resources__video {
  filter: brightness(0.9); /* Subtle hover effect */
}

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

.page-resources__cta-heading {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-resources__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__list-item {
  background-color: #f8f8f8;
  border-left: 5px solid #26A9E0;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

.page-resources__list-text {
  font-size: 1em;
}

.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.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  background-color: rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-resources__faq-item[open] .page-resources__faq-question {
  background-color: rgba(0, 0, 0, 0.3);
}

.page-resources__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

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

.page-resources__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
}

.page-resources__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-resources__faq-answer a {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources__conclusion-section {
  text-align: center;
}

.page-resources__conclusion-section .page-resources__text-link {
  font-size: 1.1em;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-heading,
  .page-resources__cta-heading {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }
  
  .page-resources__section-heading,
  .page-resources__cta-heading {
    font-size: 1.8em;
  }
  .page-resources__section-description,
  .page-resources__cta-description {
    font-size: 0.95em;
  }

  .page-resources__features-grid,
  .page-resources__resource-grid,
  .page-resources__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-resources__card {
    margin: 0 15px;
  }

  /* Images responsiveness */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__feature-image,
  .page-resources__resource-image {
    height: 200px; /* Adjust height for mobile */
  }

  /* Video responsiveness */
  .page-resources__video-section {
    padding: 40px 0;
  }
  .page-resources__video-wrapper {
    padding-bottom: 56.25%; /* Maintain 16:9 */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 15px !important;
    overflow: hidden !important;
  }
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__list-item {
    margin: 0 15px;
  }

  .page-resources__faq-item {
    margin: 0 15px 15px;
  }
  .page-resources__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px 15px;
  }

  .page-resources__container {
    padding: 0 15px;
  }

  /* Ensure all containers respect mobile width */
  .page-resources__content-section,
  .page-resources__cta-section,
  .page-resources__conclusion-section,
  .page-resources__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-heading,
  .page-resources__cta-heading {
    font-size: 1.5em;
  }
  .page-resources__hero-cta-buttons {
    gap: 10px;
  }
}

/* CSS for details/summary FAQ toggle */
.page-resources__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-resources__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-resources__faq-toggle {
  transition: transform 0.3s ease;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
  transform: rotate(45deg); /* Rotate for a more dynamic effect from + to X or similar */
}