/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    background-color: #017439; /* Brand color as background for hero */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.2; /* Subtle background image */
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

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

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources__hero-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

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

/* Introduction Section */
.page-resources__introduction-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

/* Guides Section */
.page-resources__guides-section {
    padding: 60px 0;
    background-color: #017439; /* Primary brand color */
}

.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #ffffff;
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.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;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources__card-title a {
    color: #FFFF00; /* Yellow for card titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-resources__card-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #f0f0f0;
}

.page-resources__card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff; /* Secondary button background */
    color: #017439; /* Primary brand color for text */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #017439;
    cursor: pointer;
    text-align: center;
}

.page-resources__card-link:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Tips Section */
.page-resources__tips-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.page-resources__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources__list-item {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle background for list items */
    border-left: 5px solid #017439;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-resources__list-item strong {
    color: #FFFF00; /* Yellow for emphasis */
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
    background-color: #017439; /* Primary brand color */
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question */
    transition: background-color 0.3s ease;
    color: #ffffff;
}

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-item[open] .page-resources__faq-question {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFFF00; /* Yellow toggle */
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    content: '−';
}

.page-resources__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

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

/* Call to Action Section */
.page-resources__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #1a1a1a;
}

.page-resources__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
}

.page-resources__btn-register {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
}

.page-resources__btn-register:hover {
    background-color: #a00606;
}

.page-resources__btn-login {
    background-color: #C30808; /* Login color */
    color: #FFFF00; /* Login font color */
}

.page-resources__btn-login:hover {
    background-color: #a00606;
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__text-block,
    .page-resources__list-item,
    .page-resources__card-description,
    .page-resources__faq-answer {
        font-size: 1em;
    }
    .page-resources__card-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__card-image {
        height: 180px;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-toggle {
        font-size: 1.2em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile specific image and container rules */
    .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__card-content { /* Added card-content to ensure padding/width */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}