/* style/resources.css */
.page-resources {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* body background is #121212 from shared.css */
  font-size: 16px;
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px;
}

.page-resources__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for title */
  line-height: 1.2;
  font-weight: 700;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-resources__hero-cta-group {
  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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  font-size: 1em;
}

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

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

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

.page-resources__btn-secondary:hover {
  background: #f0f0f0;
}

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

.page-resources__section--dark {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-resources__section--light {
  background-color: #282828;
  color: #ffffff;
}

.page-resources__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  font-weight: 700;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-resources__text-block {
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: justify;
}

.page-resources__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  opacity: 0.9;
}

.page-resources__text-block p a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__text-block p a:hover {
  text-decoration: underline;
}

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  transition: transform 0.3s ease;
  min-height: 350px; /* Ensure cards have some height */
}

.page-resources__card:hover {
  transform: translateY(-5px);
}

.page-resources__card-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  color: #26A9E0;
  object-fit: contain;
  border-radius: 8px;
}

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

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.5;
  opacity: 0.85;
}

.page-resources__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__download-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__step-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.page-resources__step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-resources__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #26A9E0;
  border-radius: 50%;
  background-color: rgba(38, 169, 224, 0.1);
}

.page-resources__step-content {
  flex-grow: 1;
  text-align: left;
}

.page-resources__step-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-resources__step-text {
  font-size: 1.1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-resources__step-text a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources__step-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__faq-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-resources__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-resources__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-resources__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources__contact-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-resources__contact-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-resources__video-section {
  position: relative;
  width: 100%;
  background-color: #0d0d0d;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  text-align: center;
}

.page-resources__video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-resources__video-caption {
  margin-top: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
  opacity: 0.8;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__step-item {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__step-item:nth-child(even) {
    flex-direction: column;
  }
  .page-resources__step-content {
    text-align: center;
  }
  .page-resources__step-image {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 15px;
  }
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources__hero-cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-resources__section,
  .page-resources__faq-section,
  .page-resources__contact-section {
    padding: 40px 15px;
  }

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

  .page-resources__text-block {
    margin-bottom: 20px;
  }

  .page-resources__card {
    padding: 20px;
  }

  .page-resources__card-icon {
    width: 200px !important;
    height: 200px !important;
  }

  .page-resources__step-item {
    gap: 20px;
    padding: 20px;
    flex-direction: column !important; /* Force column for all step items */
  }
  .page-resources__step-item:nth-child(even) {
    flex-direction: column !important;
  }
  .page-resources__step-content {
    text-align: center;
  }
  .page-resources__step-image {
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
    margin-top: 20px;
  }

  .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__download-steps,
  .page-resources__step-item,
  .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;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-resources__hero-section {
    padding-bottom: 40px;
  }

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

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

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

/* Ensure content area images are not too small */
.page-resources__section img,
.page-resources__card img,
.page-resources__step-image {
  min-width: 200px;
  min-height: 200px;
}