/* MADARISY ALL CSS — Combined from theme files */
/* base: style.css */
/*
Theme Name: Madarisy 2026
Theme URI: https://madarisy.com
Author: Madarisy Team
Description: قالب احترافي شامل لمنصة التعليم المغربي — يدعم AdSense والبحث والتنقل الديناميكي
Version: 3.5.3
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: madarisy-unified
*/

/* ============================================================
   DESIGN TOKENS — Single source of truth for all colors/sizes
*/
:root {
  --clr-green: #047857;
  --clr-blue: #2563eb;
  --clr-orange: #b45309;
  --clr-teal: #0e7490;
  --clr-purple: #7c3aed;
  --clr-slate-50: #f8fafc;
  --clr-slate-100: #f1f5f9;
  --clr-slate-200: #e2e8f0;
  --clr-slate-300: #cbd5e1;
  --clr-slate-400: #94a3b8;
  --clr-slate-500: #64748b;
  --clr-slate-600: #475569;
  --clr-slate-700: #334155;
  --clr-slate-800: #1e293b;
  --clr-slate-900: #0f172a;
  --accent: var(--clr-green);
  --accent-dark: color-mix(in srgb, var(--accent) 80%, #000);
  --accent-light: color-mix(in srgb, var(--accent) 12%, #fff);
  --accent-border: color-mix(in srgb, var(--accent) 25%, var(--clr-slate-200));
  --bg: var(--clr-slate-50);
  --bg-card: #ffffff;
  --text: var(--clr-slate-800);
  --text-muted: var(--clr-slate-500);
  --muted: var(--text-muted);
  --border: var(--clr-slate-200);
  --shadow-xs: 0 1px 2px rgb(0 0 0 / .05);
  --shadow-sm: 0 2px 6px rgb(0 0 0 / .07);
  --shadow-md: 0 6px 18px rgb(0 0 0 / .09);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / .12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container: 1180px;
  --gap: clamp(14px, 2.5vw, 24px)
}

/* ============================================================
   v3.5.1 — خط Almarai مستضاف ذاتياً (assets/fonts/)
   كان CSS يعلن font-family:Almarai بدون أي @font-face وبدون تحميل
   ⇒ سقوط صامت إلى خط عام على كل النصوص العربية.
   4 أوزان (400/700/800) × مجموعتان (عربي/لاتيني) = 152 كيلوبايت،
   مع font-display:swap (لا FOIT) وتحميل مسبق للوزنين الأساسيين.
   ============================================================ */
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/almarai-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/almarai-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/almarai-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/almarai-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/almarai-800-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC
}

@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/almarai-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 8px;
  z-index: 100000;
  background: var(--clr-slate-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: top .15s ease
}

.skip-link:focus {
  top: 0;
  color: #fff
}

body.cycle-primary {
  --accent: var(--clr-green)
}

body.cycle-college {
  --accent: var(--clr-blue)
}

body.cycle-lycee {
  --accent: var(--clr-orange)
}

:root {
  --edu-green: var(--clr-green);
  --edu-blue: var(--clr-blue);
  --edu-orange: var(--clr-orange);
  --edu-teal: var(--clr-teal);
  --edu-purple: var(--clr-purple);
  --edu-grey: var(--clr-slate-500)
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  margin: 0;
  font-family: Almarai, system-ui, -apple-system, sans-serif;
  font-size: clamp(15px, 1.5vw, 16px);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.3;
  color: var(--clr-slate-900)
}

.container,
.mx-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 24px)
}

.mx-sections {
  padding-block: var(--gap)
}

.breadcrumb-wrap,
.mx-breadcrumb {
  background: var(--clr-slate-100);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: .875rem
}

.breadcrumb-wrap .container,
.mx-breadcrumb .mx-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center
}

.breadcrumb-wrap a,
.mx-breadcrumb a {
  color: var(--accent);
  font-weight: 700
}

.breadcrumb-wrap a:hover,
.mx-breadcrumb a:hover {
  text-decoration: underline
}

.breadcrumb-wrap .sep,
.mx-breadcrumb .sep {
  color: var(--clr-slate-400)
}

.mx-footer,
.site-footer {
  background: var(--clr-slate-900);
  color: var(--clr-slate-300);
  padding: 48px 0 0;
  margin-top: 60px
}

.mx-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 40px
}

.mx-footer__brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px
}

.mx-footer__brand-desc {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--clr-slate-400)
}

.mx-footer__col-title {
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: .05em;
  text-transform: uppercase
}

.mx-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.mx-footer__links a {
  color: var(--clr-slate-400);
  font-size: .9rem;
  transition: color .18s
}

.mx-footer__links a:hover {
  color: #fff
}

.mx-footer__bottom {
  border-top: 1px solid var(--clr-slate-700);
  padding: 16px 0;
  text-align: center;
  font-size: .85rem;
  color: var(--clr-slate-500)
}

.mx-footer__bottom a {
  color: var(--clr-slate-400)
}

.mx-footer__bottom a:hover {
  color: #fff
}

.page-wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding: 28px clamp(12px, 3vw, 24px) 48px
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap);
  align-items: start
}

@media (max-width:960px) {
  .page-grid {
    grid-template-columns: 1fr
  }
}

.box,
.mx-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: clamp(16px, 3vw, 24px)
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  white-space: nowrap
}

.btn-primary,
.btn:not(.btn--light):not(.btn-secondary) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.btn-primary:hover,
.btn:not(.btn--light):not(.btn-secondary):hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.btn--light,
.btn-secondary {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-border)
}

.btn--light:hover,
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.input,
input[type=email],
input[type=search],
input[type=text],
select,
textarea {
  width: 100%;
  height: 48px;
  padding-inline: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  transition: border-color .2s, box-shadow .2s
}

.input:focus,
input[type=email]:focus,
input[type=search]:focus,
input[type=text]:focus,
textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light)
}

textarea {
  height: auto;
  min-height: 120px;
  padding-block: 12px;
  resize: vertical
}

.input::placeholder {
  color: var(--clr-slate-400);
  font-weight: 400
}

.mx-block__title,
.section-title,
.widget__title {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--clr-slate-900);
  margin-bottom: 16px;
  position: relative;
  padding-inline-end: 16px
}

.mx-block__title::after,
.section-title::after,
.widget__title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  margin-top: 8px
}

.mx-block__desc,
.widget__desc {
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.8;
  margin: 0 0 14px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border)
}

.nav-links,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px
}

.page-numbers {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 800;
  font-size: .9rem;
  padding-inline: 10px;
  transition: all .18s
}

.page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.sidebar .widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs)
}

.sidebar .widget a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--clr-slate-700);
  transition: background .15s, color .15s
}

.sidebar .widget a:hover {
  background: var(--accent-light);
  color: var(--accent)
}

.sidebar .widget ul {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.mx-hero {
  background: linear-gradient(135deg, var(--clr-slate-900) 0, color-mix(in srgb, var(--accent) 30%, var(--clr-slate-900)) 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 80px) 0;
  text-align: center
}

.mx-hero__title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff
}

.mx-hero__desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, .8);
  max-width: 640px;
  margin: 0 auto 28px
}

.mx-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap
}

.mx-sections--intro-subjects {
  background: linear-gradient(135deg, var(--clr-slate-900), color-mix(in srgb, var(--accent) 25%, var(--clr-slate-900)))
}

.mx-intro-header {
  text-align: center;
  padding: clamp(28px, 6vw, 56px) 0
}

.mx-intro-header__title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px
}

.mx-intro-header__desc {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, .8);
  max-width: 680px;
  margin: 0 auto 20px
}

.mx-intro-header__badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px
}

.mx-intro-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-weight: 700;
  font-size: .95rem
}

.mx-intro-header__badge strong {
  font-weight: 800;
  color: #fff
}

.mx-cycles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  margin-top: 24px
}

.mx-cycle-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: all .25s
}

.mx-cycle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent)
}

.mx-cycle-card__icon {
  font-size: 2.8rem;
  line-height: 1
}

.mx-cycle-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--clr-slate-900)
}

.mx-cycle-card__desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7
}

.mx-cycle-card__arrow {
  margin-top: auto;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem
}

.mx-levels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 16px
}

.mx-level-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 2px solid var(--lv, var(--border));
  color: var(--lv, var(--text));
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer
}

.mx-level-btn:hover {
  background: var(--lv, var(--accent));
  color: #fff;
  border-color: var(--lv, var(--accent));
  transform: translateY(-3px);
  box-shadow: var(--shadow-md)
}

.mx-level-icon {
  flex-shrink: 0;
  font-size: 1.3em
}

.level-1ap,
.level-2ap,
.level-3ap {
  --lv: #047857
}

.level-4ap,
.level-5ap,
.level-6ap {
  --lv: #0e7490
}

.level-1ac,
.level-2ac,
.level-3ac {
  --lv: #2563eb
}

.level-1bac,
.level-2bac,
.level-common-core {
  --lv: #b45309
}

.mx-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 2px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all .25s;
  box-shadow: var(--shadow-xs)
}

.mx-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg)
}

.mx-card__emoji {
  font-size: 2.8rem;
  flex-shrink: 0;
  transition: transform .3s
}

.mx-card:hover .mx-card__emoji {
  transform: scale(1.15) rotate(5deg)
}

.mx-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.mx-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-slate-900)
}

.mx-card__desc {
  font-size: .88rem;
  color: var(--text-muted)
}

.mx-card--primary {
  border-color: #86efac;
  background: linear-gradient(135deg, #fff, #f0fdf4)
}

.mx-card--primary:hover {
  background: var(--clr-green);
  border-color: var(--clr-green)
}

.mx-card--primary:hover .mx-card__desc,
.mx-card--primary:hover .mx-card__title {
  color: #fff
}

.mx-card--college {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #fff, #eff6ff)
}

.mx-card--college:hover {
  background: var(--clr-blue);
  border-color: var(--clr-blue)
}

.mx-card--college:hover .mx-card__desc,
.mx-card--college:hover .mx-card__title {
  color: #fff
}

.mx-card--lycee {
  border-color: #fcd34d;
  background: linear-gradient(135deg, #fff, #fffbeb)
}

.mx-card--lycee:hover {
  background: var(--clr-orange);
  border-color: var(--clr-orange)
}

.mx-card--lycee:hover .mx-card__desc,
.mx-card--lycee:hover .mx-card__title {
  color: #fff
}

.mx-res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px
}

.mx-res-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: all .18s
}

.mx-res-tile:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.mx-res-cta {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--clr-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0
}

.mx-search-wide {
  margin-top: 12px
}

.mx-search-wide__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.mx-search-wide__input {
  flex: 1;
  min-width: 200px
}

.mx-search-wide__btn {
  height: 48px;
  padding-inline: 24px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap
}

.mx-search-wide__btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px)
}

.mx-search-wide__btn--light {
  background: var(--accent-light);
  color: var(--accent);
  border: 2px solid var(--accent-border)
}

.mx-search-wide__btn--light:hover {
  background: var(--accent);
  color: #fff
}

.mx-search-wide__hint {
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 8px
}

.mx-section-separated {
  margin-block: 28px
}

.mx-seo-content h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--clr-slate-900);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent)
}

.mx-seo-content h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: var(--clr-slate-800);
  margin: 22px 0 10px
}

.mx-seo-content p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--clr-slate-700);
  margin-bottom: 14px
}

.mx-seo-list {
  list-style: none;
  padding: 0;
  margin: 12px 0
}

.mx-seo-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--clr-slate-700)
}

.mx-seo-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  background: var(--accent);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 800
}

html[dir=rtl] .mx-seo-list li {
  padding: 8px 30px 8px 0
}

html[dir=rtl] .mx-seo-list li::before {
  left: auto;
  right: 0
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-xs)
}

.faq__q {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
  padding: 14px 16px;
  display: block;
  list-style: none
}

.faq[open] .faq__q {
  border-bottom: 1px solid var(--border)
}

.faq__a p {
  margin: 0;
  padding: 14px 16px;
  color: var(--clr-slate-700);
  line-height: 1.9
}

.mx-back {
  margin-top: 24px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border)
}

.mx-back-btn,
.mx-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 800;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  transition: all .2s;
  font-size: .95rem
}

.mx-back-btn:hover,
.mx-back__btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.devoir-container,
.exam-container,
.lesson-container,
.single-post-container {
  max-width: min(900px, 100%);
  margin-inline: auto;
  padding: 28px clamp(14px, 3vw, 24px) 48px
}

.devoir-title,
.exam-title,
.lesson-title,
.single-post-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--clr-slate-900);
  line-height: 1.3;
  margin-bottom: 14px
}

.devoir-meta,
.exam-meta,
.lesson-meta,
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border)
}

.devoir-intro,
.exam-intro,
.lesson-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-right: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--clr-slate-700);
  box-shadow: var(--shadow-xs)
}

html[dir=rtl] .devoir-intro,
html[dir=rtl] .exam-intro,
html[dir=rtl] .lesson-intro {
  border-right: none;
  border-left: 4px solid var(--accent)
}

.devoir-section,
.exam-section,
.lesson-exercises-section,
.lesson-summary-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs)
}

.devoir-section h2,
.exam-section h2,
.lesson-exercises-section h2,
.lesson-summary-section h2,
.lesson-summary-title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: var(--clr-slate-900);
  margin-bottom: 12px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border)
}

.lesson-summary-seo {
  background: var(--clr-slate-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: .95rem;
  color: var(--clr-slate-600);
  line-height: 1.9
}

.exercise-content-block,
.lesson-content-block {
  margin-bottom: 18px
}

.exercise-content-block h2,
.lesson-content-block h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-slate-800);
  margin-bottom: 10px
}

.devoir-files,
.exam-files,
.lesson-files {
  margin-top: 8px
}

.devoir-files ul,
.exam-files ul,
.lesson-files ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0
}

.devoir-file-row,
.exam-file-row,
.lesson-file-row {
  background: var(--clr-slate-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  list-style: none
}

.devoir-buttons-group,
.exam-buttons-group,
.lesson-buttons-group,
.solution-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px
}

.file-label {
  flex: 1;
  min-width: 180px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--clr-slate-700)
}

.btn-download,
.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  transition: all .18s;
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent
}

.btn-download {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.btn-download:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.btn-view {
  background: var(--bg-card);
  color: var(--accent);
  border-color: var(--accent-border)
}

.btn-view:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(-2px)
}

.solution-buttons .btn-download {
  background: var(--clr-green);
  border-color: var(--clr-green)
}

.solution-buttons .btn-download:hover {
  background: color-mix(in srgb, var(--clr-green) 80%, #000)
}

.solution-buttons .btn-view {
  color: var(--clr-green);
  border-color: color-mix(in srgb, var(--clr-green) 30%, var(--border))
}

.no-content-message {
  margin: 20px 0
}

.no-content-box {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center
}

.no-content-box h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--clr-slate-700);
  margin-bottom: 12px
}

.no-content-box p {
  color: var(--clr-slate-500);
  line-height: 1.8
}

.related-lessons {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs)
}

.related-lessons h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-slate-900);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border)
}

.related-lessons ul {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.related-lessons li {
  list-style: none
}

.related-lessons a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--clr-slate-700);
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s, color .15s
}

.related-lessons a::before {
  content: '›';
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0
}

.related-lessons a:hover {
  background: var(--accent-light);
  color: var(--accent)
}

.related-links-section-enhanced {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs)
}

.related-links-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border)
}

.related-links-title-enhanced {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--clr-slate-900)
}

.related-links-category {
  margin-bottom: 18px
}

.related-links-category-title {
  font-size: .92rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px
}

.related-links-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px
}

.related-link-item-enhanced {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius);
  background: var(--clr-slate-50);
  border: 1px solid var(--border);
  color: var(--clr-slate-700);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: all .18s
}

.related-link-item-enhanced:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm)
}

.link-icon {
  font-size: 1.1em;
  flex-shrink: 0
}

.link-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.lesson-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
  box-shadow: var(--shadow-xs)
}

.nav-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md)
}

.nav-disabled {
  opacity: .4;
  pointer-events: none
}

.nav-next {
  justify-content: flex-end;
  text-align: end
}

.nav-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0
}

.nav-content {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.nav-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 700
}

.nav-title {
  font-weight: 800;
  font-size: .95rem;
  color: var(--clr-slate-800)
}

@media (max-width:600px) {
  .lesson-navigation {
    grid-template-columns: 1fr
  }
}

.lesson-back-section {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border)
}

.back-button,
.mx-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 800;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  transition: all .2s;
  font-size: .95rem;
  font-family: inherit
}

.back-button:hover,
.mx-back-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px)
}

.single-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--clr-slate-700)
}

.single-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 24px 0 10px;
  color: var(--clr-slate-900)
}

.single-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 18px 0 8px;
  color: var(--clr-slate-800)
}

.single-content p {
  margin-bottom: 14px
}

.single-content a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 700
}

.single-content a:hover {
  color: var(--accent-dark)
}

.single-content ol,
.single-content ul {
  padding-inline-start: 24px;
  margin-bottom: 14px;
  list-style: initial
}

.single-content li {
  margin-bottom: 6px
}

.single-content blockquote {
  border-inline-start: 4px solid var(--accent);
  margin: 18px 0;
  padding: 12px 20px;
  background: var(--clr-slate-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--clr-slate-600);
  font-style: italic
}

.single-content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px
}

.single-content td,
.single-content th {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: start
}

.single-content thead th {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 800
}

.archive-header,
.page-head {
  padding: clamp(24px, 4vw, 40px) 0;
  background: linear-gradient(135deg, var(--clr-slate-900), color-mix(in srgb, var(--accent) 30%, var(--clr-slate-900)));
  color: #fff
}

.archive-header .container,
.page-head .mx-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(14px, 3vw, 24px)
}

.archive-title,
.page-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px
}

.archive-desc,
.page-subtitle {
  font-size: .97rem;
  color: rgba(255, 255, 255, .82);
  line-height: 1.8;
  margin: 0
}

.cards,
.items-grid,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap)
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .25s;
  box-shadow: var(--shadow-xs)
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent)
}

.card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--clr-slate-100)
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s
}

.card:hover .card__thumb img {
  transform: scale(1.04)
}

.card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.card__badge {
  align-self: flex-start
}

.card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--clr-slate-900);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.card__title a {
  color: inherit
}

.card__title a:hover {
  color: var(--accent)
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--text-muted);
  font-size: .84rem
}

.card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--clr-slate-50);
  color: var(--clr-slate-700);
  font-weight: 800;
  font-size: .88rem;
  transition: all .18s;
  text-decoration: none
}

.card__more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light)
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px
}

.filter {
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--clr-slate-700);
  cursor: pointer;
  transition: all .2s;
  font-size: .9rem
}

.filter.is-active,
.filter:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm)
}

.mx-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  text-align: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--clr-slate-700);
  transition: all .18s
}

.mx-mini:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.search-wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding: 28px clamp(14px, 3vw, 24px) 48px
}

.search-header {
  margin-bottom: 28px
}

.search-header h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: var(--clr-slate-900);
  margin-bottom: 8px
}

.search-count {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 700
}

.search-filters-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs)
}

.search-filters-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end
}

.search-filters-bar label {
  display: block;
  font-weight: 800;
  font-size: .85rem;
  color: var(--clr-slate-600);
  margin-bottom: 6px
}

.search-filters-bar input[type=search],
.search-filters-bar select {
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: .9rem
}

.search-filters-bar .field-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 150px
}

.search-filters-bar .field-search {
  flex: 2;
  min-width: 220px
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.search-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all .2s;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: var(--text)
}

.search-item:hover {
  border-color: var(--accent);
  transform: translateX(-4px);
  box-shadow: var(--shadow-md)
}

html[dir=rtl] .search-item:hover {
  transform: translateX(4px)
}

.search-item__icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px
}

.search-item__body {
  flex: 1
}

.search-item__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--clr-slate-900);
  margin-bottom: 6px;
  line-height: 1.4
}

.search-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--clr-slate-900);
  margin-bottom: 6px
}

.search-excerpt {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7
}

.search-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px
}

.search-empty {
  text-align: center;
  padding: 48px 20px
}

.search-empty h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-slate-700);
  margin-bottom: 10px
}

.search-empty p {
  color: var(--text-muted);
  line-height: 1.8
}

.advanced-search-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs)
}

.advanced-search-panel h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-slate-900);
  margin-bottom: 18px
}

.page-container {
  max-width: 880px;
  margin-inline: auto;
  padding: 32px clamp(14px, 3vw, 24px) 48px
}

.page-hero {
  background: linear-gradient(135deg, var(--clr-slate-900), color-mix(in srgb, var(--accent) 30%, var(--clr-slate-900)));
  color: #fff;
  text-align: center;
  padding: clamp(36px, 6vw, 64px) 0
}

.page-hero__icon {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 16px
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px
}

.page-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, .82);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8
}

.page-section {
  margin-bottom: 32px
}

.page-section h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 800;
  color: var(--clr-slate-900);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent)
}

.page-section h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-slate-800);
  margin: 18px 0 8px
}

.page-section p {
  color: var(--clr-slate-700);
  line-height: 1.9;
  margin-bottom: 12px
}

.page-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px
}

.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  transition: all .25s;
  box-shadow: var(--shadow-xs)
}

.page-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent)
}

.page-card__icon {
  font-size: 2.5rem;
  margin-bottom: 14px
}

.page-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--clr-slate-900);
  margin-bottom: 8px
}

.page-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

@media (max-width:600px) {
  .contact-form .form-row {
    grid-template-columns: 1fr
  }
}

.contact-form label {
  display: block;
  font-weight: 800;
  font-size: .9rem;
  color: var(--clr-slate-600);
  margin-bottom: 6px
}

.contact-form .form-submit {
  display: flex;
  justify-content: flex-end
}

.info-box {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 18px 0
}

.info-box__icon {
  font-size: 1.8rem;
  flex-shrink: 0
}

.info-box__body p {
  margin: 0;
  color: var(--clr-slate-700);
  line-height: 1.8;
  font-size: .97rem
}

.info-box--warn {
  background: #fffbeb;
  border-color: #fcd34d
}

.info-box--success {
  background: #f0fdf4;
  border-color: #86efac
}

.page-404 {
  text-align: center;
  padding: 80px 20px
}

.page-404__code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block
}

.page-404 h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin: 8px 0 16px
}

.page-404 p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 28px
}

.cat-header {
  background: linear-gradient(135deg, var(--clr-slate-900), color-mix(in srgb, var(--accent) 28%, var(--clr-slate-900)));
  padding: clamp(28px, 5vw, 52px) 0;
  color: #fff
}

.cat-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px
}

.cat-header p {
  color: rgba(255, 255, 255, .8)
}

@media (max-width:768px) {

  .devoir-buttons-group,
  .exam-buttons-group,
  .lesson-buttons-group {
    flex-direction: column;
    align-items: stretch
  }

  .btn-download,
  .btn-view {
    justify-content: center;
    width: 100%
  }

  .file-label {
    min-width: 100%
  }

  .related-links-grid-enhanced {
    grid-template-columns: repeat(2, 1fr)
  }

  .cards,
  .items-grid,
  .posts-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:480px) {
  .related-links-grid-enhanced {
    grid-template-columns: 1fr
  }

  .mx-cycles-grid,
  .page-cards {
    grid-template-columns: 1fr
  }

  .search-filters-bar form {
    flex-direction: column
  }

  .search-filters-bar .field-wrap {
    min-width: 100%
  }
}

.mx-subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 16px
}

.mx-subject-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  font-weight: 800;
  font-size: .9rem;
  color: var(--clr-slate-700);
  text-decoration: none;
  transition: all .2s;
  box-shadow: var(--shadow-xs)
}

.mx-subject-btn__icon {
  font-size: 2rem
}

.mx-subject-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md)
}

.mx-subject-btn .mx-count {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 700
}

.mx-subject-btn:hover .mx-count {
  color: rgba(255, 255, 255, .8)
}

@media print {

  .lesson-navigation,
  .mx-footer,
  .mx-header,
  .mx-topbar,
  .related-links-section-enhanced {
    display: none !important
  }

  body {
    background: #fff
  }

  .lesson-container {
    max-width: 100%
  }

  .btn-download,
  .btn-view {
    display: none !important
  }
}

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

.small-text {
  font-size: .82rem;
  color: var(--text-muted)
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000
}

.site-footer {
  margin-top: 0
}

.page-head {
  background: linear-gradient(135deg, var(--clr-slate-900), color-mix(in srgb, var(--accent) 30%, var(--clr-slate-900)));
  color: #fff;
  padding: clamp(22px, 4vw, 40px) 0
}

.page-head__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(14px, 3vw, 24px)
}

.page-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px
}

.page-subtitle {
  font-size: .97rem;
  color: rgba(255, 255, 255, .82);
  margin: 0;
  line-height: 1.8
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px
}

.section-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .88rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--clr-slate-700);
  transition: all .18s;
  text-decoration: none
}

.section-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light)
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center
}

.select {
  height: 48px;
  padding-inline: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  transition: border-color .2s
}

.select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light)
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-border);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.7
}

.alert--info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd
}

.alert--warn {
  background: #fffbeb;
  color: #92400e;
  border-color: #fcd34d
}

.alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5
}

.page-search {
  max-width: var(--container);
  margin-inline: auto;
  padding: 28px clamp(14px, 3vw, 24px) 48px
}

.mx-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border)
}

.mx-block__seo-desc {
  font-size: .95rem;
  color: var(--clr-slate-600);
  line-height: 1.9;
  background: var(--clr-slate-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px
}

.mx-block--levels {
  padding-top: 20px
}

.mx-block--search {
  padding: clamp(16px, 2.5vw, 24px)
}

.mx-sections--seo {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding-block: clamp(28px, 5vw, 52px)
}

.mx-sections--intro-subjects .mx-container {
  padding-block: 0
}

.mx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap)
}

.mx-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-block: clamp(44px, 8vw, 76px)
}

.mx-hero__content {
  max-width: 720px;
  width: 100%
}

.mx-hero__tagline {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 5px 18px;
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 14px;
  letter-spacing: .04em
}

.mx-hero__marketing {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px
}

.mx-hero--seo {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding-block: clamp(24px, 4vw, 44px)
}

.mx-hero--seo .mx-hero__title {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  color: var(--clr-slate-900)
}

.mx-hero--seo .mx-hero__desc {
  color: var(--text-muted)
}

.mx-hero--seo .mx-hero__inner {
  padding-block: 0
}

.mx-mini__emoji {
  font-size: 1.3em;
  flex-shrink: 0
}

.mx-mini__text {
  font-weight: 800
}

.mx-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px
}

.mx-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: all .2s
}

.mx-more:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.mx-news {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.mx-news--archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap)
}

.mx-news__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
  box-shadow: var(--shadow-xs)
}

.mx-news--archive .mx-news__item {
  flex-direction: column
}

.mx-news__item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md)
}

.mx-news__title {
  font-size: .97rem;
  font-weight: 800;
  color: var(--clr-slate-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.mx-news__item:hover .mx-news__title {
  color: var(--accent)
}

.mx-search {
  width: 100%;
  max-width: 640px;
  margin: 20px auto 0
}

.mx-search form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.mx-search__input {
  flex: 1;
  min-width: 200px;
  height: 52px;
  padding-inline: 20px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  transition: border-color .2s, background .2s
}

.mx-search__input::placeholder {
  color: rgba(255, 255, 255, .65)
}

.mx-search__input:focus {
  outline: 0;
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .6)
}

.mx-search__btn {
  height: 52px;
  padding-inline: 28px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap
}

.mx-search__btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.mx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gap);
  margin-top: 24px
}

.mx-stat {
  text-align: center;
  padding: 20px 16px;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .2)
}

.mx-stat__number {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2
}

.mx-stat__label {
  font-size: .88rem;
  color: rgba(255, 255, 255, .8);
  font-weight: 700;
  margin-top: 4px
}

.mx-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding-bottom: 36px
}

.mx-footer-legal__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: var(--clr-slate-500)
}

.mx-footer-legal__inner a {
  color: var(--clr-slate-400);
  transition: color .18s
}

.mx-footer-legal__inner a:hover {
  color: #fff
}

.mx-mainbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(14px, 3vw, 24px)
}

.mx-topbar .mx-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.mx-topbar__extra {
  margin-inline-start: auto
}

.mx-menu-wrapper {
  flex: 1
}

.exam-files-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 24px);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs)
}

.exam-files-title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: var(--clr-slate-900);
  margin-bottom: 16px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border)
}

.exam-files-list {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.exam-file-item {
  background: var(--clr-slate-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  list-style: none
}

.file-header-with-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px
}

.file-name {
  flex: 1;
  min-width: 160px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--clr-slate-700)
}

.file-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center
}

.exam-region-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-bottom: 16px
}

.exam-region-title {
  background: linear-gradient(135deg, var(--clr-slate-800), color-mix(in srgb, var(--accent) 25%, var(--clr-slate-800)));
  color: #fff;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px
}

.exam-province-group {
  padding: 14px 18px;
  border-top: 1px solid var(--border)
}

.exam-province-group:first-child {
  border-top: 0
}

.exam-province-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--clr-slate-700);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px
}

.province-name-orange,
.region-name-orange {
  color: var(--accent);
  font-weight: 800
}

.province-prefix,
.region-prefix {
  color: var(--text-muted);
  font-weight: 700;
  font-size: .88em
}

.search-form {
  margin-bottom: 20px
}

.search-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px
}

.search-form__row--main {
  align-items: stretch
}

.search-adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px
}

.search-adv__field {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.search-adv__field--keyword {
  grid-column: 1/-1
}

.search-adv__label {
  font-size: .85rem;
  font-weight: 800;
  color: var(--clr-slate-600)
}

.search-adv__input {
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: .9rem
}

.search-adv__select {
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  padding-inline: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-family: inherit;
  color: var(--text);
  transition: border-color .2s
}

.search-adv__select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light)
}

.search-adv__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.search-adv__summary {
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 700
}

.search-hits--titles-only {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.search-item--title-only {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--clr-slate-700);
  font-weight: 700;
  transition: all .18s;
  font-size: .95rem
}

.search-item--title-only:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateX(-4px)
}

html[dir=rtl] .search-item--title-only:hover {
  transform: translateX(4px)
}

.meta-year {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde047
}

.meta-level {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac
}

.meta-subject {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd
}

.meta-stream {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd
}

.meta-kind {
  background: #fce7f3;
  color: #9d174d;
  border-color: #f9a8d4
}

.meta-sem {
  background: #f0fdf4;
  color: #15803d;
  border-color: #86efac
}

.category-icon {
  font-size: 1em
}

.solution-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--clr-green);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .06em
}

.solution-buttons {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border)
}

#mad-google-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999
}

#mad-google-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55)
}

.mad-modal__dialog {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 4vh auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35)
}

.mad-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff
}

.mad-modal__title {
  font-weight: 800;
  font-size: 1rem
}

.mad-modal__close {
  background: 0 0;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0
}

.mad-modal__frame {
  height: 72vh;
  min-height: 420px
}

.mad-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block
}

.mad-modal__footer {
  padding: 12px 16px;
  background: #f7f7f7;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  gap: 12px
}

.mx-menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0
}

.mx-topbar-nav {
  flex: 1
}

.back-icon {
  font-size: 1.2em
}

.back-text {
  font-weight: 800
}

html[dir=rtl] .nav-prev .nav-arrow {
  transform: scaleX(-1)
}

html[dir=rtl] .nav-next .nav-arrow {
  transform: scaleX(-1)
}

@media (max-width:768px) {
  .mx-grid {
    grid-template-columns: 1fr 1fr
  }

  .mx-stats {
    grid-template-columns: 1fr 1fr
  }

  .search-adv-grid {
    grid-template-columns: 1fr
  }

  .search-adv__field--keyword {
    grid-column: auto
  }

  .file-header-with-buttons {
    flex-direction: column;
    align-items: flex-start
  }

  .file-buttons-row {
    width: 100%
  }

  .file-buttons-row .btn-download,
  .file-buttons-row .btn-view {
    flex: 1;
    justify-content: center
  }

  .mx-footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .mx-footer-legal__inner {
    flex-direction: column;
    text-align: center
  }
}

@media (max-width:480px) {
  .mx-grid {
    grid-template-columns: 1fr
  }

  .mx-stats {
    grid-template-columns: 1fr 1fr
  }

  .mx-hero__marketing {
    flex-direction: column;
    align-items: center
  }

  .mx-search form {
    flex-direction: column
  }

  .mx-search__btn,
  .mx-search__input {
    width: 100%
  }

  .mx-footer-grid {
    grid-template-columns: 1fr
  }
}

.mx-error-page {
  padding: 80px 0;
  text-align: center;
  background: #f9fbfc
}

.mx-error-hero {
  padding-bottom: 60px
}

.mx-error-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--edu-teal);
  line-height: 1;
  margin-bottom: 20px;
  opacity: .2
}

.mx-error-title {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 20px
}

.mx-error-desc {
  font-size: 18px;
  color: #7f8c8d;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6
}

.mx-error-search {
  max-width: 500px;
  margin: 0 auto 40px
}

.mx-search-form {
  display: flex;
  gap: 10px
}

.mx-search-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px
}

.mx-search-submit {
  padding: 12px 30px;
  background: var(--edu-teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700
}

.mx-error-actions {
  display: flex;
  gap: 20px;
  justify-content: center
}

.mx-btn {
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: .3s
}

.mx-btn--primary {
  background: var(--edu-teal);
  color: #fff
}

.mx-btn--outline {
  border: 2px solid var(--edu-teal);
  color: var(--edu-teal)
}

@media (max-width:768px) {
  .mx-error-code {
    font-size: 80px
  }

  .mx-error-title {
    font-size: 24px
  }

  .mx-error-actions {
    flex-direction: column
  }
}

.mx-legal-page {
  padding-bottom: 60px
}

.page-head--legal {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #fff;
  padding: 60px 0;
  text-align: center
}

.mx-legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
  line-height: 1.8;
  color: #34495e
}

.mx-legal-content h2 {
  color: var(--edu-teal);
  margin-top: 30px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px
}

.mx-contact-box {
  background: #f9fbfc;
  padding: 20px;
  border-radius: 8px;
  border-right: 5px solid var(--edu-teal);
  margin: 20px 0;
  font-weight: 700;
  text-align: center
}

.mx-contact-box a {
  color: var(--edu-teal);
  text-decoration: none;
  font-size: 20px
}

@media (max-width:768px) {
  .mx-legal-content {
    padding: 20px
  }
}

.about-page-head {
  text-align: center;
  margin-bottom: 40px
}

.about-page-head p {
  color: var(--text-muted);
  font-size: 1.1em
}

.about-page-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8
}

.about-vision-mission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0
}

.about-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-sm)
}

.about-card--vision {
  border-right: 4px solid var(--edu-blue)
}

.about-card--mission {
  border-right: 4px solid var(--edu-green)
}

.about-features {
  list-style: none;
  padding-right: 0
}

.about-features li {
  margin-bottom: 15px
}

.about-commitment {
  background: var(--clr-slate-900);
  color: #fff;
  padding: 30px;
  border-radius: var(--radius);
  margin: 40px 0
}

.about-commitment h2 {
  color: #fff;
  text-align: center
}

.about-commitment p {
  text-align: center
}

.about-license {
  background: linear-gradient(135deg, #0b5520, #15803d);
  color: #fff;
  padding: 30px;
  border-radius: var(--radius);
  margin: 40px 0
}

.about-license h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 15px
}

.about-license p {
  text-align: center;
  line-height: 1.8
}

.about-license p:last-child {
  font-size: .95rem;
  margin-top: 10px;
  opacity: .9
}

.about-cta {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm)
}

.about-cta .btn-primary-custom {
  display: inline-block;
  background: var(--edu-blue);
  color: #fff;
  padding: 12px 25px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none
}

.about-cta .btn-primary-custom:hover {
  background: var(--clr-blue)
}

.contact-notice {
  background: #e6ffed;
  border: 1px solid #acf2bd;
  color: #1e7e34;
  padding: 15px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  text-align: center;
  font-weight: 700
}

.contact-wrapper {
  max-width: 750px;
  margin: 30px auto;
  background: var(--bg-card);
  padding: clamp(15px, 5%, 35px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm)
}

.contact-form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap
}

.contact-form-group {
  flex: 1;
  min-width: 250px
}

.contact-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700
}

.contact-form-group .required-star {
  color: #dc2626
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--clr-slate-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  box-sizing: border-box;
  background: var(--bg-card)
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 120px
}

.contact-submit-wrap {
  text-align: center
}

.contact-submit-btn {
  background: var(--edu-blue);
  color: #fff;
  padding: 15px 45px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: .3s;
  width: auto;
  min-width: 200px;
  display: inline-block
}

.contact-submit-btn:hover {
  background: var(--clr-blue)
}

.contact-footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  border-top: 1px solid var(--border)
}

.contact-footer p {
  color: var(--text-muted);
  font-size: 14px
}

.contact-footer p:first-child {
  font-size: 16px
}

.contact-footer a {
  color: var(--edu-blue);
  text-decoration: none;
  font-weight: 700
}

:where(summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--clr-orange, #b45309);
  outline-offset: 2px
}

/* header.css */
:root {
  --text-on: #ffffff;
  --shadow-hover: rgba(0, 0, 0, 0.12);
  --mx-container-max: 1180px;
  --mx-gap: clamp(12px, 2vw, 20px);
  --mx-topbar-h: 40px;
  --mx-mainbar-h-desktop: 76px;
  --mx-mainbar-h-mobile: 60px;
  --mx-mainbar-h-scrolled: 62px;
  --mx-topbar-bg: linear-gradient(120deg, #14532d 0%, #15803d 55%, #15803d 100%);
  --mx-topbar-accent: #d1fae5;
  --mx-header-offset: 0px
}

html,
body {
  overflow-x: clip;
}

.mx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  will-change: auto
}

.mx-container {
  max-width: var(--mx-container-max);
  margin-inline: auto;
  padding-inline: var(--mx-gap);
  width: 100%
}

.mx-topbar {
  background: var(--mx-topbar-bg);
  color: var(--text-on);
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1), opacity .3s ease, margin .35s cubic-bezier(.4, 0, .2, 1);
  max-height: var(--mx-topbar-h);
  opacity: 1;
  position: relative;
  z-index: 5
}

.mx-topbar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .35) 50%, transparent 100%);
  pointer-events: none
}

.mx-topbar .mx-container {
  height: var(--mx-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.5vw, 16px)
}

.mx-header.is-scrolled .mx-topbar {
  max-height: 0;
  opacity: 0;
  pointer-events: none
}

.mx-topbar-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden
}

.mx-menu--topbar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
  justify-content: flex-start
}

.mx-menu--topbar li {
  position: relative;
  flex-shrink: 0
}

.mx-menu--topbar a {
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  padding: 5px 14px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease
}

.mx-menu--topbar a:focus,
.mx-menu--topbar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14)
}

.mx-menu--topbar .current-menu-item>a,
.mx-menu--topbar .current_page_item>a {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  font-weight: 700
}

.mx-topbar__extra {
  flex-shrink: 0;
  display: flex;
  align-items: center
}

.mx-topbar__tagline {
  gap: 7px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--mx-topbar-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: clamp(160px, 26vw, 340px);
  padding-inline-start: 14px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.22)
}

.mx-topbar__tagline svg {
  flex-shrink: 0;
  opacity: .85
}

.mx-topbar-toggle {
  display: none
}

.mx-mainbar {
  background: linear-gradient(180deg, #fff 0, #fbfdfe 100%);
  border-block-end: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
  position: relative;
  z-index: 6;
  transition: box-shadow .3s ease, min-height .3s ease
}

.mx-header.is-scrolled .mx-mainbar {
  box-shadow: 0 6px 24px rgba(15, 23, 42, .12)
}

.mx-mainbar__inner {
  min-height: var(--mx-mainbar-h-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mx-gap);
  position: relative;
  transition: min-height .3s cubic-bezier(.4, 0, .2, 1)
}

.mx-header.is-scrolled .mx-mainbar__inner {
  min-height: var(--mx-mainbar-h-scrolled)
}

.mx-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 10
}

.mx-brand .custom-logo,
.mx-brand img {
  height: clamp(44px, 5vw, 56px);
  width: auto;
  display: block;
  max-width: 100%;
  object-fit: contain;
  transition: height .3s ease
}

.mx-header.is-scrolled .mx-brand .custom-logo,
.mx-header.is-scrolled .mx-brand img {
  height: clamp(40px, 4.5vw, 48px)
}

.mx-brand__title {
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--clr-slate-900, #0f172a);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.mx-brand__title::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--clr-green, #047857), var(--clr-blue, #2563eb))
}

.mx-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  background: 0 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 100;
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease
}

.mx-toggle:hover {
  background: var(--clr-slate-100, #f1f5f9)
}

.mx-toggle__bar {
  background: linear-gradient(90deg, var(--clr-green, #047857), var(--clr-blue, #2563eb));
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .2s ease
}

.mx-toggle.is-open .mx-toggle__bar:first-child {
  transform: translateY(8px) rotate(45deg)
}

.mx-toggle.is-open .mx-toggle__bar:nth-child(2) {
  opacity: 0
}

.mx-toggle.is-open .mx-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg)
}

.mx-primary-nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  position: relative
}

.mx-menu-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative
}

.mx-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex
}

.mx-menu--primary {
  gap: 2px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  width: max-content;
  max-width: 100%
}

.mx-menu--primary>li {
  position: relative;
  flex-shrink: 0
}

.mx-menu--primary>li>a {
  color: var(--clr-slate-700, #334155);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  padding: 9px 14px;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease
}

.mx-menu--primary>li>a::before {
  content: "";
  position: absolute;
  inset-inline: 38%;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--clr-green, #047857), var(--clr-blue, #2563eb));
  opacity: 0;
  transition: opacity .2s ease, inset-inline .2s ease
}

.mx-menu--primary>li>a:focus,
.mx-menu--primary>li>a:hover {
  color: var(--clr-green, #047857);
  background: rgba(5, 150, 105, .07)
}

.mx-menu--primary>li>a:focus::before,
.mx-menu--primary>li>a:hover::before {
  opacity: 1;
  inset-inline: 18%
}

.mx-menu--primary>li.current-menu-ancestor>a,
.mx-menu--primary>li.current-menu-item>a,
.mx-menu--primary>li.current_page_item>a {
  color: var(--clr-green, #047857);
  background: rgba(5, 150, 105, .1);
  font-weight: 800
}

.mx-menu--primary>li.current-menu-ancestor>a::before,
.mx-menu--primary>li.current-menu-item>a::before,
.mx-menu--primary>li.current_page_item>a::before {
  opacity: 1;
  inset-inline: 25%
}

.mx-menu--primary li:focus-within>ul,
.mx-menu--primary li:hover>ul {
  display: block;
  animation: mx-fade-drop .18s ease
}

@keyframes mx-fade-drop {
  from {
    opacity: 0;
    transform: translateY(-4px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.mx-menu--primary ul {
  display: none;
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-start: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius, 12px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14), 0 4px 12px rgba(0, 0, 0, .06);
  z-index: 100;
  padding: 8px;
  overflow: hidden
}

.mx-menu--primary ul::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-green, #047857), var(--clr-blue, #2563eb), var(--clr-orange, #b45309))
}

.mx-menu--primary ul li {
  position: relative
}

.mx-menu--primary ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  white-space: nowrap;
  line-height: 1.5;
  font-weight: 700;
  font-size: .9rem;
  color: var(--clr-slate-700, #334155);
  border-radius: 8px;
  transition: background .18s ease, color .18s ease, padding .18s ease
}

.mx-menu--primary ul li a:focus,
.mx-menu--primary ul li a:hover {
  background: rgba(5, 150, 105, .08);
  color: var(--clr-green, #047857);
  padding-inline-start: 16px
}

.mx-menu--primary ul ul {
  inset-inline-start: calc(100% - 6px);
  inset-block-start: 0;
  margin-inline-start: 4px
}

html[dir=rtl] .mx-menu--primary ul ul {
  inset-inline-start: auto;
  inset-inline-end: calc(100% - 6px)
}

.mx-menu--primary .menu-item-has-children>a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-inline-start: 7px;
  opacity: .45;
  flex-shrink: 0;
  transition: transform .2s ease
}

html[dir=rtl] .mx-menu--primary .menu-item-has-children>a::after {
  transform: rotate(135deg)
}

.mx-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  pointer-events: none
}

.mx-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.mx-overlay[hidden] {
  display: none !important
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--clr-orange, #b45309);
  outline-offset: 2px
}

@media (max-width:1180px) {
  .mx-menu--primary>li>a {
    padding: 9px 10px;
    font-size: .88rem
  }
}

@media (min-width:769px) {

  .mx-drawer-head,
  .mx-mobile-topbar-menu {
    display: none !important
  }

  .mx-close-btn {
    display: none !important
  }
}

@media (min-width:769px) and (max-width:1400px) {
  .mx-menu-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--clr-slate-200, #e2e8f0) transparent
  }

  .mx-menu-wrapper::-webkit-scrollbar {
    height: 5px
  }

  .mx-menu-wrapper::-webkit-scrollbar-thumb {
    background: var(--clr-slate-200, #e2e8f0);
    border-radius: 3px
  }
}

@media (max-width:768px) {
  .mx-topbar {
    display: none !important
  }

  .mx-mainbar__inner {
    min-height: var(--mx-mainbar-h-mobile);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px
  }

  .mx-toggle {
    display: flex;
    grid-column: 1;
    justify-self: start
  }

  .mx-brand {
    grid-column: 2;
    justify-self: center
  }

  .mx-brand .custom-logo,
  .mx-brand img {
    height: 42px
  }

  .mx-primary-nav {
    display: none
  }

  .mx-js .mx-primary-nav {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: min(88vw, 360px);
    height: 100dvh;
    background: #fff;
    box-shadow: 12px 0 40px rgba(15, 23, 42, .18);
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    z-index: 1100;
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    will-change: transform
  }

  html[dir=rtl].mx-js .mx-primary-nav,
  html[dir=rtl] .mx-js .mx-primary-nav {
    box-shadow: -12px 0 40px rgba(15, 23, 42, .18);
    transform: translateX(100%)
  }

  html[dir=rtl].mx-js .mx-primary-nav.is-open,
  html[dir=rtl] .mx-js .mx-primary-nav.is-open {
    transform: translateX(0)
  }

  .mx-js .mx-primary-nav.is-open {
    transform: translateX(0);
    visibility: visible
  }

  .mx-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-block-end: 1px solid var(--clr-slate-100, #f1f5f9);
    background: linear-gradient(120deg, #fff, #f0fdf4)
  }

  .mx-drawer-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--clr-green, #047857);
    text-decoration: none
  }

  .mx-close-btn {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--clr-slate-200, #e2e8f0);
    background: #fff;
    color: var(--clr-slate-600, #475569);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: background .2s ease, color .2s ease
  }

  .mx-close-btn:focus,
  .mx-close-btn:hover {
    background: var(--clr-green, #047857);
    border-color: var(--clr-green, #047857);
    color: #fff
  }

  .mx-close-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor
  }

  .mx-mobile-topbar-menu {
    display: none;
    background: linear-gradient(120deg, #14532d 0, #15803d 55%, #15803d 100%);
    padding: 8px
  }

  .mx-js .mx-primary-nav.is-open .mx-mobile-topbar-menu {
    display: block
  }

  .mx-mobile-topbar-menu .mx-menu--mobile-topbar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none
  }

  .mx-menu-wrapper,
  .mx-mobile-topbar-menu {
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: 0;
    display: block;
    overflow: visible;
    flex: none
  }

  .mx-menu--mobile-topbar,
  .mx-menu--primary {
    list-style: none;
    margin: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    width: 100%;
    flex-wrap: nowrap;
    box-sizing: border-box;
    min-width: 0
  }

  .mx-menu--mobile-topbar>li,
  .mx-menu--primary>li {
    width: 100%;
    border-radius: 10px;
    position: relative;
    flex-shrink: 0
  }

  .mx-menu--mobile-topbar>li>a,
  .mx-menu--primary>li>a {
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: start;
    transition: background .18s ease, color .18s ease
  }

  .mx-menu--mobile-topbar>li>a::before,
  .mx-menu--primary>li>a::before {
    display: none !important
  }

  .mx-menu--primary>li>a {
    color: var(--clr-slate-700, #334155)
  }

  .mx-menu--primary>li>a:focus,
  .mx-menu--primary>li>a:hover {
    background: rgba(5, 150, 105, .08);
    color: var(--clr-green, #047857)
  }

  .mx-menu--primary>li.current-menu-item>a,
  .mx-menu--primary>li.current_page_item>a {
    background: rgba(5, 150, 105, .12);
    color: var(--clr-green, #047857);
    font-weight: 800
  }

  .mx-menu--mobile-topbar>li>a {
    color: rgba(255, 255, 255, .95);
    font-size: .92rem
  }

  .mx-menu--mobile-topbar>li>a:focus,
  .mx-menu--mobile-topbar>li>a:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff
  }

  .mx-menu--mobile-topbar>li.current-menu-item>a,
  .mx-menu--mobile-topbar>li.current_page_item>a {
    background: rgba(255, 255, 255, .18);
    color: #fff
  }

  .mx-menu--mobile-topbar>li.menu-item-has-children>a::after,
  .mx-menu--primary>li.menu-item-has-children>a::after {
    content: "";
    display: inline-block !important;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-inline-start: 8px;
    opacity: .5;
    flex-shrink: 0;
    transition: transform .25s ease
  }

  .mx-menu--mobile-topbar>li.menu-item-has-children.open>a::after,
  .mx-menu--primary>li.menu-item-has-children.open>a::after {
    transform: rotate(225deg) !important
  }

  .mx-menu--mobile-topbar ul,
  .mx-menu--primary ul {
    position: static !important;
    display: none !important;
    border: 0;
    box-shadow: none;
    background: var(--clr-slate-50, #f8fafc);
    margin: 0 8px 8px;
    padding: 6px;
    border-radius: 10px;
    min-width: auto;
    inset-block-start: auto !important;
    inset-inline-start: auto !important;
    overflow: visible
  }

  .mx-menu--mobile-topbar ul::before,
  .mx-menu--primary ul::before {
    display: none !important
  }

  .mx-menu--mobile-topbar li.menu-item-has-children.open>ul,
  .mx-menu--mobile-topbar li.open>ul,
  .mx-menu--primary li.menu-item-has-children.open>ul,
  .mx-menu--primary li.open>ul {
    display: block !important
  }

  .mx-menu--mobile-topbar ul li a,
  .mx-menu--primary ul li a {
    padding: 11px 12px 11px 20px;
    font-size: .93rem;
    color: var(--clr-slate-600, #475569);
    display: flex;
    white-space: normal;
    line-height: 1.5;
    font-weight: 700;
    border-radius: 8px
  }

  html[dir=rtl] .mx-menu--mobile-topbar ul li a,
  html[dir=rtl] .mx-menu--primary ul li a {
    padding: 11px 20px 11px 12px
  }

  .mx-menu--mobile-topbar ul li a:focus,
  .mx-menu--mobile-topbar ul li a:hover,
  .mx-menu--primary ul li a:focus,
  .mx-menu--primary ul li a:hover {
    background: rgba(5, 150, 105, .08);
    color: var(--clr-green, #047857)
  }

  .mx-menu--mobile-topbar ul ul,
  .mx-menu--primary ul ul {
    margin-inline-start: 0;
    margin-inline-end: 0
  }

  .mx-menu--mobile-topbar ul ul li a,
  .mx-menu--primary ul ul li a {
    padding-inline-start: 28px
  }
}

@media (max-width:480px) {
  .mx-mainbar__inner {
    gap: 8px
  }

  .mx-toggle {
    width: 40px;
    height: 40px
  }

  .mx-brand .custom-logo,
  .mx-brand img {
    height: 38px
  }

  .mx-brand__title {
    font-size: 1.05rem
  }

  .mx-js .mx-primary-nav {
    width: min(92vw, 360px)
  }
}

@media (prefers-reduced-motion:reduce) {

  .mx-header,
  .mx-js .mx-primary-nav,
  .mx-mainbar,
  .mx-topbar {
    transition: none !important
  }
}

@media print {
  .mx-header {
    display: none
  }
}

/* home.css */
.mx-hero {
  background: linear-gradient(180deg, rgba(27, 94, 32, .08) 0, rgba(27, 94, 32, 0) 100%);
  padding-block: clamp(20px, 4vw, 28px) clamp(18px, 3vw, 24px);
  padding-inline: clamp(12px, 2vw, 20px);
  border-block-end: 3px solid var(--edu-blue)
}

.mx-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(16px, 3vw, 24px)
}

.mx-hero__title {
  margin: 0 0 clamp(6px, 1vw, 8px);
  font-size: clamp(1.25rem, 4vw, 2.2rem);
  color: var(--text);
  font-weight: 800;
  line-height: 1.3
}

.mx-hero__desc {
  margin: 0 0 clamp(12px, 2vw, 16px);
  color: var(--muted);
  line-height: 1.9;
  font-size: clamp(.9rem, 1.5vw, 1rem)
}

.mx-hero__marketing {
  margin-bottom: clamp(16px, 2.5vw, 20px)
}

.mx-hero__tagline {
  margin: 0 0 clamp(10px, 1.5vw, 14px);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: var(--edu-green);
  line-height: 1.5;
  text-align: right
}

.mx-hero__marketing .mx-hero__desc {
  margin-bottom: 0;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto
}

.mx-hero__art {
  display: none
}

.mx-search {
  display: flex;
  gap: clamp(8px, 1.5vw, 10px);
  align-items: stretch;
  width: 100%;
  max-width: 100%
}

.mx-search__btn,
.mx-search__input {
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
  border-radius: clamp(10px, 1.5vw, 12px);
  box-sizing: border-box
}

.mx-search__input {
  flex: 1;
  border: 1px solid #e5e7eb;
  padding-inline: clamp(16px, 2.5vw, 20px);
  background: #fff;
  height: 56px;
  min-height: 56px;
  font-size: 1rem;
  min-width: 0;
  width: 100%
}

.mx-search__input::placeholder {
  font-size: .95rem
}

.mx-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: #ef6c00;
  color: #fff;
  min-width: 120px;
  height: 56px;
  min-height: 56px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease;
  white-space: nowrap
}

.mx-search__btn:hover {
  background: #d84315
}

.mx-search__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0
}

.mx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.5vw, 12px);
  margin-top: clamp(12px, 2vw, 16px);
  justify-content: center;
  width: 100%
}

.mx-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 16px) clamp(14px, 2.5vw, 20px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: clamp(10px, 1.5vw, 12px);
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
  min-width: clamp(80px, 12vw, 100px);
  flex: 1 1 auto;
  max-width: 150px
}

.mx-stat:hover {
  border-color: var(--edu-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, .1)
}

.mx-stat__number {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #2e7d32;
  line-height: 1.2;
  margin-bottom: clamp(2px, .5vw, 4px)
}

.mx-stat__label {
  display: block;
  font-size: clamp(.8rem, 1.5vw, .9rem);
  color: var(--muted);
  font-weight: 700
}

@media (max-width:1200px) {
  .mx-search__input {
    height: 58px;
    min-height: 58px;
    font-size: 1.05rem;
    padding-inline: 18px
  }

  .mx-search__btn {
    height: 58px;
    min-height: 58px;
    font-size: 1.05rem;
    min-width: 110px
  }

  .mx-search__input::placeholder {
    font-size: 1rem
  }
}

@media (max-width:992px) {
  .mx-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(12px, 2vw, 20px)
  }

  .mx-hero__art {
    display: none !important
  }

  .mx-search {
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 10px);
    width: 100%;
    max-width: 100%
  }

  .mx-search__input {
    height: 60px;
    min-height: 60px;
    font-size: 1.1rem;
    padding-inline: 20px;
    width: 100%
  }

  .mx-search__btn {
    width: 100%;
    min-width: 100%;
    height: 60px;
    min-height: 60px;
    font-size: 1.1rem
  }

  .mx-search__input::placeholder {
    font-size: 1.05rem
  }

  .mx-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 1.5vw, 10px)
  }

  .mx-stat {
    min-width: auto;
    max-width: 100%
  }
}

@media (max-width:768px) {
  .mx-hero {
    padding-block: clamp(16px, 3vw, 20px) clamp(14px, 2.5vw, 18px)
  }

  .mx-hero__title {
    font-size: clamp(1.2rem, 5vw, 1.8rem)
  }

  .mx-hero__desc {
    font-size: clamp(.85rem, 2vw, .95rem)
  }

  .mx-search {
    width: 100%;
    max-width: 100%
  }

  .mx-search__input {
    height: 62px;
    min-height: 62px;
    font-size: 1.12rem;
    padding-inline: 22px;
    width: 100%;
    line-height: 1.5
  }

  .mx-search__btn {
    height: 62px;
    min-height: 62px;
    font-size: 1.12rem;
    width: 100%
  }

  .mx-search__input::placeholder {
    font-size: 1.05rem
  }

  .mx-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 1.5vw, 10px)
  }

  .mx-stat {
    padding: clamp(12px, 2vw, 14px) clamp(10px, 1.8vw, 16px)
  }

  .mx-stat__number {
    font-size: clamp(1.3rem, 3.5vw, 1.6rem)
  }

  .mx-stat__label {
    font-size: clamp(.75rem, 1.8vw, .85rem)
  }
}

@media (max-width:600px) {
  .mx-search__input {
    height: 64px;
    min-height: 64px;
    font-size: 1.15rem;
    padding-inline: 24px
  }

  .mx-search__btn {
    height: 64px;
    min-height: 64px;
    font-size: 1.15rem
  }

  .mx-search__input::placeholder {
    font-size: 1.08rem
  }
}

@media (max-width:480px) {
  .mx-hero {
    padding-inline: clamp(10px, 2vw, 14px)
  }

  .mx-hero__title {
    font-size: clamp(1.1rem, 5.5vw, 1.5rem);
    line-height: 1.4
  }

  .mx-hero__desc {
    font-size: clamp(.8rem, 2.2vw, .9rem);
    line-height: 1.7
  }

  .mx-search {
    width: 100%;
    max-width: 100%
  }

  .mx-search__input {
    height: 66px;
    min-height: 66px;
    font-size: 1.18rem;
    padding-inline: 26px;
    width: 100%;
    line-height: 1.5
  }

  .mx-search__btn {
    height: 66px;
    min-height: 66px;
    font-size: 1.18rem;
    width: 100%
  }

  .mx-search__input::placeholder {
    font-size: 1.1rem
  }

  .mx-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(6px, 1.5vw, 8px)
  }

  .mx-stat {
    padding: clamp(10px, 2vw, 12px) clamp(8px, 1.5vw, 12px);
    min-width: auto
  }

  .mx-stat__number {
    font-size: clamp(1.2rem, 4vw, 1.5rem)
  }

  .mx-stat__label {
    font-size: clamp(.7rem, 2vw, .8rem)
  }
}

@media (max-width:400px) {
  .mx-search__input {
    height: 68px;
    min-height: 68px;
    font-size: 1.2rem;
    padding-inline: 28px
  }

  .mx-search__btn {
    height: 68px;
    min-height: 68px;
    font-size: 1.2rem
  }

  .mx-search__input::placeholder {
    font-size: 1.12rem
  }
}

@media (max-width:360px) {
  .mx-search__input {
    height: 70px;
    min-height: 70px;
    font-size: 1.22rem;
    padding-inline: 30px
  }

  .mx-search__btn {
    height: 70px;
    min-height: 70px;
    font-size: 1.22rem
  }

  .mx-search__input::placeholder {
    font-size: 1.15rem
  }

  .mx-stats {
    grid-template-columns: 1fr
  }

  .mx-stat {
    max-width: 100%
  }
}

.mx-sections .mx-block {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-block: 14px 18px
}

.mx-block__title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 800;
  color: var(--text);
  position: relative
}

.mx-block__title::after {
  content: "";
  display: block;
  height: 4px;
  width: 72px;
  border-radius: 999px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--edu-green), var(--edu-blue) 70%, var(--edu-orange))
}

.mx-block__desc {
  margin: 0;
  color: #475569;
  line-height: 1.9
}

.mx-block__seo-desc {
  margin: 12px 0 20px;
  color: #475569;
  line-height: 1.8;
  font-size: clamp(.9rem, 1.4vw, 1rem);
  text-align: right;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto
}

.mx-sections .mx-block:first-of-type .mx-block__desc {
  color: #27664b
}

.mx-sections .mx-block:nth-of-type(2) .mx-block__desc {
  color: #9c4a05
}

.mx-sections .mx-block:nth-of-type(3) .mx-block__desc {
  color: #0c4a8a
}

.mx-sections .mx-block:nth-of-type(4) .mx-block__desc {
  color: #066a63
}

.mx-sections .mx-block:nth-of-type(5) .mx-block__desc {
  color: #4a2aa6
}

.mx-sections .mx-block:nth-of-type(6) .mx-block__desc {
  color: #374151
}

.mx-levels {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch
}

.mx-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 16px);
  align-items: stretch;
  width: 100%;
  max-width: 100%
}

.mx-grid .mx-mini {
  height: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 24px);
  word-wrap: break-word;
  overflow-wrap: break-word
}

@media (min-width:993px) {
  .mx-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:992px) and (min-width:769px) {
  .mx-levels {
    grid-template-columns: 1fr
  }

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

  .mx-block--levels .mx-levels .mx-card {
    padding: 24px 20px
  }

  .mx-card__emoji {
    font-size: 3rem
  }
}

@media (max-width:768px) and (min-width:481px) {
  .mx-levels {
    grid-template-columns: 1fr
  }

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

  .mx-block--levels .mx-levels .mx-card {
    padding: 20px 18px;
    gap: 14px
  }

  .mx-card__emoji {
    font-size: 2.5rem
  }

  .mx-block--levels .mx-levels .mx-card__title {
    font-size: 1.1rem
  }

  .mx-block--levels .mx-levels .mx-card__desc {
    font-size: .9rem
  }
}

@media (max-width:480px) {

  .mx-grid,
  .mx-levels {
    grid-template-columns: 1fr
  }

  .mx-grid .mx-mini {
    width: 100%
  }
}

.mx-block--levels {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-color: rgba(46, 125, 50, .22);
  background: radial-gradient(1200px 300px at 100% -20%, rgba(25, 118, 210, .06), transparent 60%), radial-gradient(1000px 280px at -10% 110%, rgba(46, 125, 50, .08), transparent 60%), #fff;
  box-shadow: 0 12px 30px rgba(46, 125, 50, .08)
}

.mx-block--levels .mx-block__title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem)
}

.mx-block--levels .mx-block__title::after {
  background: linear-gradient(90deg, var(--edu-green), #2e7d32 60%, var(--edu-blue))
}

.mx-block--levels .mx-levels .mx-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-radius: 20px;
  background: #fff;
  position: relative;
  overflow: visible;
  text-decoration: none;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  border: 2px solid transparent;
  text-align: right;
  min-height: auto;
  height: auto
}

.mx-block--levels .mx-levels .mx-card * {
  text-decoration: none
}

.mx-card__emoji {
  font-size: 3.5rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .3s ease;
  filter: grayscale(0)
}

.mx-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  min-width: 0
}

.mx-block--levels .mx-levels .mx-card__title {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 800;
  margin: 0;
  transition: color .3s ease;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word
}

.mx-block--levels .mx-levels .mx-card__desc {
  font-size: clamp(.85rem, 1.3vw, .95rem);
  line-height: 1.6;
  transition: color .3s ease;
  opacity: .8;
  word-wrap: break-word;
  overflow-wrap: break-word
}

.mx-card--primary {
  border-color: rgba(46, 125, 50, .3);
  box-shadow: 0 8px 24px rgba(46, 125, 50, .12);
  background: linear-gradient(135deg, #fff 0, #f0f9f2 100%)
}

.mx-card--primary .mx-card__title {
  color: #14532d
}

.mx-card--primary .mx-card__desc {
  color: #2e7d32
}

.mx-card--primary:hover {
  background: var(--edu-green);
  border-color: var(--edu-green);
  box-shadow: 0 12px 36px rgba(46, 125, 50, .3);
  transform: translateY(-6px) scale(1.02)
}

.mx-card--primary:hover .mx-card__desc,
.mx-card--primary:hover .mx-card__title {
  color: #fff;
  opacity: 1
}

.mx-card--college {
  border-color: rgba(25, 118, 210, .3);
  box-shadow: 0 8px 24px rgba(25, 118, 210, .12);
  background: linear-gradient(135deg, #fff 0, #f0f7ff 100%)
}

.mx-card--college .mx-card__title {
  color: #0c3c71
}

.mx-card--college .mx-card__desc {
  color: #155b9a
}

.mx-card--college:hover {
  background: var(--edu-blue);
  border-color: var(--edu-blue);
  box-shadow: 0 12px 36px rgba(25, 118, 210, .3);
  transform: translateY(-6px) scale(1.02)
}

.mx-card--college:hover .mx-card__desc,
.mx-card--college:hover .mx-card__title {
  color: #fff;
  opacity: 1
}

.mx-card--college:hover .mx-card__emoji {
  transform: scale(1.15) rotate(5deg)
}

.mx-card--lycee {
  border-color: rgba(239, 108, 0, .3);
  box-shadow: 0 8px 24px rgba(239, 108, 0, .12);
  background: linear-gradient(135deg, #fff 0, #fff8f0 100%)
}

.mx-card--lycee .mx-card__title {
  color: #5b2b00
}

.mx-card--lycee .mx-card__desc {
  color: #7a3a00
}

.mx-card--lycee:hover {
  background: var(--edu-orange);
  border-color: var(--edu-orange);
  box-shadow: 0 12px 36px rgba(239, 108, 0, .3);
  transform: translateY(-6px) scale(1.02)
}

.mx-card--lycee:hover .mx-card__desc,
.mx-card--lycee:hover .mx-card__title {
  color: #fff;
  opacity: 1
}

.mx-card--lycee:hover .mx-card__emoji {
  transform: scale(1.15) rotate(5deg)
}

.mx-grid .mx-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 12px 16px;
  min-height: 56px;
  height: 100%;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: clamp(.9rem, 1.2vw, .95rem);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid #e5e7eb
}

.mx-mini__emoji {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0
}

.mx-mini__text {
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-width: 0
}

.mx-block--talamid .mx-mini {
  background: #ef6c00;
  color: #fff;
  border-color: #ef6c00
}

.mx-block--talamid .mx-mini:hover {
  background: #fff;
  color: #ef6c00;
  border-color: #ef6c00;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(239, 108, 0, .2)
}

.mx-block--prof .mx-mini {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2
}

.mx-block--prof .mx-mini:hover {
  background: #fff;
  color: #1976d2;
  border-color: #1976d2;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, .2)
}

.mx-block--massar .mx-mini {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e
}

.mx-block--massar .mx-mini:hover {
  background: #fff;
  color: #0f766e;
  border-color: #0f766e;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 150, 136, .2)
}

.mx-block--higher .mx-mini {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed
}

.mx-block--higher .mx-mini:hover {
  background: #fff;
  color: #7c3aed;
  border-color: #7c3aed;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, .2)
}

.mx-block--news .mx-mini {
  background: #6b7280;
  color: #fff;
  border-color: #6b7280
}

.mx-block--news .mx-mini:hover {
  background: #fff;
  color: #6b7280;
  border-color: #6b7280;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, .15)
}

.mx-news {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.mx-news__item {
  border: 1px solid #e8edf3;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.mx-news__title {
  font-weight: 800;
  line-height: 1.6;
  text-decoration: none;
  color: inherit
}

.mx-news__title:hover {
  color: var(--edu-orange)
}

.mx-news__excerpt {
  color: #6b7280;
  font-size: .9rem;
  line-height: 1.6;
  margin: 4px 0 0
}

.mx-news__date {
  color: #9aa3af;
  font-size: .85rem;
  margin-top: auto
}

.mx-news--archive .mx-news__item {
  padding: 16px 18px;
  min-height: auto
}

.mx-news--archive .mx-news__title {
  font-size: 1.05rem
}

.mx-pagination {
  grid-column: 1/-1;
  margin-top: 24px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.mx-pagination a,
.mx-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  min-width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--text);
  transition: all .2s ease
}

.mx-pagination a:hover {
  background: var(--edu-green);
  color: #fff;
  border-color: var(--edu-green)
}

.mx-pagination .current {
  background: var(--edu-green);
  color: #fff;
  border-color: var(--edu-green)
}

.mx-more-wrap {
  margin-top: 10px;
  text-align: center
}

.mx-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  background: #f3f4f6;
  color: var(--text);
  border: 1px solid #e5e7eb
}

.mx-more:hover {
  border-color: var(--edu-blue);
  background: var(--edu-blue);
  color: #fff
}

@media (max-width:1100px) {
  .mx-news {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:560px) {
  .mx-news {
    grid-template-columns: 1fr
  }
}

/* front-page-extras.css */
/* MADARISY — Front Page Extra Styles (Articles, Tips, Why Section) */
/* RTL-safe: uses border-inline-start instead of border-right */

/* Articles Grid */
.mx-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.mx-article-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  transition: box-shadow .2s;
}

.mx-article-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.mx-article-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.mx-article-card__title a {
  color: #0f172a;
  text-decoration: none;
}

.mx-article-card__title a:hover {
  color: var(--accent, #047857);
}

.mx-article-card__excerpt {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: .9rem;
  line-height: 1.7;
}

.mx-article-card__link {
  color: #047857;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
}

.mx-article-card__link:hover {
  text-decoration: underline;
}

/* Tips Grid */
.mx-tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.mx-tip-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  border-inline-start: 5px solid #0073aa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mx-tip-card--blue {
  border-inline-start-color: #0073aa;
}

.mx-tip-card--orange {
  border-inline-start-color: #a35a07;
}

.mx-tip-card--green {
  border-inline-start-color: #1a7a45;
}

.mx-tip-card__title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: inherit;
}

.mx-tip-card--blue .mx-tip-card__title {
  color: #0073aa;
}

.mx-tip-card--orange .mx-tip-card__title {
  color: #a35a07;
}

.mx-tip-card--green .mx-tip-card__title {
  color: #1a7a45;
}

.mx-tip-card__text {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Why Section */
.mx-block__content-rich {
  margin-top: 15px;
  color: #444;
  line-height: 1.8;
}

.mx-block__content-rich--why {
  margin-top: 15px;
  color: #444;
  line-height: 1.8;
}

/* Empty State */
.mx-empty-state {
  padding: 20px;
  color: #777;
}

/* Responsive */
@media (max-width: 640px) {
  .mx-articles-grid {
    grid-template-columns: 1fr;
  }

  .mx-tip-grid {
    grid-template-columns: 1fr;
  }

  .mx-tip-card {
    padding: 20px;
  }
}

/* catalog.css */
:root {
  --gap: 16px;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0, 0, 0, .06);
  --brand: var(--clr-green)
}

.cycle-primary {
  --brand: var(--clr-green)
}

.cycle-college {
  --brand: var(--clr-blue)
}

.cycle-lycee {
  --brand: var(--clr-orange)
}

.primary {
  --brand: var(--clr-green)
}

.college {
  --brand: var(--clr-blue)
}

.lycee {
  --brand: var(--clr-orange)
}

.mx-catalog {
  max-width: 1160px;
  margin: 24px auto 48px;
  padding: 0 clamp(10px, 3vw, 16px);
  color: var(--text);
  box-sizing: border-box
}

@media (max-width:768px) {
  .mx-catalog {
    margin: 12px auto 24px;
    padding: 0 12px
  }
}

@media (max-width:480px) {
  .mx-catalog {
    margin: 8px auto 16px;
    padding: 0 10px
  }
}

.mx-catalog .mx-head {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.mx-catalog .mx-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800
}

.mx-catalog .mx-sub {
  color: var(--muted);
  font-size: 14px
}

.mx-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap)
}

@media (max-width:1280px) {
  .mx-grid {
    grid-template-columns: repeat(12, 1fr)
  }
}

@media (max-width:1024px) {
  .mx-grid {
    grid-template-columns: repeat(8, 1fr)
  }
}

@media (max-width:640px) {
  .mx-grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

.mx-col-3 {
  grid-column: span 3
}

.mx-col-4 {
  grid-column: span 4
}

@media (max-width:1024px) {
  .mx-col-3 {
    grid-column: span 4
  }

  .mx-col-4 {
    grid-column: span 4
  }
}

@media (max-width:640px) {

  .mx-col-3,
  .mx-col-4 {
    grid-column: span 4
  }
}

.mx-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  padding: 14px 14px 12px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
  position: relative
}

.mx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  border-color: rgba(0, 0, 0, .06)
}

.mx-card a {
  color: inherit;
  text-decoration: none;
  display: block
}

.mx-pill {
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  margin-bottom: 10px;
  opacity: .85
}

.mx-card-title {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 800;
  margin: 4px 0 6px;
  line-height: 1.35
}

.mx-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px
}

.mx-chip {
  background: var(--chip-bg);
  color: var(--chip-tx);
  border-radius: 999px;
  padding: 6px 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed rgba(0, 0, 0, .06)
}

.mx-chip i {
  font-style: normal;
  opacity: .8
}

.mx-empty {
  grid-column: 1/-1;
  background: #fff;
  border: 1px dashed #ddd;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 15px
}

.mx-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, .04);
  color: #111;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px
}

.mx-bc {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
  font-size: 13px;
  color: var(--muted)
}

.mx-bc a {
  color: var(--brand);
  text-decoration: none
}

.mx-bc .sep {
  opacity: .5
}

.mx-list-titles {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.mx-list-titles__item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all .18s ease
}

.mx-list-titles__link {
  display: block;
  width: 100%;
  padding: 14px 18px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.8;
  color: var(--brand, #2c7be5);
  position: relative
}

.mx-list-titles__item:hover {
  background: var(--brand, #2c7be5);
  transform: translateY(-1px)
}

.mx-list-titles__item:hover .mx-list-titles__link {
  color: #fff
}

.mx-list-titles__link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  inset-inline-start: 18px;
  height: 2px;
  width: 0;
  background: currentColor;
  transition: width .25s ease
}

.mx-list-titles__item:hover .mx-list-titles__link::after {
  width: 40%
}

.mx-pagination {
  display: flex;
  justify-content: center;
  margin-top: 16px
}

.mx-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0 4px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  transition: all .18s ease
}

.mx-pagination .page-numbers:hover {
  border-color: var(--brand, #2c7be5);
  color: var(--brand, #2c7be5)
}

.mx-pagination .page-numbers.current {
  background: var(--brand, #2c7be5);
  color: #fff;
  border-color: var(--brand, #2c7be5)
}

/* footer.css */
:root {
  --footer-bg-top: #0a2b1f;
  --footer-bg-bottom: #061a12;
  --footer-text: #d9e8df;
  --footer-muted: #9db6a7;
  --footer-heading: #ffffff;
  --footer-accent: #34d399;
  --footer-accent-strong: #4ade80;
  --footer-line: rgba(255, 255, 255, 0.08)
}

.mx-footer {
  color: var(--footer-text);
  background: linear-gradient(180deg, var(--footer-bg-top) 0, var(--footer-bg-bottom) 100%);
  padding: 0
}

.mx-footer-topline {
  height: 4px;
  background: linear-gradient(120deg, #14532d 0, #15803d 55%, #15803d 100%)
}

.mx-footer-widgets {
  padding-block: 40px 12px
}

.mx-footer .widget,
.mx-footer .widget--borderless {
  background: 0 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none
}

.mx-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px
}

.mx-footer-col {
  min-width: 0
}

.mx-footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: var(--footer-heading);
  border-inline-start: 3px solid var(--footer-accent);
  padding-inline-start: 12px
}

.mx-footer-widget,
.mx-footer-widget li,
.mx-footer-widget p {
  line-height: 1.9
}

.mx-footer-col ul li a,
.mx-footer-widget a {
  color: var(--footer-text);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .2s ease, border-color .2s ease
}

.mx-footer-col ul li a:hover,
.mx-footer-widget a:hover {
  color: var(--footer-accent);
  border-bottom-color: var(--footer-accent)
}

.mx-footer-col ul li {
  margin-bottom: 8px
}

.mx-site-desc {
  color: var(--footer-text);
  font-size: .92rem
}

.mx-site-mission {
  font-size: 13px;
  line-height: 1.8;
  color: var(--footer-muted);
  margin-top: 12px
}

.footer-contact-info {
  margin-top: 14px;
  color: var(--footer-muted);
  font-size: .9rem;
  line-height: 1.8
}

.footer-contact-info a {
  color: var(--footer-accent);
  text-decoration: none;
  font-weight: 700
}

.footer-contact-info a:hover {
  color: var(--footer-accent-strong)
}

.mx-footer-legal {
  border-top: 1px solid var(--footer-line);
  padding-block: 24px;
  background: rgba(0, 0, 0, .22)
}

.mx-footer-legal__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap
}

.mx-legal-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--footer-muted);
  margin: 0
}

.mx-legal-group {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.mx-legal-note {
  font-size: 12px;
  opacity: .85;
  max-width: 560px
}

.mx-legal-text a {
  color: var(--footer-accent);
  text-decoration: none;
  font-weight: 700
}

.mx-legal-text a:hover {
  color: var(--footer-accent-strong)
}

.footer-legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0
}

.footer-legal-links a {
  color: var(--footer-muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s ease
}

.footer-legal-links a:hover {
  color: var(--footer-accent-strong)
}

.mx-footer-bottom {
  border-top: 1px solid var(--footer-line);
  padding-block: 12px
}

.mx-footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap
}

.mx-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px
}

.mx-footer-menu li a {
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 700
}

.mx-footer-menu li a:hover {
  color: var(--footer-accent)
}

.mx-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px
}

.mx-social__link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  color: var(--footer-text);
  border-radius: var(--radius-sm, 8px);
  transition: background .2s, color .2s, transform .15s
}

.mx-social__link:hover {
  background: rgba(52, 211, 153, .14);
  color: var(--footer-accent);
  transform: translateY(-2px)
}

.mx-copy {
  margin: 0;
  color: var(--footer-muted);
  font-size: .9rem
}

.mx-copy .mx-site-name {
  color: var(--footer-accent);
  text-decoration: none;
  font-weight: 800
}

.mx-copy .mx-site-name:hover {
  color: var(--footer-accent-strong)
}

.mx-footer-menu--col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block !important
}

.mx-footer-menu--col li {
  margin: 6px 0
}

.mx-footer-menu--col li a {
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.8;
  transition: color .2s ease
}

.mx-footer-menu--col li a:hover {
  color: var(--footer-accent)
}

.mx-backtotop {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(180deg);
  transition: background .2s, transform .2s
}

.mx-backtotop:hover {
  background: rgba(52, 211, 153, .22);
  color: var(--footer-accent-strong)
}

.mx-backtotop:active {
  transform: rotate(180deg) scale(.96)
}

@media (max-width:992px) {
  .mx-footer-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:640px) {
  .mx-footer-grid {
    grid-template-columns: 1fr
  }

  .mx-footer-bottom__inner,
  .mx-footer-legal__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center
  }

  .mx-footer-menu {
    flex-wrap: wrap;
    justify-content: center
  }

  .footer-legal-links {
    justify-content: center
  }
}

/* responsive-fixes.css */
.mx-catalog,
.mx-container {
  padding-inline: clamp(10px, 3vw, 20px);
  max-width: 100%;
  box-sizing: border-box;
  width: 100%
}

@media (max-width:768px) {

  .mx-catalog,
  .mx-container {
    padding-inline: 12px
  }
}

@media (max-width:480px) {

  .mx-catalog,
  .mx-container {
    padding-inline: 10px
  }
}

.mx-catalog {
  margin: 16px auto 32px;
  padding: 0 clamp(10px, 3vw, 16px)
}

@media (max-width:768px) {
  .mx-catalog {
    margin: 12px auto 24px;
    padding: 0 12px
  }
}

@media (max-width:480px) {
  .mx-catalog {
    margin: 8px auto 16px;
    padding: 0 10px
  }
}

.mx-sections {
  padding-block: clamp(12px, 2vw, 20px)
}

@media (max-width:768px) {
  .mx-sections {
    padding-block: 12px
  }
}

.mx-block {
  padding: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(12px, 2vw, 20px)
}

@media (max-width:768px) {
  .mx-block {
    padding: 14px;
    margin-bottom: 14px
  }
}

@media (max-width:480px) {
  .mx-block {
    padding: 12px;
    margin-bottom: 12px
  }
}

.mx-search-wide {
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box
}

.mx-search-wide__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box
}

.mx-search-wide__input {
  width: 100%;
  height: 56px;
  padding-inline: 14px;
  font-size: 1rem;
  border-radius: 12px;
  box-sizing: border-box;
  font-family: inherit
}

.mx-search-wide__btn,
.mx-search-wide__btn--light {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  font-size: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  text-decoration: none
}

@media (min-width:640px) {
  .mx-search-wide__row {
    grid-template-columns: 1fr auto auto;
    gap: 10px
  }

  .mx-search-wide__btn {
    min-width: 120px;
    width: auto
  }

  .mx-search-wide__btn--light {
    min-width: 140px;
    width: auto
  }
}

@media (max-width:640px) {
  .mx-search-wide__row {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .mx-search-wide__btn,
  .mx-search-wide__btn--light {
    width: 100%;
    height: 56px
  }

  .mx-search-wide__input {
    height: 56px;
    font-size: 1rem;
    padding-inline: 14px
  }
}

.dv-grid,
.mx-levels {
  gap: clamp(10px, 2vw, 14px);
  margin: clamp(8px, 1.5vw, 12px) 0
}

@media (max-width:768px) {

  .dv-grid,
  .mx-levels {
    gap: 12px;
    margin: 10px 0
  }
}

@media (max-width:480px) {

  .dv-grid,
  .mx-levels {
    gap: 10px;
    margin: 8px 0
  }
}

.dv-btn,
.mx-card,
.mx-level-btn {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  position: relative !important;
  z-index: 1 !important
}

.page-wrap {
  padding: 0
}

.page-grid {
  gap: clamp(16px, 3vw, 24px);
  padding: 0
}

@media (max-width:768px) {
  .page-grid {
    gap: 16px
  }
}

@media (max-width:480px) {
  .page-grid {
    gap: 12px
  }
}

.box {
  padding: clamp(14px, 2.5vw, 20px)
}

@media (max-width:768px) {
  .box {
    padding: 14px
  }
}

@media (max-width:480px) {
  .box {
    padding: 12px
  }
}

.widget {
  margin-bottom: clamp(14px, 2vw, 20px);
  padding: 0
}

.widget:last-child {
  margin-bottom: 0
}

.mx-res-grid {
  gap: clamp(10px, 2vw, 12px);
  margin-top: clamp(10px, 2vw, 16px)
}

@media (max-width:768px) {
  .mx-res-grid {
    gap: 10px;
    margin-top: 12px
  }
}

@media (max-width:480px) {
  .mx-res-grid {
    gap: 8px;
    margin-top: 10px
  }
}

.mx-levels {
  padding: 0;
  margin: clamp(8px, 1.5vw, 12px) 0
}

.dv-item,
.mx-level {
  margin: 0;
  padding: 0;
  list-style: none
}

.search-form {
  margin-bottom: clamp(12px, 2vw, 20px);
  padding: 0
}

.single-content {
  padding: 0;
  margin-top: clamp(10px, 2vw, 16px)
}

.single-content p {
  margin-bottom: clamp(10px, 2vw, 16px)
}

.mx-back {
  margin: clamp(12px, 2vw, 16px) 0;
  padding: 0
}

.mx-back__btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box
}

@media (min-width:480px) {
  .mx-back__btn {
    width: auto
  }
}

.dv-faq,
.faq-group {
  gap: clamp(8px, 1.5vw, 10px);
  margin-top: clamp(8px, 1.5vw, 12px)
}

.dv-faq__item,
.faq {
  padding: clamp(10px, 1.5vw, 14px);
  margin: 0
}

.intro-section {
  margin-bottom: clamp(14px, 2vw, 20px);
  padding: 0
}

.section-title {
  margin: clamp(12px, 2vw, 16px) 0 clamp(8px, 1.5vw, 12px);
  padding: 0
}

.page-head {
  padding: clamp(12px, 2vw, 20px) 0;
  margin-bottom: clamp(12px, 2vw, 20px)
}

.page-head__inner {
  padding: 0 clamp(10px, 3vw, 20px)
}

@media (max-width:768px) {
  .page-head {
    padding: 12px 0;
    margin-bottom: 12px
  }

  .page-head__inner {
    padding: 0 12px
  }
}

@media (max-width:480px) {
  .page-head {
    padding: 10px 0;
    margin-bottom: 10px
  }

  .page-head__inner {
    padding: 0 10px
  }
}

.breadcrumbs {
  margin: clamp(6px, 1vw, 10px) 0;
  padding: 0
}

.breadcrumbs .bc-inner {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  overflow: hidden;
  width: fit-content;
  margin-inline-start: auto;
  max-width: 100%
}

.breadcrumbs .bc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px
}

.breadcrumbs .bc-item {
  display: inline-flex;
  align-items: center;
  min-width: 0
}

.breadcrumbs .sep {
  opacity: .45;
  user-select: none;
  margin-inline: 2px
}

.breadcrumbs .bc-current,
.breadcrumbs .bc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%
}

.breadcrumbs .bc-link {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #0f172a;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease
}

.breadcrumbs .bc-link:hover {
  background: var(--edu-blue, #1976d2);
  border-color: var(--edu-blue, #1976d2);
  color: #fff;
  transform: translateY(-1px)
}

.breadcrumbs .bc-current {
  background: var(--edu-blue, #1976d2);
  color: #fff;
  border: 1px solid transparent
}

.breadcrumbs .bc-current span,
.breadcrumbs .bc-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis
}

@media (max-width:640px) {
  .breadcrumbs {
    display: none !important
  }

  .breadcrumbs .bc-inner {
    border-radius: 12px;
    padding: 8px 10px
  }

  .breadcrumbs .bc-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none
  }

  .breadcrumbs .bc-list::-webkit-scrollbar {
    display: none
  }

  .breadcrumbs .bc-current,
  .breadcrumbs .bc-link {
    padding: 7px 10px;
    font-size: .9rem
  }

  .breadcrumbs .sep {
    margin-inline: 0
  }
}

@media (max-width:420px) {

  .breadcrumbs .bc-current,
  .breadcrumbs .bc-link {
    padding: 6px 9px;
    font-size: .85rem
  }
}

.sidebar {
  padding: 0;
  margin: 0
}

@media (max-width:992px) {
  .sidebar {
    margin-top: clamp(16px, 2.5vw, 24px)
  }
}

main.box {
  padding: clamp(14px, 2.5vw, 20px)
}

@media (max-width:768px) {
  main.box {
    padding: 14px
  }
}

@media (max-width:480px) {
  main.box {
    padding: 12px
  }
}

.dv-btn__txt,
.mx-level-btn span {
  max-width: 100%;
  overflow: visible;
  text-overflow: clip
}

.dv-btn,
.mx-level-btn {
  min-width: 0;
  max-width: 100%
}

.dv-item,
.mx-level {
  min-width: 0;
  max-width: 100%;
  overflow: hidden
}

.mx-block__body {
  margin-top: clamp(10px, 2vw, 16px)
}

.mx-block__body--split {
  gap: clamp(12px, 2.5vw, 18px)
}

@media (max-width:768px) {
  .mx-block__body--split {
    gap: 16px
  }
}

@media (max-width:480px) {
  .mx-block__body--split {
    gap: 12px
  }
}

.mx-block__media {
  margin: 0;
  padding: 0
}

.mx-block__media img {
  max-width: 100%;
  height: auto
}

.mx-block__text {
  padding: 0;
  margin: 0
}

.mx-block__title::after,
.section-title::after {
  margin-top: clamp(6px, 1vw, 8px)
}

.mx-block__desc {
  margin: clamp(4px, 1vw, 8px) 0 clamp(8px, 1.5vw, 12px)
}

.dv-empty,
.muted {
  padding: clamp(14px, 2vw, 18px);
  margin: 0
}

.mx-search-wide__hint {
  margin-top: clamp(6px, 1vw, 8px);
  padding: 0
}

@media (max-width:1200px) {
  .dv-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:640px) {
  .dv-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:480px) {

  .dv-btn__txt,
  .mx-level-btn span {
    font-size: clamp(.85rem, 4vw, .95rem)
  }
}

.dv-btn,
.mx-card,
.mx-level-btn {
  will-change: transform;
  backface-visibility: hidden
}

@media (max-width:1400px) {
  .mx-container {
    max-width: 100%;
    padding-inline: clamp(12px, 3vw, 20px)
  }
}

@media (max-width:768px) {
  .mx-container {
    padding-inline: 12px
  }
}

@media (max-width:480px) {
  .mx-container {
    padding-inline: 10px
  }
}

@media print {
  body {
    font-size: 12pt;
    color: #000;
    background: #fff
  }

  .ads,
  .mx-backtotop,
  .mx-breadcrumb,
  .mx-cta,
  .mx-footer,
  .mx-header,
  .mx-modal,
  .mx-overlay,
  .mx-pagination,
  .mx-search,
  .mx-sidebar,
  .mx-topbar,
  .no-print {
    display: none !important
  }

  .mx-container,
  .mx-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666
  }

  a[href^="#"]::after,
  a[href^=javascript]::after {
    content: ""
  }

  h1,
  h2,
  h3,
  h4 {
    page-break-after: avoid
  }

  figure,
  img {
    max-width: 100%;
    page-break-inside: avoid
  }

  table {
    border: 1px solid #000
  }

  td,
  th {
    border: 1px solid #000;
    padding: 4pt
  }
}

/* subjects-buttons.css */
.dv-level-subjects .dv-grid {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

@media (max-width:1100px) {
  .dv-level-subjects .dv-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:640px) {
  .dv-level-subjects .dv-grid {
    grid-template-columns: 1fr
  }
}

.dv-level-subjects .dv-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 18px 22px;
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
  color: color-mix(in oklab, var(--accent) 85%, #000);
  border: 2px solid color-mix(in oklab, var(--accent) 45%, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
  transition: transform .18s, background .18s, color .18s, border-color .18s, box-shadow .18s;
  width: 100%;
  box-sizing: border-box
}

.dv-level-subjects .dv-btn__txt {
  line-height: 1.35;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: inherit;
  overflow: visible;
  text-overflow: clip
}

html[dir=ltr] .dv-level-subjects .dv-btn__txt {
  text-align: left
}

.dv-level-subjects .dv-btn__chev {
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  transition: transform .18s, color .18s;
  flex-shrink: 0;
  margin-inline-start: 12px
}

html[dir=rtl] .dv-level-subjects .dv-btn__chev {
  transform: scaleX(-1)
}

.dv-level-subjects .dv-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12)
}

.dv-level-subjects .dv-btn:hover .dv-btn__chev {
  color: #fff;
  transform: translateX(6px)
}

html[dir=rtl] .dv-level-subjects .dv-btn:hover .dv-btn__chev {
  transform: translateX(-6px) scaleX(-1)
}

.dv-level-subjects .dv-item {
  margin: 0
}

.dv-level-subjects .dv-empty {
  grid-column: 1/-1;
  text-align: center;
  color: #64748b;
  padding: 18px;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
  background: #fff
}

@media (max-width:1100px) {
  .dv-level-subjects .dv-btn {
    min-height: 80px;
    padding: 18px 20px;
    font-size: clamp(1rem, 2.5vw, 1.08rem)
  }

  .dv-level-subjects .dv-btn__txt {
    font-size: clamp(1rem, 2.5vw, 1.08rem)
  }

  .dv-level-subjects .dv-btn__chev {
    font-size: 20px
  }
}

@media (max-width:768px) {
  .dv-level-subjects .dv-btn {
    min-height: 76px;
    padding: 16px 18px;
    font-size: clamp(.95rem, 3vw, 1.05rem)
  }

  .dv-level-subjects .dv-btn__txt {
    font-size: clamp(.95rem, 3vw, 1.05rem)
  }

  .dv-level-subjects .dv-btn__chev {
    font-size: 18px;
    margin-inline-start: 10px
  }
}

@media (max-width:640px) {
  .dv-level-subjects .dv-btn {
    min-height: 72px;
    padding: 16px 18px;
    font-size: clamp(.9rem, 3.5vw, 1rem)
  }

  .dv-level-subjects .dv-btn__txt {
    font-size: clamp(.9rem, 3.5vw, 1rem)
  }

  .dv-level-subjects .dv-btn__chev {
    font-size: 18px;
    margin-inline-start: 8px
  }
}

@media (max-width:480px) {
  .dv-level-subjects .dv-btn {
    min-height: 68px;
    padding: 14px 16px;
    font-size: clamp(.85rem, 4vw, .95rem);
    gap: 10px
  }

  .dv-level-subjects .dv-btn__txt {
    font-size: clamp(.85rem, 4vw, .95rem)
  }

  .dv-level-subjects .dv-btn__chev {
    font-size: 16px;
    margin-inline-start: 6px
  }
}

@media (max-width:360px) {
  .dv-level-subjects .dv-btn {
    min-height: 64px;
    padding: 12px 14px;
    font-size: clamp(.8rem, 4.5vw, .9rem);
    gap: 8px
  }

  .dv-level-subjects .dv-btn__txt {
    font-size: clamp(.8rem, 4.5vw, .9rem)
  }

  .dv-level-subjects .dv-btn__chev {
    font-size: 14px;
    margin-inline-start: 4px
  }
}

.dv-btn__count {
  display: none !important
}

/* subject-pages.css */
.mx-sections--intro-devoirs,
.mx-sections--intro-exams,
.mx-sections--intro-lessons,
.mx-sections--intro-subjects,
.mx-sections--intro-teachers {
  padding-block: clamp(24px, 4vw, 40px);
  padding-inline: clamp(16px, 3vw, 24px);
  background: #fff;
  border-bottom: 1px solid #e5e7eb
}

.mx-intro-header {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0
}

.mx-intro-header__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  text-align: center;
  position: relative;
  padding-bottom: 16px
}

.mx-intro-header__title::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-green, #15803d), var(--edu-blue, #1976d2) 70%, var(--edu-orange, #ef6c00));
  border-radius: 999px
}

.mx-intro-header__subtitle {
  font-size: .75em;
  color: #64748b;
  font-weight: 700;
  display: block;
  margin-top: 4px
}

.mx-intro-header__desc {
  margin: 20px auto 0;
  max-width: 800px;
  color: #475569;
  line-height: 1.8;
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  text-align: center
}

.mx-intro-header__badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px
}

.mx-intro-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(22, 163, 74, .1);
  border: 1px solid rgba(22, 163, 74, .2);
  border-radius: 12px;
  font-size: .95rem;
  color: #15803d;
  font-weight: 700
}

.mx-intro-header__badge strong {
  font-weight: 800;
  color: #15803d
}

.mx-block--intro-subjects,
.mx-block__body--split,
.mx-block__media {
  display: none !important
}

@media (max-width:768px) {
  .mx-intro-header {
    padding: 0 12px
  }

  .mx-intro-header__title {
    font-size: clamp(1.3rem, 5vw, 1.8rem)
  }

  .mx-intro-header__desc {
    font-size: .95rem
  }

  .mx-intro-header__badge {
    font-size: .9rem;
    padding: 8px 16px
  }
}

@media (max-width:480px) {
  .mx-intro-header__title {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
    padding-bottom: 12px
  }

  .mx-intro-header__title::after {
    width: 60px;
    height: 3px
  }

  .mx-intro-header__desc {
    font-size: .9rem;
    margin-top: 16px
  }

  .mx-intro-header__badge {
    font-size: .85rem;
    padding: 8px 14px;
    margin-top: 16px
  }
}

.mx-lessons-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.mx-lesson-item {
  margin: 0;
  padding: 0;
  list-style: none
}

.mx-lesson-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(72px, 10vw, 88px);
  padding: clamp(24px, 3.5vw, 32px) clamp(32px, 5vw, 48px);
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  transition: all .3s cubic-bezier(.4, 0, .2, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .04);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
  direction: rtl;
  position: relative !important;
  overflow: hidden;
  text-align: center
}

body.cycle-primary .mx-lesson-link {
  border-color: rgba(46, 125, 50, .25);
  background: linear-gradient(135deg, #fff 0, #f8fdf9 100%)
}

body.cycle-primary .mx-lesson-link:hover {
  background: linear-gradient(135deg, var(--edu-green, #2e7d32) 0, #1b5e20 100%);
  border-color: var(--edu-green, #2e7d32);
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 125, 50, .3), 0 4px 12px rgba(46, 125, 50, .2);
  transform: translateY(-4px) scale(1.01)
}

body.cycle-primary .mx-lesson-link:hover .mx-lesson-title {
  color: #fff
}

body.cycle-college .mx-lesson-link {
  border-color: rgba(25, 118, 210, .25);
  background: linear-gradient(135deg, #fff 0, #f5f9ff 100%)
}

body.cycle-college .mx-lesson-link:hover {
  background: linear-gradient(135deg, var(--edu-blue, #1976d2) 0, #1565c0 100%);
  border-color: var(--edu-blue, #1976d2);
  color: #fff;
  box-shadow: 0 8px 24px rgba(25, 118, 210, .3), 0 4px 12px rgba(25, 118, 210, .2);
  transform: translateY(-4px) scale(1.01)
}

body.cycle-college .mx-lesson-link:hover .mx-lesson-title {
  color: #fff
}

body.cycle-lycee .mx-lesson-link {
  border-color: rgba(239, 108, 0, .25);
  background: linear-gradient(135deg, #fff 0, #fffbf5 100%)
}

body.cycle-lycee .mx-lesson-link:hover {
  background: linear-gradient(135deg, var(--edu-orange, #ef6c00) 0, #e65100 100%);
  border-color: var(--edu-orange, #ef6c00);
  color: #fff;
  box-shadow: 0 8px 24px rgba(239, 108, 0, .3), 0 4px 12px rgba(239, 108, 0, .2);
  transform: translateY(-4px) scale(1.01)
}

body.cycle-lycee .mx-lesson-link:hover .mx-lesson-title {
  color: #fff
}

.mx-lesson-title {
  display: block;
  line-height: 1.6;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: inherit;
  transition: color .3s ease !important;
  text-align: center;
  direction: rtl;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  margin: 0;
  padding: 0 clamp(8px, 1.5vw, 12px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset
}

.mx-lesson-chev,
.mx-lesson-content,
.mx-lesson-excerpt {
  display: none !important
}

@media (max-width:768px) {
  .mx-lessons-list {
    gap: 12px
  }

  .mx-lesson-link {
    min-height: clamp(68px, 11vw, 80px);
    padding: clamp(20px, 3.5vw, 26px) clamp(28px, 5vw, 40px);
    max-width: 100%;
    border-radius: 14px
  }

  .mx-lesson-title {
    font-size: clamp(1.05rem, 2.8vw, 1.25rem);
    padding: 0 clamp(6px, 1.5vw, 10px)
  }
}

@media (max-width:480px) {
  .mx-lesson-link {
    min-height: clamp(64px, 12vw, 76px);
    padding: clamp(18px, 4vw, 24px) clamp(24px, 5.5vw, 36px);
    border-radius: 12px
  }

  .mx-lesson-title {
    font-size: clamp(1rem, 3vw, 1.2rem);
    padding: 0 clamp(4px, 1.5vw, 8px)
  }
}

.dv-empty {
  text-align: center;
  color: #64748b;
  padding: 18px;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
  background: #fff
}

.dv-level-subjects .widget__title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: #0f172a
}

.dv-level-subjects .widget__desc {
  margin: 0 0 16px;
  color: #556376;
  line-height: 1.7;
  font-size: .98rem
}

.mx-section-separated {
  margin-top: 32px;
  margin-bottom: 32px
}

.mx-grid,
.mx-section-separated .mx-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 16px);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box
}

.mx-grid .mx-mini {
  height: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 24px);
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: visible
}

@media (min-width:993px) {

  .mx-grid,
  .mx-section-separated .mx-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:992px) and (min-width:769px) {

  .mx-grid,
  .mx-section-separated .mx-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:768px) and (min-width:481px) {

  .mx-grid,
  .mx-section-separated .mx-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:480px) {

  .mx-grid,
  .mx-section-separated .mx-grid {
    grid-template-columns: 1fr
  }

  .mx-grid .mx-mini,
  .mx-section-separated .mx-grid .mx-mini {
    width: 100%
  }
}

.mx-grid .mx-mini,
.mx-section-separated .mx-grid .mx-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 24px);
  min-height: 72px;
  height: auto;
  border-radius: 12px;
  font-weight: 700;
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: visible
}

.mx-grid .mx-mini .mx-mini__text,
.mx-section-separated .mx-grid .mx-mini .mx-mini__text {
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  text-overflow: clip
}

.mx-mini__emoji {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0
}

.mx-mini__text {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: visible;
  text-overflow: clip;
  display: block;
  text-align: center;
  max-width: 100%
}

.mx-section-separated .mx-grid .mx-mini[href*="/devoirs/"] {
  background: var(--edu-blue, #1976d2);
  color: #fff;
  border-color: var(--edu-blue, #1976d2)
}

.mx-section-separated .mx-grid .mx-mini[href*="/devoirs/"]:hover {
  background: rgba(25, 118, 210, .1);
  color: #0c3c71;
  border-color: rgba(25, 118, 210, .25);
  transform: translateY(-2px)
}

.mx-section-separated .mx-grid .mx-mini[href*="/lessons/"] {
  background: var(--edu-green, #2e7d32);
  color: #fff;
  border-color: var(--edu-green, #2e7d32)
}

.mx-section-separated .mx-grid .mx-mini[href*="/lessons/"]:hover {
  background: rgba(46, 125, 50, .1);
  color: #14532d;
  border-color: rgba(46, 125, 50, .25);
  transform: translateY(-2px)
}

.mx-section-separated .mx-grid .mx-mini[href*="/exams/"] {
  background: var(--edu-orange, #ef6c00);
  color: #fff;
  border-color: var(--edu-orange, #ef6c00)
}

.mx-section-separated .mx-grid .mx-mini[href*="/exams/"]:hover {
  background: rgba(239, 108, 0, .1);
  color: #5b2b00;
  border-color: rgba(239, 108, 0, .25);
  transform: translateY(-2px)
}

.mx-section-separated .mx-grid .mx-mini[href*="/docs/"] {
  background: var(--edu-purple, #673ab7);
  color: #fff;
  border-color: var(--edu-purple, #673ab7)
}

.mx-section-separated .mx-grid .mx-mini[href*="/docs/"]:hover {
  background: rgba(103, 58, 183, .1);
  color: #311b92;
  border-color: rgba(103, 58, 183, .25);
  transform: translateY(-2px)
}

.mx-section-separated .mx-grid .mx-mini[href*="/orientation/"] {
  background: var(--edu-teal, #0f766e);
  color: #fff;
  border-color: var(--edu-teal, #0f766e)
}

.mx-section-separated .mx-grid .mx-mini[href*="/orientation/"]:hover {
  background: rgba(0, 150, 136, .1);
  color: #014b48;
  border-color: rgba(0, 150, 136, .25);
  transform: translateY(-2px)
}

.mx-back {
  margin: 24px 0 0;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb
}

.mx-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 800;
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent);
  transition: .2s;
  text-decoration: none;
  font-size: 1rem
}

.mx-back__btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

.mx-seo-content {
  margin-top: 32px
}

.mx-seo-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.3;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent, #15803d)
}

.mx-seo-content h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #1e293b;
  margin-top: 28px;
  margin-bottom: 14px;
  line-height: 1.4;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb
}

.mx-seo-content .single-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #374151;
  margin-bottom: 18px
}

.mx-seo-content .single-content p:first-of-type {
  font-size: 1.1rem;
  color: #1e293b;
  font-weight: 700
}

.mx-seo-content .single-content strong {
  color: #0f172a;
  font-weight: 800
}

.mx-seo-list {
  list-style: none;
  padding: 0;
  margin: 16px 0
}

.mx-seo-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151
}

.mx-seo-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  background: var(--accent, #15803d);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800
}

html[dir=rtl] .mx-seo-list li {
  padding: 10px 28px 10px 0
}

html[dir=rtl] .mx-seo-list li::before {
  left: auto;
  right: 0
}

.mx-seo-list li strong {
  color: #0f172a;
  font-weight: 800
}

.dv-level-subjects .faq-group {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.dv-level-subjects .faq {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .03)
}

.dv-level-subjects .faq__q {
  font-weight: 800;
  color: var(--accent);
  cursor: pointer;
  list-style: none
}

.dv-level-subjects .faq__a p {
  margin-top: 8px;
  color: #374151;
  line-height: 1.9
}

.mx-pagination {
  margin-top: 24px;
  text-align: center
}

@media (max-width:768px) {
  .mx-seo-content h2 {
    font-size: 1.5rem
  }

  .mx-seo-content h3 {
    font-size: 1.25rem
  }

  .mx-seo-content .single-content p,
  .mx-seo-list li {
    font-size: 1rem
  }
}

.ex-kind .ex-faq {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.ex-kind .ex-faq__item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .03)
}

.ex-kind .ex-faq__q {
  font-weight: 800;
  color: var(--accent);
  cursor: pointer
}

.ex-kind .ex-faq__a p {
  margin-top: 8px;
  color: #374151;
  line-height: 1.9
}

.ex-kind .mx-lesson-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal
}

.page-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(10px, 3vw, 16px);
  box-sizing: border-box
}

@media (max-width:768px) {
  .page-wrap {
    padding: 0 12px
  }
}

@media (max-width:480px) {
  .page-wrap {
    padding: 0 10px
  }
}

.box {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
  margin-bottom: clamp(16px, 2.5vw, 24px);
  box-sizing: border-box
}

@media (max-width:768px) {
  .box {
    padding: 18px;
    margin-bottom: 18px
  }
}

@media (max-width:480px) {
  .box {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 14px
  }
}

.widget {
  margin-bottom: clamp(20px, 2.5vw, 32px);
  padding: 0
}

.widget:last-child {
  margin-bottom: 0
}

.widget__title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: #0f172a;
  line-height: 1.3
}

.widget__desc {
  margin: 0 0 16px;
  color: #556376;
  line-height: 1.7;
  font-size: .98rem
}

/* pages-single.css */
:root {
  --single-accent: var(--accent, #2c7be5);
  --single-bg: #ffffff;
  --single-border: #e5e7eb;
  --single-text: #0f172a;
  --single-muted: #6b7280;
  --single-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  --single-shadow-hover: 0 12px 30px rgba(0, 0, 0, .12)
}

.mx-single-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 24px);
  box-sizing: border-box
}

@media (max-width:768px) {
  .mx-single-container {
    padding: 16px 12px
  }
}

@media (max-width:480px) {
  .mx-single-container {
    padding: 12px 10px
  }
}

.mx-single-header {
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(16px, 2.5vw, 24px);
  border-bottom: 2px solid var(--single-border)
}

.mx-single-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--single-text);
  margin: 0 0 clamp(12px, 2vw, 16px)
}

.mx-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: clamp(12px, 2vw, 16px)
}

.mx-single-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f3f4f6;
  border: 1px solid var(--single-border);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--single-text);
  text-decoration: none;
  transition: all .2s
}

.mx-single-chip:hover {
  background: var(--single-accent);
  color: #fff;
  border-color: var(--single-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

.mx-single-chip--primary {
  background: color-mix(in oklab, var(--single-accent) 12%, #fff);
  border-color: color-mix(in oklab, var(--single-accent) 30%, #e5e7eb);
  color: var(--single-accent)
}

.mx-single-chip--primary:hover {
  background: var(--single-accent);
  color: #fff
}

.mx-single-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f9fafb;
  border: 1px solid var(--single-border);
  border-radius: 999px;
  font-size: .9rem;
  color: var(--single-muted)
}

.mx-single-date::before {
  content: "📅";
  font-size: 1rem
}

.mx-single-content {
  background: var(--single-bg);
  border: 1px solid var(--single-border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(20px, 3vw, 32px);
  box-shadow: var(--single-shadow);
  line-height: 1.9;
  color: var(--single-text)
}

@media (max-width:768px) {
  .mx-single-content {
    padding: 20px 16px;
    border-radius: 14px
  }
}

@media (max-width:480px) {
  .mx-single-content {
    padding: 16px 12px;
    border-radius: var(--radius)
  }
}

.mx-single-content p {
  margin-bottom: 1.2rem
}

.mx-single-content h2,
.mx-single-content h3,
.mx-single-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--single-text);
  line-height: 1.4
}

.mx-single-content h2 {
  font-size: clamp(20px, 3vw, 28px)
}

.mx-single-content h3 {
  font-size: clamp(18px, 2.5vw, 24px)
}

.mx-single-content h4 {
  font-size: clamp(16px, 2vw, 20px)
}

.mx-single-content ol,
.mx-single-content ul {
  margin: 0 0 1.2rem 1.5rem;
  padding: 0
}

.mx-single-content li {
  margin-bottom: .6rem
}

.mx-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0
}

.mx-single-content a {
  color: var(--single-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px
}

.mx-single-content a:hover {
  text-decoration: none;
  background: color-mix(in oklab, var(--single-accent) 10%, #fff);
  padding: 2px 4px;
  border-radius: 4px
}

.mx-single-files {
  background: var(--single-bg);
  border: 1px solid var(--single-border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(20px, 3vw, 32px);
  box-shadow: var(--single-shadow)
}

.mx-single-files__title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--single-text);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px
}

.mx-single-files__title::before {
  content: "📁";
  font-size: 1.5rem
}

.mx-single-files__desc {
  color: var(--single-muted);
  font-size: .95rem;
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  line-height: 1.6
}

.mx-single-files__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px
}

@media (max-width:640px) {
  .mx-single-files__grid {
    grid-template-columns: 1fr
  }
}

.mx-single-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #f9fafb;
  border: 2px solid var(--single-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .2s;
  box-sizing: border-box
}

.mx-single-file:hover {
  background: var(--single-accent);
  border-color: var(--single-accent);
  transform: translateY(-3px);
  box-shadow: var(--single-shadow-hover)
}

.mx-single-file:hover .mx-single-file__icon,
.mx-single-file:hover .mx-single-file__name,
.mx-single-file:hover .mx-single-file__type {
  color: #fff
}

.mx-single-file__icon {
  font-size: 2rem;
  flex-shrink: 0;
  transition: transform .2s
}

.mx-single-file:hover .mx-single-file__icon {
  transform: scale(1.1)
}

.mx-single-file__content {
  flex: 1;
  min-width: 0
}

.mx-single-file__name {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: var(--single-text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.mx-single-file__type {
  display: block;
  font-size: .85rem;
  color: var(--single-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px
}

.mx-single-file__arrow {
  font-size: 1.5rem;
  color: var(--single-muted);
  flex-shrink: 0;
  transition: transform .2s
}

.mx-single-file:hover .mx-single-file__arrow {
  transform: translateX(4px);
  color: #fff
}

html[dir=rtl] .mx-single-file:hover .mx-single-file__arrow {
  transform: translateX(-4px)
}

.mx-single-file--pdf .mx-single-file__icon::before {
  content: "📄"
}

.mx-single-file--video .mx-single-file__icon::before {
  content: "🎥"
}

.mx-single-file--image .mx-single-file__icon::before {
  content: "🖼️"
}

.mx-single-file--doc .mx-single-file__icon::before {
  content: "📝"
}

.mx-single-file--link .mx-single-file__icon::before {
  content: "🔗"
}

.mx-single-seo {
  background: linear-gradient(135deg, #f9fafb 0, #fff 100%);
  border: 1px solid var(--single-border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(20px, 3vw, 32px);
  box-shadow: var(--single-shadow)
}

.mx-single-seo__title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  color: var(--single-text);
  margin: 0 0 clamp(12px, 2vw, 16px)
}

.mx-single-seo__content {
  color: var(--single-text);
  line-height: 1.9;
  font-size: 1rem
}

.mx-single-seo__content p {
  margin-bottom: 1rem
}

.mx-single-seo__content strong {
  color: var(--single-accent);
  font-weight: 800
}

.mx-single-related {
  margin-bottom: clamp(20px, 3vw, 32px)
}

.mx-single-related__title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  color: var(--single-text);
  margin: 0 0 clamp(12px, 2vw, 16px);
  display: flex;
  align-items: center;
  gap: 10px
}

.mx-single-related__title::before {
  content: "🔗";
  font-size: 1.5rem
}

.mx-single-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 16px)
}

@media (max-width:768px) {
  .mx-single-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }
}

@media (max-width:480px) {
  .mx-single-related__grid {
    grid-template-columns: 1fr;
    gap: 10px
  }
}

.mx-single-related__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 24px);
  min-height: 72px;
  background: #fff;
  border: 2px solid var(--single-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .2s;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box
}

.mx-single-related__item:hover {
  background: var(--single-accent);
  border-color: var(--single-accent);
  transform: translateY(-2px);
  box-shadow: var(--single-shadow-hover)
}

.mx-single-related__item:hover .mx-single-related__arrow,
.mx-single-related__item:hover .mx-single-related__text {
  color: #fff
}

.mx-single-related__text {
  flex: 1;
  font-weight: 700;
  font-size: .95rem;
  color: var(--single-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.5;
  hyphens: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-width: 0
}

.mx-single-related__arrow {
  font-size: 1.2rem;
  color: var(--single-muted);
  transition: transform .2s
}

.mx-single-related__item:hover .mx-single-related__arrow {
  transform: translateX(4px)
}

html[dir=rtl] .mx-single-related__item:hover .mx-single-related__arrow {
  transform: translateX(-4px)
}

.mx-single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 32px)
}

@media (max-width:640px) {
  .mx-single-nav {
    grid-template-columns: 1fr
  }
}

.mx-single-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 2px solid var(--single-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .2s;
  box-sizing: border-box
}

.mx-single-nav__item:hover {
  background: var(--single-accent);
  border-color: var(--single-accent);
  transform: translateY(-2px);
  box-shadow: var(--single-shadow-hover)
}

.mx-single-nav__item:hover .mx-single-nav__arrow,
.mx-single-nav__item:hover .mx-single-nav__text {
  color: #fff
}

.mx-single-nav__item--prev {
  text-align: right
}

html[dir=ltr] .mx-single-nav__item--prev {
  text-align: left
}

.mx-single-nav__item--next {
  text-align: left;
  flex-direction: row-reverse
}

html[dir=ltr] .mx-single-nav__item--next {
  text-align: right;
  flex-direction: row
}

.mx-single-nav__arrow {
  font-size: 1.5rem;
  color: var(--single-muted);
  flex-shrink: 0;
  transition: transform .2s
}

.mx-single-nav__item:hover .mx-single-nav__arrow {
  transform: translateX(-4px)
}

.mx-single-nav__item--next:hover .mx-single-nav__arrow {
  transform: translateX(4px)
}

html[dir=rtl] .mx-single-nav__item:hover .mx-single-nav__arrow {
  transform: translateX(4px)
}

html[dir=rtl] .mx-single-nav__item--next:hover .mx-single-nav__arrow {
  transform: translateX(-4px)
}

.mx-single-nav__content {
  flex: 1;
  min-width: 0
}

.mx-single-nav__label {
  display: block;
  font-size: .85rem;
  color: var(--single-muted);
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .5px
}

.mx-single-nav__title {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: var(--single-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.mx-single-nav__item--disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none
}

.mx-single-back {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 32px)
}

.mx-single-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #fff;
  border: 2px solid var(--single-accent);
  border-radius: var(--radius);
  color: var(--single-accent);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05)
}

.mx-single-back__btn:hover {
  background: var(--single-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--single-shadow-hover)
}

.mx-single-back__icon {
  font-size: 1.2rem
}

.mx-single-empty {
  text-align: center;
  padding: clamp(40px, 6vw, 60px) 20px;
  color: var(--single-muted)
}

.mx-single-empty__icon {
  font-size: 4rem;
  margin-bottom: 16px
}

.mx-single-empty__text {
  font-size: 1.1rem;
  font-weight: 700
}

@media (max-width:768px) {
  .mx-single-title {
    font-size: clamp(22px, 5vw, 28px)
  }

  .mx-single-meta {
    gap: 8px
  }

  .mx-single-chip,
  .mx-single-date {
    padding: 6px 12px;
    font-size: .85rem
  }
}

@media (max-width:480px) {
  .mx-single-title {
    font-size: 20px
  }

  .mx-single-chip,
  .mx-single-date {
    padding: 6px 10px;
    font-size: .8rem
  }

  .mx-single-file,
  .mx-single-nav__item,
  .mx-single-related__item {
    padding: 12px 14px
  }
}

.lesson-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  background: #fff;
  min-height: 100vh;
  width: 100%
}

.mx-single-lesson-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 32px) clamp(16px, 2.5vw, 32px);
  box-sizing: border-box;
  background: #fff;
  min-height: 100vh;
  width: 100%
}

.mx-single-lesson-header {
  margin-bottom: clamp(24px, 4vw, 32px);
  padding-bottom: clamp(20px, 3vw, 28px);
  border-bottom: 2px solid #e5e7eb
}

.mx-single-lesson-title {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  line-height: 1.4;
  color: #1f2937;
  margin: 0 0 16px
}

.mx-single-lesson-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 32px);
  align-items: center
}

.mx-single-lesson-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  transition: all .2s ease
}

.mx-single-lesson-badge:hover {
  background: var(--single-accent);
  color: #fff;
  border-color: var(--single-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

.mx-single-lesson-badge--primary {
  background: var(--single-accent);
  color: #fff;
  border-color: var(--single-accent)
}

.mx-single-lesson-badge--primary:hover {
  background: color-mix(in oklab, var(--single-accent) 90%, #000);
  border-color: color-mix(in oklab, var(--single-accent) 90%, #000)
}

.mx-single-lesson-intro {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(28px, 4vw, 36px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05)
}

.mx-single-lesson-intro p {
  font-size: clamp(16px, 2vw, 17px);
  line-height: 1.8;
  color: #4b5563;
  margin: 0
}

.mx-single-lesson-description {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.75;
  color: #4b5563
}

.mx-single-lesson-description p {
  margin-bottom: 1rem
}

.mx-single-lesson-description p:last-child {
  margin-bottom: 0
}

.mx-single-lesson-section-title {
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 700;
  color: #1f2937;
  margin: clamp(32px, 4vw, 40px) 0 clamp(16px, 2.5vw, 20px);
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb
}

.mx-single-lesson-seo-content {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(28px, 4vw, 36px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05)
}

.mx-single-lesson-seo-content p {
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.8;
  color: #4b5563;
  margin: 0
}

.mx-single-lesson-seo-content strong {
  color: var(--single-accent);
  font-weight: 700
}

.mx-single-lesson-files {
  margin-bottom: clamp(28px, 4vw, 36px)
}

.mx-single-lesson-file-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.5vw, 22px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  transition: all .2s ease
}

.mx-single-lesson-file-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
  border-color: #d1d5db
}

.mx-single-lesson-file-label {
  font-size: clamp(15px, 2vw, 16px);
  font-weight: 700;
  color: #1f2937
}

.mx-single-lesson-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.mx-single-lesson-exercises {
  margin-bottom: clamp(28px, 4vw, 36px)
}

.mx-single-lesson-exercise-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.5vw, 22px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  transition: all .2s ease
}

.mx-single-lesson-exercise-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
  border-color: #d1d5db
}

.mx-single-lesson-exercise-label {
  font-size: clamp(15px, 2vw, 16px);
  font-weight: 700;
  color: #1f2937
}

.mx-single-lesson-exercise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.mx-single-lesson-exercise-solution {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--single-border);
  margin-top: 8px
}

.mx-single-lesson-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--single-accent);
  color: #fff;
  border: 1px solid var(--single-accent);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer
}

.mx-single-lesson-btn:hover {
  background: color-mix(in oklab, var(--single-accent) 90%, #000);
  border-color: color-mix(in oklab, var(--single-accent) 90%, #000);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  color: #fff
}

.mx-single-lesson-btn--download {
  background: var(--edu-green, #2e7d32);
  border-color: var(--edu-green, #2e7d32)
}

.mx-single-lesson-btn--download:hover {
  background: color-mix(in oklab, var(--edu-green, #2e7d32) 90%, #000);
  border-color: color-mix(in oklab, var(--edu-green, #2e7d32) 90%, #000)
}

.mx-single-lesson-btn--view {
  background: var(--edu-blue, #1976d2);
  border-color: var(--edu-blue, #1976d2)
}

.mx-single-lesson-btn--view:hover {
  background: color-mix(in oklab, var(--edu-blue, #1976d2) 90%, #000);
  border-color: color-mix(in oklab, var(--edu-blue, #1976d2) 90%, #000)
}

.mx-single-lesson-btn--solution {
  background: var(--edu-orange, #ef6c00);
  border-color: var(--edu-orange, #ef6c00)
}

.mx-single-lesson-btn--solution:hover {
  background: color-mix(in oklab, var(--edu-orange, #ef6c00) 90%, #000);
  border-color: color-mix(in oklab, var(--edu-orange, #ef6c00) 90%, #000)
}

.mx-single-lesson-btn-icon {
  font-size: 1.1rem;
  line-height: 1
}

.mx-single-lesson-related {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(24px, 3.5vw, 32px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05)
}

.mx-single-lesson-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px
}

.mx-single-lesson-related-list li {
  margin: 0
}

.mx-single-lesson-related-link {
  display: block;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  color: #374151;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 400;
  transition: all .2s ease
}

.mx-single-lesson-related-link:hover {
  background: var(--single-accent);
  border-color: var(--single-accent);
  color: #fff;
  transform: translateX(-4px)
}

.mx-single-lesson-back {
  text-align: center;
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 2px solid var(--single-border)
}

.mx-single-lesson-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--single-bg);
  border: 2px solid var(--single-border);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--single-text);
  cursor: pointer;
  transition: all .2s
}

.mx-single-lesson-back-btn:hover {
  background: var(--single-accent);
  color: #fff;
  border-color: var(--single-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

.mx-single-lesson-back-icon {
  font-size: 1.2rem
}

.mx-single-lesson-empty {
  text-align: center;
  padding: clamp(40px, 6vw, 60px) 20px;
  color: var(--single-muted)
}

.mx-single-lesson-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px
}

.mx-single-lesson-empty-text {
  font-size: 1.1rem;
  font-weight: 700
}

@media (max-width:768px) {
  .mx-single-lesson-container {
    padding: 12px 12px
  }

  .mx-single-lesson-title {
    font-size: clamp(24px, 6vw, 32px)
  }

  .mx-single-lesson-badges {
    gap: 10px
  }

  .mx-single-lesson-badge {
    padding: 8px 14px;
    font-size: .85rem
  }

  .mx-single-lesson-section-title {
    font-size: clamp(20px, 4vw, 24px)
  }

  .mx-single-lesson-exercise-actions,
  .mx-single-lesson-exercise-solution,
  .mx-single-lesson-file-actions {
    flex-direction: column
  }

  .mx-single-lesson-btn {
    width: 100%;
    justify-content: center
  }

  .mx-single-lesson-related-list {
    grid-template-columns: 1fr
  }
}

@media (max-width:480px) {
  .mx-single-lesson-title {
    font-size: 22px
  }

  .mx-single-lesson-badge {
    padding: 6px 12px;
    font-size: .8rem
  }

  .mx-single-lesson-btn {
    padding: 10px 16px;
    font-size: .9rem
  }
}

:root {
  --edu-green: #15803d;
  --edu-green-dark: #15803d;
  --edu-blue: #1976d2;
  --edu-blue-dark: #1565c0;
  --edu-orange: #ef6c00;
  --edu-orange-dark: #e65100;
  --lesson-primary: var(--edu-green, #15803d);
  --lesson-secondary: var(--edu-green-dark, #15803d);
  --exercise-primary: var(--edu-blue, #1976d2);
  --exercise-secondary: var(--edu-blue-dark, #1565c0);
  --solution-primary: var(--edu-orange, #ef6c00);
  --solution-secondary: var(--edu-orange-dark, #e65100);
  --section-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-light: #e5e7eb;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b
}

.lesson-title {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 24px;
  text-align: right;
  position: relative;
  padding-bottom: 20px
}

.lesson-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-green, #15803d), var(--edu-blue, #1976d2) 70%, var(--edu-orange, #ef6c00));
  border-radius: 999px
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0, #f1f5f9 100%);
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05)
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 400;
  color: #475569;
  cursor: default;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: none
}

.meta-item a {
  color: inherit;
  text-decoration: none;
  pointer-events: none
}

.meta-item:hover {
  transform: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03)
}

.meta-item.meta-year {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #78350f
}

.meta-item.meta-year:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #78350f
}

.meta-item.meta-level {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #3730a3
}

.meta-item.meta-level:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #3730a3
}

.meta-item.meta-stream {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af
}

.meta-item.meta-stream:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af
}

.meta-item.meta-subject {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534
}

.meta-item.meta-subject:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534
}

.meta-item.meta-kind {
  background: #fce7f3;
  border-color: #f9a8d4;
  color: #831843
}

.meta-item.meta-kind:hover {
  background: #fce7f3;
  border-color: #f9a8d4;
  color: #831843
}

.meta-item.meta-sem {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #78350f
}

.meta-item.meta-sem:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #78350f
}

.lesson-intro {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 24px);
  margin-bottom: clamp(16px, 2.5vw, 24px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  position: relative;
  overflow: hidden
}

.lesson-intro::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-green, #15803d), var(--edu-blue, #1976d2) 70%, var(--edu-orange, #ef6c00));
  border-radius: 16px 16px 0 0
}

.lesson-intro p {
  font-size: clamp(16px, 2vw, 17px);
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0;
  text-align: right;
  position: relative;
  z-index: 1
}

.lesson-intro strong {
  color: var(--edu-green, #15803d);
  font-weight: 700
}

.no-content-message {
  margin: 30px 0
}

.no-content-box {
  background: #fffbe6;
  border: 2px dashed #f57f17;
  padding: 25px;
  border-radius: var(--radius);
  text-align: center;
  margin: 30px auto;
  max-width: 800px
}

.no-content-box h2 {
  color: #f57f17;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  margin: 0 0 16px
}

.no-content-box p {
  font-size: clamp(16px, 2vw, 18px);
  color: #444;
  line-height: 1.7;
  margin: 0
}

.lesson-summary-section {
  margin-bottom: clamp(16px, 2.5vw, 24px);
  padding: clamp(12px, 2vw, 20px);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden
}

.lesson-summary-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-orange, #f97316), var(--edu-orange-dark, #ea580c));
  border-radius: 16px 16px 0 0
}

.lesson-exercises-section {
  margin-bottom: clamp(16px, 2.5vw, 24px);
  padding: clamp(12px, 2vw, 20px);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden
}

.lesson-exercises-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-blue, #1976d2), var(--edu-blue-dark, #1565c0));
  border-radius: 16px 16px 0 0
}

.lesson-summary-title {
  font-size: clamp(24px, 3.5vw, 28px);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 clamp(16px, 2.5vw, 20px);
  text-align: center;
  position: relative;
  padding-bottom: 16px
}

.lesson-summary-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-orange, #f97316), var(--edu-orange-dark, #ea580c));
  border-radius: 999px
}

.lesson-exercises-section .lesson-summary-title::after {
  background: linear-gradient(90deg, var(--edu-blue, #1976d2), var(--edu-blue-dark, #1565c0))
}

.lesson-summary-seo {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(12px, 2vw, 20px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  position: relative;
  box-sizing: border-box;
  width: 100%
}

.lesson-summary-seo p {
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.85;
  color: #374151;
  margin: 0;
  text-align: right
}

.lesson-summary-seo p strong {
  color: var(--edu-orange, #f97316);
  font-weight: 700
}

.lesson-summary-seo p strong u {
  color: var(--edu-blue, #1976d2);
  text-decoration: none;
  font-weight: 800
}

.lesson-summary-seo strong {
  color: var(--edu-orange, #f97316);
  font-weight: 700
}

.lesson-exercises-section .lesson-summary-seo strong {
  color: var(--edu-blue, #1976d2)
}

.lesson-summary-seo u {
  text-decoration: none;
  color: var(--edu-blue, #1976d2);
  font-weight: 700
}

.lesson-exercises-section .lesson-summary-seo u {
  color: var(--edu-blue, #1976d2)
}

.lesson-content-block {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(12px, 2vw, 20px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  box-sizing: border-box;
  width: 100%
}

.exercise-content-block {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(12px, 2vw, 20px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  box-sizing: border-box;
  width: 100%
}

.lesson-content-block h2 {
  font-size: clamp(20px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--edu-orange, #f97316);
  margin: 0 0 20px;
  text-align: right;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(249, 115, 22, .3)
}

.exercise-content-block h2 {
  font-size: clamp(20px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--edu-blue, #1976d2);
  margin: 0 0 20px;
  text-align: right;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(25, 118, 210, .3)
}

.exercise-content-block p,
.lesson-content-block p {
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.75;
  color: #374151;
  margin: 0 0 1rem;
  text-align: right
}

.exercise-content-block p strong,
.lesson-content-block p strong {
  color: var(--edu-orange, #f97316);
  font-weight: 700
}

.exercise-content-block p strong {
  color: var(--edu-blue, #1976d2)
}

.exercise-content-block p:last-child,
.lesson-content-block p:last-child {
  margin-bottom: 0
}

.lesson-files {
  margin-bottom: clamp(16px, 2.5vw, 24px)
}

.lesson-files h2 {
  font-size: clamp(22px, 3vw, 24px);
  font-weight: 800;
  color: var(--text-primary);
  margin: clamp(16px, 2.5vw, 24px) 0 clamp(16px, 2.5vw, 20px);
  text-align: center;
  position: relative;
  padding-bottom: 16px
}

.lesson-files h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-orange, #f97316), var(--edu-orange-dark, #ea580c));
  border-radius: 999px
}

.lesson-exercises-section .lesson-files h2::after {
  background: linear-gradient(90deg, var(--edu-blue, #1976d2), var(--edu-blue-dark, #1565c0))
}

.lesson-files ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.lesson-file-row {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(16px, 2.5vw, 20px);
  margin-bottom: clamp(12px, 2vw, 16px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box
}

.lesson-file-row:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
  border-color: var(--border-light)
}

.lesson-buttons-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 0;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: var(--radius);
  width: 100%;
  box-sizing: border-box
}

@media (min-width:1200px) {
  .lesson-buttons-group {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px
  }

  .lesson-buttons-group .file-label {
    flex: 1 1 auto;
    text-align: right;
    margin-left: auto;
    margin-right: 16px;
    padding: 0;
    min-width: 0
  }

  .lesson-buttons-group .btn-download,
  .lesson-buttons-group .btn-view {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 200px
  }
}

@media (min-width:992px) and (max-width:1199px) {
  .lesson-buttons-group {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 18px;
    flex-wrap: nowrap
  }

  .lesson-buttons-group .file-label {
    flex: 1 1 auto;
    text-align: right;
    margin-left: auto;
    margin-right: 16px;
    padding: 0;
    min-width: 0
  }

  .lesson-buttons-group .btn-download,
  .lesson-buttons-group .btn-view {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 200px
  }
}

@media (min-width:769px) and (max-width:991px) {
  .lesson-buttons-group {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px
  }

  .lesson-buttons-group .file-label {
    text-align: center;
    width: 100%;
    padding: 0;
    margin-bottom: 4px
  }

  .lesson-buttons-group .btn-download,
  .lesson-buttons-group .btn-view {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px
  }
}

.lesson-buttons-group:last-child {
  margin-bottom: 0
}

.lesson-buttons-group.solution-buttons {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed rgba(239, 108, 0, .25);
  background: #fff3e0;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-right: 0;
  margin-left: 0
}

@media (min-width:769px) {
  .lesson-buttons-group.solution-buttons {
    margin-top: 20px;
    padding-top: 20px;
    padding: 16px 20px
  }
}

.file-label {
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.5
}

.lesson-summary-section .file-label {
  color: var(--text-primary, #0f172a)
}

.lesson-exercises-section .file-label {
  color: var(--text-primary, #0f172a)
}

.lesson-buttons-group.solution-buttons .file-label {
  color: var(--edu-orange, #ef6c00)
}

.btn-download,
.btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  position: relative;
  overflow: hidden;
  flex: 1 1 calc(50% - 6px);
  min-width: 140px;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center
}

@media (min-width:1200px) {

  .btn-download,
  .btn-view {
    flex: 0 1 auto;
    min-width: 160px;
    max-width: 200px;
    padding: 12px 20px
  }
}

@media (min-width:992px) and (max-width:1199px) {

  .btn-download,
  .btn-view {
    flex: 0 1 auto;
    min-width: 180px;
    max-width: 240px;
    padding: 12px 20px
  }
}

@media (min-width:769px) and (max-width:991px) {
  .lesson-buttons-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px
  }

  .btn-download,
  .btn-view {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
    padding: 12px 16px
  }
}

.btn-download {
  background: linear-gradient(135deg, var(--edu-green, #15803d) 0, var(--edu-green-dark, #15803d) 100%);
  color: #fff;
  border-color: var(--edu-green, #15803d)
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  transform: translate(-50%, -50%);
  transition: width .6s, height .6s
}

.btn-download:hover::before {
  width: 300px;
  height: 300px
}

.btn-download:hover {
  background: linear-gradient(135deg, var(--edu-green-dark, #15803d) 0, #14532d 100%);
  border-color: var(--edu-green-dark, #15803d);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(22, 163, 74, .3);
  color: #fff
}

.btn-view {
  background: linear-gradient(135deg, var(--edu-blue, #1976d2) 0, var(--edu-blue-dark, #1565c0) 100%);
  color: #fff;
  border-color: var(--edu-blue, #1976d2)
}

.btn-view::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  transform: translate(-50%, -50%);
  transition: width .6s, height .6s
}

.btn-view:hover::before {
  width: 300px;
  height: 300px
}

.btn-view:hover {
  background: linear-gradient(135deg, var(--edu-blue-dark, #1565c0) 0, #0d47a1 100%);
  border-color: var(--edu-blue-dark, #1565c0);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(25, 118, 210, .3);
  color: #fff
}

.solution-buttons .btn-download {
  background: linear-gradient(90deg, var(--edu-orange, #ef6c00), var(--edu-orange-dark, #e65100));
  border-color: var(--edu-orange, #ef6c00);
  color: #fff
}

.solution-buttons .btn-download:hover {
  background: linear-gradient(90deg, var(--edu-orange-dark, #e65100), #bf360c);
  border-color: var(--edu-orange-dark, #e65100);
  box-shadow: 0 6px 20px rgba(239, 108, 0, .3)
}

.solution-buttons .btn-view {
  background: linear-gradient(135deg, var(--edu-blue, #1976d2) 0, var(--edu-blue-dark, #1565c0) 100%);
  border-color: var(--edu-blue, #1976d2);
  color: #fff
}

.solution-buttons .btn-view:hover {
  background: linear-gradient(135deg, var(--edu-blue-dark, #1565c0) 0, #0d47a1 100%);
  border-color: var(--edu-blue-dark, #1565c0);
  box-shadow: 0 6px 20px rgba(25, 118, 210, .3)
}

.related-lessons {
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
  margin-bottom: clamp(32px, 4vw, 40px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  position: relative;
  overflow: hidden
}

.related-lessons::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--edu-blue, #1976d2)
}

.related-lessons h2 {
  font-size: clamp(22px, 3vw, 24px);
  font-weight: 800;
  color: var(--edu-blue, #1976d2);
  margin: 0 0 24px;
  text-align: right;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(25, 118, 210, .2)
}

.related-lessons ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.related-lessons li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb
}

.related-lessons li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none
}

.related-lessons a {
  display: block;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: clamp(15px, 2vw, 16px);
  font-weight: 700;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  text-align: right;
  position: relative;
  overflow: hidden
}

.related-lessons a::before {
  content: '→';
  position: absolute;
  left: 18px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all .3s;
  color: #fff
}

.related-lessons a:hover {
  background: var(--edu-green, #15803d);
  border-color: var(--edu-green, #15803d);
  color: #fff;
  transform: translateX(-6px) translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, .25);
  padding-right: 24px
}

.related-lessons a:hover::before {
  opacity: 1;
  transform: translateX(0)
}

.related-links-section {
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
  margin-bottom: clamp(32px, 4vw, 40px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  position: relative;
  overflow: hidden
}

.related-links-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--edu-orange, #ef6c00)
}

.related-links-title {
  font-size: clamp(22px, 3vw, 24px);
  font-weight: 800;
  color: var(--edu-orange, #ef6c00);
  margin: 0 0 24px;
  text-align: right;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(239, 108, 0, .2);
  display: flex;
  align-items: center;
  gap: 10px
}

.related-links-icon {
  font-size: 1.3em;
  opacity: .9
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

@media (max-width:992px) {
  .related-links-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:768px) {
  .related-links-grid {
    grid-template-columns: 1fr
  }
}

.related-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  font-size: .95rem;
  font-weight: 700;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden
}

.related-link-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--edu-green, #15803d);
  transition: width .3s ease;
  z-index: 0
}

.related-link-item:hover::before {
  width: 100%
}

.related-link-item:hover {
  border-color: var(--edu-green, #15803d);
  transform: translateX(-6px) translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, .25)
}

.related-link-arrow,
.related-link-text {
  position: relative;
  z-index: 1;
  transition: color .3s
}

.related-link-item:hover .related-link-arrow,
.related-link-item:hover .related-link-text {
  color: #fff
}

.related-link-arrow {
  font-size: 1.2rem;
  margin-right: 8px;
  transition: transform .3s
}

.related-link-item:hover .related-link-arrow {
  transform: translateX(-4px)
}

.lesson-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: clamp(24px, 3vw, 32px)
}

@media (max-width:768px) {
  .lesson-navigation {
    grid-template-columns: 1fr
  }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 24px);
  background: linear-gradient(135deg, #fff 0, #f9fafb 100%);
  border: 2px solid var(--border-light);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--edu-blue, #1976d2);
  transition: width .3s ease;
  z-index: 0
}

.nav-item:hover::before {
  width: 100%
}

.nav-item:hover {
  border-color: var(--edu-blue, #1976d2);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(25, 118, 210, .25)
}

.nav-next {
  flex-direction: row-reverse
}

.nav-disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none
}

.nav-arrow {
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
  transition: transform .3s, color .3s
}

.nav-item:hover .nav-arrow {
  transform: scale(1.2);
  color: #fff
}

.nav-content {
  flex: 1;
  position: relative;
  z-index: 1;
  transition: color .3s
}

.nav-item:hover .nav-content {
  color: #fff
}

.nav-label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  transition: color .3s
}

.nav-item:hover .nav-label {
  color: rgba(255, 255, 255, .9)
}

.nav-title {
  display: block;
  font-size: clamp(15px, 2vw, 16px);
  font-weight: 700;
  color: var(--text-primary);
  transition: color .3s
}

.nav-item:hover .nav-title {
  color: #fff
}

.lesson-back-section {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 40px)
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--edu-blue, #1976d2);
  border: 2px solid var(--edu-blue, #1976d2);
  border-radius: var(--radius);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 12px rgba(25, 118, 210, .2);
  position: relative;
  overflow: hidden
}

.back-button::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  transform: translate(-50%, -50%);
  transition: width .6s, height .6s
}

.back-button:hover::before {
  width: 300px;
  height: 300px
}

.back-button:hover {
  background: #1565c0;
  border-color: #1565c0;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(25, 118, 210, .3);
  color: #fff
}

.back-icon {
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
  transition: transform .3s
}

.back-button:hover .back-icon {
  transform: translateX(4px)
}

.back-text {
  position: relative;
  z-index: 1
}

@media (max-width:768px) {
  .lesson-container {
    padding: 12px 12px;
    max-width: 100%;
    width: 100%
  }

  .lesson-title {
    font-size: clamp(24px, 6vw, 32px)
  }

  .lesson-meta {
    gap: 8px
  }

  .meta-item {
    padding: 8px 14px;
    font-size: .85rem
  }

  .lesson-exercises-section,
  .lesson-summary-section {
    padding: 12px;
    margin-bottom: 12px
  }

  .exercise-content-block,
  .lesson-content-block,
  .lesson-summary-seo {
    padding: 12px;
    margin-bottom: 12px
  }

  .lesson-file-row {
    padding: 14px
  }

  .file-label {
    text-align: center;
    width: 100%;
    padding: 0;
    margin-bottom: 8px;
    word-wrap: break-word
  }

  .lesson-buttons-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px
  }

  .btn-download,
  .btn-view {
    width: 100%;
    justify-content: center;
    min-width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    padding: 12px 16px
  }

  .lesson-buttons-group.solution-buttons {
    padding: 12px;
    margin-top: 12px;
    padding-top: 12px
  }
}

@media (max-width:480px) {
  .lesson-container {
    padding: 10px 10px;
    max-width: 100%;
    width: 100%
  }

  .meta-item {
    padding: 6px 12px;
    font-size: .8rem
  }

  .lesson-exercises-section,
  .lesson-summary-section {
    padding: 10px;
    margin-bottom: 10px
  }

  .exercise-content-block,
  .lesson-content-block,
  .lesson-summary-seo {
    padding: 10px;
    margin-bottom: 10px
  }

  .lesson-file-row {
    padding: 12px
  }

  .lesson-buttons-group {
    padding: 10px;
    gap: 8px
  }

  .file-label {
    font-size: 14px;
    line-height: 1.4
  }

  .btn-download,
  .btn-view {
    padding: 11px 14px;
    font-size: .9rem;
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%
  }

  .lesson-buttons-group.solution-buttons {
    padding: 10px;
    margin-top: 10px;
    padding-top: 10px
  }
}

.single-exam .lesson-summary-section,
body.single-exam .lesson-summary-section {
  --single-accent: var(--edu-orange, #f97316)
}

.single-exam .lesson-summary-section::before,
body.single-exam .lesson-summary-section::before {
  background: linear-gradient(90deg, var(--edu-orange, #f97316), var(--edu-orange-dark, #ea580c))
}

.single-exam .lesson-summary-title::after,
body.single-exam .lesson-summary-title::after {
  background: linear-gradient(90deg, var(--edu-orange, #f97316), var(--edu-orange-dark, #ea580c))
}

.single-exam .lesson-summary-seo strong,
body.single-exam .lesson-summary-seo strong {
  color: var(--edu-orange, #f97316)
}

.single-exam .lesson-summary-seo u,
body.single-exam .lesson-summary-seo u {
  color: var(--edu-orange, #f97316)
}

.single-exam .lesson-content-block h2,
body.single-exam .lesson-content-block h2 {
  color: var(--edu-orange, #f97316);
  border-bottom: 2px solid rgba(249, 115, 22, .2)
}

.single-exam .lesson-files h2::after,
body.single-exam .lesson-files h2::after {
  background: linear-gradient(90deg, var(--edu-orange, #f97316), var(--edu-orange-dark, #ea580c))
}

.single-exam .exercise-content-block h2,
body.single-exam .exercise-content-block h2 {
  color: var(--edu-blue, #1976d2);
  border-bottom: 2px solid rgba(25, 118, 210, .2)
}

.single-exam .solution-buttons .btn-download,
body.single-exam .solution-buttons .btn-download {
  background: linear-gradient(90deg, var(--edu-orange, #ef6c00), var(--edu-orange-dark, #e65100));
  border-color: var(--edu-orange, #ef6c00);
  color: #fff
}

.single-exam .solution-buttons .btn-download:hover,
body.single-exam .solution-buttons .btn-download:hover {
  background: linear-gradient(90deg, var(--edu-orange-dark, #e65100), #bf360c);
  border-color: var(--edu-orange-dark, #e65100);
  box-shadow: 0 6px 20px rgba(239, 108, 0, .3)
}

.single-exam .solution-buttons .btn-view,
body.single-exam .solution-buttons .btn-view {
  background: linear-gradient(135deg, var(--edu-blue, #1976d2) 0, var(--edu-blue-dark, #1565c0) 100%);
  border-color: var(--edu-blue, #1976d2);
  color: #fff
}

.single-exam .solution-buttons .btn-view:hover,
body.single-exam .solution-buttons .btn-view:hover {
  background: linear-gradient(135deg, var(--edu-blue-dark, #1565c0) 0, #0d47a1 100%);
  border-color: var(--edu-blue-dark, #1565c0);
  box-shadow: 0 6px 20px rgba(25, 118, 210, .3)
}

.single-exam .lesson-container,
body.single-exam .lesson-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  background: #fff;
  min-height: 100vh;
  width: 100%
}

.single-exam .lesson-title,
body.single-exam .lesson-title {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  text-align: center;
  position: relative;
  padding-bottom: clamp(16px, 2.5vw, 20px)
}

.single-exam .lesson-meta,
body.single-exam .lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(20px, 3vw, 28px)
}

.single-exam .lesson-intro,
body.single-exam .lesson-intro {
  background: linear-gradient(135deg, rgba(249, 115, 22, .05) 0, rgba(239, 108, 0, .02) 100%);
  border: 1px solid rgba(249, 115, 22, .15);
  border-top: 3px solid var(--edu-orange, #f97316);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(28px, 4vw, 36px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04)
}

body.single-exam .lesson-container,
body.single-post-type-exam .lesson-container {
  display: block
}

body.single-exam .lesson-title,
body.single-post-type-exam .lesson-title {
  display: block
}

body.single-exam .lesson-meta,
body.single-post-type-exam .lesson-meta {
  display: flex
}

body.single-exam .lesson-summary-section,
body.single-post-type-exam .lesson-summary-section {
  display: block
}

body.single-exam .lesson-files,
body.single-post-type-exam .lesson-files {
  display: block
}

.single-devoir .lesson-container,
.single-exam .lesson-container,
.single-lesson .lesson-container,
body.single-devoir .lesson-container,
body.single-exam .lesson-container,
body.single-lesson .lesson-container,
body.single-post-type-devoir .lesson-container,
body.single-post-type-exam .lesson-container,
body.single-post-type-lesson .lesson-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  background: #fff;
  min-height: 100vh;
  display: block;
  width: 100%
}

.single-devoir .lesson-title,
.single-exam .lesson-title,
.single-lesson .lesson-title,
body.single-devoir .lesson-title,
body.single-exam .lesson-title,
body.single-lesson .lesson-title,
body.single-post-type-devoir .lesson-title,
body.single-post-type-exam .lesson-title,
body.single-post-type-lesson .lesson-title {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary, #0f172a);
  margin: 0 0 24px;
  text-align: center;
  position: relative !important;
  padding-bottom: 20px;
  display: block
}

.single-devoir .lesson-title::after,
.single-exam .lesson-title::after,
.single-lesson .lesson-title::after,
body.single-devoir .lesson-title::after,
body.single-exam .lesson-title::after,
body.single-lesson .lesson-title::after,
body.single-post-type-devoir .lesson-title::after,
body.single-post-type-exam .lesson-title::after,
body.single-post-type-lesson .lesson-title::after {
  content: '';
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-green, #15803d), var(--edu-blue, #1976d2) 70%, var(--edu-orange, #ef6c00));
  border-radius: 999px
}

.single-devoir .lesson-meta,
.single-exam .lesson-meta,
.single-lesson .lesson-meta,
body.single-devoir .lesson-meta,
body.single-exam .lesson-meta,
body.single-lesson .lesson-meta,
body.single-post-type-devoir .lesson-meta,
body.single-post-type-exam .lesson-meta,
body.single-post-type-lesson .lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light, #e5e7eb);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04)
}

.single-devoir .lesson-intro,
.single-exam .lesson-intro,
.single-lesson .lesson-intro,
body.single-devoir .lesson-intro,
body.single-exam .lesson-intro,
body.single-lesson .lesson-intro,
body.single-post-type-devoir .lesson-intro,
body.single-post-type-exam .lesson-intro,
body.single-post-type-lesson .lesson-intro {
  background: linear-gradient(135deg, rgba(249, 115, 22, .05) 0, rgba(239, 108, 0, .02) 100%);
  border: 1px solid rgba(249, 115, 22, .15);
  border-top: 3px solid var(--edu-orange, #f97316);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(28px, 4vw, 36px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  display: block
}

.single-devoir .lesson-summary-section,
body.single-devoir .lesson-summary-section,
body.single-post-type-devoir .lesson-summary-section {
  --single-accent: var(--edu-orange, #f97316);
  display: block
}

.single-devoir .lesson-summary-section::before,
body.single-devoir .lesson-summary-section::before,
body.single-post-type-devoir .lesson-summary-section::before {
  background: linear-gradient(90deg, var(--edu-orange, #f97316), var(--edu-orange-dark, #ea580c))
}

.single-devoir .lesson-summary-title::after,
body.single-devoir .lesson-summary-title::after,
body.single-post-type-devoir .lesson-summary-title::after {
  background: linear-gradient(90deg, var(--edu-orange, #f97316), var(--edu-orange-dark, #ea580c))
}

.single-devoir .lesson-summary-seo strong,
body.single-devoir .lesson-summary-seo strong,
body.single-post-type-devoir .lesson-summary-seo strong {
  color: var(--edu-orange, #f97316)
}

.single-devoir .lesson-summary-seo u,
body.single-devoir .lesson-summary-seo u,
body.single-post-type-devoir .lesson-summary-seo u {
  color: var(--edu-orange, #f97316)
}

.single-devoir .lesson-content-block h2,
body.single-devoir .lesson-content-block h2,
body.single-post-type-devoir .lesson-content-block h2 {
  color: var(--edu-orange, #f97316);
  border-bottom: 2px solid rgba(249, 115, 22, .2)
}

.single-devoir .lesson-files h2::after,
body.single-devoir .lesson-files h2::after,
body.single-post-type-devoir .lesson-files h2::after {
  background: linear-gradient(90deg, var(--edu-orange, #f97316), var(--edu-orange-dark, #ea580c))
}

.single-devoir .exercise-content-block h2,
body.single-devoir .exercise-content-block h2,
body.single-post-type-devoir .exercise-content-block h2 {
  color: var(--edu-blue, #1976d2);
  border-bottom: 2px solid rgba(25, 118, 210, .2)
}

.single-devoir .solution-buttons .btn-download,
body.single-devoir .solution-buttons .btn-download,
body.single-post-type-devoir .solution-buttons .btn-download {
  background: linear-gradient(90deg, var(--edu-orange, #ef6c00), var(--edu-orange-dark, #e65100));
  border-color: var(--edu-orange, #ef6c00);
  color: #fff
}

.single-devoir .solution-buttons .btn-download:hover,
body.single-devoir .solution-buttons .btn-download:hover,
body.single-post-type-devoir .solution-buttons .btn-download:hover {
  background: linear-gradient(90deg, var(--edu-orange-dark, #e65100), #bf360c);
  border-color: var(--edu-orange-dark, #e65100);
  box-shadow: 0 6px 20px rgba(239, 108, 0, .3)
}

.single-devoir .solution-buttons .btn-view,
body.single-devoir .solution-buttons .btn-view,
body.single-post-type-devoir .solution-buttons .btn-view {
  background: linear-gradient(135deg, var(--edu-blue, #1976d2) 0, var(--edu-blue-dark, #1565c0) 100%);
  border-color: var(--edu-blue, #1976d2);
  color: #fff
}

.single-devoir .solution-buttons .btn-view:hover,
body.single-devoir .solution-buttons .btn-view:hover,
body.single-post-type-devoir .solution-buttons .btn-view:hover {
  background: linear-gradient(135deg, var(--edu-blue-dark, #1565c0) 0, #0d47a1 100%);
  border-color: var(--edu-blue-dark, #1565c0);
  box-shadow: 0 6px 20px rgba(25, 118, 210, .3)
}

.lesson-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  background: #fff;
  min-height: 100vh;
  width: 100%
}

.lesson-title {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary, #0f172a);
  margin: 0 0 24px;
  text-align: center;
  position: relative;
  padding-bottom: 20px
}

.lesson-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-green, #15803d), var(--edu-blue, #1976d2) 70%, var(--edu-orange, #ef6c00));
  border-radius: 999px
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light, #e5e7eb);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04)
}

.lesson-intro {
  background: linear-gradient(135deg, rgba(249, 115, 22, .05) 0, rgba(239, 108, 0, .02) 100%);
  border: 1px solid rgba(249, 115, 22, .15);
  border-top: 3px solid var(--edu-orange, #f97316);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(28px, 4vw, 36px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04)
}

.exam-files-section {
  margin-top: clamp(32px, 4vw, 48px);
  width: 100%;
  box-sizing: border-box
}

.exam-files-title {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  text-align: center;
  margin: 0 0 clamp(32px, 4vw, 48px) 0;
  padding-bottom: clamp(16px, 2vw, 24px);
  border-bottom: 3px solid var(--edu-green, #1b5e20);
  position: relative
}

.exam-files-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--edu-green, #1b5e20), var(--edu-blue, #1976d2), var(--edu-orange, #ef6c00));
  border-radius: 2px
}

.exam-region-card {
  background: #fff;
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 16px;
  padding: clamp(20px, 2.5vw, 28px);
  margin-bottom: clamp(20px, 2.5vw, 28px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box
}

.exam-region-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-green, #1b5e20), var(--edu-blue, #1976d2) 70%, var(--edu-orange, #ef6c00));
  border-radius: 16px 16px 0 0
}

.exam-region-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transform: translateY(-2px)
}

.exam-region-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--edu-green, #1b5e20);
  margin: 0 0 clamp(24px, 3vw, 32px) 0;
  padding: 0 0 clamp(12px, 1.5vw, 16px) 0;
  border-bottom: 3px solid var(--edu-green, #1b5e20);
  line-height: 1.4;
  position: relative
}

.exam-region-title .region-prefix {
  color: var(--edu-green, #1b5e20)
}

.exam-region-title .region-name-orange {
  color: var(--edu-orange, #ef6c00);
  font-weight: 800
}

.exam-region-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--edu-green, #1b5e20), var(--edu-blue, #1976d2));
  border-radius: 2px
}

.exam-province-group {
  margin-bottom: clamp(20px, 2.5vw, 28px);
  padding: 0;
  width: 100%;
  box-sizing: border-box
}

.exam-province-group:last-child {
  margin-bottom: 0
}

.exam-province-title {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--edu-blue, #1976d2);
  margin: 0 0 clamp(18px, 2.5vw, 24px) 0;
  padding: 0 0 clamp(10px, 1.2vw, 14px) 0;
  border-bottom: 2px solid var(--border-light, #e5e7eb);
  line-height: 1.4;
  position: relative
}

.exam-province-title .province-prefix {
  color: var(--edu-blue, #1976d2)
}

.exam-province-title .province-name-orange {
  color: var(--edu-orange, #ef6c00);
  font-weight: 700
}

.exam-province-title::before {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background: var(--edu-blue, #1976d2);
  border-radius: 2px
}

.exam-files-list {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 18px)
}

.exam-file-item {
  background: var(--section-bg, #f8fafc);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 20px);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  width: 100%;
  box-sizing: border-box;
  margin-bottom: clamp(14px, 2vw, 18px)
}

.exam-file-item:hover {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  transform: translateX(-4px);
  border-color: var(--edu-green, #1b5e20)
}

.file-header-with-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: var(--radius);
  width: 100%;
  box-sizing: border-box
}

@media (min-width:1200px) {
  .file-header-with-buttons {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    flex-wrap: wrap
  }

  .file-name {
    flex: 1 1 auto;
    text-align: right;
    margin-left: auto;
    margin-right: 16px;
    padding: 0;
    min-width: 0
  }

  .file-buttons-row {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 12px
  }
}

@media (min-width:992px) and (max-width:1199px) {
  .file-header-with-buttons {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 18px;
    flex-wrap: wrap
  }

  .file-name {
    flex: 1 1 auto;
    text-align: right;
    margin-left: auto;
    margin-right: 16px;
    padding: 0;
    min-width: 0
  }

  .file-buttons-row {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 12px
  }
}

@media (min-width:769px) and (max-width:991px) {
  .file-header-with-buttons {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px
  }

  .file-name {
    text-align: center;
    width: 100%
  }

  .file-buttons-row {
    justify-content: center;
    width: 100%
  }
}

.file-name {
  display: block;
  font-weight: 700;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-primary, #0f172a);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere
}

.file-name.solution-label {
  color: var(--edu-orange, #ef6c00)
}

.file-buttons-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap
}

.file-buttons-row .btn-download,
.file-buttons-row .btn-view {
  flex: 1 1 160px;
  min-width: 120px;
  max-width: none;
  padding: 12px 16px;
  font-size: .95rem;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box
}

@media (min-width:1200px) {

  .file-buttons-row .btn-download,
  .file-buttons-row .btn-view {
    flex: 0 1 auto;
    min-width: 160px;
    max-width: 200px;
    padding: 12px 20px
  }
}

.file-header-with-buttons.solution-buttons .file-buttons-row .btn-download {
  background: linear-gradient(90deg, var(--edu-orange, #ef6c00), var(--edu-orange-dark, #e65100));
  border-color: var(--edu-orange, #ef6c00);
  color: #fff
}

.file-header-with-buttons.solution-buttons .file-buttons-row .btn-download:hover {
  background: linear-gradient(90deg, var(--edu-orange-dark, #e65100), #bf360c);
  border-color: var(--edu-orange-dark, #e65100);
  box-shadow: 0 6px 20px rgba(239, 108, 0, .3)
}

.file-header-with-buttons.solution-buttons {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed rgba(239, 108, 0, .25);
  background: #fff3e0;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-right: 0;
  margin-left: 0
}

@media (min-width:769px) {
  .file-header-with-buttons.solution-buttons {
    margin-top: 20px;
    padding-top: 20px;
    padding: 16px 20px
  }
}

@media (max-width:992px) {

  .single-exam .lesson-container,
  body.single-exam .lesson-container {
    padding: clamp(12px, 2vw, 16px) clamp(12px, 2vw, 16px)
  }

  .exam-files-section {
    margin-right: 0;
    margin-left: 0;
    padding: 0
  }

  .exam-region-card {
    padding: 18px;
    margin-bottom: 20px;
    margin-right: 0;
    margin-left: 0;
    border-radius: var(--radius);
    width: 100%
  }

  .exam-province-group {
    padding: 0;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 18px;
    width: 100%
  }

  .exam-file-item {
    margin-right: 0;
    margin-left: 0;
    padding: 14px;
    margin-bottom: 12px;
    width: 100%
  }

  .file-header-with-buttons {
    margin-right: 0;
    margin-left: 0;
    padding: 12px;
    gap: 10px;
    width: 100%
  }

  .file-header-with-buttons.solution-buttons {
    margin-right: 0;
    margin-left: 0;
    padding: 12px;
    margin-top: 12px;
    padding-top: 12px;
    width: 100%
  }
}

@media (max-width:768px) {

  .single-exam .lesson-container,
  body.single-exam .lesson-container {
    padding: clamp(10px, 2vw, 14px) clamp(10px, 2vw, 14px)
  }

  .exam-files-section {
    margin-right: 0;
    margin-left: 0;
    padding: 0
  }

  .exam-region-card {
    padding: 16px;
    margin-bottom: 18px;
    margin-right: 0;
    margin-left: 0;
    border-radius: var(--radius);
    width: 100%
  }

  .exam-province-group {
    padding: 0;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 16px;
    width: 100%
  }

  .exam-region-title {
    font-size: 20px;
    margin-bottom: 18px
  }

  .exam-province-title {
    font-size: 18px;
    margin-bottom: 16px
  }

  .exam-file-item {
    padding: 12px;
    margin-bottom: 12px;
    width: 100%
  }

  .file-header-with-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    margin-right: 0;
    margin-left: 0;
    width: 100%;
    align-items: stretch
  }

  .file-name {
    text-align: center;
    width: 100%;
    white-space: normal;
    padding: 0;
    margin-bottom: 6px;
    word-wrap: break-word
  }

  .file-buttons-row {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    align-items: stretch
  }

  .file-buttons-row .btn-download,
  .file-buttons-row .btn-view {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    padding: 12px 16px
  }

  .file-header-with-buttons.solution-buttons {
    margin-right: 0;
    margin-left: 0;
    padding: 12px;
    margin-top: 12px;
    padding-top: 12px;
    width: 100%
  }
}

@media (max-width:480px) {

  .single-exam .lesson-container,
  body.single-exam .lesson-container {
    padding: 10px 10px
  }

  .exam-files-section {
    margin-right: 0;
    margin-left: 0;
    padding: 0
  }

  .exam-region-card {
    padding: 12px;
    border-radius: 10px;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 14px;
    width: 100%
  }

  .exam-province-group {
    padding: 0;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 12px;
    width: 100%
  }

  .exam-region-title {
    font-size: 17px;
    margin-bottom: 14px;
    padding-bottom: 8px
  }

  .exam-province-title {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 6px
  }

  .exam-file-item {
    padding: 10px;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 10px;
    border-radius: 10px;
    width: 100%
  }

  .file-header-with-buttons {
    padding: 10px;
    margin-right: 0;
    margin-left: 0;
    gap: 8px;
    border-radius: 10px;
    width: 100%;
    flex-direction: column;
    align-items: stretch
  }

  .file-name {
    font-size: 14px;
    text-align: center;
    padding: 0;
    margin-bottom: 6px;
    word-wrap: break-word;
    line-height: 1.4
  }

  .file-buttons-row {
    flex-direction: column;
    gap: 8px;
    width: 100%
  }

  .file-buttons-row .btn-download,
  .file-buttons-row .btn-view {
    width: 100%;
    padding: 11px 14px;
    font-size: .9rem
  }

  .file-header-with-buttons.solution-buttons {
    margin-right: 0;
    margin-left: 0;
    padding: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-radius: 10px;
    width: 100%
  }
}

.pdf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: none
}

.pdf-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(4px)
}

.pdf-modal-container {
  position: relative;
  width: 95%;
  max-width: 1400px;
  height: 95vh;
  max-height: 95vh;
  margin: 2.5vh auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000000
}

.pdf-modal-header {
  background: linear-gradient(135deg, var(--edu-green, #15803d) 0, #15803d 100%);
  color: #fff;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  border-radius: 16px 16px 0 0
}

.pdf-modal-title {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  text-align: right;
  flex: 1
}

.pdf-modal-close {
  background: rgba(255, 255, 255, .2);
  border: 2px solid rgba(255, 255, 255, .3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  flex-shrink: 0;
  margin-right: 16px
}

.pdf-modal-close:hover {
  background: rgba(255, 255, 255, .3);
  border-color: rgba(255, 255, 255, .5);
  transform: scale(1.1)
}

.pdf-modal-body {
  flex: 1;
  background: #f5f5f5;
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative
}

.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1)
}

.pdf-modal-footer {
  padding: 20px 30px;
  background: #fff;
  border-top: 2px solid #e5e7eb;
  text-align: center;
  flex-shrink: 0
}

.pdf-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #666;
  font-family: Almarai, sans-serif;
  z-index: 10
}

.pdf-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--edu-green, #15803d);
  border-radius: 50%;
  animation: pdf-spin 1s linear infinite;
  margin-bottom: 20px
}

@keyframes pdf-spin {
  0% {
    transform: rotate(0)
  }

  100% {
    transform: rotate(360deg)
  }
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--edu-green, #15803d) 0, #15803d 100%);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: Almarai, sans-serif;
  transition: all .3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
  border: none;
  cursor: pointer
}

.pdf-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .15);
  background: linear-gradient(135deg, #15803d 0, #15803d 100%)
}

.pdf-download-btn:active {
  transform: translateY(0)
}

.pdf-download-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor
}

@media (max-width:768px) {
  .pdf-modal-container {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0
  }

  .pdf-modal-header {
    padding: 15px 20px;
    border-radius: 0
  }

  .pdf-modal-title {
    font-size: 18px
  }

  .pdf-modal-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
    margin-right: 12px
  }

  .pdf-modal-body {
    padding: 10px
  }

  .pdf-modal-footer {
    padding: 15px 20px
  }

  .pdf-download-btn {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    justify-content: center
  }
}

@media (max-width:480px) {
  .pdf-modal-header {
    padding: 12px 16px
  }

  .pdf-modal-title {
    font-size: 16px
  }

  .pdf-modal-close {
    width: 32px;
    height: 32px;
    font-size: 18px;
    margin-right: 8px
  }

  .pdf-modal-body {
    padding: 8px
  }

  .pdf-modal-footer {
    padding: 12px 16px
  }
}

body.cycle-primary .pdf-download-btn,
body.cycle-primary .pdf-modal-header {
  background: linear-gradient(135deg, var(--edu-green, #15803d) 0, #15803d 100%)
}

body.cycle-college .pdf-download-btn,
body.cycle-college .pdf-modal-header {
  background: linear-gradient(135deg, var(--edu-blue, #1976d2) 0, #1565c0 100%)
}

body.cycle-lycee .pdf-download-btn,
body.cycle-lycee .pdf-modal-header {
  background: linear-gradient(135deg, var(--edu-orange, #ef6c00) 0, #e65100 100%)
}

.related-links-section-enhanced {
  background: #fff;
  border: 2px solid var(--border-light, #e5e7eb);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 36px);
  margin-bottom: clamp(40px, 5vw, 50px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  position: relative
}

.related-links-section-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--edu-orange, #ef6c00);
  border-radius: 16px 16px 0 0
}

.related-links-header {
  text-align: right;
  margin-bottom: clamp(24px, 3vw, 32px);
  padding-bottom: clamp(16px, 2vw, 20px);
  border-bottom: 2px solid var(--border-light, #e5e7eb)
}

.related-links-title-enhanced {
  font-size: clamp(22px, 3vw, 24px);
  font-weight: 800;
  color: var(--edu-blue, #1976d2);
  margin: 0 0 24px;
  text-align: right;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(25, 118, 210, .2)
}

.related-links-category {
  margin-bottom: clamp(24px, 3vw, 32px)
}

.related-links-category:last-child {
  margin-bottom: 0
}

.related-links-category-title {
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 700;
  color: var(--single-text, #0f172a);
  margin: 0 0 clamp(14px, 2vw, 18px);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 10px;
  border-right: 3px solid var(--edu-orange, #ef6c00)
}

.category-icon {
  font-size: 1.2em
}

.related-links-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(12px, 1.8vw, 16px)
}

@media (max-width:992px) {
  .related-links-grid-enhanced {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px
  }
}

@media (max-width:768px) {
  .related-links-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 10px
  }
}

.related-link-item-enhanced {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(16px, 2vw, 20px) clamp(18px, 2.5vw, 22px);
  background: #fff;
  border: 2px solid var(--border-light, #e5e7eb);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary, #0f172a);
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 700;
  transition: all .25s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04)
}

.related-link-item-enhanced:hover {
  border-color: var(--edu-orange, #ef6c00);
  background: #fff8f0;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(239, 108, 0, .15)
}

.link-icon,
.link-text {
  position: relative;
  transition: all .25s ease
}

.related-link-item-enhanced:hover .link-text {
  color: var(--edu-orange, #ef6c00)
}

.link-icon {
  font-size: 1.3em;
  flex-shrink: 0;
  transition: transform .25s ease
}

.related-link-item-enhanced:hover .link-icon {
  transform: scale(1.1)
}

.link-text {
  flex: 1;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--text-primary, #0f172a)
}

/* pages-templates.css */
:root {
  --edu-green: #1b5e20;
  --edu-blue: #1976d2;
  --edu-orange: #ef6c00;
  --edu-purple: #9333ea;
  --edu-teal: #0f766e;
  --edu-grey: #6b7280;
  --text: #0f172a
}

.mx-sections {
  padding-block: clamp(20px, 3vw, 28px);
  padding-inline: clamp(12px, 2vw, 20px);
  background: #f8fafc
}

.mx-container {
  width: min(1160px, 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(10px, 3vw, 20px);
  box-sizing: border-box
}

@media (max-width:768px) {
  .mx-container {
    padding-inline: 12px
  }
}

@media (max-width:480px) {
  .mx-container {
    padding-inline: 10px
  }
}

.mx-block {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
  margin-bottom: clamp(16px, 2.5vw, 24px);
  box-sizing: border-box;
  transition: box-shadow .3s ease, transform .2s ease
}

.mx-block:hover {
  box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
  transform: translateY(-2px)
}

@media (max-width:768px) {
  .mx-block {
    padding: 18px;
    margin-bottom: 18px
  }
}

@media (max-width:480px) {
  .mx-block {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 14px
  }
}

.mx-block__header {
  margin-bottom: clamp(20px, 3vw, 28px);
  padding-bottom: clamp(16px, 2.5vw, 24px);
  border-bottom: 2px solid #e5e7eb
}

.mx-block__title {
  margin: 0 0 clamp(12px, 2vw, 16px);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: #0f172a;
  position: relative;
  line-height: 1.3
}

.mx-block__title::after {
  content: "";
  display: block;
  height: 4px;
  width: 80px;
  border-radius: 999px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--edu-green, #15803d), var(--edu-blue, #1d4ed8) 70%, var(--edu-orange, #f97316))
}

.mx-block__desc {
  margin: clamp(12px, 2vw, 16px) 0 0;
  color: #556376;
  line-height: 1.9;
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  text-align: right
}

.mx-block__desc strong {
  color: var(--edu-green, #15803d);
  font-weight: 800
}

.mx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 16px);
  margin-top: clamp(20px, 3vw, 28px)
}

.mx-section-separated .mx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 16px);
  margin-top: 12px
}

@media (max-width:992px) and (min-width:769px) {
  .mx-section-separated .mx-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:768px) {
  .mx-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }

  .mx-section-separated .mx-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:480px) {
  .mx-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .mx-section-separated .mx-grid {
    grid-template-columns: 1fr
  }
}

.skin-higher-portal .mx-mini,
.skin-orientation .mx-mini,
.skin-section-generic .mx-mini,
.skin-student-portal .mx-mini,
.skin-teacher-portal .mx-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  min-height: 72px;
  height: auto;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 800;
  font-size: 1.05rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05)
}

.skin-higher-portal .mx-mini:hover,
.skin-orientation .mx-mini:hover,
.skin-section-generic .mx-mini:hover,
.skin-student-portal .mx-mini:hover,
.skin-teacher-portal .mx-mini:hover {
  transform: translateY(-4px);
  border-color: var(--accent, #3b82f6);
  background: #fff;
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, .15);
  color: var(--accent, #3b82f6)
}

.skin-higher-portal .mx-mini:hover,
.skin-orientation .mx-mini:hover,
.skin-section-generic .mx-mini:hover,
.skin-student-portal .mx-mini:hover,
.skin-teacher-portal .mx-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  border-color: var(--accent, #3b82f6)
}

.skin-higher-portal .mx-mini::before,
.skin-orientation .mx-mini::before,
.skin-section-generic .mx-mini::before,
.skin-student-portal .mx-mini::before,
.skin-teacher-portal .mx-mini::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  transition: left .5s ease
}

.skin-higher-portal .mx-mini:hover::before,
.skin-orientation .mx-mini:hover::before,
.skin-section-generic .mx-mini:hover::before,
.skin-student-portal .mx-mini:hover::before,
.skin-teacher-portal .mx-mini:hover::before {
  left: 100%
}

.mx-mini__emoji {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  flex-shrink: 0;
  line-height: 1
}

.mx-mini__text {
  flex: 1;
  min-width: 0;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.5;
  hyphens: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical
}

.mx-section-separated .mx-grid .mx-mini {
  height: auto;
  overflow: visible
}

.mx-section-separated .mx-grid .mx-mini .mx-mini__text {
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  text-overflow: clip
}

.mx-block__content {
  margin-top: clamp(24px, 3vw, 32px)
}

.mx-block__section {
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: clamp(16px, 2.5vw, 24px);
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb
}

.mx-block__section-title {
  margin: 0 0 clamp(12px, 2vw, 16px);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px
}

.mx-block__section-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 24px;
  background: var(--edu-green, #15803d);
  border-radius: 2px
}

.mx-block__section-content {
  color: #556376;
  line-height: 1.8;
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  text-align: right
}

.mx-block__section-content ol,
.mx-block__section-content ul {
  margin: 12px 0;
  padding-right: 20px;
  list-style-position: outside
}

.mx-block__section-content li {
  margin-bottom: 8px
}

.mx-block__section-content a {
  color: var(--edu-blue, #1d4ed8);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease
}

.mx-block__section-content a:hover {
  border-bottom-color: var(--edu-blue, #1d4ed8)
}

.mx-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(12px, 2vw, 16px);
  margin-top: clamp(20px, 3vw, 28px)
}

.mx-stat-card {
  background: linear-gradient(135deg, var(--edu-green, #15803d) 0, var(--edu-blue, #1d4ed8) 100%);
  border-radius: 14px;
  padding: clamp(16px, 2.5vw, 24px);
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
  transition: transform .3s ease, box-shadow .3s ease
}

.mx-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15)
}

.mx-stat-card__number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px
}

.mx-stat-card__label {
  display: block;
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  font-weight: 700;
  opacity: .95
}

.mx-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(16px, 2.5vw, 24px)
}

.mx-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  transition: all .2s ease
}

.mx-quick-link:hover {
  background: var(--edu-green, #15803d);
  color: #fff;
  border-color: var(--edu-green, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

@media (max-width:768px) {
  .mx-block__header {
    margin-bottom: 20px;
    padding-bottom: 16px
  }

  .mx-block__section {
    padding: 16px;
    margin-bottom: 20px
  }

  .mx-stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:480px) {
  .mx-stats-grid {
    grid-template-columns: 1fr
  }

  .mx-quick-links {
    flex-direction: column
  }

  .mx-quick-link {
    width: 100%;
    justify-content: center
  }
}

.page-template-page-student .mx-block__title::after {
  background: linear-gradient(90deg, var(--edu-orange, #f97316), var(--edu-green, #15803d))
}

.page-template-page-student .mx-mini:hover {
  border-color: var(--edu-orange, #f97316);
  background: rgba(249, 115, 22, .05)
}

.page-template-page-teacher .mx-block__title::after {
  background: linear-gradient(90deg, var(--edu-blue, #1d4ed8), var(--edu-green, #15803d))
}

.page-template-page-teacher .mx-mini:hover {
  border-color: var(--edu-blue, #1d4ed8);
  background: rgba(29, 78, 216, .05)
}

.page-template-page-student-higher .mx-block__title::after {
  background: linear-gradient(90deg, var(--edu-purple, #9333ea), var(--edu-green, #15803d))
}

.page-template-page-student-higher .mx-mini:hover {
  border-color: var(--edu-purple, #9333ea);
  background: rgba(147, 51, 234, .05)
}

.mx-sections--news {
  background: #f8fafc;
  padding-block: clamp(24px, 4vw, 32px)
}

.mx-block--news-hero {
  background: linear-gradient(135deg, rgba(27, 94, 32, .08) 0, rgba(25, 118, 210, .08) 100%);
  border: 2px solid rgba(27, 94, 32, .15);
  margin-bottom: clamp(20px, 3vw, 24px)
}

.mx-block--news-hero .mx-block__header {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0
}

.mx-block--news-hero .mx-block__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: clamp(12px, 2vw, 16px)
}

.mx-block--news-hero .mx-block__desc {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: #475569
}

.mx-block--news-search {
  background: #fff;
  margin-bottom: clamp(20px, 3vw, 24px);
  padding: clamp(20px, 3vw, 28px)
}

.mx-news-search-form {
  width: 100%
}

.mx-news-search-wrapper {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: 100%
}

.mx-news-search-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: Almarai, sans-serif;
  background: #fff;
  transition: all .3s ease
}

.mx-news-search-input:focus {
  outline: 0;
  border-color: var(--edu-green, #15803d);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, .1)
}

.mx-news-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--edu-green, #15803d);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all .3s ease;
  white-space: nowrap
}

.mx-news-search-btn:hover {
  background: var(--edu-blue, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

.mx-news-search-btn svg {
  width: 20px;
  height: 20px
}

.mx-block--news-categories {
  background: #fff;
  margin-bottom: clamp(20px, 3vw, 24px)
}

.mx-categories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vw, 20px);
  padding-bottom: clamp(12px, 2vw, 16px);
  border-bottom: 2px solid #e5e7eb
}

.mx-categories-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #0f172a
}

.mx-categories-count {
  font-size: .9rem;
  color: #6b7280;
  font-weight: 700
}

.mx-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px
}

.mx-category-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .3s ease;
  text-align: center
}

.mx-category-tag:hover {
  background: var(--edu-green, #15803d);
  border-color: var(--edu-green, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 94, 32, .2)
}

.mx-category-tag.active {
  background: var(--edu-green, #15803d);
  border-color: var(--edu-green, #15803d);
  color: #fff
}

.mx-category-tag.active .mx-category-tag__name,
.mx-category-tag:hover .mx-category-tag__name {
  color: #fff
}

.mx-category-tag__name {
  font-weight: 800;
  font-size: .95rem;
  color: #0f172a;
  transition: color .3s ease
}

.mx-block--news-featured {
  background: linear-gradient(135deg, rgba(239, 108, 0, .05) 0, rgba(27, 94, 32, .05) 100%);
  border: 2px solid rgba(239, 108, 0, .2);
  margin-bottom: clamp(20px, 3vw, 24px)
}

.mx-block--news-featured .mx-block__section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--edu-orange, #ef6c00)
}

.mx-block--news-featured .mx-block__section-title svg {
  width: 24px;
  height: 24px;
  fill: var(--edu-orange, #ef6c00)
}

.mx-news-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px
}

.mx-news-featured-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  transition: all .3s ease
}

.mx-news-featured-item:hover {
  border-color: var(--edu-orange, #ef6c00);
  box-shadow: 0 8px 24px rgba(239, 108, 0, .15);
  transform: translateY(-4px)
}

.mx-news-featured-link {
  display: block;
  text-decoration: none;
  color: inherit
}

.mx-news-featured-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f3f4f6
}

.mx-news-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease
}

.mx-news-featured-item:hover .mx-news-featured-img {
  transform: scale(1.05)
}

.mx-news-featured-content {
  padding: 16px
}

.mx-news-featured-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a
}

.mx-news-featured-excerpt {
  margin: 0;
  font-size: .9rem;
  color: #6b7280;
  line-height: 1.6
}

.mx-block--news-list {
  background: #fff
}

.mx-news-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vw, 20px);
  padding-bottom: clamp(12px, 2vw, 16px);
  border-bottom: 2px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 12px
}

.mx-news-list-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #0f172a
}

.mx-news-list-info {
  font-size: .9rem;
  color: #6b7280;
  font-weight: 700
}

.mx-news--archive {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.mx-news__item {
  padding: 18px 20px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden
}

.mx-news__item::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--edu-green, #15803d);
  transform: scaleY(0);
  transition: transform .3s ease
}

.mx-news__item:hover {
  border-color: var(--edu-green, #15803d);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transform: translateX(-4px)
}

.mx-news__item:hover::before {
  transform: scaleY(1)
}

.mx-news__item--featured {
  background: linear-gradient(135deg, rgba(27, 94, 32, .03) 0, rgba(25, 118, 210, .03) 100%);
  border-color: var(--edu-orange, #ef6c00)
}

.mx-news__item--featured::before {
  background: var(--edu-orange, #ef6c00)
}

.mx-news__content {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.mx-news__title {
  font-weight: 800;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.5;
  color: #0f172a;
  text-decoration: none;
  transition: color .2s ease
}

.mx-news__title:hover {
  color: var(--edu-green, #15803d)
}

.mx-news__badge {
  display: inline-block;
  margin-right: 6px;
  font-size: .9em;
  vertical-align: middle
}

.mx-news__excerpt {
  color: #6b7280;
  font-size: .95rem;
  line-height: 1.7;
  margin: 0
}

.mx-empty {
  text-align: center;
  padding: clamp(40px, 6vw, 60px) 20px;
  color: #6b7280
}

.mx-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: #cbd5e1
}

.mx-empty-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px
}

.mx-empty-desc {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 24px
}

.mx-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--edu-green, #15803d);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  transition: all .3s ease
}

.mx-empty-link:hover {
  background: var(--edu-blue, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

.mx-pagination {
  margin-top: clamp(24px, 4vw, 32px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 2px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.mx-pagination a,
.mx-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  min-width: 44px;
  height: 44px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  transition: all .2s ease;
  font-size: .95rem
}

.mx-pagination a:hover {
  background: var(--edu-green, #15803d);
  color: #fff;
  border-color: var(--edu-green, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

.mx-pagination .current {
  background: var(--edu-green, #15803d);
  color: #fff;
  border-color: var(--edu-green, #15803d)
}

.mx-pagination a svg {
  width: 16px;
  height: 16px
}

@media (max-width:768px) {
  .mx-news-search-wrapper {
    flex-direction: column
  }

  .mx-news-search-btn {
    width: 100%
  }

  .mx-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px
  }

  .mx-news-featured-grid {
    grid-template-columns: 1fr
  }

  .mx-news-list-header {
    flex-direction: column;
    align-items: flex-start
  }

  .mx-news__item {
    padding: 16px
  }
}

@media (max-width:480px) {
  .mx-categories-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .mx-news__item {
    padding: 14px
  }

  .mx-news__excerpt {
    font-size: .9rem
  }

  .mx-pagination a,
  .mx-pagination span {
    padding: 8px 12px;
    min-width: 40px;
    height: 40px;
    font-size: .85rem
  }
}

.skin-section-generic {
  background-color: #f8fafc
}

.mx-hero--section {
  background: linear-gradient(135deg, var(--accent, #7c3aed) 0, color-mix(in oklab, var(--accent, #7c3aed) 80%, #000) 100%);
  color: #fff;
  padding-block: clamp(50px, 8vw, 80px);
  margin-bottom: 0;
  border-bottom: none;
  position: relative;
  overflow: hidden
}

.mx-hero--section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, .1) 0, transparent 70%);
  transform: rotate(-15deg);
  pointer-events: none
}

.mx-hero--section .mx-hero__title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  text-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  margin-bottom: 15px;
  line-height: 1.2
}

.mx-hero--section .mx-hero__desc {
  color: rgba(255, 255, 255, .95);
  max-width: 750px;
  margin-inline: 0 auto;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6
}

.mx-hero--section .mx-hero__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2
}

@media (max-width:992px) {
  .mx-hero--section .mx-hero__inner {
    flex-direction: column;
    text-align: center
  }
}

.mx-hero--section .mx-hero__art img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .4);
  border: 4px solid rgba(255, 255, 255, .1);
  transition: transform .3s ease
}

.mx-hero--section .mx-hero__art img:hover {
  transform: scale(1.02)
}

.skin-orientation {
  --orient-accent: #1e40af;
  --orient-bg: #eff6ff
}

.mx-block--intro-orientation {
  background: linear-gradient(135deg, #fff 0, #f0f9ff 100%);
  border-right: 6px solid var(--orient-accent);
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, .15)
}

.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin-top: 40px
}

.tp-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05)
}

.tp-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--orient-accent);
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: right
}

.tp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(30, 64, 175, .2);
  border-color: var(--orient-accent)
}

.tp-card:hover::after {
  transform: scaleX(1)
}

.tp-card__link {
  display: flex;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  gap: 20px;
  height: 100%;
  align-items: center
}

.tp-card__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  background: var(--orient-bg);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: all .3s ease;
  color: var(--orient-accent)
}

.tp-card:hover .tp-card__icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--orient-accent);
  color: #fff
}

.tp-card__body {
  flex: 1
}

.tp-card__title {
  display: block;
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.4
}

.tp-card__desc {
  font-size: .95rem;
  color: #64748b;
  line-height: 1.6
}

.tp-card__cta {
  font-size: 1.5rem;
  color: #cbd5e1;
  transition: all .3s ease
}

.tp-card:hover .tp-card__cta {
  color: var(--orient-accent);
  transform: translateX(-5px)
}

.tp-orient-alert {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 20px;
  color: #0369a1;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center
}

.mx-res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
  margin-top: 20px
}

.mx-res-tile {
  background: #fff;
  border: 2px solid #f1f5f9;
  padding: 18px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #1e293b;
  font-weight: 700;
  transition: all .2s ease
}

.mx-res-tile:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05)
}

.mx-res-txt {
  flex: 1
}

.mx-res-cta {
  color: #94a3b8;
  font-size: 1.2rem
}

.mx-res-tile:hover .mx-res-cta {
  color: #3b82f6
}

.tp-news--list {
  list-style: none;
  padding: 0
}

.tp-news--list .tp-news__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 12px;
  border-bottom: 1px solid #f1f5f9
}

.tp-news--list .tp-news__item:last-child {
  border-bottom: none
}

.tp-news__link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 700
}

.tp-news__dot {
  width: 8px;
  height: 8px;
  background: var(--edu-green, #15803d);
  border-radius: 50%
}

.tp-news__meta {
  font-size: .85rem;
  color: #94a3b8
}

.faq-group {
  margin-top: 20px
}

details.faq {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all .3s ease
}

details.faq[open] {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05)
}

summary.faq__q {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 800;
  color: #1e293b;
  outline: 0
}

.faq__a {
  padding: 0 20px 15px;
  color: #475569;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
  padding-top: 15px
}

.page-wrap {
  padding-block: 40px
}

.page-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 30px
}

@media (max-width:992px) {
  .page-grid {
    grid-template-columns: 1fr
  }
}

.widget:not(.mx-footer-widget) {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  margin-bottom: 24px
}

.widget__title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px
}

.box {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid #e5e7eb;
  padding: clamp(24px, 4vw, 45px);
  box-shadow: 0 10px 40px -10px rgba(15, 23, 42, .05);
  margin-bottom: 35px;
  position: relative;
  overflow: hidden
}

.page-wrap--single-col {
  padding-block: 50px;
  background: #f8fafc
}

.page-wrap--single-col .container {
  max-width: 960px;
  margin-inline: auto
}

.box--no-shadow {
  box-shadow: none;
  border: none;
  background: 0 0;
  padding: 0
}

.widget--borderless {
  background: 0 0;
  border: none;
  padding: 0;
  margin-bottom: 30px
}

.widget__title--large {
  font-size: 2.2rem;
  text-align: center;
  border-bottom: none;
  margin-bottom: 10px
}

.widget__header {
  margin-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px
}

.widget--sidebar-style {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05)
}

.mx-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 15px
}

.mx-post-header {
  padding-block: 60px;
  background: linear-gradient(135deg, #f8fafc 0, #e2e8f0 100%);
  text-align: center;
  border-bottom: 1px solid #e2e8f0
}

.mx-post-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 25px;
  line-height: 1.2
}

.mx-post-featured-image {
  max-width: 800px;
  margin: 30px auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .1)
}

.mx-post-content-wrap {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .03)
}

.mx-post-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #334155
}

.mx-post-footer-widgets {
  padding-block: 60px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0
}

.mx-footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px
}

@media (max-width:768px) {
  .mx-post-content-wrap {
    padding: 25px 20px;
    border-radius: 0;
    margin: 0;
    box-shadow: none
  }

  .mx-post-title {
    font-size: 1.8rem
  }

  .mx-post-header {
    padding-block: 40px
  }
}

.mx-hero--section {
  padding-block: clamp(40px, 6vw, 80px);
  background: linear-gradient(135deg, #f1f5f9 0, #e2e8f0 100%);
  border-bottom: 1px solid #cbd5e1;
  text-align: center
}

.mx-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px
}

.mx-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.1
}

.mx-hero__desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #475569;
  max-width: 800px;
  line-height: 1.6
}

@media (max-width:768px) {
  .mx-hero--section {
    padding-block: 40px
  }
}

.mx-button-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: center;
  gap: clamp(10px, 2vw, 16px);
  margin-top: clamp(16px, 2.5vw, 24px)
}

@media (max-width:992px) {
  .mx-button-grid {
    grid-template-columns: repeat(2, minmax(0, max-content))
  }
}

@media (max-width:480px) {
  .mx-button-grid {
    grid-template-columns: 1fr
  }
}

.mx-button-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .3s ease;
  text-align: center;
  white-space: nowrap
}

.mx-button-tag:hover {
  background: var(--edu-green, #15803d);
  border-color: var(--edu-green, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 94, 32, .2)
}

.mx-button-tag__name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
  transition: color .3s ease;
  white-space: nowrap
}

.mx-button-tag__icon {
  font-size: 1.2rem;
  transition: color .3s ease
}

.mx-button-tag:hover .mx-button-tag__icon,
.mx-button-tag:hover .mx-button-tag__name {
  color: #fff
}

.skin-student-portal .mx-button-tag:hover {
  background: var(--edu-orange, #f97316);
  border-color: var(--edu-orange, #f97316);
  box-shadow: 0 4px 12px rgba(249, 115, 22, .2)
}

.skin-teacher-portal .mx-button-tag:hover {
  background: var(--edu-blue, #1d4ed8);
  border-color: var(--edu-blue, #1d4ed8);
  box-shadow: 0 4px 12px rgba(29, 78, 216, .2)
}

.skin-higher-portal .mx-button-tag:hover {
  background: var(--edu-purple, #9333ea);
  border-color: var(--edu-purple, #9333ea);
  box-shadow: 0 4px 12px rgba(147, 51, 234, .2)
}

/* pages-extra.css */
.holiday-countdown {
  background: linear-gradient(135deg, #1e3a8a 0, #3b82f6 100%);
  color: #fff;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px rgba(30, 58, 138, .2);
  position: relative;
  overflow: hidden
}

.holiday-countdown::before {
  content: '📅';
  position: absolute;
  font-size: 8rem;
  opacity: .1;
  right: -20px;
  bottom: -20px
}

.countdown-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  opacity: .9
}

.next-holiday-name {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  display: block
}

.timer-item {
  background: rgba(255, 255, 255, .15);
  padding: 15px;
  border-radius: var(--radius);
  min-width: 80px;
  backdrop-filter: blur(5px)
}

.timer-value {
  font-size: 1.8rem;
  font-weight: 800;
  display: block
}

.timer-label {
  font-size: .8rem;
  text-transform: uppercase;
  opacity: .8
}

.holiday-table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: 15px;
  border: 1px solid #e5e7eb
}

.holiday-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right
}

.holiday-table th {
  background: #f8fafc;
  padding: 15px;
  color: #475569;
  font-weight: 800;
  border-bottom: 2px solid #e5e7eb
}

.holiday-table td {
  padding: 15px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b
}

.holiday-table tr:last-child td {
  border-bottom: none
}

.holiday-table tr:hover {
  background: #f8fafc
}

.holiday-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700
}

.tag-religious {
  background: #dcfce7;
  color: #166534
}

.tag-national {
  background: #fee2e2;
  color: #991b1b
}

.tag-period {
  background: #dbeafe;
  color: #1e40af
}

.faq-container {
  margin-top: 30px
}

.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all .3s ease
}

.faq-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05)
}

.faq-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  color: #1e293b
}

.faq-header::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform .3s ease
}

.faq-item.active .faq-header::after {
  content: '-';
  transform: rotate(180deg)
}

.faq-content {
  max-height: 0;
  padding: 0 20px;
  background: #f8fafc;
  overflow: hidden;
  transition: all .3s ease;
  color: #475569;
  line-height: 1.7
}

.faq-item.active .faq-content {
  max-height: 500px;
  padding: 20px;
  border-top: 1px solid #e5e7eb
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px
}

.contact-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all .3s ease;
  text-decoration: none !important;
  color: inherit
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .05);
  border-color: #3b82f6
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block
}

.contact-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
  display: block
}

.contact-desc {
  font-size: .9rem;
  color: #64748b
}

.countdown-timer,
.countdown-timer-premium {
  display: flex;
  justify-content: center;
  gap: 20px;
  direction: ltr;
  margin-top: 20px
}

.holiday-countdown .timer-item {
  background: #fff;
  padding: 15px 20px;
  border-radius: var(--radius);
  border: 2px solid #e5e7eb;
  min-width: 80px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .05)
}

.holiday-countdown .timer-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #f97316;
  line-height: 1
}

.holiday-countdown .timer-label {
  font-size: .9rem;
  font-weight: 700;
  color: #64748b
}

.holiday-countdown .holiday-countdown {
  text-align: center;
  padding: 20px
}

.holiday-countdown .countdown-title {
  display: block;
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 5px
}

.holiday-countdown .next-holiday-name {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 15px
}

.holiday-table-premium {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px
}

.holiday-table-premium th {
  text-align: right;
  padding: 15px;
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  border-bottom: 2px solid #e2e8f0
}

.holiday-table-premium td {
  padding: 15px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b
}

.holiday-past {
  opacity: .4
}

.h-tag {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 800
}

.h-tag--religious {
  background: #fee2e2;
  color: #ef4444
}

.h-tag--national {
  background: #dcfce7;
  color: #15803d
}

.h-tag--period {
  background: #dbeafe;
  color: #3b82f6
}

.mx-alert--info {
  background: #fffbeb;
  border-right: 4px solid #f97316;
  padding: 15px;
  margin-top: 20px;
  color: #92400e;
  border-radius: var(--radius-sm)
}

@media (max-width:600px) {
  .holiday-table-premium thead {
    display: none
  }

  .holiday-table-premium td {
    display: block;
    text-align: right;
    padding: 10px;
    border-bottom: none
  }

  .holiday-table-premium tr {
    display: block;
    padding: 15px;
    border-bottom: 2px solid #f1f5f9
  }
}

details summary::-webkit-details-marker {
  display: none
}

details[open] summary span:last-child {
  transform: rotate(45deg);
  color: #3b82f6
}

details summary span:last-child {
  transition: transform .3s ease
}

details[open] {
  border-color: #3b82f6;
  box-shadow: 0 10px 20px rgba(59, 130, 246, .05)
}

@media (max-width:768px) {
  .next-holiday-name {
    font-size: 1.8rem
  }

  .timer-item {
    min-width: 60px;
    padding: 10px
  }

  .timer-value {
    font-size: 1.4rem
  }
}

/* pages-portals.css */
.mx-block {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, .04);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .03);
  margin-bottom: clamp(20px, 3vw, 32px);
  position: relative;
  overflow: hidden
}

.mx-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, #3b82f6), #8b5cf6, #ec4899);
  opacity: .8
}

.mx-block__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px
}

.mx-block__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -.5px;
  background: linear-gradient(135deg, #0f172a, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}

.mx-block__desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #475569;
  line-height: 1.8
}

.mx-block__desc strong {
  color: #1e293b;
  font-weight: 700
}

.mx-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px
}

.mx-stat-card {
  background: linear-gradient(145deg, #fff, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .02);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease
}

.mx-stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .06);
  border-color: #cbd5e1
}

.mx-stat-card__number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--accent, #3b82f6);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent, #3b82f6), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}

.mx-stat-card__label {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px
}

.mx-block__section-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px
}

.mx-block__section-title::before {
  content: "";
  display: block;
  width: 12px;
  height: 24px;
  background: var(--accent, #3b82f6);
  border-radius: 6px
}

.mx-block__section-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.mx-block__section-content li {
  position: relative;
  padding-inline-start: 28px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569
}

.mx-block__section-content li::before {
  content: "✨";
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  font-size: 1.1rem
}

.mx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px
}

.mx-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  text-decoration: none;
  color: #1e293b;
  transition: all .3s cubic-bezier(.4, 0, .2, 1)
}

.mx-mini:hover {
  background: #fff;
  border-color: var(--accent, #3b82f6);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(59, 130, 246, .15)
}

.mx-mini__emoji {
  font-size: 2.2rem;
  flex-shrink: 0;
  transition: transform .3s ease
}

.mx-mini:hover .mx-mini__emoji {
  transform: scale(1.15) rotate(5deg)
}

.mx-mini__text {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3
}

.mx-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start
}

.mx-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: all .25s ease
}

.mx-quick-link:hover {
  background: var(--accent, #3b82f6);
  color: #fff;
  border-color: var(--accent, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(59, 130, 246, .2)
}

@media (max-width:640px) {
  .mx-grid {
    grid-template-columns: 1fr
  }

  .mx-quick-links {
    justify-content: center
  }
}

.mx-res-grid,
.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0
}

.mx-res-tile,
.tp-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 24px;
  text-decoration: none;
  color: #1e293b;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .02)
}

.mx-res-tile:hover,
.tp-card__link:hover {
  background: #f8fafc;
  border-color: var(--accent, #3b82f6);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, .12)
}

.mx-res-txt {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px
}

.mx-res-cta,
.tp-card__cta {
  font-size: 1.2rem;
  color: #94a3b8;
  transition: color .3s, transform .3s
}

.mx-res-tile:hover .mx-res-cta,
.tp-card__link:hover .tp-card__cta {
  color: var(--accent, #3b82f6);
  transform: translateX(-4px)
}

.tp-card__link {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px
}

.tp-card__icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  background: #f1f5f9;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: transform .3s ease
}

.tp-card__link:hover .tp-card__icon {
  transform: scale(1.1) rotate(5deg);
  background: #eff6ff
}

.tp-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.tp-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a
}

.tp-card__desc {
  font-size: .95rem;
  color: #64748b;
  line-height: 1.5
}

/* cycle-pages.css */
.mx-hero {
  background: linear-gradient(180deg, rgba(27, 94, 32, .08) 0, rgba(27, 94, 32, 0) 100%);
  padding-block: clamp(20px, 4vw, 28px) clamp(18px, 3vw, 24px);
  padding-inline: clamp(12px, 2vw, 20px);
  border-block-end: 3px solid var(--edu-blue)
}

.mx-hero__inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(16px, 3vw, 24px);
  align-items: center
}

.mx-hero__title {
  margin: 0 0 clamp(6px, 1vw, 8px);
  font-size: clamp(1.25rem, 4vw, 2.2rem);
  color: var(--text);
  font-weight: 800;
  line-height: 1.3
}

.mx-hero__desc {
  margin: 0 0 clamp(12px, 2vw, 16px);
  color: var(--muted);
  line-height: 1.9;
  font-size: clamp(.9rem, 1.5vw, 1rem)
}

.mx-hero__marketing {
  margin-bottom: clamp(16px, 2.5vw, 20px)
}

.mx-hero__tagline {
  margin: 0 0 clamp(10px, 1.5vw, 14px);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: var(--edu-green);
  line-height: 1.5;
  text-align: right
}

.mx-hero__marketing .mx-hero__desc {
  margin-bottom: 0;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto
}

.mx-hero__art {
  display: none
}

.mx-search {
  display: flex;
  gap: clamp(8px, 1.5vw, 10px);
  align-items: stretch;
  width: 100%;
  max-width: 100%
}

.mx-search__btn,
.mx-search__input {
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
  border-radius: clamp(10px, 1.5vw, 12px);
  box-sizing: border-box
}

.mx-search__input {
  flex: 1;
  border: 1px solid #e5e7eb;
  padding-inline: clamp(16px, 2.5vw, 20px);
  background: #fff;
  height: 56px;
  min-height: 56px;
  font-size: 1rem;
  min-width: 0;
  width: 100%
}

.mx-search__input::placeholder {
  font-size: .95rem
}

.mx-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--edu-orange);
  color: #fff;
  min-width: 120px;
  height: 56px;
  min-height: 56px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease;
  white-space: nowrap
}

.mx-search__btn:hover {
  background: #d84315
}

.mx-search__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0
}

.mx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.5vw, 12px);
  margin-top: clamp(12px, 2vw, 16px);
  justify-content: center;
  width: 100%
}

.mx-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 16px) clamp(14px, 2.5vw, 20px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: clamp(10px, 1.5vw, 12px);
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
  min-width: clamp(80px, 12vw, 100px);
  flex: 1 1 auto;
  max-width: 150px
}

.mx-stat:hover {
  border-color: var(--edu-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, .1)
}

.mx-stat__number {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--edu-green);
  line-height: 1.2;
  margin-bottom: clamp(2px, .5vw, 4px)
}

.mx-stat__label {
  display: block;
  font-size: clamp(.8rem, 1.5vw, .9rem);
  color: var(--muted);
  font-weight: 700
}

@media (max-width:1200px) {
  .mx-search__input {
    height: 58px;
    min-height: 58px;
    font-size: 1.05rem;
    padding-inline: 18px
  }

  .mx-search__btn {
    height: 58px;
    min-height: 58px;
    font-size: 1.05rem;
    min-width: 110px
  }

  .mx-search__input::placeholder {
    font-size: 1rem
  }
}

@media (max-width:992px) {
  .mx-hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(12px, 2vw, 20px)
  }

  .mx-hero__art {
    display: none
  }

  .mx-search {
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 10px);
    width: 100%;
    max-width: 100%
  }

  .mx-search__input {
    height: 60px;
    min-height: 60px;
    font-size: 1.1rem;
    padding-inline: 20px;
    width: 100%
  }

  .mx-search__btn {
    width: 100%;
    min-width: 100%;
    height: 60px;
    min-height: 60px;
    font-size: 1.1rem
  }

  .mx-search__input::placeholder {
    font-size: 1.05rem
  }

  .mx-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 1.5vw, 10px)
  }

  .mx-stat {
    min-width: auto;
    max-width: 100%
  }
}

@media (max-width:768px) {
  .mx-hero {
    padding-block: clamp(16px, 3vw, 20px) clamp(14px, 2.5vw, 18px)
  }

  .mx-hero__title {
    font-size: clamp(1.2rem, 5vw, 1.8rem)
  }

  .mx-hero__desc {
    font-size: clamp(.85rem, 2vw, .95rem)
  }

  .mx-search {
    width: 100%;
    max-width: 100%
  }

  .mx-search__input {
    height: 62px;
    min-height: 62px;
    font-size: 1.12rem;
    padding-inline: 22px;
    width: 100%;
    line-height: 1.5
  }

  .mx-search__btn {
    height: 62px;
    min-height: 62px;
    font-size: 1.12rem;
    width: 100%
  }

  .mx-search__input::placeholder {
    font-size: 1.05rem
  }

  .mx-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 1.5vw, 10px)
  }

  .mx-stat {
    padding: clamp(12px, 2vw, 14px) clamp(10px, 1.8vw, 16px)
  }

  .mx-stat__number {
    font-size: clamp(1.3rem, 3.5vw, 1.6rem)
  }

  .mx-stat__label {
    font-size: clamp(.75rem, 1.8vw, .85rem)
  }
}

@media (max-width:600px) {
  .mx-search__input {
    height: 64px;
    min-height: 64px;
    font-size: 1.15rem;
    padding-inline: 24px
  }

  .mx-search__btn {
    height: 64px;
    min-height: 64px;
    font-size: 1.15rem
  }

  .mx-search__input::placeholder {
    font-size: 1.08rem
  }
}

@media (max-width:480px) {
  .mx-hero {
    padding-inline: clamp(10px, 2vw, 14px)
  }

  .mx-hero__title {
    font-size: clamp(1.1rem, 5.5vw, 1.5rem);
    line-height: 1.4
  }

  .mx-hero__desc {
    font-size: clamp(.8rem, 2.2vw, .9rem);
    line-height: 1.7
  }

  .mx-search {
    width: 100%;
    max-width: 100%
  }

  .mx-search__input {
    height: 66px;
    min-height: 66px;
    font-size: 1.18rem;
    padding-inline: 26px;
    width: 100%;
    line-height: 1.5
  }

  .mx-search__btn {
    height: 66px;
    min-height: 66px;
    font-size: 1.18rem;
    width: 100%
  }

  .mx-search__input::placeholder {
    font-size: 1.1rem
  }

  .mx-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(6px, 1.5vw, 8px)
  }

  .mx-stat {
    padding: clamp(10px, 2vw, 12px) clamp(8px, 1.5vw, 12px);
    min-width: auto
  }

  .mx-stat__number {
    font-size: clamp(1.2rem, 4vw, 1.5rem)
  }

  .mx-stat__label {
    font-size: clamp(.7rem, 2vw, .8rem)
  }
}

@media (max-width:400px) {
  .mx-search__input {
    height: 68px;
    min-height: 68px;
    font-size: 1.2rem;
    padding-inline: 28px
  }

  .mx-search__btn {
    height: 68px;
    min-height: 68px;
    font-size: 1.2rem
  }

  .mx-search__input::placeholder {
    font-size: 1.12rem
  }
}

@media (max-width:360px) {
  .mx-search__input {
    height: 70px;
    min-height: 70px;
    font-size: 1.22rem;
    padding-inline: 30px
  }

  .mx-search__btn {
    height: 70px;
    min-height: 70px;
    font-size: 1.22rem
  }

  .mx-search__input::placeholder {
    font-size: 1.15rem
  }

  .mx-stats {
    grid-template-columns: 1fr
  }

  .mx-stat {
    max-width: 100%
  }
}

.mx-sections .mx-block {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-block: 14px 18px
}

.mx-block__title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 800;
  color: var(--text);
  position: relative
}

.mx-block__title::after {
  content: "";
  display: block;
  height: 4px;
  width: 72px;
  border-radius: 999px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--edu-green), var(--edu-blue) 70%, var(--edu-orange))
}

.mx-block__desc {
  margin: 0;
  color: #475569;
  line-height: 1.9
}

.mx-block__seo-desc {
  margin: 12px 0 20px;
  color: #475569;
  line-height: 1.8;
  font-size: clamp(.9rem, 1.4vw, 1rem);
  text-align: right;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto
}

.mx-sections .mx-block:first-of-type .mx-block__desc {
  color: #27664b
}

.mx-sections .mx-block:nth-of-type(2) .mx-block__desc {
  color: #9c4a05
}

.mx-sections .mx-block:nth-of-type(3) .mx-block__desc {
  color: #0c4a8a
}

.mx-sections .mx-block:nth-of-type(4) .mx-block__desc {
  color: #066a63
}

.mx-sections .mx-block:nth-of-type(5) .mx-block__desc {
  color: #4a2aa6
}

.mx-sections .mx-block:nth-of-type(6) .mx-block__desc {
  color: #374151
}

.mx-levels {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto
}

.mx-levels>li {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 280px;
  max-width: 100%;
  width: 100%
}

.mx-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 16px);
  align-items: stretch;
  width: 100%;
  max-width: 100%
}

.mx-grid .mx-mini {
  height: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 24px);
  word-wrap: break-word;
  overflow-wrap: break-word
}

@media (min-width:993px) {
  .mx-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:992px) and (min-width:769px) {
  .mx-levels {
    justify-content: center
  }

  .mx-levels>li {
    flex: 0 1 calc(50% - 16px);
    min-width: 250px
  }

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

  .mx-block--levels .mx-levels .mx-card {
    padding: 24px 20px
  }

  .mx-card__emoji {
    font-size: 3rem
  }
}

@media (max-width:768px) and (min-width:481px) {
  .mx-levels {
    justify-content: center
  }

  .mx-levels>li {
    flex: 0 1 calc(50% - 12px);
    min-width: 200px
  }

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

  .mx-block--levels .mx-levels .mx-card {
    padding: 20px 18px;
    gap: 14px
  }

  .mx-card__emoji {
    font-size: 2.5rem
  }

  .mx-block--levels .mx-levels .mx-card__title {
    font-size: 1.1rem
  }

  .mx-block--levels .mx-levels .mx-card__desc {
    font-size: .9rem
  }
}

@media (max-width:480px) {
  .mx-levels {
    justify-content: center
  }

  .mx-levels>li {
    flex: 0 1 100%;
    min-width: auto;
    max-width: 100%
  }

  .mx-grid {
    grid-template-columns: 1fr
  }

  .mx-grid .mx-mini {
    width: 100%
  }
}

.mx-block--levels {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-color: rgba(46, 125, 50, .22);
  background: radial-gradient(1200px 300px at 100% -20%, rgba(25, 118, 210, .06), transparent 60%), radial-gradient(1000px 280px at -10% 110%, rgba(46, 125, 50, .08), transparent 60%), #fff;
  box-shadow: 0 12px 30px rgba(46, 125, 50, .08)
}

.mx-block--levels .mx-block__title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem)
}

.mx-block--levels .mx-block__title::after {
  background: linear-gradient(90deg, var(--edu-green), #2e7d32 60%, var(--edu-blue))
}

.mx-block--levels .mx-levels .mx-card,
.widget.mx-section-separated .mx-levels .mx-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: #fff;
  position: relative;
  overflow: visible;
  text-decoration: none;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  border: 2px solid #e2e8f0;
  text-align: right;
  min-height: auto;
  height: auto;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  font-weight: 700
}

.widget.mx-section-separated .mx-levels .mx-card,
.widget.mx-section-separated ul.mx-levels .mx-card,
section.widget.mx-section-separated .mx-levels .mx-card {
  border: 3px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  background: #f8fafc;
  cursor: pointer
}

.widget.mx-section-separated .mx-levels .mx-card:hover,
.widget.mx-section-separated ul.mx-levels .mx-card:hover,
section.widget.mx-section-separated .mx-levels .mx-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15)
}

.mx-block--levels .mx-levels .mx-card * {
  text-decoration: none
}

.widget.mx-section-separated .mx-levels .mx-card * {
  text-decoration: none
}

.mx-card__emoji,
.widget.mx-section-separated .mx-card__emoji {
  font-size: 3.5rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .3s ease;
  filter: grayscale(0);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, .6);
  border-radius: var(--radius);
  padding: 8px
}

.mx-card__body,
.widget.mx-section-separated .mx-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  min-width: 0;
  overflow: visible;
  width: 100%
}

.mx-block--levels .mx-levels .mx-card__title,
.widget.mx-section-separated .mx-levels .mx-card__title {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  margin: 0;
  transition: color .3s ease;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: block;
  color: inherit;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset
}

.mx-block--levels .mx-levels .mx-card__desc,
.widget.mx-section-separated .mx-levels .mx-card__desc {
  font-size: clamp(.9rem, 1.4vw, 1rem);
  line-height: 1.6;
  transition: color .3s ease;
  opacity: .85;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: block;
  color: inherit;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset
}

.mx-card--primary {
  border: 3px solid #15803d;
  box-shadow: 0 4px 16px rgba(22, 163, 74, .2);
  background: #bbf7d0
}

.mx-card--primary .mx-card__title {
  color: #14532d;
  font-weight: 700
}

.mx-card--primary .mx-card__desc {
  color: #166534;
  font-weight: 400
}

.mx-card--primary:hover {
  border: 3px solid #15803d;
  background: #15803d;
  box-shadow: 0 8px 32px rgba(22, 163, 74, .35);
  transform: translateY(-4px) scale(1.02)
}

.mx-card--primary:hover .mx-card__desc,
.mx-card--primary:hover .mx-card__title {
  color: #fff;
  opacity: 1;
  font-weight: 700
}

.mx-card--primary:hover .mx-card__emoji {
  transform: scale(1.15) rotate(5deg)
}

.mx-card--college {
  border: 3px solid #1976d2;
  box-shadow: 0 4px 16px rgba(25, 118, 210, .2);
  background: #bfdbfe
}

.mx-card--college .mx-card__title {
  color: #0c3c71;
  font-weight: 700
}

.mx-card--college .mx-card__desc {
  color: #1e40af;
  font-weight: 400
}

.mx-card--college:hover {
  border: 3px solid #1565c0;
  background: #1976d2;
  box-shadow: 0 8px 32px rgba(25, 118, 210, .35);
  transform: translateY(-4px) scale(1.02)
}

.mx-card--college:hover .mx-card__desc,
.mx-card--college:hover .mx-card__title {
  color: #fff;
  opacity: 1;
  font-weight: 700
}

.mx-card--college:hover .mx-card__emoji {
  transform: scale(1.15) rotate(5deg)
}

.mx-card--lycee {
  border: 3px solid #ef6c00;
  box-shadow: 0 4px 16px rgba(239, 108, 0, .2);
  background: #fed7aa
}

.mx-card--lycee .mx-card__title {
  color: #5b2b00;
  font-weight: 700
}

.mx-card--lycee .mx-card__desc {
  color: #7a3a00;
  font-weight: 400
}

.mx-card--lycee:hover {
  border: 3px solid #e65100;
  background: #ef6c00;
  box-shadow: 0 8px 32px rgba(239, 108, 0, .35);
  transform: translateY(-4px) scale(1.02)
}

.mx-card--lycee:hover .mx-card__desc,
.mx-card--lycee:hover .mx-card__title {
  color: #fff;
  opacity: 1;
  font-weight: 700
}

.mx-card--lycee:hover .mx-card__emoji {
  transform: scale(1.15) rotate(5deg)
}

.widget.mx-section-separated .mx-levels .mx-card--primary,
.widget.mx-section-separated ul.mx-levels .mx-card--primary,
section.widget.mx-section-separated .mx-levels .mx-card--primary {
  border: 3px solid #15803d;
  border-width: 3px;
  background: #bbf7d0;
  box-shadow: 0 4px 16px rgba(22, 163, 74, .2)
}

.widget.mx-section-separated .mx-levels .mx-card--primary:hover,
.widget.mx-section-separated ul.mx-levels .mx-card--primary:hover,
section.widget.mx-section-separated .mx-levels .mx-card--primary:hover {
  border: 3px solid #15803d;
  background: #15803d;
  box-shadow: 0 8px 32px rgba(22, 163, 74, .35)
}

.widget.mx-section-separated .mx-levels .mx-card--college,
.widget.mx-section-separated ul.mx-levels .mx-card--college,
section.widget.mx-section-separated .mx-levels .mx-card--college {
  border: 3px solid #1976d2;
  border-width: 3px;
  background: #bfdbfe;
  box-shadow: 0 4px 16px rgba(25, 118, 210, .2)
}

.widget.mx-section-separated .mx-levels .mx-card--college:hover,
.widget.mx-section-separated ul.mx-levels .mx-card--college:hover,
section.widget.mx-section-separated .mx-levels .mx-card--college:hover {
  border: 3px solid #1565c0;
  background: #1976d2;
  box-shadow: 0 8px 32px rgba(25, 118, 210, .35)
}

.widget.mx-section-separated .mx-levels .mx-card--lycee,
.widget.mx-section-separated ul.mx-levels .mx-card--lycee,
section.widget.mx-section-separated .mx-levels .mx-card--lycee {
  border: 3px solid #ef6c00;
  border-width: 3px;
  background: #fed7aa;
  box-shadow: 0 4px 16px rgba(239, 108, 0, .2)
}

.widget.mx-section-separated .mx-levels .mx-card--lycee:hover,
.widget.mx-section-separated ul.mx-levels .mx-card--lycee:hover,
section.widget.mx-section-separated .mx-levels .mx-card--lycee:hover {
  border: 3px solid #e65100;
  background: #ef6c00;
  box-shadow: 0 8px 32px rgba(239, 108, 0, .35)
}

.mx-grid .mx-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 12px 16px;
  min-height: 56px;
  height: 100%;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: clamp(.9rem, 1.2vw, .95rem);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4
}

.mx-mini__emoji {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0
}

.mx-mini__text {
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-width: 0
}

.mx-sections .mx-block:nth-of-type(2) .mx-mini {
  background: var(--edu-orange);
  color: #fff;
  border-color: var(--edu-orange)
}

.mx-sections .mx-block:nth-of-type(2) .mx-mini:hover {
  background: rgba(239, 108, 0, .1);
  color: #5b2b00;
  border-color: rgba(239, 108, 0, .25);
  transform: translateY(-2px)
}

.mx-sections .mx-block:nth-of-type(3) .mx-mini {
  background: var(--edu-blue);
  color: #fff;
  border-color: var(--edu-blue)
}

.mx-sections .mx-block:nth-of-type(3) .mx-mini:hover {
  background: rgba(25, 118, 210, .1);
  color: #0c3c71;
  border-color: rgba(25, 118, 210, .25);
  transform: translateY(-2px)
}

.mx-sections .mx-block:nth-of-type(4) .mx-mini {
  background: var(--edu-teal);
  color: #fff;
  border-color: var(--edu-teal)
}

.mx-sections .mx-block:nth-of-type(4) .mx-mini:hover {
  background: rgba(0, 150, 136, .1);
  color: #014b48;
  border-color: rgba(0, 150, 136, .25);
  transform: translateY(-2px)
}

.mx-sections .mx-block:nth-of-type(5) .mx-mini {
  background: var(--edu-purple);
  color: #fff;
  border-color: var(--edu-purple)
}

.mx-sections .mx-block:nth-of-type(5) .mx-mini:hover {
  background: rgba(103, 58, 183, .1);
  color: #311b92;
  border-color: rgba(103, 58, 183, .25);
  transform: translateY(-2px)
}

.mx-sections .mx-block:nth-of-type(6) .mx-mini {
  background: var(--edu-grey);
  color: #fff;
  border-color: var(--edu-grey)
}

.mx-sections .mx-block:nth-of-type(6) .mx-mini:hover {
  background: rgba(107, 114, 128, .08);
  color: #1f2937;
  border-color: rgba(107, 114, 128, .25);
  transform: translateY(-2px)
}

.mx-news {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.mx-news__item {
  border: 1px solid #e8edf3;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.mx-news__title {
  font-weight: 800;
  line-height: 1.6;
  text-decoration: none;
  color: inherit
}

.mx-news__title:hover {
  color: var(--edu-orange)
}

.mx-news__excerpt {
  color: #6b7280;
  font-size: .9rem;
  line-height: 1.6;
  margin: 4px 0 0
}

.mx-news__date {
  color: #9aa3af;
  font-size: .85rem;
  margin-top: auto
}

.mx-news--archive .mx-news__item {
  padding: 16px 18px;
  min-height: auto
}

.mx-news--archive .mx-news__title {
  font-size: 1.05rem
}

.mx-pagination {
  grid-column: 1/-1;
  margin-top: 24px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.mx-pagination a,
.mx-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  min-width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--text);
  transition: all .2s ease
}

.mx-pagination a:hover {
  background: var(--edu-green);
  color: #fff;
  border-color: var(--edu-green)
}

.mx-pagination .current {
  background: var(--edu-green);
  color: #fff;
  border-color: var(--edu-green)
}

.mx-more-wrap {
  margin-top: 10px;
  text-align: center
}

.mx-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  background: #f3f4f6;
  color: var(--text);
  border: 1px solid #e5e7eb
}

.mx-more:hover {
  border-color: var(--edu-blue);
  background: var(--edu-blue);
  color: #fff
}

@media (max-width:1100px) {
  .mx-news {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:560px) {
  .mx-news {
    grid-template-columns: 1fr
  }
}

.mx-catalog {
  margin-top: 0
}

.search-result-content,
.single-content.small-text {
  font-size: .9rem
}

.index-grid {
  margin-top: 12px
}

.page-head {
  margin: 16px 0 12px
}

.small-text-muted {
  font-size: .9em;
  color: #6b7280
}

.post-thumbnail-wrapper {
  margin-bottom: 24px
}

.text-center {
  text-align: center
}

.flex-center {
  justify-content: center
}

.mx-autocomplete-item-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: #1f2937
}

.mx-autocomplete-item-type {
  font-size: .85rem;
  color: #6b7280
}

.post-thumbnail-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius)
}

.mx-block__media--icon {
  display: none !important
}

.mx-hero-icon {
  display: none !important
}

.mx-block__icon {
  display: none !important
}

.mx-block__body,
.mx-block__body.mx-block__body {
  text-align: center;
  max-width: 900px;
  margin: 0 auto
}

.mx-block__title {
  text-align: center;
  justify-content: center
}

.mx-block__text {
  text-align: center
}

@media (max-width:768px) {
  .mx-block__media--icon {
    display: none !important
  }

  .mx-hero-icon {
    display: none !important
  }

  .mx-block__icon {
    display: none !important
  }
}

@media (max-width:480px) {
  .mx-block__media--icon {
    display: none !important
  }

  .mx-hero-icon {
    display: none !important
  }

  .mx-block__icon {
    display: none !important
  }
}

.mx-search,
.mx-search-wide,
.mx-search-wide__wrapper,
.mx-search__wrapper {
  position: relative
}

.mx-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 4px
}

.mx-autocomplete-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #1f2937;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color .2s
}

.mx-autocomplete-item:focus,
.mx-autocomplete-item:hover {
  background-color: #f9fafb;
  outline: 2px solid #3b82f6;
  outline-offset: -2px
}

.mx-autocomplete-item:last-child {
  border-bottom: none
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px
}

.mx-back-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  background-color: #f3f4f6
}

.mx-single-file:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px
}

.mx-single-related__item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px
}

.mx-single-nav__item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px
}

.mx-section-separated .mx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 16px);
  margin-top: 12px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box
}

@media (max-width:992px) and (min-width:769px) {
  .mx-section-separated .mx-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:768px) and (min-width:481px) {
  .mx-section-separated .mx-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:480px) {
  .mx-section-separated .mx-grid {
    grid-template-columns: 1fr
  }
}

.mx-section-separated .mx-grid .mx-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 24px);
  min-height: 72px;
  height: auto;
  border-radius: 12px;
  font-weight: 700;
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: visible
}

.mx-section-separated .mx-grid .mx-mini .mx-mini__text {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: visible;
  text-overflow: clip;
  display: block;
  text-align: center;
  max-width: 100%;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset
}

.mx-section-separated .mx-grid .mx-mini .mx-mini__emoji {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0
}

.mx-section-separated .mx-grid .mx-mini[href*="/devoirs/"] {
  background: var(--edu-blue, #1976d2);
  color: #fff;
  border-color: var(--edu-blue, #1976d2)
}

.mx-section-separated .mx-grid .mx-mini[href*="/devoirs/"]:hover {
  background: rgba(25, 118, 210, .1);
  color: #0c3c71;
  border-color: rgba(25, 118, 210, .25);
  transform: translateY(-2px)
}

.mx-section-separated .mx-grid .mx-mini[href*="/lessons/"] {
  background: var(--edu-green, #2e7d32);
  color: #fff;
  border-color: var(--edu-green, #2e7d32)
}

.mx-section-separated .mx-grid .mx-mini[href*="/lessons/"]:hover {
  background: rgba(46, 125, 50, .1);
  color: #14532d;
  border-color: rgba(46, 125, 50, .25);
  transform: translateY(-2px)
}

.mx-section-separated .mx-grid .mx-mini[href*="/exams/"] {
  background: var(--edu-orange, #ef6c00);
  color: #fff;
  border-color: var(--edu-orange, #ef6c00)
}

.mx-section-separated .mx-grid .mx-mini[href*="/exams/"]:hover {
  background: rgba(239, 108, 0, .1);
  color: #5b2b00;
  border-color: rgba(239, 108, 0, .25);
  transform: translateY(-2px)
}

/* ============================================================
   v3.5.1 — WCAG 2.1 AA: تباين الألوان (Contrast)
   ============================================================ */
:root {
  --clr-green: #047857;
  /* كان #059669 — 3.77:1 */
  --clr-orange: #b45309;
  /* كان #d97706 — 3.19:1 */
  --clr-teal: #0e7490;
  /* كان #0891b2 — 3.68:1 */
  --edu-orange: #c2410c;
  /* كان #ef6c00 — نص أبيض عليه 3.08:1 */
  --edu-orange-dark: #a8340a;
  /* كان #e65100 — نص أبيض عليه 3.72:1 */
  --edu-teal: #0f766e;
  /* كان #009688 — نص أبيض عليه 3.67:1 */
  --mx-topbar-bg: linear-gradient(120deg, #0d3b22 0%, #14532d 55%, #166534 100%);
}

.level-1ap,
.level-2ap,
.level-3ap {
  --lv: #047857
}

.level-4ap,
.level-5ap,
.level-6ap {
  --lv: #0e7490
}

.level-1bac,
.level-2bac,
.level-common-core {
  --lv: #b45309
}

.mx-tip-card--blue .mx-tip-card__title {
  color: #0b5f8a
}

.mx-tip-card--orange .mx-tip-card__title {
  color: #a35a07
}

.mx-tip-card--green .mx-tip-card__title {
  color: #1a7a45
}

.mx-tip-card--blue {
  border-inline-start-color: #0b5f8a
}

.mx-tip-card--orange {
  border-inline-start-color: #a35a07
}

.mx-tip-card--green {
  border-inline-start-color: #1a7a45
}

.mx-menu--topbar a {
  color: rgba(255, 255, 255, .96)
}

.mx-search__btn {
  background: #047857;
  border-color: #047857;
  color: #fff
}

button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit
}

/* ===== UNIFY 3.5.5 — إزالة الألوان المتضاربة وإدخال نظام موحّد ===== */
.mx-block::before {
  display: none !important
}

.mx-grid .mx-mini,
.mx-section-separated .mx-grid .mx-mini {
  background: #fff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05) !important
}

.mx-grid .mx-mini:hover,
.mx-section-separated .mx-grid .mx-mini:hover {
  background: var(--edu-green, #15803d) !important;
  border-color: var(--edu-green, #15803d) !important;
  color: #fff !important
}

.mx-grid .mx-mini:hover .mx-mini__text,
.mx-section-separated .mx-grid .mx-mini:hover .mx-mini__text {
  color: #fff !important
}

.mx-block--talamid .mx-mini:hover,
.mx-block--massar .mx-mini:hover {
  color: #fff !important
}

.mx-sections .mx-block .mx-block__desc,
.mx-sections .mx-block .mx-block__seo-desc {
  color: #475569 !important
}

.mx-sections .mx-block .mx-block__desc strong,
.mx-sections .mx-block .mx-block__seo-desc strong {
  color: #0f172a !important
}

.mx-block__title::after,
.section-title::after {
  background: linear-gradient(90deg, var(--edu-green, #15803d), var(--edu-blue, #1976d2)) !important
}

.mx-news__title:hover {
  color: var(--edu-green, #15803d) !important
}

/* ===== RESTORE 3.5.4 — قواعد أُفقدت أثناء المزامنة ===== */
.page-head,
.page-head--legal {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0) !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
  text-align: center !important
}

.page-head .page-title,
.page-head h1.page-title {
  color: #0f172a !important;
  font-size: clamp(1.5rem, 3.5vw, 2.3rem) !important
}

.mx-hero--section {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  text-align: center !important
}

.mx-hero--section .mx-hero__title {
  color: #0f172a !important;
  text-shadow: none !important
}

.mx-hero--section .mx-hero__desc {
  color: #475569 !important;
  text-shadow: none !important
}

.breadcrumbs .bc-inner {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: fit-content !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important
}

.breadcrumbs .bc-link {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: .9rem !important
}

.breadcrumbs .bc-link:hover {
  background: transparent !important;
  border: 0 !important;
  color: var(--edu-blue, #1976d2) !important;
  transform: none !important
}

.breadcrumbs .bc-current {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: #0f172a !important;
  font-weight: 800 !important
}

.breadcrumbs .sep {
  color: #94a3b8 !important
}

.mx-search__btn,
.mx-search__btn:hover {
  background: var(--edu-green, #15803d) !important;
  border-color: var(--edu-green, #15803d) !important
}

.mx-search__btn:hover {
  filter: brightness(.92) !important
}

/* UNIFY2 - unify section title underline gradient */
.mx-intro-header__title::after,
.mx-hero__title::after,
.section-title::after {
  background: linear-gradient(90deg, var(--edu-green, #15803d), var(--edu-blue, #1976d2)) !important
}

/* ===== HOVER-READABILITY v3.5.6 (v3.5.6): يمنع النص الفاتح على خلفية فاتحة عند التمرير ===== */
/* توحيد سلوك hover لكل أزرار الأقسام الصغيرة (mx-mini) في الجميع حتى صفحات البوابات:
   خلفية خضراء صلبة + نص أبيض (أو النص الداكن على الخلفية البيضاء عند التshipment بدون خلفية صلبة) */
.mx-mini:hover,
.skin-orientation .mx-mini:hover,
.skin-section-generic .mx-mini:hover,
.skin-student-portal .mx-mini:hover,
.skin-teacher-portal .mx-mini:hover,
.widget.mx-section-separated .mx-grid .mx-mini:hover {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #fff !important;
}

.mx-mini:hover .mx-mini__text,
.skin-orientation .mx-mini:hover .mx-mini__text,
.skin-section-generic .mx-mini:hover .mx-mini__text,
.skin-student-portal .mx-mini:hover .mx-mini__text,
.skin-teacher-portal .mx-mini:hover .mx-mini__text,
.widget.mx-section-separated .mx-grid .mx-mini:hover .mx-mini__text {
  color: #fff !important;
}

/* أيقونات بطاقات البوابات (tp-card__icon): خلفية موحدة داكنة عند التمرير حتى لا تختفي الرموز النصية (⚙️ 🛠️) */
.tp-card:hover .tp-card__icon,
.tp-card__link:hover .tp-card__icon {
  background: var(--accent, #0f766e) !important;
  color: #fff !important;
}

/* زر البحث العريض موحّد أخضر صلب في جميع الصفحات */
.mx-search-wide__btn {
  background: #15803d !important;
  color: #fff !important;
  border: 0 !important;
}

.mx-search-wide__btn:hover {
  background: #12622f !important;
  color: #fff !important;
}

.mx-search-wide__btn--light {
  background: #fff !important;
  color: #15803d !important;
  border: 2px solid #bfd8c6 !important;
}

.mx-search-wide__btn--light:hover {
  background: #12622f !important;
  color: #fff !important;
  border-color: #12622f !important;
}

/* نهاية HOVER-READABILITY v3.5.6 */

/* ===== CARDS-HOVER 3.5.6b: نصوص بطاقات mx-card--* تبقى داكنة عند التمرير (الخلفية تبقى فاتحة) ===== */
.mx-card--primary:hover .mx-card__title,
.mx-card--college:hover .mx-card__title,
.mx-card--lycee:hover .mx-card__title,
.widget.mx-section-separated .mx-card--primary:hover .mx-card__title,
.widget.mx-section-separated .mx-card--college:hover .mx-card__title,
.widget.mx-section-separated .mx-card--lycee:hover .mx-card__title {
  color: #0f172a !important;
}

.mx-card--primary:hover .mx-card__desc,
.mx-card--college:hover .mx-card__desc,
.mx-card--lycee:hover .mx-card__desc,
.widget.mx-section-separated .mx-card--primary:hover .mx-card__desc,
.widget.mx-section-separated .mx-card--college:hover .mx-card__desc,
.widget.mx-section-separated .mx-card--lycee:hover .mx-card__desc {
  color: #334155 !important;
}

/* نهاية CARDS-HOVER 3.5.6b */

/* ===== PAGINATION+BTN 3.5.6c: pagination/back chips readable on hover ===== */
.mx-pagination a.page-numbers:hover,
.mx-pagination .page-numbers:hover,
a.page-numbers:hover {
  background: #15803d !important;
  color: #fff !important;
  border-color: #15803d !important;
}

a.page-numbers.current {
  background: #15803d !important;
  color: #fff !important;
  border-color: #15803d !important;
}

.btn--light:hover,
.mx-back__btn:hover,
.mx-back-btn:hover {
  background: #15803d !important;
  color: #fff !important;
  border-color: #15803d !important;
}

/* نهاية PAGINATION+BTN 3.5.6c */

/* ===== BUTTONS-SIZING v3.6.1: لا بتر ولا قصّ في نصوص الأزرار — أحجام سلسة حسب كل شاشة ===== */
/* أزرار المواد/المسالك (dv-btn): تسمية النص الكامل وفق الأسطر عند الضيق */
.dv-level-subjects .dv-btn,
.dv-btn {
  white-space: normal !important;
  height: auto !important;
  min-height: 60px !important;
  padding: 14px 18px !important;
}

.dv-level-subjects .dv-btn__txt,
.dv-btn__txt {
  white-space: normal !important;
  display: block !important;
  line-height: 1.55 !important;
  font-size: clamp(.92rem, 1vw + .4rem, 1.05rem) !important;
}

/* نص أزرار الأقسام الصغيرة: بلا قصّ ellipsis ولا clamp في كل الحاويات */
.mx-mini .mx-mini__text,
.mx-grid .mx-mini .mx-mini__text,
.widget.mx-section-separated .mx-grid .mx-mini .mx-mini__text {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  display: block !important;
  line-height: 1.5 !important;
  font-size: clamp(.9rem, .8vw + .45rem, 1rem) !important;
}

/* عناوين الأخبار: العنوان كاملاً بلا نقط البتر */
.mx-news__title,
.mx-news--archive .mx-news__title {
  overflow: visible !important;
  text-overflow: unset !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  white-space: normal !important;
  display: block !important;
  line-height: 1.7;
}

/* أزرار "العودة" وrót لأسماء طويلة عند شاشة صغيرة */
.btn,
.btn--light,
.mx-back__btn,
.mx-back-btn {
  white-space: normal !important;
  text-align: center;
}

/* شارات الأسماء (mx-button-tag) بلا بتر */
.mx-button-tag__name {
  white-space: normal !important;
  line-height: 1.5;
}

/* أسماء الملفات في صفحات المفرد cite */
.mx-single-file__name {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* أزرار الحل/تحميل مع أسماء طويلة: تسمح بالأسطر */
.file-buttons-row .btn-view,
.file-buttons-row .btn-download {
  white-space: normal !important;
}

/* ===== READABILITY 3.6.1: مقاسات قراءة مريحة على كل الشاشات ===== */
.entry-content,
.mx-entry,
article p,
.mx-breadcrumbs__list~main p {
  font-size: clamp(1.02rem, .2vw + .95rem, 1.14rem) !important;
  line-height: 1.95;
}

/* ارتفاع صفوف الأزرار الأفقية تنظّم بنفس القمة */
.dv-level-subjects .dv-btn,
.mx-grid .mx-mini {
  align-items: center;
  justify-content: center;
}

/* ===== نهاية BUTTONS-SIZING/READABILITY v3.6.1 ===== */

/* ===== TYPO+COLOR SYSTEM v3.7: سلم طباعي موحد + ألوان هوية واحدة في كل الصفحات ===== */
/* (1) خط واحد فقط: Almarai بديلة النظام، بلا أي عائلة أخرى */
body,
.mx-topbar,
.mx-mainbar,
.mx-menu--primary,
.mx-footer,
main,
article,
aside,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.mx-hero__title,
.page-head h1,
.entry-title,
.mx-block__title,
.section-title,
.mx-card__title,
.tp-card__title,
.mx-mini__text,
.dv-btn__txt,
.mx-news__title,
.breadcrumbs,
.mx-more,
.btn,
.dv-btn,
.mx-stat,
.mx-pagination,
.entry-content,
.mx-entry,
p,
li,
a,
span {
  font-family: 'Almarai', -apple-system, 'Segoe UI', sans-serif !important;
}

/* (2) سلم الأوزان: 400 عادي / 700 إبراز / 800 عناوين — بلا 900 وهمي */
* {
  font-weight: 400;
}

h1,
h2,
.mx-hero__title,
.page-head h1,
.entry-title,
.page-title,
.mx-single-title {
  font-weight: 800 !important;
}

h3,
h4,
.mx-block__title,
.section-title,
.widget__title,
.mx-block--levels .mx-levels .mx-card__title {
  font-weight: 800 !important;
}

.mx-card__title,
.tp-card__title,
.mx-news__title,
.dv-btn__txt,
.mx-back__btn,
.btn,
.btn--light,
.btn-download,
.btn-view,
.mx-search__btn,
.mx-search-wide__btn,
.mx-mini__text,
.mx-button-tag__name,
.dv-btn,
.widget a,
.mx-more {
  font-weight: 700 !important;
}

strong,
b {
  font-weight: 800 !important;
}

/* (3) سلم المقاسات (clamp ثابتة) — عناوين متدرجة متناسقة من 320 إلى 1920px */
h1,
.entry-title,
.page-head h1,
.mx-single-title {
  font-size: clamp(1.45rem, 1.1vw + 1rem, 2.05rem) !important;
  line-height: 1.42 !important;
  letter-spacing: 0;
}

.mx-hero__title {
  font-size: clamp(1.5rem, 1.3vw + 1rem, 2.15rem) !important;
  line-height: 1.4 !important;
}

h3,
.mx-block__title,
.section-title,
.mx-intro-header__title,
.widget__title {
  font-size: clamp(1.2rem, .55vw + 1rem, 1.5rem) !important;
  line-height: 1.45 !important;
}

h4,
.mx-card__title,
.tp-card__title {
  font-size: clamp(1.02rem, .3vw + .95rem, 1.2rem) !important;
  line-height: 1.55 !important;
}

.mx-mini__text,
.dv-btn__txt,
.mx-button-tag__name {
  font-size: clamp(.9rem, .35vw + .82rem, 1rem) !important;
  line-height: 1.55 !important;
}

.mx-news__title {
  font-size: clamp(.98rem, .3vw + .9rem, 1.1rem) !important;
  line-height: 1.65 !important;
}

.entry-content,
.mx-entry,
main p,
.mx-search__input {
  font-size: clamp(1rem, .18vw + .95rem, 1.1rem) !important;
  line-height: 1.9 !important;
}

.mx-hero__desc,
.mx-breadcrumbs__list,
.breadcrumbs {
  font-size: clamp(.88rem, .2vw + .82rem, .95rem) !important;
  line-height: 1.7 !important;
}

/* (4) الألوان: الأخضر الهوية رقم 1 في كل الصفحات (أزرق ثانوي فقط لأزرار المعاينة) */
:root {
  --mx-brand: #15803d;
  --mx-brand-dark: #12622f;
  --mx-ink: #0f172a;
  --mx-body: #334155;
  --mx-muted: #64748b;
}

body {
  color: var(--mx-body);
}

h1,
h2,
h3,
h4,
.mx-hero__title,
.page-head h1,
.entry-title,
.mx-block__title,
.section-title {
  color: var(--mx-ink) !important;
}

.mx-card--primary .mx-card__title,
.mx-card--college .mx-card__title,
.mx-card--lycee .mx-card__title {
  color: var(--mx-ink) !important;
}

/* أزرار الجذوع/المواد: بطاقة بيضاء بحد أخضر — hover أخضر صلب بنص أبيض في كل المستويات */
.dv-btn {
  background: #fff !important;
  border: 2px solid #c7d6c9 !important;
  color: #14532d !important;
  border-radius: 14px !important;
  transform: none;
}

.dv-btn:hover {
  background: var(--mx-brand) !important;
  border-color: var(--mx-brand) !important;
  color: #fff !important;
}

.dv-btn:hover .dv-btn__chev {
  color: #fff !important;
}

/* أزرار .btn العامة (كانت تتبع دورة المستوى أزرق/برتقالي): توحيد أخضر */
.btn:not(.btn--light):not(.btn-download):not(.btn-view):hover {
  background: var(--mx-brand) !important;
  border-color: var(--mx-brand) !important;
  color: #fff !important;
}

.btn:not(.btn--light):not(.btn-download):not(.btn-view) {
  background: var(--mx-brand) !important;
  border-color: var(--mx-brand) !important;
  color: #fff !important;
}

/* روابط المحتوى */
.entry-content a,
.mx-entry a {
  color: var(--mx-brand);
  text-decoration-color: rgba(21, 128, 61, .4);
}

/* لوحة الشارات والتدقيق (lesson chips) موحدة */
.mx-lesson-meta,
.lesson-meta-chip,
.chip,
.badge {
  background: #ecf8ef !important;
  color: #14532d !important;
  border: 1px solid #bfd8c6 !important;
}

/* نهاية TYPO+COLOR SYSTEM v3.7 */

/* ===== TYPO+COLOR SYSTEM v3.7b — إصلاح العناوين الأعلى تحديداً + توحيد الأزرار الفاتحة ===== */
/* H1 الأرشيف (كان ضمن مجموعة h3): يعود لمقاس العناوين الأول */
h1.mx-intro-header__title,
.mx-intro-header__title {
  font-size: clamp(1.45rem, 1.1vw + 1rem, 2.05rem) !important;
  line-height: 1.42 !important;
}

/* page-head (contact وmasterhead): نفس سلّم H1 بدل 3.5vw المتضخم */
.page-head h1.page-title,
.page-head .page-title,
.page-head h1 {
  font-size: clamp(1.45rem, 1.1vw + 1rem, 2.05rem) !important;
  line-height: 1.42 !important;
}

/* أزرار فاتحة تابعة للدورة (زر العودة…): نص موحّد أخضر داكن بدل أزرق/برتقالي متغير */
.btn--light,
.mx-back__btn,
.mx-back-btn {
  color: #14532d !important;
  border-color: #c7d6c9 !important;
}

.btn--light:hover,
.mx-back__btn:hover,
.mx-back-btn:hover {
  background: #15803d !important;
  color: #fff !important;
  border-color: #15803d !important;
}

/* أرقام الإحصائيات: من 900 وهمي إلى 800 حقيقي */
.mx-stat__number {
  font-weight: 800 !important;
}

/* عنوان أرشيف الأخبار القديم 40px */
h1.archive-title,
.archive-title h1,
h1.mx-archive__title,
.mx-archive h1 {
  font-size: clamp(1.45rem, 1.1vw + 1rem, 2.05rem) !important;
}

/* نهاية v3.7b */

/* ===== LAYOUT FIX v3.8 — حصر عرض .mx-catalog (بدون التعديل على .mx-container) ===== */
.mx-catalog:not(.mx-container) {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 24px);
}

/* نهاية v3.8 */

/* ===== LAYOUT FIX v3.8b — محاذاة مسار التنقل مع صندوق المحتوى في كل الصفحات ===== */
main>.breadcrumbs,
.mx-catalog+.breadcrumbs {
  max-width: 1160px;
  margin-inline: auto;
}

/* نهاية v3.8b */

/* ===== v3.8c — مسار التنقل خارج main (body مباشرة) ===== */
body>.breadcrumbs {
  max-width: 1160px;
  margin-inline: auto;
}

/* نهاية v3.8c */

/* ===== LAYOUT SYSTEM v3.9 — توحيد عمود المحتوى مع الصندوق وإلغاء الفراغات الكبيرة ===== */
/* العمود الداخلي يطابق حافة عمود الـhero (1072px = 1160 − هوامش الكتلة) بدل 960 الضيق */
.page-wrap--single-col .container {
  max-width: 1072px;
}

/* تقليص الحشد الأفقي المتراكم (box 45 + widget 24 = 69px): متدرج معقول */
.page-wrap--single-col .box {
  padding: clamp(14px, 1.8vw, 26px);
}

.mx-catalog .widget,
.skin-section-generic .widget {
  padding: clamp(14px, 1.5vw, 22px);
}

/* بطاقات/شبكات الروابط داخل العمود تمتد كاملاً */
.page-wrap--single-col .mx-res-grid,
.page-wrap--single-col .mx-mini-grid {
  width: 100%;
}

/* نهاية v3.9 */

/* ===== v3.9b — تقليم الحشد الأفقي المتراكم على الشاشات الصغيرة ===== */
@media (max-width: 640px) {
  .page-wrap--single-col {
    padding-inline: 6px;
  }

  .page-wrap--single-col .container {
    padding-inline: 6px;
  }

  .page-wrap--single-col .box {
    padding: 12px;
  }

  .mx-catalog .widget,
  .skin-section-generic .widget {
    padding: 10px;
  }
}

/* نهاية v3.9b */

/* ===== UNIFY-WIDTHS v4.0 — نظام عرض واحد لكل صفحات الموقع ===== */
/* القاعدة: شريط الصفحة 1160 • عمود المحتوى 1072 • عمود النص 932 — موحد في كل القوالب */
/* (1) صفحات الخلاصة khulasa (كانت 1000/820 inline): تعود للنظام العام */
.khulasa-archive {
  max-width: 1160px !important;
  margin-inline: auto !important;
  padding-inline: clamp(12px, 3vw, 24px) !important;
}

.khulasa-archive>*:not(.mad-entry-content) {
  max-width: 1072px;
  margin-inline: auto;
}

.khulasa-archive .mad-entry-content {
  max-width: 932px !important;
  margin-inline: auto;
}

/* (2) صفحات المقال الواحد mx-single (contact و..): عمود 1072 ونص 932 */
.mx-single-container {
  max-width: 1072px;
}

.mx-single-content>p,
.mx-single-content>.page-head,
.mx-single-content>.mx-single-header {
  max-width: 932px;
  margin-inline: auto;
}

/* (3) الحاويات الكونية: أي mx-container عام يحمل جريدات يبقى 1160 (الشريط) — أشرطة سليمة */
/* (4) أوراق الأرشيف الداخلية: عمود النص موحد 932 */
.page-wrap--single-col .single-content {
  max-width: 932px;
  margin-inline: auto;
}

/* نهاية v4.0 */

/* ===== v4.0b — المتبقون: mx-block للأرشيف + mx-single-content المباشر ===== */
.mx-block .single-content,
.mx-sections .single-content {
  max-width: 932px;
  margin-inline: auto;
}

.mx-catalog .mx-single-content {
  max-width: 1072px;
  margin-inline: auto;
}

/* نهاية v4.0b */

/* ===== POST-SINGLE v4.1 — عمود المقال الواحد بالنظام الموحد ===== */
/* بطاقة المحتوى: 1012 − 2×40padding = نص 932 (كل الصفحات) */
.mx-post-content-wrap {
  max-width: 1012px;
  padding: clamp(18px, 2.4vw, 40px);
}

/* العنوان وميتا يطابقان عمود المحتوى بدل 1120 */
.mx-post-title,
.mx-post-meta-top {
  max-width: 1012px;
  margin-inline: auto;
}

/* وزن العنوان والنص: نظام الموقع */
.mx-post-title {
  font-size: clamp(1.45rem, 1.1vw + 1rem, 2.05rem) !important;
  line-height: 1.42;
}

/* نهاية v4.1 */

/* ===== HELP-PAGE v4.1b — شبكة مساعدة مرنة (بدل inline صلب 320px) ===== */
.page-grid--help {
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

@media (max-width: 992px) {
  .page-grid--help {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* نهاية v4.1b */

/* ===== FIX v4.2 — أيقونات بطاقات docs/orientation: الإيموجي يقص داخل مربع 70×70 ===== */
.tp-card__icon {
  overflow: visible;
  line-height: 1;
}

/* نهاية v4.2 */


/* ===== HERO+SEARCH+STATS v4.4.0 — أزرار متناسقة لا تتمدد + فراغات مضبوطة ===== */
/* 1) شريط بحث البداية: صفّ واحد دائماً؛ الزر يبقى بحجم محتواه ولا يطول عرضاً */
.mx-search {
  flex-direction: row !important;
  gap: 10px;
}

.mx-search__input {
  height: 54px !important;
  min-height: 54px !important;
  font-size: 1rem !important;
}

.mx-search__btn {
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  height: 54px !important;
  min-height: 54px !important;
  padding-inline: clamp(14px, 1.6vw, 22px) !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
  font-size: 1rem !important;
}

.mx-search__input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* 2) بطاقات الأرقام: شبكة بارتفاع موحّد ومحتوى متوسّط */
.mx-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mx-stat {
  max-width: none !important;
  min-width: 0 !important;
  min-height: 116px;
  padding: 14px 16px;
}

.mx-stat__number {
  line-height: 1.15;
  margin-bottom: 6px;
}

.mx-stat__label {
  line-height: 1.45;
}

@media (max-width: 640px) {
  .mx-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mx-stat {
    min-height: 96px;
    padding: 10px 12px;
  }

  .mx-stat__label {
    font-size: 0.8rem;
  }
}

/* 3) شريط البحث الواسع (البوابات): ارتفاع موحّد 52 وأزرار بارتفاع المحتوى */
.mx-search-wide__input {
  height: 52px !important;
  min-height: 52px !important;
}

.mx-search-wide__btn,
.mx-search-wide__btn--light {
  height: 52px !important;
  min-height: 52px !important;
  width: auto !important;
  min-width: 0 !important;
  padding-inline: clamp(14px, 1.8vw, 22px) !important;
  border-radius: 12px !important;
}

@media (min-width: 461px) {
  .mx-search-wide__row {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 10px;
  }
}

@media (max-width: 460px) {
  .mx-search-wide__row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .mx-search-wide__input {
    grid-column: 1 / -1;
  }

  .mx-search-wide__btn,
  .mx-search-wide__btn--light {
    padding-inline: 12px;
    font-size: 0.95rem;
  }
}

/* 4) إيقاع أهدأ بين كتل الهيرو (بدون فراغات زائدة) */
.mx-hero__inner {
  gap: clamp(12px, 2vw, 18px) !important;
}

.mx-hero__marketing {
  margin-bottom: 0 !important;
}

/* نهاية v4.4 */


/* ===== HERO-CENTER v4.4.1 — إلغاء العمود الفارغ: الهيرو عمود مركزي متناسق مع صفحة =====
 * السبب: mx-hero__inner شبكة عمودين (1.3fr/.7fr) والعنصر الثاني مخفي
 * ⇒ المحتوى كلّه في العمود الأيمن (57%) ففراغ كبير يساراً وعدم محاذاة مع الأقسام.
 */
.mx-hero__inner {
  display: block !important;
  max-width: 932px;
  margin-inline: auto;
}

.mx-hero {
  text-align: center !important;
}

.mx-hero__title {
  text-align: center !important;
}

.mx-hero__tagline {
  text-align: center !important;
  display: inline-block;
  margin-inline: auto !important;
}

.mx-hero__marketing {
  text-align: center;
}

.mx-hero__marketing .mx-hero__desc {
  max-width: 100% !important;
  margin-inline: auto;
}

/* نهاية v4.4.1 */

/* HERO-CENTER v4.4.1b — العمود الداخلي نفسه سقف 720 مسؤول عن البقية */
.mx-hero__content {
  max-width: 932px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* نهاية v4.4.1b */

/* ===== MAD-DG v4.6.0 — تنسيق محتوى المفردات المولد محركاً (أعلى + أسفل الأزرار) =====
   الحزم: بطاقات مبيّضة بحدود رمادية فاتحة، ترويسات خضراء على يسار/تمييز العلامة،
   خطوة رقمية دائرية، قوائم بأعمدة بذرة خضراء, فق صغير مضغوط متوافق مع RTL. */
.mad-dg {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mad-dg p,
.mad-dg ul,
.mad-dg ol {
  margin: 0 0 12px;
}

.mad-dg p:last-child {
  margin-bottom: 0;
}

.mad-dg-intro {
  font-size: 1.02rem;
  color: #1e293b;
  line-height: 1.95;
}

.mad-dg-cycle {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.9;
}

.mad-dg-h {
  font-weight: 800;
  font-size: 1.05rem;
  color: #14532d;
  margin: 16px 0 8px;
  padding-inline-start: 10px;
  border-inline-start: 4px solid var(--mad-brand, #15803d);
  line-height: 1.6;
}

.mad-dg-top .mad-dg-h {
  margin-top: 4px;
}

.mad-dg-card {
  list-style: none;
  padding: 4px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.mad-dg-card li {
  padding: 7px 0;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.85;
}

.mad-dg-card li+li {
  border-top: 1px dashed #e2e8f0;
}

.mad-dg-card strong {
  color: #0f172a;
}

.mad-dg-list {
  list-style: none;
  padding-inline-start: 6px;
}

.mad-dg-list li {
  position: relative;
  padding-inline-start: 24px;
  margin-bottom: 7px;
  line-height: 1.9;
  color: #334155;
  font-size: 0.97rem;
}

.mad-dg-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mad-brand, #15803d);
  opacity: 0.85;
}

.mad-dg-steps {
  counter-reset: madstep;
  list-style: none;
  padding-inline-start: 6px;
}

.mad-dg-steps li {
  counter-increment: madstep;
  position: relative;
  padding-inline-start: 38px;
  margin-bottom: 10px;
  line-height: 1.9;
  color: #334155;
  font-size: 0.97rem;
}

.mad-dg-steps li::before {
  content: counter(madstep);
  position: absolute;
  inset-inline-start: 0;
  top: 0.35em;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mad-dg-tip {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 14px;
  color: #78350f;
  font-size: 0.95rem;
  line-height: 1.9;
}

.mad-dg-faq {
  margin-top: 4px;
}

.mad-dg-faq h4 {
  font-weight: 700;
  color: #0f172a;
  margin: 12px 0 4px;
  font-size: 0.98rem;
}

.mad-dg-faq h4::before {
  content: "سؤال: ";
  color: #15803d;
  font-weight: 700;
}

.mad-dg-faq p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.9;
}

.mad-dg-links-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 16px;
}

.mad-dg-links-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mad-dg-links-box li {
  margin-bottom: 6px;
}

.mad-dg-links-box li:last-child {
  margin-bottom: 0;
}

.mad-dg-links-box a {
  color: #15803d;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed #86efac;
}

.mad-dg-links-box a:hover {
  color: #14532d;
  border-bottom-color: #14532d;
}

.mad-dg-rights {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.8;
}

/* حاوية الأسفل داخل القوالب */
.mad-dg-after-content {
  margin-top: 20px;
}

.mad-dg-after-content>h2 {
  margin-bottom: 12px;
}

/* ربط لوحات الهيرو القديمة بألوان الهوية في حال غياب المتغير */
.mad-dg {
  --mad-brand: #15803d;
}

/* نهاية MAD-DG v4.6.0 */

/* ===== MAD-DG v4.7.0 — القسم الوسيط (قبل التمارين) + فقرة الموضوع =====
   القسم الوسيط قصير ومقصود: يفصل بين أزرار الدرس وأزرار التمارين دون إطالة،
   ويذكّر الزائر بأن التمارين هي خطوة التطبيق بعد التحميل. */
.mad-dg-topic {
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.95;
  background: #f8fafc;
  border-inline-start: 3px solid var(--mad-brand, #15803d);
  border-radius: 10px;
  padding: 10px 14px;
}

.mad-dg-mid-block {
  margin-top: 18px;
}

.mad-dg-mid-block>h2 {
  font-size: 1.05rem;
}

.mad-dg-mid {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: none;
}

.mad-dg-mid-note {
  color: #1e3a8a;
  font-size: 0.97rem;
  line-height: 1.95;
}

.mad-dg-mid-note strong {
  color: #1d4ed8;
}

.mad-dg-mid-link {
  margin-top: 8px !important;
  font-size: 0.9rem;
  color: #1e40af;
  background: #dbeafe;
  border-radius: 8px;
  padding: 8px 12px;
}

.mad-dg-bottom .mad-dg-tip+.mad-dg-tip {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .mad-dg-mid {
    padding: 12px 12px;
  }

  .mad-dg-mid-note {
    font-size: 0.93rem;
  }
}

/* نهاية MAD-DG v4.7.0 */

/* ===== MX-POST-CONTENT EDITORIAL TYPOGRAPHY v5.0 ===== */
.mx-post-content {
  font-size: 1.12rem;
  line-height: 2.0;
  color: #1e293b;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.mx-post-content p {
  margin-top: 0;
  margin-bottom: 1.45rem;
  line-height: 2.0;
  color: #334155;
  text-align: justify;
}

.mx-post-content h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: #0f172a;
  margin-top: 2.8rem;
  margin-bottom: 1.2rem;
  line-height: 1.4;
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--edu-green, #15803d);
}

.mx-post-content h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: #1e3a8a;
  margin-top: 2.2rem;
  margin-bottom: 0.95rem;
  line-height: 1.45;
}

.mx-post-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #334155;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.mx-post-content ul,
.mx-post-content ol {
  margin: 1.2rem 0 1.6rem 0;
  padding-inline-start: 2rem;
}

.mx-post-content li {
  margin-bottom: 0.75rem;
  line-height: 1.9;
  color: #334155;
}

.mx-post-content li strong {
  color: #0f172a;
}

.mx-post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2.2rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  font-size: 0.98rem;
  display: table;
}

@media (max-width: 768px) {
  .mx-post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.mx-post-content th {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 700;
  text-align: right;
  border-bottom: 2px solid #0284c7;
  white-space: nowrap;
}

.mx-post-content td {
  padding: 13px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  line-height: 1.7;
}

.mx-post-content tr:nth-child(even) {
  background: #f8fafc;
}

.mx-post-content tr:hover {
  background: #f1f5f9;
  transition: background 0.2s ease;
}

.mx-post-content blockquote {
  background: #f8fafc;
  border-inline-start: 4px solid #0284c7;
  padding: 16px 22px;
  border-radius: 8px;
  margin: 2rem 0;
  color: #475569;
  font-style: normal;
  line-height: 1.8;
}

.mx-post-content pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 18px 22px;
  border-radius: 12px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  font-size: 0.9rem;
  margin: 1.8rem 0;
}

.mx-post-content code {
  background: #f1f5f9;
  color: #0f766e;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.mx-post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* ===== END MX-POST-CONTENT EDITORIAL TYPOGRAPHY ===== */

/* ===== EDUCATIONAL COLORFUL CALLOUTS & SEO CLUSTERS v5.1 ===== */
.mx-post-content a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(2, 132, 199, 0.4);
  text-underline-offset: 4px;
  transition: all 0.2s ease;
}

.mx-post-content a:hover {
  color: #0369a1;
  text-decoration-color: #0284c7;
}

/* Callout Cards */
.edu-callout {
  border-radius: 12px;
  padding: 20px 24px;
  margin: 2.2rem 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.edu-callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.edu-callout-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.edu-callout-body {
  font-size: 1.05rem;
  line-height: 1.95;
  color: #334155;
  margin: 0;
}

.edu-callout-body p {
  margin-bottom: 0.8rem;
  color: inherit;
}

.edu-callout-body p:last-child {
  margin-bottom: 0;
}

/* Emerald Green Callout (Tips & Best Practices) */
.edu-callout-green {
  background: #f0fdf4;
  border-inline-start: 6px solid #16a34a;
  border: 1px solid #bbf7d0;
  border-inline-start-width: 6px;
}

.edu-callout-green .edu-callout-header {
  color: #15803d;
}

/* Royal Blue Callout (Legal, Circulars, Regulations) */
.edu-callout-blue {
  background: #eff6ff;
  border-inline-start: 6px solid #2563eb;
  border: 1px solid #bfdbfe;
  border-inline-start-width: 6px;
}

.edu-callout-blue .edu-callout-header {
  color: #1d4ed8;
}

/* Amber/Orange Callout (Warnings, Critical Deadlines, Avoid Mistakes) */
.edu-callout-amber {
  background: #fffbeb;
  border-inline-start: 6px solid #d97706;
  border: 1px solid #fde68a;
  border-inline-start-width: 6px;
}

.edu-callout-amber .edu-callout-header {
  color: #b45309;
}

/* Indigo/Purple Callout (Key Takeaway & Summaries) */
.edu-callout-purple {
  background: #faf5ff;
  border-inline-start: 6px solid #9333ea;
  border: 1px solid #e9d5ff;
  border-inline-start-width: 6px;
}

.edu-callout-purple .edu-callout-header {
  color: #7e22ce;
}

/* SEO Topic Cluster / Related Guides Box */
.edu-related-cluster {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 2.8rem 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  position: relative;
}

.edu-related-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.edu-related-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.edu-related-list li {
  margin: 0 !important;
  padding: 10px 14px !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.edu-related-list li:hover {
  border-color: #0284c7;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.1);
  transform: translateY(-2px);
}

.edu-related-list li a {
  color: #1e3a8a !important;
  text-decoration: none !important;
  font-size: 0.98rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.edu-related-list li a::before {
  content: "📖";
  font-size: 1.1rem;
}

.edu-related-list li a:hover {
  color: #0284c7 !important;
}

/* Enhanced Table Styling with Colors */
.mx-post-content table th {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border-bottom: 3px solid #10b981 !important;
}

.mx-post-content h2 {
  background: linear-gradient(to left, rgba(22, 163, 74, 0.04), transparent);
  padding-block: 6px;
  border-radius: 4px;
}

/* ===== END EDUCATIONAL COLORFUL CALLOUTS & SEO CLUSTERS ===== */

/* ===== GOOGLE ADSENSE POLICY COMPLIANCE: SAFE CLEARANCE ===== */
.lesson-buttons-group,
.devoir-buttons-group,
.exam-buttons-group,
.file-buttons-row {
  margin: 16px 0;
  clear: both;
}

.lesson-file-row,
.exam-file-row,
.devoir-file-row {
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.btn-download,
.btn-view {
  min-height: 42px;
  touch-action: manipulation;
}

ins.adsbygoogle {
  margin-block: 28px !important;
  clear: both !important;
}

.google-auto-placed {
  margin-block: 32px !important;
  clear: both !important;
}

/* ===== END ADSENSE SAFETY CLEARANCE ===== */

/* ==========================================================================
   PREMIUM EDITORIAL DESIGN & ARTICLE CARDS STYLING (ADSENSE REVIEW READY)
   ========================================================================== */

/* 1. Article Archive & News Grid - 2 Columns */
.mx-news.mx-news--archive {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin-top: 24px !important;
}

@media (max-width: 640px) {
  .mx-news.mx-news--archive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* 2. News Article Card */
.mx-news__item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  padding: 0 !important;
  height: 100% !important;
}

.mx-news__item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.12) !important;
  border-color: #cbd5e1 !important;
}

/* 3. Thumbnail Container */
.mx-news__thumb-wrap {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
}

.mx-news__thumb-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.mx-news__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

.mx-news__item:hover .mx-news__img {
  transform: scale(1.05) !important;
}

.mx-news__img-fallback {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%) !important;
  font-size: 2.5rem !important;
}

/* 4. Category Badges */
.mx-news__cat-badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: rgba(2, 132, 199, 0.92) !important;
  color: #ffffff !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  z-index: 2 !important;
}

/* 5. Card Body & Typography */
.mx-news__content {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.mx-news__meta-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.mx-news__title {
  margin: 0 !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  color: #0f172a !important;
}

.mx-news__title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.mx-news__title a:hover {
  color: #0284c7 !important;
}

.mx-news__excerpt {
  font-size: 0.92rem !important;
  line-height: 1.68 !important;
  color: #475569 !important;
  margin: 0 !important;
}

.mx-news__footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 14px !important;
  border-top: 1px dashed #e2e8f0 !important;
  font-size: 0.84rem !important;
  color: #64748b !important;
  margin-top: auto !important;
}

.mx-news__author {
  font-weight: 600 !important;
  color: #475569 !important;
}

.mx-news__readmore {
  color: #0284c7 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.mx-news__readmore:hover {
  transform: translateX(-4px) !important;
  color: #0369a1 !important;
}

/* 6. Featured News Section on /news/ - 2 Columns */
.mx-news-featured-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin-top: 18px !important;
}

@media (max-width: 640px) {
  .mx-news-featured-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.mx-news-featured-item {
  background: #ffffff !important;
  border: 1px solid #bae6fd !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.mx-news-featured-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.16) !important;
}

.mx-news-featured-link {
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.mx-news-featured-thumb {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
}

.mx-news-featured-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

.mx-news-featured-item:hover .mx-news-featured-img {
  transform: scale(1.05) !important;
}

.mx-news-featured-badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: #0284c7 !important;
  color: #fff !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.mx-news-featured-content {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  justify-content: space-between !important;
}

.mx-news-featured-meta {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
  margin-bottom: 8px !important;
}

.mx-news-featured-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.45 !important;
  margin: 0 0 10px !important;
}

.mx-news-featured-excerpt {
  font-size: 0.92rem !important;
  color: #475569 !important;
  line-height: 1.65 !important;
  margin: 0 0 14px !important;
}

.mx-news-featured-more {
  color: #0284c7 !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  margin-top: auto !important;
  display: inline-block !important;
}

/* 7. Homepage Article Cards (.mx-articles-grid) - 2 Columns */
.mx-articles-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin-top: 24px !important;
}

@media (max-width: 640px) {
  .mx-articles-grid {
    grid-template-columns: 1fr !important;
  }
}

.mx-article-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.mx-article-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12) !important;
  border-color: #93c5fd !important;
}

.mx-article-card:hover .mx-article-card__thumb img {
  transform: scale(1.05) !important;
}

/* 8. Single Article Reading Polish */
.mx-single-post .mx-post-header {
  padding-block: clamp(32px, 5vw, 56px) !important;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%) !important;
  border-bottom: 1px solid #e0f2fe !important;
  text-align: center !important;
}

.mx-single-post .mx-post-cat {
  display: inline-block !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  margin-inline-end: 8px !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
}

.mx-single-post .mx-post-meta-top {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 0.88rem !important;
  color: #64748b !important;
  margin-bottom: 18px !important;
}

.mx-single-post .mx-post-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  max-width: 900px !important;
  margin-inline: auto !important;
}

.mx-single-post .mx-post-featured-image {
  max-width: 920px !important;
  margin: 28px auto 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1) !important;
  border: 1px solid #e2e8f0 !important;
}

.mx-single-post .mx-post-content-wrap {
  max-width: 920px !important;
  margin: 36px auto !important;
  background: #ffffff !important;
  padding: clamp(24px, 4vw, 44px) !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04) !important;
}

.mx-single-post .entry-content {
  font-size: 1.125rem !important;
  line-height: 1.95 !important;
  color: #1e293b !important;
}

.mx-single-post .entry-content p {
  margin-bottom: 1.4rem !important;
}

.mx-single-post .entry-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 2.2rem !important;
  margin-bottom: 1rem !important;
  padding-right: 14px !important;
  border-right: 4px solid #0284c7 !important;
  background: linear-gradient(to left, rgba(2, 132, 199, 0.04), transparent) !important;
  border-radius: 4px !important;
  line-height: 1.4 !important;
}

.mx-single-post .entry-content h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
  font-weight: 700 !important;
  color: #0369a1 !important;
  margin-top: 1.8rem !important;
  margin-bottom: 0.8rem !important;
}

.mx-single-post .entry-content blockquote {
  background: #f8fafc !important;
  border-right: 4px solid #10b981 !important;
  border-radius: 10px !important;
  padding: 18px 24px !important;
  margin: 1.8rem 0 !important;
  color: #334155 !important;
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
}

.mx-single-post .entry-content ul,
.mx-single-post .entry-content ol {
  padding-right: 24px !important;
  margin-bottom: 1.4rem !important;
}

.mx-single-post .entry-content li {
  margin-bottom: 0.6rem !important;
  line-height: 1.8 !important;
}

.mx-single-post .entry-content table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #cbd5e1 !important;
  margin: 1.8rem 0 !important;
}

.mx-single-post .entry-content th {
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  text-align: right !important;
}

.mx-single-post .entry-content td {
  padding: 12px 16px !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.mx-single-post .entry-content tr:nth-child(even) td {
  background: #f8fafc !important;
}

/* 9. Author and Team Cards Polish */
.team-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.team-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
  border-color: #cbd5e1 !important;
}

/* 10. Smooth Image Transitions Everywhere */
.mx-news__img,
.mx-article-card img,
.mx-news-card img {
  image-rendering: auto;
  border-radius: inherit;
}

/* ==========================================================================
   END PREMIUM EDITORIAL DESIGN
   ========================================================================== */

/* ==========================================================================
   MADARISY 2027 MASTER DESIGN SYSTEM & VISUAL HARMONY
   Refined Typography, Harmonious Palette, Unified Cards, Zero Overlaps
   ========================================================================== */

/* 1. Root Tokens & Palette */
:root {
  --brand-primary: #047857;
  --brand-primary-dark: #065f46;
  --brand-primary-light: #ecfdf5;
  --brand-primary-border: #a7f3d0;

  --accent-blue: #0284c7;
  --accent-blue-dark: #0369a1;
  --accent-blue-light: #f0f9ff;
  --accent-blue-border: #bae6fd;

  --accent-amber: #d97706;
  --accent-amber-light: #fffbeb;
  --accent-amber-border: #fde68a;

  --accent-teal: #0d9488;
  --accent-teal-light: #f0fdfa;
  --accent-teal-border: #99f6e4;

  --accent-purple: #7c3aed;
  --accent-purple-light: #faf5ff;
  --accent-purple-border: #ddd6fe;

  --clr-slate-50: #f8fafc;
  --clr-slate-100: #f1f5f9;
  --clr-slate-200: #e2e8f0;
  --clr-slate-300: #cbd5e1;
  --clr-slate-400: #94a3b8;
  --clr-slate-500: #64748b;
  --clr-slate-600: #475569;
  --clr-slate-700: #334155;
  --clr-slate-800: #1e293b;
  --clr-slate-900: #0f172a;

  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 14px 28px -4px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Global Reset & Base Enhancements */
body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Almarai', system-ui, -apple-system, sans-serif !important;
  line-height: 1.7 !important;
  -webkit-font-smoothing: antialiased !important;
}

/* 2. Header & Topbar Modernization */
.mx-header {
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06) !important;
  background: #ffffff !important;
}

.mx-topbar {
  background: linear-gradient(120deg, #064e3b 0%, #047857 60%, #059669 100%) !important;
}

.mx-topbar a {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  border-radius: 999px !important;
  transition: all 0.2s ease !important;
}

.mx-topbar a:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

/* ============================================================
   HEADER & NAVBAR ANTI-OVERLAP ARCHITECTURE
   Prevents any collision between logo (.mx-brand) and menu (.mx-primary-nav)
   ============================================================ */
.mx-mainbar {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  position: relative !important;
  z-index: 100 !important;
}

.mx-mainbar__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(12px, 2vw, 24px) !important;
  width: 100% !important;
  max-width: var(--container, 1180px) !important;
  margin-inline: auto !important;
  padding-inline: clamp(14px, 3vw, 24px) !important;
  min-height: 72px !important;
  box-sizing: border-box !important;
}

.mx-brand {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  max-width: 210px !important;
  z-index: 10 !important;
}

.mx-brand .custom-logo,
.mx-brand img {
  height: auto !important;
  max-height: 46px !important;
  max-width: 100% !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.mx-brand__title {
  font-weight: 800 !important;
  font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

@media (min-width: 1025px) {

  .mx-toggle,
  .mx-header-search-btn,
  .mx-submenu-toggle,
  .mx-drawer-search {
    display: none !important;
  }

  .mx-drawer-head,
  .mx-mobile-topbar-menu,
  .mx-close-btn {
    display: none !important;
  }

  .mx-primary-nav {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    justify-content: flex-end !important;
    position: static !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    transform: none !important;
    visibility: visible !important;
  }

  .mx-menu-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .mx-menu--primary {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    column-gap: clamp(2px, 0.4vw, 6px) !important;
    row-gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .mx-menu--primary>li {
    position: relative !important;
    flex-shrink: 0 !important;
    width: auto !important;
  }

  .mx-menu--primary>li>a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 7px clamp(6px, 0.65vw, 11px) !important;
    font-size: clamp(0.78rem, 0.8vw, 0.88rem) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    color: var(--clr-slate-700, #334155) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }

  .mx-menu--primary>li>a:hover,
  .mx-menu--primary>li.current-menu-item>a,
  .mx-menu--primary>li.current_page_item>a {
    color: var(--brand-primary, #047857) !important;
    background: var(--brand-primary-light, rgba(4, 120, 87, 0.08)) !important;
  }
}

@media (max-width: 1024px) {
  .mx-topbar {
    display: none !important;
  }

  .mx-header {
    will-change: auto !important;
  }

  .mx-mainbar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
  }

  .mx-mainbar__inner {
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-inline: 14px !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 8px !important;
  }

  .mx-mainbar__inner::after {
    display: none !important;
  }

  /* زر القائمة: هامبورغر أنيق بمساحة لمس مريحة 44x44 */
  .mx-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    z-index: 1001 !important;
    order: 1 !important;
    flex-shrink: 0 !important;
    transition: background 0.2s ease !important;
  }

  .mx-toggle:hover,
  .mx-toggle:active {
    background: rgba(4, 120, 87, 0.08) !important;
  }

  .mx-toggle__bar {
    display: block !important;
    width: 22px !important;
    height: 2.5px !important;
    margin: 2.5px 0 !important;
    background: #047857 !important;
    border-radius: 3px !important;
    pointer-events: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
  }

  .mx-toggle.is-open .mx-toggle__bar:first-child {
    transform: translateY(7.5px) rotate(45deg) !important;
  }

  .mx-toggle.is-open .mx-toggle__bar:nth-child(2) {
    opacity: 0 !important;
  }

  .mx-toggle.is-open .mx-toggle__bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg) !important;
  }

  /* الشعار: يتوسط تماماً بين زر القائمة وزر البحث السريع */
  .mx-brand {
    order: 2 !important;
    margin-inline: auto !important;
    max-width: calc(100% - 104px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex: 1 1 auto !important;
  }

  .mx-brand .custom-logo,
  .mx-brand img {
    max-height: 38px !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .mx-brand__title {
    font-size: clamp(1.05rem, 4vw, 1.25rem) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  /* زر البحث السريع على الهاتف للموازنة وسرعة الوصول */
  .mx-header-search-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    color: #047857 !important;
    background: transparent !important;
    text-decoration: none !important;
    order: 3 !important;
    flex-shrink: 0 !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mx-header-search-btn:hover,
  .mx-header-search-btn:active {
    background: rgba(4, 120, 87, 0.08) !important;
    transform: scale(1.05) !important;
  }

  .mx-header-search-btn svg {
    width: 21px !important;
    height: 21px !important;
    stroke: currentColor !important;
  }

  /* درج الملاحة الجانبي على الموبايل */
  .mx-primary-nav {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(88vw, 360px) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    background: #ffffff !important;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.22) !important;
    transform: translateX(105%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease !important;
    flex-direction: column !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html[dir="ltr"] .mx-primary-nav {
    right: auto !important;
    left: 0 !important;
    transform: translateX(-105%) !important;
    box-shadow: 10px 0 40px rgba(15, 23, 42, 0.22) !important;
  }

  .mx-primary-nav.is-open,
  .mx-js .mx-primary-nav.is-open,
  html[dir="rtl"] .mx-primary-nav.is-open,
  html[dir="rtl"] .mx-js .mx-primary-nav.is-open,
  html[dir="rtl"].mx-js .mx-primary-nav.is-open,
  html[dir="ltr"] .mx-primary-nav.is-open,
  html[dir="ltr"] .mx-js .mx-primary-nav.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
  }

  /* رأس الدرج */
  .mx-drawer-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
  }

  .mx-drawer-head__brand {
    display: flex !important;
    align-items: center !important;
    max-width: 200px !important;
  }

  .mx-drawer-head__brand img,
  .mx-drawer-head__brand .custom-logo {
    max-height: 34px !important;
    width: auto !important;
  }

  .mx-drawer-brand {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #047857 !important;
    text-decoration: none !important;
  }

  .mx-close-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    color: #475569 !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    transition: all 0.2s ease !important;
  }

  .mx-close-btn:hover,
  .mx-close-btn:active {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
  }

  /* شريط بحث سريع مدمج في الدرج للموبايل */
  .mx-drawer-search {
    display: block !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
    flex-shrink: 0 !important;
  }

  .mx-drawer-search__form {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .mx-drawer-search__input {
    width: 100% !important;
    height: 42px !important;
    padding-inline: 14px 44px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  }

  .mx-drawer-search__input:focus {
    border-color: #047857 !important;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12) !important;
  }

  .mx-drawer-search__btn {
    position: absolute !important;
    inset-inline-end: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 34px !important;
    height: 34px !important;
    border: none !important;
    background: #047857 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background 0.2s ease !important;
  }

  .mx-drawer-search__btn:hover {
    background: #065f46 !important;
  }

  /* قائمة الروابط في الدرج */
  .mx-menu-wrapper {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mx-menu--primary {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .mx-menu--primary>li {
    width: 100% !important;
    margin: 0 !important;
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  .mx-menu--primary>li>a {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 11px 14px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
  }

  .mx-menu--primary>li>a:hover,
  .mx-menu--primary>li>a:active,
  .mx-menu--primary>li.current-menu-item>a,
  .mx-menu--primary>li.current_page_item>a {
    background: rgba(4, 120, 87, 0.08) !important;
    color: #047857 !important;
  }

  /* سهم/زر فتح القوائم الفرعية المنسدلة */
  .mx-submenu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-inline-start: 4px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease !important;
  }

  .mx-submenu-toggle:hover,
  .mx-submenu-toggle:active {
    background: rgba(4, 120, 87, 0.08) !important;
    color: #047857 !important;
  }

  .mx-menu--primary li.open>.mx-submenu-toggle {
    transform: rotate(180deg) !important;
    color: #047857 !important;
  }

  /* القوائم الفرعية المنسدلة */
  .mx-menu--primary .sub-menu {
    display: none !important;
    width: 100% !important;
    padding: 6px 12px 6px 14px !important;
    margin: 4px 0 8px 0 !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    list-style: none !important;
    border-inline-start: 3px solid #047857 !important;
    box-sizing: border-box !important;
  }

  .mx-menu--primary li.open>.sub-menu {
    display: block !important;
    animation: mx-fade-sub 0.2s ease !important;
  }

  @keyframes mx-fade-sub {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mx-menu--primary .sub-menu li {
    width: 100% !important;
    margin: 2px 0 !important;
  }

  .mx-menu--primary .sub-menu li a {
    display: block !important;
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
  }

  .mx-menu--primary .sub-menu li a:hover,
  .mx-menu--primary .sub-menu li a:active {
    background: rgba(4, 120, 87, 0.08) !important;
    color: #047857 !important;
    padding-inline-start: 16px !important;
  }

  /* الروابط المؤسسية السريعة أسفل الدرج */
  .mx-mobile-topbar-menu {
    display: block !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 12px 14px !important;
    flex-shrink: 0 !important;
  }

  .mx-mobile-menu-label {
    display: block !important;
    padding: 0 4px 8px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
  }

  .mx-mobile-topbar-menu .mx-menu--mobile-topbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mx-mobile-topbar-menu .mx-menu--mobile-topbar li {
    display: inline-block !important;
  }

  .mx-mobile-topbar-menu .mx-menu--mobile-topbar a {
    color: #334155 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
  }

  .mx-mobile-topbar-menu .mx-menu--mobile-topbar a:hover,
  .mx-mobile-topbar-menu .mx-menu--mobile-topbar a:active {
    background: #047857 !important;
    color: #ffffff !important;
    border-color: #047857 !important;
  }

  /* تغطية الشاشة الخلفية للدرج */
  .mx-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99998 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mx-overlay.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
  }
}

/* 3. Hero Section Modernization */
.mx-hero {
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%) !important;
  border-block-end: 1px solid var(--border) !important;
  padding: clamp(36px, 6vw, 60px) 0 clamp(28px, 4vw, 44px) !important;
}

.mx-hero__title {
  color: var(--clr-slate-900) !important;
  font-size: clamp(1.4rem, 4vw, 2.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin-bottom: 12px !important;
}

.mx-hero__tagline {
  background: var(--brand-primary-light) !important;
  color: var(--brand-primary) !important;
  border: 1px solid var(--brand-primary-border) !important;
  border-radius: 999px !important;
  padding: 6px 18px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  display: inline-block !important;
  margin-bottom: 14px !important;
}

.mx-hero__desc {
  color: var(--clr-slate-600) !important;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem) !important;
  line-height: 1.85 !important;
  max-width: 820px !important;
  margin: 0 auto !important;
}

/* Hero Search Bar */
.mx-search {
  max-width: 640px !important;
  margin: 24px auto 0 !important;
  display: flex !important;
  gap: 8px !important;
  background: #ffffff !important;
  padding: 6px !important;
  border-radius: 16px !important;
  border: 2px solid var(--border) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.07) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.mx-search:focus-within {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 12px 30px -5px rgba(4, 120, 87, 0.16) !important;
}

.mx-search__input {
  border: 0 !important;
  background: transparent !important;
  height: 48px !important;
  min-height: 48px !important;
  font-size: 1rem !important;
  padding: 0 16px !important;
  color: var(--clr-slate-900) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  width: 100% !important;
}

.mx-search__input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.mx-search__btn {
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)) !important;
  color: #ffffff !important;
  padding: 0 24px !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  border: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25) !important;
}

.mx-search__btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35) !important;
  background: linear-gradient(135deg, #059669, #047857) !important;
}

/* Hero Stats */
.mx-stats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  max-width: 860px !important;
  margin: 28px auto 0 !important;
}

.mx-stat {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 16px 14px !important;
  text-align: center !important;
  box-shadow: var(--shadow-subtle) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.mx-stat:hover {
  transform: translateY(-3px) !important;
  border-color: var(--brand-primary-border) !important;
  box-shadow: var(--shadow-hover) !important;
}

.mx-stat__number {
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  color: var(--brand-primary) !important;
  line-height: 1.2 !important;
}

.mx-stat__label {
  font-size: 0.85rem !important;
  color: var(--clr-slate-600) !important;
  font-weight: 700 !important;
  margin-top: 4px !important;
}

/* 4. Blocks & Headings Polish */
.mx-block {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  padding: clamp(20px, 3.5vw, 32px) !important;
  box-shadow: var(--shadow-subtle) !important;
  margin-bottom: 24px !important;
}

.mx-block__title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem) !important;
  font-weight: 800 !important;
  color: var(--clr-slate-900) !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.mx-block__title::after {
  display: none !important;
}

.mx-block__desc {
  color: var(--clr-slate-600) !important;
  font-size: 0.96rem !important;
  line-height: 1.8 !important;
  margin: 0 0 20px !important;
  max-width: 840px !important;
}

/* 5. Clean, Professional Portal Buttons (.mx-mini) */
.mx-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)) !important;
  gap: 12px !important;
}

.mx-mini {
  background: #ffffff !important;
  color: var(--clr-slate-800) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 13px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  justify-content: flex-start !important;
  text-align: right !important;
  font-weight: 700 !important;
  font-size: 0.94rem !important;
  box-shadow: var(--shadow-subtle) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  min-height: 52px !important;
}

.mx-mini__emoji {
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: var(--clr-slate-100) !important;
  font-size: 1.15rem !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}

.mx-mini:hover .mx-mini__emoji {
  transform: scale(1.1) !important;
}

.mx-mini__text {
  flex: 1 !important;
  color: inherit !important;
  font-weight: 700 !important;
}

/* Harmonized Hover Accents per Section — High-Contrast WCAG Compliant */
.mx-mini:hover {
  background: var(--brand-primary, #047857) !important;
  border-color: var(--brand-primary, #047857) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(4, 120, 87, 0.25) !important;
}

.mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.22) !important;
  transform: scale(1.1) !important;
}

.mx-block--talamid .mx-mini:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.3) !important;
}

.mx-block--talamid .mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-block--talamid .mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.25) !important;
}

.mx-block--prof .mx-mini:hover {
  background: #047857 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(4, 120, 87, 0.3) !important;
}

.mx-block--prof .mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-block--prof .mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.25) !important;
}

.mx-block--massar .mx-mini:hover {
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(13, 148, 136, 0.3) !important;
}

.mx-block--massar .mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-block--massar .mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.25) !important;
}

.mx-block--higher .mx-mini:hover {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.3) !important;
}

.mx-block--higher .mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-block--higher .mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.25) !important;
}

.mx-block--news .mx-mini:hover {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(217, 119, 6, 0.3) !important;
}

.mx-block--news .mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-block--news .mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* 6. Magazine Article Cards (.mx-article-card) */
.mx-articles-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) !important;
  gap: 20px !important;
}

.mx-article-card {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-subtle) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mx-article-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: #cbd5e1 !important;
}

.mx-article-card__thumb {
  position: relative !important;
  aspect-ratio: 16 / 9 !important;
  background: var(--clr-slate-100) !important;
  overflow: hidden !important;
}

.mx-article-card__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.mx-article-card:hover .mx-article-card__thumb img {
  transform: scale(1.05) !important;
}

.mx-article-card__badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #ffffff !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.mx-article-card__body {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.mx-article-card__meta-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 0.8rem !important;
  color: var(--clr-slate-500) !important;
  margin-bottom: 10px !important;
}

.mx-article-card__title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  margin: 0 0 10px !important;
  color: var(--clr-slate-900) !important;
}

.mx-article-card__title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.mx-article-card:hover .mx-article-card__title a {
  color: var(--brand-primary) !important;
}

.mx-article-card__excerpt {
  font-size: 0.9rem !important;
  color: var(--clr-slate-600) !important;
  line-height: 1.65 !important;
  margin: 0 0 16px !important;
  flex: 1 !important;
}

.mx-article-card__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--clr-slate-100) !important;
  font-size: 0.82rem !important;
  color: var(--clr-slate-500) !important;
  margin-top: auto !important;
}

.mx-article-card__link {
  color: var(--brand-primary) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: gap 0.2s ease !important;
}

.mx-article-card:hover .mx-article-card__link {
  gap: 8px !important;
}

.mx-more {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 28px !important;
  border-radius: 12px !important;
  background: var(--brand-primary-light) !important;
  color: var(--brand-primary-dark) !important;
  border: 1px solid var(--brand-primary-border) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.mx-more:hover {
  background: var(--brand-primary) !important;
  color: #ffffff !important;
  border-color: var(--brand-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 18px rgba(4, 120, 87, 0.25) !important;
}

/* 7. Footer Modernization */
.mx-footer {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-top: 1px solid #1e293b !important;
  padding-top: 56px !important;
}

.mx-footer-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  margin-bottom: 18px !important;
}

.mx-footer-widget ul li a {
  color: #94a3b8 !important;
  transition: color 0.2s ease, padding 0.2s ease !important;
  display: inline-block !important;
  padding: 4px 0 !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
}

.mx-footer-widget ul li a:hover {
  color: #ffffff !important;
  padding-inline-start: 6px !important;
}

.mx-footer-legal {
  border-top: 1px solid #1e293b !important;
  padding: 24px 0 !important;
  margin-top: 40px !important;
}

.mx-footer-legal a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.mx-footer-legal a:hover {
  color: #ffffff !important;
}

/* 8. Full Responsive Tuning for Mobile & Tablet */
@media (max-width: 768px) {
  .mx-hero {
    padding: 32px 0 24px !important;
  }

  .mx-search {
    flex-direction: column !important;
    padding: 8px !important;
    gap: 8px !important;
    border-radius: 14px !important;
  }

  .mx-search__btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .mx-articles-grid {
    grid-template-columns: 1fr !important;
  }

  .mx-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .mx-hero__title {
    font-size: 1.35rem !important;
  }

  .mx-hero__desc {
    font-size: 0.9rem !important;
  }

  .mx-block {
    padding: 16px !important;
    border-radius: 14px !important;
  }
}

/* ==========================================================================
   Internal SEO Linking & In-Content Cluster Callouts (v5.3)
   ========================================================================== */
.mx-internal-keyword-link {
  color: #0284c7 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-decoration-style: dashed !important;
  text-underline-offset: 4px !important;
  text-decoration-color: #93c5fd !important;
  transition: all 0.2s ease !important;
}

.mx-internal-keyword-link:hover {
  color: #0369a1 !important;
  text-decoration-style: solid !important;
  text-decoration-color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  border-radius: 4px;
  padding: 0 4px;
}

.mx-cluster-box {
  margin: 36px 0 32px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-right: 4px solid #0284c7;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.mx-cluster-box__header {
  margin-bottom: 14px;
}

.mx-cluster-box__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.mx-cluster-box__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
}

.mx-cluster-box__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mx-cluster-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.2s ease;
}

.mx-cluster-item:hover {
  border-color: #93c5fd;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.09);
}

.mx-cluster-item__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mx-cluster-item__content {
  flex: 1;
  min-width: 0;
}

.mx-cluster-item__title {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.4;
}

.mx-cluster-item:hover .mx-cluster-item__title {
  color: #0284c7;
}

.mx-cluster-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #64748b;
}

.mx-cluster-item__cat {
  font-weight: 600;
  color: #0284c7;
}

.mx-cluster-item__arrow {
  font-size: 1.1rem;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.mx-cluster-item:hover .mx-cluster-item__arrow {
  color: #0284c7;
  transform: translateX(-4px);
}

.mx-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.mx-post-nav__prev,
.mx-post-nav__next {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.mx-post-nav__prev:hover,
.mx-post-nav__next:hover {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.mx-nav-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.mx-post-nav a {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.mx-post-nav a:hover {
  color: #0284c7;
}

@media (max-width: 640px) {
  .mx-post-nav {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   LEGAL & INSTITUTIONAL PAGES — Unified Modern Layout
   ============================================================ */
.mx-legal-wrapper {
  background: var(--bg, #f8fafc);
  padding: clamp(24px, 4vw, 48px) 0 64px;
  min-height: 70vh;
}

.mx-legal-card {
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-xl, 20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: clamp(24px, 5vw, 56px);
  max-width: 900px;
  margin-inline: auto;
}

.mx-legal-header {
  border-bottom: 2px solid var(--border, #e2e8f0);
  padding-bottom: 24px;
  margin-bottom: 32px;
  text-align: center;
}

.mx-legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.mx-legal-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 12px;
}

.mx-legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.mx-legal-intro-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-right: 4px solid var(--accent, #047857);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

html[dir="rtl"] .mx-legal-intro-box {
  border-right: 4px solid var(--accent, #047857);
  border-left: none;
}

.mx-legal-intro-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #334155;
}

.mx-legal-body {
  font-size: 1rem;
  line-height: 2;
  color: #334155;
}

.mx-legal-body h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: #0f172a;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.mx-legal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 24px 0 10px;
}

.mx-legal-body p {
  margin-bottom: 16px;
}

.mx-legal-body ul,
.mx-legal-body ol {
  padding-inline-start: 24px;
  margin-bottom: 20px;
}

.mx-legal-body li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.mx-legal-body a {
  color: var(--accent, #0284c7);
  text-decoration: underline;
  font-weight: 700;
}

.mx-legal-body a:hover {
  color: #0369a1;
}

.mx-legal-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px dashed #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mx-legal-nav__label {
  font-weight: 800;
  font-size: 0.9rem;
  color: #64748b;
  margin-inline-end: 4px;
}

.mx-legal-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mx-legal-nav a:hover {
  background: var(--accent, #047857);
  color: #ffffff;
  border-color: var(--accent, #047857);
  transform: translateY(-2px);
}

.mx-help-grid-wrap {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .mx-legal-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .mx-help-grid-wrap {
    margin-top: 20px;
  }
}


/* ============================================================
   v5.4.1 — CATEGORY ARCHIVES & MAGAZINE GRID
   ============================================================ */
.mx-category-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #047857 100%);
  color: #ffffff;
  padding: clamp(36px, 6vw, 64px) 0 40px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid #059669;
}

.mx-category-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.mx-category-hero__badge .badge-icon {
  font-size: 1.1rem;
}

.mx-category-hero__badge .badge-dot {
  opacity: 0.6;
}

.mx-category-hero__title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  color: #ffffff !important;
  margin: 0 0 14px 0;
  line-height: 1.25;
}

.mx-category-hero__desc {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #e2e8f0;
  max-width: 780px;
  margin: 0 auto 20px;
  line-height: 1.8;
}

.mx-category-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.mx-category-breadcrumb a {
  color: #93c5fd !important;
  text-decoration: none;
  font-weight: 700;
}

.mx-category-breadcrumb a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.mx-category-breadcrumb .sep {
  opacity: 0.5;
}

.mx-category-breadcrumb .current {
  color: #ffffff;
  font-weight: 700;
}

/* Articles Grid */
.mx-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.mx-article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mx-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  border-color: #059669;
}

.mx-article-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.mx-article-card__thumb .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.mx-article-card:hover .mx-article-card__thumb .card-img {
  transform: scale(1.05);
}

.card-fallback-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
}

.card-fallback-thumb .thumb-emoji {
  font-size: 2.8rem;
  transition: transform 0.3s ease;
}

.mx-article-card:hover .card-fallback-thumb .thumb-emoji {
  transform: scale(1.15) rotate(4deg);
}

.mx-article-card__cat {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(4, 120, 87, 0.92);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.mx-article-card__content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mx-article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 600;
}

.mx-article-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 10px;
  color: #0f172a;
}

.mx-article-card__title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mx-article-card__title a:hover {
  color: #047857;
}

.mx-article-card__excerpt {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 16px;
  flex-grow: 1;
}

.mx-article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  margin-top: auto;
}

.mx-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #047857;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.author-name {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 700;
}

.mx-article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #047857;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.mx-article-card__link:hover {
  gap: 8px;
  color: #065f46;
}

/* Educational Guide Box (E-E-A-T) */
.mx-category-guide-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  margin: 32px 0 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.guide-header .guide-icon {
  font-size: 1.6rem;
}

.guide-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.mx-category-guide-box p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #475569;
  margin: 0 0 18px;
}

.guide-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

.feature-item .f-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Sidebar Styling */
.sidebar-search {
  display: flex;
  gap: 8px;
}

.sidebar-search input {
  flex: 1;
  height: 44px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.sidebar-search button {
  width: 44px;
  height: 44px;
  background: #047857;
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-cat-list a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s ease;
}

.sidebar-cat-list a:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
  transform: translateX(-3px);
}

.sidebar-cat-list .s-icon {
  margin-inline-end: 8px;
}

.sidebar-cat-list .s-name {
  flex: 1;
}

.sidebar-cat-list .s-count {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.sidebar-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-links-list a {
  display: block;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  transition: all 0.2s ease;
}

.sidebar-links-list a:hover {
  background: #047857;
  color: #ffffff !important;
  border-color: #047857;
  transform: translateX(-3px);
}

/* Pagination */
.mx-pagination-wrap {
  display: flex;
  justify-content: center;
  margin: 32px 0 24px;
}

.mx-pagination-wrap .page-numbers {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mx-pagination-wrap .page-numbers.current,
.mx-pagination-wrap .page-numbers:hover {
  background: #047857;
  color: #ffffff;
  border-color: #047857;
}

/* ============================================================
   CONTRAST SAFETY & LEGAL PAGES (NO DARK ON DARK)
   ============================================================ */
.mx-legal-wrapper {
  background: #f8fafc;
  padding: clamp(24px, 4vw, 48px) 0 64px;
  min-height: 70vh;
}

.mx-legal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: clamp(24px, 5vw, 56px);
  max-width: 900px;
  margin-inline: auto;
}

.mx-legal-header {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 24px;
  margin-bottom: 32px;
  text-align: center;
}

.mx-legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.mx-legal-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  color: #0f172a !important;
  line-height: 1.3;
  margin-bottom: 12px;
}

.mx-legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.mx-legal-intro-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-right: 4px solid #047857;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

html[dir="rtl"] .mx-legal-intro-box {
  border-right: 4px solid #047857;
  border-left: none;
}

.mx-legal-intro-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #334155 !important;
}

.mx-legal-body {
  font-size: 1rem;
  line-height: 2;
  color: #334155 !important;
}

.mx-legal-body h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: #0f172a !important;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.mx-legal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b !important;
  margin: 24px 0 10px;
}

.mx-legal-body p {
  margin-bottom: 16px;
  color: #334155 !important;
}

.mx-legal-body ul,
.mx-legal-body ol {
  padding-inline-start: 24px;
  margin-bottom: 20px;
}

.mx-legal-body li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: #334155 !important;
}

.mx-legal-body a {
  color: #0284c7 !important;
  text-decoration: underline;
  font-weight: 700;
}

.mx-legal-body a:hover {
  color: #0369a1 !important;
}

.mx-legal-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px dashed #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mx-legal-nav__label {
  font-weight: 800;
  font-size: 0.9rem;
  color: #64748b;
  margin-inline-end: 4px;
}

.mx-legal-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569 !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mx-legal-nav a:hover {
  background: #047857 !important;
  color: #ffffff !important;
  border-color: #047857;
  transform: translateY(-2px);
}

/* STRICT CONTRAST RULES: ZERO DARK ON DARK */
.mx-footer,
.site-footer {
  background: #0f172a !important;
  color: #94a3b8 !important;
}

.mx-footer a {
  color: #cbd5e1 !important;
}

.mx-footer a:hover {
  color: #ffffff !important;
}

.footer-consent-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #94a3b8 !important;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-consent-btn:hover {
  color: #ffffff !important;
}

/* ============================================================
   MADARISY PRO 2027 — MASTER UNIFIED DESIGN SYSTEM & HARMONY
   توحيد كامل للشكل، الألوان، أحجام الصفحات، والشبكات لجميع الشاشات
   ============================================================ */

/* 1. UNIFIED CONTAINER & SPACING SYSTEM */
:root {
  --container: 1180px;
  --mx-container-max: 1180px;
  --mx-gap: clamp(16px, 2.5vw, 24px);
  --brand-primary: #047857;
  --brand-primary-dark: #065f46;
  --brand-primary-light: #f0fdf4;
  --brand-primary-border: #bbf7d0;
  --slate-dark: #0f172a;
  --slate-body: #334155;
  --slate-muted: #64748b;
  --slate-border: #e2e8f0;
  --bg-page: #f8fafc;
  --radius-card: 14px;
}

body {
  background: var(--bg-page) !important;
  color: var(--slate-body) !important;
  font-family: Almarai, system-ui, -apple-system, sans-serif !important;
  overflow-x: clip;
}

.mx-container,
.container,
.page-wrap,
.page-head__inner,
.mx-hero__inner,
.mx-mainbar__inner {
  width: 100% !important;
  max-width: var(--container, 1180px) !important;
  margin-inline: auto !important;
  padding-inline: clamp(16px, 2.5vw, 24px) !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {

  .mx-container,
  .container,
  .page-wrap,
  .page-head__inner,
  .mx-hero__inner,
  .mx-mainbar__inner {
    padding-inline: 16px !important;
  }
}

/* 2. UNIFIED HERO & PAGE HEAD (ترويسات الصفحات الموحدة لجميع أنواع المحتوى) */
.page-head,
.page-head--legal,
.mx-category-hero,
.mx-hero,
.mx-post-header,
.about-page-head {
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%) !important;
  border-block-end: 1px solid var(--slate-border) !important;
  padding: clamp(28px, 4vw, 44px) 0 clamp(20px, 3vw, 32px) !important;
  margin: 0 0 clamp(24px, 3.5vw, 36px) 0 !important;
  position: relative !important;
  width: 100% !important;
}

.page-head h1,
.page-head .page-title,
.page-head--legal h1,
.mx-category-hero__title,
.mx-hero__title,
.mx-post-title,
.mx-legal-title,
.about-page-head h1 {
  color: var(--slate-dark) !important;
  font-size: clamp(1.4rem, 3.2vw, 2.15rem) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.02em !important;
}

.page-head .page-subtitle,
.page-head p,
.page-head--legal p,
.mx-category-hero__desc,
.mx-hero__desc,
.about-page-head p {
  color: var(--slate-muted) !important;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem) !important;
  line-height: 1.7 !important;
  max-width: 820px !important;
  margin: 0 !important;
}

/* Badges & Pills */
.mx-category-hero__badge,
.mx-legal-badge,
.mx-post-cat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  background: rgba(4, 120, 87, 0.08) !important;
  color: var(--brand-primary) !important;
  border: 1px solid rgba(4, 120, 87, 0.2) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  text-decoration: none !important;
  width: fit-content !important;
}

/* Breadcrumbs in Hero */
.mx-category-breadcrumb,
.page-head .breadcrumbs {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 14px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--slate-muted) !important;
}

.mx-category-breadcrumb a,
.page-head .breadcrumbs a {
  color: var(--brand-primary) !important;
  text-decoration: none !important;
}

.mx-category-breadcrumb a:hover,
.page-head .breadcrumbs a:hover {
  text-decoration: underline !important;
}

.mx-category-breadcrumb .sep,
.page-head .breadcrumbs .sep {
  opacity: 0.5 !important;
  margin-inline: 2px !important;
}

.mx-category-breadcrumb .current,
.page-head .breadcrumbs .current {
  color: var(--slate-dark) !important;
}

/* 3. UNIFIED CARDS & CONTAINERS (بطاقات موحدة بالحجم والشكل والظلال) */
.mx-article-card,
.mx-news-card,
.box,
.mx-block,
.mx-legal-card,
.mx-card,
.team-card,
.about-card,
.contact-wrapper {
  background: #ffffff !important;
  border: 1px solid var(--slate-border) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  box-sizing: border-box !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease !important;
}

.mx-article-card:hover,
.mx-news-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
  border-color: #cbd5e1 !important;
}

.mx-article-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
}

.mx-article-card__thumb,
.mx-news-card__image {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  position: relative !important;
  background: #f1f5f9 !important;
  border-radius: 13px 13px 0 0 !important;
}

.mx-article-card__thumb img,
.mx-news-card__image img,
.mx-article-card .card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mx-article-card:hover .card-img,
.mx-news-card:hover img {
  transform: scale(1.03) !important;
}

.mx-article-card__content,
.mx-news-card__body {
  padding: clamp(16px, 2.5vw, 22px) !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.mx-article-card__title,
.mx-news-card__title {
  font-size: clamp(1rem, 1.4vw, 1.15rem) !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  margin: 8px 0 10px 0 !important;
}

.mx-article-card__title a,
.mx-news-card__title a {
  color: var(--slate-dark) !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

.mx-article-card__title a:hover,
.mx-news-card__title a:hover {
  color: var(--brand-primary) !important;
}

.mx-article-card__excerpt,
.mx-news-card__excerpt {
  color: var(--slate-muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  margin: 0 0 16px 0 !important;
  flex: 1 1 auto !important;
}

.mx-article-card__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--slate-border) !important;
  margin-top: auto !important;
  font-size: 0.85rem !important;
}

.mx-article-card__link {
  color: var(--brand-primary) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: transform 0.18s ease !important;
}

.mx-article-card__link:hover {
  transform: translateX(-3px) !important;
}

/* 4. UNIFIED RESPONSIVE GRIDS (شبكات متناسقة لجميع الشاشات - عمودان للمقالات) */
.mx-articles-grid,
.mx-news-grid,
.mx-news.mx-news--archive,
.mx-news-featured-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2.5vw, 26px) !important;
  align-items: stretch !important;
}

.mx-categories-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(16px, 2.2vw, 24px) !important;
  align-items: stretch !important;
}

@media (max-width: 1024px) {

  .mx-articles-grid,
  .mx-news-grid,
  .mx-news.mx-news--archive,
  .mx-news-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .mx-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 640px) {

  .mx-articles-grid,
  .mx-news-grid,
  .mx-news.mx-news--archive,
  .mx-news-featured-grid,
  .mx-categories-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Hide excerpts universally on all article & news cards */
.mx-article-card__excerpt,
.mx-news__excerpt,
.mx-news-card__excerpt,
.mx-news-featured-excerpt,
.news-excerpt {
  display: none !important;
}

/* Two-column page layout with sidebar */
.page-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: clamp(20px, 2.5vw, 32px) !important;
  align-items: start !important;
}

@media (max-width: 992px) {
  .page-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* 5. UNIFIED LEGAL & SINGLE CONTENT WIDTH (توحيد عرض صفحات القراءة والمقالات) */
.mx-legal-wrapper,
.page-wrap {
  background: var(--bg-page) !important;
  padding: 0 0 clamp(36px, 5vw, 64px) !important;
  min-height: 60vh !important;
}

.mx-legal-card {
  max-width: 960px !important;
  margin-inline: auto !important;
  padding: clamp(24px, 4vw, 48px) !important;
  border-radius: 16px !important;
}

.mx-single-post .mx-post-content-wrap {
  max-width: 960px !important;
  margin: 0 auto clamp(36px, 5vw, 60px) !important;
  background: #ffffff !important;
  padding: clamp(24px, 4vw, 48px) !important;
  border-radius: 16px !important;
  border: 1px solid var(--slate-border) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

@media (max-width: 768px) {

  .mx-single-post .mx-post-content-wrap,
  .mx-legal-card {
    padding: 20px 16px !important;
    border-radius: 12px !important;
  }
}

/* 6. SIDEBAR WIDGET HARMONY (توحيد مظهر الشريط الجانبي) */
.sidebar .widget {
  background: #ffffff !important;
  border: 1px solid var(--slate-border) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  padding: clamp(16px, 2.5vw, 22px) !important;
  margin-bottom: clamp(16px, 2.5vw, 24px) !important;
}

.sidebar .widget__title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: var(--slate-dark) !important;
  margin: 0 0 16px 0 !important;
  position: relative !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid rgba(4, 120, 87, 0.12) !important;
}

.sidebar .widget__title::after {
  content: "" !important;
  position: absolute !important;
  inset-inline-start: 0 !important;
  bottom: -2px !important;
  width: 36px !important;
  height: 2px !important;
  background: var(--brand-primary) !important;
  border-radius: 2px !important;
}

/* Sidebar Search */
.sidebar-search {
  display: flex !important;
  gap: 8px !important;
}

.sidebar-search input {
  flex: 1 !important;
  height: 42px !important;
  padding-inline: 14px !important;
  border: 1.5px solid var(--slate-border) !important;
  border-radius: 10px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  background: #f8fafc !important;
  transition: all 0.2s ease !important;
}

.sidebar-search input:focus {
  background: #ffffff !important;
  border-color: var(--brand-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12) !important;
}

.sidebar-search button {
  height: 42px !important;
  width: 44px !important;
  background: var(--brand-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease !important;
}

.sidebar-search button:hover {
  background: var(--brand-primary-dark) !important;
}

/* Sidebar Lists */
.sidebar-cat-list,
.sidebar-links-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.sidebar-cat-list li a,
.sidebar-links-list li a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  color: var(--slate-body) !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  text-decoration: none !important;
  background: #f8fafc !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
}

.sidebar-cat-list li a:hover,
.sidebar-links-list li a:hover {
  background: rgba(4, 120, 87, 0.08) !important;
  color: var(--brand-primary) !important;
  border-color: rgba(4, 120, 87, 0.2) !important;
  transform: translateX(-3px) !important;
}

.sidebar-cat-list .s-count {
  background: rgba(15, 23, 42, 0.06) !important;
  color: var(--slate-muted) !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
}

/* 7. FOOTER INTEGRITY (فوتر احترافي بنسب تباين عالية وقراءة واضحة) */
.mx-footer,
.site-footer {
  background: #0f172a !important;
  color: #94a3b8 !important;
  margin-top: clamp(40px, 6vw, 64px) !important;
  border-top: 3px solid var(--brand-primary) !important;
}

.mx-footer a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

.mx-footer a:hover {
  color: #ffffff !important;
}

.mx-footer-title {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   BUTTON HOVER CONTRAST GUARANTEE (WCAG AAA - ZERO TEXT DISAPPEARANCE)
   ========================================================================== */
.mx-mini:hover {
  background: var(--brand-primary, #047857) !important;
  border-color: var(--brand-primary, #047857) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(4, 120, 87, 0.25) !important;
}

.mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.22) !important;
  transform: scale(1.1) !important;
}

.mx-block--talamid .mx-mini:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.3) !important;
}

.mx-block--talamid .mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-block--talamid .mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.25) !important;
}

.mx-block--prof .mx-mini:hover {
  background: #047857 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(4, 120, 87, 0.3) !important;
}

.mx-block--prof .mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-block--prof .mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.25) !important;
}

.mx-block--massar .mx-mini:hover {
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(13, 148, 136, 0.3) !important;
}

.mx-block--massar .mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-block--massar .mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.25) !important;
}

.mx-block--higher .mx-mini:hover {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.3) !important;
}

.mx-block--higher .mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-block--higher .mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.25) !important;
}

.mx-block--news .mx-mini:hover {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -4px rgba(217, 119, 6, 0.3) !important;
}

.mx-block--news .mx-mini:hover .mx-mini__text {
  color: #ffffff !important;
}

.mx-block--news .mx-mini:hover .mx-mini__emoji {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* بطاقات الدورات التعليمية mx-card */
.mx-card--primary:hover .mx-card__title,
.mx-card--primary:hover .mx-card__desc,
.mx-card--college:hover .mx-card__title,
.mx-card--college:hover .mx-card__desc,
.mx-card--lycee:hover .mx-card__title,
.mx-card--lycee:hover .mx-card__desc {
  color: #ffffff !important;
}

/* زر المزيد mx-more */
.mx-more:hover {
  background: #047857 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
}

/* أزرار التحميل والمشاهدة والرجوع العامة */
.btn-primary:hover,
.btn:not(.btn--light):not(.btn-secondary):hover,
.btn-download:hover,
.btn-view:hover,
.mx-search__btn:hover,
.mx-search-wide__btn:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   ADVANCED SEARCH & RESULTS PAGE (RESPONSIVE & HIGH CONTRAST)
   ========================================================================== */
.page-search {
  padding-bottom: 60px;
}

/* 1. Search Panel & Filter Box */
.mx-search-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: clamp(20px, 3.5vw, 32px) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06) !important;
  margin-bottom: 32px !important;
}

.mx-search-panel__bar {
  display: flex !important;
  gap: 12px !important;
  align-items: stretch !important;
  margin-bottom: 20px !important;
}

@media (max-width: 640px) {
  .mx-search-panel__bar {
    flex-direction: column !important;
  }
}

.mx-search-panel__input-wrap {
  position: relative !important;
  flex: 1 !important;
}

.mx-search-panel__icon {
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1.25rem !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
}

.mx-search-panel__input {
  width: 100% !important;
  height: 54px !important;
  padding: 0 52px 0 16px !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.mx-search-panel__input:focus {
  background: #ffffff !important;
  border-color: #047857 !important;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.12) !important;
  outline: none !important;
}

.mx-search-panel__btn {
  height: 54px !important;
  padding: 0 30px !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  background: #047857 !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.mx-search-panel__btn:hover {
  background: #065f46 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.25) !important;
  color: #ffffff !important;
}

/* Quick Pills */
.mx-search-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 22px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.mx-search-pill {
  padding: 8px 16px !important;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #475569 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: inherit !important;
}

.mx-search-pill:hover {
  background: #f8fafc !important;
  border-color: #047857 !important;
  color: #047857 !important;
}

.mx-search-pill.is-active {
  background: #047857 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.2) !important;
}

/* Advanced Filters Grid */
.mx-search-filters-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 14px !important;
  align-items: end !important;
}

.mx-search-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.mx-search-label {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
}

.mx-search-select {
  height: 46px !important;
  padding: 0 12px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
  cursor: pointer !important;
  font-family: inherit !important;
}

.mx-search-select:focus {
  border-color: #047857 !important;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1) !important;
}

.mx-search-actions {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
}

.mx-search-btn-apply {
  height: 46px !important;
  padding: 0 20px !important;
  border-radius: 10px !important;
  background: #047857 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex: 1 !important;
  font-family: inherit !important;
}

.mx-search-btn-apply:hover {
  background: #065f46 !important;
  color: #ffffff !important;
}

.mx-search-btn-reset {
  height: 46px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1.5px solid #e2e8f0 !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  font-family: inherit !important;
}

.mx-search-btn-reset:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* 2. Results Header & Chips */
.mx-search-bar-results {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  padding-bottom: 16px !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.mx-search-results-info {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.mx-search-results-info strong {
  color: #047857 !important;
}

.mx-search-active-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

.mx-search-active-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  background: #e0f2fe !important;
  color: #0369a1 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border: 1px solid #bae6fd !important;
}

/* 3. Results Grid (2 Columns Desktop/Tablet, 1 Column Mobile) */
.mx-search-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

@media (max-width: 768px) {
  .mx-search-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* 4. Search Cards */
.mx-search-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mx-search-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12) !important;
  border-color: #cbd5e1 !important;
}

.mx-search-card__header {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
}

.mx-search-card__thumb-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.mx-search-card__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
}

.mx-search-card:hover .mx-search-card__img {
  transform: scale(1.05) !important;
}

.mx-search-card__fallback {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #ffffff !important;
  transition: transform 0.35s ease !important;
}

.mx-search-card:hover .mx-search-card__fallback {
  transform: scale(1.03) !important;
}

.mx-search-card__fallback--blue {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
}

.mx-search-card__fallback--teal {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
}

.mx-search-card__fallback--purple {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
}

.mx-search-card__fallback--amber {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

.mx-search-card__fallback--green {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.mx-search-card__fallback--orange {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
}

.mx-search-card__fallback--slate {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
}

.mx-search-card__fallback-icon {
  font-size: 2.5rem !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)) !important;
}

.mx-search-card__fallback-label {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  opacity: 0.95 !important;
}

.mx-search-card__fallback-sub {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  background: rgba(255, 255, 255, 0.2) !important;
  padding: 2px 10px !important;
  border-radius: 999px !important;
}

.mx-search-card__badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(4px) !important;
  color: #ffffff !important;
  z-index: 2 !important;
}

.mx-search-card__badge--blue {
  background: rgba(2, 132, 199, 0.94) !important;
}

.mx-search-card__badge--teal {
  background: rgba(13, 148, 136, 0.94) !important;
}

.mx-search-card__badge--purple {
  background: rgba(124, 58, 237, 0.94) !important;
}

.mx-search-card__badge--amber {
  background: rgba(217, 119, 6, 0.94) !important;
}

.mx-search-card__badge--green {
  background: rgba(4, 120, 87, 0.94) !important;
}

.mx-search-card__badge--orange {
  background: rgba(234, 88, 12, 0.94) !important;
}

.mx-search-card__badge--slate {
  background: rgba(51, 65, 85, 0.94) !important;
}

.mx-search-card__body {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  gap: 12px !important;
}

.mx-search-card__meta-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

.mx-search-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.mx-search-tag--level {
  background: #eff6ff !important;
  color: #1e40af !important;
}

.mx-search-tag--subject {
  background: #f0fdf4 !important;
  color: #166534 !important;
}

.mx-search-tag--date {
  background: #f8fafc !important;
  color: #64748b !important;
}

.mx-search-card__title {
  margin: 0 !important;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
  color: #0f172a !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 3.1em !important;
}

.mx-search-card__title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

.mx-search-card:hover .mx-search-card__title a {
  color: #047857 !important;
}

.mx-search-hl {
  background: #fef08a !important;
  color: #854d0e !important;
  padding: 1px 4px !important;
  border-radius: 3px !important;
  font-weight: 800 !important;
}

.mx-search-card__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: auto !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.mx-search-card__author {
  font-size: 0.85rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.mx-search-card__btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #047857 !important;
  text-decoration: none !important;
  transition: gap 0.2s ease, color 0.2s ease !important;
}

.mx-search-card:hover .mx-search-card__btn {
  color: #065f46 !important;
  gap: 10px !important;
}

/* 5. Empty State */
.mx-search-empty {
  text-align: center !important;
  padding: clamp(36px, 6vw, 64px) 24px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

.mx-search-empty__icon {
  font-size: 3.8rem !important;
  margin-bottom: 16px !important;
  display: inline-block !important;
}

.mx-search-empty__title {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 8px !important;
}

.mx-search-empty__desc {
  font-size: 1rem !important;
  color: #64748b !important;
  max-width: 540px !important;
  margin: 0 auto 24px !important;
  line-height: 1.7 !important;
}

.mx-search-empty__suggestions {
  margin-top: 24px !important;
  padding-top: 24px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.mx-search-empty__suggestions-title {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #334155 !important;
  margin-bottom: 14px !important;
}

.mx-search-empty__chips {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
}

.mx-search-empty__chip {
  padding: 8px 18px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #1e293b !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
}

.mx-search-empty__chip:hover {
  background: #047857 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}