/* ThuVienAnh CSS */

.text-banner {
    font-size: 24px;
    font-weight: 700;
    position: absolute;
    padding-left: 20px;
}

.text-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background-color: #264596;
}

.offcanvas.offcanvas-bottom {
    right: 0;
    left: 0;
    height: var(--bs-offcanvas-height);
    height: 101%;
    border-top: 0px;
    transform: translateY(100%);
}

.Image-Galley {
    width: 100% !important;
    object-fit: cover;
    height: 20rem !important;
}

.image-text {
    bottom: 0;
    position: absolute;
    left: 0;
    background-color: rgb(0 0 0 / 40%);
}

.img-card-video-audio {
    width: 100%;
    height: 15rem;
    object-fit: cover;
}

.Text-image {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 15px;
    color: #264596;
}

.Text-image a {
    color: #264596;
    text-decoration: none;
}

/* Đảm bảo tất cả các column có chiều cao bằng nhau */
.equal-height-column {
    height: 100%;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding-bottom: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.equal-height-column:hover {
    border-color: #264596;
}

.portfolio-image {
    width: 100%;
}

.portfolio-image img {
    width: 100%;
    height: 240px; /* Chiều cao cố định cho ảnh */
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: block;
}

.portfolio-image a {
    display: block;
}

.portfolio-desc {
    padding: 15px 15px 0 15px !important;
    margin: 0 !important;
}

.portfolio-desc div {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
}

.portfolio-desc div a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-desc div a:hover {
    color: #264596;
    text-decoration: none;
}

/* Đảm bảo không có margin/padding thừa */
.portfolio-desc * {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.portfolio-image a:hover img {
    opacity: 0.9;
}

/* Đảm bảo tất cả các item có cùng chiều cao */
.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

/* Thêm khoảng cách giữa các column */
.equal-height-row .col-sm-6,
.equal-height-row .col-xl-4 {
    margin-bottom: 20px;
}

/* Căn giữa pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}
