/*
Theme Name: مِنهاج — Minhaj Educational
Theme URI: https://example.com/minhaj
Author: Minhaj Team
Author URI: https://example.com
Description: قالب ووردبريس احترافي لمنصة تعليمية مصغرة لمناهج المدارس السعودية الأهلية والدولية. تصميم تفاعلي متحرك بالكامل، هوية بصرية زمردية ذهبية، دعم RTL كامل، لوحة تخصيص شاملة من مظهر > تخصيص، ونظام تسجيل طلاب مدمج بلا حاجة لأي إضافة.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minhaj
Tags: education, rtl-language-support, custom-colors, custom-menu, custom-logo, featured-images, one-column, translation-ready, block-styles, wide-blocks
*/

/* =========================================================
   1) المتغيرات والأساسيات
   ========================================================= */
:root {
  --mh-primary: #0c7255;
  --mh-primary-dark: #08523d;
  --mh-primary-fg: #fbfcf7;
  --mh-gold-light: #f1d27a;
  --mh-gold: #c9a227;
  --mh-gold-dark: #9a7a1c;
  --mh-gold-fg: #5e4413;
  --mh-gold-grad: linear-gradient(135deg, var(--mh-gold-light) 0%, var(--mh-gold) 48%, var(--mh-gold-dark) 100%);
  --mh-gold-grad-flat: linear-gradient(90deg, var(--mh-gold-light), var(--mh-gold), var(--mh-gold-dark));
  --mh-primary-rgb: 12, 114, 85;
  --mh-gold-rgb: 201, 162, 39;
  --mh-forest-rgb: 18, 59, 49;
  --mh-forest: #123b31;
  --mh-forest-2: #0d2c25;
  --mh-forest-fg: #f3faf5;
  --mh-mint: #eaf6ee;
  --mh-bg: #faf9f3;
  --mh-card: #ffffff;
  --mh-fg: #15352c;
  --mh-muted: #f2f1e9;
  --mh-muted-fg: #56736a;
  --mh-border: #e3e7dc;
  --mh-destructive: #dc2626;
  --mh-whatsapp: #22c55e;
  --mh-radius: 1rem;
  --mh-radius-lg: 1.5rem;
  --mh-radius-xl: 2rem;
  --mh-shadow: 0 1px 2px rgba(var(--mh-forest-rgb), .06), 0 8px 24px -12px rgba(var(--mh-forest-rgb), .12);
  --mh-shadow-lg: 0 24px 48px -16px rgba(var(--mh-primary-rgb), .22), 0 8px 16px -8px rgba(21, 53, 44, .1);
  --mh-ease: cubic-bezier(.22, 1, .36, 1);
  --mh-head: "Cairo", "Tajawal", system-ui, sans-serif;
  --mh-body: "Tajawal", "Cairo", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mh-bg);
  color: var(--mh-fg);
  font-family: var(--mh-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mh-head);
  font-weight: 800;
  line-height: 1.35;
  color: var(--mh-fg);
  margin: 0;
}

p { margin: 0; }
a { color: var(--mh-primary); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--mh-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }

::selection { background: rgba(var(--mh-gold-rgb), .35); color: #3d2c07; }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: #ecefe2; }
::-webkit-scrollbar-thumb { background: linear-gradient(#0c7255, #0a5c46); border-radius: 8px; border: 2px solid #ecefe2; }
::-webkit-scrollbar-thumb:hover { background: #0a5c46; }

:focus-visible { outline: 3px solid rgba(var(--mh-primary-rgb), .45); outline-offset: 2px; border-radius: 6px; }

.mh-container { max-width: 80rem; margin-inline: auto; padding-inline: 1rem; width: 100%; }
@media (min-width: 640px) { .mh-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .mh-container { padding-inline: 2rem; } }

.mh-screen-reader-text,
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute; top: -60px; right: 12px; z-index: 100000;
  background: var(--mh-primary); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 700;
  transition: top .3s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* أيقونات SVG */
.mh-icon { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mh-icon-fill { fill: currentColor; stroke: none; }

/* =========================================================
   2) الأزرار
   ========================================================= */
.mh-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .9rem 2rem; font-family: var(--mh-head);
  font-weight: 700; font-size: 1rem; line-height: 1.4; cursor: pointer; border: 0;
  transition: all .3s var(--mh-ease);
}
.mh-btn-primary {
  background: linear-gradient(135deg, var(--mh-primary), var(--mh-primary-dark)); color: var(--mh-primary-fg);
  box-shadow: 0 20px 25px -5px rgba(var(--mh-primary-rgb), .3), 0 8px 10px -6px rgba(var(--mh-primary-rgb), .3);
}
.mh-btn-primary:hover { color: var(--mh-primary-fg); transform: translateY(-3px); filter: brightness(1.09); box-shadow: 0 25px 30px -5px rgba(var(--mh-primary-rgb), .38), 0 10px 12px -6px rgba(var(--mh-primary-rgb), .34); }
.mh-btn-outline {
  color: var(--mh-primary); border: 2px solid rgba(var(--mh-primary-rgb), .3); background: transparent;
}
.mh-btn-outline:hover { border-color: var(--mh-primary); background: rgba(var(--mh-primary-rgb), .06); transform: translateY(-3px); }
/* الزر الذهبي الملكي: تدرج ثلاثي الدرجات + لمعان زاحف */
.mh-btn-gold {
  background: var(--mh-gold-grad); background-size: 180% 180%; background-position: 0% 50%;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  box-shadow: 0 10px 24px -8px rgba(var(--mh-gold-rgb), .55), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.mh-btn-gold:hover {
  background-position: 100% 50%; color: #fff; transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(var(--mh-gold-rgb), .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.mh-btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; inset-inline-start: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg); transition: inset-inline-start .7s var(--mh-ease); pointer-events: none;
}
.mh-btn-gold:hover::after { inset-inline-start: 130%; }
.mh-pulse-ring { animation: mh-pulse-ring 2.4s ease-out infinite; }

/* =========================================================
   3) الهيدر والتنقل
   ========================================================= */
.mh-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 900;
  padding-block: 1rem; transition: all .5s var(--mh-ease);
  background: transparent;
}
.mh-header.is-scrolled {
  background: rgba(250, 249, 243, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px -12px rgba(var(--mh-primary-rgb), .15);
  padding-block: .5rem;
}
.mh-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.mh-brand { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.mh-brand-badge {
  position: relative; width: 2.75rem; height: 2.75rem; border-radius: 1rem;
  background: var(--mh-primary); display: grid; place-items: center;
  color: var(--mh-primary-fg); box-shadow: 0 4px 14px rgba(var(--mh-primary-rgb), .3);
  transition: transform .3s var(--mh-ease);
}
.mh-brand:hover .mh-brand-badge { transform: scale(1.07); }
.mh-brand-badge .mh-icon { width: 1.5rem; height: 1.5rem; }
.mh-brand-badge::after {
  content: ""; position: absolute; top: -4px; inset-inline-start: -4px;
  width: .875rem; height: .875rem; border-radius: 50%; background: var(--mh-gold); border: 2px solid #fff;
}
.mh-brand-badge img { width: 100%; height: 100%; border-radius: 1rem; object-fit: cover; }
.mh-brand-text { line-height: 1.2; min-width: 0; max-width: 100%; }
.mh-brand-name { display: block; font-family: var(--mh-head); font-weight: 800; font-size: 1.25rem; color: var(--mh-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mh-brand-tag { display: block; font-size: .7rem; font-weight: 500; color: var(--mh-muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.mh-nav { display: none; align-items: center; gap: .25rem; }
@media (min-width: 1024px) { .mh-nav { display: flex; } }
.mh-nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.mh-nav a {
  position: relative; display: inline-block; padding: .5rem .875rem;
  font-size: .9rem; font-weight: 600; color: rgba(21, 53, 44, .72); border-radius: 999px;
  transition: color .3s ease;
}
.mh-nav a:hover, .mh-nav a.is-active, .mh-nav .current-menu-item > a, .mh-nav .current_page_item > a { color: var(--mh-primary); }
.mh-nav a.is-active::before, .mh-nav .current-menu-item > a::before, .mh-nav .current_page_item > a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: rgba(var(--mh-primary-rgb), .1);
}
.mh-nav .menu-item-has-children { position: relative; }
.mh-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--mh-border); border-radius: 1rem; padding: .5rem;
  box-shadow: var(--mh-shadow-lg); display: block; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s var(--mh-ease); z-index: 50;
}
.mh-nav li:hover > .sub-menu, .mh-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mh-nav .sub-menu a { display: block; border-radius: .75rem; color: var(--mh-fg); }
.mh-nav .sub-menu a:hover { background: rgba(var(--mh-primary-rgb), .08); color: var(--mh-primary); }

.mh-header-actions { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }
.mh-header-cta { display: none; }
@media (min-width: 640px) { .mh-header-cta { display: inline-flex; padding: .625rem 1.25rem; font-size: .9rem; } }

/* زر قائمة الجوال: أيقونة واحدة دائماً — مقاس ثابت لا يتأثر بطول اسم الموقع */
.mh-menu-toggle {
  position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  border-radius: .875rem; border: 1px solid rgba(var(--mh-primary-rgb), .2); background: #fff; color: var(--mh-primary);
  cursor: pointer; transition: all .3s ease; overflow: hidden;
}
@media (min-width: 1024px) { .mh-menu-toggle { display: none; } }
.mh-menu-toggle:hover { background: rgba(var(--mh-primary-rgb), .08); }
.mh-menu-toggle .mh-toggle-open, .mh-menu-toggle .mh-toggle-close {
  grid-area: 1 / 1; display: grid; place-items: center;
  transition: opacity .25s ease, transform .35s var(--mh-ease);
}
.mh-menu-toggle .mh-icon { width: 1.4rem; height: 1.4rem; }
.mh-menu-toggle .mh-toggle-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.mh-menu-toggle.is-open { color: #fff; background: linear-gradient(135deg, var(--mh-primary), var(--mh-primary-dark)); border-color: transparent; }
.mh-menu-toggle.is-open .mh-toggle-open { opacity: 0; transform: rotate(90deg) scale(.5); }
.mh-menu-toggle.is-open .mh-toggle-close { opacity: 1; transform: rotate(0deg) scale(1); }

.mh-mobile-menu {
  display: none; overflow: hidden; max-height: 0; opacity: 0;
  background: rgba(250, 249, 243, .92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(var(--mh-primary-rgb), .1); margin-top: .5rem;
  transition: max-height .4s var(--mh-ease), opacity .35s ease;
}
.mh-mobile-menu.is-open { max-height: 80vh; opacity: 1; overflow-y: auto; }
@media (max-width: 1023px) { .mh-mobile-menu { display: block; } }
.mh-mobile-menu ul { list-style: none; padding: 1rem; margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.mh-mobile-menu a {
  display: block; padding: .75rem 1rem; border-radius: .875rem;
  font-size: .925rem; font-weight: 600; color: rgba(21, 53, 44, .78);
}
.mh-mobile-menu a:hover, .mh-mobile-menu .current-menu-item > a { background: rgba(var(--mh-primary-rgb), .1); color: var(--mh-primary); }
.mh-mobile-cta { margin-top: .5rem; text-align: center; border-radius: .875rem; padding: .75rem 1rem; font-weight: 700; font-size: .9rem; background: var(--mh-primary); color: var(--mh-primary-fg); box-shadow: 0 4px 14px rgba(var(--mh-primary-rgb), .3); }

/* =========================================================
   4) القسم الرئيسي Hero
   ========================================================= */
.mh-hero { position: relative; padding: 7.5rem 0 4rem; overflow: hidden; background: var(--mh-bg); }
@media (min-width: 1024px) { .mh-hero { padding: 10rem 0 6rem; } }
.mh-bg-mesh {
  background-color: var(--mh-bg);
  background-image:
    radial-gradient(at 88% 8%, rgba(150, 205, 182, .55) 0px, transparent 55%),
    radial-gradient(at 6% 22%, rgba(233, 220, 175, .6) 0px, transparent 50%),
    radial-gradient(at 72% 88%, rgba(196, 224, 205, .5) 0px, transparent 55%);
}
.mh-pattern-grid {
  background-image:
    linear-gradient(rgba(var(--mh-primary-rgb), .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--mh-primary-rgb), .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000, transparent);
}
.mh-hero-grid-bg { position: absolute; inset: 0; pointer-events: none; }
.mh-blob { position: absolute; border-radius: 42% 58% 55% 45% / 55% 48% 52% 45%; animation: mh-blob 12s ease-in-out infinite; }
.mh-blob-gold { top: 6rem; inset-inline-end: 8%; width: 6rem; height: 6rem; background: rgba(var(--mh-gold-rgb), .2); }
.mh-blob-green { bottom: 4rem; inset-inline-start: 6%; width: 8rem; height: 8rem; background: rgba(var(--mh-primary-rgb), .1); animation-delay: -4s; }
@media (max-width: 1023px) { .mh-blob { display: none; } }

.mh-hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .mh-hero-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.mh-hero-content { text-align: center; }
@media (min-width: 1024px) { .mh-hero-content { text-align: start; } }

.mh-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  border: 1px solid rgba(var(--mh-gold-rgb), .4); background: linear-gradient(135deg, rgba(var(--mh-gold-rgb), .16), rgba(var(--mh-gold-rgb), .07));
  padding: .375rem 1rem; font-size: .875rem; font-weight: 700; color: var(--mh-gold-fg);
}
.mh-hero-badge .mh-icon { color: var(--mh-gold); width: 1rem; height: 1rem; }

.mh-hero-title {
  margin-top: 1.5rem; font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 900; line-height: 1.25;
}
.mh-text-gradient {
  background: linear-gradient(120deg, var(--mh-primary) 10%, #17936f 45%, var(--mh-gold) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: mh-grad-shift 6s ease-in-out infinite;
}
.mh-hero-sub {
  margin-top: 1.5rem; font-size: 1.125rem; color: var(--mh-muted-fg); line-height: 1.9; max-width: 36rem;
  margin-inline: auto;
}
@media (min-width: 1024px) { .mh-hero-sub { margin-inline: 0; } }

.mh-hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 1024px) { .mh-hero-actions { justify-content: flex-start; } }
.mh-hero-actions .mh-icon { width: 1.25rem; height: 1.25rem; }

.mh-stats { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .mh-stats { grid-template-columns: repeat(4, 1fr); } }
.mh-stat {
  border-radius: 1rem; background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--mh-primary-rgb), .1); padding: 1rem .75rem; text-align: center;
  box-shadow: 0 1px 2px rgba(var(--mh-forest-rgb), .05); transition: all .35s var(--mh-ease);
}
.mh-stat:hover { transform: translateY(-8px); box-shadow: var(--mh-shadow-lg); }
.mh-stat .mh-icon { width: 1.25rem; height: 1.25rem; color: var(--mh-gold); margin-inline: auto .05em; }
.mh-stat-num { display: block; margin-top: .5rem; font-family: var(--mh-head); font-size: 1.5rem; font-weight: 800; color: var(--mh-primary); direction: ltr; }
.mh-stat-label { display: block; margin-top: .25rem; font-size: .75rem; font-weight: 500; color: var(--mh-muted-fg); }

.mh-hero-visual { position: relative; margin-inline: auto; width: 100%; max-width: 30rem; }
@media (min-width: 1024px) { .mh-hero-visual { max-width: none; } }
.mh-hero-visual-frame { position: relative; aspect-ratio: 1; max-width: 540px; margin-inline: auto; }
.mh-hero-visual-blob { position: absolute; inset: 1.5rem; background: linear-gradient(45deg, rgba(var(--mh-primary-rgb), .15), rgba(var(--mh-gold-rgb), .1) 50%, transparent); animation: mh-blob 12s ease-in-out infinite; border-radius: 42% 58% 55% 45% / 55% 48% 52% 45%; }
.mh-hero-visual img { position: relative; z-index: 10; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 25px 25px rgba(var(--mh-forest-rgb), .25)); }

.mh-float-card {
  position: absolute; z-index: 20; border-radius: 1rem;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 20px 25px -5px rgba(var(--mh-forest-rgb), .12), 0 8px 10px -6px rgba(var(--mh-forest-rgb), .08);
}
.mh-float-rating { top: 2rem; inset-inline-end: -0.5rem; border: 1px solid rgba(var(--mh-gold-rgb), .3); padding: .75rem 1rem; animation: mh-float-y 5s ease-in-out infinite; }
@media (min-width: 640px) { .mh-float-rating { inset-inline-end: 1rem; } }
.mh-float-rating .mh-stars { display: flex; gap: .125rem; color: var(--mh-gold); }
.mh-float-rating .mh-stars .mh-icon { width: 1rem; height: 1rem; }
/* نجوم التقييم: تعبئة بالتدرج الذهبي الملكي */
.mh-stars .mh-icon, .mh-testi-stars .mh-icon, .mh-teacher-rating .mh-icon {
  fill: url("#mhGoldGrad") var(--mh-gold);
  filter: drop-shadow(0 1px 3px rgba(var(--mh-gold-rgb), .45));
}
.mh-float-rating p { margin-top: .25rem; font-size: .75rem; font-weight: 700; }
.mh-float-achieve { bottom: 2.5rem; inset-inline-start: -0.5rem; border: 1px solid rgba(var(--mh-primary-rgb), .2); padding: .75rem 1rem; display: flex; align-items: center; gap: .75rem; animation: mh-float-y 6s ease-in-out infinite; animation-delay: 1s; }
@media (min-width: 640px) { .mh-float-achieve { inset-inline-start: .5rem; } }
.mh-float-achieve-badge { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--mh-primary); display: grid; place-items: center; color: var(--mh-primary-fg); }
.mh-float-achieve-badge .mh-icon { width: 1.25rem; height: 1.25rem; }
.mh-float-achieve strong { display: block; font-family: var(--mh-head); font-size: .875rem; font-weight: 800; }
.mh-float-achieve span { display: block; font-size: .7rem; color: var(--mh-muted-fg); }

.mh-scroll-indicator { display: none; margin: 4rem auto 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(var(--mh-primary-rgb), .25); align-items: center; justify-content: center; color: var(--mh-primary); transition: all .3s ease; }
@media (min-width: 1024px) { .mh-scroll-indicator { display: flex; } }
.mh-scroll-indicator:hover { background: var(--mh-primary); color: var(--mh-primary-fg); }
.mh-scroll-indicator .mh-icon { animation: mh-bounce-y 1.6s ease-in-out infinite; }

.mh-marquee { position: relative; margin-top: 3.5rem; border-block: 1px solid rgba(var(--mh-primary-rgb), .1); background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding-block: 1rem; overflow: hidden; direction: ltr; }
.mh-marquee-track { display: flex; width: max-content; gap: 1rem; animation: mh-marquee 32s linear infinite; }
.mh-marquee:hover .mh-marquee-track { animation-play-state: paused; }
.mh-marquee-item { direction: rtl; white-space: nowrap; border-radius: 999px; background: rgba(var(--mh-primary-rgb), .05); border: 1px solid rgba(var(--mh-primary-rgb), .1); padding: .5rem 1.25rem; font-size: .875rem; font-weight: 700; color: rgba(var(--mh-primary-rgb), .8); }
.mh-marquee::after, .mh-marquee::before { content: ""; position: absolute; inset-block: 0; width: 6rem; z-index: 2; pointer-events: none; }
.mh-marquee::after { right: 0; background: linear-gradient(to left, var(--mh-bg), transparent); }
.mh-marquee::before { left: 0; background: linear-gradient(to right, var(--mh-bg), transparent); }

/* =========================================================
   5) ترويسة الأقسام
   ========================================================= */
.mh-section { position: relative; padding: 5rem 0; }
@media (min-width: 1024px) { .mh-section { padding: 7rem 0; } }
.mh-section-head { text-align: center; max-width: 42rem; margin-inline: auto; }
.mh-section-badge {
  display: inline-block; border-radius: 999px; padding: .375rem 1rem; font-size: .875rem; font-weight: 700;
  background: var(--mh-gold-grad); color: var(--mh-gold-fg); border: 1px solid rgba(var(--mh-gold-rgb), .45);
  box-shadow: 0 6px 16px -6px rgba(var(--mh-gold-rgb), .5);
}
.mh-section-title { margin-top: 1rem; font-size: clamp(1.65rem, 3.6vw, 2.25rem); line-height: 1.45; }
.mh-section-desc { margin-top: 1rem; font-size: 1rem; line-height: 1.9; color: var(--mh-muted-fg); }
.mh-section-divider {
  margin: 1.5rem auto 0; height: .375rem; width: 6rem; border-radius: 999px;
  background: var(--mh-gold-grad-flat);
  transform-origin: center; transform: scaleX(0); transition: transform .7s var(--mh-ease) .35s;
}
.in-view .mh-section-divider, .mh-section-divider.in-view { transform: scaleX(1); }

/* أقسام داكنة */
.mh-section-dark { background: var(--mh-forest); color: var(--mh-forest-fg); }
.mh-section-dark .mh-section-badge { color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: 0 8px 22px -6px rgba(var(--mh-gold-rgb), .7); }
.mh-section-dark .mh-section-title { color: #fff; }
.mh-section-dark .mh-section-desc { color: rgba(255, 255, 255, .7); }

.mh-bg-mint { background: var(--mh-mint); }
.mh-pattern-dots { background-image: radial-gradient(rgba(var(--mh-gold-rgb), .22) 1.5px, transparent 1.5px); background-size: 22px 22px; opacity: .6; -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000, transparent); mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000, transparent); }

/* =========================================================
   6) المناهج — تبويبات وبطاقات المواد
   ========================================================= */
.mh-tabs-wrap { margin-top: 2.5rem; display: flex; justify-content: center; }
.mh-tabs { position: relative; display: inline-flex; border-radius: 999px; border: 1px solid rgba(var(--mh-primary-rgb), .15); background: var(--mh-card); padding: .375rem; box-shadow: var(--mh-shadow); }
.mh-tab {
  position: relative; z-index: 10; display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; padding: .75rem 1.25rem; border: 0; background: transparent; cursor: pointer;
  font-family: var(--mh-head); font-size: .875rem; font-weight: 700; color: rgba(21, 53, 44, .65);
  transition: color .3s ease;
}
@media (min-width: 640px) { .mh-tab { padding: .75rem 1.75rem; } }
.mh-tab .mh-icon { width: 1.15rem; height: 1.15rem; }
.mh-tab:hover { color: var(--mh-primary); }
.mh-tab.is-active { color: var(--mh-primary-fg); }
.mh-tab::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: var(--mh-primary);
  box-shadow: 0 10px 20px -6px rgba(var(--mh-primary-rgb), .4);
  transform: scale(0); opacity: 0; transition: transform .5s var(--mh-ease), opacity .3s ease;
}
.mh-tab.is-active::before { transform: scale(1); opacity: 1; }

.mh-tab-panel { display: none; margin-top: 3rem; }
.mh-tab-panel.is-active { display: block; animation: mh-fade-up .5s var(--mh-ease); }

.mh-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .mh-grid-2 { grid-template-columns: repeat(2, 1fr); } .mh-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mh-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.mh-grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .mh-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mh-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.mh-card {
  position: relative; overflow: hidden; height: 100%; border-radius: var(--mh-radius-xl);
  border: 1px solid rgba(var(--mh-primary-rgb), .1); background: var(--mh-card);
  padding: 1.5rem; box-shadow: 0 1px 2px rgba(var(--mh-forest-rgb), .05);
  transition: transform .35s var(--mh-ease), box-shadow .35s ease, border-color .35s ease;
}
.mh-card:hover { transform: translateY(-8px); box-shadow: var(--mh-shadow-lg); border-color: rgba(var(--mh-gold-rgb), .4); }
.mh-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: .375rem; }
.mh-card.c1::before { background: linear-gradient(to left, rgba(16, 185, 129, .6), rgba(16, 185, 129, .15)); }
.mh-card.c2::before { background: linear-gradient(to left, rgba(13, 148, 136, .6), rgba(13, 148, 136, .15)); }
.mh-card.c3::before { background: linear-gradient(to left, rgba(245, 158, 11, .6), rgba(245, 158, 11, .15)); }
.mh-card.c4::before { background: linear-gradient(to left, rgba(132, 204, 22, .6), rgba(132, 204, 22, .15)); }
.mh-card.c5::before { background: linear-gradient(to left, rgba(22, 163, 74, .6), rgba(22, 163, 74, .15)); }
.mh-card.c6::before { background: linear-gradient(to left, rgba(202, 138, 4, .6), rgba(202, 138, 4, .15)); }

.mh-icon-tile {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: grid; place-items: center;
  transition: transform .5s var(--mh-ease);
}
.mh-card:hover .mh-icon-tile { transform: scale(1.1) rotate(-6deg); }
.mh-icon-tile .mh-icon { width: 1.75rem; height: 1.75rem; }
.t1 { background: linear-gradient(135deg, rgba(16, 185, 129, .15), rgba(16, 185, 129, .05)); color: #047857; }
.t2 { background: linear-gradient(135deg, rgba(13, 148, 136, .15), rgba(13, 148, 136, .05)); color: #0f766e; }
.t3 { background: linear-gradient(135deg, rgba(245, 158, 11, .15), rgba(245, 158, 11, .05)); color: #b45309; }
.t4 { background: linear-gradient(135deg, rgba(132, 204, 22, .15), rgba(132, 204, 22, .05)); color: #4d7c0f; }
.t5 { background: linear-gradient(135deg, rgba(22, 163, 74, .15), rgba(22, 163, 74, .05)); color: #15803d; }
.t6 { background: linear-gradient(135deg, rgba(202, 138, 4, .15), rgba(202, 138, 4, .05)); color: #854d0e; }

.mh-card-title { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 800; }
.mh-card-desc { margin-top: .625rem; font-size: .875rem; line-height: 1.8; color: var(--mh-muted-fg); }
.mh-tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.mh-tag { border-radius: 999px; background: rgba(var(--mh-primary-rgb), .08); border: 1px solid rgba(var(--mh-primary-rgb), .15); padding: .25rem .75rem; font-size: .7rem; font-weight: 700; color: var(--mh-primary); }
.mh-card-grades { margin-top: 1rem; font-size: .75rem; font-weight: 600; color: var(--mh-gold-fg); display: flex; align-items: center; gap: .375rem; }
.mh-card-grades .mh-icon { color: var(--mh-gold); width: .9rem; height: .9rem; }

.mh-perks { margin-top: 3rem; max-width: 56rem; margin-inline: auto; }
@media (min-width: 640px) { .mh-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.mh-perk { display: flex; align-items: center; gap: .75rem; border-radius: 1rem; border: 1px solid rgba(var(--mh-gold-rgb), .25); background: rgba(var(--mh-gold-rgb), .08); padding: .875rem 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .mh-perk { margin-bottom: 0; } }
.mh-perk .mh-icon { width: 1.5rem; height: 1.5rem; color: var(--mh-gold); flex-shrink: 0; }
.mh-perk p { font-size: .875rem; font-weight: 700; color: rgba(21, 53, 44, .85); }

/* =========================================================
   7) المراحل الدراسية
   ========================================================= */
.mh-section-stages { overflow: hidden; }
.mh-stage-card {
  position: relative; height: 100%; border-radius: var(--mh-radius-xl); background: var(--mh-card);
  border: 1px solid rgba(var(--mh-primary-rgb), .1); box-shadow: 0 1px 2px rgba(var(--mh-forest-rgb), .05);
  overflow: hidden; padding: 2.25rem 1.75rem 1.75rem;
  transition: transform .35s var(--mh-ease), box-shadow .35s ease;
}
.mh-stage-card:hover { transform: translateY(-8px); box-shadow: var(--mh-shadow-lg); }
.mh-stage-card::before { content: ""; position: absolute; top: 0; inset-inline: 2rem; height: .25rem; border-radius: 999px; opacity: .7; }
.mh-stage-card.s1::before { background: #10b981; }
.mh-stage-card.s2::before { background: #0d9488; }
.mh-stage-card.s3::before { background: var(--mh-gold); }
.mh-stage-num {
  position: absolute; inset-inline-start: -1rem; top: -2rem; font-family: var(--mh-head);
  font-size: 7rem; font-weight: 900; color: rgba(var(--mh-primary-rgb), .05); line-height: 1; user-select: none; pointer-events: none;
}
.mh-stage-icon { position: relative; width: 4rem; height: 4rem; border-radius: 1rem; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 15px -3px rgba(var(--mh-forest-rgb), .15); transition: transform .5s var(--mh-ease); }
.mh-stage-card:hover .mh-stage-icon { transform: rotate(6deg) scale(1.1); }
.mh-stage-icon .mh-icon { width: 2rem; height: 2rem; }
.mh-stage-card.s1 .mh-stage-icon { background: #10b981; }
.mh-stage-card.s2 .mh-stage-icon { background: #0d9488; }
.mh-stage-card.s3 .mh-stage-icon { background: var(--mh-gold); }
.mh-stage-name { position: relative; margin-top: 1.5rem; font-size: 1.25rem; font-weight: 800; }
.mh-stage-grades { position: relative; margin-top: .25rem; font-size: .875rem; font-weight: 700; color: var(--mh-primary); }
.mh-stage-desc { position: relative; margin-top: .875rem; font-size: .875rem; line-height: 1.85; color: var(--mh-muted-fg); }
.mh-stage-features { position: relative; margin-top: 1.25rem; list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.mh-stage-features li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: rgba(21, 53, 44, .75); }
.mh-stage-features li::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: var(--mh-gold); flex-shrink: 0; }
.mh-stage-link { position: relative; margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 700; color: var(--mh-primary); transition: gap .3s ease; }
.mh-stage-link:hover { gap: .75rem; color: var(--mh-primary-dark); }
.mh-stage-link .mh-icon { width: 1rem; height: 1rem; }

.mh-progress { margin-top: 3.5rem; height: .625rem; border-radius: 999px; background: linear-gradient(to left, var(--mh-gold), #0d9488, #059669); transform-origin: right; transform: scaleX(0); transition: transform 1.2s var(--mh-ease); }
.mh-progress.in-view { transform: scaleX(1); }
.mh-progress-labels { margin-top: .75rem; display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; color: var(--mh-muted-fg); padding-inline: .25rem; }

/* =========================================================
   8) المميزات
   ========================================================= */
.mh-features-grid { margin-top: 3.5rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .mh-features-grid { grid-template-columns: 2fr 3fr; gap: 2.5rem; } }
.mh-features-visual { position: relative; }
.mh-features-visual-frame { position: absolute; inset: -1rem; background: linear-gradient(45deg, rgba(var(--mh-primary-rgb), .15), rgba(var(--mh-gold-rgb), .15)); border-radius: 2.5rem; transform: rotate(2deg); }
.mh-features-visual img { position: relative; border-radius: var(--mh-radius-xl); border: 1px solid rgba(var(--mh-primary-rgb), .1); box-shadow: 0 25px 50px -12px rgba(var(--mh-primary-rgb), .25); width: 100%; }
.mh-float-badge {
  position: absolute; bottom: -1.5rem; inset-inline-end: 1.5rem; border-radius: 1rem;
  background: var(--mh-forest); color: var(--mh-forest-fg); box-shadow: 0 20px 25px -5px rgba(var(--mh-forest-rgb), .2);
  padding: 1rem 1.25rem; animation: mh-float-y 6s ease-in-out infinite;
}
.mh-float-badge strong { display: block; font-family: var(--mh-head); font-size: 1.5rem; font-weight: 900; color: var(--mh-gold); line-height: 1.2; }
.mh-float-badge span { display: block; font-size: .75rem; font-weight: 700; margin-top: .125rem; }

.mh-features-cards { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .mh-features-cards { grid-template-columns: repeat(2, 1fr); } }
.mh-feature-card {
  height: 100%; border-radius: var(--mh-radius-xl); border: 1px solid rgba(var(--mh-primary-rgb), .1);
  background: var(--mh-card); padding: 1.5rem; box-shadow: 0 1px 2px rgba(var(--mh-forest-rgb), .05);
  transition: all .35s var(--mh-ease);
}
.mh-feature-card:hover { transform: translateY(-8px); box-shadow: var(--mh-shadow-lg); border-color: rgba(var(--mh-gold-rgb), .4); }
.mh-feature-icon {
  width: 3rem; height: 3rem; border-radius: .875rem; background: rgba(var(--mh-primary-rgb), .1);
  display: grid; place-items: center; color: var(--mh-primary);
  transition: all .5s var(--mh-ease);
}
.mh-feature-icon .mh-icon { width: 1.5rem; height: 1.5rem; }
.mh-feature-card:hover .mh-feature-icon { background: var(--mh-primary); color: var(--mh-primary-fg); box-shadow: 0 10px 20px -6px rgba(var(--mh-primary-rgb), .4); }
.mh-feature-title { margin-top: 1rem; font-size: 1rem; font-weight: 800; }
.mh-feature-desc { margin-top: .5rem; font-size: .875rem; line-height: 1.8; color: var(--mh-muted-fg); }

/* =========================================================
   9) المعلمون
   ========================================================= */
.mh-section-teachers { overflow: hidden; }
.mh-section-teachers::before, .mh-section-teachers::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.mh-section-teachers::before { top: -6rem; inset-inline-end: -6rem; width: 24rem; height: 24rem; background: rgba(var(--mh-primary-rgb), .35); }
.mh-section-teachers::after { bottom: -8rem; inset-inline-start: -6rem; width: 24rem; height: 24rem; background: rgba(var(--mh-gold-rgb), .15); }
.mh-section-teachers .mh-pattern-grid { opacity: .15; -webkit-mask-image: none; mask-image: none; position: absolute; inset: 0; }

.mh-teacher-card {
  position: relative; height: 100%; border-radius: var(--mh-radius-xl); overflow: hidden;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .35s var(--mh-ease), box-shadow .35s ease;
}
.mh-teacher-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .4); }
.mh-teacher-photo { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; }
.mh-teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--mh-ease); }
.mh-teacher-card:hover .mh-teacher-photo img { transform: scale(1.08); }
.mh-teacher-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .1) 45%, transparent); }
.mh-teacher-rating {
  position: absolute; top: .875rem; inset-inline-end: .875rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px;
  background: rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: .25rem .625rem; font-size: .75rem; font-weight: 700; color: var(--mh-gold-fg);
  border: 1px solid rgba(var(--mh-gold-rgb), .4);
}
.mh-teacher-rating .mh-icon { width: .85rem; height: .85rem; color: var(--mh-gold); }
.mh-teacher-id { position: absolute; bottom: .875rem; inset-inline: .875rem; z-index: 2; }
.mh-teacher-id h3 { color: #fff; font-size: 1.125rem; font-weight: 800; }
.mh-teacher-id p { margin-top: .125rem; font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.mh-teacher-meta { padding: 1rem; }
.mh-teacher-meta-row { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.mh-teacher-meta-row span { display: inline-flex; align-items: center; gap: .25rem; }
.mh-teacher-meta-row .mh-icon { width: .85rem; height: .85rem; color: var(--mh-gold); }
.mh-teacher-tags { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .375rem; }
.mh-teacher-tags .mh-tag { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .85); font-size: .625rem; padding: .125rem .625rem; }
.mh-teachers-note { position: relative; margin-top: 2.5rem; text-align: center; font-size: .875rem; color: rgba(255, 255, 255, .65); }

/* =========================================================
   10) آراء الأولياء — كاروسيل
   ========================================================= */
.mh-testi-wrap { position: relative; margin-top: 3.5rem; max-width: 48rem; margin-inline: auto; min-height: 300px; }
@media (min-width: 640px) { .mh-testi-wrap { min-height: 260px; } }
.mh-testi-slide {
  position: absolute; inset: 0; border-radius: var(--mh-radius-xl);
  border: 1px solid rgba(var(--mh-primary-rgb), .1); background: var(--mh-card);
  box-shadow: 0 20px 40px -12px rgba(var(--mh-primary-rgb), .15);
  padding: 2rem; display: flex; flex-direction: column;
  opacity: 0; transform: translateX(-46px) scale(.97);
  transition: opacity .5s var(--mh-ease), transform .5s var(--mh-ease);
  pointer-events: none;
}
@media (min-width: 640px) { .mh-testi-slide { padding: 2.5rem; } }
.mh-testi-slide.is-active { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.mh-testi-quote { width: 2.5rem; height: 2.5rem; color: rgba(var(--mh-gold-rgb), .5); transform: rotate(180deg); }
.mh-testi-text { margin-top: 1rem; font-size: 1rem; line-height: 1.95; color: rgba(21, 53, 44, .85); font-weight: 500; flex: 1; }
@media (min-width: 640px) { .mh-testi-text { font-size: 1.125rem; } }
.mh-testi-footer { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mh-testi-person { display: flex; align-items: center; gap: .875rem; }
.mh-testi-avatar {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--mh-primary), #065f46);
  display: grid; place-items: center; color: #fff; font-family: var(--mh-head);
  font-weight: 800; font-size: 1.125rem; box-shadow: 0 4px 10px rgba(var(--mh-primary-rgb), .3);
}
.mh-testi-person strong { display: block; font-family: var(--mh-head); font-weight: 800; font-size: .875rem; }
.mh-testi-person span { display: block; font-size: .75rem; color: var(--mh-muted-fg); margin-top: .125rem; }
.mh-testi-stars { display: flex; gap: .125rem; color: var(--mh-gold); }
.mh-testi-stars .mh-icon { width: 1rem; height: 1rem; }
.mh-testi-nav { margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.mh-testi-arrow {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(var(--mh-primary-rgb), .25);
  background: transparent; color: var(--mh-primary); display: grid; place-items: center; cursor: pointer;
  transition: all .3s ease;
}
.mh-testi-arrow:hover { background: var(--mh-primary); color: var(--mh-primary-fg); }
.mh-testi-arrow .mh-icon { width: 1.25rem; height: 1.25rem; }
.mh-testi-dots { display: flex; gap: .5rem; }
.mh-testi-dot { width: .625rem; height: .625rem; border-radius: 999px; border: 0; background: rgba(var(--mh-primary-rgb), .25); cursor: pointer; padding: 0; transition: all .4s ease; }
.mh-testi-dot:hover { background: rgba(var(--mh-primary-rgb), .5); }
.mh-testi-dot.is-active { width: 2rem; background: var(--mh-primary); }

/* =========================================================
   11) الباقات والأسعار
   ========================================================= */
.mh-plans { margin-top: 3.5rem; display: grid; gap: 1.75rem; align-items: stretch; }
@media (min-width: 768px) { .mh-plans { grid-template-columns: repeat(3, 1fr); } }
.mh-plan {
  position: relative; height: 100%; border-radius: var(--mh-radius-xl); padding: 2rem;
  display: flex; flex-direction: column; background: var(--mh-card);
  border: 1px solid rgba(var(--mh-primary-rgb), .1); box-shadow: 0 1px 2px rgba(var(--mh-forest-rgb), .05);
  transition: transform .35s var(--mh-ease), box-shadow .35s ease;
}
.mh-plan:hover { transform: translateY(-8px); box-shadow: var(--mh-shadow-lg); }
.mh-plan.is-popular {
  /* إطار الباقة المميزة المتوهج: حافة بتدرج ذهبي ثلاثي الدرجات + توهج نابض */
  color: var(--mh-forest-fg);
  border: 2px solid transparent;
  background: linear-gradient(var(--mh-forest), var(--mh-forest)) padding-box, var(--mh-gold-grad) border-box;
  box-shadow: 0 25px 50px -12px rgba(var(--mh-primary-rgb), .4), 0 0 28px -6px rgba(var(--mh-gold-rgb), .4);
  animation: mh-plan-glow 3.5s ease-in-out infinite;
}
@media (min-width: 768px) { .mh-plan.is-popular { transform: translateY(-1rem); } }
.mh-plan-popular-badge {
  position: absolute; top: -1rem; inset-inline-end: 2rem; border-radius: 999px;
  background: var(--mh-gold-grad); color: #fff; padding: .375rem 1rem;
  font-size: .75rem; font-weight: 800; box-shadow: 0 10px 20px -6px rgba(var(--mh-gold-rgb), .65);
}
.mh-plan-head { display: flex; align-items: center; gap: .75rem; }
.mh-plan-icon { width: 3rem; height: 3rem; border-radius: 1rem; display: grid; place-items: center; background: rgba(var(--mh-primary-rgb), .1); color: var(--mh-primary); }
.mh-plan.is-popular .mh-plan-icon { background: rgba(var(--mh-gold-rgb), .2); color: var(--mh-gold); }
.mh-plan-icon .mh-icon { width: 1.5rem; height: 1.5rem; }
.mh-plan-head h3 { font-size: 1.125rem; font-weight: 800; }
.mh-plan.is-popular .mh-plan-head h3 { color: #fff; }
.mh-plan-head p { font-size: .75rem; margin-top: .125rem; color: var(--mh-muted-fg); }
.mh-plan.is-popular .mh-plan-head p { color: rgba(255, 255, 255, .65); }
.mh-plan-price { margin-top: 1.5rem; display: flex; align-items: flex-end; gap: .375rem; }
.mh-plan-price strong { font-family: var(--mh-head); font-size: 2.5rem; font-weight: 900; color: var(--mh-primary); line-height: 1; letter-spacing: -.02em; direction: ltr; }
.mh-plan.is-popular .mh-plan-price strong {
  background: var(--mh-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mh-plan-price span { padding-bottom: .375rem; font-size: .875rem; font-weight: 700; color: var(--mh-muted-fg); }
.mh-plan.is-popular .mh-plan-price span { color: rgba(255, 255, 255, .7); }
.mh-plan-features { margin-top: 1.5rem; list-style: none; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.mh-plan-features li { display: flex; align-items: flex-start; gap: .625rem; font-size: .875rem; font-weight: 600; color: rgba(21, 53, 44, .8); }
.mh-plan.is-popular .mh-plan-features li { color: rgba(255, 255, 255, .9); }
.mh-check {
  margin-top: .125rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(var(--mh-primary-rgb), .1); color: var(--mh-primary); flex-shrink: 0;
}
.mh-plan.is-popular .mh-check { background: rgba(var(--mh-gold-rgb), .2); color: var(--mh-gold); }
.mh-check .mh-icon { width: .75rem; height: .75rem; stroke-width: 3; }
.mh-plan .mh-btn { margin-top: 2rem; width: 100%; padding-block: .875rem; font-size: .875rem; }
.mh-plans-note { position: relative; margin-top: 2.5rem; text-align: center; font-size: .875rem; color: var(--mh-muted-fg); }

/* =========================================================
   12) الأسئلة الشائعة — أكورديون
   ========================================================= */
.mh-faq-list { margin-top: 3rem; max-width: 48rem; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.mh-faq-item {
  border-radius: 1rem; border: 1px solid rgba(var(--mh-primary-rgb), .12); background: var(--mh-card);
  padding-inline: 1.5rem; box-shadow: 0 1px 2px rgba(var(--mh-forest-rgb), .05);
  transition: all .3s ease;
}
.mh-faq-item:hover { border-color: rgba(var(--mh-primary-rgb), .3); box-shadow: var(--mh-shadow); }
.mh-faq-item.is-open { border-color: rgba(var(--mh-primary-rgb), .4); box-shadow: 0 10px 30px -10px rgba(var(--mh-primary-rgb), .15); }
.mh-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; cursor: pointer; text-align: start;
  padding-block: 1.25rem; font-family: var(--mh-head); font-size: 1rem; font-weight: 800; color: var(--mh-fg);
  transition: color .3s ease;
}
.mh-faq-q:hover { color: var(--mh-primary); }
.mh-faq-icon { position: relative; width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.mh-faq-icon::before, .mh-faq-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--mh-primary);
  border-radius: 2px; transition: transform .4s var(--mh-ease);
}
.mh-faq-icon::before { width: 100%; height: 2.5px; }
.mh-faq-icon::after { width: 2.5px; height: 100%; }
.mh-faq-item.is-open .mh-faq-icon::after { transform: rotate(90deg); }
.mh-faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--mh-ease); }
.mh-faq-a-inner { padding-bottom: 1.25rem; padding-inline-start: .5rem; font-size: .875rem; line-height: 1.9; color: var(--mh-muted-fg); }

/* =========================================================
   13) نموذج التسجيل
   ========================================================= */
.mh-register-grid { margin-top: 3.5rem; display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .mh-register-grid { grid-template-columns: 2fr 3fr; gap: 2.5rem; } }
.mh-register-perks { display: flex; flex-direction: column; gap: 1.25rem; }
.mh-register-perk {
  display: flex; align-items: center; gap: 1rem; border-radius: 1rem;
  border: 1px solid rgba(var(--mh-primary-rgb), .12); background: var(--mh-card);
  padding: 1.25rem; box-shadow: 0 1px 2px rgba(var(--mh-forest-rgb), .05);
  transition: transform .35s var(--mh-ease), box-shadow .35s ease;
}
.mh-register-perk:hover { transform: translateY(-6px); box-shadow: var(--mh-shadow-lg); }
.mh-register-perk-icon {
  width: 3rem; height: 3rem; border-radius: .875rem; flex-shrink: 0;
  background: linear-gradient(135deg, var(--mh-primary), #065f46);
  display: grid; place-items: center; color: var(--mh-primary-fg);
  box-shadow: 0 4px 10px rgba(var(--mh-primary-rgb), .3);
}
.mh-register-perk-icon .mh-icon { width: 1.5rem; height: 1.5rem; }
.mh-register-perk p { font-weight: 700; font-size: .875rem; color: rgba(21, 53, 44, .9); }
.mh-contact-card {
  border-radius: var(--mh-radius-xl); background: var(--mh-forest); color: var(--mh-forest-fg);
  padding: 1.75rem; box-shadow: 0 25px 50px -12px rgba(var(--mh-forest-rgb), .35); margin-top: 2rem;
}
.mh-contact-card strong { display: block; font-family: var(--mh-head); font-size: 1.125rem; font-weight: 800; color: var(--mh-gold); }
.mh-contact-card > p { margin-top: .5rem; font-size: .875rem; line-height: 1.85; color: rgba(255, 255, 255, .75); }
.mh-contact-card-lines { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .625rem; font-size: .875rem; font-weight: 700; }
.mh-contact-card-lines span { direction: ltr; text-align: right; color: rgba(255, 255, 255, .9); }

.mh-form {
  border-radius: var(--mh-radius-xl); border: 1px solid rgba(var(--mh-primary-rgb), .12);
  background: var(--mh-card); box-shadow: 0 25px 50px -12px rgba(var(--mh-primary-rgb), .15);
  padding: 1.75rem;
}
@media (min-width: 640px) { .mh-form { padding: 2.25rem; } }
.mh-form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .mh-form-grid { grid-template-columns: repeat(2, 1fr); } }
.mh-form-field { display: flex; flex-direction: column; gap: .5rem; }
.mh-form-field.mh-col-span-2 { grid-column: span 1; }
@media (min-width: 640px) { .mh-form-field.mh-col-span-2 { grid-column: span 2; } }
.mh-form-field label { font-weight: 700; font-size: .875rem; color: var(--mh-fg); }
.mh-form-field label .req { color: var(--mh-destructive); }
.mh-input, .mh-select, .mh-textarea {
  width: 100%; border-radius: .75rem; border: 1.5px solid var(--mh-border);
  background: var(--mh-bg); padding: .75rem 1rem; font-family: var(--mh-body);
  font-size: .925rem; color: var(--mh-fg); transition: border-color .3s ease, box-shadow .3s ease;
  min-height: 3rem;
}
.mh-textarea { min-height: 6rem; resize: vertical; }
.mh-input:focus, .mh-select:focus, .mh-textarea:focus {
  outline: none; border-color: var(--mh-primary);
  box-shadow: 0 0 0 4px rgba(var(--mh-primary-rgb), .12);
}
.mh-input.has-error, .mh-select.has-error, .mh-textarea.has-error { border-color: var(--mh-destructive); }
.mh-ltr { direction: ltr; text-align: right; }
.mh-field-error { display: none; font-size: .75rem; font-weight: 600; color: var(--mh-destructive); }
.mh-field-error.is-visible { display: block; }
.mh-form .mh-submit {
  margin-top: 1.75rem; width: 100%; border-radius: 999px; min-height: 3.5rem;
  font-size: 1rem; gap: .5rem;
}
.mh-form .mh-submit[disabled] { opacity: .7; cursor: wait; }
.mh-form-privacy { margin-top: 1rem; text-align: center; font-size: .75rem; color: var(--mh-muted-fg); }
.mh-form-hp { position: absolute !important; inset-inline-start: -9999px !important; opacity: 0; height: 0; width: 0; }

.mh-success {
  display: none; margin-top: 1.25rem; border-radius: 1rem; border: 1.5px solid #16a34a;
  background: #f0fdf4; padding: 1rem 1.25rem; align-items: flex-start; gap: .75rem;
}
.mh-success.is-visible { display: flex; animation: mh-fade-up .5s var(--mh-ease); }
.mh-success .mh-icon { width: 1.5rem; height: 1.5rem; color: #16a34a; flex-shrink: 0; margin-top: .125rem; }
.mh-success strong { display: block; font-family: var(--mh-head); font-weight: 800; color: #166534; font-size: .95rem; }
.mh-success p { font-size: .825rem; color: #15803d; margin-top: .125rem; }

.mh-form-message {
  display: none; margin-top: 1.25rem; border-radius: 1rem; padding: 1rem 1.25rem;
  font-size: .875rem; font-weight: 600;
}
.mh-form-message.is-visible { display: block; animation: mh-fade-up .4s var(--mh-ease); }
.mh-form-message.is-error { background: #fef2f2; border: 1.5px solid #fca5a5; color: #b91c1c; }
.mh-form-message.is-ok { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }

/* =========================================================
   14) الفوتر
   ========================================================= */
.mh-footer { position: relative; background: var(--mh-forest); color: var(--mh-forest-fg); overflow: hidden; margin-top: auto; }
.mh-footer::before { content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 44px 44px; }
.mh-footer-topline { position: absolute; top: 0; inset-inline: 0; height: .375rem; background: var(--mh-gold-grad-flat); }
.mh-footer-inner { position: relative; padding: 4rem 0; }
.mh-footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .mh-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mh-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.mh-footer-brand { display: flex; align-items: center; gap: .625rem; }
.mh-footer-brand-badge { width: 2.75rem; height: 2.75rem; border-radius: 1rem; background: rgba(var(--mh-gold-rgb), .15); border: 1px solid rgba(var(--mh-gold-rgb), .3); display: grid; place-items: center; color: var(--mh-gold); }
.mh-footer-brand-badge .mh-icon { width: 1.5rem; height: 1.5rem; }
.mh-footer-brand-badge img { width: 100%; height: 100%; border-radius: 1rem; object-fit: cover; }
.mh-footer-brand .mh-brand-name { color: #fff; }
.mh-footer-brand .mh-brand-tag { color: rgba(255, 255, 255, .6); }
.mh-footer-about { margin-top: 1.25rem; font-size: .875rem; line-height: 1.85; color: rgba(255, 255, 255, .65); }
.mh-socials { margin-top: 1.25rem; display: flex; gap: .625rem; }
.mh-social {
  width: 2.5rem; height: 2.5rem; border-radius: .875rem; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1); display: grid; place-items: center;
  color: rgba(255, 255, 255, .75); transition: all .3s var(--mh-ease);
}
.mh-social:hover { background: var(--mh-gold); color: var(--mh-gold-fg); border-color: var(--mh-gold); transform: translateY(-4px); }
.mh-social .mh-icon { width: 1.125rem; height: 1.125rem; }
.mh-footer h3 { color: #fff; font-size: 1rem; font-weight: 800; }
.mh-footer-list { margin-top: 1.25rem; list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.mh-footer-list a { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: rgba(255, 255, 255, .65); transition: color .3s ease; }
.mh-footer-list a::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: rgba(var(--mh-gold-rgb), .5); transition: background .3s ease; }
.mh-footer-list a:hover { color: var(--mh-gold); }
.mh-footer-list a:hover::before { background: var(--mh-gold); }
.mh-footer-list li { font-size: .875rem; color: rgba(255, 255, 255, .65); display: flex; align-items: center; gap: .5rem; }
.mh-footer-list li::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: rgba(var(--mh-gold-rgb), .5); }
.mh-footer-list.mh-contact-list li { align-items: flex-start; }
.mh-footer-list.mh-contact-list li .mh-icon { color: var(--mh-gold); width: 1.125rem; height: 1.125rem; margin-top: .2rem; }
.mh-footer-list.mh-contact-list li::before { display: none; }
.mh-footer-list.mh-contact-list li span { direction: ltr; }
.mh-hours-box { margin-top: 1.5rem; border-radius: 1rem; background: rgba(var(--mh-gold-rgb), .1); border: 1px solid rgba(var(--mh-gold-rgb), .25); padding: 1rem; }
.mh-hours-box strong { display: block; font-size: .75rem; font-weight: 700; color: var(--mh-gold); }
.mh-hours-box p { margin-top: .25rem; font-size: .75rem; color: rgba(255, 255, 255, .7); }
.mh-footer-bottom {
  position: relative; margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 640px) { .mh-footer-bottom { flex-direction: row; } }
.mh-footer-bottom p { font-size: .75rem; color: rgba(255, 255, 255, .55); display: inline-flex; align-items: center; gap: .375rem; }
.mh-footer-bottom .mh-icon { width: .85rem; height: .85rem; color: var(--mh-gold); fill: var(--mh-gold); stroke: none; }

/* =========================================================
   15) الأزرار العائمة
   ========================================================= */
.mh-float-whatsapp {
  position: fixed; bottom: 1.5rem; inset-inline-start: 1.5rem; z-index: 800;
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--mh-whatsapp);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 25px 50px -12px rgba(34, 197, 94, .5);
  transition: transform .3s var(--mh-ease);
  animation: mh-pop-in .6s var(--mh-ease) 1.4s backwards, mh-pulse-ring 2.4s ease-out infinite 2.2s;
}
.mh-float-whatsapp:hover { transform: scale(1.1); color: #fff; }
.mh-float-whatsapp .mh-icon { width: 1.75rem; height: 1.75rem; }
.mh-float-top {
  position: fixed; bottom: 1.5rem; inset-inline-end: 1.5rem; z-index: 800;
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--mh-primary); color: var(--mh-primary-fg);
  border: 0; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 20px 25px -5px rgba(var(--mh-primary-rgb), .4);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.8);
  transition: all .4s var(--mh-ease);
}
.mh-float-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mh-float-top:hover { background: var(--mh-primary-dark); transform: translateY(-4px); }
.mh-float-top .mh-icon { width: 1.25rem; height: 1.25rem; }

/* =========================================================
   15.5) عناصر متحركة ديناميكية إضافية
   ========================================================= */

/* شريط تقدم القراءة (تدرج ذهبي متحرك أعلى الصفحة) */
.mh-scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 1000;
  pointer-events: none; background: transparent;
}
.mh-scroll-progress span {
  display: block; height: 100%; width: 0;
  background: var(--mh-gold-grad-flat);
  box-shadow: 0 0 12px rgba(var(--mh-gold-rgb), .6);
  border-end-end-radius: 3px; border-end-start-radius: 3px;
  opacity: 0; transition: width .1s linear, opacity .3s ease;
}
.mh-scroll-progress span.is-active { opacity: 1; }

/* تأثير الموجة عند النقر (يُنشأ من JS) */
.mh-ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255, 255, 255, .4); pointer-events: none; z-index: 1;
  animation: mh-ripple .65s ease-out forwards;
}
.mh-btn-outline .mh-ripple, .mh-tab .mh-ripple { background: rgba(var(--mh-primary-rgb), .22); }
.mh-tab { overflow: hidden; }
.mh-social { position: relative; overflow: hidden; }

/* شرارات ذهبية متلألئة في القسم الرئيسي */
.mh-hero-visual { position: relative; }
.mh-sparkle {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--mh-gold-light);
  box-shadow: 0 0 14px 3px rgba(var(--mh-gold-rgb), .75);
  opacity: 0; transform: scale(.4); pointer-events: none; z-index: 20;
  animation: mh-twinkle 4.2s ease-in-out infinite;
}
.mh-sparkle.s1 { top: 6%; inset-inline-start: 10%; }
.mh-sparkle.s2 { top: 28%; inset-inline-end: 4%; width: 7px; height: 7px; animation-delay: 1.1s; }
.mh-sparkle.s3 { bottom: 16%; inset-inline-start: 20%; animation-delay: 2.2s; }
.mh-sparkle.s4 { top: 10%; inset-inline-end: 26%; width: 6px; height: 6px; animation-delay: 3.1s; }

/* نبض لطيف لشارة الهيرو */
.mh-badge-animated { animation: mh-badge-pulse 3s ease-in-out infinite; }

/* ميلان البطاقات (Tilt) — القيم تُضبط من JS */
.mh-teacher-card, .mh-feature-card, .mh-plan { transform-style: preserve-3d; will-change: transform; }
.mh-feature-card:hover { transform: perspective(900px) rotateX(var(--mh-tilt-y, 0deg)) rotateY(var(--mh-tilt-x, 0deg)) translateY(-8px); }
.mh-teacher-card:hover { transform: perspective(900px) rotateX(var(--mh-tilt-y, 0deg)) rotateY(var(--mh-tilt-x, 0deg)) translateY(-8px); }
.mh-plan:hover { transform: perspective(900px) rotateX(var(--mh-tilt-y, 0deg)) rotateY(var(--mh-tilt-x, 0deg)) translateY(-8px); }
@media (min-width: 768px) {
  .mh-plan.is-popular:hover { transform: perspective(900px) rotateX(var(--mh-tilt-y, 0deg)) rotateY(var(--mh-tilt-x, 0deg)) translateY(-1rem); }
}

/* توهج الباقة المميزة: نبض هادئ للحافة الذهبية */
@keyframes mh-plan-glow {
  0%, 100% { box-shadow: 0 25px 50px -12px rgba(var(--mh-primary-rgb), .4), 0 0 28px -6px rgba(var(--mh-gold-rgb), .38); }
  50% { box-shadow: 0 25px 50px -12px rgba(var(--mh-primary-rgb), .45), 0 0 44px -4px rgba(var(--mh-gold-rgb), .62); }
}
/* حركة انزلاق التدرج النصي */
@keyframes mh-grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* تلألؤ الشرارات الذهبية */
@keyframes mh-twinkle {
  0%, 100% { opacity: 0; transform: scale(.4) translateY(0); }
  50% { opacity: .95; transform: scale(1.1) translateY(-6px); }
}
/* نبض الشارة */
@keyframes mh-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--mh-gold-rgb), .35); }
  50% { transform: scale(1.035); box-shadow: 0 0 0 9px rgba(var(--mh-gold-rgb), 0); }
}
/* الموجة */
@keyframes mh-ripple {
  to { transform: scale(1); opacity: 0; }
}

/* =========================================================
   16) حركات الظهور (Scroll Reveal)
   ========================================================= */
.mh-reveal { opacity: 0; transition: opacity .7s var(--mh-ease), transform .7s var(--mh-ease); will-change: opacity, transform; }
.mh-reveal.mh-up { transform: translateY(42px); }
.mh-reveal.mh-down { transform: translateY(-42px); }
.mh-reveal.mh-left { transform: translateX(-56px); }
.mh-reveal.mh-right { transform: translateX(56px); }
.mh-reveal.mh-scale { transform: scale(.85); }
.mh-reveal.in-view { opacity: 1; transform: none; }
.mh-stagger > .mh-reveal:nth-child(2) { transition-delay: .1s; }
.mh-stagger > .mh-reveal:nth-child(3) { transition-delay: .2s; }
.mh-stagger > .mh-reveal:nth-child(4) { transition-delay: .3s; }
.mh-stagger > .mh-reveal:nth-child(5) { transition-delay: .4s; }
.mh-stagger > .mh-reveal:nth-child(6) { transition-delay: .5s; }
.mh-stagger > .mh-reveal:nth-child(n+7) { transition-delay: .55s; }

/* =========================================================
   17) Keyframes
   ========================================================= */
@keyframes mh-float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes mh-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@keyframes mh-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(var(--mh-primary-rgb), .45); }
  80% { box-shadow: 0 0 0 18px rgba(var(--mh-primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--mh-primary-rgb), 0); }
}
@keyframes mh-blob {
  0%, 100% { border-radius: 58% 42% 55% 45% / 55% 48% 52% 48%; transform: rotate(0deg) scale(1); }
  33% { border-radius: 45% 55% 48% 52% / 60% 42% 58% 40%; transform: rotate(6deg) scale(1.05); }
  66% { border-radius: 52% 48% 60% 40% / 45% 58% 42% 55%; transform: rotate(-5deg) scale(.97); }
}
@keyframes mh-bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
@keyframes mh-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mh-pop-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .mh-reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   18) صفحات المحتوى (مدونة/صفحات/مقالات)
   ========================================================= */
.mh-page-wrap { padding: 8.5rem 0 5rem; }
.mh-page-head { text-align: center; max-width: 48rem; margin-inline: auto; margin-bottom: 3rem; }
.mh-page-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; }
.mh-page-sub { margin-top: .75rem; color: var(--mh-muted-fg); }
.mh-content-area { max-width: 52rem; margin-inline: auto; }
.mh-entry {
  border-radius: var(--mh-radius-xl); border: 1px solid rgba(var(--mh-primary-rgb), .1);
  background: var(--mh-card); padding: 2rem; box-shadow: var(--mh-shadow);
}
@media (min-width: 640px) { .mh-entry { padding: 2.75rem; } }
.mh-entry > * + * { margin-top: 1.1rem; }
.mh-entry h2, .mh-entry h3, .mh-entry h4 { margin-top: 2rem; }
.mh-entry h2 { font-size: 1.5rem; } .mh-entry h3 { font-size: 1.25rem; } .mh-entry h4 { font-size: 1.1rem; }
.mh-entry p, .mh-entry ul, .mh-entry ol { color: rgba(21, 53, 44, .85); line-height: 2; }
.mh-entry ul, .mh-entry ol { padding-inline-start: 1.5rem; }
.mh-entry ul li, .mh-entry ol li { margin-bottom: .5rem; }
.mh-entry ul li::marker { color: var(--mh-gold); }
.mh-entry a { text-decoration: underline; text-decoration-color: rgba(var(--mh-gold-rgb), .5); text-underline-offset: 3px; }
.mh-entry blockquote {
  margin: 1.5rem 0; border-inline-start: 4px solid var(--mh-gold); background: rgba(var(--mh-gold-rgb), .07);
  border-radius: 0 1rem 1rem 0; padding: 1rem 1.5rem; font-weight: 500; color: var(--mh-gold-fg);
}
.mh-entry img { border-radius: 1rem; }
.mh-entry table { width: 100%; border-collapse: collapse; }
.mh-entry th, .mh-entry td { border: 1px solid var(--mh-border); padding: .625rem .875rem; text-align: start; }
.mh-entry th { background: rgba(var(--mh-primary-rgb), .07); font-family: var(--mh-head); }

.mh-posts-grid { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .mh-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mh-posts-grid { grid-template-columns: repeat(3, 1fr); } }
.mh-post-card {
  border-radius: var(--mh-radius-xl); border: 1px solid rgba(var(--mh-primary-rgb), .1);
  background: var(--mh-card); overflow: hidden; box-shadow: 0 1px 2px rgba(var(--mh-forest-rgb), .05);
  transition: transform .35s var(--mh-ease), box-shadow .35s ease; display: flex; flex-direction: column;
}
.mh-post-card:hover { transform: translateY(-8px); box-shadow: var(--mh-shadow-lg); }
.mh-post-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--mh-mint); }
.mh-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--mh-ease); }
.mh-post-card:hover .mh-post-thumb img { transform: scale(1.06); }
.mh-post-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .625rem; }
.mh-post-meta { display: flex; align-items: center; gap: 1rem; font-size: .75rem; color: var(--mh-muted-fg); font-weight: 600; }
.mh-post-title { font-size: 1.125rem; font-weight: 800; line-height: 1.6; }
.mh-post-title a { color: var(--mh-fg); }
.mh-post-title a:hover { color: var(--mh-primary); }
.mh-post-excerpt { font-size: .875rem; color: var(--mh-muted-fg); line-height: 1.85; flex: 1; }
.mh-post-more { font-size: .825rem; font-weight: 700; display: inline-flex; align-items: center; gap: .375rem; }
.mh-post-more .mh-icon { width: 1rem; height: 1rem; }

.mh-pagination { margin-top: 3rem; display: flex; justify-content: center; gap: .5rem; }
.mh-pagination .page-numbers {
  display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding-inline: .75rem;
  border-radius: .875rem; border: 1px solid rgba(var(--mh-primary-rgb), .15); background: #fff;
  font-weight: 700; font-size: .875rem; color: var(--mh-fg); transition: all .3s ease;
}
.mh-pagination .page-numbers:hover { border-color: var(--mh-primary); color: var(--mh-primary); }
.mh-pagination .page-numbers.current { background: var(--mh-primary); border-color: var(--mh-primary); color: #fff; }

.mh-404 { text-align: center; padding: 2rem 0; }
.mh-404-num { font-family: var(--mh-head); font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1; background: linear-gradient(120deg, var(--mh-primary), #17936f 45%, var(--mh-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mh-404 p { margin-top: 1rem; color: var(--mh-muted-fg); max-width: 32rem; margin-inline: auto; }
.mh-search-form { display: flex; gap: .5rem; max-width: 26rem; margin: 2rem auto 0; }
.mh-search-form input[type="search"] {
  flex: 1; border-radius: 999px; border: 1.5px solid var(--mh-border); background: #fff;
  padding: .75rem 1.25rem; font-family: var(--mh-body); font-size: .9rem;
}
.mh-search-form input[type="search"]:focus { outline: none; border-color: var(--mh-primary); }
.mh-search-form button { border-radius: 999px; padding: .75rem 1.5rem; border: 0; cursor: pointer; }

.mh-comments-area { margin-top: 3rem; }
.mh-comment-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.mh-comment-body { background: var(--mh-card); border: 1px solid rgba(var(--mh-primary-rgb), .1); border-radius: 1rem; padding: 1.25rem; }
.mh-comment-list .children { list-style: none; margin-top: 1.25rem; padding-inline-start: 2rem; }
.mh-comment-form textarea, .mh-comment-form input[type="text"], .mh-comment-form input[type="email"], .mh-comment-form input[type="url"] {
  width: 100%; border-radius: .75rem; border: 1.5px solid var(--mh-border); background: #fff; padding: .75rem 1rem; font-family: var(--mh-body);
}
.mh-comment-form input[type="submit"] {
  background: var(--mh-primary); color: #fff; border: 0; border-radius: 999px; padding: .875rem 2rem;
  font-family: var(--mh-head); font-weight: 700; cursor: pointer;
}

.mh-widget-title { font-size: 1.05rem; margin-bottom: 1rem; }
.mh-widgets a { color: rgba(21, 53, 44, .75); }
.mh-widgets a:hover { color: var(--mh-primary); }

@media (max-width: 640px) {
  .mh-testi-wrap { min-height: 340px; }
  .mh-float-whatsapp { bottom: 1rem; inset-inline-start: 1rem; }
  .mh-float-top { bottom: 1rem; inset-inline-end: 1rem; }
}
