/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
.accordion-content-wrapper h3{
    margin-bottom: .5em;
}

/***************************
        Main Content
***************************/

/* Chung */
.dau{
    padding-right: 15px;
}

.accordion-content-wrapper{
    padding-top: 5px !important;
}

.accordion-title-wrapper{
    text-transform: uppercase;
}

.brx-open .accordion-title-wrapper{
    margin-bottom: 8px !important;
}

.brx-open .accordion-content-wrapper{
    padding-right: 12px !important;
}

.brxe-button{
    padding: 10px 20px;
    border-radius: 5px;
    background-image: linear-gradient(180deg, #f18800 0%, #FF5722 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border: none;
    outline: none;
    cursor: pointer;
    animation: scale 1s infinite alternate;
    width: 60%;
    margin-top: 20px;
    margin-bottom: 20px;
}

@keyframes scale {
    0% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Card level 0 */
.card-level-0 .brxe-heading{
    font-size: 1.3em;
}

.card-level-0 .accordion-title-wrapper{
    background: white;
    padding: 20px;
    border: 2px solid #30A7B7;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
}

.card-level-0 .accordion-title-wrapper:hover, .card-level-0 .brx-open > .accordion-title-wrapper{
    background: linear-gradient(130deg, #0E6A70 0%, #44a7b1 100%);
    color: #fff;
}


/* Card level 1 */
.card-level-1, .card-level-2{
    margin-top: 20px;
}

.card-level-1 .accordion-title-wrapper{
    background-color: #f3d392;
    font-size: 12px;
    padding: 15px;
    border: 2px solid #30A7B7;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 8px;
}

.card-level-1 .accordion-title-wrapper:hover, .card-level-1 .brx-open > .accordion-title-wrapper{
    background: #30A7B7;
}


/* Card level 2 */
.card-level-2 .accordion-title-wrapper{
    background-color: #ffe7b7;
}



/* Áp dụng hiệu ứng lên khung thẻ chứa ảnh của Bricks */
a.brxe-image.bricks-lightbox {
    display: inline-block;
    background-color: #ffffff; /* Màu nền trắng tạo viền giấy */
    padding: 16px; /* Độ dày của viền trắng xung quanh ảnh */
    
    /* Hiệu ứng đổ bóng mượt lan tỏa đều xuống dưới */
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.25); 
    
    /* Đảm bảo khung co giãn chuẩn theo kích thước ảnh */
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    margin: 20px;
}

/* Đảm bảo ảnh bên trong hiển thị vừa vặn không bị lỗi khoảng cách */
a.brxe-image.bricks-lightbox img {
    display: block;
    width: 100%;
    height: auto;
}


/***************************
        RESPONSIVE
***************************/

/* 1. Màn hình máy tính lớn (Desktop - Cài đặt gốc) */
/* Áp dụng cho mọi màn hình lớn hơn 1279px */
@media (min-width: 1280px) {
    /* Viết CSS cho Desktop tại đây */
}

/* 2. Máy tính bảng màn hình ngang (Tablet Landscape) */
/* Áp dụng cho màn hình từ 992px đến 1279px */
@media (max-width: 1279px) {
    .brxe-image.bricks-lightbox {
        padding: 12px; /* Ví dụ: Giảm viền trắng trên tablet */
    }
}

/* 3. Máy tính bảng màn hình dọc (Tablet Portrait) */
/* Áp dụng cho màn hình từ 768px đến 991px */
@media (max-width: 991px) {
    .brxe-image.bricks-lightbox {
        padding: 10px;
        
    }
}

/* 4. Điện thoại màn hình ngang (Mobile Landscape) */
/* Áp dụng cho màn hình từ 479px đến 767px */
@media (max-width: 767px) {
    .dau{
        padding-right: 8px;
    }

    .card-level-0 .brxe-heading{
        font-size: 16px;
    }

    .brxe-image.bricks-lightbox {
        padding: 8px;
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2); /* Giảm độ đổ bóng */
        margin: 10px 0px 20px 0px !important; 
    }
}

/* 5. Điện thoại màn hình dọc (Mobile Portrait) */
/* Áp dụng cho màn hình nhỏ hơn 478px */
@media (max-width: 478px) {
    .brxe-image.bricks-lightbox {
        padding: 6px;
    }

    .card-level-0 .accordion-title-wrapper{
        padding: 15px 10px;
    }

    .card-level-0 .accordion-title-wrapper .brxe-icon{
        font-size: 1.4em !important;
    }

    .brxe-button{
        font-size: 16px;
    }
}