/* =========================================================================
   Abuzz / iabuzz — site stylesheet
   Sections:
     1. Design tokens (CSS variables)
     2. Reset & base typography
     3. Layout primitives
     4. Navigation
     5. Buttons
     6. Hero
     7. Stats bar
     8. Section helpers
     9. Flagship game + image slider
    10. Featured games (alternating rows)
    11. All-games grid
    12. About
    13. Reviews
    14. Closing CTA
    15. Footer
    16. Sub-page header (privacy / blog hero)
    17. Privacy policy page
    18. Blog page
    19. Newsletter
    20. Responsive overrides
   ========================================================================= */


/* ===== 1. Design tokens ================================================== */
:root {
  --primary:        #5db188;
  --primary-dark:   #278457;
  --accent:         #009ee2;
  --accent-dark:    #0078a8;

  --bg:             #FFFEFB;
  --surface:        #FFFFFF;
  --surface-soft:   #F8FAFC;
  --text:           #1F2937;
  --muted:          #6B7280;
  --border:         #E5E7EB;
  --star:           #FBBF24;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.15);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
}


/* ===== 2. Reset & base typography ======================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Poppins', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }


/* ===== 3. Layout primitives ============================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }


/* ===== 4. Navigation ===================================================== */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 254, 251, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 22px;
}
.logo img { width: 160px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: 15px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--primary-dark); }
.topbar {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}
.topbar .container { display: flex; justify-content: flex-end; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 6px 0; }
.lang-switch a {
  color: var(--muted); font-weight: 600; font-size: 13px;
  padding: 4px 9px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { color: white; background: var(--primary); }


/* ===== 5. Buttons ======================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  font-family: inherit; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-store {
  background: var(--text); color: white;
  padding: 14px 22px; gap: 12px;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-store small  { display: block; font-size: 11px; opacity: .8; font-weight: 400; line-height: 1; margin-bottom: 2px; }
.btn-store strong { display: block; font-size: 15px; font-weight: 600; line-height: 1; }

.btn-play {
  background: var(--primary); color: white;
  margin-right: 10px;
}
.btn-play:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }


/* ===== 6. Hero =========================================================== */
.hero {
  position: relative; padding: 80px 0 60px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(99,102,241,.15), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(249,115,22,.15), transparent 50%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: center;
  background: url("images/hero-img.png") right top no-repeat;
  background-size: 51%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.2);
}
.hero h1 {
  font-size: clamp(38px, 5vw, 64px); font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 18px; color: var(--muted);
  max-width: 540px; margin-bottom: 32px;
}

.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-buttons img { width: 24px; }


/* ===== 7. Stats bar ====================================================== */
.stats {
  background: var(--text); color: white;
  padding: 36px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stats-grid .num {
  font-family: 'Fredoka';
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  background: linear-gradient(120deg, #FBBF24, #F97316);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-grid .lbl {
  font-size: 13px; color: #fff;
  text-transform: uppercase; letter-spacing: .08em;
}


/* ===== 8. Section helpers ================================================ */
section.block { padding: 100px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .kicker {
  color: var(--primary); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head p  { color: var(--muted); font-size: 17px; }


/* ===== 9. Flagship game + image slider =================================== */
.flagship {
  background: #e9f6ff;
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
  position: relative; overflow: hidden;
}
.flagship-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.flagship h3       { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.flagship .meta    { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.flagship p.desc   { color: var(--text); margin-bottom: 28px; font-size: 16px; }
.flagship-art {
  aspect-ratio: 1; border-radius: var(--radius-md);
  background: linear-gradient(160deg, #FB7185, #BE185D);
  display: grid; place-items: center; color: white;
  font-family: 'Fredoka'; font-size: 28px; font-weight: 700;
  text-align: center; padding: 30px;
  box-shadow: var(--shadow-lg);
}

.stars { color: var(--star); letter-spacing: 1px; }

/* --- Fading slider (used inside .flagship-art) --- */
.slider {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #f1f5f9; /* fallback while images load */
}
.slider .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: inherit;
}
.slider .slide.active { opacity: 1; }

.slider-dots {
  position: absolute; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.slider-dots .dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; padding: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.slider-dots .dot.active {
  background: white; transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  .slider .slide { transition: opacity .2s linear; }
}


/* ===== 10. Featured games (alternating rows) ============================= */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; margin-bottom: 60px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-art { order: 2; }

.feature-art {
  aspect-ratio: 4/3; border-radius: var(--radius-md);
  display: grid; place-items: center; color: white;
  font-family: 'Fredoka'; font-size: 24px; font-weight: 700; text-align: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.feature-art img { width: 100%; }
.feature-art.green  { background: linear-gradient(160deg, #4ADE80, #16A34A); }
.feature-art.orange { background: linear-gradient(160deg, #FBBF24, #F97316); }
.feature-art.blue   { background: linear-gradient(160deg, #38BDF8, #2563EB); }
.feature-art.purple { background: linear-gradient(160deg, #A78BFA, #7C3AED); }

.feature-text h3        { font-size: 28px; margin-bottom: 8px; }
.feature-text .meta     { display: flex; gap: 16px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.feature-text p         { color: var(--muted); margin-bottom: 24px; }


/* ===== 11. All-games grid ================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.game-icon {
  aspect-ratio: 1; border-radius: 18px; margin-bottom: 14px;
  display: grid; place-items: center; color: white;
  font-family: 'Fredoka'; font-weight: 700; font-size: 14px;
  text-align: center;
  overflow: hidden;
}
.game-card h4 {
  font-family: 'Poppins'; font-size: 15px; font-weight: 600;
  margin-bottom: 4px;
}
.game-card .meta-row {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; margin-bottom: 12px;
}
.game-card .new-tag { color: var(--accent); font-weight: 600; font-size: 13px; }
.game-card a.play-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 13px;
}
.game-card a.play-link:hover { color: var(--primary-dark); }


/* ===== 12. About ========================================================= */
.about {
  background: var(--surface);
  border-radius: var(--radius-lg); padding: 60px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  align-items: center;
}
.about-art {
  aspect-ratio: 1; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #6366F1, #F97316);
  display: grid; place-items: center; color: white;
  font-family: 'Fredoka'; font-size: 64px; font-weight: 700;
  overflow: hidden;
}
.about-art img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: 36px; margin-bottom: 20px; }
.about p  { color: var(--muted); margin-bottom: 16px; }
.about .mainto { color: var(--accent); }

.about-stats { display: flex; gap: 32px; margin-top: 24px; }
.about-stats div .num {
  font-family: 'Fredoka'; font-size: 28px;
  color: var(--primary); font-weight: 700; text-align: center;
}
.about-stats div .lbl { font-size: 13px; color: var(--muted); }


/* ===== 13. Reviews ======================================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px;
}
.review-card .stars { font-size: 16px; margin-bottom: 12px; }
.review-card blockquote {
  font-size: 15px; color: var(--text); line-height: 1.6;
  margin-bottom: 18px;
}
.review-card .reviewer { display: flex; align-items: center; gap: 12px; }

.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: white; font-weight: 600; font-size: 14px;
}
.reviewer-info .name   { font-size: 14px; font-weight: 600; }
.reviewer-info .source { font-size: 12px; color: var(--muted); }


/* ===== 14. Closing CTA =================================================== */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  padding: 70px 60px; text-align: center; color: white;
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.cta p  {
  font-size: 18px; opacity: .95;
  max-width: 600px; margin: 0 auto 32px;
}
.cta .store-buttons { justify-content: center; }
.cta .btn-store     { background: white; color: var(--text); }


/* ===== 15. Footer ======================================================== */
footer {
  background: var(--text); color: rgba(255,255,255,.7);
  padding: 60px 0 30px; margin-top: 80px;
}
footer a       { color: rgba(255,255,255,.7); transition: color .2s; }
footer a:hover { color: white; }

.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px; margin-bottom: 40px;
}
.footer-grid h5 {
  color: white; font-family: 'Poppins';
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-grid ul       { list-style: none; }
.footer-grid li       { margin-bottom: 8px; }
.footer-grid a        { font-size: 14px; }
.footer-grid .brand p { font-size: 14px; max-width: 320px; margin-top: 12px; }
.footer-grid .brand .logo { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}


/* ===== 16. Sub-page header (privacy / blog hero) ========================= */
.page-header {
  position: relative; padding: 80px 0 60px;
  text-align: center; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(99,102,241,.12), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(249,115,22,.12), transparent 50%);
}
.page-header h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 700; margin-bottom: 14px;
}
.page-header h1 .highlight {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-header .subtitle  { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto; }
.page-header .updated   { color: var(--muted); font-size: 15px; }

.breadcrumb {
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 500;
}
.breadcrumb a       { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }


/* ===== 17. Privacy policy page =========================================== */
.policy-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 60px;
  padding: 40px 0 100px; align-items: start;
}

.toc {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
}
.toc h4 {
  font-family: 'Poppins'; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 14px;
}
.toc ul { list-style: none; }
.toc li { margin-bottom: 6px; }
.toc a {
  display: block; padding: 6px 10px; border-radius: 8px;
  font-size: 14px; color: var(--muted); font-weight: 500;
  transition: all .2s;
}
.toc a:hover { background: var(--surface-soft); color: var(--primary); }

.policy-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 56px;
}
.policy-content .lead {
  font-size: 18px; color: var(--text);
  padding: 20px 24px;
  background: var(--surface-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 40px;
}
.policy-content h2 {
  font-size: 26px; margin-top: 48px; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--surface-soft);
  scroll-margin-top: 96px;
}
.policy-content h2:first-of-type { margin-top: 0; }
.policy-content h3 { font-size: 19px; margin-top: 28px; margin-bottom: 10px; color: var(--text); }
.policy-content p  { margin-bottom: 16px; color: var(--text); }
.policy-content ul,
.policy-content ol { margin: 16px 0 20px 24px; padding-left: 0; }
.policy-content li { margin-bottom: 8px; padding-left: 6px; }
.policy-content strong { color: var(--text); font-weight: 600; }

.callout {
  padding: 20px 24px; border-radius: var(--radius-sm); margin: 24px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.callout p { margin: 0; }
.callout-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; font-size: 18px;
}
.callout-info { background: #EEF2FF; }
.callout-info .callout-icon { background: var(--primary); color: white; }

.contact-block {
  background: linear-gradient(135deg, #EEF2FF, #FFEDD5);
  border-radius: var(--radius-md);
  padding: 32px; margin-top: 24px;
}
.contact-block h3 { margin-top: 0 !important; margin-bottom: 12px; }
.contact-block p  { margin-bottom: 8px; }


/* ===== 18. Blog page ===================================================== */
.blog-wrapper { padding: 40px 0 100px; }

.post {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px; margin-bottom: 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post.reverse .post-image { order: 2; }

.post-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid; place-items: center;
  color: white;
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: 22px; text-align: center;
  box-shadow: var(--shadow-md);
}
.post-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-content .post-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
  margin-bottom: 14px;
}
.post-content .post-meta .category { color: var(--primary); font-weight: 600; }
.post-content .post-meta .dot      { color: var(--border); }
.post-content h2 {
  font-family: 'Fredoka', 'Poppins', sans-serif;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.2;
  color: var(--text); margin-bottom: 16px;
}
.post-content h2 a         { color: inherit; transition: color .2s; }
.post-content h2 a:hover   { color: var(--primary); }
.post-content p {
  color: var(--muted); line-height: 1.7;
  margin-bottom: 14px; font-size: 15px;
}
.post-content .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 15px;
  margin-top: 8px;
  transition: gap .2s, color .2s;
}
.post-content .read-more:hover { color: var(--primary-dark); gap: 10px; }


/* ===== 19. Newsletter ==================================================== */
.newsletter {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  padding: 60px 40px; text-align: center; color: white;
  margin-top: 24px;
}
.newsletter h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px); color: white;
  margin-bottom: 12px;
}
.newsletter p {
  font-size: 17px; opacity: .95;
  max-width: 540px; margin: 0 auto 28px;
}
.newsletter form {
  display: flex; gap: 10px;
  max-width: 480px; margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  flex: 1; min-width: 200px;
  padding: 14px 20px; border-radius: 999px; border: none;
  font-family: 'Poppins', sans-serif; font-size: 15px;
  background: white; color: var(--text);
}
.newsletter input[type="email"]:focus { outline: 2px solid white; outline-offset: 2px; }
.newsletter button {
  padding: 14px 28px; border-radius: 999px; border: none;
  font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600;
  background: var(--text); color: white; cursor: pointer;
  transition: transform .15s ease;
}
.newsletter button:hover { transform: translateY(-1px); }


/* ===== 20. Responsive overrides ========================================== */
@media (max-width: 1024px) {
  .btn-play     { margin-bottom: 10px; }
  .hero-visual  { display: none; }
  .hero-grid    { background-size: 50%; padding-top: 450px; background-position: left top;}
}

@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; gap: 24px; padding: 20px 0 60px; }
  .toc           { position: static; }
}

@media (max-width: 860px) {
  .hero-grid,
  .flagship      { grid-template-columns: 1fr; gap: 40px; padding: 40px 28px; }
  .post          { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .post.reverse .post-image { order: 0; }
  .post-content h2 { font-size: 24px; }
  .hero-grid    { background-size: 60%; padding-top: 450px;}
}

@media (max-width: 760px) {
  .about         { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-grid    { background-size: 90%; padding-top: 450px; background-position: center top; }
}

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature-row.reverse .feature-art { order: 0; }
  .policy-content { padding: 32px 24px; }
}

/* ===== RTL support (Arabic) ============================================== */
[dir="rtl"] { direction: rtl; }
/* keep the language switcher in the same top corner as LTR */
[dir="rtl"] .topbar .container { justify-content: flex-start; }
/* mirror list bullet indentation */
[dir="rtl"] ul { padding-right: 1.2em; padding-left: 0; }
/* hero art is anchored right in LTR; flip it left so it doesn't sit under the RTL text */
[dir="rtl"] .hero-grid { background-position: left top; }
/* store-button badges read left-to-right; keep their internal layout intact */
[dir="rtl"] .btn-store { direction: ltr; }

@media (max-width: 500px) {
    .hero-grid {
        padding-top: 300px;
    }
}