html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ==========================================================================
   BỔ SUNG - ĐÃ TỐI ƯU GỘP CODE VÀ ĐỒNG BỘ MÀU LOGO TOPSOFT
   ========================================================================== */

/* Tông màu xanh đậm thương hiệu phối hợp */
.text-navy {
    color: #0f2b5c !important;
}

/* Căn đều hai bên cho đoạn mô tả ngắn gọn */
.text-justify-custom {
    text-align: justify;
    font-size: 0.925rem;
    line-height: 1.6;
}

/* Hiệu ứng nổi bật Card sản phẩm khi di chuột vào */
.card-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card-hover-effect:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,.125) !important;
    }

/* Đường trang trí dưới tiêu đề - Đã chuyển sang Đỏ thương hiệu */
#san-pham h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #d32f2f;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* Đảm bảo ảnh banner sự kiện co giãn đẹp mắt và ôm khít khung */
.object-fit-cover {
    object-fit: cover;
}

/* Hiệu ứng bo góc nhẹ nhàng cho ảnh phía trên của Card sự kiện */
.style-event-banner {
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}

/* Tùy biến lại thanh chỉ báo chuyển slide (Carousel Indicators) */
#topsoftHero .carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.35);
    border: none;
    transition: all 0.3s ease;
}

#topsoftHero .carousel-indicators .active {
    background-color: #d32f2f !important; /* Màu đỏ của logo khi active */
    width: 40px !important;
}

/* Đảm bảo khối card sự kiện có bóng đổ sâu, tạo chiều khối rõ ràng */
.event-card-fixed {
    transition: transform 0.3s ease;
}

    .event-card-fixed:hover {
        transform: translateY(-3px);
    }

/* Khóa chiều cao vùng hiển thị ảnh ở cả 2 slide để triệt tiêu hiện tượng giật */
.hero-image-wrapper {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hiệu ứng khung PC lớn, sắc nét và dàn đều giao diện WinForms (Đã gộp) */
.style-pc-frame {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .style-pc-frame:hover {
        transform: scale(1.02);
    }

/* Đảm bảo khối chữ mô tả có chiều cao tối thiểu bằng nhau trên Desktop để chữ không bị dịch chuyển */
@media (min-width: 576px) {
    #heroCarousel .text-white-50 {
        min-height: 72px;
    }
}

/* Khung tròn chứa icon trên trang liên hệ */
.icon-contact-box {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Giữ icon không bị móp khi text dài */
    font-size: 1.25rem;
}

/* Màu nền đỏ nhạt hỗ trợ làm dịu màu icon đỏ của Logo */
.bg-danger-light {
    background-color: #fef2f2 !important;
}