/* style/resources-latest-access-methods.css */
.page-resources-latest-access-methods {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, explicit for clarity */
}

.page-resources-latest-access-methods__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-resources-latest-access-methods__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-resources-latest-access-methods__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-resources-latest-access-methods__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources-latest-access-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-latest-access-methods__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-latest-access-methods__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15;
}

.page-resources-latest-access-methods__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-latest-access-methods__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-resources-latest-access-methods__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources-latest-access-methods__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-resources-latest-access-methods__text-note {
  font-style: italic;
  text-align: center;
  margin-top: 30px;
  color: #cccccc;
}

/* Color Contrast Handling */
.page-resources-latest-access-methods__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-resources-latest-access-methods__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-resources-latest-access-methods__content-section p,
.page-resources-latest-access-methods__content-section li {
  color: inherit;
}

/* Buttons */
.page-resources-latest-access-methods__btn-primary,
.page-resources-latest-access-methods__btn-secondary {
  display: inline-block;
  padding: 14px 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-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-resources-latest-access-methods__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-resources-latest-access-methods__btn-primary:hover {
  background-color: #005a2b;
  border-color: #005a2b;
}

.page-resources-latest-access-methods__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-resources-latest-access-methods__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
  border-color: #005a2b;
}

/* Specific button colors for Login/Register */
.page-resources-latest-access-methods__cta-group .page-resources-latest-access-methods__btn-primary {
  background-color: #C30808; /* Red for Register/Login */
  color: #FFFF00; /* Yellow font */
  border: 2px solid #C30808;
}

.page-resources-latest-access-methods__cta-group .page-resources-latest-access-methods__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Grid Layout for cards */
.page-resources-latest-access-methods__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-latest-access-methods__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.page-resources-latest-access-methods__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources-latest-access-methods__card p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources-latest-access-methods__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

/* Step-by-step list */
.page-resources-latest-access-methods__step-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
}

.page-resources-latest-access-methods__step-list li {
  margin-bottom: 30px;
  position: relative;
  padding-left: 60px;
}

.page-resources-latest-access-methods__step-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #017439;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-resources-latest-access-methods__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: inherit;
}

.page-resources-latest-access-methods__cta-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-latest-access-methods__troubleshoot-list {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-resources-latest-access-methods__troubleshoot-list li {
  margin-bottom: 10px;
  color: inherit;
}

/* Video Section */
.page-resources-latest-access-methods__video-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-resources-latest-access-methods__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-latest-access-methods__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-latest-access-methods__video-link-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  cursor: pointer;
}

/* Security Tips */
.page-resources-latest-access-methods__security-tips-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-resources-latest-access-methods__security-tips-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: inherit;
}

.page-resources-latest-access-methods__security-tips-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
  font-size: 1.2em;
}

.page-resources-latest-access-methods__security-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 10px;
}

/* FAQ Section */
.page-resources-latest-access-methods__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-resources-latest-access-methods__faq-list {
  margin-top: 40px;
}

.page-resources-latest-access-methods__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources-latest-access-methods__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-resources-latest-access-methods__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-resources-latest-access-methods__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

.page-resources-latest-access-methods__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-resources-latest-access-methods__faq-item.active .page-resources-latest-access-methods__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-latest-access-methods__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

.page-resources-latest-access-methods__faq-item.active .page-resources-latest-access-methods__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-resources-latest-access-methods__faq-answer p {
  margin: 0;
  color: inherit;
}

.page-resources-latest-access-methods__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
}

/* CTA Section */
.page-resources-latest-access-methods__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-latest-access-methods__hero-title {
    font-size: 2.8em;
  }
  .page-resources-latest-access-methods__section-title {
    font-size: 2em;
  }
}

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

  .page-resources-latest-access-methods__container,
  .page-resources-latest-access-methods__hero-section,
  .page-resources-latest-access-methods__content-section,
  .page-resources-latest-access-methods__video-section,
  .page-resources-latest-access-methods__faq-section,
  .page-resources-latest-access-methods__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-latest-access-methods__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }

  .page-resources-latest-access-methods__hero-title {
    font-size: 2.2em;
  }

  .page-resources-latest-access-methods__hero-description {
    font-size: 1em;
  }

  .page-resources-latest-access-methods__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-latest-access-methods__btn-primary,
  .page-resources-latest-access-methods__btn-secondary,
  .page-resources-latest-access-methods a[class*="button"],
  .page-resources-latest-access-methods a[class*="btn"] {
    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-latest-access-methods__cta-buttons,
  .page-resources-latest-access-methods__button-group,
  .page-resources-latest-access-methods__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 15px;
  }

  .page-resources-latest-access-methods__section-title {
    font-size: 1.8em;
  }

  .page-resources-latest-access-methods__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-resources-latest-access-methods__card {
    padding: 25px;
  }

  .page-resources-latest-access-methods__step-list li {
    padding-left: 50px;
  }

  .page-resources-latest-access-methods__step-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }

  .page-resources-latest-access-methods__video-wrapper {
    padding-bottom: 75%; /* Adjust for mobile if needed, e.g., 4:3 */
  }

  .page-resources-latest-access-methods img,
  .page-resources-latest-access-methods video,
  .page-resources-latest-access-methods__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-latest-access-methods__video-section,
  .page-resources-latest-access-methods__video-container,
  .page-resources-latest-access-methods__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}