/* style/resources.css */
/* Base styles for the resources page */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text for light body background */
    line-height: 1.6;
    background-color: #f8f8f8; /* Light background for the main content area */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #FF4500, #1E90FF); /* Brand colors for hero background */
    color: #ffffff;
    overflow: hidden; /* Prevent content overflow */
}

.page-resources__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-resources__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 200px; /* Enforce minimum size for images */
    /* No filter on images */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-resources__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box; /* Include padding in width calculation */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-resources__btn-primary {
    background: #FF4500;
    color: #ffffff;
    border: 2px solid transparent;
}

.page-resources__btn-primary:hover {
    background: #e63c00; /* Slightly darker orange for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-secondary {
    background: #1E90FF;
    color: #ffffff;
    border: 2px solid transparent;
}

.page-resources__btn-secondary:hover {
    background: #1a7fdc; /* Slightly darker blue for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-resources__section {
    padding: 80px 20px;
    background-color: #ffffff; /* Default light background for sections */
    text-align: center;
}

.page-resources__section--intro {
    background-color: #f8f8f8;
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-resources__heading {
    font-size: 2.5em;
    color: #333333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-resources__heading--white {
    color: #ffffff;
}
.page-resources__heading--white::after {
    background-color: #ffffff;
}

.page-resources__paragraph {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__paragraph--white {
    color: #f0f0f0;
}

/* Card Styles */
.page-resources__card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in grid have equal height */
    display: flex;
    flex-direction: column;
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
    display: block; /* Ensure image behaves as a block element */
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size for images */
    /* No filter on images */
}

/* Guide Grid */
.page-resources__guide-grid,
.page-resources__game-grid,
.page-resources__safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__guide-title,
.page-resources__game-title,
.page-resources__safety-title {
    font-size: 1.4em;
    color: #1E90FF;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take available space */
}

.page-resources__guide-title a,
.page-resources__game-title a,
.page-resources__safety-title a {
    color: #1E90FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__guide-title a:hover,
.page-resources__game-title a:hover,
.page-resources__safety-title a:hover {
    color: #FF4500;
}

.page-resources__guide-text,
.page-resources__game-text,
.page-resources__safety-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
}

.page-resources__btn-link {
    display: inline-block;
    color: #FF4500;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #FF4500;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    margin-top: auto; /* Push button to the bottom of the card */
}

.page-resources__btn-link:hover {
    color: #1E90FF;
    border-color: #1E90FF;
}

/* Dark background section */
.page-resources__dark-bg {
    background: #1E90FF; /* Using secondary color as a dark background */
    color: #ffffff;
}

.page-resources__dark-bg .page-resources__heading {
    color: #ffffff;
}

.page-resources__dark-bg .page-resources__paragraph {
    color: #f0f0f0;
}

.page-resources__dark-bg .page-resources__card {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white card on dark background */
    color: #333333;
}

.page-resources__dark-bg .page-resources__card .page-resources__btn-link {
    color: #1E90FF;
    border-color: #1E90FF;
}