/* style/resources-latest-gaming-trends.css */

/* Base styles for the page content */
.page-resources-latest-gaming-trends {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background: var(--dark-bg-1); /* Inherit from shared.css, which is dark */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

/* Hero Section */
.page-resources-latest-gaming-trends__hero-section {
    position: relative;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #8B0000, #FFD700); /* Blend brand colors for background */
    color: #ffffff;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources-latest-gaming-trends__hero-content {
    z-index: 1;
    max-width: 900px;
    margin-bottom: 30px;
}

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

.page-resources-latest-gaming-trends__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-latest-gaming-trends__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: 400px; /* Limit max width for button group */
    margin: 0 auto;
}

.page-resources-latest-gaming-trends__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-resources-latest-gaming-trends__hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make it a subtle background image */
}

/* General Section Styles */
.page-resources-latest-gaming-trends__section {
    padding: 80px 20px;
    background: var(--dark-bg-2); /* A slightly different dark background */
    color: #f0f0f0;
}

.page-resources-latest-gaming-trends__section:nth-of-type(even) {
    background: var(--dark-bg-1); /* Alternate background for readability */
}

.page-resources-latest-gaming-trends__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-resources-latest-gaming-trends__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources-latest-gaming-trends__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #cccccc;
}

/* Grid Layout for Overview */
.page-resources-latest-gaming-trends__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-latest-gaming-trends__grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-resources-latest-gaming-trends__grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-latest-gaming-trends__grid-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
    min-width: 200px; /* Minimum image size */
}

.page-resources-latest-gaming-trends__item-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources-latest-gaming-trends__item-text {
    font-size: 1em;
    color: #cccccc;
}

/* Game Cards */
.page-resources-latest-gaming-trends__game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-latest-gaming-trends__game-card {
    background: rgba(139, 0, 0, 0.1); /* Dark red translucent background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.4);
}

.page-resources-latest-gaming-trends__game-card:hover {
    background: rgba(139, 0, 0, 0.2);
}

.page-resources-latest-gaming-trends__card-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources-latest-gaming-trends__card-text {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 25px;
}

.page-resources-latest-gaming-trends__btn-link {
    display: inline-block;
    background: #FFD700;
    color: #000000;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-latest-gaming-trends__btn-link:hover {
    background: #e6c200;
    transform: translateY(-3px);
}

/* Factors Grid */
.page-resources-latest-gaming-trends__factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-latest-gaming-trends__factor-item {
    background: rgba(255, 215, 0, 0.1); /* Gold translucent background */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.page-resources-latest-gaming-trends__factor-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
    min-width: 200px; /* Minimum image size */
}

/* Call to Action Bottom */
.page-resources-latest-gaming-trends__cta-bottom {
    background: #8B0000; /* Dark red background */
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
}

.page-resources-latest-gaming-trends__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-latest-gaming-trends__cta-buttons-bottom {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap */
    width: 100%;
    max-width: 400px; /* Limit max width for button group */
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-resources-latest-gaming-trends__btn-primary,
.page-resources-latest-gaming-trends__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-latest-gaming-trends__btn-primary {
    background: #FFD700;
    color: #000000;
    border: 2px solid #FFD700;
}

.page-resources-latest-gaming-trends__btn-primary:hover {
    background: #e6c200;
    transform: translateY(-3px);
}

.page-resources-latest-gaming-trends__btn-secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-resources-latest-gaming-trends__btn-secondary:hover {
    background: #FFD700;
    color: #000000;
    transform: translateY(-3px);
}

/* FAQ Section */
.page-resources-latest-gaming-trends__faq-section {
    padding: 80px 20px;
    background: var(--dark-bg-2); /* A slightly different dark background */
}

.page-resources-latest-gaming-trends__faq-list {
    margin-top: 40px;
}

.page-resources-latest-gaming-trends__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05); /* Light translucent background for items */
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-resources-latest-gaming-trends__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #FFD700; /* Gold for questions */
}

.page-resources-latest-gaming-trends__faq-question:hover {
    background: rgba(255, 255, 255, 0.12);
}

.page-resources-latest-gaming-trends__faq-question:active {
    background: rgba(255, 255, 255, 0.15);
}

.page-resources-latest-gaming-trends__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #FFD700;
}

.page-resources-latest-gaming-trends__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources-latest-gaming-trends__faq-item.active .page-resources-latest-gaming-trends__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.page-resources-latest-gaming-trends__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: #cccccc; /* Light gray for answers */
}

.page-resources-latest-gaming-trends__faq-item.active .page-resources-latest-gaming-trends__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 20px !important;
    opacity: 1;
    background: rgba(139, 0, 0, 0.1); /* Dark red translucent for answer background */
    border-radius: 0 0 5px 5px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-latest-gaming-trends__hero-title {
        font-size: 2.8em;
    }

    .page-resources-latest-gaming-trends__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources-latest-gaming-trends {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
    }

    .page-resources-latest-gaming-trends__hero-section {
        padding: 40px 15px;
    }

    .page-resources-latest-gaming-trends__hero-title {
        font-size: 2.2em;
    }

    .page-resources-latest-gaming-trends__hero-description {
        font-size: 1em;
    }

    .page-resources-latest-gaming-trends__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-resources-latest-gaming-trends__btn-primary,
    .page-resources-latest-gaming-trends__btn-secondary,
    .page-resources-latest-gaming-trends__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-latest-gaming-trends__section,
    .page-resources-latest-gaming-trends__container,
    .page-resources-latest-gaming-trends__hero-cta-buttons,
    .page-resources-latest-gaming-trends__cta-buttons-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-latest-gaming-trends__section {
        padding: 50px 15px;
    }

    .page-resources-latest-gaming-trends__section-title {
        font-size: 1.8em;
    }

    .page-resources-latest-gaming-trends__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-resources-latest-gaming-trends__grid-layout,
    .page-resources-latest-gaming-trends__game-cards,
    .page-resources-latest-gaming-trends__factors-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-resources-latest-gaming-trends__grid-item,
    .page-resources-latest-gaming-trends__game-card,
    .page-resources-latest-gaming-trends__factor-item {
        padding: 20px;
    }

    .page-resources-latest-gaming-trends__item-title,
    .page-resources-latest-gaming-trends__card-title {
        font-size: 1.5em;
    }

    /* Mobile image responsive */
    .page-resources-latest-gaming-trends img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important; /* Remove min-height for mobile if it causes issues */
        min-width: unset !important; /* Remove min-width for mobile if it causes issues */
    }
    
    .page-resources-latest-gaming-trends__cta-bottom {
        padding: 40px 15px;
    }

    .page-resources-latest-gaming-trends__cta-buttons-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-latest-gaming-trends__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources-latest-gaming-trends__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources-latest-gaming-trends__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources-latest-gaming-trends__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources-latest-gaming-trends__faq-item.active .page-resources-latest-gaming-trends__faq-answer {
        padding: 15px !important;
    }
}