/* style/resources.css */

/* Variables for consistency */
:root {
    --page-resources-primary-color: #0A2540; /* Dark Blue */
    --page-resources-secondary-color: #FFD700; /* Gold */
    --page-resources-text-light: #F8F8F8;
    --page-resources-text-dark: #333333;
    --page-resources-background-light: #FFFFFF;
    --page-resources-background-dark: #1A3A5A; /* Slightly lighter than primary for contrast */
    --page-resources-accent-color: #f5dabf; /* Complementary to primary */
    --page-resources-border-radius: 8px;
    --page-resources-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.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), var(--page-resources-background-dark));
    color: var(--page-resources-text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--page-resources-secondary-color) 0%, transparent 70%);
    opacity: 0.1;
    animation: page-resources-rotate 15s linear infinite;
}

.page-resources__hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--page-resources-secondary-color) 0%, transparent 70%);
    opacity: 0.1;
    animation: page-resources-rotate-reverse 15s linear infinite;
}

@keyframes page-resources-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes page-resources-rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-resources-secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-subtitle {
    font-size: 1.4em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

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

/* General Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--page-resources-border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
}

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

.page-resources__btn--primary:hover {
    background-color: #e6c200; /* Darker gold */
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: var(--page-resources-shadow);
}

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

.page-resources__btn--secondary:hover {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-primary-color);
    transform: translateY(-3px);
    box-shadow: var(--page-resources-shadow);
}

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

.page-resources__btn--outline:hover {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
    transform: translateY(-2px);
    box-shadow: var(--page-resources-shadow);
}

.page-resources__btn--text {
    background: none;
    border: none;
    color: var(--page-resources-primary-color);
    padding: 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-resources__btn--text:hover {
    color: var(--page-resources-secondary-color);
    text-decoration: none;
}

/* Section Styling */
.page-resources__introduction-section,
.page-resources__categories-section,
.page-resources__featured-articles,
.page-resources__download-app-section,
.page-resources__faq-section,
.page-resources__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

.page-resources__introduction-section {
    background-color: var(--page-resources-background-light);
}

.page-resources__section-title {
    font-size: 2.8em;
    color: var(--page-resources-primary-color);
    margin-bottom: 25px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.2em;
    color: #666;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-resources__text-content {
    font-size: 1.1em;
    text-align: left;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: #444;
}

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

.page-resources__category-card {
    background-color: var(--page-resources-background-light);
    border-radius: var(--page-resources-border-radius);
    box-shadow: var(--page-resources-shadow);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    /* No filter to change image color */
}

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

.page-resources__category-description {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures cards are same height */
}

/* Featured Articles Section */
.page-resources__featured-articles {
    background-color: var(--page-resources-background-dark);
    color: var(--page-resources-text-light);
}

.page-resources__featured-articles .page-resources__section-title {
    color: var(--page-resources-secondary-color);
}

.page-resources__featured-articles .page-resources__section-description {
    color: rgba(255, 255, 255, 0.8);
}

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

.page-resources__article-card {
    background-color: var(--page-resources-background-light);
    border-radius: var(--page-resources-border-radius);
    box-shadow: var(--page-resources-shadow);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* No filter to change image color */
}

.page-resources__article-content {
    padding: 25px;
}

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

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

.page-resources__article-summary {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
}

.page-resources__pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-resources__pagination-link {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--page-resources-secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--page-resources-secondary-color);
    transition: all 0.3s ease;
}

.page-resources__pagination-link:hover,
.page-resources__pagination-link--active {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-primary-color);
}


/* Download App Section */
.page-resources__download-app-section {
    background: var(--page-resources-background-light);
    padding: 100px 0;
}

.page-resources__download-app-section .page-resources__container {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

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

.page-resources__download-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}