/* style/resources.css */

/* Variables */
:root {
    --page-resources-primary-color: #C0392B; /* Deep Red */
    --page-resources-secondary-color: #2C3E50; /* Dark Blue Gray */
    --page-resources-accent-color: #F39C12; /* Golden Orange */
    --page-resources-text-light: #ECF0F1; /* Light Gray */
    --page-resources-text-dark: #2C3E50; /* Dark Blue Gray */
    --page-resources-bg-light: #FDFEFE; /* Off-White */
    --page-resources-bg-dark: #1A242F; /* Even Darker Blue Gray */
    --page-resources-card-bg: #34495E; /* Medium Blue Gray */
    --page-resources-border-color: rgba(255, 255, 255, 0.1);
}

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

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

/* Hero Section */
.page-resources__hero-section {
    background: linear-gradient(135deg, var(--page-resources-primary-color) 0%, var(--page-resources-secondary-color) 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--page-resources-text-light);
    position: relative;
    overflow: hidden;
}

.page-resources__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract,geometric,pattern,overlay]') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    color: #FDFEFE; /* Ensure high contrast */
}

.page-resources__hero-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 1;
    color: #ECF0F1; /* Ensure high contrast */
}

/* Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
    border: none;
}

.page-resources__btn--primary {
    background-color: var(--page-resources-accent-color);
    color: var(--page-resources-text-dark);
}

.page-resources__btn--primary:hover {
    background-color: #e68a00;
    transform: translateY(-3px);
}

.page-resources__btn--secondary {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
    border: 2px solid var(--page-resources-accent-color);
}

.page-resources__btn--secondary:hover {
    background-color: darken(var(--page-resources-primary-color), 10%);
    transform: translateY(-3px);
}

.page-resources__btn--tertiary {
    background-color: var(--page-resources-card-bg);
    color: var(--page-resources-text-light);
    border: 1px solid var(--page-resources-primary-color);
    padding: 10px 20px;
    font-size: 0.95em;
}

.page-resources__btn--tertiary:hover {
    background-color: var(--page-resources-primary-color);
    transform: translateY(-2px);
}

/* General Sections */
.page-resources__intro-section,
.page-resources__articles-section,
.page-resources__cta-section,
.page-resources__contact-section {
    padding: 60px 0;
    background-color: var(--page-resources-bg-dark);
}

.page-resources__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-resources-primary-color); /* Deep Red */
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-resources__subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 60px;
    color: var(--page-resources-text-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Intro Section */
.page-resources__intro-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-resources__intro-content {
    flex: 1;
    min-width: 300px;
    color: #ECF0F1; /* Ensure high contrast */
}

.page-resources__intro-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

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

.page-resources__img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Articles Grid */
.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-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.page-resources__article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--page-resources-border-color);
}

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

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

.page-resources__article-title a {
    color: var(--page-resources-accent-color); /* Golden Orange */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #FFD700; /* Lighter Gold */
}

.page-resources__article-description {
    font-size: 1em;
    color: var(--page-resources-text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* CTA Sections */
.page-resources__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-text-light);
    margin-top: 40px;
}

.page-resources__cta-section--download {
    background-color: var(--page-resources-bg-dark);
    border-top: 5px solid var(--page-resources-primary-color);
    border-bottom: 5px solid var(--page-resources-primary-color);
}

.page-resources__cta-section--register {
    background-color: var(--page-resources-primary-color);
    color: #FDFEFE; /* Ensure high contrast */
}

.page-resources__cta-section--register .page-resources__section-title {
    color: #FDFEFE; /* Ensure high contrast */
}

.page-resources__cta-section--register .page-resources__btn--primary {
    background-color: var(--page-resources-accent-color);
    color: var(--page-resources-text-dark);
}

.page-resources__cta-section--register .page-resources__btn--primary:hover {
    background-color: #e68a00;
}

.page-resources__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #ECF0F1; /* Ensure high contrast */
}

.page-resources__qr-code {
    width: 150px;
    height: 150px;
    margin-top: 30px;
    border: 5px solid var(--page-resources-text-light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.page-resources__contact-section {
    background-color: var(--page-resources-bg-dark);
    padding: 80px 0;
    text-align: center;
}

.page-resources__contact-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--page-resources-text-light);
}

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

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

    .page-resources__intro-grid {
        flex-direction: column;
    }

    .page-resources__intro-content,
    .page-resources__intro-image {
        min-width: unset;
        width: 100%;
    }
}

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

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

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

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

    .page-resources__subtitle {
        font-size: 1em;
    }

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

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

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

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

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

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

    .page-resources__btn {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

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