@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

:root {
    --blue: #0b5ed7;
    --blue-dark: #082b63;
    --red: #e72635;
    --green: #0f9d58;
    --cyan: #00a6ff;
    --purple: #7257ff;
    --dark: #0d1b2a;
    --muted: #617086;
    --light: #f5f8ff;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 20px 60px rgba(13, 27, 42, 0.14);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: var(--dark);
    line-height: 1.7;
}
html[dir="rtl"] body {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,0.85);
}
.nav-wrap {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 270px;
}
.brand-mark {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), var(--red));
    box-shadow: 0 12px 25px rgba(11, 94, 215, 0.25);
}
.brand-text strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    color: var(--dark);
}
.brand-text small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
.brand-text .brand-ur {
    font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', Tahoma, serif;
    font-size: 14px;
    color: var(--blue-dark);
    font-weight: 700;
    margin-top: 3px;
}
html[dir="rtl"] .brand-text strong {
    font-family: Arial, sans-serif;
    letter-spacing: 0;
    font-size: 24px;
}
html[dir="rtl"] .brand-text small:last-child {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
    font-size: 13px;
}
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}
.main-nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: #31435b;
    font-weight: 700;
    font-size: 14px;
    transition: all .25s ease;
}
.main-nav a.active, .main-nav a:hover {
    background: #eef5ff;
    color: var(--blue);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lang-pill {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}
.lang-pill.active {
    color: #fff;
    border-color: transparent;
    background: var(--blue);
}
.menu-toggle {
    display: none;
    border: 0;
    background: var(--blue-dark);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.btn-red { color: #fff; background: linear-gradient(135deg, var(--red), #ff7a3d); box-shadow: 0 12px 30px rgba(231, 38, 53, 0.25); }
.btn-blue { color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 12px 30px rgba(11, 94, 215, 0.22); }
.btn-green { color: #fff; background: linear-gradient(135deg, var(--green), #28d17c); box-shadow: 0 12px 30px rgba(15, 157, 88, 0.22); }
.btn-white { color: var(--blue-dark); background: #fff; }
.btn-outline { color: var(--blue-dark); background: #fff; border: 1px solid var(--border); }
.full { width: 100%; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 74px;
    background:
        radial-gradient(circle at top left, rgba(0,166,255,0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(231,38,53,0.20), transparent 30%),
        linear-gradient(135deg, #f8fbff, #eff6ff);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--blue);
    background: #eaf3ff;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 16px;
}
.badge.white {
    color: #fff;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
}
.hero h1, .page-hero h1 {
    font-size: clamp(36px, 4.7vw, 62px);
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 18px;
}
.hero p, .page-hero p {
    font-size: 18px;
    color: #41516a;
    max-width: 760px;
}
html[dir="rtl"] .hero h1,
html[dir="rtl"] .page-hero h1 {
    font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', Tahoma, serif !important;
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    word-spacing: 0;
    font-weight: 700;
    margin-bottom: 18px;
}
html[dir="rtl"] .hero p,
html[dir="rtl"] .page-hero p,
html[dir="rtl"] .section p,
html[dir="rtl"] .feature-card p,
html[dir="rtl"] .pricing-card li,
html[dir="rtl"] .demo-card p,
html[dir="rtl"] .info-card p,
html[dir="rtl"] .contact-card p,
html[dir="rtl"] .credential-box p,
html[dir="rtl"] .form-note {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
    line-height: 2.15;
    letter-spacing: 0;
    font-size: 17px;
}
html[dir="rtl"] .section h2,
html[dir="rtl"] .feature-card h3,
html[dir="rtl"] .pricing-card h3,
html[dir="rtl"] .demo-card h2,
html[dir="rtl"] .info-card h3,
html[dir="rtl"] .contact-card h2,
html[dir="rtl"] .main-nav a,
html[dir="rtl"] .btn,
html[dir="rtl"] .badge,
html[dir="rtl"] .card-label,
html[dir="rtl"] .trust-row,
html[dir="rtl"] .preview-card,
html[dir="rtl"] .check-list p,
html[dir="rtl"] .security-line,
html[dir="rtl"] .safe-list li,
html[dir="rtl"] .package-tag {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; color: #243b55; font-weight: 700; font-size: 14px; }
.hero-panel { position: relative; }
.dashboard-preview {
    padding: 24px;
    border-radius: 32px;
    background: rgba(255,255,255,0.88);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.9);
}
.preview-top { display: flex; gap: 8px; margin-bottom: 20px; }
.preview-top span { width: 12px; height: 12px; border-radius: 999px; background: #d7deea; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats-row div, .preview-card, .phone-stat, .info-card, .contact-card, .contact-form, .code-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(13,27,42,0.08);
}
.stats-row strong { display: block; font-size: 26px; color: var(--blue-dark); }
.stats-row small { color: var(--muted); font-weight: 700; }
.chart-lines { margin: 24px 0; display: grid; gap: 12px; }
.chart-lines i { height: 13px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #8cc8ff); }
.chart-lines i:nth-child(2) { width: 74%; background: linear-gradient(90deg, var(--green), #9af0c1); }
.chart-lines i:nth-child(3) { width: 88%; background: linear-gradient(90deg, var(--red), #ffa68c); }
.chart-lines i:nth-child(4) { width: 60%; background: linear-gradient(90deg, var(--purple), #b4a8ff); }
.preview-card { margin-top: 12px; font-weight: 800; }
.preview-card.blue { border-left: 5px solid var(--blue); }
.preview-card.green { border-left: 5px solid var(--green); }
html[dir="rtl"] .preview-card.blue { border-left: 1px solid var(--border); border-right: 5px solid var(--blue); }
html[dir="rtl"] .preview-card.green { border-left: 1px solid var(--border); border-right: 5px solid var(--green); }

.section { padding: 78px 0; }
.section.light { background: var(--light); }
.section-head { text-align: center; max-width: 800px; margin: 0 auto 36px; }
.section-head h2, .section h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.34; margin: 0 0 12px; }
.two-cards, .demo-grid, .split, .contact-grid, .demo-login-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: center; }
.big-card {
    min-height: 310px;
    padding: 36px;
    border-radius: var(--radius);
    color: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.big-card:after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    right: -90px;
    bottom: -90px;
}
.school-card { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.madrasa-card { background: linear-gradient(135deg, #075c37, var(--green)); }
.card-label {
    display: inline-flex;
    padding: 8px 14px;
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
    margin-bottom: 18px;
    font-weight: 800;
}
.big-card p { color: rgba(255,255,255,0.92); }
.features-grid, .pricing-grid, .screenshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card, .pricing-card, .demo-card, .shot-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 12px 35px rgba(13,27,42,0.08);
}
.feature-icon, .demo-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 26px;
    background: #eef5ff;
    margin-bottom: 18px;
}
.feature-card h3, .pricing-card h3, .demo-card h2 { margin: 0 0 10px; font-size: 24px; }
.feature-card p, .pricing-card li, .demo-card p, .section p { color: var(--muted); }
.demo-strip { color: #fff; background: linear-gradient(135deg, var(--blue-dark), var(--blue), var(--red)); }
.demo-strip p { color: rgba(255,255,255,0.88); }
.demo-mini-card {
    padding: 30px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
}
.page-hero { padding: 88px 0; color: #fff; overflow: hidden; position: relative; }
.page-hero p { color: rgba(255,255,255,0.92); }
.blue-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.green-hero { background: linear-gradient(135deg, #064a32, var(--green)); }
.pricing-hero { background: linear-gradient(135deg, #3c1779, var(--purple), var(--blue)); }
.demo-hero { background: linear-gradient(135deg, #3d2068, var(--red)); }
.about-hero { background: linear-gradient(135deg, #102a43, var(--blue)); }
.contact-hero { background: linear-gradient(135deg, #172554, #0ea5e9); }
.check-list p { margin: 10px 0; color: #25364d; font-weight: 700; }
.mock-phone {
    max-width: 420px;
    justify-self: center;
    width: 100%;
    border-radius: 36px;
    border: 10px solid #102a43;
    background: linear-gradient(180deg, #f8fbff, #eaf3ff);
    padding: 28px;
    box-shadow: var(--shadow);
}
.green-phone { background: linear-gradient(180deg, #f7fffb, #eafaf1); border-color: #064a32; }
.phone-bar { width: 80px; height: 8px; background: #cbd5e1; border-radius: 999px; margin: 0 auto 24px; }
.phone-stat { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }
.pricing-card { position: relative; }
.pricing-card.highlight { border: 2px solid var(--blue); transform: translateY(-10px); }
.package-tag {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--blue);
    background: #eaf3ff;
    font-weight: 800;
    font-size: 12px;
}
.price { margin: 14px 0; font-size: 28px; font-weight: 900; color: var(--blue-dark); }
.pricing-card ul, .safe-list { padding-left: 18px; margin: 18px 0; }
html[dir="rtl"] .pricing-card ul, html[dir="rtl"] .safe-list { padding-left: 0; padding-right: 18px; }
.demo-card { min-height: 430px; }
.blue-bg { background: #eaf3ff; }
.green-bg { background: #e9fff3; }
.credential-box {
    border: 1px dashed #b9c6d8;
    background: #f8fbff;
    border-radius: 18px;
    padding: 16px;
    margin: 18px 0;
}
.credential-box p { margin: 6px 0; color: #25364d; }
.shot-card {
    min-height: 180px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(11,94,215,0.08), rgba(231,38,53,0.08)), #fff;
    border-style: dashed;
    text-align: center;
    font-weight: 900;
    color: var(--blue-dark);
}
.reset-section { color: #fff; background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.reset-section p { color: rgba(255,255,255,0.86); }
.light-list p { color: #fff; }
.code-card code {
    display: block;
    white-space: normal;
    word-break: break-all;
    padding: 18px;
    border-radius: 16px;
    background: #0f172a;
    color: #a7f3d0;
}
.center { text-align: center; }
.contact-form { display: grid; gap: 12px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; }
.site-footer { color: #cbd5e1; background: #0f172a; padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.site-footer h3, .site-footer h4 { color: #fff; margin-top: 0; }
.footer-brand-ur {
    font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', Tahoma, serif;
    color: #fff;
    font-size: 18px;
    margin-top: -6px;
}
.site-footer a { display: block; color: #cbd5e1; margin: 8px 0; }
.footer-bottom {
    margin-top: 34px;
    padding: 18px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.10);
}
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--green);
    box-shadow: 0 14px 35px rgba(15,157,88,0.35);
    z-index: 55;
    font-size: 28px;
    font-weight: 900;
}
html[dir="rtl"] .whatsapp-float { right: auto; left: 22px; }
.security-line {
    display: inline-flex;
    max-width: 760px;
    padding: 12px 18px;
    border-radius: 18px;
    color: #073b2c;
    background: rgba(15,157,88,0.10);
    border: 1px solid rgba(15,157,88,0.22);
    font-weight: 800;
    margin-top: 8px;
}
.spaced-text { margin-bottom: 22px; }
.about-split { align-items: start; }
.about-info-card .strong-line {
    font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', Tahoma, serif;
    font-size: 31px;
    color: var(--blue-dark);
    margin-bottom: 2px;
    line-height: 1.7;
}
.about-info-card strong { font-weight: 900; }
.muted-english { color: #4c5f7b; margin-top: 0; font-size: 20px; }
.info-note {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f5f8ff;
    border: 1px solid #d7e5ff;
}

/* Animation */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .75s ease, transform .75s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-2 { transition-delay: .12s; }
.float-soft { animation: floatSoft 5s ease-in-out infinite; }
.feature-card, .pricing-card, .demo-card, .big-card, .info-card, .contact-card, .shot-card, .demo-mini-card, .dashboard-preview {
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover, .pricing-card:hover, .demo-card:hover, .big-card:hover, .info-card:hover, .contact-card:hover, .shot-card:hover, .demo-mini-card:hover, .dashboard-preview:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(13, 27, 42, 0.16);
}
@keyframes floatSoft {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 1024px) {
    .nav-wrap { flex-wrap: wrap; padding: 14px 0; }
    .menu-toggle { display: grid; place-items: center; margin-left: auto; }
    html[dir="rtl"] .menu-toggle { margin-left: 0; margin-right: auto; }
    .main-nav, .nav-actions { display: none; width: 100%; }
    .main-nav.open, .nav-actions.open { display: flex; }
    .main-nav { flex-direction: column; align-items: stretch; }
    .main-nav a { border-radius: 14px; background: #f8fbff; }
    .nav-actions { justify-content: center; padding-bottom: 10px; }
    .hero-grid, .two-cards, .demo-grid, .split, .contact-grid, .demo-login-grid { grid-template-columns: 1fr; }
    .features-grid, .pricing-grid, .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding-top: 54px; }
    .hero-panel { order: -1; }
}
@media (max-width: 700px) {
    .container { width: min(100% - 22px, 1180px); }
    .brand { min-width: auto; }
    .brand-text strong { font-size: 22px; }
    .brand-text .brand-ur,
    .brand-text small:last-child { display: none; }
    .hero h1, .page-hero h1 { font-size: 34px; letter-spacing: -0.3px; }
    html[dir="rtl"] .hero h1, html[dir="rtl"] .page-hero h1 { font-size: 34px; line-height: 1.7 !important; }
    html[dir="rtl"] .hero p,
    html[dir="rtl"] .page-hero p,
    html[dir="rtl"] .section p,
    html[dir="rtl"] .feature-card p,
    html[dir="rtl"] .pricing-card li,
    html[dir="rtl"] .demo-card p,
    html[dir="rtl"] .info-card p,
    html[dir="rtl"] .contact-card p,
    html[dir="rtl"] .credential-box p { font-size: 16px; }
    .hero p, .page-hero p { font-size: 16px; }
    .section, .page-hero { padding: 52px 0; }
    .features-grid, .pricing-grid, .screenshot-grid, .stats-row { grid-template-columns: 1fr; }
    .big-card, .feature-card, .pricing-card, .demo-card, .dashboard-preview, .demo-mini-card { border-radius: 20px; padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
    html[dir="rtl"] .whatsapp-float { right: auto; left: 16px; }
    .security-line { display: block; width: 100%; }
}


/* =========================================================
   CMG Educate v4 Urdu readability and home page polish
   Important: Nastaliq is disabled for large headings to prevent overlap.
   ========================================================= */

html[dir="rtl"] body,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] li,
html[dir="rtl"] span,
html[dir="rtl"] small,
html[dir="rtl"] strong,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] button,
html[dir="rtl"] .btn,
html[dir="rtl"] .badge,
html[dir="rtl"] .main-nav a,
html[dir="rtl"] .card-label,
html[dir="rtl"] .trust-row,
html[dir="rtl"] .preview-card,
html[dir="rtl"] .security-line,
html[dir="rtl"] .feature-card p,
html[dir="rtl"] .pricing-card li,
html[dir="rtl"] .demo-card p,
html[dir="rtl"] .section p,
html[dir="rtl"] .page-hero p,
html[dir="rtl"] .hero p {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .hero h1,
html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .section h2,
html[dir="rtl"] .feature-card h3,
html[dir="rtl"] .pricing-card h3,
html[dir="rtl"] .demo-card h2 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
}

/* Hero polish */
.hero-polished {
    padding: 78px 0 68px;
}

.hero-title-clean {
    margin: 0 0 18px;
    max-width: 760px;
}

html[dir="rtl"] .hero-title-clean {
    line-height: 1.28 !important;
}

.hero-title-clean span {
    display: block;
}

.hero-brand-name {
    color: var(--blue-dark);
    font-weight: 900;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.2;
    margin-bottom: 6px;
}

.hero-main-line {
    color: #0d1b2a;
    font-weight: 900;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.28;
}

html[dir="rtl"] .hero-brand-name,
html[dir="rtl"] .hero-main-line {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
}

.hero-lead {
    max-width: 720px;
}

html[dir="rtl"] .hero-lead {
    font-size: 18px !important;
    line-height: 2.05 !important;
}

.clean-trust {
    margin-top: 10px;
}

.clean-trust span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.70);
    border: 1px solid rgba(11,94,215,0.10);
}

/* Portal choice cards readability */
.portal-choice-section {
    padding-top: 74px;
    padding-bottom: 74px;
}

.portal-cards-clean {
    margin-top: 28px;
}

.portal-cards-clean .big-card {
    min-height: 300px;
    padding: 38px;
}

html[dir="rtl"] .portal-cards-clean .big-card h2 {
    color: #ffffff;
    font-size: clamp(30px, 3.1vw, 44px);
    line-height: 1.45 !important;
    font-weight: 900;
    margin-bottom: 14px;
}

html[dir="rtl"] .portal-cards-clean .big-card p {
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: 18px !important;
    line-height: 2.05 !important;
    max-width: 560px;
}

.portal-cards-clean .card-label {
    color: #fff;
    background: rgba(255,255,255,0.22);
}

.portal-cards-clean .btn {
    position: relative;
    z-index: 2;
}

.school-card .btn-blue,
.madrasa-card .btn-green {
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255,255,255,0.30);
    color: #fff;
    box-shadow: none;
}

.school-card .btn-blue:hover,
.madrasa-card .btn-green:hover {
    background: rgba(255,255,255,0.30);
}

/* Section headings readable */
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .section h2 {
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.45 !important;
    font-weight: 900;
}

html[dir="rtl"] .section-head p {
    font-size: 18px !important;
    line-height: 2.1 !important;
}

/* Cards readable */
html[dir="rtl"] .feature-card h3,
html[dir="rtl"] .pricing-card h3,
html[dir="rtl"] .demo-card h2 {
    line-height: 1.55 !important;
    font-weight: 900;
}

html[dir="rtl"] .feature-card p,
html[dir="rtl"] .pricing-card li,
html[dir="rtl"] .demo-card p {
    line-height: 2 !important;
}

/* Top brand readable */
html[dir="rtl"] .brand-text .brand-ur {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

html[dir="rtl"] .brand-text small:last-child {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

/* Mobile */
@media (max-width: 1024px) {
    .hero-polished {
        padding-top: 54px;
    }

    .hero-title-clean {
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    .hero-brand-name {
        font-size: 34px;
    }

    .hero-main-line {
        font-size: 27px;
        line-height: 1.45;
    }

    html[dir="rtl"] .hero-lead,
    html[dir="rtl"] .portal-cards-clean .big-card p,
    html[dir="rtl"] .section-head p {
        font-size: 16px !important;
    }

    html[dir="rtl"] .portal-cards-clean .big-card h2 {
        font-size: 30px;
    }

    html[dir="rtl"] .section-head h2,
    html[dir="rtl"] .section h2 {
        font-size: 30px;
    }
}


/* =========================================================
   CMG Educate v5 School/Madrasa page polish
   ========================================================= */

.portal-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    color: #fff;
}

.portal-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background:
        radial-gradient(circle at 20% 20%, #ffffff 0, transparent 24%),
        radial-gradient(circle at 80% 80%, #ffffff 0, transparent 26%);
}

.portal-hero-school {
    background: linear-gradient(135deg, #082b63, #0b5ed7 55%, #1677ff);
}

.portal-hero-madrasa {
    background: linear-gradient(135deg, #064a32, #0f9d58 55%, #18b86b);
}

.portal-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 42px;
}

.portal-hero-content h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(40px, 4.2vw, 64px);
    line-height: 1.16;
    font-weight: 900;
}

html[dir="rtl"] .portal-hero-content h1 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    line-height: 1.38 !important;
    font-size: clamp(38px, 4vw, 58px);
}

.portal-hero-content p {
    max-width: 760px;
    color: rgba(255, 255, 255, .92);
    font-size: 18px;
}

html[dir="rtl"] .portal-hero-content p {
    font-size: 19px !important;
    line-height: 2.15 !important;
}

.portal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.light-outline {
    color: #fff;
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.28);
}

.portal-dashboard-card {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.65);
    color: var(--dark);
    box-shadow: 0 28px 70px rgba(0,0,0,.18);
}

.portal-dashboard-card h3 {
    margin: 0 0 18px;
    font-size: 24px;
    color: var(--blue-dark);
}

html[dir="rtl"] .portal-dashboard-card h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 28px;
    line-height: 1.5;
}

.portal-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.portal-stat-grid div {
    padding: 18px;
    border-radius: 18px;
    background: #f7fbff;
    border: 1px solid #d9e8ff;
}

.portal-stat-grid strong {
    display: block;
    font-size: 28px;
    color: var(--blue-dark);
    line-height: 1;
}

.portal-stat-grid small {
    color: var(--muted);
    font-weight: 800;
}

.madrasa-dashboard-card .portal-stat-grid div {
    background: #f3fff8;
    border-color: #cbf4dc;
}

.madrasa-dashboard-card h3,
.madrasa-dashboard-card .portal-stat-grid strong {
    color: #075c37;
}

.portal-intro-section {
    background: #fff;
}

.portal-check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.portal-check-list span {
    padding: 10px 14px;
    border-radius: 999px;
    background: #f1f6ff;
    border: 1px solid #dce9ff;
    color: var(--blue-dark);
    font-weight: 800;
}

html[dir="rtl"] .portal-check-list span {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
}

.refined-phone {
    transform: none;
}

.modules-section {
    padding-top: 82px;
    padding-bottom: 86px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.module-card {
    min-height: 245px;
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #dce6f5;
    box-shadow: 0 14px 38px rgba(13, 27, 42, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.module-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 52px rgba(13, 27, 42, .15);
    border-color: rgba(11, 94, 215, .28);
}

.module-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eef5ff;
    font-size: 26px;
    margin-bottom: 18px;
}

.module-card h3 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 22px;
    line-height: 1.35;
    font-weight: 900;
}

.module-card p {
    margin: 0;
    color: var(--muted);
}

html[dir="rtl"] .module-card h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 25px;
    line-height: 1.65 !important;
}

html[dir="rtl"] .module-card p {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 17px !important;
    line-height: 2.05 !important;
}

.portal-cta {
    background:
        radial-gradient(circle at top right, rgba(11,94,215,.10), transparent 30%),
        radial-gradient(circle at bottom left, rgba(231,38,53,.10), transparent 32%),
        #ffffff;
}

.portal-cta h2 {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .portal-hero-grid {
        grid-template-columns: 1fr;
    }

    .modules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-hero-panel {
        order: -1;
    }
}

@media (max-width: 700px) {
    .portal-hero {
        padding: 58px 0;
    }

    .portal-hero-content h1,
    html[dir="rtl"] .portal-hero-content h1 {
        font-size: 34px;
        line-height: 1.45 !important;
    }

    .portal-dashboard-card {
        padding: 22px;
        border-radius: 24px;
    }

    .portal-stat-grid {
        grid-template-columns: 1fr;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .module-card {
        min-height: auto;
        padding: 22px;
    }
}


/* =========================================================
   CMG Educate v6 About page polish + public wording cleanup
   ========================================================= */

.about-hero-new {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 92px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 28%),
        radial-gradient(circle at 85% 85%, rgba(255,255,255,.13), transparent 28%),
        linear-gradient(135deg, #082b63, #0b5ed7 58%, #1677ff);
}

.about-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: center;
}

.about-hero-content h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(40px, 4.2vw, 62px);
    line-height: 1.16;
    font-weight: 900;
}

html[dir="rtl"] .about-hero-content h1 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    line-height: 1.4 !important;
    font-size: clamp(38px, 4vw, 56px);
}

.about-hero-content p {
    max-width: 780px;
    color: rgba(255,255,255,.92);
    font-size: 18px;
}

html[dir="rtl"] .about-hero-content p {
    font-size: 19px !important;
    line-height: 2.15 !important;
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.about-brand-card {
    padding: 34px;
    border-radius: 30px;
    background: rgba(255,255,255,.94);
    color: var(--dark);
    box-shadow: 0 28px 70px rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.55);
}

.about-brand-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue), var(--red));
    margin-bottom: 18px;
}

.about-brand-card h3 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 32px;
    line-height: 1.5;
}

html[dir="rtl"] .about-brand-card h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
}

.about-brand-card strong {
    display: block;
    color: var(--dark);
    font-size: 22px;
    margin-bottom: 12px;
}

.about-brand-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.about-story-section {
    background:
        radial-gradient(circle at top right, rgba(11,94,215,.08), transparent 28%),
        #ffffff;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 30px;
    align-items: start;
}

.about-story-card,
.about-info-panel {
    background: #fff;
    border: 1px solid #dce6f5;
    border-radius: 28px;
    box-shadow: 0 16px 42px rgba(13,27,42,.08);
    padding: 34px;
}

.about-story-card h2 {
    margin-top: 0;
}

html[dir="rtl"] .about-story-card p {
    font-size: 18px !important;
    line-height: 2.25 !important;
}

.about-info-panel h3 {
    margin-top: 0;
    color: var(--blue-dark);
    font-size: 30px;
}

html[dir="rtl"] .about-info-panel h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    line-height: 1.5;
}

.info-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
}

html[dir="rtl"] .info-row {
    grid-template-columns: 120px 1fr;
}

.info-row span {
    color: var(--muted);
    font-weight: 800;
}

.info-row strong {
    color: var(--dark);
    word-break: break-word;
}

.info-note {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f5f8ff;
    border: 1px solid #d7e5ff;
    color: var(--blue-dark) !important;
    font-weight: 700;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.about-value-card {
    min-height: 245px;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #dce6f5;
    box-shadow: 0 14px 38px rgba(13,27,42,.08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.about-value-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 52px rgba(13,27,42,.15);
    border-color: rgba(11,94,215,.28);
}

.value-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eef5ff;
    font-size: 26px;
    margin-bottom: 18px;
}

.about-value-card h3 {
    margin: 0 0 10px;
    font-size: 23px;
    color: var(--dark);
}

html[dir="rtl"] .about-value-card h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 26px;
    line-height: 1.6;
}

.about-value-card p {
    margin: 0;
    color: var(--muted);
}

html[dir="rtl"] .about-value-card p {
    font-size: 17px !important;
    line-height: 2.05 !important;
}

.about-services-section {
    background: #fff;
}

.about-service-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.about-service-strip span {
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: #eef5ff;
    border: 1px solid #d7e5ff;
    font-weight: 800;
}

html[dir="rtl"] .about-service-strip span {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
    font-size: 17px;
}

.about-cta-section {
    background:
        radial-gradient(circle at top right, rgba(11,94,215,.10), transparent 30%),
        radial-gradient(circle at bottom left, rgba(231,38,53,.10), transparent 32%),
        #ffffff;
}

/* Public wording cleanup helper */
html[dir="rtl"] .module-card h3,
html[dir="rtl"] .about-value-card h3,
html[dir="rtl"] .about-story-card h2,
html[dir="rtl"] .about-info-panel h3 {
    letter-spacing: 0 !important;
}

@media (max-width: 1024px) {
    .about-hero-grid,
    .about-story-grid {
        grid-template-columns: 1fr;
    }

    .about-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .about-hero-new {
        padding: 58px 0;
    }

    .about-hero-content h1,
    html[dir="rtl"] .about-hero-content h1 {
        font-size: 34px;
        line-height: 1.5 !important;
    }

    .about-story-card,
    .about-info-panel,
    .about-brand-card {
        padding: 22px;
        border-radius: 22px;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .info-row,
    html[dir="rtl"] .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


/* =========================================================
   CMG Educate v7 Logo + About page colorful polish
   ========================================================= */

.brand-logo-box {
    position: relative;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
}

.brand-logo-img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    border-radius: 16px;
}

.brand-with-logo .brand-mark {
    position: absolute;
    inset: 0;
}

.delay-3 {
    transition-delay: .22s;
}

/* Hide old about styles if present */
.about-hero-new,
.about-story-section,
.about-values-section,
.about-services-section,
.about-cta-section {
    display: none;
}

/* About Hero v7 */
.about-hero-v7 {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8,43,99,.98), rgba(11,94,215,.96) 54%, rgba(231,38,53,.88)),
        radial-gradient(circle at 12% 22%, rgba(255,255,255,.30), transparent 28%);
}

.about-hero-v7:after {
    content: "";
    position: absolute;
    inset: auto -10% -35% -10%;
    height: 260px;
    background: rgba(255,255,255,.12);
    filter: blur(40px);
    transform: rotate(-2deg);
}

.about-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(26px);
    opacity: .35;
    animation: aboutGlowMove 7s ease-in-out infinite;
}

.about-glow-one {
    top: -120px;
    right: 8%;
    background: #00a6ff;
}

.about-glow-two {
    bottom: -160px;
    left: 12%;
    background: #ff6b6b;
    animation-delay: 1.2s;
}

.about-hero-v7-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 44px;
}

.about-hero-v7-content h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(40px, 4.3vw, 66px);
    line-height: 1.16;
    font-weight: 900;
}

html[dir="rtl"] .about-hero-v7-content h1 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: clamp(38px, 4.1vw, 60px);
    line-height: 1.38 !important;
}

.about-hero-v7-content p {
    color: rgba(255,255,255,.92);
    max-width: 780px;
    font-size: 19px;
}

html[dir="rtl"] .about-hero-v7-content p {
    font-size: 19px !important;
    line-height: 2.15 !important;
}

.about-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.about-hero-points span {
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24);
    font-weight: 800;
}

html[dir="rtl"] .about-hero-points span {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.about-logo-showcase {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.logo-orbit {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    border: 1px dashed rgba(255,255,255,.35);
    animation: orbitSpin 20s linear infinite;
}

.logo-orbit:before,
.logo-orbit:after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
}

.logo-orbit:before { top: 20px; right: 55px; }
.logo-orbit:after { bottom: 30px; left: 70px; }

.logo-card-v7 {
    position: relative;
    z-index: 2;
    width: min(370px, 100%);
    padding: 34px;
    border-radius: 34px;
    text-align: center;
    color: var(--dark);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.70);
    box-shadow: 0 30px 80px rgba(0,0,0,.22);
}

.logo-card-v7 img {
    display: block;
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.logo-fallback-v7 {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 30px;
    color: #fff;
    font-weight: 900;
    font-size: 36px;
    background: linear-gradient(135deg, var(--blue), var(--red));
}

.logo-card-v7 h3 {
    margin: 0 0 4px;
    color: var(--blue-dark);
    font-size: 34px;
    line-height: 1.5;
}

html[dir="rtl"] .logo-card-v7 h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
}

.logo-card-v7 strong {
    display: block;
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 12px;
}

.logo-card-v7 p {
    margin: 0;
    color: var(--muted);
}

/* Highlight cards */
.about-wave-section {
    position: relative;
    z-index: 3;
    margin-top: -46px;
    padding-bottom: 26px;
}

.about-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.about-highlight-card {
    min-height: 230px;
    padding: 28px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #dce6f5;
    box-shadow: 0 20px 50px rgba(13,27,42,.13);
    transition: transform .25s ease, box-shadow .25s ease;
}

.about-highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 65px rgba(13,27,42,.18);
}

.highlight-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eef5ff;
    font-size: 28px;
    margin-bottom: 16px;
}

.about-highlight-card h3 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 24px;
}

html[dir="rtl"] .about-highlight-card h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 27px;
    line-height: 1.55;
}

.about-highlight-card p {
    margin: 0;
    color: var(--muted);
}

html[dir="rtl"] .about-highlight-card p {
    font-size: 17px !important;
    line-height: 2.05 !important;
}

/* Story */
.about-story-v7 {
    background:
        radial-gradient(circle at top right, rgba(11,94,215,.10), transparent 30%),
        radial-gradient(circle at bottom left, rgba(15,157,88,.10), transparent 30%),
        #f5f8ff;
}

.about-story-v7-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: start;
}

.about-story-v7-text,
.about-info-v7 {
    padding: 34px;
    border-radius: 30px;
    background: rgba(255,255,255,.92);
    border: 1px solid #dce6f5;
    box-shadow: 0 18px 50px rgba(13,27,42,.10);
}

.about-story-v7-text h2 {
    margin-top: 0;
}

html[dir="rtl"] .about-story-v7-text p {
    font-size: 18px !important;
    line-height: 2.25 !important;
}

.about-info-v7 {
    background:
        linear-gradient(180deg, #ffffff, #f7fbff);
}

.about-info-v7 h3 {
    margin-top: 0;
    color: var(--blue-dark);
    font-size: 30px;
}

html[dir="rtl"] .about-info-v7 h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
}

.info-tile {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: #f5f8ff;
    border: 1px solid #dbe8ff;
}

.info-tile span {
    display: block;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 4px;
}

.info-tile strong {
    color: var(--dark);
    word-break: break-word;
}

/* Color section */
.about-color-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 32%),
        linear-gradient(135deg, #082b63, #0b5ed7 50%, #0f9d58);
}

.about-color-section .section-head h2,
.about-color-section .section-head p {
    color: #fff;
}

.about-values-grid-v7 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.value-card-v7 {
    min-height: 255px;
    padding: 26px;
    border-radius: 24px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(12px);
    transition: transform .25s ease, background .25s ease;
}

.value-card-v7:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,.18);
}

.value-icon-v7 {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,.18);
    font-size: 28px;
    margin-bottom: 18px;
}

.value-card-v7 h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 23px;
}

html[dir="rtl"] .value-card-v7 h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 26px;
    line-height: 1.6;
}

.value-card-v7 p {
    margin: 0;
    color: rgba(255,255,255,.88);
}

html[dir="rtl"] .value-card-v7 p {
    font-size: 17px !important;
    line-height: 2.05 !important;
}

/* Service chips */
.about-services-v7 {
    background: #fff;
}

.service-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.service-chip-cloud span {
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: #eef5ff;
    border: 1px solid #d7e5ff;
    font-weight: 900;
    transition: transform .2s ease, background .2s ease;
}

.service-chip-cloud span:hover {
    transform: translateY(-4px);
    background: #dfeeff;
}

html[dir="rtl"] .service-chip-cloud span {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
    font-size: 17px;
}

.about-final-cta {
    text-align: center;
    padding: 76px 0;
    background:
        radial-gradient(circle at top right, rgba(231,38,53,.11), transparent 30%),
        radial-gradient(circle at bottom left, rgba(11,94,215,.12), transparent 32%),
        #f8fbff;
}

.about-final-cta h2 {
    margin: 0 auto 12px;
    max-width: 850px;
    font-size: clamp(30px, 3.6vw, 48px);
}

html[dir="rtl"] .about-final-cta h2 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    line-height: 1.45;
}

.about-final-cta p {
    max-width: 720px;
    margin: 0 auto 24px;
    color: var(--muted);
}

@keyframes aboutGlowMove {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(30px) scale(1.08); }
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
    .about-values-grid-v7 {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-hero-v7-grid,
    .about-story-v7-grid {
        grid-template-columns: 1fr;
    }

    .about-logo-showcase {
        min-height: 320px;
    }
}

@media (max-width: 800px) {
    .about-highlight-grid {
        grid-template-columns: 1fr;
    }

    .about-values-grid-v7 {
        grid-template-columns: 1fr;
    }

    .about-hero-v7 {
        padding: 62px 0 86px;
    }

    .about-hero-v7-content h1,
    html[dir="rtl"] .about-hero-v7-content h1 {
        font-size: 34px;
    }

    .about-story-v7-text,
    .about-info-v7,
    .logo-card-v7 {
        padding: 24px;
        border-radius: 24px;
    }

    .logo-orbit {
        width: 260px;
        height: 260px;
    }
}


/* Phase 2A dynamic packages */
.package-meta{display:grid;gap:7px;margin:14px 0 4px}.package-meta span{display:inline-flex;padding:8px 10px;border-radius:12px;background:#f5f8ff;border:1px solid #dbe8ff;color:#28466f;font-weight:800;font-size:13px}.empty-packages{grid-column:1/-1;text-align:center;background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:30px;color:#617086;font-weight:800}


/* Package feature formatting added in Phase 2A */
.pricing-card li.package-feature-bold,
.pricing-card li.package-feature-bold strong {
    color: var(--dark);
    font-weight: 900;
}

.pricing-card li strong {
    color: var(--dark);
    font-weight: 900;
}

html[dir="rtl"] .pricing-card li.package-feature-bold,
html[dir="rtl"] .pricing-card li.package-feature-bold strong,
html[dir="rtl"] .pricing-card li strong {
    font-weight: 900;
}


/* =========================================================
   CMG Educate v8 Hosting-style professional pricing cards
   ========================================================= */
.pricing-grid {
    align-items: stretch;
}

.hosting-pricing-card {
    position: relative;
    padding: 0 !important;
    border-radius: 4px !important;
    overflow: visible;
    background: #fff;
    border: 1px solid #dfe6ee !important;
    box-shadow: 0 12px 28px rgba(13, 27, 42, 0.08) !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hosting-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(13, 27, 42, 0.16) !important;
    border-color: rgba(11, 94, 215, .28) !important;
}

.hosting-pricing-card.hosting-featured {
    border: 1px solid #d9edf3 !important;
    transform: translateY(-16px);
    box-shadow: 0 28px 70px rgba(13, 27, 42, 0.18) !important;
    z-index: 2;
}

.hosting-pricing-card.hosting-featured:hover {
    transform: translateY(-22px);
}

.hosting-ribbon {
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
    min-width: 150px;
    padding: 8px 18px;
    color: #fff;
    text-align: center;
    font-weight: 900;
    line-height: 1.1;
    background: #7ac70c;
    border-radius: 2px 2px 0 0;
    z-index: 3;
    box-shadow: 0 8px 18px rgba(122, 199, 12, .25);
}

.hosting-ribbon:before,
.hosting-ribbon:after {
    content: "";
    position: absolute;
    bottom: -12px;
    border-top: 12px solid #5ca108;
}
.hosting-ribbon:before { left: 0; border-left: 14px solid transparent; }
.hosting-ribbon:after { right: 0; border-right: 14px solid transparent; }

.hosting-plan-title {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px 14px;
    text-align: center;
    background: #fff;
}

.hosting-plan-title h3 {
    margin: 0 !important;
    color: #18283a;
    font-size: 22px !important;
    line-height: 1.25 !important;
    font-weight: 900;
    text-transform: uppercase;
}

.hosting-price-panel {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 25px 18px 42px;
    background: #5f6a71;
    overflow: hidden;
}

.hosting-featured .hosting-price-panel {
    background: linear-gradient(180deg, #8bd11b, #6fc40c);
}

.hosting-price-main {
    display: block;
    font-size: clamp(34px, 3.4vw, 52px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1px;
    color: #fff;
}

.hosting-price-sub {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.92);
    font-weight: 800;
}

.hosting-limit-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.hosting-limit-row span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 12px;
    font-weight: 900;
}

.hosting-signup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    min-height: 46px;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 4px;
    color: #4f5d65;
    background: #fff;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0,0,0,.10);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hosting-signup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
}
.hosting-featured .hosting-signup-btn { color: #69b80a; }

.hosting-notch {
    width: 100%;
    height: 22px;
    background: #5f6a71;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    margin-top: -1px;
}
.hosting-featured .hosting-notch { background: #6fc40c; }

.hosting-feature-list {
    flex: 1;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
}

.hosting-feature-list li {
    position: relative;
    list-style: none !important;
    margin: 0 !important;
    padding: 15px 18px !important;
    text-align: center;
    border-top: 1px solid #edf0f2;
    color: #1a2a38 !important;
    font-size: 15px;
    line-height: 1.55 !important;
    font-style: italic;
}

.hosting-feature-list li:before { display: none !important; content: none !important; }
.hosting-feature-list li strong,
.hosting-feature-list li.package-feature-bold,
.hosting-feature-list li.package-feature-bold strong {
    color: #0f2336 !important;
    font-weight: 900 !important;
}

html[dir="rtl"] .hosting-plan-title h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    text-transform: none;
    font-size: 26px !important;
    line-height: 1.5 !important;
}

html[dir="rtl"] .hosting-price-main,
html[dir="rtl"] .hosting-price-sub,
html[dir="rtl"] .hosting-limit-row span,
html[dir="rtl"] .hosting-signup-btn,
html[dir="rtl"] .hosting-ribbon,
html[dir="rtl"] .hosting-feature-list li {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

html[dir="rtl"] .hosting-price-main {
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.25;
}

html[dir="rtl"] .hosting-feature-list li {
    font-size: 16px !important;
    line-height: 1.9 !important;
    font-style: normal;
}

/* Wider package layout like professional hosting tables */
@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
}
@media (min-width: 900px) and (max-width: 1199px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 899px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }
    .hosting-pricing-card.hosting-featured {
        transform: none;
        margin-top: 28px;
    }
    .hosting-pricing-card.hosting-featured:hover {
        transform: translateY(-8px);
    }
}


/* =========================================================
   CMG Educate v9 header + pricing layout repair
   Fixes language mixing and broken hosting-package sizing.
   ========================================================= */

/* Header layout repair */
.site-header .nav-wrap {
    min-height: 86px;
    gap: 18px;
}

.brand.brand-with-logo {
    min-width: 260px;
    max-width: 390px;
    flex-shrink: 0;
    align-items: center;
}

.brand-logo-box {
    width: 68px !important;
    height: 68px !important;
    flex: 0 0 68px !important;
    display: grid;
    place-items: center;
    position: relative;
}

.brand-logo-img {
    width: 68px !important;
    height: 68px !important;
    object-fit: contain;
    border-radius: 12px;
}

.brand-fallback,
.brand-with-logo .brand-mark {
    width: 58px !important;
    height: 58px !important;
    font-size: 16px !important;
}

.brand-text {
    min-width: 0;
}

.brand-text .brand-title {
    display: block;
    color: var(--dark);
    font-weight: 900;
    line-height: 1.15;
    margin: 0;
}

.brand-title-en {
    font-family: Arial, sans-serif !important;
    font-size: 32px !important;
    letter-spacing: 0 !important;
}

.brand-title-ur {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 26px !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
}

.brand-text small {
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: var(--muted);
}

html[dir="rtl"] .brand-text {
    text-align: right;
}

html[dir="ltr"] .brand-text {
    text-align: left;
}

html[dir="rtl"] .brand-text small,
html[dir="rtl"] .main-nav a,
html[dir="rtl"] .nav-actions a {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
}

html[dir="ltr"] .brand-text small,
html[dir="ltr"] .main-nav a,
html[dir="ltr"] .nav-actions a {
    font-family: Arial, sans-serif !important;
}

.main-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.main-nav a {
    white-space: nowrap;
}

/* Pricing grid repair */
.pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 310px)) !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 30px !important;
    width: 100%;
}

.hosting-pricing-card {
    width: 100% !important;
    max-width: 310px !important;
    min-width: 0 !important;
    border: 1px solid #dce6f5 !important;
    border-radius: 8px !important;
    overflow: visible !important;
    background: #fff !important;
    box-shadow: 0 15px 40px rgba(13,27,42,.08) !important;
}

.hosting-pricing-card.hosting-featured {
    transform: translateY(-10px) !important;
    box-shadow: 0 24px 60px rgba(13,27,42,.16) !important;
}

.hosting-pricing-card.hosting-featured:hover {
    transform: translateY(-16px) !important;
}

.hosting-plan-title {
    min-height: 108px !important;
    padding: 20px 16px 16px !important;
}

.hosting-plan-title h3 {
    font-size: 21px !important;
    line-height: 1.28 !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
}

html[dir="rtl"] .hosting-plan-title h3 {
    font-size: 24px !important;
    line-height: 1.55 !important;
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
}

.hosting-price-panel {
    padding: 26px 16px 40px !important;
    min-height: 235px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hosting-price-main {
    max-width: 100%;
    font-size: 34px !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

html[dir="rtl"] .hosting-price-main {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 32px !important;
    line-height: 1.55 !important;
    font-weight: 900 !important;
}

html[dir="ltr"] .hosting-price-main {
    font-family: Arial, sans-serif !important;
    font-size: 34px !important;
    line-height: 1.18 !important;
}

.hosting-price-sub {
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.hosting-limit-row span {
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.hosting-signup-btn {
    margin-top: 16px !important;
    min-width: 132px !important;
    min-height: 44px !important;
    border-radius: 6px !important;
}

html[dir="rtl"] .hosting-signup-btn,
html[dir="rtl"] .hosting-ribbon,
html[dir="rtl"] .hosting-limit-row span,
html[dir="rtl"] .hosting-feature-list li {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
}

.hosting-feature-list li {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 16px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
}

html[dir="rtl"] .hosting-feature-list li {
    font-size: 16px !important;
    line-height: 1.85 !important;
}

.hosting-ribbon {
    top: -28px !important;
    min-width: 140px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
}

/* Remove older forced 5-column rules by overriding later */
@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 310px)) !important;
        gap: 30px !important;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 310px)) !important;
        gap: 28px !important;
    }
}

@media (max-width: 899px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 24px !important;
    }

    .hosting-pricing-card {
        max-width: 360px !important;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 700px) {
    .brand.brand-with-logo {
        min-width: 0;
        max-width: 230px;
    }

    .brand-logo-box {
        width: 54px !important;
        height: 54px !important;
        flex-basis: 54px !important;
    }

    .brand-logo-img {
        width: 54px !important;
        height: 54px !important;
    }

    .brand-title-en {
        font-size: 22px !important;
    }

    .brand-title-ur {
        font-size: 20px !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .hosting-pricing-card.hosting-featured,
    .hosting-pricing-card.hosting-featured:hover {
        transform: none !important;
        margin-top: 28px;
    }

    .hosting-price-main,
    html[dir="rtl"] .hosting-price-main,
    html[dir="ltr"] .hosting-price-main {
        font-size: 30px !important;
    }
}


/* =========================================================
   CMG Educate v10 Direct School Demo Page
   ========================================================= */
.direct-demo-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 88px;
    color: #fff;
    background:
        radial-gradient(circle at 14% 18%, rgba(255,255,255,.22), transparent 30%),
        radial-gradient(circle at 86% 88%, rgba(15,157,88,.35), transparent 30%),
        linear-gradient(135deg, #082b63, #0b5ed7 58%, #1677ff);
}

.direct-demo-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    filter: blur(30px);
    opacity: .32;
    animation: directDemoGlow 7s ease-in-out infinite;
}

.direct-demo-glow-one {
    top: -130px;
    right: 7%;
    background: #00a6ff;
}

.direct-demo-glow-two {
    bottom: -160px;
    left: 10%;
    background: #ff6b6b;
    animation-delay: 1.2s;
}

.direct-demo-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
}

.direct-demo-hero-content h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(40px, 4.2vw, 64px);
    line-height: 1.16;
    font-weight: 900;
}

html[dir="rtl"] .direct-demo-hero-content h1 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    line-height: 1.42 !important;
    font-size: clamp(38px, 4vw, 58px);
}

.direct-demo-hero-content p {
    max-width: 780px;
    color: rgba(255,255,255,.92);
    font-size: 19px;
}

html[dir="rtl"] .direct-demo-hero-content p {
    font-size: 19px !important;
    line-height: 2.12 !important;
}

.direct-demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.direct-demo-summary-card {
    padding: 34px;
    border-radius: 32px;
    color: var(--dark);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 28px 70px rgba(0,0,0,.18);
}

.demo-summary-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #eef5ff;
    font-size: 34px;
    margin-bottom: 16px;
}

.direct-demo-summary-card h3 {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-size: 30px;
}

html[dir="rtl"] .direct-demo-summary-card h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    line-height: 1.55;
}

.direct-demo-summary-card p {
    color: var(--muted);
    margin-bottom: 18px;
}

.demo-main-url {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f5f8ff;
    border: 1px solid #d9e8ff;
    color: var(--blue-dark);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.school-direct-demo-section {
    background:
        radial-gradient(circle at top right, rgba(11,94,215,.08), transparent 30%),
        #ffffff;
}

.direct-demo-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.direct-demo-card {
    min-height: 100%;
    padding: 26px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #dce6f5;
    box-shadow: 0 18px 50px rgba(13,27,42,.10);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.direct-demo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 66px rgba(13,27,42,.16);
    border-color: rgba(11,94,215,.28);
}

.direct-demo-card-top {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
}

html[dir="rtl"] .direct-demo-card-top {
    grid-template-columns: 1fr 60px;
}

html[dir="rtl"] .direct-demo-card-top .direct-demo-icon {
    order: 2;
}

.direct-demo-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eef5ff;
    font-size: 28px;
}

.direct-demo-card h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 24px;
    line-height: 1.35;
    font-weight: 900;
}

html[dir="rtl"] .direct-demo-card h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 27px;
    line-height: 1.55 !important;
}

.direct-demo-card p {
    margin: 0;
    color: var(--muted);
}

html[dir="rtl"] .direct-demo-card p {
    font-size: 16px !important;
    line-height: 2.05 !important;
}

.demo-credential-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.demo-credential-row {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #dce8fa;
}

html[dir="rtl"] .demo-credential-row {
    grid-template-columns: 90px 1fr auto;
}

.demo-credential-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.demo-credential-row strong {
    color: var(--dark);
    font-weight: 900;
    overflow-wrap: anywhere;
    direction: ltr;
    text-align: left;
}

.copy-btn {
    min-width: 56px;
    border: 0;
    border-radius: 999px;
    padding: 7px 10px;
    color: #fff;
    background: var(--blue);
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: var(--green);
}

.direct-demo-card-actions {
    margin-top: auto;
}

.demo-preview-polish {
    background: #f5f8ff;
}

.demo-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.demo-preview-card {
    min-height: 150px;
    padding: 24px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #dce6f5;
    box-shadow: 0 14px 38px rgba(13,27,42,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.demo-preview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(13,27,42,.14);
}

.demo-preview-card span {
    font-size: 32px;
    margin-bottom: 8px;
}

.demo-preview-card h3 {
    margin: 0;
    font-size: 22px;
    color: var(--dark);
}

html[dir="rtl"] .demo-preview-card h3 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 25px;
    line-height: 1.55;
}

.direct-demo-order-section {
    background:
        radial-gradient(circle at top right, rgba(231,38,53,.10), transparent 30%),
        radial-gradient(circle at bottom left, rgba(11,94,215,.12), transparent 32%),
        #ffffff;
}

@keyframes directDemoGlow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(28px) scale(1.08); }
}

@media (max-width: 1100px) {
    .direct-demo-hero-grid,
    .direct-demo-cards-grid {
        grid-template-columns: 1fr;
    }

    .demo-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .direct-demo-hero {
        padding: 58px 0;
    }

    .direct-demo-hero-content h1,
    html[dir="rtl"] .direct-demo-hero-content h1 {
        font-size: 34px;
        line-height: 1.5 !important;
    }

    .direct-demo-summary-card,
    .direct-demo-card {
        padding: 22px;
        border-radius: 22px;
    }

    .direct-demo-card-top,
    html[dir="rtl"] .direct-demo-card-top {
        grid-template-columns: 1fr;
    }

    html[dir="rtl"] .direct-demo-card-top .direct-demo-icon {
        order: 0;
    }

    .demo-credential-row,
    html[dir="rtl"] .demo-credential-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .copy-btn {
        width: 100%;
    }

    .demo-preview-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   CMG Educate v12 - Screenshots, portal icons, compact footer
   ========================================================= */

.home-screenshot-preview {
    padding: 24px;
    border-radius: 34px;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 24px 70px rgba(13,27,42,.16);
}

.home-preview-logo-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--blue-dark);
    font-weight: 900;
}

.home-preview-logo-line img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.home-shot-stack {
    display: grid;
    gap: 14px;
}

.home-shot-main {
    min-height: 260px;
}

.home-shot-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.home-shot-mini-grid .portal-shot-card {
    min-height: 145px;
}

.portal-screenshot-section,
.home-gallery-section {
    background:
        radial-gradient(circle at top right, rgba(11,94,215,.08), transparent 30%),
        radial-gradient(circle at bottom left, rgba(15,157,88,.08), transparent 30%),
        #ffffff;
}

.school-screenshot-section {
    background:
        radial-gradient(circle at top left, rgba(11,94,215,.10), transparent 30%),
        #ffffff;
}

.madrasa-screenshot-section {
    background:
        radial-gradient(circle at top left, rgba(15,157,88,.12), transparent 30%),
        #ffffff;
}

.portal-screens-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.portal-shot-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
    border: 1px solid #dce6f5;
    box-shadow: 0 16px 42px rgba(13,27,42,.10);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.portal-shot-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 60px rgba(13,27,42,.16);
    border-color: rgba(11,94,215,.28);
}

.portal-shot-card img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    display: block;
}

.portal-shot-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    color: var(--blue-dark);
    padding: 24px;
}

.portal-shot-card.shot-missing .portal-shot-placeholder {
    display: flex;
}

.portal-shot-placeholder span {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue), var(--red));
    box-shadow: 0 12px 28px rgba(11,94,215,.22);
}

.portal-shot-placeholder strong {
    font-size: 19px;
    line-height: 1.5;
}

.portal-visual-card {
    padding: 26px;
    border-radius: 34px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 28px 76px rgba(0,0,0,.18);
    color: var(--dark);
    position: relative;
    overflow: hidden;
}

.portal-visual-card:before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    right: -70px;
    top: -70px;
    background: rgba(11,94,215,.10);
}

.madrasa-visual-card:before {
    background: rgba(15,157,88,.12);
}

.portal-visual-logo {
    width: 90px;
    max-height: 74px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.portal-big-icon {
    position: absolute;
    top: 26px;
    left: 28px;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #eef5ff;
    font-size: 42px;
    z-index: 1;
}

html[dir="ltr"] .portal-big-icon {
    left: auto;
    right: 28px;
}

.madrasa-visual-card .portal-big-icon {
    background: #e9fff3;
}

.portal-visual-card h3 {
    margin: 30px 0 18px;
    color: var(--blue-dark);
    font-size: 28px;
    line-height: 1.45;
    position: relative;
    z-index: 1;
}

.madrasa-visual-card h3 {
    color: #075c37;
}

html[dir="rtl"] .portal-visual-card h3,
html[dir="rtl"] .portal-shot-placeholder strong {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
}

.portal-visual-shot .portal-shot-card {
    min-height: 230px;
}

.portal-visual-shot .portal-shot-card img {
    min-height: 230px;
}

/* Mobile order: content first, screenshot/visual second */
@media (max-width: 1024px) {
    .hero-panel,
    .portal-hero-panel {
        order: 2 !important;
    }

    .hero-content,
    .portal-hero-content {
        order: 1 !important;
    }

    .portal-screens-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .home-shot-mini-grid,
    .portal-screens-grid {
        grid-template-columns: 1fr;
    }

    .home-screenshot-preview,
    .portal-visual-card {
        padding: 20px;
        border-radius: 24px;
    }

    .portal-big-icon {
        width: 64px;
        height: 64px;
        font-size: 34px;
    }

    .portal-shot-card,
    .portal-shot-card img {
        min-height: 220px;
    }
}

/* Compact footer as requested */
.site-footer {
    display: none !important;
}

.cmg-clean-footer {
    background: #ffffff;
    color: #102033;
    border-top: 1px solid #dbe3ef;
}

.footer-gradient-line {
    height: 6px;
    background: linear-gradient(90deg, #0b5ed7, #0f9d58, #e72635);
}

.footer-clean-row {
    min-height: 58px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 14px;
}

.footer-clean-row strong {
    font-weight: 900;
}

.footer-clean-row a {
    color: #0b5ed7;
    font-weight: 800;
    text-decoration: none;
}

.footer-clean-row a:hover {
    text-decoration: underline;
}

.footer-sep {
    color: #9aa7b8;
}

html[dir="rtl"] .footer-clean-row {
    direction: ltr;
}

@media (max-width: 700px) {
    .footer-clean-row {
        flex-direction: column;
        gap: 5px;
        padding: 12px 0;
    }

    .footer-sep {
        display: none;
    }
}


/* =========================================================
   CMG Educate v13 Screenshot Preview Lightbox
   ========================================================= */

.portal-shot-card {
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.portal-shot-card::after {
    content: "🔍";
    position: absolute;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(8, 43, 99, 0.72);
    border: 1px solid rgba(255,255,255,0.40);
    opacity: 0;
    transform: translateY(-8px) scale(.92);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
    z-index: 3;
}

.portal-shot-card:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portal-shot-card.shot-missing {
    cursor: default;
}

.portal-shot-card.shot-missing::after {
    display: none;
}

.portal-shot-card img {
    transition: transform .28s ease, filter .28s ease;
}

.portal-shot-card:hover img {
    transform: scale(1.025);
    filter: saturate(1.06);
}

body.cmg-lightbox-open {
    overflow: hidden;
}

.cmg-shot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cmg-shot-lightbox.is-open {
    display: flex;
}

.cmg-shot-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 38, 0.84);
    backdrop-filter: blur(10px);
}

.cmg-shot-lightbox-dialog {
    position: relative;
    z-index: 2;
    width: min(1180px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(0,0,0,0.42);
    overflow: hidden;
    animation: cmgLightboxIn .22s ease-out;
}

.cmg-shot-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(13, 27, 42, 0.82);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}

html[dir="rtl"] .cmg-shot-lightbox-close {
    right: auto;
    left: 12px;
}

.cmg-shot-lightbox-close:hover {
    background: #e72635;
}

.cmg-shot-lightbox-image-wrap {
    width: 100%;
    max-height: calc(92vh - 64px);
    overflow: auto;
    background:
        linear-gradient(45deg, rgba(11,94,215,.05), rgba(15,157,88,.05)),
        #f5f8ff;
    display: grid;
    place-items: center;
    padding: 18px;
}

.cmg-shot-lightbox-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(92vh - 110px);
    border-radius: 14px;
    box-shadow: 0 18px 55px rgba(13,27,42,0.20);
    background: #fff;
}

.cmg-shot-lightbox-caption {
    padding: 12px 18px;
    text-align: center;
    color: #25364d;
    font-weight: 800;
    border-top: 1px solid #e2e8f0;
}

html[dir="rtl"] .cmg-shot-lightbox-caption {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
}

@keyframes cmgLightboxIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 700px) {
    .cmg-shot-lightbox {
        padding: 10px;
    }

    .cmg-shot-lightbox-dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 18px;
    }

    .cmg-shot-lightbox-image-wrap {
        max-height: calc(94vh - 58px);
        padding: 10px;
    }

    .cmg-shot-lightbox-img {
        max-height: calc(94vh - 98px);
    }

    .cmg-shot-lightbox-close {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .portal-shot-card::after {
        opacity: 1;
        transform: translateY(0) scale(.9);
        width: 36px;
        height: 36px;
    }
}


/* =========================================================
   CMG Educate v14 - Language based homepage screenshots + owner stats
   ========================================================= */

.home-impact-section {
    padding: 54px 0 42px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

.impact-kicker {
    text-align: center;
    color: #5c6c82;
    margin: 0 auto 22px;
    font-size: 16px;
}

.impact-stats-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 20px;
    border-radius: 26px;
    background: rgba(255,255,255,.96);
    border: 1px solid #e1e7ef;
    box-shadow: 0 18px 50px rgba(13,27,42,.10);
}

.impact-stat {
    text-align: center;
    padding: 8px 14px;
    border-left: 1px solid #edf2f7;
}

html[dir="ltr"] .impact-stat {
    border-left: 0;
    border-right: 1px solid #edf2f7;
}

.impact-stat:last-child,
html[dir="ltr"] .impact-stat:last-child {
    border-left: 0;
    border-right: 0;
}

.impact-stat strong {
    display: block;
    color: var(--blue-dark);
    font-size: 25px;
    line-height: 1.2;
    font-weight: 900;
}

.impact-stat span {
    display: block;
    color: #66778f;
    margin-top: 4px;
    font-weight: 700;
}

.city-chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.city-chip-row span {
    padding: 8px 15px;
    border-radius: 999px;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 14px rgba(13,27,42,.08);
    font-weight: 800;
}

.owner-benefits-section {
    background: #ffffff;
    padding-top: 80px;
}

.owner-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.owner-benefit-card {
    min-height: 190px;
    padding: 30px;
    border-radius: 22px;
    background: #fbfaf8;
    border: 1px solid #eef1f5;
    box-shadow: 0 12px 38px rgba(13,27,42,.08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.owner-benefit-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 56px rgba(13,27,42,.14);
    border-color: rgba(11,94,215,.18);
}

.owner-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 900;
}
.owner-icon.blue { color: #0b5ed7; background: #eaf3ff; }
.owner-icon.green { color: #0f9d58; background: #e8fff3; }
.owner-icon.purple { color: #8a3ffc; background: #f4edff; }
.owner-icon.gold { color: #c88600; background: #fff7df; }

.owner-benefit-card h3 {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-size: 23px;
    line-height: 1.4;
}

.owner-benefit-card p {
    margin: 0;
    color: var(--muted);
}

.portal-choice-icon {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 38px;
    z-index: 2;
}

html[dir="ltr"] .portal-choice-icon {
    left: auto;
    right: 28px;
}

html[dir="rtl"] .impact-kicker,
html[dir="rtl"] .impact-stat strong,
html[dir="rtl"] .impact-stat span,
html[dir="rtl"] .city-chip-row span,
html[dir="rtl"] .owner-benefit-card h3,
html[dir="rtl"] .owner-benefit-card p {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
}

html[dir="rtl"] .owner-benefit-card h3 {
    font-size: 26px;
    line-height: 1.7;
}

html[dir="rtl"] .owner-benefit-card p {
    font-size: 17px;
    line-height: 2.05;
}

@media (max-width: 1024px) {
    .impact-stats-card {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .impact-stat,
    html[dir="ltr"] .impact-stat {
        border: 0;
        border-radius: 18px;
        background: #f8fbff;
    }
}

@media (max-width: 700px) {
    .impact-stats-card,
    .owner-benefits-grid {
        grid-template-columns: 1fr;
    }
    .home-impact-section {
        padding: 42px 0 32px;
    }
    .owner-benefit-card {
        padding: 24px;
    }
    .portal-choice-icon {
        width: 58px;
        height: 58px;
        font-size: 30px;
        top: 22px;
        left: 22px;
    }
    html[dir="ltr"] .portal-choice-icon {
        left: auto;
        right: 22px;
    }
}


/* =========================================================
   CMG Educate v15 Home, Contact, Testimonials, Admin polish
   ========================================================= */

.screenshot-secondary-head {
    margin-top: 70px;
}

.secondary-screens-grid {
    margin-top: 10px;
}

.owner-benefits-expanded {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testimonials-section {
    background:
        radial-gradient(circle at top right, rgba(231,38,53,.08), transparent 34%),
        radial-gradient(circle at bottom left, rgba(11,94,215,.08), transparent 34%),
        #fff7f8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.testimonial-card {
    position: relative;
    min-height: 300px;
    padding: 32px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(15,157,88,.18);
    box-shadow: 0 18px 48px rgba(13,27,42,.10);
    transition: transform .25s ease, box-shadow .25s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(13,27,42,.16);
}

.quote-mark {
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(15,157,88,.28);
    font-size: 64px;
    line-height: 1;
    font-family: Georgia, serif;
}

html[dir="rtl"] .quote-mark {
    right: auto;
    left: 22px;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    margin-top: 34px;
    color: #23364e;
}

html[dir="rtl"] .testimonial-card p {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 2.15 !important;
}

.testimonial-person {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-person span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #0f7c48;
    background: #e8f8ee;
    font-weight: 900;
    font-size: 22px;
}

.testimonial-person strong {
    display: block;
    color: #0d1b2a;
    font-weight: 900;
}

.testimonial-person small {
    display: block;
    color: var(--muted);
}

html[dir="rtl"] .testimonial-person strong,
html[dir="rtl"] .testimonial-person small {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
}

/* Contact page completion */
.contact-complete-section {
    background:
        radial-gradient(circle at top right, rgba(11,94,215,.08), transparent 30%),
        radial-gradient(circle at bottom left, rgba(231,38,53,.08), transparent 32%),
        #fff;
}

.contact-form-intro {
    color: var(--muted);
    margin-top: -8px;
}

.form-success,
.form-error {
    padding: 13px 16px;
    border-radius: 14px;
    font-weight: 800;
    line-height: 1.7;
}

.form-success {
    color: #087443;
    background: #ecfff4;
    border: 1px solid #b9f5d0;
}

.form-error {
    color: #b42318;
    background: #fff0f0;
    border: 1px solid #ffd2cf;
}

.contact-card a {
    color: var(--blue);
    font-weight: 800;
}

.contact-info-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 20px;
    background: #f5f8ff;
    border: 1px solid #d7e5ff;
}

.contact-info-box h3 {
    margin-top: 0;
    color: var(--blue-dark);
}

.contact-info-box ul {
    margin: 0;
    padding-inline-start: 22px;
}

.contact-info-box li {
    margin: 8px 0;
    color: var(--muted);
}

html[dir="rtl"] .contact-info-box h3,
html[dir="rtl"] .contact-info-box li,
html[dir="rtl"] .form-success,
html[dir="rtl"] .form-error,
html[dir="rtl"] .contact-form-intro {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif !important;
}

/* More compact screenshot sections */
.home-gallery-section .section-head p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Admin logo improvements */
.login-logo-with-img img,
.brand-admin-logo img {
    display: block;
    width: 72px;
    max-height: 58px;
    object-fit: contain;
}

.login-logo-with-img .login-logo-fallback {
    width: 58px;
    height: 58px;
}

.brand-admin-logo {
    align-items: center;
}

.brand-admin-logo img {
    width: 68px;
    max-height: 56px;
    margin-inline-end: 4px;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form select {
    min-width: 140px;
}

@media (max-width: 1100px) {
    .owner-benefits-expanded {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .owner-benefits-expanded {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-height: auto;
        padding: 24px;
    }

    .screenshot-secondary-head {
        margin-top: 46px;
    }
}


/* CMG Educate v16 merged city chips */
.cmg-city-chip-section-v16 {
    padding: 28px 0 48px;
    background: #ffffff;
    text-align: center;
}
.cmg-city-line-v16 {
    margin: 0 auto 18px;
    color: #617086;
    max-width: 760px;
}
.cmg-city-chips-v16 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.cmg-city-chips-v16 span {
    padding: 10px 17px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dce6f5;
    color: #0d1b2a;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(13,27,42,.08);
}
html[dir="rtl"] .cmg-city-chips-v16 span,
html[dir="rtl"] .cmg-city-line-v16 {
    font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
}


/* CMG Educate v17: hide testimonials/reviews section if old cached markup remains */
.testimonials-section,
.testimonial-section,
.home-testimonials,
.feedback-section,
.reviews-section,
.views-section,
.taasurat-section {
    display: none !important;
}

/* =========================================================
   CMG Educate v18 - School + Madrasa Direct Demo Page
   ========================================================= */
.demo-summary-grid {
    display: grid;
    gap: 18px;
}

.demo-summary-grid .direct-demo-summary-card {
    padding: 26px;
}

.madrasa-summary-card .demo-summary-icon,
.madrasa-direct-demo-section .direct-demo-icon {
    background: #eefbf3;
}

.madrasa-direct-demo-section {
    background:
        radial-gradient(circle at top left, rgba(15,157,88,.10), transparent 30%),
        radial-gradient(circle at bottom right, rgba(11,94,215,.08), transparent 32%),
        #f8fcfb;
}

.madrasa-demo-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .demo-summary-grid,
    .madrasa-demo-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CMG Educate v20 - Header menu alignment fix
   Fixes desktop overlap and Urdu WhatsApp button wrapping.
   ========================================================= */
.site-header .container.nav-wrap {
    width: min(1280px, calc(100% - 28px));
}

.site-header .nav-wrap {
    gap: 12px !important;
    min-height: 86px !important;
}

.brand.brand-with-logo {
    min-width: 250px !important;
    max-width: 335px !important;
    gap: 10px !important;
}

.brand-logo-box,
.brand-logo-img {
    width: 62px !important;
    height: 62px !important;
    flex-basis: 62px !important;
}

.brand-title-en {
    font-size: clamp(25px, 2vw, 31px) !important;
    white-space: nowrap;
}

.brand-title-ur {
    font-size: clamp(21px, 1.75vw, 25px) !important;
    white-space: nowrap;
}

.brand-text small {
    max-width: 235px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-nav {
    gap: 3px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    justify-content: center !important;
}

.main-nav a {
    padding: 8px 9px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
}

html[dir="rtl"] .main-nav a {
    font-size: 13.5px !important;
    padding-inline: 10px !important;
}

.nav-actions {
    gap: 6px !important;
    flex: 0 0 auto !important;
    min-width: max-content !important;
}

.nav-actions .lang-pill {
    min-width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.nav-actions .btn-red {
    min-width: 86px !important;
    min-height: 46px !important;
    padding: 10px 16px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-align: center !important;
    border-radius: 999px !important;
    flex-shrink: 0 !important;
}

html[dir="rtl"] .nav-actions .btn-red {
    font-size: 14px !important;
}

@media (max-width: 1180px) {
    .brand.brand-with-logo {
        min-width: 225px !important;
        max-width: 280px !important;
    }
    .brand-logo-box,
    .brand-logo-img {
        width: 56px !important;
        height: 56px !important;
        flex-basis: 56px !important;
    }
    .brand-title-en { font-size: 25px !important; }
    .brand-title-ur { font-size: 21px !important; }
    .main-nav a {
        font-size: 12.25px !important;
        padding: 7px 7px !important;
    }
    html[dir="rtl"] .main-nav a {
        font-size: 12.75px !important;
        padding-inline: 8px !important;
    }
    .nav-actions .btn-red {
        min-width: 78px !important;
        padding-inline: 13px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 1024px) {
    .site-header .nav-wrap {
        flex-wrap: wrap !important;
    }
    .menu-toggle { display: inline-grid !important; place-items: center; }
    .main-nav,
    .nav-actions {
        display: none !important;
        width: 100% !important;
    }
    .main-nav.open,
    .nav-actions.open {
        display: flex !important;
    }
    .main-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        order: 5;
    }
    .main-nav a {
        text-align: center !important;
        background: #f8fbff;
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
    .nav-actions {
        justify-content: center !important;
        padding-bottom: 10px !important;
        order: 6;
    }
}
