/* style/resources.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-register-text: #FFFFFF; /* Overridden for contrast */
    --button-login-text: #FFFFFF; /* Overridden for contrast */
    --background-color: #FFFFFF;
}

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

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

.page-resources__hero-section {
    position: relative;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: var(--primary-color);
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-resources__hero-section .page-resources__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-resources__hero-content {
    flex: 1;
    text-align: left;
}

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

.page-resources__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-resources__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

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

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

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

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

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

.page-resources__text-block {
    margin-bottom: 20px;
}

.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);
    color: var(--text-color-dark);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

.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: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.page-resources__list-item {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.page-resources__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

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

.page-resources__image--center {
    display: block;
    margin: 40px auto;
}

.page-resources__two-column-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-resources__two-column-grid--reverse {
    flex-direction: row-reverse;
}

.page-resources__content-block, .page-resources__image-block {
    flex: 1;
}

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

.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: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color-light);
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-item[open] > .page-resources__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.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: 0 20px 20px;
    font-size: 1em;
    color: var(--text-color-light);
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-register,
.page-resources__btn-login {
    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;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-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: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.page-resources__btn-register {
    background-color: var(--button-register-bg);
    color: var(--button-register-text); /* Overridden for contrast */
    border: 2px solid var(--button-register-bg);
}

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

.page-resources__btn-login {
    background-color: var(--button-login-bg);
    color: var(--button-login-text); /* Overridden for contrast */
    border: 2px solid var(--button-login-bg);
}

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

.page-resources__btn--center {
    display: block;
    margin: 40px auto 0;
    max-width: 250px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-resources__hero-section .page-resources__container {
        flex-direction: column;
        text-align: center;
    }

    .page-resources__hero-content {
        text-align: center;
    }

    .page-resources__hero-cta-buttons {
        justify-content: center;
    }

    .page-resources__two-column-grid,
    .page-resources__two-column-grid--reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }

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

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

    /* Mobile image responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-section,
    .page-resources__hero-image-wrapper,
    .page-resources__two-column-grid,
    .page-resources__two-column-grid--reverse,
    .page-resources__content-block,
    .page-resources__image-block,
    .page-resources__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

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

    /* Mobile button responsive */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-register,
    .page-resources__btn-login,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        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__hero-cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-resources__btn--center {
        max-width: 100% !important;
    }
}

/* Ensure content images are not too small */
.page-resources__card-image,
.page-resources__image {
    min-width: 200px;
    min-height: 200px;
}

/* Video responsive styles - not used in this specific content, but included as per requirements */
.page-resources video,
.page-resources__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-resources__video-section,
.page-resources__video-container,
.page-resources__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}