:root {
    --accent-color: #FFD48A;
}

.brown-page {
    --bs-body-color: #F6F1E9;
    /* chữ chính – trắng ấm */
    --bs-heading-color: #FFFFFF;
    /* heading */
    --bs-link-color: var(--accent-color);
    --bs-link-hover-color: #FFFFFF;
    --bs-secondary-color: #EADBC8;
    /* dùng cho *-emphasis */
    color: var(--bs-body-color);
}

.brown-page h1,
.brown-page h2,
.brown-page h3,
.brown-page h4,
.brown-page h5,
.brown-page h6 {
    color: var(--bs-heading-color);
}

.brown-page a {
    color: var(--bs-link-color);
    text-decoration-color: rgba(255, 212, 138, .55);
}

.brown-page a:hover {
    color: var(--bs-link-hover-color);
    text-decoration-color: currentColor;
}

.brown-page .lead,
.brown-page .content-html {
    color: var(--bs-body-color);
}

.brown-page .text-secondary-emphasis {
    color: var(--bs-secondary-color) !important;
}

.section-bg,
.testimonial-card {
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
    backdrop-filter: blur(2px);
}

/* Carousel khung ảnh */
#postImageCarousel {
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .40);
}

#postImageCarousel .carousel-inner img {
    border-radius: 14px;
}

/* Carousel indicators testimonial */
.testimonial-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6b7280;
}

.testimonial-carousel .carousel-indicators .active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--accent-color);
}

/* Ảnh carousel tỉ lệ 4:3 */
.carousel-item img {
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* Form */
.form-label {
    color: #d1d5db;
}

.form-control {
    background-color: rgba(17, 24, 39, .7) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    color: #fff;
    border-radius: 12px;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 .2rem rgba(255, 212, 138, .25);
}

.btn-brand-orange {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.btn-brand-orange:hover {
    background-color: #c26a05;
    border-color: #c26a05;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}

/* Css for content */
/* Ảnh trong nội dung CKEditor */
.content-html img,
.content-html .ratio {
    height: auto;
    display: block;
    margin: 1rem auto;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

.content-html img {
    max-width: 80%;
}

.content-html .ratio {
    max-width: 60%;
}

/* Tiêu đề có underline đẹp */
.section-bg>h2,
.content-html h2 {
    position: relative;
    display: inline-block;
}

.section-bg>h2::after,
.content-html h2::after {
    content: "";
    display: block;
    height: 3px;
    width: 140px;
    margin: .6rem auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-color), rgba(255, 255, 255, 0));
    opacity: .95;
}

/* Heading phụ h3 kẻ mảnh */
.content-html h3 {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding-bottom: .35rem;
    margin-bottom: .75rem;
}

/* ============ Bảng CKEditor: nền sáng, chữ tối ============ */
.content-html table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFFFFF !important;
    color: #2B1D14 !important;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0;
}

.content-html thead th {
    background: #F6EFE7 !important;
    color: #2B1D14 !important;
    font-weight: 700;
    padding: .9rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    white-space: nowrap;
}

.content-html tbody td {
    color: #2B1D14 !important;
    background: #FFFFFF !important;
    padding: .8rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
    vertical-align: top;
}

.content-html tbody tr:nth-child(even) td {
    background: #FAF7F2 !important;
}

.content-html tbody tr:hover td {
    background: #F3EEE6 !important;
}

.content-html table a {
    color: #8B4513 !important;
    text-decoration-color: rgba(139, 69, 19, .45);
}

.content-html table a:hover {
    color: #4B2A0F !important;
    text-decoration-color: currentColor;
}

.content-html table td *,
.content-html table th * {
    color: inherit !important;
    background: transparent !important;
}

@media (max-width:768px) {
    .content-html table {
        display: block;
        overflow-x: auto;
    }
}

/* Css for section custommer comments */
.comment-list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px; 
}

.comment-item {
    line-height: 1.5;
}

/* Avatar */
.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #495057;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
}

/* Rating */
.comment-rating i {
    font-size: 14px;
    margin-right: 2px;
}

/* Comment text */
.comment-text {
    font-size: 15px;
    word-break: break-word;
}

/* Mobile tối ưu */
@media (max-width: 576px) {
    .avatar-circle {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .comment-list {
        max-height: 300px;
    }

    .comment-text {
        font-size: 14px;
    }
}
