/* style/resources.css */

/* Variables for colors */
:root {
    --page-resources-primary-color: #FFD700; /* Gold */
    --page-resources-secondary-color: #000080; /* Dark Blue */
    --page-resources-accent-color: #DC143C; /* Scarlet Red */
    --page-resources-text-light: #FFFFFF;
    --page-resources-text-dark: #1a1a1a;
    --page-resources-bg-light: #f4f4f4;
    --page-resources-bg-dark: #000050; /* A slightly lighter dark blue for contrast */
}

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

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

.page-resources__text-center {
    text-align: center;
}

.page-resources__mt-20 {
    margin-top: 20px;
}

/* Headings */
.page-resources h1, .page-resources h2, .page-resources h3 {
    color: var(--page-resources-secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-resources h1 {
    font-size: 2.8em;
    color: var(--page-resources-primary-color); /* Gold for main title */
}

.page-resources h2 {
    font-size: 2.2em;
}

.page-resources h3 {
    font-size: 1.6em;
}

.page-resources__highlight {
    color: var(--page-resources-primary-color);
}

/* Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.page-resources__btn--primary {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-secondary-color); /* Dark text on gold */
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

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

.page-resources__btn--secondary {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-primary-color); /* Gold text on dark blue */
    border: 1px solid var(--page-resources-primary-color);
    margin-left: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 128, 0.4);
}

.page-resources__btn--secondary:hover {
    background-color: #000066;
    transform: translateY(-2px);
}

.page-resources__btn--large {
    padding: 15px 30px;
    font-size: 1.1em;
}

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

.page-resources__hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 128, 0) 70%);
    animation: page-resources-rotate 20s linear infinite;
    z-index: 0;
}

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

.page-resources__hero > .page-resources__container {
    position: relative;
    z-index: 1;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

/* Introduction Section */
.page-resources__introduction {
    padding: 60px 0;
    background-color: var(--page-resources-bg-light);
}

.page-resources__grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-resources__intro-content p {
    margin-bottom: 15px;
    color: #444;
}

.page-resources__intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Articles Section */
.page-resources__articles {
    padding: 80px 0;
    background-color: var(--page-resources-bg-dark);
    color: var(--page-resources-text-light);
}

.page-resources__articles .page-resources__section-title {
    color: var(--page-resources-primary-color);
}

.page-resources__articles .page-resources__section-description {
    color: var(--page-resources-text-light);
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    opacity: 0.8;
}

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

.page-resources__article-card {
    background-color: var(--page-resources-secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--page-resources-text-light);
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid var(--page-resources-primary-color);
}

.page-resources__article-card .page-resources__card-title {
    padding: 15px 20px 10px;
    font-size: 1.4em;
}

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

.page-resources__article-card .page-resources__card-title a:hover {
    color: #ffd700;
}

.page-resources__card-description {
    padding: 0 20px 15px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1;
}

.page-resources__article-card .page-resources__btn {
    margin: 0 20px 20px;
    text-align: center;
    align-self: flex-start;
    background-color: var(--page-resources-accent-color);
    color: var(--page-resources-text-light);
}

.page-resources__article-card .page-resources__btn:hover {
    background-color: #b71131;
}

/* CTA Banner */
.page-resources__cta-banner {
    background: linear-gradient(90deg, var(--page-resources-primary-color) 0%, #FFC700 100%);
    padding: 80px 0;
    color: var(--page-resources-secondary-color);
    text-align: center;
}

.page-resources__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--page-resources-secondary-color);
}

.page-resources__cta-description {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #333;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.page-resources__cta-buttons .page-resources__btn--primary:hover {
    background-color: #000066;
}

.page-resources__cta-buttons .page-resources__btn--secondary {
    background-color: var(--page-resources-accent-color);
    color: var(--page-resources-text-light);
    border: none;
}

.page-resources__cta-buttons .page-resources__btn--secondary:hover {
    background-color: #b71131;
}

/* Floating Ad */
.page-resources__floating-ad {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--page-resources-accent-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: page-resources-pulse 2s infinite;
}

.page-resources__floating-ad a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--page-resources-text-light);
    padding: 10px 15px;
}

.page-resources__floating-ad-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid var(--page-resources-primary-color);
}

.page-resources__floating-ad-text {
    font-weight: bold;
    font-size: 1.1em;
    white-space: nowrap;
}

@keyframes page-resources-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources__grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .page-resources__grid-cols-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

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

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

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

    .page-resources__btn--secondary {
        margin-left: 0;
    }
}

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

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

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

    .page-resources__introduction, .page-resources__articles, .page-resources__cta-banner {
        padding: 40px 0;
    }

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

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

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

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

    .page-resources__article-card .page-resources__card-title {
        font-size: 1.2em;
    }

    .page-resources__floating-ad {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .page-resources__floating-ad a {
        justify-content: center;
        padding: 8px 10px;
    }

    .page-resources__floating-ad-text {
        font-size: 0.9em;
    }

    .page-resources__floating-ad-image {
        width: 40px;
        height: 40px;
    }
}