/* style/resources.css */

/* Variables for colors */
:root {
    --page-resources-primary-color: #FFD700; /* Golden */
    --page-resources-secondary-color: #8B0000; /* Dark Red */
    --page-resources-background-dark: #1a1a1a; /* Dark grey for background */
    --page-resources-background-light: #2c2c2c; /* Slightly lighter dark grey */
    --page-resources-text-light: #f0f0f0; /* Light grey for text on dark background */
    --page-resources-text-dark: #333333; /* Dark grey for text on light background (not much used here) */
    --page-resources-border-color: #444444; /* Border color */
    --page-resources-hover-color: #e0b800; /* Lighter golden for hover */
    --page-resources-shadow-color: rgba(0, 0, 0, 0.3);
}

.page-resources {
    font-family: 'Arial', sans-serif;
    color: var(--page-resources-text-light);
    background-color: var(--page-resources-background-dark);
    line-height: 1.6;
}

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

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, var(--page-resources-secondary-color) 0%, #3a0000 100%); /* Dark red gradient */
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--page-resources-shadow-color);
}

.page-resources__hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top left, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.page-resources__hero-title {
    font-size: 3.5em;
    color: var(--page-resources-primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px var(--page-resources-shadow-color);
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.page-resources__hero-subtitle {
    font-size: 1.3em;
    color: var(--page-resources-text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.page-resources__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.page-resources__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.page-resources__btn--primary {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-secondary-color);
    border-color: var(--page-resources-primary-color);
}

.page-resources__btn--primary:hover {
    background-color: var(--page-resources-hover-color);
    color: var(--page-resources-secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

.page-resources__btn--secondary {
    background-color: transparent;
    color: var(--page-resources-primary-color);
    border-color: var(--page-resources-primary-color);
}

.page-resources__btn--secondary:hover {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

/* General Sections */
.page-resources__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-resources-border-color);
}

.page-resources__section:last-of-type {
    border-bottom: none;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--page-resources-primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px var(--page-resources-shadow-color);
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: -20px auto 50px auto;
    color: var(--page-resources-text-light);
}

.page-resources__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.page-resources__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-resources__text-content {
    flex: 1;
}

.page-resources__text-content p {
    margin-bottom: 15px;
    color: var(--page-resources-text-light);
}

.page-resources__text-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--page-resources-text-light);
}

.page-resources__text-content ul li {
    margin-bottom: 8px;
}

.page-resources__text-content strong {
    color: var(--page-resources-primary-color);
}

.page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--page-resources-shadow-color);
}

/* Highlight text */
.page-resources__highlight {
    color: var(--page-resources-primary-color);
    font-weight: bold;
}

/* Categories Section */
.page-resources__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources__category-card {
    background-color: var(--page-resources-background-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px var(--page-resources-shadow-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--page-resources-border-color);
}

.page-resources__category-card:hover {
    transform: translateY(-5px);
    background-color: #3b3b3b;
}

.page-resources__category-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.page-resources__category-title {
    font-size: 1.5em;
    color: var(--page-resources-primary-color);
    margin-bottom: 15px;
}

.page-resources__category-text {
    color: var(--page-resources-text-light);
    font-size: 0.95em;
}

/* Detail List Section */
.page-resources__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources__article-card {
    background-color: var(--page-resources-background-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px var(--page-resources-shadow-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--page-resources-border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__article-card:hover {
    transform: translateY(-5px);
    background-color: #3b3b3b;
}

.page-resources__article-title {
    font-size: 1.4em;
    margin-bottom: 15px;
}

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

.page-resources__article-title a:hover {
    color: var(--page-resources-hover-color);
    text-decoration: underline;
}

.page-resources__article-description {
    color: var(--page-resources-text-light);
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures description takes available space */
}

.page-resources__btn--link {
    display: inline-block;
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--page-resources-secondary-color);
}

.page-resources__btn--link:hover {
    background-color: #a00000; /* Slightly lighter red */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.4);
}

/* Get Started Section */
.page-resources__actions-center {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

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

.page-resources__faq-item {
    background-color: var(--page-resources-background-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 8px var(--page-resources-shadow-color);
    border: 1px solid var(--page-resources-border-color);
}

.page-resources__faq-question {
    font-size: 1.2em;
    color: var(--page-resources-primary-color);
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3a3a3a; /* Slightly darker for question header */
    transition: background-color 0.3s ease;
}

.page-resources__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-resources__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-resources__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    color: var(--page-resources-text-light);
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }

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

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

    .page-resources__content-grid {
        flex-direction: column;
        text-align: center;
    }

    .page-resources__content-grid--reverse {
        flex-direction: column;
    }
    
    .page-resources__image-wrapper {
        order: -1; /* Image appears before text on small screens for introduction */
    }
    .page-resources__content-grid--reverse .page-resources__image-wrapper {
        order: 1; /* Image appears after text for reverse layout */
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 80px 0 60px;
    }

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

    .page-resources__hero-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-resources__section {
        padding: 40px 0;
    }

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

    .page-resources__category-grid,
    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__actions-center {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources__faq-answer {
        padding: 0 20px;
    }

    .page-resources__faq-answer p {
        padding-bottom: 15px;
    }
}