/*
Theme Name: Menha Center
Theme URI: https://minhacenter.com
Author: Menha Center
Author URI: https://minhacenter.com
Description: قالب مركز منحة للتدريب وبناء القدرات — منصة تعليمية احترافية متوافقة مع Elementor
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: menha-center
Tags: education, rtl-language, arabic, elementor, full-width-template
*/

:root {
  --B: #29ABE2; --Bd: #1888BE; --Bdd: #0D6090; --Bl: #6DD4F7;
  --Bp: #EBF8FE; --Bg: rgba(41,171,226,.28);
  --G: #F5C518; --Gd: #C89A00; --Gl: #FFE05A; --Gp: #FFFBEA;
  --Gg: rgba(245,197,24,.28);
  --dark: #071520; --dark2: #0A1E30;
  --w: #FFFFFF; --s: #F5FBFE; --s2: #EBF6FC;
  --t1: #071520; --t2: #25557A; --t3: #6698B8;
  --brd: rgba(41,171,226,.14); --brd2: rgba(41,171,226,.07);
  --fd: 'Noto Kufi Arabic', sans-serif;
  --fb: 'IBM Plex Sans Arabic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb); color: var(--t1);
  background: #fff; direction: rtl;
  overflow-x: hidden; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--B); transition: color .2s; text-decoration: none; }
a:hover { color: var(--Bd); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--fd); font-weight: 800;
  line-height: 1.2; color: var(--t1);
}
p { line-height: 1.8; color: var(--t2); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.wp-block-button__link {
  font-family: var(--fd) !important; font-weight: 700 !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, var(--B), var(--Bd)) !important;
  color: white !important; box-shadow: 0 6px 20px var(--Bg) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important; border: 2px solid var(--B) !important;
  color: var(--B) !important; box-shadow: none !important;
}

/* Forms */
input, textarea, select {
  font-family: var(--fb); border: 1.5px solid var(--brd);
  border-radius: 14px; padding: 11px 16px; width: 100%;
  background: white; color: var(--t1); direction: rtl;
}
input:focus, textarea:focus { outline: none; border-color: var(--B); box-shadow: 0 0 0 3px rgba(41,171,226,.12); }
input[type="submit"], button[type="submit"] {
  width: auto; background: linear-gradient(135deg, var(--B), var(--Bd));
  color: white; border: none; border-radius: 9999px; padding: 11px 28px;
  font-family: var(--fd); font-weight: 700; cursor: pointer;
}

/* Gutenberg colors */
.has-primary-color { color: var(--B) !important; }
.has-secondary-color { color: var(--G) !important; }
.has-primary-background-color { background-color: var(--B) !important; }
.has-secondary-background-color { background-color: var(--G) !important; }

/* Nav */
.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  height: 72px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--brd2); transition: all .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(41,171,226,.09);
}
.header-inner {
  max-width: 1340px; margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.main-navigation ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-navigation ul li a {
  padding: 8px 14px; border-radius: 9999px;
  font-size: 14px; font-weight: 500; color: var(--t2);
  text-decoration: none; transition: all .2s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a { color: var(--B); background: var(--Bp); }

/* Footer */
.site-footer { background: #040D18; padding: 60px 0 28px; border-top: 1px solid rgba(41,171,226,.07); }
.footer-widgets { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-widget h3 { font-size: 13px; font-weight: 800; color: white; margin-bottom: 16px; }
.footer-widget ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-widget ul li a { font-size: 13.5px; color: rgba(255,255,255,.35); transition: color .2s; }
.footer-widget ul li a:hover { color: var(--G); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.copyright { font-size: 12.5px; color: rgba(255,255,255,.16); }

/* Elementor overrides */
.elementor-widget-heading .elementor-heading-title { font-family: var(--fd) !important; }
.elementor-widget-button .elementor-button { font-family: var(--fd) !important; border-radius: 9999px !important; }
.elementor-section { direction: rtl; }

/* WooCommerce */
.woocommerce .button, .woocommerce button.button {
  background: linear-gradient(135deg, var(--B), var(--Bd)) !important;
  color: white !important; border-radius: 9999px !important;
  font-family: var(--fd) !important;
}
.price { color: var(--B) !important; font-family: var(--fd) !important; font-weight: 900 !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--brd); border-radius: 3px; }

/* Pagination */
.wp-pagenavi a, .wp-pagenavi span { border-radius: 10px !important; border-color: var(--brd) !important; }
.wp-pagenavi a:hover, .wp-pagenavi span.current { background: var(--B) !important; color: white !important; border-color: var(--B) !important; }

/* Widget */
.widget-title { font-size: 16px; font-weight: 800; color: var(--t1); padding-bottom: 10px; border-bottom: 2px solid var(--B); margin-bottom: 16px; }

/* Responsive */
@media (max-width: 1024px) { .footer-widgets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .site-header { height: 64px; }
  .main-navigation { display: none; }
  .footer-widgets { grid-template-columns: 1fr; gap: 24px; }
}
