/* style/support.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không được thêm lại padding-top với biến đó */

/* Biến màu tùy chỉnh - Đảm bảo chúng được định nghĩa trong shared.css hoặc ở đây nếu không phải toàn cục */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D; /* RGB: 87, 227, 141 */
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-support {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--background-color); /* #08160F from shared */
    line-height: 1.6;
    padding-bottom: 60px; /* Đảm bảo khoảng trống phía trên footer */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Khoảng đệm nhỏ phía trên, body xử lý --header-offset */
    padding-bottom: 60px;
    background-color: var(--background-color);
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Khớp chiều rộng container */
    margin-bottom: 30px;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-support__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.page-support__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 clamp cho khả năng phản hồi */
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-support__description {
    font-size: 1.1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
}

/* Tiêu đề phần */
.page-support__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--text-main); /* #F2FFF6 */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

/* Khối văn bản */
.page-support__text-block {
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 20px;
    text-align: justify;
}

/* Nút */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Cho phép ngắt dòng văn bản */
    word-wrap: break-word; /* Cho phép ngắt dòng văn bản */
}

.page-support__btn-primary {
    background: var(--button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
    color: var(--text-main); /* #F2FFF6 */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4); /* Sử dụng RGB từ --glow-color */
}

.page-support__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.6);
}

.page-support__btn-secondary {
    background-color: transparent;
    color: var(--primary-color); /* #11A84E */
    border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main); /* #F2FFF6 */
}

.page-support__link {
    color: var(--gold-color); /* #F2C14E */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-support__link:hover {
    color: var(--glow-color); /* #57E38D */
    text-decoration: underline;
}

/* Kiểu thẻ */
.page-support__card {
    background-color: var(--card-bg); /* #11271B */
    border: 1px solid var(--border-color); /* #2E7A4E */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main); /* #F2FFF6 */
}

/* Phần Kênh Liên hệ */
.page-support__contact-channels {
    padding: 60px 0;
    background-color: var(--background-color); /* #08160F */
}

.page-support__channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-support__channel-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__channel-icon {
    width: 100%; /* Đảm bảo hình ảnh lớn, không phải biểu tượng nhỏ */
    max-width: 200px; /* Ví dụ, điều chỉnh khi cần */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-support__channel-title {
    font-size: 1.4rem;
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 10px;
}

.page-support__channel-description {
    font-size: 0.95rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 25px;
    flex-grow: 1; /* Đẩy nút xuống dưới cùng */
}

/* Phần Câu hỏi thường gặp */
.page-support__faq-section {
    padding: 60px 0;
    background-color: var(--background-color); /* #08160F */
}

.page-support__faq-list {
    margin-top: 40px;
}

.page-support__faq-item {
    margin-bottom: 15px;
    overflow: hidden; /* Dành cho thẻ details */
}

.page-support__faq-item summary {
    list-style: none; /* Ẩn điểm đánh dấu mặc định */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--deep-green); /* #0A4B2C */
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.page-support__faq-item summary::-webkit-details-marker {
    display: none; /* Ẩn điểm đánh dấu mặc định cho webkit */
}

.page-support__faq-item summary:hover {
    background-color: var(--primary-color); /* #11A84E */
}

.page-support__faq-qtext {
    flex-grow: 1;
}

.page-support__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color); /* #F2C14E */
}

.page-support__faq-item[open] .page-support__faq-toggle {
    content: "−";
}

.page-support__faq-answer {
    padding: 20px;
    background-color: rgba(17, 39, 27, 0.7); /* Sử dụng RGB từ --card-bg */
    border-top: 1px solid var(--divider-color); /* #1E3A2A */
    color: var(--text-secondary); /* #A7D9B8 */
    font-size: 0.95rem;
    line-height: 1.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.page-support__faq-answer p {
    margin-bottom: 15px;
}

.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Phần Hướng dẫn */
.page-support__guides-section {
    padding: 60px 0;
    background-color: var(--deep-green); /* #0A4B2C */
}

.page-support__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-support__guide-card {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.page-support__guide-image {
    width: 100%;
    height: 200px; /* Chiều cao cố định để nhất quán */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-support__guide-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    flex-grow: 1;
}

.page-support__guide-title a {
    color: var(--text-main); /* #F2FFF6 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__guide-title a:hover {
    color: var(--gold-color); /* #F2C14E */
}

.page-support__guide-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 20px;
}

/* Phần Kêu gọi hành động (CTA) */
.page-support__cta-section {
    text-align: center;
    padding: 50px 0;
    margin-top: 40px;
    border-top: 1px solid var(--divider-color); /* #1E3A2A */
}

.page-support__cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 15px;
}

.page-support__cta-description {
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Phần Cờ bạc có trách nhiệm */
.page-support__responsible-gambling {
    padding: 60px 0;
    background-color: var(--background-color); /* #08160F */
}

/* Phần Phản hồi */
.page-support__feedback-section {
    padding: 60px 0;
    background-color: var(--deep-green); /* #0A4B2C */
    text-align: center;
}

/* Lớp tiện ích cho màu nền */
.page-support__dark-section {
    background-color: var(--deep-green); /* #0A4B2C */
    color: var(--text-main); /* #F2FFF6 */
}
.page-support__light-section {
    background-color: #ffffff; /* Ví dụ cho phần sáng nếu cần */
    color: #333333;
}


/* Kiểu phản hồi */
@media (max-width: 1024px) {
    .page-support__hero-content {
        max-width: 700px;
    }
    .page-support__channels-grid,
    .page-support__guides-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-support__hero-section {
        padding-bottom: 40px;
    }

    .page-support__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-support__description {
        font-size: 1rem;
    }

    .page-support__section-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
        margin-bottom: 30px;
    }

    .page-support__text-block {
        font-size: 0.95rem;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        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;
        margin-bottom: 10px; /* Khoảng cách giữa các nút xếp chồng */
    }

    .page-support__button-group {
        display: flex;
        flex-direction: column; /* Xếp chồng các nút theo chiều dọc */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-support__channels-grid,
    .page-support__guides-grid {
        grid-template-columns: 1fr; /* Bố cục một cột */
        gap: 20px;
    }

    .page-support__channel-icon {
        max-width: 150px; /* Điều chỉnh kích thước cho thiết bị di động */
    }

    .page-support__guide-image {
        height: 180px; /* Điều chỉnh chiều cao cho thiết bị di động */
    }

    .page-support__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }

    .page-support__faq-answer {
        padding: 15px;
    }

    .page-support__cta-section {
        padding: 30px 0;
    }

    .page-support__cta-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    /* Khả năng phản hồi của hình ảnh */
    .page-support img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-support__hero-image-wrapper,
    .page-support__channel-item,
    .page-support__guide-card,
    .page-support__card,
    .page-support__section,
    .page-support__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

    /* Khả năng phản hồi của video (nếu có, mặc dù không có rõ ràng trong nội dung này) */
    .page-support video,
    .page-support__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    .page-support__video-section {
        padding-top: 10px !important; /* body đã xử lý --header-offset */
    }
}

@media (max-width: 480px) {
    .page-support__btn-primary,
    .page-support__btn-secondary {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}