/* style/resources.css */

/* Base styles for the page */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body for consistency */
}

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

/* Section specific styling */
.page-resources__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Light text for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter for descriptions */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 120px 20px 80px; /* Adjusted padding-top for fixed header */
    background: linear-gradient(135deg, #017439, #005a2e); /* Brand color gradient */
    color: #ffffff;
    text-align: center;
}

.page-resources__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Custom color for main title */
}

.page-resources__lead-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    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;
    box-sizing: border-box; /* Important for max-width on mobile */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-resources__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

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

.page-resources__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Video Section */
.page-resources__video-section {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto 20px;
    border-radius: 10px;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves as a block element */
    max-width: 100%; /* Ensure responsiveness */
}

.page-resources__video-caption {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #f0f0f0;
}

/* Categories & Game Guides Section */
.page-resources__categories-section,
.page-resources__game-guides {
    padding: 80px 20px;
    background-color: #f5f5f5; /* Light background for contrast */
    color: #333333; /* Dark text for light section */
}

.page-resources__categories-section .page-resources__section-title,
.page-resources__game-guides .page-resources__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-resources__categories-section .page-resources__section-description,
.page-resources__game-guides .page-resources__section-description {
    color: #555555; /* Darker text for descriptions on light background */
}

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

.page-resources__card {
    background-color: #ffffff; /* White card background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #333333; /* Dark text for card content */
    transition: transform 0.3s ease;
}

.page-resources__card:hover {
    transform: translateY(-5px);
}

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure responsiveness */
}

.page-resources__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: #017439; /* Brand color for card titles */
}

.page-resources__card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #005a2e;
}

.page-resources__card-text {
    font-size: 0.95em;
    margin: 0 20px 20px;
    flex-grow: 1;
    color: #555555;
}

.page-resources__card-link {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 15px;
    background-color: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-resources__card-link:hover {
    background-color: #005a2e;
}

/* Why Choose Us Section */
.page-resources__why-choose-us {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

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

.page-resources__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__feature-title {
    font-size: 1.5em;
    color: #FFFF00; /* Highlight color for feature titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 80px 20px;
    background-color: #f5f5f5; /* Light background */
    color: #333333;
}

.page-resources__faq-section .page-resources__section-title {
    color: #017439;
}

.page-resources__faq-section .page-resources__section-description {
    color: #555555;
}

.page-resources__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-resources__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-resources__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #eaf7ed; /* Light background for question */
    border-bottom: 1px solid #e0e0e0;
}

.page-resources__faq-item[open] .page-resources__faq-question {
    border-bottom: 1px solid #d0d0d0;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-resources__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

.page-resources__faq-answer p {
    margin-bottom: 0;
}

.page-resources__faq-more {
    text-align: center;
    margin-top: 30px;
}

/* CTA Banner */
.page-resources__cta-banner {
    padding: 80px 20px;
    background: linear-gradient(135deg, #017439, #005a2e); /* Brand color gradient */
    color: #ffffff;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__lead-text {
        font-size: 1.1em;
    }
    .page-resources__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}