/* style/resources.css */

/* Base styles for the page content, considering dark body background from shared.css */
.page-resources {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Inherit from body or shared, avoid overriding */
}

/* Header offset for the first content section */
.page-resources__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px);
    background-color: #0d0d0d; /* Dark background for hero section */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding-left: 20px;
    padding-right: 20px;
}

.page-resources__hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Use custom color for login/register font, applying to H1 for impact */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4; /* Slightly transparent to let content stand out */
}

/* General section styling */
.page-resources__section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background for sections */
    color: #ffffff;
}

.page-resources__section:nth-of-type(even) {
    background-color: #222222; /* Slightly different dark background for alternating sections */
}

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

.page-resources__section-title {
    font-size: 2.8em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources a[class*="button"],
.page-resources a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-resources__btn-primary:hover {
    background-color: #e02020;
    transform: translateY(-3px);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-resources__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Platform Advantages Grid */
.page-resources__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__advantage-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 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources__advantage-icon {
    width: 200px; /* Minimum size for content images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-resources__advantage-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-resources__advantage-description {
    font-size: 1em;
    color: #cccccc;
}

/* Security Guide Section */
.page-resources__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-resources__security-feature {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-resources__security-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__feature-title {
    font-size: 1.8em;
    color: #FFFF00; /* Highlight important features */
    margin-bottom: 15px;
}

.page-resources__feature-description,
.page-resources__security-tips {
    font-size: 1em;
    color: #cccccc;
    text-align: left;
}

.page-resources__security-tips {
    list-style: disc inside;
    padding-left: 20px;
    margin-top: 10px;
}

.page-resources__security-tips li {
    margin-bottom: 8px;
}

.page-resources__cta-block {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #017439; /* Brand primary color for CTA background */
    border-radius: 10px;
    color: #ffffff;
}

.page-resources__cta-text {
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Game Guide Section */
.page-resources__guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__guide-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-resources__guide-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-resources__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
    flex-grow: 1; /* Allow title to take available space */
}

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

.page-resources__card-title a:hover {
    color: #FFFF00; /* Highlight on hover */
    text-decoration: underline;
}

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

.page-resources__card-link {
    display: inline-block;
    color: #FFFF00; /* Custom highlight color */
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push link to bottom */
}

.page-resources__card-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details/summary */
}

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

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-qtext {
    flex-grow: 1;
    color: #017439; /* Brand color for questions */
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #FFFF00; /* Highlight toggle icon */
}

.page-resources__faq-answer {
    padding: 15px 25px 25px 25px;
    font-size: 1em;
    color: #cccccc;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-resources__faq-answer a {
    color: #FFFF00; /* Highlight links in FAQ answers */
    text-decoration: underline;
}

/* Final CTA Section */
.page-resources__cta-final {
    background-color: #017439; /* Brand primary color */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-resources__cta-container {
    max-width: 900px;
}

.page-resources__cta-title {
    font-size: 3em;
    color: #FFFF00;
    margin-bottom: 25px;
    line-height: 1.2;
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 400px;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific override */
    }

    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Image containers for mobile */
    .page-resources__advantage-item,
    .page-resources__security-feature,
    .page-resources__guide-card,
    .page-resources__hero-content-wrapper,
    .page-resources__cta-block,
    .page-resources__faq-item,
    .page-resources__cta-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Prevent content overflow */
    }

    /* Buttons responsiveness */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
    }

    .page-resources__hero-buttons,
    .page-resources__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources__advantage-icon {
        width: 150px;
        height: auto;
    }
    .page-resources__advantage-title {
        font-size: 1.5em;
    }
    .page-resources__feature-title {
        font-size: 1.5em;
    }

    .page-resources__guide-image {
        height: 180px; /* Adjust height for mobile cards */
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
}