/* style/resources-beginner-guide.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

.page-resources-beginner-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
}

.page-resources-beginner-guide .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-resources-beginner-guide .hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: var(--text-color-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources-beginner-guide .hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-beginner-guide .hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-resources-beginner-guide .hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-beginner-guide .cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-color-dark);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-resources-beginner-guide .cta-button:hover {
    background: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-beginner-guide .cta-button.primary {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.page-resources-beginner-guide .cta-button.primary:hover {
    background: #0056b3;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-beginner-guide .cta-button.secondary {
    background: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-resources-beginner-guide .cta-button.secondary:hover {
    background: #e0a800;
}

.page-resources-beginner-guide .cta-button.large {
    padding: 18px 45px;
    font-size: 1.2em;
}

/* General Section Styling */
.page-resources-beginner-guide section {
    padding: 60px 0;
}

.page-resources-beginner-guide .bg-light {
    background-color: var(--bg-light);
}

.page-resources-beginner-guide .section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-beginner-guide .section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color-dark);
}

.page-resources-beginner-guide .content-block {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
}

.page-resources-beginner-guide .content-block:nth-of-type(even) {
    flex-direction: row-reverse;
}

.page-resources-beginner-guide .content-image {
    flex: 1;
    max-width: 50%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: auto;
    object-fit: cover;
    min-width: 250px; /* Ensure minimum size */
    min-height: 250px; /* Ensure minimum size */
}

.page-resources-beginner-guide .content-block p {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-resources-beginner-guide .content-block .right-aligned {
    margin-left: 30px;
    margin-right: 0;
}

/* Step-by-Step Guide */
.page-resources-beginner-guide .step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources-beginner-guide .step-item {
    background: var(--text-color-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-resources-beginner-guide .step-item:hover {
    transform: translateY(-10px);
}

.page-resources-beginner-guide .step-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-resources-beginner-guide .step-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources-beginner-guide .step-item p {
    font-size: 1em;
    color: #555;
}

/* Ordered List */
.page-resources-beginner-guide .ordered-list {
    list-style: decimal;
    padding-left: 25px;
    margin: 30px auto;
    max-width: 800px;
    font-size: 1.1em;
}

.page-resources-beginner-guide .ordered-list li {
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.page-resources-beginner-guide .ordered-list li strong {
    color: var(--primary-color);
}

/* Game Grid */
.page-resources-beginner-guide .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources-beginner-guide .game-card {
    background: var(--text-color-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-beginner-guide .game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-beginner-guide .game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-resources-beginner-guide .game-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
}

.page-resources-beginner-guide .game-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-beginner-guide .game-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.page-resources-beginner-guide .game-description {
    font-size: 0.95em;
    color: #666;
    padding: 0 15px 20px;
}

/* Promotion Grid */
.page-resources-beginner-guide .promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources-beginner-guide .promotion-card {
    background: var(--text-color-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-beginner-guide .promotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-beginner-guide .promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-resources-beginner-guide .promotion-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin: 20px 15px 10px;
}

.page-resources-beginner-guide .promotion-description {
    font-size: 0.95em;
    color: #666;
    padding: 0 15px 20px;
}

/* Custom List (for support) */
.page-resources-beginner-guide .custom-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-resources-beginner-guide .custom-list li {
    background: var(--bg-light);
    margin-bottom: 10px;
    padding: 12px 20px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1.1em;
    color: var(--text-color-dark);
}

/* FAQ Section */
.page-resources-beginner-guide .faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--text-color-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: var(--bg-light);
    padding: 0 25px;
    border-top: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-color-dark);
    font-size: 1.05em;
}

/* Conclusion Section */
.page-resources-beginner-guide .section-conclusion {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    color: var(--text-color-light);
}

.page-resources-beginner-guide .section-conclusion .section-title {
    color: var(--text-color-light);
    font-size: 2.8em;
}

.page-resources-beginner-guide .section-conclusion .section-subtitle {
    color: #e0e0e0;
    margin-bottom: 30px;
}

.page-resources-beginner-guide .section-conclusion p a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}

.page-resources-beginner-guide .section-conclusion p a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-beginner-guide .hero-title {
        font-size: 2.5em;
    }
    .page-resources-beginner-guide .hero-description {
        font-size: 1.1em;
    }
    .page-resources-beginner-guide .section-title {
        font-size: 2em;
    }
    .page-resources-beginner-guide .content-block {
        flex-direction: column;
        text-align: center;
    }
    .page-resources-beginner-guide .content-block:nth-of-type(even) {
        flex-direction: column;
    }
    .page-resources-beginner-guide .content-image {
        max-width: 80%;
        margin-bottom: 20px;
    }
    .page-resources-beginner-guide .content-block .right-aligned {
        margin-left: auto;
        margin-right: auto;
    }
    .page-resources-beginner-guide .game-grid, .page-resources-beginner-guide .promotion-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources-beginner-guide .hero-section {
        padding: 60px 0;
    }
    .page-resources-beginner-guide .hero-title {
        font-size: 2em;
    }
    .page-resources-beginner-guide .hero-description {
        font-size: 1em;
    }
    .page-resources-beginner-guide .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources-beginner-guide section {
        padding: 40px 0;
    }
    .page-resources-beginner-guide .section-title {
        font-size: 1.8em;
    }
    .page-resources-beginner-guide .section-subtitle {
        font-size: 1em;
    }
    .page-resources-beginner-guide .step-by-step {
        grid-template-columns: 1fr;
    }
    .page-resources-beginner-guide .content-image {
        max-width: 90%;
    }
    .page-resources-beginner-guide .ordered-list {
        font-size: 1em;
    }
    .page-resources-beginner-guide .game-grid, .page-resources-beginner-guide .promotion-grid {
        grid-template-columns: 1fr;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-resources-beginner-guide .section-conclusion .section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 480px) {
    .page-resources-beginner-guide .hero-title {
        font-size: 1.8em;
    }
    .page-resources-beginner-guide .hero-description {
        font-size: 0.9em;
    }
    .page-resources-beginner-guide .cta-button {
        width: 100%;
        max-width: 280px;
    }
    .page-resources-beginner-guide .section-title {
        font-size: 1.5em;
    }
    .page-resources-beginner-guide .step-item {
        padding: 20px;
    }
    .page-resources-beginner-guide .game-card, .page-resources-beginner-guide .promotion-card {
        margin: 0 10px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 18px;
    }
}