/* Header Component - Logo & Navigation */
.main-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

/* Logo Container - Fixed dimensions for stability */
.header-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px; /* Prevent layout shift */
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-start;
}

/* Logo Frame - Stable container */
.logo-container {
  width: 300px; /* Fixed width for stability */
  height: 80px;  /* Fixed height for stability */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.main-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  background: transparent;
  border: none;
}

.main-logo-img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.header-text {
  display: flex;
  flex-direction: column;
  margin-left: 1rem;
}

.main-subtitle {
  font-weight: 400;
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.2;
}

/* Language Toggle */
.lang-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 60px;
  height: 40px; /* Fixed height */
  cursor: pointer;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-1px);
}

/* Responsive logo containers */
@media (min-width: 992px) {
  .logo-container {
    width: 400px;
    height: 100px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .logo-container {
    width: 320px;
    height: 80px;
  }
}

@media (max-width: 767px) {
  .logo-container {
    width: 280px;
    height: 60px;
  }
  
  .header-layout {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    min-height: 120px;
  }
  
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  
  .lang-toggle {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .logo-container {
    width: 200px;
    height: 50px;
  }
  
  .main-subtitle {
    font-size: 0.85rem;
  }
}