/* =========================================================
   موّجه — UNIVERSITIES PAGE
   Built to match the supplied design and the existing
   Muwajeh site CSS system.
   ========================================================= */

:root {
  --color-primary: #0a1d38;
  --color-secondary: #c29447;
  --color-tertiary: #1e304c;
  --color-neutral: #f8fafc;

  --color-white: #ffffff;
  --color-black: #000000;

  --color-text: #44474d;
  --color-text-muted: #68717c;
  --color-border: #e2e8f0;

  --font-headline: "Tajawal", sans-serif;
  --font-body: "Cairo", sans-serif;
  --font-label: "Cairo", sans-serif;

  --container-width: 1280px;

  --transition: 180ms ease;
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;

  direction: rtl;

  background: var(--color-neutral);
  color: var(--color-text);

  font-family: var(--font-body);
  line-height: 1.6;

  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================================================
   HEADER
   Same design system as the rest of the website.
   ========================================================= */

.top-navigation {
  box-sizing: border-box;

  position: absolute;

  top: 24px;
  left: 50%;

  transform: translateX(-50%);

  width: calc(100% - 48px);
  max-width: 1280px;

  height: 64px;

  padding: 0 24px;

  display: flex;
  flex-direction: row;

  align-items: center;
  justify-content: space-between;

  gap: 24px;

  background: rgba(247, 249, 251, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.2);

  box-shadow: 0 10px 30px rgba(10, 29, 56, 0.04);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 9999px;

  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;

  width: auto;
  height: 48px;

  object-fit: contain;
}

.navigation-links {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 38px;

  height: 100%;

  margin-right: auto;
  margin-left: auto;
}

.nav-link {
  position: relative;

  display: flex;
  align-items: center;

  height: 100%;

  color: #4b4f55;

  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;

  white-space: nowrap;

  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-secondary);
  font-weight: 700;
}

.nav-link.active::after {
  content: "";

  position: absolute;

  bottom: 7px;
  right: 50%;

  transform: translateX(50%);

  width: 5px;
  height: 5px;

  background: var(--color-secondary);

  border-radius: 50%;
}

.login-button {
  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  height: 48px;

  padding: 0 30px;

  background: var(--color-secondary);
  color: #ffffff;

  border-radius: 9999px;

  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;

  white-space: nowrap;

  transition:
    background-color var(--transition),
    transform var(--transition);
}

.login-button:hover {
  background: #b1843d;
  transform: translateY(-1px);
}

/* =========================================================
   MAIN
   ========================================================= */

.main-content {
  width: 100%;
  max-width: 1280px;

  min-height: 1007px;

  margin: 0 auto;

  padding-top: 128px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* =========================================================
   PAGE CONTENT
   ========================================================= */

.page-content {
  width: 100%;

  padding: 0 48px 96px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 48px;
}

/* =========================================================
   PAGE TITLE BANNER
   ========================================================= */

.page-title-banner {
  width: 100%;
  height: 104px;

  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 16px;

  direction: rtl;
  text-align: right;
}

.page-badge,
.page-title,
.page-description {
  align-self: flex-start;
}
.page-badge {
  width: 200pxpx;
  height: 28px;

  padding: 6px 16px;

  display: flex;
  flex-direction: row;

  align-items: center;

  gap: 8px;

  background: var(--color-secondary);

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

  border-radius: 9999px;

  color: var(--color-primary);

  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.page-badge i {
  font-size: 11px;
}

.page-title {
  width: 267.42px;

  margin: 0;

  color: var(--color-primary);

  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;

  text-align: right;
}

.page-description {
  width: 659.3px;

  margin: 0;

  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;

  text-align: right;
}

/* =========================================================
   UNIVERSITIES AREA

   IMPORTANT:
   The supplied screenshot has:
   LEFT  = coming-soon card
   RIGHT = active university card

   We therefore deliberately use RTL visual ordering here.
   ========================================================= */

.universities-grid {
  width: 100%;
  height: 400px;

  display: flex;
  flex-direction: row;

  justify-content: flex-start;
  align-items: flex-start;

  gap: 24px;

  direction: rtl;
}

/* =========================================================
   ACTIVE UNIVERSITY CARD
   ========================================================= */

.university-card {
  box-sizing: border-box;

  width: calc(100% - 402.67px);
  height: 400px;

  flex: 0 0 calc(100% - 402.67px);

  display: flex;
  flex-direction: row;

  align-items: stretch;

  padding: 0;

  background: rgba(255, 255, 255, 0.85);

  border-width: 1px 1px 1px 4px;
  border-style: solid;
  border-color: rgba(10, 29, 56, 0.1);

  box-shadow: inset -40px 40px 100px -50px rgba(10, 29, 56, 0.05);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 24px;

  overflow: hidden;

  direction: ltr;

  order: 1;
}

/* =========================================================
   UNIVERSITY INFORMATION
   ========================================================= */

.university-info {
  width: calc(100% - 323.47px);
  height: 398px;

  flex: 1 1 auto;

  padding: 32px;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: flex-start;

  gap: 24px;

  direction: rtl;
}

/* University title */

.university-title {
  width: 100%;
  min-height: 64px;

  margin: 0;

  color: var(--color-primary);

  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;

  text-align: right;
}

.university-title span {
  display: inline;
}

/* =========================================================
   DETAILS
   ========================================================= */

.university-details {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 12px;
}

.detail-row {
  width: 100%;
  min-height: 24px;

  display: flex;
  flex-direction: row;

  align-items: center;
  justify-content: flex-start;

  gap: 12px;

  direction: ltr;
}

.detail-text {
  flex: 1;

  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;

  text-align: right;
}

.detail-icon {
  flex: 0 0 auto;

  color: var(--color-secondary);

  font-size: 16px;

  width: 18px;

  text-align: center;
}

/* =========================================================
   UNIVERSITY DESCRIPTION
   ========================================================= */

.university-description {
  width: 100%;
  max-width: 354px;

  margin: 0;

  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;

  text-align: right;
}

/* =========================================================
   UNIVERSITY BUTTON
   ========================================================= */

.university-button {
  width: 220.35px;
  height: 44px;

  margin-top: 0;

  padding: 12px 24px;

  display: flex;
  flex-direction: row;

  align-items: center;
  justify-content: center;

  gap: 8px;

  background: var(--color-secondary);
  color: #ffffff;

  border-radius: 9999px;

  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;

  transition:
    background-color var(--transition),
    transform var(--transition);
}

.university-button:hover {
  background: #b1843d;
  transform: translateY(-1px);
}

.university-button i {
  font-size: 11px;
}

/* =========================================================
   UNIVERSITY IMAGE
   ========================================================= */

.university-image {
  width: 323.47px;
  height: 398px;

  flex: 0 0 323.47px;

  overflow: hidden;

  direction: ltr;
}

.university-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* =========================================================
   COMING SOON CARD
   ========================================================= */

.coming-soon-card {
  box-sizing: border-box;

  width: 378.67px;
  height: 400px;

  flex: 0 0 378.67px;

  min-height: 400px;

  padding: 60px 32px;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  gap: 24px;

  background: rgba(255, 255, 255, 0.4);

  border: 2px dashed #e2e8f0;

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  border-radius: 24px;

  direction: rtl;

  order: 2;
}

/* Plus circle */

.coming-soon-icon {
  position: relative;

  width: 64px;
  height: 64px;

  flex: 0 0 64px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #eceef0;

  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);

  border-radius: 9999px;

  color: var(--color-primary);

  font-size: 24px;
}

.coming-soon-icon::before {
  content: "";

  position: absolute;

  inset: 0;

  background: var(--color-secondary);

  opacity: 0.2;

  filter: blur(6px);

  border-radius: 9999px;

  z-index: -1;
}

/* Coming soon content */

.coming-soon-content {
  width: 310.66px;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 12px;

  text-align: center;
}

.coming-soon-content h2 {
  width: 100%;

  margin: 0;

  color: var(--color-primary);

  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;

  text-align: center;
}

.coming-soon-content p {
  width: 100%;
  max-width: 301.77px;

  margin: 0;

  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;

  text-align: center;
}

/* Coming soon badge */

.coming-soon-badge {
  height: 28px;

  padding: 6px 16px;

  display: flex;
  flex-direction: row;

  align-items: center;
  justify-content: center;

  gap: 8px;

  background: #e6e8ea;

  border-radius: 9999px;

  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.coming-soon-badge i {
  font-size: 10px;
}

/* =========================================================
   FOOTER
   Uses the exact footer structure in the HTML you supplied.
   ========================================================= */

.site-footer {
  position: relative;

  width: 100%;

  margin-top: 80px;

  background: #f8fafc;

  color: var(--color-primary);

  border-top: 1px solid #e4e8ed;

  border-radius: 32px 32px 0 0;

  overflow: hidden;
}

/* Footer decoration */

.site-footer::before {
  content: "";

  position: absolute;

  top: -120px;
  left: 50%;

  width: 320px;
  height: 320px;

  transform: translateX(-50%);

  background: rgba(194, 148, 71, 0.06);

  border-radius: 50%;

  pointer-events: none;
}

/* Footer container */

.footer-container {
  position: relative;
  z-index: 1;

  width: calc(100% - 48px);
  max-width: 1184px;

  margin: 0 auto;

  padding: 60px 0 48px;

  display: grid;

  grid-template-columns: 2fr 1fr 1.3fr 1.3fr;

  gap: 60px;

  direction: rtl;
}

/* Brand */

.footer-brand {
  max-width: 330px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo img {
  width: auto;
  height: 58px;

  object-fit: contain;
}

.footer-description {
  margin: 20px 0 0;

  color: #68717c;

  font-family: var(--font-body);
  font-size: 13px;
  line-height: 2;

  text-align: right;
}

/* Footer columns */

.footer-column {
  display: flex;
  flex-direction: column;

  align-items: flex-start;
}

.footer-title {
  position: relative;

  margin: 0 0 22px;

  color: var(--color-primary);

  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-title::after {
  content: "";

  display: block;

  width: 28px;
  height: 3px;

  margin-top: 9px;

  background: var(--color-secondary);

  border-radius: 999px;
}

/* Footer links */

.footer-link {
  margin-bottom: 11px;

  color: #68717c;

  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;

  transition:
    color var(--transition),
    transform var(--transition);
}

.footer-link:hover {
  color: var(--color-secondary);
  transform: translateX(-3px);
}

/* Contact */

.footer-contact-item {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 14px;

  color: #68717c;

  font-family: var(--font-body);
  font-size: 12px;

  transition: color var(--transition);
}

.footer-contact-item:hover {
  color: var(--color-primary);
}

.footer-icon {
  width: 30px;
  height: 30px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  background: rgba(194, 148, 71, 0.12);

  color: var(--color-secondary);

  border: 1px solid rgba(194, 148, 71, 0.15);

  border-radius: 50%;

  font-size: 12px;
}

/* Socials */

.footer-socials {
  display: flex;

  align-items: center;

  gap: 9px;

  margin-top: 10px;
}

.footer-socials a {
  width: 34px;
  height: 34px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #ffffff;

  color: var(--color-primary);

  border: 1px solid #dde2e8;

  border-radius: 50%;

  font-size: 13px;

  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.footer-socials a:hover {
  background: var(--color-secondary);

  color: #ffffff;

  border-color: var(--color-secondary);

  transform: translateY(-2px);
}

/* Footer bottom */

.footer-bottom {
  position: relative;

  z-index: 1;

  border-top: 1px solid #e1e5ea;
}

.footer-bottom-container {
  width: calc(100% - 48px);
  max-width: 1184px;

  min-height: 64px;

  margin: 0 auto;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 20px;

  direction: rtl;
}

.footer-bottom p {
  margin: 0;

  color: #8a929d;

  font-family: var(--font-body);
  font-size: 11px;
}

.footer-bottom-links {
  display: flex;

  align-items: center;

  gap: 10px;

  color: #8a929d;

  font-family: var(--font-body);
  font-size: 11px;
}

.footer-bottom-links a {
  color: inherit;

  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--color-secondary);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
  .navigation-links {
    gap: 22px;
  }

  .nav-link {
    font-size: 16px;
  }

  .login-button {
    padding: 0 22px;
    font-size: 16px;
  }

  .universities-grid {
    gap: 20px;
  }

  .university-card {
    width: calc(100% - 398px);
    flex-basis: calc(100% - 398px);
  }

  .coming-soon-card {
    width: 378px;
    flex-basis: 378px;
  }
}

@media (max-width: 1200px) {
  .universities-grid {
    height: auto;

    flex-direction: column;

    align-items: center;

    gap: 24px;
  }

  .university-card,
  .coming-soon-card {
    width: 100%;
    max-width: 780px;

    flex-basis: auto;
  }

  .university-card {
    order: 1;
  }

  .coming-soon-card {
    order: 2;
  }

  .coming-soon-card {
    height: 300px;
    min-height: 300px;
  }

  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 500px;
  }
}

@media (max-width: 800px) {
  .top-navigation {
    width: calc(100% - 32px);
    padding: 0 18px;
  }

  .navigation-links {
    display: none;
  }

  .logo img {
    height: 44px;
  }

  .login-button {
    height: 44px;
    padding: 0 22px;
    font-size: 15px;
  }

  .page-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-title-banner {
    height: auto;
  }

  .page-title,
  .page-description {
    width: 100%;
  }

  .university-card {
    height: auto;

    flex-direction: column-reverse;
  }

  .university-image {
    width: 100%;
    height: 280px;

    flex-basis: 280px;
  }

  .university-info {
    width: 100%;
    height: auto;

    min-height: 398px;
  }

  .site-footer {
    margin-top: 60px;

    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 600px) {
  .main-content {
    padding-top: 104px;
  }

  .page-content {
    padding: 0 16px 60px;

    gap: 32px;
  }

  .page-badge {
    width: auto;
  }

  .page-title {
    font-size: 15px;
  }

  .page-description {
    font-size: 14px;
    line-height: 22px;
  }

  .university-info {
    padding: 24px;
  }

  .university-title {
    font-size: 21px;
    line-height: 29px;
  }

  .detail-text,
  .university-description,
  .coming-soon-content p {
    font-size: 14px;
    line-height: 23px;
  }

  .coming-soon-card {
    padding: 40px 24px;
  }

  .footer-container {
    width: calc(100% - 32px);

    grid-template-columns: 1fr 1fr;

    gap: 40px 24px;

    padding: 45px 0 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-description {
    font-size: 12px;
  }

  .footer-title {
    font-size: 16px;
  }

  .footer-link {
    font-size: 12px;
  }

  .footer-bottom-container {
    width: calc(100% - 32px);

    min-height: auto;

    padding: 20px 0;

    flex-direction: column;

    justify-content: center;

    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.auth-header-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #0a1d38;
  color: #c29447;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s ease;
}

.profile-button:hover {
  background: #c29447;
  color: #0a1d38;
  transform: translateY(-2px);
}

.login-button[hidden],
.profile-button[hidden] {
  display: none !important;
}

/* =========================
   ACCOUNT POPUP
   ========================= */

.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding-top: 95px;

}

.account-overlay[hidden] {
  display: none !important;
}

.account-popup {
  position: relative;

  width: 360px;
  max-width: calc(100% - 30px);

  padding: 30px;

  background: #ffffff;
  border-radius: 20px;

  box-shadow: 0 15px 45px rgba(10, 29, 56, 0.2);

  text-align: center;

  animation: accountPopupIn 0.2s ease;
}

@keyframes accountPopupIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-close {
  position: absolute;
  top: 12px;
  left: 12px;

  width: 32px;
  height: 32px;

  border: none;
  border-radius: 50%;

  background: #f1f3f5;
  color: #555;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

.account-close:hover {
  background: #e5e7eb;
}

.account-avatar {
  width: 64px;
  height: 64px;

  margin: 0 auto 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #0a1d38;
  color: #c29447;

  font-size: 24px;
}

.account-popup h2 {
  margin: 0 0 24px;

  color: #0a1d38;

  font-family: "Tajawal", sans-serif;
  font-size: 25px;
}

.account-info {
  margin-bottom: 22px;

  border: 1px solid #e1e5ea;
  border-radius: 12px;

  overflow: hidden;
}

.account-info-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 3px;

  padding: 13px 15px;

  text-align: right;
}

.account-info-row + .account-info-row {
  border-top: 1px solid #e1e5ea;
}

.account-info-row span {
  color: #6b7280;
  font-size: 11px;
}

.account-info-row strong {
  width: 100%;

  color: #0a1d38;

  font-size: 14px;

  overflow-wrap: anywhere;
}

.logout-button {
  width: 100%;
  height: 46px;

  border: none;
  border-radius: 999px;

  background: #0a1d38;
  color: #ffffff;

  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;
}

.logout-button:hover {
  background: #c29447;
  color: #0a1d38;
}

/* =========================================================
   FINAL MOBILE HEADER — ALIGNED
   Header only. Uses absolute centering so the hamburger,
   logo and login/profile are ALWAYS on the exact same row.
   ========================================================= */

.mobile-menu-button {
  display: none;
}

@media (max-width: 800px) {

  .top-navigation {
    position: absolute !important;

    top: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: calc(100% - 28px) !important;
    max-width: none !important;
    height: 58px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: block !important;

    box-sizing: border-box !important;

    z-index: 1000 !important;
  }


  /* =====================================================
     HAMBURGER — RIGHT
     ===================================================== */

  .top-navigation .mobile-menu-button {
    position: absolute !important;

    top: 50% !important;
    right: 12px !important;

    transform: translateY(-50%) !important;

    width: 40px !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;

    color: #0a1d38 !important;

    font-size: 21px !important;
    line-height: 1 !important;

    cursor: pointer !important;

    z-index: 1003 !important;
  }


  /* =====================================================
     LOGO — EXACT CENTER OF HEADER
     ===================================================== */

  .top-navigation .logo {
    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    transform: translate(-50%, -50%) !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    z-index: 1002 !important;
  }

  .top-navigation .logo img {
    display: block !important;

    width: auto !important;
    height: 42px !important;
    max-width: 120px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
  }


  /* =====================================================
     LOGIN / PROFILE — LEFT
     ===================================================== */

  .top-navigation .auth-header-area {
    position: absolute !important;

    top: 50% !important;
    left: 12px !important;

    transform: translateY(-50%) !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 7px !important;

    z-index: 1003 !important;
  }


  /* Login */

  .top-navigation .login-button {
    width: auto !important;
    height: 38px !important;

    margin: 0 !important;
    padding: 0 14px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 13px !important;
    line-height: 1 !important;

    white-space: nowrap !important;
  }


  /* Profile */

  .top-navigation .profile-button {
    width: 38px !important;
    height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: 0 0 38px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }


  /* =====================================================
     HIDE DESKTOP NAVIGATION
     ===================================================== */

  .top-navigation .navigation-links {
    display: none !important;
  }


  /* =====================================================
     OPEN MENU — DIRECTLY UNDER HEADER
     ===================================================== */

  .top-navigation.mobile-menu-open .navigation-links {
    position: absolute !important;

    top: 100% !important;
    right: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 7px !important;

    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    gap: 2px !important;

    background: #ffffff !important;

    border: 1px solid rgba(10, 29, 56, 0.08) !important;
    border-top: 0 !important;

    border-radius: 0 0 16px 16px !important;

    box-shadow: 0 14px 32px rgba(10, 29, 56, 0.14) !important;

    z-index: 1001 !important;
  }


  /* =====================================================
     MOBILE NAV LINKS
     ===================================================== */

  .top-navigation.mobile-menu-open
  .navigation-links
  .nav-link {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;

    margin: 0 !important;
    padding: 0 10px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    border-radius: 9px !important;

    font-size: 12px !important;
    line-height: 1 !important;

    white-space: nowrap !important;

    color: #4b4f55 !important;
  }

  .top-navigation.mobile-menu-open
  .navigation-links
  .nav-link:hover {
    background: rgba(194, 148, 71, 0.10) !important;
    color: #0a1d38 !important;
  }

  .top-navigation.mobile-menu-open
  .navigation-links
  .nav-link.active {
    background: rgba(194, 148, 71, 0.12) !important;
    color: #c29447 !important;
    font-weight: 700 !important;
  }

  .top-navigation.mobile-menu-open
  .navigation-links
  .nav-link.active::after {
    display: none !important;
  }


  /* =====================================================
     PROFILE POPUP
     ===================================================== */

  .account-overlay {
    padding-top: 82px !important;
  }

  .account-popup {
    width: 340px !important;
    max-width: calc(100% - 24px) !important;
  }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

  .top-navigation {
    top: 11px !important;
    width: calc(100% - 20px) !important;
    height: 54px !important;
  }

  .top-navigation .mobile-menu-button {
    right: 9px !important;

    width: 36px !important;
    height: 36px !important;

    font-size: 19px !important;
  }

  .top-navigation .logo img {
    height: 38px !important;
    max-width: 105px !important;
  }

  .top-navigation .auth-header-area {
    left: 9px !important;
    gap: 5px !important;
  }

  .top-navigation .login-button {
    height: 36px !important;
    padding: 0 11px !important;
    font-size: 11px !important;
  }

  .top-navigation .profile-button {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
  }

  .top-navigation.mobile-menu-open
  .navigation-links
  .nav-link {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 11px !important;
  }
}

/* =========================================================
   MOBILE AUTH VISIBILITY — DO NOT OVERRIDE HIDDEN
   ========================================================= */

@media (max-width: 800px) {

    .top-navigation .login-button[hidden],
    .top-navigation .profile-button[hidden] {
        display: none !important;
    }

    .top-navigation .login-button:not([hidden]) {
        display: flex !important;
    }

    .top-navigation .profile-button:not([hidden]) {
        display: flex !important;
    }
}