﻿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;
}

/* ================= HEADER ================= */
header {
    display: flex;
    align-items: center; /* căn giữa theo chiều dọc */
    justify-content: space-between; /* logo bên trái, ô tìm kiếm bên phải */
    padding: 10px 40px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

/* Logo + tên */
.navbar-brand {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #333;
        font-size: 22px;
        font-weight: bold;
}

.navbar-brand img.logo {
            height: 40px;
            width: auto;
            margin-right: 8px;
}

/* Thanh tìm kiếm */
.search-box {
    display: flex;
    align-items: center;
    justify-content: center; /* căn giữa nội dung ô tìm kiếm */
    flex-grow: 1; /* cho phép chiếm không gian trống giữa header */
    width: 1000px; /* giới hạn độ rộng */
    margin-left: auto; /* đẩy sát bên phải */
}

.search-box input[type="text"] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.search-box button {
    margin-left: 5px;
    padding: 6px 12px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    width: 100px;
}

.search-box button:hover {
        background-color: #e6e6e6;
}

/* ================= NAVBAR ================= */
nav {
    background-color: limegreen; /* màu xanh lá cây */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 50px;
}

nav ul li a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: forestgreen; /* xanh lá đậm hơn khi hover */
}


/* ================= FOOTER ================= */
footer a{
    display: flex;
    align-items: center; /* căn giữa theo chiều dọc */
    text-decoration: none;
}
