/* =========================================================
   MUWAJEH — ABOUT PAGE
   Matches the supplied Figma About-page layout.
   Header + footer are kept consistent with index.html.
   ========================================================= */

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

  --color-white: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #d1d5db;

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

  --shadow-sm: 0 2px 8px rgba(10, 29, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 29, 56, 0.12);

  --transition: 180ms ease;
}

*,
*::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;
}

/* =========================================================
   HEADER — SAME AS INDEX
   ========================================================= */

.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: 5;
}

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

.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;
  text-decoration: none;
  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;

  text-decoration: none;
  white-space: nowrap;

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

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

/* =========================================================
   MAIN CANVAS
   Figma:
   display:flex
   flex-direction:column
   padding:120px 48px 64px
   gap:64px
   max-width:1280px
   ========================================================= */

.about-page {
  width: 100%;
  max-width: 1280px;
  min-height: 0;

  margin: 0 auto;
  padding: 120px 48px 64px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
}

/* =========================================================
   TOP ABOUT INTRO
   ========================================================= */

.about-heading {
  width: 100%;

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

  text-align: center;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-height: 30px;
  padding: 4px 12px;

  color: var(--color-secondary);
  background: rgba(194, 148, 71, 0.09);

  border: 1px solid rgba(194, 148, 71, 0.12);
  border-radius: 9999px;

  font-size: 10px;
  font-weight: 600;
}

.about-badge i {
  font-size: 9px;
}

.about-heading h1 {
  margin: 14px 0 0;

  color: var(--color-primary);

  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;

  line-height: 1.45;
}

.about-heading p {
  max-width: 780px;

  margin: 12px 0 0;

  color: #5e6670;

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

  line-height: 2;
}

/* =========================================================
   VISION + MISSION
   ========================================================= */

.about-main-cards {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 24px;
}

.about-card {
  position: relative;

  min-height: 190px;

  padding: 24px 28px;

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

  background: #ffffff;

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

  box-shadow: 0 8px 24px rgba(10, 29, 56, 0.045);

  text-align: right;
}

.about-card-icon {
  width: 40px;
  height: 40px;

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

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

  border-radius: 50%;

  font-size: 15px;
}

.about-card-icon.gold {
  background: var(--color-secondary);
}

.about-card-text {
  width: 100%;
  margin-top: 12px;
}

.about-card-text h2 {
  margin: 0;

  color: var(--color-primary);

  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 700;
}

.about-card-text p {
  max-width: 440px;

  margin: 9px 0 0;

  color: #626a74;

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

  line-height: 1.9;
}

/* =========================================================
   VALUES
   ========================================================= */

.values-section {
  width: 100%;
}

.section-title {
  margin: 0 0 22px;

  color: var(--color-primary);

  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;

  text-align: center;
}

.values-grid {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 16px;
}

.value-card {
  min-height: 142px;

  padding: 18px 14px;

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

  background: #ffffff;

  border: 1px solid #e3e7ec;
  border-radius: 14px;

  box-shadow: 0 6px 20px rgba(10, 29, 56, 0.035);

  text-align: center;
}

.value-icon {
  width: 31px;
  height: 31px;

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

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

  border-radius: 50%;

  font-size: 11px;
}

.value-card h3 {
  margin: 9px 0 0;

  color: var(--color-primary);

  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
}

.value-card p {
  margin: 5px 0 0;

  color: #6b727b;

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

  line-height: 1.75;
}

/* =========================================================
   STATISTICS — DARK BLUE BAR
   ========================================================= */

.about-stats {
  position: relative;

  width: 100%;
  min-height: 158px;

  padding: 25px 70px;

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

  background: var(--color-primary);

  border-radius: 14px;

  box-shadow: 0 8px 22px rgba(10, 29, 56, 0.08);
}

.stat-item {
  flex: 1;

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

  color: #ffffff;

  text-align: center;
}

.stat-item i {
  margin-bottom: 6px;

  color: var(--color-secondary);

  font-size: 18px;
}

.stat-item strong {
  color: #ffffff;

  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;

  line-height: 1.3;
}

.stat-item span {
  margin-top: 3px;

  color: #d6dde6;

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

.stat-divider {
  width: 1px;
  height: 65px;

  background: rgba(255, 255, 255, 0.16);
}

/* =========================================================
   CTA — DARK BLUE
   ========================================================= */

.about-cta {
  position: relative;

  width: 100%;
  min-height: 135px;

  padding: 28px 76px;

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

  gap: 30px;

  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(194, 148, 71, 0.12),
      transparent 22%
    ),
    #0a1d38;

  border-radius: 16px;

  overflow: hidden;
}

.cta-text {
  display: flex;
  flex-direction: column;

  text-align: right;
}

.cta-text h2 {
  margin: 0;

  color: #ffffff;

  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
}

.cta-text p {
  margin: 5px 0 0;

  color: #d4dae2;

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

.cta-button {
  flex-shrink: 0;

  min-width: 190px;
  height: 42px;

  padding: 0 18px;

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

  gap: 8px;

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

  border-radius: 9999px;

  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;

  text-decoration: none;

  box-shadow: 0 5px 15px rgba(194, 148, 71, 0.25);

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

.cta-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.cta-button i {
  font-size: 10px;
}

/* =========================================================
   FOOTER — SAME AS INDEX
   ========================================================= */

.site-footer {
  position: relative;

  margin-top: 0px;

  background: #f8fafc;

  color: var(--color-primary);

  border-top: 1px solid #e4e8ed;
  border-radius: 32px 32px 0 0;

  overflow: hidden;
}

.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 {
  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;
}

.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-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;
}

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

  display: block;

  width: 28px;
  height: 3px;

  margin-top: 9px;

  background: var(--color-secondary);
  border-radius: 999px;
}

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

  color: #68717c;

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

  line-height: 1.7;
  text-decoration: none;

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

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

.footer-contact-item {
  display: flex;
  align-items: center;

  gap: 10px;
  margin-bottom: 14px;

  color: #68717c;

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

  text-decoration: none;

  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;
}

.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;

  text-decoration: none;

  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 {
  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;
  text-decoration: none;

  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;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats {
    padding: 25px 35px;
  }

  .about-cta {
    padding: 28px 40px;
  }

  .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;
  }

  .about-page {
    padding: 110px 32px 50px;
    gap: 48px;
  }

  .about-main-cards {
    grid-template-columns: 1fr;
  }

  .about-stats {
    padding: 25px 20px;
  }

  .about-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .about-page {
    padding: 100px 20px 40px;
  }

  .about-heading h1 {
    font-size: 21px;
  }

  .about-heading p {
    font-size: 10px;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-stats {
    min-height: 130px;
    padding: 20px 10px;
  }

  .stat-item i {
    font-size: 15px;
  }

  .stat-item strong {
    font-size: 13px;
  }

  .stat-item span {
    font-size: 8px;
  }

  .about-cta {
    padding: 24px 22px;
  }

  .cta-text h2 {
    font-size: 13px;
  }

  .cta-text p {
    font-size: 8px;
  }

  .cta-button {
    width: 100%;
  }

  .site-footer {
    margin-top: 60px;
    border-radius: 24px 24px 0 0;
  }

  .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;
  }
}

@media (max-width: 420px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-main-card {
    padding: 20px;
  }

  .about-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 60%;
    height: 1px;
  }
}

/* =========================================================
   ABOUT PAGE — SIZE / FIGMA ADJUSTMENTS ONLY
   The original styles above are intentionally kept unchanged.
   These overrides make the content larger and add the background
   circle without changing the existing page structure.
   ========================================================= */

/* Page background + black/dark circular decoration */
.about-page {
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

/* Keep all actual content above the decorative circle */
.about-page > * {
  position: relative;
  z-index: 1;
}

/* Large soft dark circle behind the page content */
.about-page::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  top: 300px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.075);
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

/* =========================
   INTRO
   ========================= */

.about-badge {
  min-height: 38px;
  padding: 6px 16px;
  gap: 8px;
  font-size: 16px;

  /* Explicit RTL ordering */
  direction: rtl;
  flex-direction: row-reverse;
}

.about-badge i {
  font-size: 14px;
}

.about-heading h1 {
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.5;
}

.about-heading p {
  max-width: 768px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.625;
}

/* =========================
   VISION / MISSION CARDS
   ========================= */

.about-main-cards {
  gap: 24px;
}

.about-card {
  min-height: 230px;
  padding: 32px;
  border-radius: 24px;
}

.about-card-icon {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.about-card-text {
  margin-top: 16px;
}

.about-card-text h2 {
  font-size: 16px;
  line-height: 24px;
}

.about-card-text p {
  max-width: 514px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 26px;
}

/* =========================
   VALUES
   ========================= */

.values-section {
  width: 100%;
}

.section-title {
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 24px;
}

.values-grid {
  gap: 24px;
}

.value-card {
  min-height: 163px;
  padding: 24px;
  gap: 12px;
  border-radius: 24px;
}

.value-icon {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.value-card h3 {
  margin-top: 0;
  font-size: 16px;
  line-height: 24px;
}

.value-card p {
  margin-top: 0;
  font-size: 14px;
  line-height: 21px;
}

/* =========================
   STATS
   ========================= */

.about-stats {
  min-height: 199px;
  height: 199px;
  padding: 48px;
  border-radius: 24px;
}

.stat-item {
  gap: 0;
}

.stat-item i {
  margin-bottom: 8px;
  font-size: 30px;
}

.stat-item strong {
  font-size: 16px;
  line-height: 24px;
}

.stat-item span {
  margin-top: 0;
  font-size: 16px;
  line-height: 24px;
}

.stat-divider {
  height: 100px;
}

/* =========================
   CTA
   ========================= */

.about-cta {
  min-height: 194px;
  height: 194px;
  padding: 64px;
  border-radius: 24px;
}

.cta-text {
  gap: 16px;
}

.cta-text h2 {
  font-size: 16px;
  line-height: 20px;
}

.cta-text p {
  margin-top: 0;
  font-size: 16px;
  line-height: 24px;
}

.cta-button {
  min-width: 277px;
  height: 64px;
  padding: 20px 40px;
  gap: 12px;
  font-size: 16px;
}

.cta-button i {
  font-size: 16px;
}

/* =========================
   DESKTOP — do not shrink the
   Figma-sized content early
   ========================= */

@media (min-width: 1001px) {
  .about-page {
    min-height: 0;
  }
}

/* =========================
   Keep the larger design
   responsive on smaller screens
   ========================= */

@media (max-width: 1000px) {
  .about-card-text h2,
  .value-card h3 {
    font-size: 16px;
  }

  .about-card-text p,
  .about-heading p {
    font-size: 14px;
  }

  .about-stats {
    height: 199px;
    min-height: 199px;
    padding: 36px;
  }

  .about-cta {
    height: auto;
    min-height: 194px;
    padding: 42px;
  }
}

@media (max-width: 800px) {
  .about-page {
    min-height: auto;
  }

  .about-page::before {
    width: 360px;
    height: 360px;
  }

  .about-badge {
    font-size: 14px;
  }

  .about-heading h1 {
    font-size: 24px;
  }

  .about-card {
    min-height: 230px;
  }

  .about-stats {
    height: auto;
    min-height: 199px;
  }

  .about-cta {
    height: auto;
    min-height: 194px;
  }
}

@media (max-width: 600px) {
  .about-heading h1 {
    font-size: 22px;
  }

  .about-heading p {
    font-size: 13px;
  }

  .about-card-text p {
    font-size: 13px;
    line-height: 23px;
  }

  .value-card p {
    font-size: 13px;
  }

  .about-stats {
    min-height: 220px;
    padding: 28px 20px;
  }

  .about-cta {
    min-height: 220px;
    padding: 30px 22px;
  }

  .cta-text h2 {
    font-size: 15px;
  }

  .cta-text p {
    font-size: 13px;
  }
}

.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;
    }
}

/* =========================================================
   FIX MOBILE STATS DIVIDERS
   ========================================================= */

@media (max-width: 600px) {

    .about-stats {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px !important;
    }

    .about-stats .stat-divider {
        display: block !important;

        width: 60% !important;
        min-width: 0 !important;
        max-width: 60% !important;

        height: 1px !important;
        min-height: 1px !important;
        max-height: 1px !important;

        flex: 0 0 1px !important;

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

        background: rgba(255, 255, 255, 0.16) !important;

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

        box-shadow: none !important;
    }
}