@charset "utf-8";

/* ========================================
   New Header Styles
   ======================================== */

/* Header Container */
.new-header-wrap {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.new-header-container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: static; /* Ensure no positioning conflicts */
}

/* ========================================
   Left Side - Logo Section
   ======================================== */

.new-header-left {
  flex: 0 0 auto;
}

.new-header-logo .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.new-header-logo .logo-link:hover {
  opacity: 0.9;
}

.logo-image {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 2.4rem;
  font-weight: bold;
  color: #333;
  line-height: 1;
  font-family: "Open Sans", Arial, sans-serif;
}

.brand-tagline {
  font-size: 1.2rem;
  color: #666;
  margin-top: 2px;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 400;
}

/* ========================================
   Right Side - Navigation Section
   ======================================== */

.new-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: visible; /* Ensure dropdown can overflow */
}

/* ========================================
   Language Dropdown (Custom Dropdown)
   ======================================== */

.language-dropdown {
  position: relative;
}

.language-toggle {
  background: none;
  border: 1px solid #ddd;
  padding: 4px 4px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-size: 1.4rem;
  color: #333;
  font-family: "Open Sans", Arial, sans-serif;
  width: 70px;
  justify-content: space-between;
  padding: 4px 10px;
}

.language-toggle:hover {
  border-color: #004ebf;
  background: #f8f9fa;
}

.language-toggle:focus {
  outline: 2px solid #004ebf;
  outline-offset: 2px;
  border-color: #004ebf;
}

.language-icon {
  font-size: 1.6rem;
}

.language-text {
  font-weight: 500;
}

.language-arrow {
  font-size: 1rem;
  color: #666;
  transition: transform 0.2s ease;
}

.language-dropdown.active .language-arrow {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.language-dropdown.active .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu-item {
  display: block;
  padding: 10px 12px;
  color: #333;
  text-decoration: none;
  font-size: 1.4rem;
  transition: background 0.2s ease;
  font-family: "Open Sans", Arial, sans-serif;
}

.language-menu-item:hover {
  background: #f8f9fa;
  color: #004ebf;
}

.language-menu-item.selected {
  background: #004ebf;
  color: #fff;
}

/* ========================================
   Login Button
   ======================================== */

.login-section {
  display: flex;
  align-items: center;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 16px;
  background: #004ebf;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: "Open Sans", Arial, sans-serif;
  border: none;
  cursor: pointer;
}

.login-btn:hover {
  background: #003a8f;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 78, 191, 0.3);
}

.login-btn:focus {
  outline: 2px solid #004ebf;
  outline-offset: 2px;
}

.login-btn:active {
  transform: translateY(0);
}

.login-icon {
  font-size: 1.6rem;
}

/* ========================================
   User Section (Logged In)
   ======================================== */

.user-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-display {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  gap: 10px;
  opacity: 1;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}

.user-name {
  font-size: 1.4rem;
  color: #333;
  font-weight: 500;
  font-family: "Open Sans", Arial, sans-serif;
}

/* ========================================
   Theme Toggle Button
   ======================================== */

.theme-toggle {
  position: relative;
  padding: 8px;
  color: #666;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.theme-toggle:hover {
  background: #f8f9fa;
  color: #004ebf;
}

.theme-toggle:focus {
  outline: 2px solid #004ebf;
  outline-offset: 2px;
}

.theme-icon {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(180deg);
}

/* ========================================
   Notification Bell
   ======================================== */

.notification-bell {
  position: relative;
  padding: 8px;
  color: #666;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.notification-bell:hover {
  background: #f8f9fa;
  color: #004ebf;
}

.notification-bell:focus {
  outline: 2px solid #004ebf;
  outline-offset: 2px;
}

.bell-icon {
  font-size: 1.8rem;
}

.notification-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e23d46;
  color: #fff;
  font-size: 1rem;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: "Open Sans", Arial, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Mobile Toggle Button
   ======================================== */

.mobile-toggle {
  display: flex;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.mobile-toggle:hover {
  background: #f8f9fa;
}

.mobile-toggle:focus {
  outline: 2px solid #004ebf;
  outline-offset: 2px;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   Mobile Menu Overlay
   ======================================== */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-height: 100vh;
  max-height: 100dvh; /* Dynamic viewport height for mobile browsers */
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateX(0);
}

/* ========================================
   Mobile Menu Header
   ======================================== */

.mobile-menu-header {
  display: none; /* Hidden to remove whitespace */
}

/* Keep styles below for reference if needed later
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  flex-shrink: 0;
}
*/

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.mobile-brand-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  font-family: "Open Sans", Arial, sans-serif;
}

.mobile-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close:hover {
  background: #e9ecef;
  color: #333;
}

.mobile-close:focus {
  outline: 2px solid #004ebf;
  outline-offset: 2px;
}

/* ========================================
   Mobile Menu Content
   ======================================== */

.mobile-menu-content {
  padding: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

/* ========================================
   Main Menu Mobile Structure (Matching Original)
   ======================================== */

/* Mobile GNB List Container */
.mobile_gnb_list {
  width: 100%;
  background: #fff;
  text-align: center;
  padding-bottom: 80px; /* Extra padding for iOS bottom navigation */
  padding-bottom: calc(
    80px + env(safe-area-inset-bottom)
  ); /* Account for iOS safe area */
}

/* Top Navigation */
.top_nav {
  height: 60px;
  background: #eee;
  line-height: 60px;
  padding: 0 10px; /* Reduced from 20px to 10px */
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.top_nav .select_drop {
  float: left;
}

.top_nav:after {
  content: "";
  display: table;
  clear: both;
}

/* GNB Area */
.gnb_area {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gnb_area a {
  display: block;
  padding: 0;
  color: #333;
}

.gnb_area .oneD {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  border-radius: 12px;
  border: 1px solid #e7e7e7;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gnb_area .oneD:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #004ebf;
}

.gnb_area .oneD a {
  border: none;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  font-weight: normal;
  text-decoration: none;
  color: #333;
  padding: 30px 20px;
  height: 100%;
  min-height: 140px;
}

.gnb_area .oneD:last-child a {
  border-bottom: none;
}

.gnb_area .oneD.depth a:after {
  content: "";
  display: none;
}

.gnb_area .oneD.depth.on a {
  color: #004ebf;
}

.gnb_area .oneD.depth.on a:after {
  transform: rotate(-180deg);
}

.gnb_area .twoD {
  display: none;
  background: #eaeaea;
}

.gnb_area .twoD.show {
  display: block;
}

.gnb_area .twoD a {
  padding: 20px 20px;
  font-size: 13px;
  border-bottom: 1px solid #ddd;
  font-weight: normal;
  height: auto;
  display: block;
  table-layout: auto;
}

.gnb_area .twoD a:last-child {
  border-bottom: 0;
}

/* Menu icon styling */
.gnb_area .menu-icon {
  display: block;
  font-size: 48px;
  margin-bottom: 12px;
  width: auto;
  text-align: center;
  flex-shrink: 0;
}

/* Show notification badge */
.show-notify {
  background: #e23d46;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
  min-width: 16px;
  text-align: center;
  display: inline-block;
}

/* Legacy mobile menu styles (kept for compatibility) */
.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.mobile-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}

.mobile-user-details {
  flex: 1;
}

.mobile-user-name {
  display: block;
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.2;
}

.mobile-user-type {
  display: block;
  font-size: 1.2rem;
  color: #666;
  margin-top: 2px;
  font-family: "Open Sans", Arial, sans-serif;
}

/* ========================================
   Mobile Navigation
   ======================================== */

.mobile-navigation {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  color: #333;
  text-decoration: none;
  font-size: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s ease;
  font-family: "Open Sans", Arial, sans-serif;
}

.mobile-nav-item:hover {
  color: #004ebf;
}

.mobile-nav-item:focus {
  outline: 2px solid #004ebf;
  outline-offset: 2px;
}

.mobile-nav-item.logout-item {
  color: #e23d46;
  border-bottom: none;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.mobile-nav-item.logout-item:hover {
  color: #c82333;
}

.mobile-nav-item.login-item {
  background: #004ebf;
  color: #fff;
  padding: 15px 20px;
  border-radius: 6px;
  margin: 10px 0;
  text-align: center;
  border-bottom: none;
}

.mobile-nav-item.login-item:hover {
  background: #003a8f;
  color: #fff;
}

/* ========================================
   Mobile Language Section
   ======================================== */

.mobile-language-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.mobile-section-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  font-family: "Open Sans", Arial, sans-serif;
}

.mobile-language-options {
  display: block;
  width: 100%;
}

/* Mobile Language Dropdown (Custom Dropdown) */
.mobile-language-dropdown {
  position: relative;
  width: auto;
  flex: 0 0 auto;
}

.mobile-language-toggle {
  width: auto;
  min-width: 70px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  font-family: "Open Sans", Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  height: 28px;
}

.mobile-language-toggle:hover {
  background-color: #fff;
  border-color: #004ebf;
}

.mobile-language-toggle:focus {
  outline: 2px solid #004ebf;
  outline-offset: 2px;
  border-color: #004ebf;
}

.mobile-language-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.mobile-language-text {
  font-weight: 500;
  flex-grow: 1;
  text-align: center;
  line-height: 1;
}

.mobile-language-arrow {
  font-size: 12px;
  color: #666;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.mobile-language-dropdown.active .mobile-language-arrow {
  transform: rotate(180deg);
}

.mobile-language-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-language-dropdown.active .mobile-language-menu {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.mobile-language-menu-item {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-size: 1.4rem;
  transition: background 0.2s ease;
  font-family: "Open Sans", Arial, sans-serif;
}

.mobile-language-menu-item:hover {
  background: #f8f9fa;
  color: #004ebf;
}

.mobile-language-menu-item.selected {
  background: #004ebf;
  color: #fff;
}

/* Mobile Theme Toggle */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 10px; /* Reduced from 15px to 10px */
  width: 100%;
  padding: 15px 10px; /* Reduced horizontal padding from 20px to 10px */
  border-bottom: 1px solid #e9ecef;
}

/* Mobile Menu Logo */
.mobile-menu-logo {
  flex-shrink: 0;
  margin-right: auto;
}

.mobile-menu-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

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

.mobile-menu-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.mobile-menu-brand-tagline {
  font-size: 10px;
  color: #6c757d;
  line-height: 1;
}

.select_drop {
  flex: 0 0 auto;
}

/* Mobile Notification */
.mobile-notification {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-notification-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 78, 191, 0.1);
  color: #004ebf;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mobile-notification-link:hover {
  background: rgba(0, 78, 191, 0.15);
  transform: translateY(-1px);
}

.mobile-notification-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.mobile-notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #dc3545;
  border-radius: 50%;
  display: none; /* Hidden by default */
}

.mobile-notification-badge.show-notify {
  display: block; /* Only show when notifications are present */
}

/* Dark theme styles for mobile notification */
.dark-theme .mobile-notification-link {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dark-theme .mobile-notification-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-theme-toggle-container {
  flex-shrink: 0;
}

.mobile-theme-toggle {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.mobile-theme-toggle:hover {
  background-color: #fff;
  border-color: #004ebf;
}

.mobile-theme-toggle:focus {
  outline: 2px solid #004ebf;
  outline-offset: 2px;
  border-color: #004ebf;
}

.mobile-theme-icon {
  font-size: 1.8rem;
  transition: transform 0.2s ease;
}

.mobile-theme-toggle:active .mobile-theme-icon {
  transform: scale(0.95);
}

/* Adjust select_drop for flex layout */
.select_drop {
  flex: 0 0 auto; /* Don't take remaining space */
  position: relative;
  z-index: 1002;
  overflow: visible;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
  .new-header-container {
    max-width: 100%;
    padding: 0 20px;
  }
}

@media (max-width: 1024px) {
  .new-header-container {
    padding: 0 15px;
  }

  .brand-tagline {
    /* display: none; */
    font-size: 1rem;
  }

  .new-header-right {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .new-header-container {
    height: 60px;
    padding: 0 15px;
  }

  .logo-image {
    width: 40px;
    height: 40px;
    margin-right: 4px;
  }

  .brand-name {
    font-size: 2rem;
  }

  .language-selector,
  .user-section .notification-bell,
  .user-name {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .user-info {
    gap: 5px;
  }

  .user-avatar {
    width: 30px;
    height: 30px;
  }

  .user-toggle {
    padding: 4px 8px;
  }

  .new-header-right {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .new-header-container {
    padding: 0 10px;
  }

  .mobile-menu {
    width: 100%;
  }

  .logo-image {
    width: 35px;
    height: 35px;
  }

  .brand-name {
    font-size: 1.8rem;
  }

  .mobile-menu-content {
    padding: 15px;
  }

  /* Adjust mobile controls for smaller screens */
  .mobile-controls {
    padding: 10px 5px;
    gap: 6px;
  }
}

/* Default: show short text on desktop/tablet, hide full text */
.lang-full {
  display: none;
}

.lang-short {
  display: inline;
}

/* Show short language text on mobile devices (slide menu only) */
@media (max-width: 768px) {
  .mobile-menu-overlay .lang-full {
    display: none !important;
  }

  .mobile-menu-overlay .lang-short {
    display: inline !important;
  }

  .mobile-language-toggle {
    padding: 6px 10px;
  }
}

@media (max-width: 375px) {
  /* Further reduce spacing for very small screens */
  .mobile-controls {
    padding: 10px 3px;
    gap: 4px;
  }

  .mobile-language-toggle {
    padding: 6px 8px;
    font-size: 12px;
  }

  .mobile-language-icon {
    font-size: 14px;
  }

  /* Show shortened language text on small screens */
  .lang-full {
    display: none !important;
  }

  .lang-short {
    display: inline !important;
  }

  /* Reduce header language toggle width when showing short text */
  .language-toggle {
    width: 60px;
    padding: 4px 6px;
    gap: 4px;
  }

  .language-icon {
    font-size: 14px;
  }

  .mobile-notification-icon {
    width: 18px;
    height: 18px;
  }

  .mobile-close {
    font-size: 28px;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 360px) {
  .new-header-container {
    height: 55px;
    padding: 0 8px;
  }

  .logo-image {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 1.6rem;
  }
}

/* ========================================
   Accessibility & Performance
   ======================================== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .new-header-wrap {
    border-bottom: 2px solid #000;
  }

  .dropdown-toggle,
  .user-toggle {
    border: 2px solid #000;
  }

  .login-btn {
    border: 2px solid #fff;
  }

  .mobile-toggle:hover {
    background: #fff;
  }

  .hamburger-line {
    background: #000;
  }
}

/* ========================================
   Dark Theme Classes (Manual Toggle)
   ======================================== */

/* Base dark theme styles when manually applied */
.dark-theme .new-header-wrap {
  background: #1a1a1a;
  border-bottom-color: #333;
}

.dark-theme .brand-name {
  color: #fff;
}

.dark-theme .brand-tagline {
  color: #ccc;
}

.dark-theme .dropdown-toggle,
.dark-theme .user-toggle,
.dark-theme .theme-toggle,
.dark-theme .language-toggle {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}

.dark-theme .dropdown-toggle:hover,
.dark-theme .user-toggle:hover,
.dark-theme .theme-toggle:hover,
.dark-theme .language-toggle:hover {
  background: #333;
  border-color: #555;
}

.dark-theme .language-menu {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark-theme .language-menu-item {
  color: #fff;
}

.dark-theme .language-menu-item:hover {
  background: #333;
  color: #4a90e2;
}

.dark-theme .language-menu-item.selected {
  background: #4a90e2;
  color: #fff;
}

.dark-theme .dropdown-menu,
.dark-theme .user-menu {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark-theme .dropdown-item,
.dark-theme .menu-item {
  color: #fff;
}

.dark-theme .dropdown-item:hover,
.dark-theme .menu-item:hover {
  background: #333;
  color: #4a90e2;
}

.dark-theme .login-btn {
  background: #4a90e2;
  color: #fff;
}

.dark-theme .login-btn:hover {
  background: #357abd;
}

.dark-theme .hamburger-line {
  background: #fff;
}

.dark-theme .notification-bell,
.dark-theme .theme-toggle {
  color: #ccc;
}

.dark-theme .notification-bell:hover,
.dark-theme .theme-toggle:hover {
  background: #333;
  color: #4a90e2;
}

.dark-theme .notification-count {
  background: #e74c3c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dark-theme .mobile_gnb_list {
  background: #1a1a1a;
}

.dark-theme .top_nav {
  background: #2a2a2a;
  border-bottom-color: #444;
}

.dark-theme .gnb_area a {
  color: #fff;
}

.dark-theme .gnb_area .oneD a {
  border-top-color: #333;
  color: #fff;
}

.dark-theme .gnb_area .oneD:last-child a {
  border-bottom-color: #333;
}

.dark-theme .gnb_area .oneD.depth.on a {
  color: #4a90e2;
}

.dark-theme .gnb_area .twoD {
  background: #333;
}

.dark-theme .gnb_area .twoD a {
  color: #fff;
  border-bottom-color: #444;
}

.dark-theme .mobile-menu {
  background: #1a1a1a;
}

.dark-theme .mobile-menu-header {
  background: #2a2a2a;
  border-bottom-color: #444;
}

.dark-theme .mobile-brand-name {
  color: #fff;
}

.dark-theme .mobile-close {
  color: #ccc;
}

.dark-theme .mobile-close:hover {
  background: #333;
  color: #fff;
}

.dark-theme .mobile-nav-item {
  color: #fff;
  border-bottom-color: #333;
}

.dark-theme .mobile-nav-item:hover {
  color: #4a90e2;
}

.dark-theme .mobile-nav-item.login-item {
  background: #4a90e2;
  color: #fff;
}

.dark-theme .mobile-nav-item.login-item:hover {
  background: #357abd;
}

.dark-theme .mobile-nav-item.logout-item:hover {
  color: #e74c3c;
  background: #2a1f1f;
}

.dark-theme .mobile-section-title {
  color: #fff;
}

.dark-theme .mobile-language-toggle {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}

.dark-theme .mobile-language-toggle:hover {
  background: #333;
  border-color: #555;
}

.dark-theme .mobile-language-menu {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark-theme .mobile-language-menu-item {
  color: #fff;
}

.dark-theme .mobile-language-menu-item:hover {
  background: #333;
  color: #4a90e2;
}

.dark-theme .mobile-language-menu-item.selected {
  background: #4a90e2;
  color: #fff;
}

.dark-theme .mobile-theme-toggle {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}

.dark-theme .mobile-theme-toggle:hover {
  background: #333;
  border-color: #555;
}

.dark-theme .user-avatar {
  border-color: #444;
}

.dark-theme .mobile-user-avatar {
  border-color: #444;
}

/* ========================================
   Theme Transition Animations
   ======================================== */

.new-header-wrap,
.dropdown-toggle,
.user-toggle,
.theme-toggle,
.dropdown-menu,
.user-menu,
.mobile-menu,
.mobile-menu-header,
.notification-bell {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark Mode Support (System Preference) */
/* @media (prefers-color-scheme: dark) {
  .new-header-wrap:not(.force-light) {
    background: #1a1a1a;
    border-bottom-color: #333;
  }

  .new-header-wrap:not(.force-light) .brand-name {
    color: #fff;
  }

  .new-header-wrap:not(.force-light) .brand-tagline {
    color: #ccc;
  }

  .new-header-wrap:not(.force-light) .dropdown-toggle,
  .new-header-wrap:not(.force-light) .user-toggle,
  .new-header-wrap:not(.force-light) .theme-toggle,
  .new-header-wrap:not(.force-light) .language-toggle {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
  }

  .new-header-wrap:not(.force-light) .dropdown-toggle:hover,
  .new-header-wrap:not(.force-light) .user-toggle:hover,
  .new-header-wrap:not(.force-light) .theme-toggle:hover,
  .new-header-wrap:not(.force-light) .language-toggle:hover {
    background: #333;
  }

  .new-header-wrap:not(.force-light) .dropdown-menu,
  .new-header-wrap:not(.force-light) .user-menu,
  .new-header-wrap:not(.force-light) .language-menu {
    background: #2a2a2a;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .new-header-wrap:not(.force-light) .dropdown-item,
  .new-header-wrap:not(.force-light) .menu-item,
  .new-header-wrap:not(.force-light) .language-menu-item {
    color: #fff;
  }

  .new-header-wrap:not(.force-light) .dropdown-item:hover,
  .new-header-wrap:not(.force-light) .menu-item:hover,
  .new-header-wrap:not(.force-light) .language-menu-item:hover {
    background: #333;
    color: #4a90e2;
  }

  .new-header-wrap:not(.force-light) .language-menu-item.selected {
    background: #4a90e2;
    color: #fff;
  }
    background: #333;
    color: #4a90e2;
  }

  .new-header-wrap:not(.force-light) .login-btn {
    background: #4a90e2;
  }

  .new-header-wrap:not(.force-light) .login-btn:hover {
    background: #357abd;
  }

  .new-header-wrap:not(.force-light) .hamburger-line {
    background: #fff;
  }

  .new-header-wrap:not(.force-light) .notification-bell,
  .new-header-wrap:not(.force-light) .theme-toggle {
    color: #ccc;
  }

  .new-header-wrap:not(.force-light) .notification-bell:hover,
  .new-header-wrap:not(.force-light) .theme-toggle:hover {
    background: #333;
    color: #4a90e2;
  }

  .mobile-menu-overlay:not(.force-light) .mobile_gnb_list {
    background: #1a1a1a;
  }

  .mobile-menu-overlay:not(.force-light) .top_nav {
    background: #2a2a2a;
    border-bottom-color: #444;
  }

  .mobile-menu-overlay:not(.force-light) .gnb_area a {
    color: #fff;
  }

  .mobile-menu-overlay:not(.force-light) .gnb_area .oneD a {
    border-top-color: #333;
    color: #fff;
  }

  .mobile-menu-overlay:not(.force-light) .gnb_area .oneD:last-child a {
    border-bottom-color: #333;
  }

  .mobile-menu-overlay:not(.force-light) .gnb_area .oneD.depth.on a {
    color: #4a90e2;
  }

  .mobile-menu-overlay:not(.force-light) .gnb_area .twoD {
    background: #333;
  }

  .mobile-menu-overlay:not(.force-light) .gnb_area .twoD a {
    color: #fff;
    border-bottom-color: #444;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-menu {
    background: #1a1a1a;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-menu-header {
    background: #2a2a2a;
    border-bottom-color: #444;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-brand-name {
    color: #fff;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-close {
    color: #ccc;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-close:hover {
    background: #333;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-nav-item {
    color: #fff;
    border-bottom-color: #333;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-nav-item:hover {
    color: #4a90e2;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-section-title {
    color: #fff;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-language-toggle {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-language-toggle:hover {
    background: #333;
    border-color: #555;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-theme-toggle {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-theme-toggle:hover {
    background: #333;
    border-color: #555;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-language-menu {
    background: #2a2a2a;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .mobile-menu-overlay:not(.force-light) .mobile-language-menu-item {
    color: #fff;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-language-menu-item:hover {
    background: #333;
    color: #4a90e2;
  }

  .mobile-menu-overlay:not(.force-light) .mobile-language-menu-item.selected {
    background: #4a90e2;
    color: #fff;
  }
} */

/* Focus Outline Improvements */
.dropdown-toggle:focus-visible,
.user-toggle:focus-visible,
.login-btn:focus-visible,
.mobile-toggle:focus-visible,
.notification-bell:focus-visible {
  outline: 2px solid #004ebf;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Performance Optimizations */
.new-header-wrap * {
  box-sizing: border-box;
}

.new-header-wrap {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GPU Acceleration for Animations */
.dropdown-menu,
.user-menu,
.mobile-menu,
.notification-bell,
.login-btn,
.hamburger-line {
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.main-header-mobile-menu-content {
  position: relative;
}

.main-header-mobile-menu-content .mobile_gnb_list {
  left: 0;
  top: 0; /* Changed from 78px to remove whitespace after hiding mobile-menu-header */
}

/* Responsive breakpoint - Tablet (larger tablets only) */
@media (max-width: 992px) and (min-width: 769px) {
  .gnb_area {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 15px;
  }

  .gnb_area .oneD a {
    padding: 25px 15px;
    min-height: 120px;
    font-size: 14px;
  }

  .gnb_area .menu-icon {
    font-size: 40px;
    margin-bottom: 10px;
  }
}

/* Responsive breakpoint - Mobile & Small Tablets (List View) */
@media (max-width: 768px) {
  .gnb_area {
    display: block !important;
    padding: 0;
    gap: 0;
  }

  .gnb_area .oneD {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e7e7e7;
    box-shadow: none;
  }

  .gnb_area .oneD:hover {
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
  }

  .gnb_area .oneD a {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center;
    text-align: left;
    padding: 15px 20px;
    min-height: auto;
    font-size: 15px;
  }

  .gnb_area .menu-icon {
    font-size: 24px;
    margin-bottom: 0;
    margin-right: 15px;
    display: inline-block;
  }
}

/* Print Styles */
@media print {
  .new-header-wrap {
    position: static;
    box-shadow: none;
    border-bottom: 1px solid #000;
  }

  .mobile-toggle,
  .dropdown-arrow,
  .user-arrow,
  .notification-bell,
  .mobile-menu-overlay {
    display: none !important;
  }
}
