/* ========================
  RESET CƠ BẢN
======================== */
body {
  background: #111;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding-bottom: 70px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   HEADER BAR
======================== */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 15px;
  box-sizing: border-box;
}

.logo-k8 img {
  max-height: 50px;
  width: auto;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-login, .btn-register {
  font-weight: bold;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s ease;
}
.btn-login {
  border: 2px solid #ffc107;
  color: #ffc107;
  background: transparent;
}
.btn-login:hover {
  background: #ffc107;
  color: #111;
}
.btn-register {
  background: linear-gradient(90deg, #ffc107, #ffb300);
  color: #600;
  border: none;
}
.btn-register:hover {
  background: #ffc107;
  color: #111;
}
@media (max-width: 600px) {
  .logo-k8 img { max-height: 40px; }
  .btn-login, .btn-register { padding: 6px 10px; font-size: 13px; }
}

/* =========================
   MAIN MENU
======================== */
.main-navigation {
  background: #1b1b1b;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}
.main-menu {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  gap: 10px;
  list-style: none;
  flex-wrap: nowrap;
  justify-content: center;
  box-sizing: border-box;
}
.main-menu li {
  flex: 0 0 auto;
}
.main-menu li a {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  display: block;
  transition: 0.3s ease;
}
.main-menu li a:hover {
  background: #333;
  color: #ffcc00;
}
@media (max-width:768px) {
  .main-menu { scrollbar-width: none; }
  .main-menu::-webkit-scrollbar { display: none; }
}

/* =========================
   BANNER SLIDER
======================== */
.banner-slider {
  max-width: 1100px;
  margin: 10px auto;
  position: relative;
  overflow: hidden;
}
.banner-slider .slide {
  width: 100%;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.banner-slider .slide.active {
  opacity: 1;
  position: relative;
}
.banner-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}
.prev-slide { left: 10px; }
.next-slide { right: 10px; }

/* =========================
   MAIN CONTENT
======================== */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}
.entry-content {
  margin: 0 auto;
  padding: 0;
}

/* =========================
   BOTTOM NAV
======================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55px;
  background: #1b1b1b;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #333;
  z-index: 9999;
}
.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #ccc;
}
.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
  color: #ffc107;
}
.bottom-nav .nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}
@media (min-width: 768px) {
  .bottom-nav { display: none; }
}

/* =========================
   ARCHIVE
======================== */
.archive .main-navigation {
  max-width: 1100px;
  margin: 0 auto;
  background: #1b1b1b;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}
.archive .main-navigation ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  overflow-x: unset !important;
}
.archive .main-navigation ul li a {
  color: #ff9900;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 14px;
  display: block;
  transition: background 0.3s ease, color 0.3s ease;
}
.archive .main-navigation ul li a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 4px;
}

/* =========================
   FIX VIỀN MENU KHÔNG LỆCH
======================== */
.main-navigation,
.main-menu,
.header-bar {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}
