.page-resources__hero-section {
  position: relative;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  color: #ffffff;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-resources__hero-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;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

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

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-resources__video-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 40px;
  border-radius: 12px;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

.page-resources__video-cta {
  text-align: center;
  margin-top: 20px;
}

.page-resources__guide-section,
.page-resources__security-section,
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-resources__auth-guide-section,
.page-resources__other-resources,
.page-resources__cta-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-resources__auth-guide-section .page-resources__section-title,
.page-resources__other-resources .page-resources__section-title,
.page-resources__cta-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__guide-item {
  margin-bottom: 60px;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources__auth-guide-section .page-resources__guide-item {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  box-shadow: none;
}

.page-resources__guide-item:last-child {
  margin-bottom: 0;
}

.page-resources__guide-subtitle {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-resources__auth-guide-section .page-resources__guide-subtitle {
  color: #EA7C07;
}

.page-resources__guide-item p,
.page-resources__guide-item ol,
.page-resources__guide-item ul {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-resources__guide-item ol,
.page-resources__guide-item ul {
  padding-left: 25px;
}

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

.page-resources__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

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

.page-resources__resource-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__resource-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__resource-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 15px 15px 10px;
  color: #EA7C07;
}

.page-resources__resource-text {
  font-size: 1em;
  line-height: 1.6;
  margin: 0 15px 15px;
  flex-grow: 1;
}

.page-resources__view-more-resources {
  text-align: center;
  margin-top: 50px;
}

.page-resources__faq-list {
  margin-top: 40px;
}

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

.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;
  color: #333333;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

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

.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;
  background-color: #ffffff;
}

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

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

.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

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

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-resources__video-section,
  .page-resources__guide-section,
  .page-resources__security-section,
  .page-resources__auth-guide-section,
  .page-resources__other-resources,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 50px 0;
  }

  .page-resources__video-wrapper {
    margin: 0 15px 30px;
  }

  .page-resources__guide-item {
    padding: 20px;
    margin: 0 15px 40px;
  }

  .page-resources__guide-subtitle {
    font-size: 1.5em;
  }

  .page-resources__guide-item p,
  .page-resources__guide-item ol,
  .page-resources__guide-item ul {
    font-size: 1em;
  }

  .page-resources__guide-image {
    min-width: 200px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__resource-grid {
    grid-template-columns: 1fr;
    margin: 0 15px;
  }

  .page-resources__resource-card {
    margin-bottom: 20px;
  }

  .page-resources__resource-image {
    height: 180px;
  }

  .page-resources__resource-title {
    font-size: 1.2em;
  }

  .page-resources__faq-item {
    margin: 0 15px 15px;
  }

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

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

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px 15px;
  }

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

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

  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper,
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

/* Ensure text color contrast for dark background */
.page-resources__dark-section {
  color: #ffffff;
}

.page-resources__dark-section .page-resources__guide-item {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.page-resources__dark-section .page-resources__guide-item p,
.page-resources__dark-section .page-resources__guide-item ol,
.page-resources__dark-section .page-resources__guide-item ul,
.page-resources__dark-section .page-resources__guide-item li {
  color: #ffffff;
}

.page-resources__dark-section .page-resources__guide-item a {
  color: #EA7C07;
}

.page-resources__dark-section .page-resources__guide-item a:hover {
  text-decoration: underline;
}

.page-resources__dark-section .page-resources__guide-item .page-resources__btn-secondary {
  background-color: #EA7C07;
  color: #ffffff;
  border-color: #EA7C07;
}

.page-resources__dark-section .page-resources__guide-item .page-resources__btn-secondary:hover {
  background-color: #d16d06;
  border-color: #d16d06;
}

.page-resources__other-resources .page-resources__resource-card {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.page-resources__other-resources .page-resources__resource-card .page-resources__resource-title {
  color: #EA7C07;
}

.page-resources__other-resources .page-resources__resource-card .page-resources__resource-text a {
  color: #EA7C07;
}

.page-resources__other-resources .page-resources__resource-card .page-resources__resource-text a:hover {
  text-decoration: underline;
}