/* ========================================================================
   Green University — Top Utility Bar
   Dark green bar: contact, badge, social icons, language — white text
   ======================================================================== */

/* ========== TOP BAR — Dark Green ========== */
.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 with icons ========== */
.grnu-topbar__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
}

.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: var(--grnu-white);
}

.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 — Test mode badge ========== */
.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 .grnu-topbar__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFB74D;
}

.grnu-topbar__badge .grnu-topbar__badge-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Badge variant: info (Admissions Portal etc.) */
.grnu-topbar__badge--info {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.grnu-topbar__lang-flag {
  flex-shrink: 0;
}

/* ========== RIGHT — Utility, social, language ========== */
.grnu-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
}

.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;
  transition: color 0.2s ease, background 0.2s ease;
}

.grnu-topbar__icon:hover {
  color: var(--grnu-white);
  background: rgba(255, 255, 255, 0.12);
}

.grnu-topbar__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* Outline icons (stroke, not fill) */
.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-left: 0.5rem;
  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: var(--grnu-white);
}

.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;
}

.grnu-topbar__lang .grnu-topbar__sep {
  margin: 0 0.2rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .grnu-topbar__icon:not([aria-label="Search"]):not([aria-label="Telegram"]) {
    display: none;
  }

  .grnu-topbar__right .grnu-topbar__sep:first-of-type {
    display: none;
  }

  .grnu-topbar__inner {
    padding: 0 16px;
    gap: 0.5rem;
  }

  .grnu-topbar__center {
    display: none;
  }

  .grnu-topbar__left {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .grnu-topbar {
    height: 40px;
    min-height: 40px;
  }

  .grnu-topbar__link {
    font-size: 12px;
  }

  .grnu-topbar__link .grnu-topbar__icon-inline {
    display: none;
  }
}
