/* style/resources.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-text-color: #FFFF00;
}

/* Base styles */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--bg-light); /* Default light background */
}

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

.page-resources__section-title,
.page-resources__main-title,
.page-resources__cta-title {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-description,
.page-resources__intro-text,
.page-resources__cta-description {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-resources__btn-primary {
  background-color: var(--btn-register-bg);
  color: var(--btn-text-color);
  border: 2px solid var(--btn-register-bg);
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--btn-register-bg);
  border: 2px solid var(--btn-register-bg);
}

.page-resources__btn-secondary:hover {
  background-color: var(--btn-register-bg);
  color: var(--btn-text-color);
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 500px;
}

.page-resources__hero-section.page-resources__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__hero-section .page-resources__main-title {
  color: var(--text-light);
}

.page-resources__hero-section .page-resources__intro-text {
  color: var(--text-light);
}

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

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 1;
  text-align: center;
}

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

/* Advantages Section */
.page-resources__advantages-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-resources__advantages-section .page-resources__section-title {
  color: var(--primary-color);
}

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

.page-resources__card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-dark);
}

.page-resources__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-resources__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-resources__card-text {
  font-size: 1em;
  color: #555;
  padding: 0 15px;
}

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

/* Security Section */
.page-resources__security-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__security-section .page-resources__section-title {
  color: var(--text-light);
}

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

.page-resources__feature-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-light);
}

.page-resources__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-resources__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-resources__feature-title a {
  color: var(--text-light);
  text-decoration: none;
}

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

.page-resources__feature-text {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
}

/* Promotions Section */
.page-resources__promotions-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-resources__promotions-section .page-resources__section-title {
  color: var(--primary-color);
}

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

.page-resources__promotion-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-dark);
}

.page-resources__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources__promotion-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-resources__promotion-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-resources__promotion-text {
  font-size: 0.95em;
  color: #555;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__faq-section .page-resources__section-title {
  color: var(--text-light);
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-light);
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.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, padding 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

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

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

/* CTA Banner */
.page-resources__cta-banner {
  padding: 80px 0;
  text-align: center;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-resources__cta-banner .page-resources__cta-title {
  color: var(--primary-color);
}

.page-resources__cta-banner .page-resources__cta-description {
  margin-bottom: 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources__card-image {
    height: 180px;
  }
  .page-resources__promotion-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* General page content padding for mobile */
  .page-resources__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  /* Images specific mobile styles */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images fill container width */
    height: auto !important;
  }
  
  /* Videos specific mobile styles (even if no video on this page, include for robustness) */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Video container mobile styles */
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  /* Buttons specific mobile styles */
  .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; /* Buttons should span full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important; /* Add padding to button content */
    padding-right: 15px !important;
  }
  
  /* Button container mobile styles (for multiple buttons) */
  .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 !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important; /* Space between stacked buttons */
    overflow: hidden !important;
  }

  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Re-apply with !important for mobile */
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-resources__card-grid,
  .page-resources__security-features,
  .page-resources__promotion-cards {
    grid-template-columns: 1fr;
  }

  .page-resources__card-image {
    height: 200px;
  }

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

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

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

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