﻿/* =============================
   SLIDER – CHẠY MƯỢT, KHÔNG LỖI
   ============================= */

#mainSlider,
#mainSlider .carousel-inner,
#mainSlider .carousel-item {
    height: 420px !important;
    overflow: hidden;
}

    /* Ảnh full khung – không lỗi transition */
    #mainSlider img.slider-img {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        display: block;
    }

/* KHÔNG để auto hoặc unset */
.carousel-item {
    height: 420px !important;
}



/* =======================================================
   FOOTER – TIÊU ĐỀ IN ĐẬM NẰM TRÊN NỘI DUNG
   ======================================================= */

footer h5 {
    margin: 0 0 10px 0 !important;
    padding: 0;
    font-size: 1.2rem;
}

    footer h5 strong {
        display: block;
        margin-bottom: 8px;
    }

footer ul {
    margin-top: 0 !important;
    padding-left: 18px;
}

/* 3 cột footer thẳng hàng */
footer .row > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}



/* =======================================================
   ALERT – MARQUEE – DROPDOWN – MODAL
   ======================================================= */

.alert-fixed-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Dropdown tài khoản căn phải */
.navbar-nav .dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Form logout */
form.logout-form {
    margin: 0;
    padding: 0.5rem 1rem;
}

/* Marquee */
.marquee {
    background-color: #f8f9fa;
    overflow: hidden;
    white-space: nowrap;
    padding: 5px 0;
}

    .marquee span {
        display: inline-block;
        padding-left: 100%;
        animation: marquee 15s linear infinite;
    }

@keyframes marquee {
    0% {
        transform: translate(0);
    }

    100% {
        transform: translate(-100%);
    }
}



/* =======================================================
   CARD – FIX ĐỀU HÌNH & CHIỀU CAO
   ======================================================= */

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden; /* Quan trọng cho hiệu ứng hover zoom */
}

/* Hình ảnh có chiều cao cố định */
.card-img-top {
    height: 160px !important;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out; /* Thêm hiệu ứng */
}

    /* Hover phóng to mượt */
    .card-img-top:hover {
        transform: scale(1.12);
    }

/* Nội dung đều nhau */
.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

/* Card giãn đều hàng */
.row > div[class*='col-'] {
    display: flex;
}

    .row > div[class*='col-'] .card {
        flex: 1;
    }



/* =======================================================
   KHÁC
   ======================================================= */

.body-content {
    margin-top: 15px;
    padding: 0 15px;
}

.dl-horizontal dt {
    white-space: normal;
}

input, select, textarea {
    max-width: 280px;
}



/* =======================================================
   BẢNG THÔNG TIN – GIỮ NGUYÊN
   ======================================================= */

.info-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    table-layout: fixed;
}

    .info-table th,
    .info-table td {
        width: 90px;
        height: 90px;
        text-align: center;
        vertical-align: middle;
        padding: 8px;
        border: 1px solid #ddd;
        word-break: break-word;
        font-size: 14px;
    }

@media (max-width: 576px) {
    .info-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
/* =========================================
   FIX PHÓNG TO ẢNH CARD KHI DI CHUỘT
   ========================================= */

/* Ưu tiên cao hơn + override hoàn toàn */
.card .card-img-top {
    transition: transform 0.35s ease-in-out !important;
}

.card:hover .card-img-top {
    transform: scale(1.12) !important;
}
