/*
Theme Name: Isra - Sadiqat Alsighar Child V3
Theme URI: https://example.com/isra-child
Description: Child theme لتطوير ثيم sadiqat alsighar وتحويله لموقع المعلمة إسراء: موقع تعريفي، متجر WooCommerce، وصفحات كورسات أونلاين وأوفلاين.
Author: Almaqsd / ChatGPT
Template: abeer-alwaili
Version: 3.0.0
Text Domain: isra-child
Tags: rtl-language-support, woocommerce, education, courses, child-theme
*/

:root {
  --main-color: #1a5c38;
  --sec-color: #c8a84b;
  --bg-color: #f5f0e8;
  --after-color: #2d7a4f;
  --text-color: #25352d;
  --isra-green: #2d7a4f;
  --isra-green-dark: #1a3a2a;
  --isra-green-deep: #1a5c38;
  --isra-green-soft: #e6f4ee;
  --isra-gold: #c8a84b;
  --isra-gold-soft: #f7ecd0;
  --isra-cream: #f5f0e8;
  --isra-warm-white: #fff8f0;
  --isra-text: #25352d;
  --isra-muted: #6c7c72;
  --isra-border: rgba(26, 92, 56, .14);
  --isra-shadow: 0 18px 45px rgba(26, 58, 42, .10);
  --isra-radius-lg: 32px;
  --isra-radius-md: 20px;
  --isra-radius-sm: 12px;
  --isra-container: 1180px;
}

html { scroll-behavior: smooth; }
body {
  direction: rtl;
  text-align: right;
  color: var(--isra-text);
  background: linear-gradient(180deg, var(--isra-warm-white), #fff 48%, var(--isra-cream));
  font-family: "Tajawal", "Cairo", Arial, sans-serif;
  overflow-x: hidden;
}
body, button, input, select, textarea { font-family: "Tajawal", "Cairo", Arial, sans-serif; }
h1, h2, h3, h4, h5, h6, .isra-title { font-family: "Cairo", "Tajawal", Arial, sans-serif; }
a { color: var(--isra-green-deep); transition: .25s ease; }
a:hover { color: var(--isra-gold); text-decoration: none; }
img { max-width: 100%; height: auto; }

.isra-container { width: min(var(--isra-container), calc(100% - 32px)); margin-inline: auto; }
.isra-section { padding: clamp(46px, 7vw, 92px) 0; position: relative; }
.isra-section-soft { background: rgba(245, 240, 232, .58); }
.isra-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--isra-green-deep); background: var(--isra-green-soft);
  border: 1px solid var(--isra-border); border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: 14px;
}
.isra-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--isra-gold); box-shadow: 0 0 0 5px rgba(200,168,75,.16); }
.isra-heading { margin: 14px 0 14px; font-size: clamp(30px, 5vw, 58px); line-height: 1.25; color: var(--isra-green-dark); font-weight: 800; }
.isra-subtitle { font-size: clamp(16px, 2.2vw, 20px); color: var(--isra-muted); line-height: 1.9; max-width: 760px; }
.isra-center { text-align: center; }
.isra-center .isra-subtitle { margin-inline: auto; }

.isra-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 800; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.isra-btn:hover { transform: translateY(-2px); }
.isra-btn-primary { background: var(--isra-green-deep); color: #fff; box-shadow: 0 12px 26px rgba(26, 92, 56, .22); }
.isra-btn-primary:hover { color: #fff; background: var(--isra-green-dark); }
.isra-btn-gold { background: var(--isra-gold); color: var(--isra-green-dark); box-shadow: 0 12px 26px rgba(200,168,75,.22); }
.isra-btn-gold:hover { color: var(--isra-green-dark); background: #d7b85b; }
.isra-btn-outline { background: rgba(255,255,255,.78); color: var(--isra-green-deep); border-color: var(--isra-border); }
.isra-btn-outline:hover { background: var(--isra-green-soft); color: var(--isra-green-dark); }

/* Header */
.isra-header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255, 248, 240, .86); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--isra-border);
}
.isra-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; }
.isra-logo a { display: inline-flex; align-items: center; gap: 12px; color: var(--isra-green-dark); font-weight: 900; font-size: 22px; }
.isra-logo img { max-height: 58px; width: auto; object-fit: contain; }
.isra-logo-mark {
  width: 52px; height: 52px; border-radius: 17px;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--isra-green-deep), var(--isra-green));
  color: var(--isra-gold); box-shadow: var(--isra-shadow); font-family: "Amiri", serif; font-size: 24px;
}
.isra-nav { display: flex; align-items: center; gap: 18px; }
.isra-menu, .isra-menu ul { list-style: none; padding: 0; margin: 0; }
.isra-menu { display: flex; align-items: center; gap: 8px; }
.isra-menu a { display: inline-flex; padding: 10px 13px; border-radius: 999px; font-weight: 800; color: var(--isra-text); }
.isra-menu .current-menu-item > a, .isra-menu a:hover { color: var(--isra-green-deep); background: var(--isra-green-soft); }
.isra-header-actions { display: flex; align-items: center; gap: 10px; }
.isra-icon-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--isra-border);
  display: inline-grid; place-items: center; background: #fff; color: var(--isra-green-deep);
  position: relative;
}
.isra-cart-count { position: absolute; top: -5px; left: -5px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--isra-gold); color: var(--isra-green-dark); font-size: 11px; font-weight: 900; display: grid; place-items: center; }
.isra-mobile-toggle { display: none; background: var(--isra-green-deep); color: #fff; border: none; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; }

.isra-search-panel { position: fixed; inset: 0; z-index: 1000; background: rgba(26,58,42,.75); display: none; align-items: center; justify-content: center; padding: 24px; }
.isra-search-panel.is-active { display: flex; }
.isra-search-box { background: #fff; border-radius: var(--isra-radius-lg); padding: 22px; width: min(640px, 100%); box-shadow: var(--isra-shadow); }
.isra-search-box form { display: flex; gap: 10px; }
.isra-search-box input { flex: 1; min-height: 54px; border: 1px solid var(--isra-border); border-radius: 16px; padding: 0 18px; }
.isra-search-close { margin-top: 12px; background: transparent; border: none; color: var(--isra-muted); font-weight: 800; }

/* Hero */
.isra-hero { overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 70px; }
.isra-hero::before {
  content: ""; position: absolute; inset-inline-start: -130px; top: -130px; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(200,168,75,.22), rgba(200,168,75,0) 68%);
}
.isra-hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(28px, 6vw, 80px); }
.isra-verse { font-family: "Amiri", serif; display: inline-flex; border: 1px solid rgba(200,168,75,.44); background: rgba(255,255,255,.68); color: var(--isra-green-dark); padding: 10px 18px; border-radius: 999px; font-size: 18px; box-shadow: 0 10px 28px rgba(200,168,75,.12); }
.isra-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.isra-hero-card { position: relative; min-height: 470px; border-radius: 44px; padding: 22px; background: linear-gradient(145deg, #fff, var(--isra-cream)); box-shadow: var(--isra-shadow); overflow: hidden; }
.isra-hero-card::before { content: "۞"; position: absolute; top: 22px; left: 28px; font-family: "Amiri", serif; font-size: 88px; color: rgba(200,168,75,.25); line-height: 1; }
.isra-hero-visual {
  height: 100%; min-height: 426px; border-radius: 32px;
  background: linear-gradient(160deg, rgba(45,122,79,.88), rgba(26,58,42,.94)), radial-gradient(circle at 20% 15%, rgba(200,168,75,.55), transparent 34%);
  display: grid; place-items: center; text-align: center; padding: 34px; color: #fff; position: relative; overflow: hidden;
}
.isra-hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.isra-hero-visual .isra-placeholder-icon { font-family: "Amiri", serif; font-size: 88px; color: var(--isra-gold); margin-bottom: 16px; }
.isra-hero-visual p { font-size: 20px; line-height: 1.9; max-width: 360px; }
.isra-floating-card { position: absolute; right: 18px; bottom: 22px; background: rgba(255,255,255,.94); color: var(--isra-green-dark); padding: 16px 18px; border-radius: 20px; box-shadow: var(--isra-shadow); width: 230px; }
.isra-floating-card strong { display: block; color: var(--isra-green-deep); }

.isra-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.isra-stat { background: rgba(255,255,255,.78); border: 1px solid var(--isra-border); border-radius: 22px; padding: 18px; }
.isra-stat strong { display: block; font-size: 26px; color: var(--isra-green-deep); }
.isra-stat span { color: var(--isra-muted); font-size: 14px; }

/* Cards & grids */
.isra-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.isra-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.isra-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.isra-card {
  background: rgba(255,255,255,.84); border: 1px solid var(--isra-border); border-radius: var(--isra-radius-md);
  padding: 24px; box-shadow: 0 14px 34px rgba(26,58,42,.06); height: 100%;
}
.isra-card h3, .isra-card h4 { color: var(--isra-green-dark); margin: 0 0 12px; font-weight: 900; }
.isra-card p { color: var(--isra-muted); line-height: 1.85; margin: 0; }
.isra-card-icon { width: 58px; height: 58px; border-radius: 20px; background: var(--isra-green-soft); color: var(--isra-green-deep); display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.isra-card:nth-child(even) .isra-card-icon { background: var(--isra-gold-soft); color: #7f641e; }

.isra-about-frame { position: relative; background: linear-gradient(135deg, var(--isra-green-deep), var(--isra-green-dark)); border-radius: 42px; padding: 18px; box-shadow: var(--isra-shadow); }
.isra-about-frame::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(200,168,75,.48); border-radius: 32px; pointer-events: none; }
.isra-about-frame-inner { min-height: 360px; border-radius: 30px; background: radial-gradient(circle at 70% 10%, rgba(200,168,75,.24), transparent 36%), rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; padding: 42px; text-align: center; }
.isra-about-frame-inner .amiri { font-family: "Amiri", serif; font-size: 34px; color: var(--isra-gold); }

.isra-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.isra-list li { position: relative; padding-inline-start: 34px; color: var(--isra-text); line-height: 1.7; }
.isra-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--isra-green-soft); color: var(--isra-green-deep); display: grid; place-items: center; font-weight: 900; }

/* Products & courses */
.isra-product-card, .isra-course-card { overflow: hidden; padding: 0; }
.isra-product-image, .isra-course-top { aspect-ratio: 4 / 3; background: linear-gradient(145deg, var(--isra-green-soft), var(--isra-cream)); display: grid; place-items: center; position: relative; }
.isra-product-image img { width: 100%; height: 100%; object-fit: cover; }
.isra-product-image .fallback, .isra-course-top .fallback { font-size: 46px; color: var(--isra-green-deep); }
.isra-product-body, .isra-course-body { padding: 22px; }
.isra-price { color: var(--isra-green-deep); font-weight: 900; margin: 10px 0; }
.isra-course-badge { position: absolute; top: 16px; right: 16px; background: #fff; color: var(--isra-green-deep); border-radius: 999px; padding: 7px 12px; font-weight: 900; font-size: 13px; }
.isra-course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.isra-course-meta span { border-radius: 999px; background: var(--isra-green-soft); color: var(--isra-green-deep); padding: 6px 10px; font-size: 13px; font-weight: 800; }

/* Contact */
.isra-contact-box { background: linear-gradient(145deg, var(--isra-green-deep), var(--isra-green-dark)); color: #fff; border-radius: 34px; padding: 34px; }
.isra-contact-box h3 { color: #fff; }
.isra-contact-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.isra-contact-item a, .isra-contact-item span { color: rgba(255,255,255,.88); }
.isra-form-wrap { background: #fff; border: 1px solid var(--isra-border); border-radius: 34px; padding: 30px; box-shadow: var(--isra-shadow); }
.isra-form-wrap input, .isra-form-wrap textarea, .isra-form-wrap select, .wpcf7 input, .wpcf7 textarea {
  width: 100%; border: 1px solid var(--isra-border); border-radius: 16px; padding: 13px 16px; background: var(--isra-warm-white); margin-bottom: 12px;
}
.isra-form-wrap input[type="submit"], .wpcf7 input[type="submit"] { width: auto; background: var(--isra-green-deep); color: #fff; font-weight: 900; border-color: var(--isra-green-deep); border-radius: 999px; padding: 13px 28px; }

/* Footer */
.isra-footer { background: var(--isra-green-dark); color: rgba(255,255,255,.82); padding-top: 54px; }
.isra-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 26px; }
.isra-footer h4 { color: #fff; margin-bottom: 16px; }
.isra-footer a { color: rgba(255,255,255,.82); }
.isra-footer a:hover { color: var(--isra-gold); }
.isra-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.isra-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding: 18px 0; font-size: 14px; color: rgba(255,255,255,.64); }
.isra-whatsapp-fixed { position: fixed; z-index: 998; left: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 18px 30px rgba(0,0,0,.18); font-size: 27px; }
.isra-whatsapp-fixed:hover { color: #fff; transform: translateY(-3px); }

/* WooCommerce compatibility */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  background: var(--isra-green-deep); color: #fff; border-radius: 999px; font-weight: 900;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover { background: var(--isra-green-dark); color: #fff; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background: #fff; border: 1px solid var(--isra-border); border-radius: 22px; overflow: hidden; padding-bottom: 16px; box-shadow: 0 12px 28px rgba(26,58,42,.06); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--isra-green-dark); padding: 14px 16px 6px; font-weight: 900; }
.woocommerce ul.products li.product .price { color: var(--isra-green-deep); padding: 0 16px; font-weight: 900; }
.woocommerce ul.products li.product .button { margin-inline-start: 16px; }

/* Responsive */
@media (max-width: 991px) {
  .isra-mobile-toggle { display: inline-grid; place-items: center; }
  .isra-nav { position: fixed; inset: 82px 0 auto 0; background: #fff; border-bottom: 1px solid var(--isra-border); padding: 18px; display: none; box-shadow: var(--isra-shadow); }
  .isra-nav.is-open { display: block; }
  .isra-menu { display: grid; gap: 8px; }
  .isra-menu a { width: 100%; }
  .isra-header-actions .isra-btn { display: none; }
  .isra-hero-grid, .isra-grid-2 { grid-template-columns: 1fr; }
  .isra-grid-3, .isra-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .isra-hero-card { min-height: 380px; }
  .isra-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .isra-container { width: min(100% - 22px, var(--isra-container)); }
  .isra-header-inner { min-height: 72px; }
  .isra-logo a { font-size: 18px; }
  .isra-logo-mark { width: 44px; height: 44px; }
  .isra-grid-3, .isra-grid-4, .isra-stats { grid-template-columns: 1fr; }
  .isra-hero-actions { flex-direction: column; }
  .isra-btn { width: 100%; }
  .isra-hero-card { border-radius: 28px; padding: 14px; min-height: 320px; }
  .isra-hero-visual { min-height: 300px; border-radius: 22px; }
  .isra-floating-card { position: static; width: 100%; margin-top: 14px; }
  .isra-search-box form { flex-direction: column; }
}
