/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header styles */
.header {
    padding: 15px 20px;
}

.header h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* Layout with sidebar */
.layout {
    display: flex;
    min-height: 80vh;
}

/* Sidebar styles */
.sidebar {
    width: 320px;
    background-color: #f8f9fa;
    padding-top: 20px;
    transition: transform 0.3s ease;
    border-right: 1px solid #e0e0e0;
}

/* Sidebar links */
.sidebar .nav-link {
    color: #fff;
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    font-size: 16px;
    background: linear-gradient(135deg, #28a745, #30707a);
}

.sidebar .nav-link:hover {
    background-color: greenyellow;
}

/* Hide sidebar on mobile */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 1000;
        width: 250px;
        background-color: #f8f9fa;
        padding-top: 20px;
    }

    /* Show sidebar when active */
    .sidebar.active {
        transform: translateX(0);
    }

    /* Content area takes full width on mobile */
    .content {
        flex: 1;
        padding: 20px;
        margin-left: 0;
    }
}

/* Content Area */
.content {
    flex: 1;
    padding: 20px;
}

/* Footer */
.footer {
    background-color: #2e7d32;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Sidebar Button */
.menu-toggle-btn {
    font-size: 1.25rem;
}

/* Smooth transition for sidebar */
.sidebar {
    transition: transform 0.3s ease;
}
/* General Banner Styling */
/* CSS */
.top-banner {
  width: 100%;
  height: 200px; /* Chiều cao khung là 100% chiều cao màn hình */
  overflow: hidden; /* Ẩn phần dư thừa */
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ảnh bao phủ khung mà không bị méo */
}


/* Center the button container */
.button-nut {
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically */
    height: 50px;            /* Full viewport height to keep it centered */
}

/* Set width, height, and other styles for the button */
.custom-btn {
    width: 150px;    /* Custom width */
    height: 40px;    /* Custom height */
    font-size: 18px; /* Adjust font size if needed */
}


.card {
    border: 2px solid #ffc107!important;
    border-radius: .25rem;
}
.btn-success {
    color: #fff;
    background-color: #17a2b8!important;
    border-color: #17a2b8;
}
/* Hỗ trợ online*/
.online-support {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.online-support a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: #007bff; /* Màu nền mặc định */
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Hiệu ứng rung lắc khi hover */
.online-support a:hover {
  animation: shake 0.5s ease-in-out;
}

/* Keyframes cho hiệu ứng rung lắc */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  20%, 60% {
    transform: translateX(-5px);
  }
  40%, 80% {
    transform: translateX(5px);
  }
}

.online-support .zalo {
  background-color: #1da1f2; /* Màu xanh Zalo */
}

.online-support .hotline {
  background-color: #28a745; /* Màu xanh lá Hotline */
}

.online-support .fanpage {
  background-color: #4267b2; /* Màu xanh Fanpage */
}

.online-support i {
  font-size: 18px;
}

/*hiện ảnh trên mobile*/

@media (max-width: 768px) {
    .col-md-6 {
        margin-bottom: 15px; /* Giãn cách ảnh cho màn hình nhỏ */
    }
    .col-6 {
    flex: 0 0 auto;
    max-width: 100%;
}
.sidebar .nav-link {

    font-size: 16px;

}
}

 /* Hiệu ứng hover cho menu */
.nav-item:hover .collapse {
    display: block !important;
}

/* Căn chỉnh menu con */
.nav .nav {
    background: #f8f9fa;
    padding-left: 10px;
    border-left: 3px solid #28a745;
}

/* Hiệu ứng icon */
.nav-link i {
    margin-right: 8px;
}
  