/* Header */
header {
    background-color: #fff;
    padding: 15px 0;
}

.header-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.header-logo img {
    max-height: 90px;
}

.header-title {
    line-height: 1.5; 
}

.header-title h1 {
    color: #d00000;
    font-size: 1.3rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-weight: 900;
}

.header-title h2,
.header-title h3 {
    color: #444;
    margin-bottom: 6px;
    font-size: .8rem;
    font-weight: 800;
}

.header-badge img {
    max-height: 80px;
}

@media (max-width: 768px) {
    .header-title h1 {
        font-size: .9rem;
    }
    .header-title h2,
    .header-title h3 {
        font-size: 0.6em;
    }
}
/* Mobile: căn giữa logo */
@media (max-width: 768px) {
    .header-logo {
        align-items: center !important;
    }
}
/* ====== NAVBAR STYLE ====== */
.main-navbar {
    background-color: #c00000;
    padding: 0;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 16px 0px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.navbar-nav .nav-link:hover {
    background-color: #a00000;
    color: #fff !important;
}

/* ====== Dropdown ====== */
.dropdown-menu {
    border: none;
    border-radius: 0;
    margin-top: 0;
    background-color: #c00000;
    padding: 0;
    min-width: 220px;
    display: none; /* ẩn mặc định */
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    color: #fff;
    padding: 10px 20px;
    transition: background-color 0.2s ease;
    white-space: normal;
}

.dropdown-item:hover {
    background-color: #a00000;
    color: #fff;
}

/* ====== Hover mở submenu ====== */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

/* ====== Language switch ====== */
.language-switch {
    margin-left: 15px;
}
.language-switch a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.language-switch a.active {
    text-decoration: underline;
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        float: none;
        background-color: #a00000;
    }
    .dropdown-item {
        padding-left: 40px;
    }
}


/* Footer */
.footer {
    background-color: #a00000;
    color: #fff;
    font-size: 0.9rem;
}

.footer-logo-img {
    max-height: 70px;
}

.footer h5 {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-credit {
    font-size: 0.85rem;
    color: #f8f8f8;
}

@media (max-width: 768px) {
    .footer h5 {
        font-size: 1rem;
    }
    .footer-logo-img {
        max-height: 60px;
    }
}

/* Icon fix */
.social-icons {
  position: fixed;               /* cố định theo viewport */
  top: 50%;                      /* căn giữa theo chiều dọc */
  right: 0;                      /* gắn sát mép phải */
  transform: translateY(-50%);   /* thật sự căn giữa */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2); /* nền mờ nhẹ, có thể bỏ */
  z-index: 1000;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px 0 0 6px; /* bo góc bên trái */
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateX(-4px) scale(1.1);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.social-icons .blood { background: #b60000; }
.social-icons .facebook { background: #1877f2; }
.social-icons .youtube { background: #ff0000; }
.social-icons .instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-icons .tiktok { background: #000; }