/* style/resources.css */

/* --- Base Styles & Typography --- */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Light background for the page content */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #0A2463; /* Primary brand color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* --- Buttons --- */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-resources__btn-primary {
    background-color: #0A2463; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #0A2463;
    margin: 0 10px;
}

.page-resources__btn-primary:hover {
    background-color: #061a4f;
    border-color: #061a4f;
}

.page-resources__btn-secondary {
    background-color: #FFD700; /* Secondary brand color */
    color: #0A2463; /* Dark text for light background */
    border: 2px solid #FFD700;
    margin: 0 10px;
}

.page-resources__btn-secondary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    min-height: 600px;
    background-color: #0A2463; /* Primary brand color for hero background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden; /* Prevent image overflow */
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 600px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFD700; /* Secondary brand color for title */
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7; /* Soften the image */
    transform: translateX(10%); /* Adjust position */
}


/* --- Sections --- */
.page-resources__updates-section,
.page-resources__guides-section,
.page-resources__security-section,
.page-resources__faq-section,
.page-resources__cta-banner {
    padding: 80px 0;
}

.page-resources__light-bg {
    background-color: #f8f8f8;
    color: #333333;
}

.page-resources__dark-bg {
    background-color: #0A2463;
    color: #ffffff;
}
.page-resources__dark-bg .page-resources__section-title {
    color: #FFD700; /* Gold title on dark background */
}
.page-resources__dark-bg .page-resources__section-description {
    color: #f0f0f0;
}
.page-resources__dark-bg .page-resources__read-more {
    color: #FFD700;
}
.page-resources__dark-bg .page-resources__read-more:hover {
    color: #ffffff;
}
.page-resources__dark-bg .page-resources__guide-title a {
    color: #ffffff;
}
.page-resources__dark-bg .page-resources__guide-title a:hover {
    color: #FFD700;
}


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

.page-resources__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-resources__article-card:hover {
    transform: translateY(-5px);
}

.page-resources__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__article-card h3 {
    font-size: 1.4em;
    margin: 15px 15px 10px;
    color: #0A2463;
}
.page-resources__article-card h3 a {
    text-decoration: none;
    color: #0A2463;
    transition: color 0.3s ease;
}
.page-resources__article-card h3 a:hover {
    color: #FFD700;
}

.page-resources__article-excerpt {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 15px;
}

.page-resources__read-more {
    display: inline-block;
    color: #0A2463;
    text-decoration: none;
    font-weight: bold;
    padding: 0 15px 15px;
    transition: color 0.3s ease;
}

.page-resources__read-more:hover {
    color: #FFD700;
}

/* --- Guides Grid --- */
.page-resources__guides-grid,
.page-resources__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-resources__guide-card,
.page-resources__security-item {
    background-color: #ffffff; /* White background for cards on dark section */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    color: #333333;
    padding-bottom: 15px; /* Ensure space for read more */
}
.page-resources__dark-bg .page-resources__guide-card,
.page-resources__dark-bg .page-resources__security-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    color: #ffffff;
}
.page-resources__dark-bg .page-resources__guide-card h3 a,
.page-resources__dark-bg .page-resources__security-item h3 a {
    color: #ffffff;
}
.page-resources__dark-bg .page-resources__guide-card h3 a:hover,
.page-resources__dark-bg .page-resources__security-item h3 a:hover {
    color: #FFD700;
}
.page-resources__dark-bg .page-resources__guide-card p,
.page-resources__dark-bg .page-resources__security-item p {
    color: #f0f0f0;
}
.page-resources__dark-bg .page-resources__guide-card .page-resources__read-more,
.page-resources__dark-bg .page-resources__security-item .page-resources__read-more {
    color: #FFD700;
}
.page-resources__dark-bg .page-resources__guide-card .page-resources__read-more:hover,
.page-resources__dark-bg .page-resources__security-item .page-resources__read-more:hover {
    color: #ffffff;
}


.page-resources__guide-card:hover,
.page-resources__security-item:hover {
    transform: translateY(-5px);
}

.page-resources__guide-image,
.page-resources__security-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-resources__guide-title,
.page-resources__security-item-title {
    font-size: 1.3em;
    margin: 0 15px 10px;
    color: #0A2463;
}
.page-resources__guide-title a,
.page-resources__security-item-title a {
    text-decoration: none;
    color: #0A2463;
    transition: color 0.3s ease;
}
.page-resources__guide-title a:hover,
.page-resources__security-item-title a:hover {
    color: #FFD700;
}

.page-resources__guide-excerpt,
.page-resources__security-item-description {
    font-size: 0.9em;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 15px;
}

/* --- FAQ Section --- */
.page-resources__faq-list {
    max-width: 900px;
    margin: 0 auto 40px;
}

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #0A2463;
    cursor: pointer;
    background-color: #f2f2f2;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-item-title {
    margin: 0;
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change + to X */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

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


/* --- CTA Banner --- */
.page-resources__cta-banner {
    text-align: center;
    padding: 100px 20px;
    background-color: #0A2463;
    color: #ffffff;
}

.page-resources__banner-title {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__banner-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 60px 0;
    }
    .page-resources__hero-content {
        max-width: 100%;
        text-align: center;
        padding: 20px;
    }
    .page-resources__hero-image-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        margin-top: 40px;
        transform: none;
    }
    .page-resources__hero-image {
        width: 80%; /* Smaller image on tablet */
        height: auto;
        object-fit: contain;
        transform: none;
        opacity: 0.8;
    }
    .page-resources__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile Fixed Header Spacing */
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Image containers responsiveness */
    .page-resources__hero-image-wrapper,
    .page-resources__article-card,
    .page-resources__guide-card,
    .page-resources__security-item,
    .page-resources__container,
    .page-resources__articles-grid,
    .page-resources__guides-grid,
    .page-resources__security-grid,
    .page-resources__faq-list,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific adjustment for hero image wrapper padding if needed */
    .page-resources__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    /* Buttons responsiveness */
    .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;
        margin: 10px 0 !important; /* Stack buttons vertically */
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__section-description {
        font-size: 1em;
    }
    .page-resources__article-card h3,
    .page-resources__guide-title,
    .page-resources__security-item-title {
        font-size: 1.2em;
    }
    .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: 15px 20px;
    }
    .page-resources__banner-title {
        font-size: 2.5em;
    }
    .page-resources__banner-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__banner-title {
        font-size: 2em;
    }
}