/* style/resources.css */

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

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

/* Fixed header spacing */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 20px;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%); /* Allowed for aesthetic, not color change */
}

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

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

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

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

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

.page-resources__section-intro--white {
    color: var(--text-light);
}

.page-resources__guide-grid,
.page-resources__safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-resources__guide-card,
.page-resources__safety-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-resources__guide-card:hover,
.page-resources__safety-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-resources__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-resources__card-title a {
    color: var(--black-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: var(--primary-color);
}

.page-resources__card-text {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 15px;
    margin-bottom: 20px;
}

.page-resources__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-resources__strategy-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: background-color 0.3s ease;
}

.page-resources__strategy-item:hover {
    background-color: #eaf7fd;
}

.page-resources__strategy-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-resources__strategy-title a {
    color: var(--black-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__strategy-title a:hover {
    color: var(--primary-color);
}

.page-resources__strategy-text {
    font-size: 0.9em;
    color: var(--text-dark);
}

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

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

.page-resources__faq-item {
    background-color: var(--secondary-color);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--black-color);
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
    font-size: 1.1em;
    margin: 0;
    color: var(--black-color);
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
    background-color: var(--secondary-color);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 25px 25px;
}

.page-resources__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-resources__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources__faq-answer a:hover {
    text-decoration: underline;
}

.page-resources__safety-section {
    padding: 60px 0;
    background-color: var(--background-color);
    color: var(--text-dark);
}

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

.page-resources__cta-content {
    max-width: 900px;
}

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

/* Buttons */
.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__guide-grid, .page-resources__safety-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-intro {
        font-size: 0.95em;
    }
    .page-resources__guide-grid, .page-resources__safety-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__strategy-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Image, Video, Button Responsive Adaptation */
    .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__content-section,
    .page-resources__faq-section,
    .page-resources__safety-section,
    .page-resources__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    
    .page-resources__cta-button,
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .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__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 0;
      padding-right: 0;
      flex-wrap: wrap !important;
      gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__guide-card, .page-resources__safety-card {
        padding: 15px 10px;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}