/* style/resources.css */

/* General page styling for .page-resources */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #F0F0F0; /* Light text for dark backgrounds */
    background-color: #0A192F; /* Dark blue background */
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero Section */
.page-resources__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0A192F 0%, #1a2a46 100%); /* Dark blue gradient */
    position: relative;
    overflow: hidden;
    color: #F0F0F0;
}

.page-resources__hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 215, 0, 0.1); /* Gold accent */
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.page-resources__hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 215, 0, 0.08); /* Gold accent */
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-description {
    font-size: 1.2em;
    color: #E0E0E0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__hero-cta {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #0A192F; /* Dark blue text on gold */
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-resources__hero-cta:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
}

.page-resources__hero-image-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    margin-top: 40px;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

/* General Section Styles */
.page-resources__section {
    padding: 60px 0;
    background-color: #0A192F;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

.page-resources__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-resources__section-text {
    font-size: 1.1em;
    color: #E0E0E0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Category List Grid */
.page-resources__category-list {
    background-color: #0A192F;
}

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

.page-resources__card {
    background-color: #1a2a46; /* Slightly lighter dark blue for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px; /* Space for buttons */
}

.page-resources__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #FFD700;
}

.page-resources__card-title {
    font-size: 1.6em;
    color: #FFD700; /* Gold for card titles */
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-resources__card-description {
    font-size: 0.95em;
    color: #C0C0C0;
    padding: 0 20px 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-resources__card-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #0A192F; /* Dark blue text on gold */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    margin: 0 20px 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

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

.page-resources__card-button--promo {
    background-color: #007bff; /* A different color for promo buttons for visual distinction, ensure contrast */
    color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    margin-top: 5px;
}

.page-resources__card-button--promo:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Bottom CTA Section */
.page-resources__cta-bottom {
    background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%); /* Gold gradient background */
    padding: 80px 20px;
    text-align: center;
    color: #0A192F; /* Dark text on gold */
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: #0A192F; /* Dark blue title */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__cta-description {
    font-size: 1.2em;
    color: #333333; /* Darker grey for description on light background */
    max-width: 800px;
    margin: 0 auto 40px;
}

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

.page-resources__button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__button--primary {
    background-color: #0A192F; /* Dark blue button */
    color: #FFD700; /* Gold text on dark blue */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources__button--primary:hover {
    background-color: #1a2a46;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-resources__button--secondary {
    background-color: transparent;
    color: #0A192F; /* Dark blue text */
    border: 2px solid #0A192F; /* Dark blue border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__button--secondary:hover {
    background-color: #0A192F; /* Dark blue background on hover */
    color: #FFD700; /* Gold text on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
    .page-resources__cta-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 60px 15px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-image-wrapper {
        margin-top: 30px;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__section-text {
        font-size: 1em;
    }
    .page-resources__grid {
        gap: 20px;
        margin-top: 30px;
    }
    .page-resources__card-title {
        font-size: 1.4em;
    }
    .page-resources__card-description {
        font-size: 0.9em;
    }
    .page-resources__cta-bottom {
        padding: 60px 15px;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero {
        padding: 40px 10px;
    }
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-cta {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__section {
        padding: 30px 0;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__grid {
        grid-template-columns: 1fr;
    }
    .page-resources__card-button {
        margin: 0 15px 10px;
    }
    .page-resources__cta-bottom {
        padding: 40px 10px;
    }
    .page-resources__cta-title {
        font-size: 1.6em;
    }
    .page-resources__button {
        padding: 12px 25px;
        font-size: 1em;
    }
}