/* style/blog-juan-game-strategy.css */

/* Variables based on Black Gold theme */
:root {
    --juan-primary-color: #F2C14E; /* Main color */
    --juan-secondary-color: #FFD36B; /* Accent/Glow */
    --juan-bg-color: #0A0A0A; /* Page background */
    --juan-card-bg: #111111; /* Card background */
    --juan-text-main: #FFF6D6; /* Main text color */
    --juan-border-color: #3A2A12; /* Border color */
    --juan-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
}

/* Base styles for the page content */
.page-blog-juan-game-strategy {
    background-color: var(--juan-bg-color);
    color: var(--juan-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Ensure body padding for fixed header is handled by shared.css */
/* First section should not duplicate header offset */
.page-blog-juan-game-strategy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
}

.page-blog-juan-game-strategy__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-blog-juan-game-strategy__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog-juan-game-strategy__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-blog-juan-game-strategy__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--juan-secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Soft glow */
}

.page-blog-juan-game-strategy__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--juan-text-main);
}

.page-blog-juan-game-strategy__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-blog-juan-game-strategy__btn-primary,
.page-blog-juan-game-strategy__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't exceed container width */
}

.page-blog-juan-game-strategy__btn-primary {
    background: var(--juan-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-blog-juan-game-strategy__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-blog-juan-game-strategy__btn-secondary {
    background: #ffffff;
    color: var(--juan-primary-color);
    border: 2px solid var(--juan-primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.page-blog-juan-game-strategy__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--juan-primary-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.page-blog-juan-game-strategy__section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-blog-juan-game-strategy__dark-section {
    background-color: var(--juan-card-bg); /* Darker background for contrast sections */
    padding: 60px 20px;
    margin-bottom: 40px;
}

.page-blog-juan-game-strategy__section-title {
    font-size: 2.5em;
    color: var(--juan-primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-blog-juan-game-strategy__paragraph {
    font-size: 1.1em;
    margin-bottom: 25px;
    text-align: justify;
    color: var(--juan-text-main);
}

.page-blog-juan-game-strategy__feature-card,
.page-blog-juan-game-strategy__strategy-card,
.page-blog-juan-game-strategy__management-card,
.page-blog-juan-game-strategy__promotion-card {
    background-color: var(--juan-card-bg);
    border: 1px solid var(--juan-border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--juan-text-main);
}

.page-blog-juan-game-strategy__feature-card:hover,
.page-blog-juan-game-strategy__strategy-card:hover,
.page-blog-juan-game-strategy__management-card:hover,
.page-blog-juan-game-strategy__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-blog-juan-game-strategy__feature-image,
.page-blog-juan-game-strategy__strategy-image,
.page-blog-juan-game-strategy__promotion-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
}

.page-blog-juan-game-strategy__feature-title,
.page-blog-juan-game-strategy__mechanic-title,
.page-blog-juan-game-strategy__strategy-title,
.page-blog-juan-game-strategy__management-title,
.page-blog-juan-game-strategy__promotion-title,
.page-blog-juan-game-strategy__list-title,
.page-blog-juan-game-strategy__faq-title {
    font-size: 1.8em;
    color: var(--juan-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog-juan-game-strategy__feature-description,
.page-blog-juan-game-strategy__mechanic-description,
.page-blog-juan-game-strategy__strategy-description,
.page-blog-juan-game-strategy__management-description,
.page-blog-juan-game-strategy__promotion-description,
.page-blog-juan-game-strategy__list-description,
.page-blog-juan-game-strategy__faq-text {
    font-size: 1em;
    color: var(--juan-text-main);
    text-align: justify;
}

.page-blog-juan-game-strategy__game-mechanics-grid,
.page-blog-juan-game-strategy__strategy-grid,
.page-blog-juan-game-strategy__management-cards,
.page-blog-juan-game-strategy__promotion-cards {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-blog-juan-game-strategy__advanced-tips-list {
    list-style: none;
    padding: 0;
}

.page-blog-juan-game-strategy__list-item {
    background-color: var(--juan-card-bg);
    border: 1px solid var(--juan-border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-blog-juan-game-strategy__list-item:hover {
    transform: translateX(10px);
}

/* FAQ Section */
.page-blog-juan-game-strategy__faq-list {
    margin-top: 30px;
}

.page-blog-juan-game-strategy__faq-item {
    background-color: var(--juan-card-bg);
    border: 1px solid var(--juan-border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--juan-text-main);
}

.page-blog-juan-game-strategy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--juan-card-bg);
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-blog-juan-game-strategy__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1); /* Subtle hover effect */
}

.page-blog-juan-game-strategy__faq-item.active .page-blog-juan-game-strategy__faq-question {
    border-bottom-color: var(--juan-border-color);
}

.page-blog-juan-game-strategy__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--juan-primary-color);
    transition: transform 0.3s ease;
}

.page-blog-juan-game-strategy__faq-item.active .page-blog-juan-game-strategy__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-blog-juan-game-strategy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(17, 17, 17, 0.8); /* Slightly lighter background for answer */
}

.page-blog-juan-game-strategy__faq-item.active .page-blog-juan-game-strategy__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-blog-juan-game-strategy__faq-text {
    padding-top: 10px;
    color: var(--juan-text-main);
}

.page-blog-juan-game-strategy__conclusion-section {
    text-align: center;
    padding-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog-juan-game-strategy__hero-content {
        padding: 30px;
    }

    .page-blog-juan-game-strategy__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-blog-juan-game-strategy__section-title {
        font-size: 2em;
    }

    .page-blog-juan-game-strategy__feature-title,
    .page-blog-juan-game-strategy__mechanic-title,
    .page-blog-juan-game-strategy__strategy-title,
    .page-blog-juan-game-strategy__management-title,
    .page-blog-juan-game-strategy__promotion-title,
    .page-blog-juan-game-strategy__list-title,
    .page-blog-juan-game-strategy__faq-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-blog-juan-game-strategy {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-blog-juan-game-strategy__hero-section {
        padding: 10px 15px 40px;
    }

    .page-blog-juan-game-strategy__hero-content {
        padding: 20px;
    }

    .page-blog-juan-game-strategy__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-blog-juan-game-strategy__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-blog-juan-game-strategy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog-juan-game-strategy__btn-primary,
    .page-blog-juan-game-strategy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-blog-juan-game-strategy__section {
        padding: 40px 15px;
    }

    .page-blog-juan-game-strategy__dark-section {
        padding: 40px 15px;
        margin-bottom: 30px;
    }

    .page-blog-juan-game-strategy__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-blog-juan-game-strategy__paragraph {
        font-size: 1em;
    }

    .page-blog-juan-game-strategy__feature-card,
    .page-blog-juan-game-strategy__strategy-card,
    .page-blog-juan-game-strategy__management-card,
    .page-blog-juan-game-strategy__promotion-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-blog-juan-game-strategy__feature-image,
    .page-blog-juan-game-strategy__strategy-image,
    .page-blog-juan-game-strategy__promotion-image,
    .page-blog-juan-game-strategy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog-juan-game-strategy__section,
    .page-blog-juan-game-strategy__card,
    .page-blog-juan-game-strategy__container,
    .page-blog-juan-game-strategy__game-mechanics-grid,
    .page-blog-juan-game-strategy__strategy-grid,
    .page-blog-juan-game-strategy__management-cards,
    .page-blog-juan-game-strategy__promotion-cards,
    .page-blog-juan-game-strategy__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog-juan-game-strategy__feature-title,
    .page-blog-juan-game-strategy__mechanic-title,
    .page-blog-juan-game-strategy__strategy-title,
    .page-blog-juan-game-strategy__management-title,
    .page-blog-juan-game-strategy__promotion-title,
    .page-blog-juan-game-strategy__list-title,
    .page-blog-juan-game-strategy__faq-title {
        font-size: 1.3em;
    }

    .page-blog-juan-game-strategy__faq-question {
        padding: 15px 20px;
    }

    .page-blog-juan-game-strategy__faq-answer {
        padding: 0 20px;
    }

    .page-blog-juan-game-strategy__faq-item.active .page-blog-juan-game-strategy__faq-answer {
        padding: 10px 20px 20px;
    }
}