/* style/resources.css */

/* Base Styles for .page-resources */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #f5f0e7; /* Light text for dark background */
    background-color: #0A0F18; /* Main dark background */
    line-height: 1.6;
    overflow-x: hidden;
}

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

.page-resources-section-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #E53935;
    border-radius: 2px;
}

.page-resources-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-resources-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.page-resources-btn-primary {
    background-color: #FFD700;
    color: #0A0F18;
    border: 2px solid #FFD700;
}

.page-resources-btn-primary:hover {
    background-color: #e6c200;
    color: #000;
    transform: translateY(-2px);
}

.page-resources-btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    margin-left: 15px;
}

.page-resources-btn-secondary:hover {
    background-color: #FFD700;
    color: #0A0F18;
    transform: translateY(-2px);
}

.page-resources-btn-small {
    padding: 8px 18px;
    font-size: 0.95em;
}

/* Hero Section */
.page-resources-hero {
    background: linear-gradient(135deg, #0A0F18 0%, #1a2232 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources-hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    overflow: hidden;
    z-index: 0;
}

.page-resources-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-resources-hero > .page-resources-container {
    position: relative;
    z-index: 1;
}

.page-resources-hero-title {
    font-size: 3.8em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-resources-hero-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f5f0e7;
}

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

/* Introduction Section */
.page-resources-introduction {
    padding: 60px 0;
    background-color: #0A0F18;
}

.page-resources-image-inline {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Categories Section */
.page-resources-categories {
    padding: 80px 0;
    background-color: #1a2232;
}

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

.page-resources-category-item {
    background-color: #0A0F18;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-resources-category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 5px #FFD700);
}

.page-resources-category-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

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

.page-resources-link {
    color: #E53935; /* Red for emphasis */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources-link:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Detailed List Section */
.page-resources-detailed-list {
    padding: 80px 0;
    background-color: #0A0F18;
}

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

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

.page-resources-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.page-resources-article-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources-article-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-article-title a:hover {
    color: #E53935;
    text-decoration: underline;
}

.page-resources-article-description {
    font-size: 0.95em;
    color: #ccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Why Choose Section */
.page-resources-why-choose {
    padding: 80px 0;
    background-color: #1a2232;
}

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

.page-resources-benefit-item {
    background-color: #0A0F18;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-resources-benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 5px #E53935);
}

.page-resources-benefit-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources-benefit-text {
    font-size: 1em;
    color: #ccc;
}

/* CTA Bottom Section */
.page-resources-cta-bottom {
    background-color: #E53935; /* Red for strong CTA */
    padding: 60px 0;
    text-align: center;
    color: #f5f0e7;
}

.page-resources-cta-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources-cta-description {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* FAQ Section */
.page-resources-faq {
    padding: 80px 0;
    background-color: #0A0F18;
}

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

.page-resources-faq-item {
    background-color: #1a2232;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-resources-faq-question {
    font-size: 1.3em;
    color: #FFD700;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    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-question:hover {
    background-color: #2c3a4d;
}

.page-resources-faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #ccc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-resources-faq-answer.active {
    max-height: 200px; /* Adjust based on content */
    padding-top: 10px;
}

/* Floating CTA */
.page-resources-floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.page-resources-floating-btn {
    background-color: #E53935; /* Red for attention */
    color: #FFD700;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-resources-floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #c42d2d;
}

.page-resources-floating-icon {
    font-size: 1.5em;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-hero-title {
        font-size: 3em;
    }
    .page-resources-section-title {
        font-size: 2.2em;
    }
    .page-resources-category-grid, .page-resources-article-grid, .page-resources-benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources-hero {
        padding: 80px 0;
    }
    .page-resources-hero-title {
        font-size: 2.5em;
    }
    .page-resources-hero-description {
        font-size: 1.1em;
    }
    .page-resources-hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-btn-secondary {
        margin-left: 0;
    }
    .page-resources-section-title {
        font-size: 1.8em;
    }
    .page-resources-category-item, .page-resources-article-card, .page-resources-benefit-item {
        padding: 20px;
    }
    .page-resources-floating-cta {
        bottom: 20px;
        right: 20px;
    }
    .page-resources-floating-btn {
        font-size: 1em;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-hero-title {
        font-size: 2em;
    }
    .page-resources-section-title {
        font-size: 1.5em;
    }
    .page-resources-text, .page-resources-hero-description, .page-resources-category-description, .page-resources-article-description, .page-resources-benefit-text, .page-resources-cta-description, .page-resources-faq-answer {
        font-size: 0.9em;
    }
    .page-resources-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-resources-floating-cta {
        bottom: 15px;
        right: 15px;
    }
    .page-resources-floating-btn {
        font-size: 0.9em;
        padding: 10px 18px;
        gap: 8px;
    }
    .page-resources-floating-icon {
        font-size: 1.2em;
    }
}