/* ========================================================================
   Green University — Top Utility Bar
   Dark green bar: contact, badge (optional), lang, icons, social
   ======================================================================== */

.grnu-topbar {
  display: flex;
  align-items: center;
  height: 44px;
  min-height: 44px;
  background: #0B3D2E;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.grnu-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  gap: 1rem;
  width: 100%;
}

/* ========== LEFT — Contact ========== */
.grnu-topbar__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
  flex-shrink: 0;
}

.grnu-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
}

.grnu-topbar__link:hover {
  color: #ffffff;
}

.grnu-topbar__link .grnu-topbar__icon-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.grnu-topbar__link .grnu-topbar__icon-inline svg {
  width: 14px;
  height: 14px;
  display: block;
}

.grnu-topbar__sep {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
  user-select: none;
  line-height: 1;
}

/* ========== CENTER — Badge (Admissions Portal) ========== */
.grnu-topbar__center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  height: 100%;
}

.grnu-topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  line-height: 1;
}

.grnu-topbar__badge--info {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

/* ========== RIGHT — Lang, utils, divider, social ========== */
.grnu-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  flex-shrink: 0;
}

.grnu-topbar__utils,
.grnu-topbar__social {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.grnu-topbar__divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.grnu-topbar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.grnu-topbar__icon:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.grnu-topbar__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.grnu-topbar__icon--outline svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grnu-topbar__lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.grnu-topbar__lang:hover {
  background: rgba(255, 255, 255, 0.08);
}

.grnu-topbar__lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  line-height: 1;
}

.grnu-topbar__lang-link:hover {
  color: #ffffff;
}

.grnu-topbar__lang-link--active {
  color: rgba(255, 255, 255, 0.95) !important;
}

.grnu-topbar__lang-link .grnu-topbar__lang-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.15rem;
  opacity: 0.8;
}

.grnu-topbar__lang-link .grnu-topbar__lang-chevron svg {
  width: 12px;
  height: 12px;
  display: block;
}

/* Apply Now CTA (optional) */
.grnu-topbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.25rem;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f6a44 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(20, 184, 166, 0.4);
}

.grnu-topbar__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .grnu-topbar__social .grnu-topbar__icon:nth-child(n+3) {
    display: none;
  }

  .grnu-topbar__inner {
    padding: 0 16px;
    gap: 0.5rem;
  }

  .grnu-topbar__center {
    display: none;
  }

  .grnu-topbar__left {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .grnu-topbar {
    height: 40px;
    min-height: 40px;
  }

  /* Email mobileda shart emas — joyni tejaymiz va overflowni oldini olamiz */
  .grnu-topbar__left a[href^="mailto:"] { display: none; }
  .grnu-topbar__left a[href^="mailto:"] + .grnu-topbar__sep { display: none; }

  /* Topbar mobil’da hech qachon kengayib ketmasin */
  .grnu-topbar__inner { padding: 0 12px; gap: 0.35rem; min-width: 0; }
  .grnu-topbar__left { min-width: 0; flex: 1; gap: 0.5rem; }
  .grnu-topbar__right { min-width: 0; flex-shrink: 0; gap: 0.35rem; }
  .grnu-topbar__link { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .grnu-topbar__sep { flex-shrink: 0; }

  /* Juda tor ekranda telefon matnini ham yashiramiz (faqat ikonlar qoladi) */
  @media (max-width: 360px) {
    .grnu-topbar__left a[href^="tel:"] { display: none; }
    .grnu-topbar__left a[href^="tel:"] + .grnu-topbar__sep { display: none; }
  }

  .grnu-topbar__link {
    font-size: 12px;
  }

  /* Kichik ekranda social o'rniga: karnay + ko'z + qidiruv */
  .grnu-topbar__social { display: none; }
  .grnu-topbar__divider { display: none; }
  .grnu-topbar__utils .grnu-topbar__icon { display: flex; }
  .grnu-topbar__utils .grnu-topbar__icon#grnu-topbar-speak,
  .grnu-topbar__utils .grnu-topbar__icon#grnu-topbar-a11y,
  .grnu-topbar__utils .grnu-topbar__icon#grnu-topbar-search { display: flex; }
  .grnu-topbar__utils .grnu-topbar__icon:not(#grnu-topbar-speak):not(#grnu-topbar-a11y):not(#grnu-topbar-search) { display: none; }

  .grnu-topbar__link .grnu-topbar__icon-inline {
    display: none;
  }
}
