/* style/resources.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --background-color-page: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --border-color: #e0e0e0;
}

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

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px);
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

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

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}

.page-resources__btn-primary {
    background-color: var(--register-button-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-button-color);
}

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

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

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

/* Image & Video Section */
.page-resources__image-video-section {
  padding: 60px 0;
  background-color: var(--background-color-page);
  text-align: center;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.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;
    border-radius: 10px;
}

.page-resources__video-caption {
  font-size: 0.95em;
  color: #666;
  margin-top: 10px;
}

/* Content Area */
.page-resources__content-area {
    padding: 60px 0;
    background-color: var(--background-color-page);
    color: var(--text-color-light-bg);
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--register-button-color);
    border-radius: 2px;
}

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

.page-resources__paragraph {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-resources__unordered-list,
.page-resources__ordered-list {
    margin-bottom: 15px;
    padding-left: 25px;
}

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

.page-resources__text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources__text-link:hover {
    color: darken(var(--primary-color), 10%);
}

.page-resources__content-image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-resources__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    color: var(--text-color-light-bg);
    border: 1px solid var(--border-color);
}

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

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

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

.page-resources__card-link:hover {
    color: darken(var(--primary-color), 10%);
}

.page-resources__card-text {
    font-size: 0.95em;
    margin-bottom: 25px;
    padding: 0 20px;
    flex-grow: 1;
}

.page-resources__btn-card {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

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

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

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
}

.page-resources__faq-item[open] .page-resources__faq-question {
  border-bottom: 1px solid var(--border-color);
}

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

.page-resources__faq-question::marker {
    display: none;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-color-light-bg);
}

.page-resources__btn-faq {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

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

.page-resources__cta-buttons--bottom {
  margin-top: 60px;
  margin-bottom: 30px;
}

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

    .page-resources__hero-section {
        padding: 80px 0 50px;
        padding-top: var(--header-offset, 120px) !important;
        min-height: 350px;
    }

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

    .page-resources__hero-description {
        font-size: 1em;
        padding: 0 15px;
    }

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

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

    .page-resources__section-title {
        font-size: 2em;
        padding: 0 15px 15px;
    }

    .page-resources__sub-title {
        font-size: 1.5em;
        padding: 0 15px;
    }

    .page-resources__paragraph,
    .page-resources__list-item {
        font-size: 0.95em;
        padding: 0 15px;
    }

    .page-resources__unordered-list,
    .page-resources__ordered-list {
        padding-left: 40px;
        padding-right: 15px;
    }

    .page-resources__card-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-resources__card {
      padding-bottom: 20px;
    }

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

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

    .page-resources__card-text {
        font-size: 0.9em;
    }

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

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

    .page-resources__image-video-section,
    .page-resources__content-area {
      padding: 40px 0;
    }

    .page-resources__video-wrapper {
      padding: 0 15px;
      box-sizing: border-box;
    }
    
    .page-resources__video-link {
      width: calc(100% - 30px) !important; /* Adjust for padding */
      left: 15px;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of their container */
        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;
    }
    
    /* Mobile container responsiveness */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .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;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-resources__cta-buttons.page-resources__cta-buttons--bottom {
      flex-direction: column;
    }
}