/* style/resources.css */

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

.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-resources-text-dark);
  background-color: var(--page-resources-secondary-color);
}

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

.page-resources__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--page-resources-primary-color);
  font-weight: bold;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-resources-text-dark);
}

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

.page-resources__hero-content {
  flex: 1;
  padding-right: 40px;
  z-index: 1;
  max-width: 600px;
}

.page-resources__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-resources-text-light);
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
  color: var(--page-resources-text-light);
}

.page-resources__hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

.page-resources__btn-inline {
  margin: 0 10px;
}

.page-resources__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-resources__btn-text {
  display: inline-block;
  margin-top: 15px;
  color: var(--page-resources-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__btn-text:hover {
  text-decoration: underline;
}

/* Card Layouts */
.page-resources__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-resources__card {
  background-color: var(--page-resources-secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-resources-text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-resources__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-resources-primary-color);
}

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

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

.page-resources__card-description {
  font-size: 1em;
  color: #666;
  flex-grow: 1;
}

.page-resources__card--horizontal {
  display: flex;
  flex-direction: row;
  text-align: left;
  padding: 20px;
}

.page-resources__card--horizontal .page-resources__card-image {
  width: 200px;
  height: 150px;
  min-height: 150px;
  margin-right: 20px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.page-resources__card--horizontal .page-resources__card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-resources__card--horizontal .page-resources__card-title {
  margin-top: 0;
  font-size: 1.3em;
}

.page-resources__card--horizontal .page-resources__card-description {
  font-size: 0.95em;
}

/* Feature List */
.page-resources__feature-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-resources__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  color: var(--page-resources-text-light);
}

.page-resources__feature-item::before {
  content: '✔';
  color: var(--page-resources-secondary-color);
  font-weight: bold;
  margin-right: 15px;
}

/* Video Section */
.page-resources__video-section {
  background-color: var(--page-resources-bg-light);
}

.page-resources__video-wrapper {
  position: relative;
  max-width: 960px;
  margin: 30px auto;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-resources__video-caption {
  margin-top: 15px;
  font-style: italic;
  color: #555;
}

.page-resources__video-cta {
  margin-top: 30px;
}

/* FAQ Section */
.page-resources__faq {
  text-align: left;
}

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

.page-resources__faq-item {
  background-color: var(--page-resources-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-resources-text-dark);
  background-color: var(--page-resources-secondary-color);
  transition: background-color 0.3s ease;
}

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

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

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

.page-resources__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-resources__link {
  color: var(--page-resources-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources__link:hover {
  text-decoration: underline;
}

/* Call to Action Section */
.page-resources__cta {
  padding: 80px 0;
  color: var(--page-resources-text-light);
  background-color: var(--page-resources-bg-dark);
}

.page-resources__cta .page-resources__section-title {
  color: var(--page-resources-text-light);
}

.page-resources__cta .page-resources__text-block {
  color: rgba(255, 255, 255, 0.9);
}

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

/* Dark/Light Background Helpers for Contrast */
.page-resources__dark-section {
  background-color: var(--page-resources-bg-dark);
  color: var(--page-resources-text-light);
}

.page-resources__light-bg {
  background-color: var(--page-resources-bg-light);
  color: var(--page-resources-text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
  }

  .page-resources__hero-content {
    padding-right: 0;
    margin-bottom: 40px;
    max-width: 100%;
  }

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

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

  .page-resources__hero-actions {
    justify-content: center;
  }

  .page-resources__grid-2-cols {
    grid-template-columns: 1fr;
  }

  .page-resources__card--horizontal {
    flex-direction: column;
    text-align: center;
  }

  .page-resources__card--horizontal .page-resources__card-image {
    width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

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

  .page-resources__section {
    padding: 40px 0;
  }

  .page-resources__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

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

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

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__hero-section {
    padding: 40px 15px !important;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

  .page-resources__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-resources__card-title {
    font-size: 1.3em;
  }

  .page-resources__grid-3-cols {
    grid-template-columns: 1fr;
  }

  .page-resources__grid-2-cols {
    grid-template-columns: 1fr;
  }

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

  .page-resources__video-section .page-resources__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0;
  }

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

  .page-resources__feature-item {
    font-size: 1em;
    padding: 12px 15px;
  }

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

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

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

  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container,
  .page-resources__actions-center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-resources__actions-center {
    flex-direction: column;
  }
}