.page-terms-conditions {
    background-color: #0A0A0A; /* Custom background color */
    color: #FFF6D6; /* Custom text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px;
}

.page-terms-conditions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as body handles header offset */
    margin-bottom: 40px;
    text-align: center;
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #111111; /* Card BG */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border color */
    transform: translateY(-50px); /* Lift content over image slightly */
    position: relative;
    z-index: 1;
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 3.5vw, 2.8em); /* Responsive H1 font size */
    color: #F2C14E; /* Main brand color */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

.page-terms-conditions__description {
    font-size: 1.1em;
    color: #FFF6D6; /* Main text color */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* For responsive buttons */
    word-wrap: break-word; /* For responsive buttons */
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #111111; /* Dark text on bright button */
    border: none;
    margin-right: 15px;
}

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

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Main brand color */
    border: 2px solid #F2C14E; /* Main brand color border */
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #F2C14E;
    color: #111111; /* Dark text on brand color hover */
    transform: translateY(-2px);
}

.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: -20px auto 40px auto; /* Adjust margin to pull content up */
    padding: 0 20px;
}

.page-terms-conditions__container {
    background-color: #111111; /* Card BG */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border color */
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #F2C14E; /* Main brand color */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #3A2A12; /* Border color */
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 1.6em;
    color: #FFD36B; /* Auxiliary brand color */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions__text-block {
    margin-bottom: 20px;
    color: #FFF6D6; /* Main text color */
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #FFF6D6; /* Main text color */
}

.page-terms-conditions__list-item {
    margin-bottom: 10px;
    color: #FFF6D6; /* Main text color */
}

.page-terms-conditions__list-item strong {
    color: #FFD36B; /* Auxiliary brand color for emphasis */
}

.page-terms-conditions__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
    max-height: 450px; /* Max height for content images */
    border: 1px solid #3A2A12; /* Border color */
}

/* Ensure all images follow the general rules */
.page-terms-conditions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-content {
        max-width: 760px;
        padding: 25px 15px;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.8em, 3.8vw, 2.5em);
    }

    .page-terms-conditions__description {
        font-size: 1em;
    }

    .page-terms-conditions__content-area {
        max-width: 960px;
        padding: 0 15px;
    }

    .page-terms-conditions__container {
        padding: 30px;
    }

    .page-terms-conditions__section-title {
        font-size: 2em;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    /* HERO Chủ đề chính */
    .page-terms-conditions__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
        margin-bottom: 20px;
    }

    .page-terms-conditions__hero-image {
        max-height: 300px !important;
    }

    .page-terms-conditions__hero-content {
        transform: translateY(-30px);
        padding: 20px 15px;
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
        box-sizing: border-box;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em) !important; /* Ensure H1 is not too large */
        margin-bottom: 10px;
    }

    .page-terms-conditions__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    /* Nút và vùng chứa nút */
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-right: 0 !important; /* Remove right margin for stacking */
        margin-bottom: 15px; /* Add bottom margin for stacking */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-terms-conditions__hero-content .page-terms-conditions__btn-primary {
        margin-bottom: 10px;
    }

    .page-terms-conditions__content-area {
        margin-top: -10px; /* Adjust margin to pull content up */
        padding: 0 15px;
    }

    .page-terms-conditions__container {
        padding: 20px 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-terms-conditions__text-block {
        font-size: 0.9em;
    }

    .page-terms-conditions__list {
        margin-left: 20px;
        font-size: 0.9em;
    }

    .page-terms-conditions__list-item {
        margin-bottom: 8px;
    }

    /* Hình ảnh và vùng chứa chung */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        min- /* Adjust min height for mobile */
        max-height: 300px !important; /* Adjust max height for mobile */
    }

    /* Không có các quy tắc cụ thể cho khung văn bản dài màu vàng, băng chuyền trò chơi, lưới thương hiệu, thẻ blog vì đây không phải là trang chỉ mục */
}

/* Đảm bảo các vùng chứa nội dung cũng xử lý tràn trên thiết bị di động */
.page-terms-conditions__content-area,
.page-terms-conditions__container,
.page-terms-conditions__hero-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal scroll */
}