/* style/resources.css */

/* General page styling */
.page-resources {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #f0f0f0; /* Light text on dark background */
    background-color: #0A192F; /* Main dark background */
    font-size: 16px;
}

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

/* Hidden state for JS animation */
.page-resources--hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-resources--fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, #0A192F 0%, #1a3a5f 100%); /* Dark blue gradient */
    padding: 100px 0;
    text-align: center;
    color: #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #64FFDA; /* Accent color for title */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.page-resources__hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

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

.page-resources__btn--primary {
    background-color: #64FFDA; /* Bright green */
    color: #0A192F; /* Dark text on bright button */
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.4);
}

.page-resources__btn--primary:hover {
    background-color: #46b399; /* Darker green on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.6);
}

.page-resources__btn--secondary {
    background-color: transparent;
    color: #64FFDA; /* Bright green text */
    border: 2px solid #64FFDA;
    margin-left: 15px;
}

.page-resources__btn--secondary:hover {
    background-color: #64FFDA; /* Bright green background on hover */
    color: #0A192F; /* Dark text on bright button */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

/* Sections */
.page-resources__section {
    padding: 80px 0;
    background-color: #0A192F; /* Default section background */
}

.page-resources__section:nth-child(even) {
    background-color: #1a2a40; /* Slightly lighter dark background for alternating sections */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #64FFDA;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

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

.page-resources__sub-title {
    font-size: 2em;
    color: #f0f0f0;
    margin-top: 50px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.page-resources__introduction p,
.page-resources__key-aspects p,
.page-resources__why-us p,
.page-resources__community p,
.page-resources__contact p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #e0e0e0; /* Slightly lighter than f0f0f0 for paragraphs */
}

.page-resources__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

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

.page-resources__article-card {
    background-color: #1a2a40; /* Darker background for cards */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px 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;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.page-resources__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(100, 255, 218, 0.3);
}

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

.page-resources__article-title a {
    color: #64FFDA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #46b399;
    text-decoration: underline;
}

.page-resources__article-description {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures description takes up available space */
}

/* CTA Section */
.page-resources__cta-section {
    text-align: center;
    background-color: #0A192F;
    padding: 80px 0;
}

.page-resources__cta-section .page-resources__section-title {
    color: #64FFDA;
}

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

/* Why Us / Benefits Section */
.page-resources__why-us {
    background-color: #1a2a40;
    text-align: center;
}

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

.page-resources__feature-item {
    background-color: #0A192F;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.page-resources__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(100, 255, 218, 0.3);
}

.page-resources__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px #64FFDA); /* Glow effect */
    object-fit: contain;
}

.page-resources__feature-item h3 {
    font-size: 1.6em;
    color: #64FFDA;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources__feature-item p {
    font-size: 1em;
    color: #e0e0e0;
}

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

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

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

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

    .page-resources__btn {
        padding: 12px 25px;
        font-size: 1em;
        margin-left: 0;
        margin-top: 10px;
    }

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

    .page-resources__article-list,
    .page-resources__features {
        grid-template-columns: 1fr;
    }
}

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

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

    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__btn--secondary {
        margin-top: 15px;
    }
}

/* Ensure contrast for specific text elements */
.page-resources strong {
    color: #64FFDA; /* Highlight strong text with accent color */
}