/* ==========================================================================
   VINH GIA PHARMA - 21ST ANNIVERSARY CELEBRATION THEME (2005 - 2026)
   Theme: "21 Năm Tận Tâm & Vững Bền Niềm Tin Vì Sức Khỏe Mọi Người"
   Scoped strictly under body.vg-event-21-years
   ========================================================================== */

/* 1. TOP EVENT PRESTIGE ANNOUNCEMENT BAR */
body.vg-event-21-years .vg-anniversary-topbar {
  background: linear-gradient(90deg, #003314 0%, #004d20 30%, #005724 50%, #004d20 70%, #003314 100%) !important;
  border-bottom: 2px solid #e5b248 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 16px rgba(229, 178, 72, 0.25) !important;
  color: #ffffff !important;
  position: relative !important;
  z-index: 9999 !important;
  overflow: hidden !important;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

body.vg-event-21-years .vg-anniversary-topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: vgShimmer 6s infinite;
  pointer-events: none;
}

@keyframes vgShimmer {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

body.vg-event-21-years .vg-ev-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 38px;
}

body.vg-event-21-years .vg-ev-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  justify-content: center;
}

body.vg-event-21-years .vg-ev-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ffd700 0%, #e5b248 50%, #c59324 100%);
  color: #003314;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  text-transform: uppercase;
}

body.vg-event-21-years .vg-ev-message {
  font-size: 13px;
  line-height: 1.4;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

body.vg-event-21-years .vg-ev-highlight {
  font-weight: 800;
  color: #ffe082;
  letter-spacing: 0.3px;
}

body.vg-event-21-years .vg-ev-separator {
  color: #e5b248;
  opacity: 0.7;
}

body.vg-event-21-years .vg-ev-sub {
  color: #e8f5e9;
  font-weight: 500;
}

body.vg-event-21-years .vg-ev-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.6);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  transition: all 0.25s ease;
  white-space: nowrap;
  margin-left: 6px;
}

body.vg-event-21-years .vg-ev-btn:hover {
  background: linear-gradient(135deg, #ffd700, #e5b248) !important;
  color: #003314 !important;
  border-color: #ffd700 !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  transform: translateY(-1px);
}

body.vg-event-21-years .vg-ev-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.vg-event-21-years .vg-ev-close:hover {
  color: #ffd700;
}

/* Visibility toggles between PC and Mobile */
body.vg-event-21-years .vg-ev-mobi-only {
  display: none !important;
}

/* 2. LOGO ANNIVERSARY SEAL LOCKUP (DESKTOP) */
@media (min-width: 850px) {
  body.vg-event-21-years #masthead #logo {
    flex: 0 0 auto !important;
    max-width: 360px !important;
  }

  body.vg-event-21-years #masthead #logo a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
  }

  body.vg-event-21-years #masthead #logo a img.header-logo {
    max-height: 54px !important;
    width: auto !important;
  }

  body.vg-event-21-years .vg-divider-vertical {
    width: 1.5px;
    height: 40px;
    background: linear-gradient(180deg, transparent, #e5b248, transparent);
    flex-shrink: 0;
  }

  body.vg-event-21-years .vg-anniversary-seal-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    animation: vgFadeIn 0.5s ease-out;
  }

  body.vg-event-21-years .vg-seal-icon {
    width: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 3px 6px rgba(0, 77, 32, 0.25)) !important;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  body.vg-event-21-years #masthead #logo a:hover .vg-seal-icon {
    transform: scale(1.08) rotate(2deg);
  }

  body.vg-event-21-years .vg-seal-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
  }

  body.vg-event-21-years .vg-seal-tag {
    font-size: 9px;
    font-weight: 800;
    color: #b78103;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  body.vg-event-21-years .vg-seal-title {
    font-size: 13px;
    font-weight: 900;
    color: #005724;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }

  body.vg-event-21-years .vg-seal-motto {
    font-size: 10px;
    font-weight: 700;
    color: #888888;
    white-space: nowrap;
  }

  /* Keep Search Bar contained so it never overlaps the logo */
  body.vg-event-21-years #masthead .flex-left.flex-grow {
    min-width: 160px !important;
    margin: 0 10px !important;
  }

  body.vg-event-21-years #masthead .searchform-wrapper {
    max-width: 250px !important;
    width: 100% !important;
  }
}

@keyframes vgFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 3. NAVIGATION BAR GOLD ACCENT */
body.vg-event-21-years #wide-nav {
  position: relative !important;
}

body.vg-event-21-years #wide-nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #e5b248 20%, #ffd700 50%, #e5b248 80%, transparent 100%) !important;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5) !important;
  z-index: 10;
  pointer-events: none;
}

/* 4. MENU ITEM BADGE (GIỚI THIỆU / 21 NĂM) */
body.vg-event-21-years .badge-21 {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700 0%, #e5b248 100%);
  color: #003617 !important;
  font-size: 9.5px !important;
  font-weight: 900 !important;
  padding: 1.5px 6px !important;
  border-radius: 99px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.2;
  letter-spacing: 0.3px;
  animation: pulseGoldBadge 2.4s infinite;
}

@keyframes pulseGoldBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 4px rgba(0,0,0,0.25); }
  50% { transform: scale(1.08); box-shadow: 0 2px 8px rgba(255, 215, 0, 0.6); }
}

/* 5. MOBILE RESPONSIVE OPTIMIZATIONS (< 850px) */
@media (max-width: 849px) {
  body.vg-event-21-years .vg-anniversary-topbar {
    border-bottom-width: 1.5px !important;
  }

  body.vg-event-21-years .vg-ev-container {
    padding: 5px 8px !important;
    min-height: 32px !important;
  }

  /* Hide Desktop Topbar Content, Show Mobile Topbar Content */
  body.vg-event-21-years .vg-ev-pc-only {
    display: none !important;
  }

  body.vg-event-21-years .vg-ev-mobi-only {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  body.vg-event-21-years .vg-ev-star-badge {
    font-size: 9.5px !important;
    padding: 2px 6px !important;
    letter-spacing: 0 !important;
    flex-shrink: 0 !important;
  }

  body.vg-event-21-years .vg-ev-mobi-text {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.vg-event-21-years .vg-ev-btn-mobi {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #ffd700 !important;
    text-decoration: none !important;
    padding: 2px 6px !important;
    background: rgba(255, 215, 0, 0.15) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    border-radius: 99px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  body.vg-event-21-years .vg-ev-close {
    font-size: 16px !important;
    padding: 0 4px !important;
    flex-shrink: 0 !important;
  }

  /* Logo Seal on Mobile */
  body.vg-event-21-years #masthead #logo a {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  body.vg-event-21-years .vg-divider-vertical,
  body.vg-event-21-years .vg-seal-info {
    display: none !important;
  }

  body.vg-event-21-years .vg-seal-icon {
    width: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 360px) {
  body.vg-event-21-years .vg-ev-mobi-text {
    font-size: 10px !important;
  }
  body.vg-event-21-years .vg-ev-star-badge {
    font-size: 8.5px !important;
    padding: 1px 4px !important;
  }
}
