/*
 Theme Name:   Muzamna.com Mada Theme V2
 Theme URI:    https://muzamna.com
 Description:  Enhanced Education theme
 Author:       Muzamna.com
 Author URI:   https://muzamna.com
 Template:     generatepress
 Version:      0.1
*/

/* Import Readex Pro font */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@160..700&display=auto');

/* ------- Basics & RTL ------- */
html { direction: rtl; scroll-behavior: smooth; font-size: 16px; }
body { font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; text-align: right; line-height: 1.6; color: #333; }
*, *::before, *::after { box-sizing: border-box; }
.inside-article { border-radius: 4px; }
img { border-radius: 4px; } /* لو عندك لوجوهات تتأثر، استبدلها بـ .entry-content img */

/* تمييز مؤقت */
.highlight { background-color: yellow; transition: background-color .5s ease; animation: blinker 1s step-start infinite; }
@keyframes blinker { 50% { background-color: #fff; } }

/* ويدجت */
.widget-area .widget { padding: 0; }
.widget-area .widget:has(img) { padding: 0 !important; }

/* Woo checkout */
div#customer_details .col-1 { width: 100%; }

/* نصوص عامة */
p, a, span { font-size: 16px; line-height: 1.6; }
a { font-weight: 500; color: #0066cc; text-decoration: none; }

/* ------- Headings ------- */
h1, h1 > * { font-size: 32px; line-height: 1.35; font-weight: 700; }
h2, h2 > * { font-size: 26px; line-height: 1.4; font-weight: 600; }
h3, h3 > * { font-size: 22px; line-height: 1.45; font-weight: 600; }
h4, h4 > * { font-size: 18px; line-height: 1.5;  font-weight: 500; }
h5, h5 > * { font-size: 16px; line-height: 1.55; font-weight: 500; }
h6, h6 > * { font-size: 14px; line-height: 1.6;  font-weight: 500; }

/* ويدجت تايتل/محتوى (إزالة التكرار) */
.widget-title { font-size: 18px; line-height: 1.5; font-weight: 600; margin-bottom: 12px; font-family: inherit; }
.widget-content { font-size: 14px; line-height: 1.6; font-weight: 400; font-family: inherit; }

/* عناصر الواجهة */
label { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .5px; font-family: inherit; }
button, .button { font-size: 16px; line-height: 20px; letter-spacing: .5px; font-family: inherit; }
input, textarea, select { font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: .5px; font-family: inherit; }
.tooltip { font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: .5px; font-family: inherit; }

/* ضبط مسافات قوائم لاتينية داخل RTL */
html[dir="ltr"] ul, 
html[dir="ltr"] ol, 
html ul[dir="ltr"], 
html ol[dir="ltr"] { margin: 0 0 1.5em 3em !important; }

/* Woo notices (مخفية حسب رغبتك) */
.woocommerce-notices-wrapper,
.woocommerce-notices-wrapper-fail { display: none; }

/* SAR currency bdi RTL */
span.woocommerce-Price-amount.amount bdi {
  display: inline-flex; flex-direction: row-reverse; gap: 5px;
}

/* GP menu caret */
.menu-item-has-children .dropdown-menu-toggle { float: unset !important; }

/* ------- Mobile ------- */
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1, h1>* { font-size: 32px; line-height: 1.3; }
  h2, h2>* { font-size: 26px; line-height: 1.35; }
  h3, h3>* { font-size: 20px; line-height: 1.4; }
  h4, h4>* { font-size: 18px; line-height: 1.45; }
  h5, h5>* { font-size: 16px; line-height: 1.5; }
  h6, h6>* { font-size: 14px; line-height: 1.55; }
  p { font-size: 15px; line-height: 1.65; }
  .widget-title { font-size: 16px; }
}

/* تقليل الحركة للمستخدمين اللي مفعّلين Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .highlight { animation: none; }
}
