/* style/beginner-guide.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

/* Phong cách cơ bản cho trang */
.page-beginner-guide {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

.page-beginner-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Phần Hero */
.page-beginner-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Khoảng đệm nhỏ ở trên cùng vì body đã xử lý khoảng cách của header */
    background-color: #08160F; /* Đảm bảo màu nền cho hero */
}

.page-beginner-guide__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Đảm bảo wrapper hình ảnh không tràn */
    overflow: hidden;
}

.page-beginner-guide__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Yêu cầu kích thước tối thiểu */
    min-height: 200px; /* Yêu cầu kích thước tối thiểu */
}

.page-beginner-guide__hero-content {
    text-align: center;
    padding: 40px 20px;
    background-color: #08160F; /* Nền xanh đậm cho nội dung */
    width: 100%;
    max-width: 800px; /* Giới hạn chiều rộng nội dung */
    box-sizing: border-box;
}

.page-beginner-guide__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Kích thước font phản hồi */
    color: #F2FFF6; /* Text Main */
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-beginner-guide__subtitle {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

/* Nút Kêu gọi hành động */
.page-beginner-guide__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Cho phép xuống dòng trên màn hình nhỏ hơn */
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%; /* Đảm bảo container nút chiếm toàn bộ chiều rộng */
    max-width: 100%; /* Ngăn tràn */
    box-sizing: border-box;
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Đảm bảo nút không tràn */
    white-space: normal; /* Cho phép văn bản xuống dòng */
    word-wrap: break-word; /* Ngắt từ dài */
    text-align: center;
}

.page-beginner-guide__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
}

.page-beginner-guide__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-beginner-guide__btn-secondary {
    background: #11271B; /* Card BG */
    color: #2AD16F; /* Bổ sung cho nút chính */
    border: 2px solid #2AD16F;
}

.page-beginner-guide__btn-secondary:hover {
    background: #2AD16F;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Phong cách chung cho các phần */
.page-beginner-guide__introduction-section,
.page-beginner-guide__step-section,
.page-beginner-guide__promotions-section,
.page-beginner-guide__support-faq-section,
.page-beginner-guide__conclusion-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-beginner-guide__dark-bg {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
}

.page-beginner-guide__section-title {
    font-size: 2.2em;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-beginner-guide__sub-section-title {
    font-size: 1.8em;
    color: #2AD16F; /* Sử dụng màu nổi bật của nút chính cho tiêu đề phụ */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-beginner-guide__text-block {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-beginner-guide__list,
.page-beginner-guide__ordered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #A7D9B8; /* Text Secondary */
}

.page-beginner-guide__ordered-list {
    list-style-type: decimal;
}

.page-beginner-guide__list-item {
    margin-bottom: 10px;
    color: #A7D9B8; /* Text Secondary */
}

.page-beginner-guide__list-item strong {
    color: #F2FFF6; /* Text Main */
}

.page-beginner-guide__nested-list {
    list-style-type: circle;
    margin-left: 20px;
    margin-top: 5px;
}

.page-beginner-guide__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Yêu cầu kích thước tối thiểu */
    min-height: 200px; /* Yêu cầu kích thước tối thiểu */
}

/* Thẻ trò chơi */
.page-beginner-guide__game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-beginner-guide__card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #F2FFF6; /* Text Main */
}

.page-beginner-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__card-title {
    font-size: 1.4em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-beginner-guide__card-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-beginner-guide__card-title a:hover {
    color: #2AD16F; /* Màu nổi bật của nút chính */
}

.page-beginner-guide__card-text {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.5;
}

/* Phần Câu hỏi thường gặp (FAQ) */
.page-beginner-guide__faq-list {
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-beginner-guide__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-beginner-guide__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #F2FFF6; /* Text Main */
    list-style: none; /* Xóa dấu đầu dòng mặc định */
    position: relative;
}

.page-beginner-guide__faq-item summary::-webkit-details-marker {
    display: none; /* Xóa dấu đầu dòng mặc định cho trình duyệt Webkit */
}

.page-beginner-guide__faq-question {
    flex-grow: 1;
    color: #F2FFF6; /* Text Main */
}

.page-beginner-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #2AD16F; /* Màu nổi bật của nút chính */
}

.page-beginner-guide__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.5;
}

/* Phong cách phản hồi */
@media (max-width: 1024px) {
    .page-beginner-guide__container {
        padding: 20px 30px;
    }

    .page-beginner-guide__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }

    .page-beginner-guide__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-beginner-guide__container {
        padding: 20px 15px;
    }

    .page-beginner-guide__hero-content {
        padding: 30px 15px;
    }

    .page-beginner-guide__main-title {
        font-size: clamp(1.6em, 7vw, 2.8em);
    }

    .page-beginner-guide__subtitle {
        font-size: 1em;
    }

    .page-beginner-guide__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-beginner-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-beginner-guide__sub-section-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-beginner-guide__text-block,
    .page-beginner-guide__list-item,
    .page-beginner-guide__card-text,
    .page-beginner-guide__faq-answer {
        font-size: 0.9em;
    }

    .page-beginner-guide__game-cards {
        grid-template-columns: 1fr; /* Bố cục một cột */
    }

    .page-beginner-guide__card {
        padding: 20px;
    }

    .page-beginner-guide__card-title {
        font-size: 1.2em;
    }

    .page-beginner-guide__image {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Khả năng phản hồi của video - mặc dù không có video trên trang này, vẫn giữ quy tắc */
    .page-beginner-guide video,
    .page-beginner-guide__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-beginner-guide__video-section,
    .page-beginner-guide__video-container,
    .page-beginner-guide__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    .page-beginner-guide__video-section {
      padding-top: 10px !important; /* body đã xử lý --header-offset */
    }
    
    .page-beginner-guide__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}