/* style/resources.css */
.page-resources {
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #1a1a2e;
}

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

.page-resources__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 100px 0 60px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1e 100%);
  overflow: hidden;
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 2;
  text-align: left;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
}

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

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.7;
  filter: brightness(0.8); /* Allow slight brightness adjustment for visual integration, not color change */
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-resources__btn-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  display: inline-block;
}

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

/* Download Guide Section */
.page-resources__download-guide {
  background-color: #0d0d1e;
}

.page-resources__guide-item {
  margin-bottom: 50px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  text-align: left;
}

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

.page-resources__guide-list {
  list-style-type: decimal;
  padding-left: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-resources__guide-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-resources__guide-list li strong {
  color: #26A9E0;
}

.page-resources__guide-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 20px;
  max-width: 800px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* App Benefits Section */
.page-resources__app-benefits {
  background-color: #1a1a2e;
}

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

.page-resources__benefit-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}

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

.page-resources__benefit-item p {
  color: #f0f0f0;
  line-height: 1.6;
}

.page-resources__section-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 50px;
  max-width: 1000px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Safety & Security Section */
.page-resources__safety-security {
  background-color: #0d0d1e;
}

.page-resources__safety-point {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  text-align: left;
}

.page-resources__point-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-resources__safety-point p {
  color: #f0f0f0;
  line-height: 1.6;
}

/* Latest Features Section */
.page-resources__latest-features {
  background-color: #1a1a2e;
}

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

.page-resources__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}

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

.page-resources__feature-item p {
  color: #f0f0f0;
  line-height: 1.6;
}

.page-resources__cta-small {
  margin-top: 40px;
}

/* FAQ Section */
.page-resources__faq {
  background-color: #0d0d1e;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources__faq-qtext {
  flex-grow: 1;
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
  content: '−';
}

.page-resources__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.1em;
  color: #f0f0f0;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.03);
}

/* CTA Section */
.page-resources__cta-section {
  background: linear-gradient(135deg, #26A9E0 0%, #1e87b7 100%);
  padding: 80px 0;
}

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

.page-resources__cta-description {
  color: #e0e0e0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
    padding-bottom: 40px;
  }

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

  .page-resources__hero-description {
    font-size: 1.1em;
    max-width: 600px;
  }

  .page-resources__hero-image-wrapper {
    width: 40%;
    right: -10%;
  }

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px);
    text-align: center;
  }

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

  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
    max-width: 100%;
  }

  .page-resources__hero-cta {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .page-resources__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 30px;
    opacity: 1;
    filter: none;
  }

  .page-resources__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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

  .page-resources__guide-item,
  .page-resources__benefit-item,
  .page-resources__safety-point,
  .page-resources__feature-item {
    padding: 20px;
  }

  .page-resources__guide-title,
  .page-resources__benefit-title,
  .page-resources__point-title,
  .page-resources__feature-title {
    font-size: 1.4em;
  }

  .page-resources__guide-image,
  .page-resources__section-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-resources__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

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

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__cta-buttons,
  .page-resources__hero-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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