


/*=============== khối danh mục trong blog - blog-detail====================*/


    /* Toàn bộ khối danh mục */
.danh-muc-benh {
    background-color: #1f7a4d; /* Màu nền xanh đậm */
    padding: 10px 15px;
    color: white;
}

/* Tiêu đề */
.danh-muc-benh h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}

/* Danh sách service */
.danh-muc-benh .list-group-item {
    background-color: transparent;
    border: none;
    padding: 0;
    color: white;
}

/* Tên chuyên khoa (VD: Phụ Khoa ⬇) */
.danh-muc-benh .list-group-item > a {
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

/* Danh sách bệnh con */
.danh-muc-benh .sub-menu {
    max-height: 300px;
    overflow-y: auto;
    padding-left: 15px;
    margin-top: 10px;
}

/* Từng mục bệnh */
.danh-muc-benh .sub-menu li {
    list-style: none;
    margin-bottom: 6px;
}

.danh-muc-benh .sub-menu li a {
    color: white;
    text-decoration: none;
    font-weight: normal;
}

/* KHÔNG có hiệu ứng hover */
.danh-muc-benh .sub-menu li a:hover {
    color: white;
}
/* Desktop (mặc định) - chỉnh lại ảnh nhỏ hơn, chữ chiếm nhiều hơn */
.blog-item .col-md-4 {
    flex: 0 0 30%;
    max-width: 40%;
    padding: 0 10px;
}

.blog-item .col-md-8 {
    flex: 0 0 70%;
    max-width: 60%;
    padding: 0 10px;
    font-size: 25px;
}

.blog-image {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
}


@media (max-width: 768px) {
    .top-bar {
        display: none !important;

    }
    .clinic-header{
        display: none !important;
    }
}

/* Form đăng ký */
.register-form {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Thu nhỏ form */
}

/* Căn chỉnh form */
.register-form input {
    font-size: 14px;
    padding: 8px;
}

/* Nút đăng ký */
.register-form button {
    font-size: 14px;
    padding: 10px;
}

/* Giảm kích thước QR Code */
.register-form img {
    width: 250px;
}


/* Bố cục bài viết */
.blog-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 60px;
    border-radius: 15px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    border-left: 6px solid #007bff;
    margin-bottom: 20px;
    position: relative;
}

/* Bố cục bài viết */
.blog-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hiệu ứng hover */
.blog-item:hover {
    transform: scale(1.02);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

/* Ảnh bài viết */
.blog-image {
    width: 350px;
    height: 165px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease-in-out;
}


/* Nội dung bài viết */
.blog-content {
    flex: 1;
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tiêu đề bài viết */
.blog-content h5 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}


.subtitles-list li {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.blog-item {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding: 15px;
    border-radius: 8px;
}

.blog-item:hover {
    transform: scale(1.03); /* Phóng to nhẹ */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* Đổ bóng */
    background-color: #f8f9fa; /* Thay đổi nền nhẹ */
}

.blog-item .article-title:hover {
    color: #007bff; /* Thay đổi màu chữ khi hover */
    text-decoration: underline;
}

.blog-item img {
    transition: transform 0.3s ease-in-out;
}

.blog-item:hover img {
    transform: scale(1.05); /* Phóng to ảnh khi hover */
}

/* Mặc định: Desktop - Ảnh trái, chữ phải */
.blog-item .row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    margin: 0;
}

/* Hình ảnh */
.blog-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    max-height: 180px;
}

/* Nội dung */
.blog-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 0;
}

/* Tiêu đề */
.article-title h5 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Nội dung rút gọn */
.content-preview {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .blog-image {
        max-height: 180px; /* Tăng từ 120px lên 180px hoặc bất kỳ số nào bạn muốn */
        object-fit: cover;
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .blog-item .col-md-4 {
        height: 150px;
        flex: 0 0 40% !important;   /* ảnh chiếm 40% chiều ngang */
        max-width: 36% !important;
        padding: 0 5px;
    }

    .blog-item .col-md-8 {
        flex: 0 0 60% !important;   /* chữ còn lại 60% */
        max-width: 60% !important;
        padding: 0 5px;
        font-size: 14px;
    }



    /* Tùy chọn: thu nhỏ font chữ */
    .article-title h5 {
        font-size: 14px;
    }

    /* Ẩn phần mô tả */
    .content-preview {
        display: none !important;
    }

    /* Ảnh thu gọn hơn nếu cần */
    .blog-image {
        max-height: 120px;
        object-fit: cover;
        border-radius: 10px;
    }
}



/*=============== khối danh mục trong blog - blog-detail====================*/