/* style/resources.css */
.page-resources {
  color: #ffffff; /* Body background is dark, so text should be light */
  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;
}

.page-resources__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0 0%, #007bff 100%); /* Using brand color */
  color: #ffffff;
}

.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__btn-primary {
  display: inline-block;
  background: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-resources__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #26A9E0; /* Brand color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  margin-left: 15px;
}

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

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

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff; /* Default light text for dark background */
}

/* Intro Section */
.page-resources__intro-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-resources__intro-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-resources__text-block {
  flex: 1;
  min-width: 300px;
}

.page-resources__image-block {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: #26A9E0; /* Brand color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources__list {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
}

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

/* Download Guide Section */
.page-resources__download-guide {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-resources__download-guide .page-resources__section-title {
  color: #ffffff;
}

.page-resources__download-guide .page-resources__section-description {
  color: #f0f0f0;
}

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

.page-resources__guide-item {
  background-color: #0d0d0d; /* Darker background for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-resources__guide-title {
  font-size: 1.8em;
  color: #26A9E0; /* Brand color */
  margin-bottom: 20px;
}

.page-resources__guide-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 6px;
}

.page-resources__guide-list {
  text-align: left;
  margin: 0 0 30px 0;
  padding-left: 25px;
  list-style-type: decimal;
  flex-grow: 1;
}

.page-resources__guide-list li {
  margin-bottom: 10px;
  color: #f0f0f0;
}

/* Installation Tutorial Section */
.page-resources__installation-tutorial {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #ffffff;
}

.page-resources__installation-tutorial .page-resources__section-title {
  color: #26A9E0; /* Brand color */
}

.page-resources__installation-tutorial .page-resources__section-description {
  color: #ffffff;
}

/* Other Resources Section */
.page-resources__other-resources {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-resources__other-resources .page-resources__section-title {
  color: #ffffff;
}

.page-resources__other-resources .page-resources__section-description {
  color: #f0f0f0;
}

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

.page-resources__card {
  background-color: #0d0d0d; /* Darker background for cards */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-resources__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__card-title {
  font-size: 1.5em;
  color: #26A9E0; /* Brand color */
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-resources__card-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #ffffff;
}

.page-resources__faq-section .page-resources__section-title {
  color: #26A9E0; /* Brand color */
}

.page-resources__faq-section .page-resources__section-description {
  color: #ffffff;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.page-resources__faq-question {
  background-color: #0d0d0d; /* Darker background for question */
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

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

.page-resources__faq-heading {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

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

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

.page-resources__faq-answer {
  background-color: #0d0d0d; /* Darker background for answer */
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

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

/* CTA Footer Section */
.page-resources__cta-footer {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #007bff 0%, #26A9E0 100%); /* Using brand color */
  color: #ffffff;
}

.page-resources__cta-footer .page-resources__section-title {
  color: #ffffff;
}

.page-resources__cta-footer .page-resources__section-description {
  color: #f0f0f0;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__content-wrapper {
    flex-direction: column;
  }
  .page-resources__text-block, .page-resources__image-block {
    min-width: unset;
    width: 100%;
  }
  .page-resources__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 1em;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 0 15px 0 !important; /* Stack buttons */
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__guide-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__faq-question,
  .page-resources__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__image,
  .page-resources__guide-image,
  .page-resources__card-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__intro-section,
  .page-resources__download-guide,
  .page-resources__installation-tutorial,
  .page-resources__other-resources,
  .page-resources__faq-section,
  .page-resources__cta-footer {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .page-resources__guide-item,
  .page-resources__card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__guide-title {
    font-size: 1.5em;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }
  .page-resources__faq-heading {
    font-size: 1em;
  }
}