.top-header,
.top-header * {
  box-sizing: border-box;
}

.top-header {
  border-style: solid;
  border-color: var(--neutral-02, #cacaca);
  border-width: 0px 0px 0.5px 0px;
  padding: 16px 80px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  flex-shrink: 0;
  height: 80px;
  position: relative;
  background-color: #FFFFFF;
  width: 100%;
  z-index: 1000;
}

.logo {
  flex-shrink: 0;
  width: 272.82px;
  height: 68px;
  position: relative;
  display: block;
}

.image-132 {
  width: 272.82px;
  height: 68px;
  position: absolute;
  left: 0px;
  top: 0px;
  object-fit: contain;
  aspect-ratio: 272.82/68;
}

.header-navigation-area {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}

.dr-benri-breast-cancer-focus {
  color: var(--neutral-06, #4d4d4d);
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  position: relative;
}

/* Site Header & Logo Styles */
.site-header {
  border-bottom: 0.5px solid var(--color-neutral-02);
  padding: 16px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background-color: #FFFFFF;
  width: 100%;
  z-index: var(--z-index-sticky);
}

.site-logo {
  flex-shrink: 0;
  width: 272.82px;
  height: 68px;
  position: relative;
}

.logo-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.site-logo-image {
  width: 272.82px;
  height: 68px;
  position: absolute;
  left: 0;
  top: 0;
  object-fit: contain;
  aspect-ratio: 272.82/68;
}

.site-logo-text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: var(--font-size-lg);
  line-height: 24px;
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-09);
  width: 100%;
  height: 100%;
}

/* Navigation styling */
.navigation-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-md, 16px);
  justify-content: flex-end;
  flex-shrink: 0;
  position: relative;
}

.navigation-container ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  align-items: center;
}

.navigation-container ul li {
  margin: 0;
  padding: 0;
  position: relative;
}

.navigation-container ul li a,
.medical-info-text {
  color: var(--color-neutral-06, #4d4d4d);
  text-align: center;
  font-size: var(--font-size-md, 14px);
  line-height: 20px;
  font-weight: var(--font-weight-medium, 500);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: all 0.3s ease;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: linear-gradient(135deg, rgba(248, 249, 251, 0.9) 0%, rgba(241, 243, 247, 0.8) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  backdrop-filter: blur(2px);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.navigation-container ul li a:hover,
.medical-info-text:hover {
  color: var(--color-primary, #113EF9);
  background-color: rgba(17, 62, 249, 0.08);
  border-color: rgba(17, 62, 249, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(17, 62, 249, 0.15);
}

.navigation-container ul li a:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(17, 62, 249, 0.2);
  background-color: rgba(17, 62, 249, 0.1);
}

/* Add subtle focus styles for accessibility */
.navigation-container ul li a:focus {
  outline: 2px solid var(--color-primary, #113EF9);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Add a subtle underline animation */
.navigation-container ul li a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-primary, #113EF9);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.navigation-container ul li a:hover::after {
  width: calc(100% - 24px);
}

/* Mobile Menu Toggle Button and Overlay */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
  width: 32px;
  height: 32px;
  position: relative;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #113EF9;
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-container {
  padding: 12px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #EAEAEA;
  padding-bottom: 12px;
  height: 56px;
  position: relative;
}

.mobile-menu-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #113EF9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.mobile-menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.mobile-navigation {
  margin-bottom: 24px;
}

.mobile-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-navigation ul li {
  margin-bottom: 16px;
}

.mobile-navigation ul li a {
  font-size: 18px;
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 0;
}

/* Mobile navigation with arrow icons */
.mobile-navigation .nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-navigation .nav li {
  margin-bottom: 0;
  border-bottom: 1px solid #EAEAEA;
}

.mobile-nav-item {
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  width: 100%;
}

.mobile-nav-item:hover {
  color: #113EF9;
}

.mobile-nav-item:hover .mobile-nav-arrow {
  stroke: #113EF9;
}

.mobile-nav-arrow {
  stroke: #113EF9;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease, stroke 0.3s ease;
}

.mobile-nav-arrow-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.mobile-nav-arrow-wrapper svg {
  width: 16px;
  height: 16px;
}

.mobile-nav-arrow-wrapper svg path {
  fill: #113EF9;
}

.mobile-nav-item:hover .mobile-nav-arrow-wrapper svg path {
  fill: #113EF9;
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #CACACA;
}

.dr-benri-info {
  color: #4D4D4D;
  font-size: 14px;
  line-height: 1.5;
}

/* Active state for hamburger */
.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .top-header {
    padding: 16px 40px;
  }

  .site-header {
    padding: 16px 40px;
  }
}

@media (max-width: 768px) {
  .top-header {
    padding: 16px 20px;
    height: 64px;
  }
  
  .logo, .image-132 {
    width: 160px;
    height: 40px;
  }
  
  .dr-benri-breast-cancer-focus {
    font-size: 12px;
    line-height: 16px;
  }
  
  .header-navigation-area {
    gap: 16px;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header-navigation-area {
    display: none;
  }
  
  .mobile-menu-container {
    padding: 16px 20px;
  }

  .site-header {
    padding: 16px 20px;
    height: 70px; /* Slightly smaller header on smaller tablets */
  }
  
  /* Tablet-specific navigation adjustments */
  .navigation-container ul {
    gap: 4px;
  }
  
  .navigation-container ul li a {
    font-size: 13px;
    padding: 10px 16px;
    min-height: 40px;
  }
  
  .navigation-container ul li a::after {
    bottom: 6px;
  }
}

@media (max-width: 576px) {
  .top-header {
    padding: 12px 16px;
    height: 56px;
    justify-content: space-between;
  }
  
  .header-navigation-area {
    display: none;
  }
  
  .logo, .image-132 {
    width: 160px;
    height: 40px;
  }
  
  .mobile-menu-container {
    padding: 12px 16px;
  }

  .site-header {
    justify-content: center;
    padding: 12px 16px;
    height: 56px;
  }
}

/* Prevent body scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Index header styling */
.index-header {
  background: linear-gradient(
    103.6deg,
    rgba(155, 211, 255, 1) 0%,
    rgba(159, 182, 253, 1) 100%
  );
  width: 100%;
  height: 200px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
}

/* Responsive adjustments for index-header */
@media (max-width: 768px) {
  .index-header {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .index-header {
    height: 100px;
  }
}

/* Post header styling */
.post-header {
  background: linear-gradient(
    103.6deg,
    rgba(155, 211, 255, 1) 0%,
    rgba(159, 182, 253, 1) 100%
  );
  width: 100%;
  height: 200px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
}

/* Page header styling */
.page-header {
  background: linear-gradient(
    103.6deg,
    rgba(155, 211, 255, 1) 0%,
    rgba(159, 182, 253, 1) 100%
  );
  width: 100%;
  height: 200px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
}

/* Tag header styling */
.tag-header {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 16px;
  z-index: 10;
}

/* Author header styling */
.author-header {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 16px;
  z-index: 10;
}
