:root {
  --color-primary: #117F86;
  --color-primary-light: #1da3ab;
  --color-secondary: #f4806a;
  --color-accent: #f8c850;
  --color-purple: #8b5cf6;
  --color-background: #fffdf5;
  --color-card: #ffffff;
  --color-text: #2d3748;
  --color-text-light: #4a5568;
  --color-border: #e2e8f0;

  --font-main: 'Baloo Bhaijaan 2', 'Cairo', sans-serif;
  --font-body: 'Cairo', sans-serif;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  direction: rtl;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--color-card);
  padding: 15px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  position: relative;
  z-index: 2000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-light);
  font-weight: 600;
  transition: color 0.2s ease;
}

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


/* Lightweight shared pictograms for the academy navigation (RTL + touch). */
.nav-links a.nav-link-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 40px;
  padding: 6px 9px;
  border-radius: 11px;
  font-size: 0.93rem;
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  background: rgba(17, 127, 134, 0.09);
  border-radius: 9px;
}

.nav-link-icon svg { display: block; width: 18px; height: 18px; }

.nav-links a.nav-link-item:hover,
.nav-links a.nav-link-item[aria-current="page"] {
  color: var(--color-primary);
  background: rgba(17, 127, 134, 0.075);
}

.nav-links a.nav-link-item[aria-current="page"] {
  font-weight: 800;
  background: rgba(248, 200, 80, 0.2);
}

.nav-links a.nav-link-item[aria-current="page"] .nav-link-icon {
  color: #73500a;
  background: rgba(248, 200, 80, 0.45);
}

@media (hover: none) {
  .nav-links a.nav-link-item:active {
    background: rgba(17, 127, 134, 0.12);
  }
}

.hero {
  text-align: center;
  padding: 60px 20px;
  background-image: radial-gradient(circle at center, rgba(17,127,134,0.05) 0%, transparent 70%);
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(17,127,134,0.3);
}

.btn:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(17,127,134,0.4);
}

.btn-secondary {
  background-color: var(--color-secondary);
  box-shadow: 0 4px 12px rgba(244,128,106,0.3);
}

.btn-secondary:hover {
  background-color: #ff917d;
  box-shadow: 0 6px 16px rgba(244,128,106,0.4);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 40px 0;
}

.card {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-10px);
}

.card.teal:hover { border-color: var(--color-primary); }
.card.coral:hover { border-color: var(--color-secondary); }
.card.yellow:hover { border-color: var(--color-accent); }
.card.purple:hover { border-color: var(--color-purple); }

.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.card.teal .card-icon { background-color: rgba(17,127,134,0.1); color: var(--color-primary); }
.card.coral .card-icon { background-color: rgba(244,128,106,0.1); color: var(--color-secondary); }
.card.yellow .card-icon { background-color: rgba(248,200,80,0.2); color: #d69e0b; }
.card.purple .card-icon { background-color: rgba(139,92,246,0.1); color: var(--color-purple); }

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.ad-container {
  margin: 40px auto;
  text-align: center;
  padding: 20px;
  background-color: rgba(0,0,0,0.02);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  position: relative;
}

.ad-container::before {
  content: "مساحة إعلانية";
  position: absolute;
  top: -10px;
  right: 20px;
  background-color: var(--color-background);
  padding: 0 10px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Shared academy footer: responsive navigation with decorative, self-hosted SVG pictograms. */
footer {
  background: linear-gradient(180deg, var(--color-card) 0%, #f7fbfa 100%);
  padding: 46px 20px 22px;
  border-top: 3px solid var(--color-accent);
  margin-top: 60px;
  color: var(--color-text-light);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
  text-align: right;
}

.footer-section { min-width: 0; }

.footer-section h3 {
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: clamp(1.14rem, 1.8vw, 1.45rem);
  line-height: 1.4;
}

.footer-section h3::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 8px;
  background: var(--color-accent);
  border-radius: 999px;
}

.footer-section p {
  line-height: 1.9;
  margin-bottom: 15px;
  max-width: 40ch;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li { margin: 0 0 4px; }

.footer-section ul li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 5px 8px;
  border-radius: 10px;
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Icon graphics are CSS-only, so link text stays readable without images or JS. */
.footer-section ul li a::before {
  content: "";
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: rgba(17, 127, 134, 0.09);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  transition: background-color 0.2s ease;
}

.footer-section ul li a[href$="arabic.html"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23117F86%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205.5C9%203.8%205.7%204%203%205v14c3.1-1%206.5-1%209%201.3%202.5-2.3%205.9-2.3%209-1.3V5c-2.7-1-6-1.2-9%20.5Z%22%2F%3E%3Cpath%20d%3D%22M12%205.5v14.8M6%209h3M15%209h3%22%2F%3E%3C%2Fsvg%3E");
}

.footer-section ul li a[href$="english.html"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23117F86%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%224%22%2F%3E%3Cpath%20d%3D%22m6.5%2016%203-8%203%208m-5-2h4M15%209h3m-1.5-2v9%22%2F%3E%3C%2Fsvg%3E");
}

.footer-section ul li a[href$="numbers.html"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23117F86%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%223%22%20width%3D%2214%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%207h8M9%2011h.01M15%2011h.01M9%2015h.01M15%2015h.01M9%2019h.01M15%2019h.01%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}

.footer-section ul li a[href$="games.html"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23117F86%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%208h10a4%204%200%200%201%203.9%203.2l.8%204.7a2.5%202.5%200%200%201-4.2%202.2L15.6%2016H8.4l-1.9%202.1a2.5%202.5%200%200%201-4.2-2.2l.8-4.7A4%204%200%200%201%207%208Z%22%2F%3E%3Cpath%20d%3D%22M8%2011v4m-2-2h4m5.5-.5h.01m2%202h.01%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}

.footer-section ul li a[href$="about.html"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23117F86%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3.5%2020v-1.5a5.5%205.5%200%200%201%2011%200V20H3.5ZM16%205a3%203%200%200%201%200%206m1%203a4%204%200%200%201%203.5%204v2%22%2F%3E%3C%2Fsvg%3E");
}

.footer-section ul li a[href$="contact.html"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23117F86%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222.5%22%2F%3E%3Cpath%20d%3D%22m4%207%208%206%208-6%22%2F%3E%3C%2Fsvg%3E");
}

.footer-section ul li a[href$="privacy.html"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23117F86%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202%204.5%205v6c0%205%203.2%208.3%207.5%2011%204.3-2.7%207.5-6%207.5-11V5L12%202Z%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2211%22%20width%3D%226%22%20height%3D%225.5%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M10.5%2011V9.5a1.5%201.5%200%200%201%203%200V11%22%2F%3E%3C%2Fsvg%3E");
}

.footer-section ul li a[href$="terms.html"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23117F86%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%202.5h8l4%204V21H6a2%202%200%200%201-2-2V4.5a2%202%200%200%201%202-2Z%22%2F%3E%3Cpath%20d%3D%22M14%202.5V7h4M8%2011h7M8%2015h7M8%2019h4%22%2F%3E%3C%2Fsvg%3E");
}

.footer-section ul li a:hover {
  color: var(--color-primary);
  background-color: rgba(17, 127, 134, 0.07);
}

.footer-section ul li a:hover::before,
.footer-section ul li a:focus-visible::before {
  background-color: rgba(248, 200, 80, 0.28);
}

.footer-section ul li a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  color: var(--color-primary);
}

.footer-section ul li a[aria-current="page"] {
  color: var(--color-primary);
  background-color: rgba(248, 200, 80, 0.16);
}

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 19px;
  border-top: 1px dashed var(--color-border);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 800px) {
  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
  }

  .footer-section:first-child p {
    max-width: 62ch;
  }
}

@media (max-width: 420px) {
  footer {
    padding: 32px 16px 18px;
  }

  .footer-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-section:first-child { grid-column: auto; }

  .footer-section h3 { margin-bottom: 10px; }

  .footer-section ul li a {
    min-height: 44px;
    padding: 4px 6px;
  }

  .footer-bottom { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-section ul li a,
  .footer-section ul li a::before {
    transition: none;
  }
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.section-title { margin-bottom: 40px; font-size: 2.2rem; color: var(--color-primary); }



/* On larger screens show the brand and reward balance above readable navigation links. */
@media (min-width: 901px) {
  header .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 18px;
  }

  header .nav > .logo { grid-column: 1; grid-row: 1; justify-self: start; }
  header .nav > #stars-badge { grid-column: 2; grid-row: 1; }
  header .nav > .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
  }
}

/* Shared responsive header, menu and rewards across all pages */
#stars-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 5px 13px;
  background: var(--color-accent);
  color: #65450a;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#stars-badge .stars-icon { font-size: 1.15rem; line-height: 1; }
#stars-badge:hover { box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14); }
#stars-badge:focus-visible,
.hamburger:focus-visible,
.close-menu:focus-visible,
.nav-links a:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
}

.hamburger, .close-menu { display: none; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(24, 39, 48, 0.55);
  z-index: 1999;
}

.nav-overlay.active { display: block; }

@media (max-width: 900px) {
  .hero h1 { font-size: 2.5rem; }
  .grid-cards { grid-template-columns: 1fr; }

  header { padding: 8px 0; }

  /* Logo on the right, reward badge and menu on the left; never wrap. */
  header .nav {
    display: flex;
    flex-flow: row nowrap;
    direction: rtl;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    gap: 8px;
    padding-inline: 12px;
  }

  header .nav > .logo {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    gap: 5px;
    font-size: clamp(1rem, 4.2vw, 1.35rem);
    line-height: 1.3;
  }

  header .nav > .logo > span {
    flex: none;
    font-size: 1.35rem !important; /* Normalizes the homepage inline icon size. */
    line-height: 1;
  }

  header .nav > #stars-badge {
    order: 1;
    min-height: 40px;
    padding: 5px 10px;
    gap: 5px;
    font-size: 0.9rem;
  }

  header .nav > .hamburger {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-primary);
    background: rgba(17, 127, 134, 0.06);
    font-size: 1.4rem;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    touch-action: manipulation;
  }

  header .nav > .hamburger:hover {
    background: rgba(17, 127, 134, 0.12);
  }

  header .nav > .nav-links {
    order: 3;
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(310px, 86vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: max(12px, env(safe-area-inset-top)) 14px 22px;
    background: var(--color-card);
    box-shadow: -4px 0 18px rgba(0, 0, 0, 0.14);
    z-index: 2001;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0.25s;
  }

  header .nav > .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links .close-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    flex: 0 0 auto;
    min-height: 44px;
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 6px;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
    z-index: 1;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 44px;
    width: 100%;
    padding: 9px 12px;
    border-bottom: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.98rem;
    line-height: 1.4;
    white-space: normal;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    color: var(--color-primary);
    background: rgba(17, 127, 134, 0.07);
  }


  /* Full-width, comfortable tap targets, without overflowing the drawer. */
  header .nav > .nav-links a.nav-link-item {
    width: 100%;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  header .nav > .nav-links a.nav-link-item .nav-link-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
  }

  .nav-links a:last-child { border-bottom: 0; }
}

@media (max-width: 360px) {
  header .nav { gap: 5px; padding-inline: 10px; }
  header .nav > .logo { font-size: 1rem; gap: 3px; }
  header .nav > .logo > span { font-size: 1.1rem !important; }
  header .nav > #stars-badge { padding-inline: 8px; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  header .nav > .nav-links, #stars-badge { transition: none; }
}

/* Homepage hero: compact share action aligned with the academy's visual identity */
.hero .hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 880px;
  gap: 12px;
  margin: 0 auto 25px;
}

.hero .hero-eyebrow {
  margin: 0;
  max-width: none;
  color: var(--color-primary);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.5;
}

.hero-share-area {
  position: relative;
  flex-shrink: 0;
}

.hero-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-card);
  color: var(--color-primary);
  box-shadow: 0 3px 12px rgba(17, 127, 134, 0.12);
  font-family: var(--font-main);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-share-button:hover {
  background: #fff7df;
  box-shadow: 0 5px 16px rgba(17, 127, 134, 0.2);
  transform: translateY(-2px);
}

.hero-share-button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.hero-share-icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.hero-share-status {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 2;
  width: max-content;
  max-width: min(265px, 75vw);
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.hero-share-status:empty {
  display: none;
}

.hero-main-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .hero {
    padding: 38px 10px;
  }

  .hero .hero-topbar {
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 20px;
  }

  .hero .hero-eyebrow {
    font-size: 0.88rem;
  }

  .hero-share-button {
    padding: 8px 11px;
    gap: 6px;
    font-size: 0.9rem;
  }

  .hero-share-icon {
    width: 18px;
    height: 18px;
  }

  .hero-main-actions {
    gap: 10px;
  }

  .hero-main-actions .btn {
    padding: 10px 18px;
    font-size: 1.04rem;
  }
}

@media (max-width: 340px) {
  .hero .hero-topbar {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-share-button {
    transition: none;
  }

  .hero-share-button:hover {
    transform: none;
  }
}
