/* ═══════════════════════════════════════════════
   MAKAN Academy — Shared Site Styles
   ═══════════════════════════════════════════════ */
:root {
  --blue: #6C8CFF;
  --blue-dark: #3B5BFF;
  --blue-glow: rgba(70, 110, 255, 0.22);
  --amber: #FFB020;
  --amber-2: #FFC24D;
  --amber-glow: rgba(255, 176, 32, 0.28);
  --green: #2EE6A0;
  --cyan: #4CC9F0;
  --red: #FF6B6B;
  --dark: #05070F;
  --dark-2: #0A0F1E;
  --dark-3: #111830;
  --dark-4: #182243;
  --text: #EDF1FF;
  --muted: #8B94B3;
  --border: rgba(108, 140, 255, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(59, 91, 255, 0.14), transparent 60%),
    radial-gradient(900px 650px at 8% 110%, rgba(76, 201, 240, 0.08), transparent 60%),
    var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

html[lang="en"] body { font-family: 'Space Grotesk', 'Cairo', sans-serif; }

::selection { background: rgba(59, 91, 255, 0.4); }

a { color: inherit; }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header-in {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.25rem; height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.site-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.site-logo img { height: 30px; display: block; }
.site-logo .tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.55rem; font-weight: 600; letter-spacing: 3px;
  color: var(--blue); border: 1px solid var(--border); border-radius: 50px;
  padding: 3px 9px; background: var(--dark-2);
}
.site-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.site-lang {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--dark-3); border: 1px solid var(--border); color: var(--text);
  padding: 0.45rem 0.85rem; border-radius: 50px; cursor: pointer;
  font-size: 0.78rem; font-weight: 700; font-family: inherit; transition: all 0.2s;
}
.site-lang:hover { border-color: var(--blue-dark); color: var(--blue); }
.site-lang svg { flex-shrink: 0; }
.site-cta {
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  color: #0A0F1E; font-weight: 800; text-decoration: none;
  padding: 0.45rem 1rem; border-radius: 50px; font-size: 0.78rem;
  box-shadow: 0 0 18px var(--amber-glow); transition: all 0.2s; white-space: nowrap;
}
.site-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 24px var(--amber-glow); }

/* ─── NAV PILLS ─── */
.site-nav {
  display: flex; gap: 0.4rem; justify-content: center;
  padding: 0.7rem 1.25rem;
  max-width: 1200px; margin: 0 auto;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  white-space: nowrap; text-decoration: none;
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
  padding: 0.5rem 1.1rem; border-radius: 50px;
  border: 1px solid transparent; transition: all 0.2s;
}
.site-nav a:hover { color: var(--text); background: var(--dark-3); }
.site-nav a.active {
  background: linear-gradient(135deg, var(--blue-dark), #2A44CC);
  color: #fff; box-shadow: 0 4px 18px var(--blue-glow);
}

/* ─── FREE ACADEMY BANNER ─── */
.free-banner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem;
  background: rgba(46, 230, 160, 0.08); border: 1px solid rgba(46, 230, 160, 0.3);
  color: var(--green); border-radius: 12px; padding: 0.9rem 1.25rem;
  font-size: 0.88rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem;
}
.free-banner i { font-size: 1.1rem; }
.free-banner a { color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

/* ─── PAGE LAYOUT ─── */
.page-wrap { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

.page-hero { text-align: center; padding: 2rem 0 2.5rem; }
.page-eyebrow {
  font-size: 0.72rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
}
html[lang="ar"] .page-eyebrow { letter-spacing: 0; }
.page-eyebrow::before, .page-eyebrow::after { content: ''; width: 24px; height: 1px; background: var(--blue-dark); opacity: 0.7; }
.page-title {
  font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; line-height: 1.4;
  background: linear-gradient(100deg, #FFFFFF 15%, #DCE6FF 55%, #9DBBFF 95%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 1rem;
}
.page-desc { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1rem; line-height: 1.9; }

/* ─── CARDS ─── */
.s-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.s-card:hover { border-color: rgba(108, 140, 255, 0.32); }

.s-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.s-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ─── STATS ─── */
.s-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem 3rem; padding: 1.5rem 0 0.5rem; }
.s-stat { text-align: center; }
.s-stat .num { font-family: 'Space Grotesk', 'Cairo', sans-serif; font-size: 1.8rem; font-weight: 700; }
.s-stat .lbl { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.c-blue { color: var(--blue); } .c-amber { color: var(--amber); }
.c-green { color: var(--green); } .c-cyan { color: var(--cyan); }

/* ─── ABOUT ─── */
.about-section { margin-top: 2rem; }
.about-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.about-section p { color: var(--muted); line-height: 2; font-size: 0.95rem; }
.value-tile { text-align: center; padding: 1.75rem 1.25rem; }
.value-tile i { font-size: 1.8rem; color: var(--blue); display: block; margin-bottom: 0.9rem; }
.value-tile h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.value-tile p { font-size: 0.83rem; color: var(--muted); line-height: 1.8; }

/* ─── PRICING ─── */
.price-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 2rem; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.highlight {
  border-color: var(--blue-dark);
  box-shadow: 0 0 40px var(--blue-glow);
  background: linear-gradient(180deg, var(--dark-2), rgba(59, 91, 255, 0.07));
}
.price-badge {
  position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(50%);
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  color: #0A0F1E; font-size: 0.68rem; font-weight: 800;
  padding: 0.25rem 0.9rem; border-radius: 50px; white-space: nowrap;
}
html[dir="ltr"] .price-badge { transform: translateX(-50%); }
.price-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.price-value { font-family: 'Space Grotesk', 'Cairo', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--text); }
.price-period { font-size: 0.78rem; color: var(--muted); margin-bottom: 1.25rem; }
.price-feats { list-style: none; flex: 1; margin-bottom: 1.5rem; }
.price-feats li {
  font-size: 0.85rem; color: var(--muted); padding: 0.4rem 0;
  padding-inline-start: 1.5rem; position: relative; line-height: 1.7;
}
.price-feats li::before {
  content: '✓'; position: absolute; inset-inline-start: 0;
  color: var(--green); font-weight: 700;
}
.price-cta {
  display: block; text-align: center; text-decoration: none;
  background: var(--dark-3); border: 1px solid var(--border);
  color: var(--text); font-weight: 700; font-size: 0.9rem;
  padding: 0.8rem; border-radius: 10px; transition: all 0.2s;
}
.price-cta:hover { border-color: var(--blue-dark); }
.price-card.highlight .price-cta {
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  color: #0A0F1E; border: none; box-shadow: 0 0 22px var(--amber-glow);
}

/* ─── POSTS ─── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.post-card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; padding: 0; }
.post-card .thumb {
  height: 150px; background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  background-size: cover; background-position: center;
}
.post-card .thumb i { font-size: 2rem; color: var(--blue); opacity: 0.5; }
.post-card .body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-tag {
  align-self: flex-start; font-size: 0.65rem; font-weight: 700;
  color: var(--cyan); border: 1px solid rgba(76, 201, 240, 0.3);
  background: rgba(76, 201, 240, 0.08); border-radius: 50px;
  padding: 0.2rem 0.7rem; margin-bottom: 0.7rem;
}
.post-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.6; margin-bottom: 0.5rem; color: var(--text); }
.post-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.8; flex: 1; }
.post-meta { font-size: 0.7rem; color: var(--muted); margin-top: 0.9rem; font-family: 'Space Grotesk', sans-serif; direction: ltr; text-align: end; }
html[dir="ltr"] .post-meta { text-align: start; }

/* Single post */
.post-full { max-width: 720px; margin: 0 auto; }
.post-full .post-head { text-align: center; margin-bottom: 2rem; }
.post-full h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.6; margin: 0.75rem 0; }
.post-full .content p { color: var(--muted); line-height: 2.1; font-size: 0.98rem; margin-bottom: 1.1rem; }
.post-full .content h3 { color: var(--text); font-size: 1.15rem; margin: 1.75rem 0 0.75rem; }
.post-back {
  display: inline-block; margin-bottom: 1.5rem; text-decoration: none;
  color: var(--muted); font-size: 0.85rem; font-weight: 600; transition: color 0.2s;
}
.post-back:hover { color: var(--blue); }

/* ─── FAQ ─── */
.faq-item { margin-bottom: 0.75rem; overflow: hidden; padding: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; background: transparent; border: none; cursor: pointer;
  color: var(--text); font-family: inherit; font-size: 0.95rem; font-weight: 700; text-align: start;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--dark-3); }
.faq-q i { color: var(--blue); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.4rem 1.25rem; color: var(--muted); font-size: 0.88rem; line-height: 2; }
.faq-item.open .faq-a { display: block; }

/* ─── CTA STRIP ─── */
.cta-strip {
  margin-top: 3rem; text-align: center; padding: 2.5rem 1.5rem;
  border: 1px solid var(--blue-dark); border-radius: 20px;
  background: linear-gradient(135deg, var(--dark-2), rgba(59, 91, 255, 0.08));
  box-shadow: 0 0 50px var(--blue-glow);
}
.cta-strip h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-strip p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.cta-strip .btn {
  display: inline-block; text-decoration: none;
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  color: #0A0F1E; font-weight: 800; padding: 0.9rem 2.2rem; border-radius: 12px;
  box-shadow: 0 0 25px var(--amber-glow); transition: all 0.2s;
}
.cta-strip .btn:hover { transform: translateY(-2px); }

/* ─── FOOTER ─── */
.site-footer {
  border-top: 1px solid var(--border); text-align: center;
  padding: 2.5rem 1.25rem; color: var(--muted); font-size: 0.82rem;
}
.site-footer .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.site-footer .links a { color: var(--muted); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.site-footer .links a:hover { color: var(--blue); }
.site-footer .brand { color: var(--blue); font-weight: 700; }
.site-footer .social { margin-top: 1rem; display: flex; justify-content: center; gap: 0.6rem; }
.site-footer .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--dark-3); border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; transition: all 0.3s;
}
.site-footer .social a:hover { background: var(--blue-dark); color: #fff; }

/* ─── REVEAL ─── */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ─── FOUNDER ─── */
.founder-card {
  margin-top: 1.5rem; border-inline-start: 3px solid var(--blue-dark);
  background: linear-gradient(135deg, var(--dark-2), rgba(59,91,255,0.06));
}
.founder-label {
  font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin-bottom: 0.5rem;
}
html[lang="ar"] .founder-label { letter-spacing: 0; }
.founder-name { font-size: 1.5rem; font-weight: 700; }
.founder-role { font-size: 0.9rem; color: var(--blue); font-weight: 600; margin: 0.15rem 0 1.1rem; }
.founder-vision { color: var(--muted); line-height: 2; font-size: 0.95rem; margin-bottom: 1rem; }
.founder-quote {
  border-inline-start: 3px solid var(--amber); background: var(--dark-3);
  border-radius: 0 10px 10px 0; padding: 1rem 1.25rem;
  color: var(--text); font-style: italic; font-size: 0.95rem; line-height: 1.9;
}

/* contact/social read as LTR data */
.site-footer .social a { direction: ltr; }

/* ─── RESPONSIVE ─── */
@media (max-width: 760px) {
  .s-grid-2, .s-grid-3 { grid-template-columns: 1fr; }
  .page-wrap { padding: 1.75rem 1rem 3rem; }
  .page-hero { padding: 1rem 0 1.75rem; }
  .s-card { padding: 1.35rem; }
  .s-stats { gap: 1.25rem 2rem; }
  .s-stat .num { font-size: 1.4rem; }
  .site-nav { justify-content: flex-start; padding: 0.6rem 1rem; }
  .cta-strip { padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
}
