/*
Theme Name: Noor Quran Academy Child
Theme URI: https://noorquran.com
Description: Child theme لأكاديمية نور القرآن التعليمية - مبني على GeneratePress
Author: م/ أحمد سعد
Author URI: https://wa.me/201156571777
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noor-quran
*/

/* ========================================
   إعدادات عامة
======================================== */
:root {
  --nq-primary: #1a472a;
  --nq-secondary: #2d5a3d;
  --nq-gold: #d4af37;
  --nq-light: #f7e7ce;
  --nq-white: #ffffff;
  --nq-dark: #0f2618;
  --nq-text: #333333;
  --nq-text-light: #666666;
  --nq-transition: all 0.3s ease;
  --nq-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  --nq-shadow-hover: 0 15px 40px rgba(26, 71, 42, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--nq-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  text-align: right;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  color: var(--nq-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--nq-gold);
  text-decoration: none;
  transition: var(--nq-transition);
}

a:hover {
  color: var(--nq-primary);
}

/* ========================================
   Container & Layout
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

/* ========================================
   Buttons
======================================== */
.btn {
  display: inline-block;
  padding: 14px 35px;
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--nq-transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--nq-gold);
  color: var(--nq-white);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  background: var(--nq-light);
  color: var(--nq-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--nq-white);
  border: 2px solid var(--nq-white);
}

.btn-secondary:hover {
  background: var(--nq-white);
  color: var(--nq-primary);
  transform: translateY(-3px);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--nq-white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  color: var(--nq-white);
}

/* ========================================
   Smooth Scroll
======================================== */
html {
  scroll-behavior: smooth;
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-in-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-in-out;
}

/* ========================================
   Utility Classes
======================================== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* ========================================
   Cards
======================================== */
.card {
  background: var(--nq-white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--nq-shadow);
  transition: var(--nq-transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--nq-shadow-hover);
}

/* ========================================
   Forms
======================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 14px 20px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: var(--nq-transition);
  background: var(--nq-white);
  direction: rtl;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--nq-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ========================================
   Loading Spinner
======================================== */
.loader {
  border: 4px solid rgba(212, 175, 55, 0.2);
  border-top: 4px solid var(--nq-gold);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   Accessibility
======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible للوصولية */
:focus-visible {
  outline: 3px solid var(--nq-gold);
  outline-offset: 2px;
}

/* ========================================
   Print Styles
======================================== */
@media print {
  .nq-header,
  .nq-fab-container,
  .nq-footer-social,
  .nq-cta {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
}

/* ========================================
   Responsive Typography
======================================== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
}

/* ========================================
   GeneratePress Overrides
======================================== */
.site-content {
  padding: 0;
}

.separate-containers .inside-article {
  padding: 0;
}

.entry-content {
  margin: 0;
}

/* إخفاء العنوان الافتراضي في الصفحة الرئيسية */
.home .entry-header {
  display: none;
}

/* ========================================
   Performance Optimizations
======================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ========================================
   Dark Mode Support (Optional)
======================================== */
@media (prefers-color-scheme: dark) {
  /* يمكن إضافة دعم الوضع الداكن هنا إذا لزم الأمر */
}

/* ========================================
   Custom Scrollbar
======================================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--nq-gold);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--nq-primary);
}

/* ========================================
   Selection Color
======================================== */
::selection {
  background: var(--nq-gold);
  color: var(--nq-white);
}

::-moz-selection {
  background: var(--nq-gold);
  color: var(--nq-white);
}