/* style/resources.css */
.page-resources {
    background-color: #FFFFFF;
    color: #333333;
    padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    min-height: 500px;
    background-color: #000000; /* Dark background for hero text */
    color: #FFFFFF;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5; /* Slightly dim the image to make text readable */
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-resources__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-resources__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
}

.page-resources__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for contrast */
}

.page-resources__button--primary:hover {
    background-color: #e0a53b;
}

.page-resources__button--secondary {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
}

.page-resources__button--secondary:hover {
    background-color: #f0f0f0;
}

.page-resources__button--text {
    background: none;
    color: #FCBC45;
    padding: 0;
    font-size: 1em;
}

.page-resources__button--text:hover {
    text-decoration: underline;
}

.page-resources__section-title {
    font-size: 2.8em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 60px;
}

.page-resources__section-subtitle {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.page-resources__articles-section,
.page-resources__why-choose-section,
.page-resources__download-guide-section,
.page-resources__security-section,
.page-resources__features-section,
.page-resources__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.page-resources__article-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

.page-resources__article-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #000000;
}

.page-resources__article-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #FCBC45;
}

.page-resources__article-summary {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-resources__feature-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-resources__feature-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
}

.page-resources__feature-description {
    font-size: 1em;
    color: #666666;
    line-height: 1.6;
}

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

.page-resources__step-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-resources__step-title {
    font-size: 1.6em;
    color: #FCBC45;
    margin-bottom: 10px;
}

.page-resources__step-description {
    font-size: 1em;
    color: #666666;
    line-height: 1.6;
}

.page-resources__download-cta {
    text-align: center;
    margin-top: 50px;
}

.page-resources__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-resources__security-item {
    background-color: #f8f8f8;
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-resources__security-item-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
}

.page-resources__security-item-description {
    font-size: 1em;
    color: #666666;
    line-height: 1.6;
}

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

.page-resources__feature-display-item {
    background-color: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-resources__feature-display-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources__feature-display-title {
    font-size: 1.6em;
    color: #000000;
    margin: 20px 15px 10px 15px;
}

.page-resources__feature-display-description {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.5;
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

.page-resources__faq-container {
    margin-top: 40px;
}

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

.page-resources__faq-question {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-resources__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-resources__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}

.page-resources__faq-answer {
    font-size: 1em;
    color: #666666;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding-top: 0;
}

.page-resources__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding-top: 15px;
}

.page-resources__cta-banner {
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-resources__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

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

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 2em;
        padding-top: 40px;
    }
    .page-resources__section-subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-resources__article-grid,
    .page-resources__feature-grid,
    .page-resources__steps-container,
    .page-resources__feature-display-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image,
    .page-resources__feature-display-image {
        height: 200px;
    }
    .page-resources__article-title, .page-resources__feature-title, .page-resources__step-title, .page-resources__security-item-title, .page-resources__feature-display-title, .page-resources__faq-question {
        font-size: 1.4em;
    }
    .page-resources__cta-banner {
        padding: 60px 15px;
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    /* Ensure images in content area do not overflow */
    .page-resources__articles-section img,
    .page-resources__download-guide-section img,
    .page-resources__security-section img,
    .page-resources__features-section img,
    .page-resources__faq-section img,
    .page-resources__cta-banner img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
}