/* Header Component Styles */
.cg-header-wrap {
  background: #FFFFFF;
  position: relative;
  z-index: 20;
}

.cg-topbar {
  background: #111318;
  color: #FFFFFF;
  font-size: 14px;
}

.cg-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
}

.cg-topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
}

.cg-topbar a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
}

.cg-topbar a:hover {
  color: var(--gold);
}

.cg-main-header {
  border-bottom: 1px solid var(--line);
  background: #FFFFFF;
}

.cg-navbar {
  padding-top: 12px;
  padding-bottom: 12px;
}

.cg .dropdown-toggle::after {
  display: none;
}

.cg-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cg-brand-img {
  height: 54px;
  width: auto;
  display: block;
}

.cg-desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
}

.cg-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #111318;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.cg-nav-link:hover,
.cg-nav-link:focus-visible {
  color: var(--red);
}

.cg-nav-link.active {
  color: #C8102E;
  box-shadow: inset 0 -3px 0 #C8102E;
}

.cg-dropdown-menu {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 40px -20px rgba(17, 19, 24, 0.35);
  padding: 10px;
  min-width: 256px;
  margin-top: 6px !important;
}

.cg-dropdown-item {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: #111318 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.cg-dropdown-item:hover,
.cg-dropdown-item:focus,
.cg-dropdown-item[aria-current="page"] {
  background: var(--bg);
  color: var(--red) !important;
}

/* Mobile Header Controls */
.cg-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: #111318 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.cg-menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: #111318;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* Mobile Right-to-Left Offcanvas Navigation */
.cg .cg-mobile-offcanvas {
  --bs-offcanvas-width: min(390px, 88vw);
  --bs-offcanvas-bg: #FFFFFF;
  --bs-offcanvas-border-color: var(--line);
  --bs-offcanvas-transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px -16px rgba(17, 19, 24, 0.22);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.cg-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #FFFFFF;
}

.cg-offcanvas-brand-img {
  height: 42px;
  width: auto;
}

.cg-offcanvas-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  opacity: 1;
}

.cg-offcanvas-body {
  padding: 10px 20px 28px;
  overflow-y: auto;
}

.cg-mobile-drawer {
  background: #FFFFFF;
  padding-top: 4px;
  padding-bottom: 12px;
}

.cg-mobile-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #EFEDE6;
  color: #111318 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.cg-mobile-link.active {
  color: var(--red) !important;
}

.cg-mobile-label {
  display: block;
  padding: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1199.98px) {
  .cg-brand-img {
    height: 48px;
  }
}

@media (max-width: 575.98px) {
  .cg-topbar {
    font-size: 13px;
  }

  .cg-brand-img {
    height: 44px;
  }
}
