/* style/resources.css */

/* Base Styles & Typography */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF; /* Assuming shared.css sets body background to light */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__dark-section {
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF; /* White text for dark background */
}

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

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

.page-resources__dark-section .page-resources__section-title {
  color: #FFFFFF;
}

.page-resources__hero-section .page-resources__section-title {
  color: #FFFF00; /* Ensure hero title is yellow */
}

.page-resources__category-title,
.page-resources__guide-title,
.page-resources__card-title,
.page-resources__feature-title,
.page-resources__channel-title,
.page-resources__faq-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__dark-section .page-resources__category-title,
.page-resources__dark-section .page-resources__guide-title,
.page-resources__dark-section .page-resources__card-title,
.page-resources__dark-section .page-resources__feature-title,
.page-resources__dark-section .page-resources__channel-title,
.page-resources__dark-section .page-resources__faq-title {
  color: #FFFFFF;
}

.page-resources__text-block,
.page-resources__category-description,
.page-resources__guide-description,
.page-resources__card-description,
.page-resources__feature-description,
.page-resources__channel-description,
.page-resources p,
.page-resources li {
  font-size: 1em;
  margin-bottom: 20px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-resources__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-resources__btn-secondary {
  background-color: #FFFFFF;
  color: #C30808; /* Custom color for register/login */
  border: 2px solid #C30808;
}

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

.page-resources__btn-link {
  background-color: transparent;
  color: #017439;
  border: 1px solid #017439;
  padding: 8px 15px;
}

.page-resources__dark-section .page-resources__btn-link {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-resources__btn-link:hover {
  background-color: #017439;
  color: #FFFFFF;
}

.page-resources__dark-section .page-resources__btn-link:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-resources__button-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  justify-content: center;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  color: #FFFFFF;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay */
  z-index: 1;
}

.page-resources__hero-content {
  max-width: 900px;
  z-index: 2; /* Content above overlay */
  position: relative; /* For z-index to work */
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for hero title */
  line-height: 1.2;
}

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

.page-resources__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Image Grid */
.page-resources__image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-resources__grid-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Product Categories */
.page-resources__products-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-resources__product-category {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.page-resources__product-category .page-resources__category-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
  object-fit: cover;
}

/* Guide Section */
.page-resources__guide-section {
  padding: 60px 0;
}

.page-resources__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-resources__promotions-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 40px;
}

.page-resources__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-resources__promo-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

/* Security Section */
.page-resources__security-section {
  padding: 60px 0;
}

.page-resources__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-resources__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__feature-icon {
  width: 200px; /* Corrected to meet min size */
  height: 200px; /* Corrected to meet min size */
  object-fit: contain;
  margin: 0 auto 15px auto; /* Centered */
  display: block;
}

/* Support Section */
.page-resources__support-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-resources__channel-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
}

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

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #FFFFFF; /* White text for question */
  font-weight: bold;
}

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

.page-resources__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #FFFFFF;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: #FFFFFF; /* White background for answer */
  color: #333333; /* Dark text for answer */
}

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

.page-resources__faq-answer p {
  margin-bottom: 15px;
}

/* Conclusion Section */
.page-resources__conclusion-section {
  padding: 60px 0;
  text-align: center;
  background-color: #f8f8f8;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__hero-section {
    padding: 80px 15px;
    min-height: 450px;
  }

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

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

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