﻿/* Dropdown*/
.dropdown-menu.custom-dropdown {
    background-color: white; /* trùng màu menu cha */
    min-width: 100%; /* bằng chiều rộng cha */
    border: none;
    padding: 0;
}

/* Gán cho <li> chứa menu dropdown */
.nav-item.dropdown {
    position: relative;
}
.dropdown-item:hover {
    color: red !important;
}
.nav-link:hover,
.dropdown-item:hover {
    color: red !important;
}
/* Hover để hiển thị dropdown mượt */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
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;
}
/* màu nền của thanh menu */
.custom-navbar {
    background-color: #2bab27; /* Ví dụ xanh lá Bootstrap */
}
.carousel-item {
    height: 400px; /* chiều cao khung bạn muốn */
    transition: opacity 1s ease-in-out;
}

.carousel-item img {
    height: 120%;
    width: 80%;
    object-fit: cover; /* Cắt ảnh theo khung, không méo */
    object-position: center;
}
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #006400; /* xanh dương */
    border: none;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 6px;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #006400; /* đậm hơn nếu muốn */
}
.hotline-box-wrapper {
    top: calc(100% - 100px); /* Đẩy xuống thấp hơn banner (400px) khoảng 100px */
    z-index: 10;
}
/* Chấm điều hướng */
.custom-indicators {
    bottom: 50px !important; /* nâng lên trên box hotline */
    z-index: 20;
}
.custom-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #198754; /* màu xanh lá đậm */
    opacity: 0.7;
    margin: 0 6px;
}

.custom-indicators button.active {
    background-color: #28a745;
    opacity: 1;
}
.banner-wrapper {
    position: relative;
}

/* Box chồng giữa - chồng xuống nửa banner */
.hotline-box-wrapper {
    top: calc(100% - 60px); /* 50% vào banner, 50% ra ngoài */
    z-index: 10;
}

/* Box hotline to hơn và thấp hơn */
.hotline-box > div {
    width: 300px; /* hoặc 320px nếu cần */
    padding: 20px 15px;
}
/* Đảm bảo nền full chiều ngang */
.full-width-section {
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    background-color: #f8f9fa; /* Hoặc màu nền tùy bạn */
}

/* Thu nhỏ video đẹp hơn */
.video-wrapper {
    max-width: 260px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
.img-thumbnail {
    object-fit: cover;
    height: 60px;
}

.list-group-item:hover {
    background-color: #f0f0f0;
}
a:hover {
    color: red; /*Màu khi rê chuột qua */
    text-decoration: none; /* Không có gạch chân khi hover */
}
a {
    text-decoration: none; /* Bỏ gạch chân */
    color: #198754; /*Màu chữ mặc định */
}
.custom-ribbon {
    background-color: #22b14c; /* Màu xanh lá */
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
    font-weight: bold;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(34, 177, 76, 0.8); /* xanh lá có nền mờ */
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
/* Làm hiệu ứng chuyển slide mượt */
.carousel-inner {
    transition: transform 0.8s ease-in-out !important;
}

/* Làm mượt các nút mũi tên */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100% 100%;
    transition: transform 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.2); /* phóng to nhẹ khi hover */
}
img {
    transition: transform 0.4s ease-in-out;
}

img:hover {
    transform: scale(1.05);
}
.social-floating {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

    .social-btn:hover {
        transform: scale(1.1);
    }

    .social-btn img {
        width: 24px;
        height: 24px;
    }
