/* style/resources.css */

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

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

/* Header Offset */
.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

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

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

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-resources__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources__list-ordered {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

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

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  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(#26A9E0, 10%); /* Example: a darker shade */
  border-color: darken(#26A9E0, 10%);
}

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

.page-resources__btn-secondary:hover {
  background-color: lighten(#26A9E0, 40%); /* Example: a lighter shade */
  color: var(--text-light);
  border-color: lighten(#26A9E0, 40%);
}

/* Section Styling */
.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.8;
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle overlay */
}

.page-resources__introduction-section,
.page-resources__guide-section,
.page-resources__support-section,
.page-resources__security-section,
.page-resources__news-section,
.page-resources__cta-section {
  padding: 80px 0;
}

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

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

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__sub-title,
.page-resources__dark-bg .page-resources__link {
  color: var(--text-light);
}

.page-resources__dark-bg .page-resources__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.page-resources__dark-bg .page-resources__btn-primary:hover {
  background-color: darken(#FFFFFF, 10%);
  border-color: darken(#FFFFFF, 10%);
}

.page-resources__dark-bg .page-resources__btn-secondary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-resources__dark-bg .page-resources__btn-secondary:hover {
  background-color: lighten(#26A9E0, 10%);
  border-color: lighten(#26A9E0, 10%);
}

/* Image Styling */
.page-resources__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Video Styling */
.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

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

.page-resources__video-caption {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 10px;
  font-size: 0.9em;
}

/* CTA Buttons Group */
.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* FAQ Styling */
.page-resources__faq-list {
  margin-top: 40px;
}

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

.page-resources__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  list-style: none; /* Hide default marker */
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #555;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 40px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__sub-title {
    font-size: 1.3em;
  }
  .page-resources__text-block,
  .page-resources__list-item,
  .page-resources__faq-item summary,
  .page-resources__faq-answer {
    font-size: 1em;
  }
  
  .page-resources__introduction-section,
  .page-resources__guide-section,
  .page-resources__support-section,
  .page-resources__security-section,
  .page-resources__news-section,
  .page-resources__cta-section {
    padding: 60px 0;
  }

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

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile for hero */
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}