/* style/resources.css */

/* Variables for consistency */
:root {
    --page-resources-primary-color: #FFD700; /* Gold */
    --page-resources-secondary-color: #1A202C; /* Dark Blue/Black */
    --page-resources-text-light: #F0F0F0; /* Light text for dark backgrounds */
    --page-resources-text-dark: #333333; /* Dark text for light backgrounds */
    --page-resources-accent-color: #0028ff; /* Complementary to primary for emphasis */
    --page-resources-border-radius: 8px;
    --page-resources-spacing-sm: 15px;
    --page-resources-spacing-md: 30px;
    --page-resources-spacing-lg: 60px;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-resources-text-light); /* Default text color for dark sections */
    background-color: var(--page-resources-secondary-color); /* Overall dark background */
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--page-resources-spacing-sm);
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--page-resources-primary-color);
    text-align: center;
    margin-bottom: var(--page-resources-spacing-md);
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__subsection-title {
    font-size: 1.8em;
    color: var(--page-resources-primary-color);
    margin-top: var(--page-resources-spacing-lg);
    margin-bottom: var(--page-resources-spacing-sm);
    font-weight: 600;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: var(--page-resources-spacing-lg);
    color: var(--page-resources-text-light);
}

.page-resources p {
    margin-bottom: var(--page-resources-spacing-sm);
    color: var(--page-resources-text-light);
}

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

.page-resources a:hover {
    color: #ffd700; /* Slightly darker gold on hover for better contrast on dark background */
    text-decoration: underline;
}

/* Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--page-resources-border-radius);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 1em;
    border: 2px solid transparent;
}

.page-resources__btn--primary {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-secondary-color); /* Dark text on gold button */
    border-color: var(--page-resources-primary-color);
}

.page-resources__btn--primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    border-color: #e6c200;
    color: var(--page-resources-secondary-color);
}

.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);
}

.page-resources__btn--outline {
    background-color: transparent;
    color: var(--page-resources-primary-color);
    border: 1px solid var(--page-resources-primary-color);
    padding: 10px 20px;
    font-size: 0.9em;
}

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

.page-resources__btn--lg {
    padding: 15px 35px;
    font-size: 1.2em;
}

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, var(--page-resources-secondary-color), #2a313e); /* Dark gradient */
    padding: var(--page-resources-spacing-lg) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--page-resources-primary-color);
}

.page-resources__hero-title {
    font-size: 3.5em;
    color: var(--page-resources-primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    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;
}

.page-resources__hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--page-resources-spacing-sm);
    flex-wrap: wrap;
}

/* Intro Content Section */
.page-resources__intro-content {
    padding: var(--page-resources-spacing-lg) 0;
    background-color: var(--page-resources-secondary-color);
}

.page-resources__image-wrapper {
    margin: var(--page-resources-spacing-md) 0;
    text-align: center;
}

.page-resources__img {
    max-width: 100%;
    height: auto;
    border-radius: var(--page-resources-border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* No filter to change image color */
}

/* Articles List Section */
.page-resources__articles-list {
    padding: var(--page-resources-spacing-lg) 0;
    background-color: #2a313e; /* Slightly lighter dark background */
}

.page-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--page-resources-spacing-md);
}

.page-resources__card {
    background-color: var(--page-resources-secondary-color);
    border-radius: var(--page-resources-border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__card-image-wrapper {
    height: 200px; /* Fixed height for card images */
    overflow: hidden;
}

.page-resources__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* No filter to change image color */
}

.page-resources__card-content {
    padding: var(--page-resources-spacing-sm);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 600;
}

.page-resources__card-title a {
    color: var(--page-resources-primary-color);
    text-decoration: none;
}

.page-resources__card-title a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.page-resources__card-category {
    font-size: 0.9em;
    color: #AAAAAA;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-resources__card-summary {
    font-size: 1em;
    color: var(--page-resources-text-light);
    margin-bottom: var(--page-resources-spacing-sm);
    flex-grow: 1;
}

.page-resources__card .page-resources__btn {
    margin-top: auto; /* Push button to the bottom */
    align-self: flex-start;
}

/* Strategy Section */
.page-resources__strategy-section {
    padding: var(--page-resources-spacing-lg) 0;
    background-color: var(--page-resources-secondary-color);
}

/* Download App Section */
.page-resources__download-app-section {
    padding: var(--page-resources-spacing-lg) 0;
    background-color: #2a313e; /* Slightly lighter dark background */
}

.page-resources__feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: var(--page-resources-spacing-md);
    margin-bottom: var(--page-resources-spacing-md);
}

.page-resources__feature-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--page-resources-text-light);
    font-size: 1.1em;
}

.page-resources__feature-list li strong {
    color: var(--page-resources-primary-color);
}

.page-resources__image-wrapper--download {
  max-width: 600px; /* Constrain width for app image */
  margin-left: auto;
  margin-right: auto;
}

/* Call to Action Section */
.page-resources__cta-section {
    padding: var(--page-resources-spacing-lg) 0;
    background: linear-gradient(45deg, var(--page-resources-primary-color), #e6c200); /* Gold gradient */
    text-align: center;
    color: var(--page-resources-secondary-color); /* Dark text on gold background */
}

.page-resources__cta-section .page-resources__section-title {
    color: var(--page-resources-secondary-color);
}

.page-resources__cta-section .page-resources__section-description {
    color: var(--page-resources-secondary-color);
    margin-bottom: var(--page-resources-spacing-md);
}

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

.page-resources__cta-section .page-resources__btn--lg:hover {
    background-color: #0d1016; /* Even darker */
    border-color: #0d1016;
    color: var(--page-resources-primary-color);
}

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

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

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

    .page-resources__subsection-title {
        font-size: 1.5em;
    }

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

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

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }

    .page-resources__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

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