/* style/index-choang-code-newbie-guide.css */

/* Custom properties for colors */
:root {
    --choang-code-primary: #11A84E;
    --choang-code-secondary: #22C768;
    --choang-code-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --choang-code-card-bg: #11271B;
    --choang-code-background: #08160F;
    --choang-code-text-main: #F2FFF6;
    --choang-code-text-secondary: #A7D9B8;
    --choang-code-border: #2E7A4E;
    --choang-code-glow: #57E38D;
    --choang-code-gold: #F2C14E;
    --choang-code-divider: #1E3A2A;
    --choang-code-deep-green: #0A4B2C;
}

/* Base styles for the page content wrapper */
.page-index-choang-code-newbie-guide {
    background-color: var(--choang-code-background); /* Deep Green */
    color: var(--choang-code-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 0; /* body already handles padding-top from header */
}

/* Section styling */
.page-index-choang-code-newbie-guide__section-title {
    font-size: 2.5em;
    color: var(--choang-code-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-index-choang-code-newbie-guide__sub-title {
    font-size: 1.8em;
    color: var(--choang-code-gold); /* Using gold for sub-titles for accent */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index-choang-code-newbie-guide__text-block p {
    margin-bottom: 15px;
    color: var(--choang-code-text-main);
}

.page-index-choang-code-newbie-guide__text-block strong {
    color: var(--choang-code-gold);
}

.page-index-choang-code-newbie-guide__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--choang-code-text-main);
}

.page-index-choang-code-newbie-guide__list li {
    margin-bottom: 8px;
    color: var(--choang-code-text-secondary); /* Slightly lighter for list items */
}

.page-index-choang-code-newbie-guide__numbered-list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--choang-code-text-main);
}

.page-index-choang-code-newbie-guide__numbered-list li {
    margin-bottom: 8px;
    color: var(--choang-code-text-secondary);
}

/* Container for content width */
.page-index-choang-code-newbie-guide__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-index-choang-code-newbie-guide__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--choang-code-background);
}

.page-index-choang-code-newbie-guide__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 40px;
}

.page-index-choang-code-newbie-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-choang-code-newbie-guide__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-index-choang-code-newbie-guide__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size for H1 */
    color: var(--choang-code-text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-index-choang-code-newbie-guide__hero-description {
    font-size: 1.2em;
    color: var(--choang-code-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-choang-code-newbie-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Buttons */
.page-index-choang-code-newbie-guide__btn-primary,
.page-index-choang-code-newbie-guide__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-index-choang-code-newbie-guide__btn-primary {
    background: var(--choang-code-button-gradient);
    color: #ffffff; /* White text for gradient button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-choang-code-newbie-guide__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-index-choang-code-newbie-guide__btn-secondary {
    background-color: transparent;
    color: var(--choang-code-primary); /* Primary green text */
    border: 2px solid var(--choang-code-primary);
}

.page-index-choang-code-newbie-guide__btn-secondary:hover {
    background-color: var(--choang-code-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-choang-code-newbie-guide__btn-inline {
    margin-top: 20px;
    margin-right: 15px; /* Spacing for multiple inline buttons */
}

/* Content Sections */
.page-index-choang-code-newbie-guide__content-section {
    padding: 60px 0;
}

.page-index-choang-code-newbie-guide__dark-bg {
    background-color: var(--choang-code-card-bg); /* Darker background for contrast sections */
}

.page-index-choang-code-newbie-guide__image-content {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-index-choang-code-newbie-guide__faq-section {
    padding: 60px 0;
    background-color: var(--choang-code-background);
}

.page-index-choang-code-newbie-guide__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-index-choang-code-newbie-guide__faq-item {
    background-color: var(--choang-code-card-bg);
    border: 1px solid var(--choang-code-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index-choang-code-newbie-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--choang-code-text-main);
    background-color: var(--choang-code-deep-green); /* Slightly darker background for summary */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-index-choang-code-newbie-guide__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-index-choang-code-newbie-guide__faq-question:hover {
    background-color: var(--choang-code-primary); /* Hover effect */
}

.page-index-choang-code-newbie-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--choang-code-gold);
    margin-left: 15px;
}

.page-index-choang-code-newbie-guide__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: var(--choang-code-text-secondary);
    line-height: 1.6;
    max-height: 0; /* For JS-controlled expansion, though details handles it natively */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-index-choang-code-newbie-guide__faq-item[open] .page-index-choang-code-newbie-guide__faq-answer {
    max-height: 500px; /* Sufficient height for expanded content */
}

/* CTA Section */
.page-index-choang-code-newbie-guide__cta-section {
    padding: 80px 0;
    background-color: var(--choang-code-deep-green);
    text-align: center;
}

.page-index-choang-code-newbie-guide__center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure all images are responsive */
.page-index-choang-code-newbie-guide img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-index-choang-code-newbie-guide {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-index-choang-code-newbie-guide__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-index-choang-code-newbie-guide__main-title {
        font-size: 2.2em; /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }

    .page-index-choang-code-newbie-guide__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-index-choang-code-newbie-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-choang-code-newbie-guide__btn-primary,
    .page-index-choang-code-newbie-guide__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index-choang-code-newbie-guide__btn-inline {
        margin-right: 0;
    }

    .page-index-choang-code-newbie-guide__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-index-choang-code-newbie-guide__sub-title {
        font-size: 1.5em;
    }

    .page-index-choang-code-newbie-guide__container,
    .page-index-choang-code-newbie-guide__hero-image-wrapper,
    .page-index-choang-code-newbie-guide__hero-content,
    .page-index-choang-code-newbie-guide__text-block,
    .page-index-choang-code-newbie-guide__faq-list,
    .page-index-choang-code-newbie-guide__cta-section,
    .page-index-choang-code-newbie-guide__content-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-index-choang-code-newbie-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ specific mobile styles */
    .page-index-choang-code-newbie-guide__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-index-choang-code-newbie-guide__faq-answer {
        padding: 0 15px 15px 15px;
    }
}