/* style/resources.css */

/* Variables for colors */
:root {
    --page-resources-primary-color: #0A2463; /* Navy Blue */
    --page-resources-secondary-color: #E0B34F; /* Gold */
    --page-resources-text-light: #F8F8F8; /* Near white for dark backgrounds */
    --page-resources-text-dark: #1A1A1A; /* Very dark grey for light backgrounds */
    --page-resources-background-light: #FFFFFF; /* White */
    --page-resources-background-dark: #0A1E4B; /* Slightly lighter navy for sections */
    --page-resources-highlight-text: #0A2463; /* Gold for highlights - Adjusted for better contrast on light backgrounds */
}

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

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

/* Hero Section */
.page-resources__hero-section {
    background: linear-gradient(135deg, var(--page-resources-primary-color) 0%, #1A3E7F 100%); /* Darker blue gradient */
    color: var(--page-resources-text-light);
    padding: 100px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-resources-secondary-color); /* Gold title */
    line-height: 1.2;
}

.page-resources__hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-resources-text-light);
}

.page-resources__cta-button {
    display: inline-block;
    background-color: var(--page-resources-secondary-color); /* Gold button */
    color: var(--page-resources-primary-color); /* Navy text on gold */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-resources__cta-button:hover {
    background-color: #F0C46B; /* Slightly lighter gold */
    transform: translateY(-2px);
}

/* General Section Styling */
.page-resources__intro-section,
.page-resources__guides-section,
.page-resources__games-section,
.page-resources__promotions-section,
.page-resources__strategy-section,
.page-resources__support-section,
.page-resources__detail-pages-section,
.page-resources__conclusion-section {
    padding: 60px 0;
    background-color: var(--page-resources-background-light);
    color: var(--page-resources-text-dark);
}

/* Alternating background for better readability */
.page-resources__guides-section,
.page-resources__strategy-section,
.page-resources__detail-pages-section {
    background-color: #F5F7FA; /* Light grey for contrast */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--page-resources-primary-color); /* Navy title */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-resources-secondary-color); /* Gold underline */
    border-radius: 2px;
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__inline-link {
    color: var(--page-resources-primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-resources__inline-link:hover {
    color: var(--page-resources-secondary-color);
}

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

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Article/Item Styling */
.page-resources__guide-item,
.page-resources__game-item,
.page-resources__promotion-item,
.page-resources__strategy-item,
.page-resources__support-item {
    background-color: var(--page-resources-background-light);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__guide-item:hover,
.page-resources__game-item:hover,
.page-resources__promotion-item:hover,
.page-resources__strategy-item:hover,
.page-resources__support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__guide-title,
.page-resources__game-title,
.page-resources__promotion-title,
.page-resources__strategy-title,
.page-resources__support-title {
    font-size: 1.8em;
    color: var(--page-resources-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__highlight {
    color: var(--page-resources-highlight-text); /* Using primary color for highlight for better contrast on light background */
    font-weight: bold;
}

.page-resources__read-more-button {
    display: inline-block;
    background-color: var(--page-resources-primary-color); /* Navy button */
    color: var(--page-resources-text-light); /* Light text on navy */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
}

.page-resources__read-more-button:hover {
    background-color: #1A3E7F; /* Slightly lighter navy */
    transform: translateY(-1px);
}

/* Detail Pages List */
.page-resources__detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__detail-item {
    background-color: var(--page-resources-background-light);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

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

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

.page-resources__detail-title a:hover {
    color: var(--page-resources-secondary-color);
}

.page-resources__detail-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}

.page-resources__view-details-button {
    display: inline-block;
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-primary-color);
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-resources__view-details-button:hover {
    background-color: #F0C46B;
    transform: translateY(-1px);
}

/* Conclusion Section */
.page-resources__conclusion-section {
    background-color: var(--page-resources-primary-color); /* Dark background */
    color: var(--page-resources-text-light);
    text-align: center;
    padding: 80px 20px;
}

.page-resources__conclusion-section .page-resources__section-title {
    color: var(--page-resources-secondary-color); /* Gold title */
}

.page-resources__conclusion-section .page-resources__section-title::after {
    background-color: var(--page-resources-text-light); /* White underline */
}

.page-resources__conclusion-section .page-resources__paragraph {
    color: var(--page-resources-text-light);
}

/* Responsive Design */
@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__guide-title,
    .page-resources__game-title,
    .page-resources__promotion-title,
    .page-resources__strategy-title,
    .page-resources__support-title {
        font-size: 1.5em;
    }

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

@media (max-width: 480px) {
    .page-resources__hero-section {
        padding: 80px 15px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-subtitle {
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    .page-resources__guide-item,
    .page-resources__game-item,
    .page-resources__promotion-item,
    .page-resources__strategy-item,
    .page-resources__support-item {
        padding: 20px;
    }
    .page-resources__paragraph {
        font-size: 1em;
    }
}