/* =============================================
================== CSS Styles ==================
================================================ */



/* ==============================================================
=== BIODAS NAVBAR – DESKTOP CÓ HIỆU ỨNG / MOBILE TĨNH ===
================================================================= */

.navbar .container-fluid {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.navbar {
  background: linear-gradient(115deg, #2c3b59, #313d5d, #3b506d, #2c3b59);
  background-size: 300% 300%;
  animation: navbarGradient 18s ease infinite;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
}

@keyframes navbarGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body { padding-top: 50px !important; }

/* --- Logo --- */
.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  position: relative;
  z-index: 2;
}
.navbar-brand img {
  max-height: 36px !important;
  width: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.navbar-brand img:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

/* --- Menu chính ở giữa (DESKTOP) --- */
@media (min-width: 992px) {
  .navbar .navbar-nav:first-of-type {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    flex-wrap: nowrap;
    z-index: 1;
  }
}

.navbar .navbar-nav:first-of-type > li > a {
  color: #ffffff !important;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
}
.navbar .navbar-nav:first-of-type > li > a:hover {
  background: linear-gradient(120deg, rgba(0,194,224,0.25), rgba(255,255,255,0.1));
  color: #eaffff !important;
  box-shadow: 0 2px 8px rgba(0,194,224,0.35);
  text-shadow: 0 0 10px rgba(0,194,224,0.5);
}
.navbar .navbar-nav:first-of-type > li > a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #00eaff 0%, #00c2e0 50%, #00eaff 100%);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.navbar .navbar-nav:first-of-type > li > a:hover::after {
  width: 60%;
}

/* --- Dropdown submenu --- */
.navbar .dropdown-menu {
  background: rgba(49, 61, 93, 0.98);
  border: none;
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}
.navbar .dropdown-menu.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.navbar .dropdown-item {
  color: #e8eef6 !important;
  font-size: 0.75rem;
  padding: 8px 20px 8px 26px;
  border-radius: 6px;
  position: relative;
  transition: all 0.25s ease;
}
.navbar .dropdown-item::before {
  content: "•";
  position: absolute;
  left: 10px;
  color: #e8eef6;
  font-weight: 700;
  opacity: 0.85;
}
.navbar .dropdown-item:hover {
  background: linear-gradient(90deg, rgba(0,194,224,0.25), rgba(255,255,255,0.08));
  color: #ffffff !important;
  transform: translateX(3px);
  box-shadow: 0 2px 6px rgba(0,194,224,0.25);
}

/* --- ICON + SEARCH --- */
.navbar .navbar-nav:last-of-type,
.navbar .quarto-navbar-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  gap: 1.5px;
  position: relative;
  z-index: 2;
}

.navbar .navbar-nav:last-of-type a {
  color: #ffffff !important;
  font-size: 1.15rem;
  transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.navbar .navbar-nav:last-of-type a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* --- Hover màu thương hiệu --- */
.navbar .navbar-nav:last-of-type a[href*="facebook"]:hover { color: #1877F2 !important; }
.navbar .navbar-nav:last-of-type a[href*="linkedin"]:hover { color: #0A66C2 !important; }
.navbar .navbar-nav:last-of-type a[href*="youtube"]:hover { color: #FF0000 !important; }
.navbar .navbar-nav:last-of-type a[href*="github"]:hover { color: #999999 !important; }
.navbar .navbar-nav:last-of-type a[href*="twitter"]:hover,
.navbar .navbar-nav:last-of-type a[href*="x.com"]:hover {
  color: #f4faff !important;
  filter: brightness(1.3);
}
.navbar .navbar-nav:last-of-type a[href*="tiktok"]:hover {
  color: #EE1D52 !important;
  text-shadow: 0 0 8px #69C9D0;
}
.navbar .navbar-nav:last-of-type a[href*="mailto"]:hover { color: #00c2e0 !important; }

/* =====================================================
   ✅ MOBILE: KHÔNG HIỆU ỨNG, GIAO DIỆN TĨNH
   ===================================================== */
@media (max-width: 991.98px) {
  /* Bố cục */
  .navbar .container-fluid {
    flex-direction: row;
    align-items: center;
  }

  .navbar-collapse { width: 100%; }
  .navbar .navbar-nav { width: 100%; }

  .navbar .navbar-nav:first-of-type,
  .navbar .navbar-nav:last-of-type {
    position: relative;
    left: 0;
    transform: none;
    display: block;
    margin: 0;
  }

  /* Tắt animation & shadow & hover */
  .navbar {
    background: #313d5d !important;
    animation: none !important;
    box-shadow: none !important;
  }

  .navbar .navbar-nav a,
  .navbar .dropdown-item {
    transition: none !important;
    background: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    text-shadow: none !important;
  }

  .navbar .navbar-nav:first-of-type > li > a::after { display: none !important; }
  .navbar .dropdown-menu {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    transition: none !important;
    background: #313d5d !important;
  }

  .navbar .dropdown-item:hover,
  .navbar .navbar-nav a:hover {
    background: none !important;
    color: #ffffff !important;
    transform: none !important;
  }

  /* Icon: xếp ngang, không hiệu ứng */
  .navbar .navbar-nav:last-of-type {
    display: flex;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
    padding: 10px 0;
  }

  .navbar .navbar-nav:last-of-type a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    transform: none !important;
    opacity: 1 !important;
  }
}






/* Content */
/* ===== TIÊU ĐỀ H1/ TITLE ===== */
h1 {
  color: #313d5d;
  font-size: 2.5em;
  text-align: center;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* ===== TIÊU ĐỀ SUBTITLE ===== */
.subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
}






/* Image cover page for posts */
.img-cover {
    border-radius: 12px;
    max-width: 75%;
    height: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInZoom 0.8s ease forwards;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.img-cover:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .img-cover {
        max-width: 100%;
    }
}



















