/* style/resources.css */

/* Base styles for the page content, ensuring dark background and light text for contrast */
.page-resources {
  background-color: #121212; /* Body background from shared.css */
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  min-height: 600px;
  overflow: hidden;
  color: #ffffff; /* Light text for dark background */
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Slightly dim the background image for text readability */
}

.page-resources__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styles */
.page-resources__section {
  padding: 60px 20px;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for section titles */
}

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

/* Light background section */
.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__card-title a {
  color: #26A9E0;
}

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

/* Dark background section */
.page-resources__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for sections */
  color: #ffffff; /* Light text for dark background */
}

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

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


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

.page-resources__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-bottom: 40px;
}

/* Cards */
.page-resources__card {
  background-color: #f8f8f8; /* Light background for cards in light section */
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 250px; /* Ensure cards have a minimum height */
}

.page-resources__dark-bg .page-resources__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark section cards */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__card-title a {
  text-decoration: none;
  color: #26A9E0; /* Brand color for card titles */
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #1e87b7; /* Darker shade on hover */
}

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1; /* Allow text to take available space */
}

/* Content Blocks (for 2-col layout) */
.page-resources__content-block {
  text-align: left;
}

.page-resources__content-title {
  font-size: 1.8em;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__content-title a {
  text-decoration: none;
  color: #26A9E0; /* Brand color for content titles */
  transition: color 0.3s ease;
}

.page-resources__content-title a:hover {
  color: #1e87b7;
}

.page-resources__content-text {
  font-size: 1em;
  margin-bottom: 20px;
}

/* Images within sections */
.page-resources__section-image,
.page-resources__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure images behave as block elements */
  margin: 0 auto;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

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

.page-resources__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
  transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1e87b7;
  border-color: #1e87b7;
  transform: translateY(-2px);
}

.page-resources__btn-center {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: table; /* For centering block-level buttons */
}

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

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

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

.page-resources__dark-bg .page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #eee; /* Light background for question */
  color: #333333;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details/summary */
}

.page-resources__dark-bg .page-resources__faq-question {
  background-color: #2a2a2a; /* Darker background for question */
  color: #ffffff;
}

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

.page-resources__dark-bg .page-resources__faq-question:hover {
  background-color: #3a3a3a;
}

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

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

.page-resources__dark-bg .page-resources__faq-answer {
  color: #f0f0f0;
}

/* Hide default details marker */
.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-resources__faq-item summary {
  list-style: none;
}


/* CTA Banner */
.page-resources__cta-banner {
  padding: 80px 20px;
  text-align: center;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-banner .page-resources__btn-primary {
  background-color: #EA7C07; /* Login orange for main CTA */
  border-color: #EA7C07;
  color: #ffffff;
}

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

/* --- Responsive Adjustments --- */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }

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

  .page-resources__grid-2-cols {
    grid-template-columns: 1fr; /* Stack on tablets */
    text-align: center;
  }

  .page-resources__content-block {
    text-align: center;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header offset for mobile */
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-resources__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__section {
    padding: 40px 15px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-resources__grid-3-cols,
  .page-resources__grid-2-cols {
    grid-template-columns: 1fr; /* Stack all grids on mobile */
    gap: 20px;
  }

  .page-resources__card {
    padding: 20px;
    min-height: auto; /* Reset min-height for mobile */
  }

  .page-resources__card-title {
    font-size: 1.3em;
  }

  .page-resources__content-title {
    font-size: 1.5em;
  }

  .page-resources__section-image,
.page-resources__content-image,
.page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-resources__image-wrapper,
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

  .page-resources__cta-banner {
    padding: 50px 15px;
  }

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

  .page-resources__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
}