﻿.avn_content .avn_full {
    height: 100%;
}

.section-title {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: #ED1C25;
    transition: color 0.3s ease-in-out, text-decoration 0.3s ease-in-out;
}

    .section-title:hover {
        transform: scale(1.1);
        color: #D0001B;
        cursor: pointer;
    }

.side-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bmi-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
}

.bmi-calc-section {
    border-radius: 5px;
    color: #333;
    background-color: #eeeeee;
    display: flex;
    margin: auto;
    height: 70%;
    width: 100%;
}

    .bmi-calc-section .column-divider {
        position: relative;
    }

        .bmi-calc-section .column-divider::after {
            content: "\f0da"; /* Ký tự mũi tên phải */
            font-family: "Font Awesome 6 Free"; /* Chỉnh font để dùng icon */
            font-weight: 900; /* Đảm bảo sử dụng phiên bản solid */
            position: absolute;
            top: 50%;
            right: -8px; /* Điều chỉnh vị trí */
            transform: translateY(-50%);
            color: red;
            font-size: 20px;
        }

.arrow-right {
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}

.nutrition-section {
    background-color: #d32f2f; /* Màu nền đỏ */
    border: 2px solid red; /* Red border */
    border-radius: 8px; /* Rounded corners */
    height: 100%;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px; /* Đặt kích thước của vòng tròn */
    height: 40px; /* Đặt kích thước của vòng tròn */
    border-radius: 50%; /* Làm cho hình tròn */
    background-color: white; /* Màu nền trắng */
    border: 2px solid red; /* Đường viền màu đỏ */
    color: red; /* Màu của icon */
    font-size: 20px; /* Kích thước của icon */
}

    .carousel-control-prev-icon i, .carousel-control-next-icon i {
        font-size: 18px; /* Điều chỉnh kích thước của icon play */
    }

.carousel-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    padding: 10px 0;
}

    .carousel-title .title {
        font-size: 14px;
        font-family: "bevietnampro-SemiBold"
    }

    .carousel-title .des {
        font-size: 12px;
        line-height: 16px;
        font-family: "bevietnampro-Medium"
    }

.carousel-description {
    font-size: 15px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: justify;
}

.carousel-item {
    align-items: center;
    align-content: center;
    height: 100%;
    min-height: 300px;
    color: #fff;
    border-radius: 15px;
    padding: 15px 30px;
    position: relative; /* Đảm bảo nội dung nằm gọn trong khung */
}

    .carousel-item .d-flex {
        flex-grow: 1;
        justify-content: center;
        align-items: center;
        height: 100%;
        text-align: center;
    }

.carousel-inner {
    height: 100%;
    display: flex;
}

.person-img {
    height: 85px;
    padding-top: 5px;
    padding-bottom: 5px;
}

#status-text {
    height: 20px;
    font-size: 13px;
    text-wrap: auto;
    max-width: 95px;
    line-height: 1;
    color: #ed1c25;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px;
}

.divider-horizontal {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px; /* Độ rộng đường phân cách */
    height: 100%;
    background: linear-gradient(to bottom, #ffffff, #bfc1c7, #ffffff); /* Nhạt dần trên & dưới */
    transform: translateX(-50%); /* Canh giữa */
}

.project-section {
    text-align: center;
    position: relative;
    overflow: hidden; /* Đảm bảo lớp nền không bị tràn */
    height: 100%;
    white-space: nowrap; /* Không cho xuống dòng */
    max-width: 100%;
    padding: 10px;
}

    .project-section p {
        font-size: 12px; /* Điều chỉnh font tự động */
        display: block;
        height: 25%;
        white-space: normal;
        overflow-wrap: break-word;
        margin-bottom: 0px;
        align-content: center;
        text-align: justify;
    }

/*    .project-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/images/homepage/project-imp-background.png');
        background-repeat: no-repeat;
        background-position: top center;
        background-size: cover;
        display: block;
        z-index: 5;
    }*/


.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    height: 165px;
    z-index: 7;
}

.card-header {
    background: #fff5f5;
    border-bottom-left-radius: 45px !important;
    border-bottom-right-radius: 45px !important;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    height: 100%;
    position: relative;
}

    .card-body .body-number {
        font-weight: 600;
        font-size: 20px;
        display: block;
    }

    .card-body .body-text {
        font-weight: bold;
        font-size: 14px;
        display: block;
        text-wrap: auto;
    }

.footer {
    background: #ed1c25;
    color: white;
    font-size: 14px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    z-index: 6;
    display: flex;
    align-content: flex-end;
    justify-content: center;
}

.more-text {
    text-decoration: underline;
    text-decoration-color: #ed9fa2;
    color: #ed1c25;
    cursor: pointer;
}

#gender {
    /*color: #808080;*/ /* Màu xám cho placeholder */
}

    #gender option {
        color: #000; /* Màu đen cho các tùy chọn khác */
    }

    #gender:focus {
        color: #000; /* Đổi màu khi người dùng chọn */
    }

.project-image-container {
    width: 100%;
    /*    height: 100%;*/
    aspect-ratio: 5/3;
    border-radius: 8px;
    border: 1px solid #EFEEEE; /* Viền hình ảnh */
    object-fit: contain;
    background-color: #fff;
}

.parent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 5px;
    grid-row-gap: 10px;
}

.div1 {
    grid-area: 1 / 1 / 3 / 3;
    padding-right: 15px;
}

.div2 {
    grid-area: 3 / 1 / 6 / 3;
    padding-right: 15px;
}

.div3 {
    grid-area: 1 / 3 / 3 / 5;
    padding-left: 15px;
}

.div4 {
    grid-area: 3 / 3 / 6 / 5;
    padding-left: 15px;
}

    .div4 .video-parent {
        max-height: 100%;
        text-align: center;
    }

        .div4 .video-parent .video-div1 {
            font-weight: 800;
            font-size: 12px;
            font-family: "bevietnampro-ExtraBold";
            color: #FFD52E;
            text-align: center;
        }

        .div4 .video-parent .video-div2 {
            text-align: center;
            margin: auto;
            position: relative;
            display: flex;
            overflow: hidden;
        }

            .div4 .video-parent .video-div2 img {
                max-width: 100%;
                max-height: 100%;
                border-radius: 10px;
                object-fit: contain;
                margin: auto;
            }

        .div4 .video-parent .image-wrapper.landscape,
        .div4 .video-parent .thumbnail-wrapper.landscape {
            width: 161px;
            aspect-ratio: 4 / 3;
        }

        .div4 .video-parent .image-wrapper.portrait,
        .div4 .video-parent .thumbnail-wrapper.portrait {
            aspect-ratio: 3 / 4;
            height: 155px;
        }

        .div4 .video-parent .video-div3 {
            margin-top: 5px;
            text-align: center;
        }

            .div4 .video-parent .video-div3 .sum-video {
                font-size: 12px;
                font-family: "bevietnampro-Medium";
                color: #FFFFFF;
            }

            .div4 .video-parent .video-div3 .update-video-date {
                font-size: 10px;
                font-family: "bevietnampro-Medium";
                color: #FFFFFF;
                margin-bottom: 1rem;
            }

            .div4 .video-parent .video-div3 button {
                font-size: 12px;
                font-family: "bevietnampro-Medium";
                padding: 5px 8px;
            }

.carousel-body-signle {
    bottom: 0;
    left: 0;
    position: absolute;
    display: flex;
    align-items: center;
    text-align: center;
    height: calc(100% - 65px);
    max-width: 100%;
    width: 100%;
    padding: 0 25px;
}

    .carousel-body-signle .image-wrapper {
        max-width: 100%;
        position: relative;
        border-radius: 8px;
        /*    background-color: white;*/
        justify-content: center;
        overflow: hidden; /* Ngăn hình ảnh tràn ra ngoài */
        flex-shrink: 0; /* Không cho phép co lại */
        align-content: center;
    }

        .carousel-body-signle .image-wrapper.landscape,
        .carousel-body-signle .thumbnail-wrapper.landscape {
            width: 240px;
            aspect-ratio: 4 / 3;
        }

        .carousel-body-signle .image-wrapper.portrait,
        .carousel-body-signle .thumbnail-wrapper.portrait {
            aspect-ratio: 3 / 4;
            height: 235px;
        }

    .carousel-body-signle .thumbnail-wrapper {
        max-width: 100%;
        position: relative;
        border-radius: 8px;
        /*    background-color: white;*/
        justify-content: center;
        overflow: hidden; /* Ngăn hình ảnh tràn ra ngoài */
        flex-shrink: 0; /* Không cho phép co lại */
        align-content: center;
    }

    .carousel-body-signle .description-wrapper {
        max-width: 100%;
        width: fit-content; /* Đảm bảo chiều rộng tự động điều chỉnh theo ảnh */
        margin-left: 10px;
        flex-grow: 1; /* Mở rộng để lấp đầy không gian còn lại */
        justify-items: start;
    }



    .carousel-body-signle .casourel-image-container {
        max-width: 100%;
        max-height: 100%;
        border-radius: 10px;
        object-fit: contain;
        cursor: pointer;
    }


.carousel-body-double {
    bottom: 0;
    left: 0;
    position: absolute;
    height: calc(100% - 65px);
    max-width: 100%;
    width: 100%;
    padding: 0 25px;
}

.project-description {
    text-align: justify;
    margin-left: 10px;
}
/* .project-description:hover {
            color: #ED1C25;
            cursor: default;
        } */

.carousel-indicators {
    margin-right: 2%;
    right: 0px;
    bottom: 0px;
    left: unset;
    margin-bottom: 0px;
}

    .carousel-indicators [data-coreui-target] {
        width: 10px; /* Độ rộng của vòng tròn */
        height: 10px; /* Chiều cao của vòng tròn */
        border-radius: 50%; /* Biến thành hình tròn */
        transition: background-color 0.3s ease-in-out;
    }

.newest-noti {
    background-color: #19CA26; /* Màu nền hồng nhạt */
    border-radius: 5px;
    margin-left: 5px;
    padding-left: 5px;
    display: flex;
    align-items: center;
}

    .newest-noti .btn-newest {
        background-color: white;
        padding: 5px 15px 5px 15px;
        margin: 5px;
        border-radius: 15px;
        border: solid 1px #31BC3B;
        position: relative;
        color: #31BC3B;
        font-size: 16px;
        font-weight: 500;
        font-family: "bevietnampro-Medium";
        padding-left: 33px; /* Để có chỗ cho icon */
    }

        .newest-noti .btn-newest img {
            position: absolute;
            width: 30px;
            height: 30px;
            top: 3px;
            left: 2px;
        }

        .newest-noti .btn-newest:hover {
            border: solid 1px white;
            background-color: #31BC3B;
            color: white;
            border-radius: 15px;
        }

        .newest-noti .btn-newest svg {
            margin-top: -5px;
        }

    .newest-noti span {
        font-size: 14px;
        font-weight: 500;
        font-family: "bevietnampro-Medium";
        color: white;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.noti-text {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    height: 30px;
    flex: 1;
    vertical-align: middle;
}

    .noti-text a {
        position: absolute;
        top: 5px;
    }

#scrollingText {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
}


.introduction .checklist {
    position: relative;
    margin-left: 18px;
    padding-left: 18px;
    margin-top: 1rem;
}

    .introduction .checklist::before {
        content: "";
        position: absolute;
        left: -2px; /* khoảng cách ra ngoài để đặt đúng đường */
        top: 10%;
        height: 78%;
        width: 2px;
        border-left: 2px dashed #4CAF50;
    }

.introduction .item {
    position: relative;
    margin-bottom: 1.1rem;
}

    .introduction .item::before {
        content: "✔";
        position: absolute;
        left: -32px;
        top: 0;
        font-size: 14px;
        font-weight: bold;
        color: white;
        background: white;
        border-radius: 100%;
        padding: 3px 6px;
        border: 1px solid #ED1C25;
        background-color: #ED1C25;
        box-shadow: 0 0 4px #ED1C25;
    }

    .introduction .item.green::before {
        color: white;
        border-color: #31C23C;
        background-color: #31C23C;
        box-shadow: 0 0 4px #31C23C;
    }

    .introduction .item .content .title {
        font-weight: bold;
        font-size: 16px;
    }

        .introduction .item .content .title.red {
            color: red;
        }

        .introduction .item .content .title.green {
            color: green;
        }

    .introduction .item .content .desc {
        color: #333;
        font-size: 12px;
    }

.introduction .highlight-green {
    color: green;
    font-weight: bold;
}

.img-infor {
    margin: auto;
    text-align: center;
}

.ripple-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #ffd1bd; /* Cam nhạt hơn */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ripple-button {
    position: absolute;
    top: -45%;
    left: 50%;
    width: 40px;
    transform: translate(-50%, -50%);
    height: 40px;
    border-radius: 50%;
    background-color: #FF6B35; /* Cam đậm */
    position: relative;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ripple 1.5s infinite ease-out;
    transition: opacity 0.7s ease;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 107, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.bars {
    display: flex;
    align-items: center;
    gap: 2px;
}

    .bars span {
        width: 2px;
        background-color: white;
        border-radius: 2px;
        animation: bounce 1s infinite ease-in-out;
        display: block;
    }

        .bars span:nth-child(1), .bars span:nth-child(5) {
            height: 6px;
            animation-delay: 0s;
        }

        .bars span:nth-child(2), .bars span:nth-child(4) {
            height: 10px;
            animation-delay: 0.1s;
        }

        .bars span:nth-child(3) {
            height: 14px;
            animation-delay: 0.2s;
        }

.bmi-section .bmi-info {
    display: flex;
    justify-content: center;
}

@keyframes bounce {
    0%, 100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

.video-div2:hover .ripple-button {
    opacity: 1;
    pointer-events: auto;
}

.video-div2:hover img {
    cursor: pointer;
}

@media (max-width: 768px), (min-width: 768px) and (max-width: 1024px),(min-width: 1024px) and (max-width: 1200px) {
    .parent {
        grid-template-columns: 1fr; /* chỉ 1 cột */
        grid-template-rows: auto;
    }

    .div1,
    .div2,
    .div3,
    .div4 {
        grid-area: unset; /* bỏ vị trí grid cũ */
        padding: 0; /* reset padding nếu muốn cân đối */
    }

    .section-title {
        font-size: 15px;
    }

    .date-picker, .date-picker .date-picker-input-group {
        width: 100% !important;
    }

    .bmi-calc-section {
        margin-top: 0px;
        height: auto;
    }

    .bmi-section .bmi-info {
        display: block;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .bmi-section .bmi-div-info {
        margin-bottom: 0.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .bmi-calc-section .column-divider::after {
        display: none; /* Ẩn mũi tên khi ở chế độ dọc */
    }

    .nutrition-section {
        height: auto;
    }

    .carousel-item {
        padding: 15px 10px;
    }

    .carousel-title, .carousel-body-signle, .carousel-body-double {
        position: relative;
    }

    .carousel-body-signle {
        display: grid;
    }

        .carousel-body-signle .image-wrapper.portrait, .carousel-body-signle .thumbnail-wrapper.portrait {
            width: 100%;
            height: auto;
        }

        .carousel-body-signle .image-wrapper.landscape, .carousel-body-signle .thumbnail-wrapper.landscape {
            width: 100%;
            height: auto;
        }

    .div4 .video-parent .image-wrapper.portrait, .div4 .video-parent .thumbnail-wrapper.portrait,
    .div4 .video-parent .image-wrapper.landscape, .div4 .video-parent .thumbnail-wrapper.landscape {
        width: 100%;
        height: auto;
    }

    .description-wrapper {
        width: 100% !important;
    }

    .div-btn-download {
        text-align: center;
        width: 100%;
    }

    .video-parent {
        margin-bottom: 1rem;
    }
}
