/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: 'Poppins', sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #007bff; /* Primary blue background if image not loaded/visible */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    z-index: 1;
    filter: brightness(0.7); /* Slightly darken image for text readability, no color change */
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-resources__hero-button {
    display: inline-block;
    background-color: #ffc107; /* Secondary yellow */
    color: #000000;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: none;
}

.page-resources__hero-button:hover {
    background-color: #e0a800; /* Darker yellow on hover */
}

/* General Section Styling */
.page-resources__intro-section,
.page-resources__articles-section,
.page-resources__why-winzir-section,
.page-resources__ecosystem-section,
.page-resources__faq-section,
.page-resources__final-cta-section {
    padding: 60px 0;
    background-color: #ffffff; /* Default background for sections */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #007bff; /* Primary blue for titles */
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

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

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

.page-resources__article-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px; /* Ensure cards have consistent height for better layout */
}

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

.page-resources__article-image {
    width: 100%;
    height: 220px; /* Fixed height for article images */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.page-resources__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-grow: 0; /* Don't grow title */
}

.page-resources__card-title a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #0056b3;
}

.page-resources__card-summary {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow summary to grow */
}

.page-resources__card-button {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to start */
}

.page-resources__card-button:hover {
    background-color: #0056b3;
}

/* Why Winzir Section */
.page-resources__why-winzir-section {
    background-color: #f0f7ff; /* Light blue background */
    padding: 80px 0;
}

.page-resources__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-resources__feature-item:hover {
    transform: translateY(-5px);
}

.page-resources__feature-title {
    font-size: 1.6em;
    color: #007bff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__feature-text {
    font-size: 1em;
    color: #555555;
}

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

.page-resources__cta-button {
    display: inline-block;
    background-color: #ffc107;
    color: #000000;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin: 0 10px;
    border: none;
}

.page-resources__cta-button:hover {
    background-color: #e0a800;
}

.page-resources__cta-button--secondary {
    background-color: #007bff;
    color: #ffffff;
}

.page-resources__cta-button--secondary:hover {
    background-color: #0056b3;
}

/* Ecosystem Section */
.page-resources__ecosystem-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-resources__ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__ecosystem-item {
    background-color: #f9f9f9;
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__ecosystem-title {
    font-size: 1.6em;
    color: #007bff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__ecosystem-text {
    font-size: 1em;
    color: #555555;
}

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

/* FAQ Section */
.page-resources__faq-section {
    background-color: #f0f7ff; /* Light blue background */
    padding: 80px 0;
}

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

.page-resources__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    padding: 25px;
}

.page-resources__faq-question {
    font-size: 1.3em;
    color: #007bff;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
}

.page-resources__faq-answer {
    font-size: 1em;
    color: #555555;
    display: none; /* Hidden by default, toggled by JS */
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Final CTA Section */
.page-resources__final-cta-section {
    background-color: #007bff; /* Primary blue background */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-resources__final-cta-container {
    max-width: 800px;
}

.page-resources__final-cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__final-cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-resources__final-cta-button {
    display: inline-block;
    background-color: #ffc107;
    color: #000000;
    padding: 18px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    border: none;
}

.page-resources__final-cta-button:hover {
    background-color: #e0a800;
}

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

@media (max-width: 768px) {
    /* Ensure content area doesn't cause horizontal scroll */
    .page-resources {
        overflow-x: hidden;
    }
    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }

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

    .page-resources__hero-description {
        font-size: 1.1em;
    }

    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-resources__intro-section,
    .page-resources__articles-section,
    .page-resources__why-winzir-section,
    .page-resources__ecosystem-section,
    .page-resources__faq-section,
    .page-resources__final-cta-section {
        padding: 40px 0;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-resources__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-resources__article-card {
        min-height: auto; /* Allow cards to adjust height */
    }

    /* Important: Content area images must be responsive and not cause overflow */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }

    .page-resources__cta-bottom,
    .page-resources__cta-middle {
        flex-direction: column;
        display: flex; /* Changed to flex for vertical stacking */
        gap: 15px; /* Space between buttons */
    }

    .page-resources__cta-button {
        width: 100%;
        margin: 0; /* Remove horizontal margin for full width */
    }

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

    .page-resources__final-cta-description {
        font-size: 1em;
    }

    .page-resources__final-cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__feature-title {
        font-size: 1.3em;
    }
    .page-resources__final-cta-title {
        font-size: 1.6em;
    }
}