/* style/resources.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0;
  --btn-login: #EA7C07;
}

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

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

.page-resources__hero-section {
  position: relative;
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

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

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(100%); /* Example of non-color changing filter for background */
}

.page-resources__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-resources__section-subtitle {
  font-size: 1.1em;
  color: var(--text-dark);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources__content-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-resources__content-section p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-resources__content-section strong {
  color: var(--primary-color);
}

.page-resources__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-resources__benefits-list, .page-resources__strategy-list, .page-resources__registration-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-resources__benefits-list li, .page-resources__strategy-list li, .page-resources__registration-steps li {
  background-color: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--text-dark);
  font-size: 1.05em;
}

.page-resources__benefits-list li strong, .page-resources__strategy-list li strong, .page-resources__registration-steps li strong {
  color: var(--primary-color);
}

.page-resources__registration-steps {
  counter-reset: step-counter;
}

.page-resources__registration-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter) ". ";
  font-weight: bold;
  color: var(--primary-color);
  margin-right: 5px;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-resources__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-resources__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__event-highlight {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 40px 0;
  background-color: #f0f8ff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-resources__event-highlight img {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
}

.page-resources__event-details {
  flex: 2;
}

.page-resources__event-details h4 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-resources__event-details p {
  margin-bottom: 20px;
}

.page-resources__video-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  text-align: center;
}

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

.page-resources__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

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

.page-resources__faq-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

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

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

.page-resources__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
  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;
  background-color: var(--bg-light);
  color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important;
  padding: 15px 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
  line-height: 1.6;
}

.page-resources__conclusion-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

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

.page-resources__conclusion-section .page-resources__section-subtitle {
  color: var(--secondary-color);
  margin-bottom: 50px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
  .page-resources__event-highlight {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-resources__btn-primary, .page-resources__btn-secondary {
    width: 100% !important;
    max-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__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-subtitle {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-resources__sub-title {
    font-size: 1.3em;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__video-section,
  .page-resources__content-section,
  .page-resources__faq-section,
  .page-resources__conclusion-section {
    padding: 30px 0;
  }
  .page-resources__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto;
  }
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__event-highlight {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }
  .page-resources__event-highlight img {
    min-width: unset;
  }
  .page-resources__faq-question {
    padding: 12px 15px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 12px 15px;
  }
}