/* style/resources.css */

/* --- Base Styles --- */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Inherit from shared, default to white */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.page-resources__main-title {
  font-size: 3em;
  color: #26A9E0; /* Brand color for main title */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources__intro-description {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
  line-height: 1.3;
}

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

.page-resources__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(38, 169, 224, 0.2);
  padding-bottom: 10px;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources__list-ordered {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-resources__list li,
.page-resources__list-ordered li {
  margin-bottom: 10px;
}

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

.page-resources__list li a:hover,
.page-resources__list-ordered li a:hover {
  text-decoration: underline;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
}

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

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

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

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

/* --- Sections --- */
.page-resources__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  background-color: #f8f8f8; /* Light background for hero */
  padding-bottom: 60px;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: 40px;
  border-radius: 10px;
  max-width: 1000px; /* Constrain hero image size */
}

.page-resources__video-section {
  position: relative;
  width: 100%;
  padding: 60px 0;
  background-color: #f0f0f0;
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-resources__video {
  width: 100%;
  height: auto;
  display: block;
}

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

.page-resources__content-section {
  padding: 60px 0;
  border-bottom: 1px solid #eeeeee;
}

.page-resources__content-section:last-of-type {
  border-bottom: none;
}

.page-resources__overview-section .page-resources__content-image,
.page-resources__security-section .page-resources__content-image,
.page-resources__promotions-section .page-resources__content-image,
.page-resources__faq-section .page-resources__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-resources__dark-section {
  background-color: #26A9E0; /* Brand primary color for dark section */
  color: #FFFFFF; /* White text for dark background */
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__sub-title,
.page-resources__dark-section .page-resources__text-block,
.page-resources__dark-section .page-resources__list li,
.page-resources__dark-section .page-resources__list-ordered li {
  color: #FFFFFF;
}

.page-resources__dark-section .page-resources__list li a,
.page-resources__dark-section .page-resources__list-ordered li a {
  color: #FFFFFF; /* White links */
  text-decoration: underline;
}

.page-resources__dark-section .page-resources__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}

.page-resources__dark-section .page-resources__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c0;
  border-color: #f0f8ff;
}

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

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

.page-resources__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
}

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

.page-resources__faq-question h3 {
  margin: 0;
  color: #26A9E0;
  font-size: 1.1em; /* Adjust font size for FAQ question title */
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px !important; /* Restore padding when active */
}

.page-resources__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

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

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

/* --- Responsive Design --- */

/* Tablet and Mobile */
@media (max-width: 768px) {
  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    min-height: auto;
  }

  .page-resources__main-title {
    font-size: 2em;
    margin-top: 20px;
  }

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

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

  .page-resources__section-description {
    font-size: 0.9em;
    margin-bottom: 20px;
  }

  .page-resources__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-resources__text-block,
  .page-resources__list li,
  .page-resources__list-ordered li,
  .page-resources__faq-question,
  .page-resources__faq-answer p {
    font-size: 0.95em;
  }

  /* Images responsiveness */
  .page-resources img {
    max-width: 100% !important;
    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;
  }
  
  /* Buttons responsiveness */
  .page-resources__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-resources__content-section {
    padding: 40px 0;
  }

  .page-resources__faq-question {
    padding: 15px;
  }

  .page-resources__faq-question h3 {
    font-size: 1em;
  }

  .page-resources__faq-toggle {
    font-size: 1.2em;
  }

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

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 1.8em;
  }

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