/* style/resources.css */

/* Base Styles */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Matches body background from shared.css */
}

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

.page-resources__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-resources__section-description,
.page-resources__faq-intro,
.page-resources__cta-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Buttons */
.page-resources__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-resources__btn-primary:hover {
  background-color: #1e87b6;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0;
  padding: 12px 25px;
  border: 2px solid #26A9E0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-resources__btn-text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__btn-text-link:hover {
  color: #1e87b6;
  text-decoration: underline;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-resources__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-resources__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background-color: #0a0a0a;
}

.page-resources__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken video to ensure text contrast */
}

.page-resources__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-resources__video-overlay:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.page-resources__video-play-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.page-resources__video-cta-text {
    font-size: 1.2em;
    font-weight: bold;
}

/* Guides Section */
.page-resources__guides-section {
  padding: 80px 0;
}

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

.page-resources__guide-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: #1a1a1a; /* Dark background for cards */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-resources__guide-item:hover {
  transform: translateY(-10px);
}

.page-resources__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%; /* Ensure image fills card width */
  min-height: 200px;
}

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

.page-resources__guide-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-resources__promotions-section {
  padding: 80px 0;
}

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

.page-resources__promo-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-resources__promo-item:hover {
  transform: translateY(-10px);
}

.page-resources__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%;
  min-height: 200px;
}

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

.page-resources__promo-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* News Section */
.page-resources__news-section {
  padding: 80px 0;
}

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

.page-resources__news-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-resources__news-item:hover {
  transform: translateY(-10px);
}

.page-resources__news-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%;
  min-height: 200px;
}

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

.page-resources__news-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Safety & Support Section */
.page-resources__safety-support-section {
  padding: 80px 0;
}

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

.page-resources__policy-item, .page-resources__contact-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-resources__policy-item:hover, .page-resources__contact-item:hover {
  transform: translateY(-10px);
}

.page-resources__policy-image, .page-resources__contact-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%;
  min-height: 200px;
}

.page-resources__policy-title, .page-resources__contact-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources__policy-text, .page-resources__contact-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-resources__policy-links, .page-resources__contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-resources__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  object-fit: cover;
  width: 100%;
  min-height: 200px;
}

/* CTA Section */
.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: 1;
}

.page-resources__cta-heading,
.page-resources__cta-description,
.page-resources__cta-section .page-resources__btn-primary {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.page-resources__cta-heading {
  margin-bottom: 20px;
}

.page-resources__cta-description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-heading,
  .page-resources__faq-heading,
  .page-resources__cta-heading {
    font-size: 2em;
  }
  .page-resources__guide-title,
  .page-resources__promo-title,
  .page-resources__news-title,
  .page-resources__policy-title,
  .page-resources__contact-title {
    font-size: 1.5em;
  }
}

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

  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile if shared doesn't handle body */
  }

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

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

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources 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__hero-video-wrapper,
  .page-resources__video-link,
  .page-resources__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources__section-heading,
  .page-resources__faq-heading,
  .page-resources__cta-heading {
    font-size: 1.8em;
  }

  .page-resources__guides-grid,
  .page-resources__promos-grid,
  .page-resources__news-grid,
  .page-resources__safety-support-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__guide-item,
  .page-resources__promo-item,
  .page-resources__news-item,
  .page-resources__policy-item,
  .page-resources__contact-item {
    padding: 20px;
  }

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

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

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

  .page-resources__cta-section .page-resources__btn-primary {
    max-width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__section-heading,
  .page-resources__faq-heading,
  .page-resources__cta-heading {
    font-size: 1.5em;
  }
  .page-resources__hero-cta-buttons {
    gap: 10px;
  }
  .page-resources__hero-video-wrapper {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__video-play-icon {
    font-size: 2em;
  }
  .page-resources__video-cta-text {
    font-size: 1em;
  }
  .page-resources__cta-section .page-resources__btn-primary {
    max-width: 90%;
  }
}