/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff; /* Default light background */
}

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

.page-resources__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjust top padding for fixed header */
  background: linear-gradient(135deg, #26A9E0, #007BFF); /* Primary brand color gradient */
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f8ff;
}

.page-resources__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: all 0.3s ease;
  font-size: 1.1em;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

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

.page-resources__sub-section-title {
  font-size: 2em;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  color: #26A9E0;
  font-weight: bold;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
  color: #333333;
}

.page-resources__intro-section,
.page-resources__features-section,
.page-resources__faq-section {
  padding: 80px 0;
}

.page-resources__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__sub-section-title {
  color: #ffffff;
}

.page-resources__dark-section .page-resources__text-block {
  color: #f0f8ff;
}

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

.page-resources__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-resources__card-description {
  font-size: 1em;
  color: #555555;
  text-align: justify;
  flex-grow: 1;
}

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

.page-resources__platform-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources__platform-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 25px;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__download-steps {
  list-style: decimal;
  text-align: left;
  margin: 0 auto 30px;
  padding-left: 25px;
  font-size: 1em;
  color: #555555;
}

.page-resources__download-steps li {
  margin-bottom: 10px;
}

.page-resources__download-steps strong {
  color: #26A9E0;
}

.page-resources__btn-full-width {
  width: 100%;
  max-width: 300px;
  margin-top: auto;
}

.page-resources__bullet-list {
  list-style: disc;
  text-align: left;
  margin: 30px auto 0;
  padding-left: 25px;
  max-width: 800px;
  font-size: 1.1em;
  color: #f0f8ff;
}

.page-resources__bullet-list li {
  margin-bottom: 10px;
}

.page-resources__features-section {
  padding: 80px 0;
}

.page-resources__feature-items {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.page-resources__feature-item {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.page-resources__feature-item--reverse {
  flex-direction: row-reverse;
}

.page-resources__feature-item-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__feature-item-content {
  flex: 1;
  max-width: 50%;
  text-align: left;
}

.page-resources__item-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
  font-weight: bold;
}

.page-resources__item-description {
  font-size: 1.1em;
  color: #555555;
  text-align: justify;
}

.page-resources__faq-section {
  padding: 80px 0;
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
  font-size: 1.2em;
  color: #26A9E0;
  margin: 0;
  font-weight: bold;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  font-size: 1.05em;
  text-align: justify;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

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

.page-resources__call-to-action {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, #007BFF, #26A9E0); /* Primary brand color gradient */
  color: #ffffff;
}

.page-resources__call-to-action .page-resources__section-title {
  color: #ffffff;
}

.page-resources__call-to-action .page-resources__text-block {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f8ff;
}

.page-resources__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.2em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__item-title {
    font-size: 1.5em;
  }
  .page-resources__feature-item-image {
    max-width: 40%;
  }
  .page-resources__feature-item-content {
    max-width: 60%;
  }
}

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

  .page-resources__hero-section {
    padding: 80px 0 60px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

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

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 300px !important;
    margin-left: auto;
    margin-right: auto;
    font-size: 1em;
    padding: 12px 25px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-resources__sub-section-title {
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-resources__text-block {
    font-size: 1em;
  }

  .page-resources__intro-section,
  .page-resources__features-section,
  .page-resources__download-guide,
  .page-resources__faq-section,
  .page-resources__call-to-action {
    padding: 50px 0;
  }

  .page-resources__features-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__feature-card {
    padding: 25px;
  }

  .page-resources__platform-icon {
    width: 120px;
    height: 120px;
  }

  .page-resources__download-platforms {
    grid-template-columns: 1fr;
  }

  .page-resources__feature-item,
  .page-resources__feature-item--reverse {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .page-resources__feature-item-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

  .page-resources__item-description {
    font-size: 0.95em;
  }

  .page-resources__faq-question {
    padding: 18px 20px;
  }

  .page-resources__faq-title {
    font-size: 1.1em;
  }

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

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px;
  }
  
  /* Ensure all images are responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers with images/videos/buttons are responsive */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__download-platforms,
  .page-resources__feature-items,
  .page-resources__platform-card,
  .page-resources__feature-item,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Specific video container padding for mobile */
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  /* Video specific responsive styles */
  .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;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__item-title {
    font-size: 1.2em;
  }
  .page-resources__faq-title {
    font-size: 1em;
  }
}