/*
 Theme Name:   Blocksy Child - Nabd Digital
 Description:  قالب ابن لموقع نبض الحياة الرقمية لحماية التعديلات البرمجية
 Author:       Nabd Digital Team
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/
/* tajawal-regular */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/tajawal/tajawal-v12-arabic_latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/tajawal/tajawal-v12-arabic_latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/tajawal/tajawal-v12-arabic_latin-800.woff2') format('woff2');
}
/* ==========================================================================
       متغيرات الهوية - نبض الحياة الرقمية
       ========================================================================== */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --hero-bg: #0b1120;        /* داكن للهيرو والفوتر */
    --footer-bg: #0b1120;
    --site-bg: #f2f2f2;        /* رمادي مائل للزرقة خفيف جداً للخلفية العامة */
    --card-bg: #ffffff;        /* أبيض نقي للصناديق */
    --text-main: #1e293b;      /* لون نص داكن للمحتوى الفاتح */
    --text-muted: #64748b;
    --text-white: #ffffff;
    --transition: all 0.3s ease;
    --radius: 25px;
	--input-bg: #f1f5f9; 
}
/* تطبيق الخط على الموقع بالكامل */
body, h1, h2, h3, h4, h5, h6, .main-hero-section {
    font-family: 'Tajawal', sans-serif !important;
}
body, #main, .site-main{
    background-color: var(--site-bg) !important;
}
.site-logo-container img {
    border-radius: 15px;
	    margin-right: 68px;
}
#main, .site-main {
    margin-top: 80px !important; 
    padding-bottom: 60px !important;
}




/* إعطاء مساحة تنفس داخل صندوق المقال (Boxed Layout) */
.single-post .entry-content, .page:not(.home) .entry-content {
    padding-top: 10px !important;
}
/* إضافة حواف دائرية لحاوية المقال (الصندوق الأبيض) */
.single-post article, .page:not(.home) article {
    border-radius: 25px !important;
    overflow: hidden; /* لضمان عدم خروج العناصر عن الحواف الدائرية */
}

/* إضافة حواف دائرية للصور داخل المقال */
.single-post article img, 
.page:not(.home) article img, 
.ct-featured-image img, 
.wp-block-image img {
    border-radius: 25px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; /* إضافة ظل خفيف للصور لمزيد من الأناقة */
}
input, 
textarea, 
select, 
.wpcf7-form-control {
    width: 100% !important;
    background-color: var(--input-bg) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 14px 20px !important;
    color: var(--text-main) !important;
    font-size: 1rem !important;
    transition: var(--transition) !important;
    margin-bottom: 15px;
}

/* إلغاء تأثيرات التركيز (Focus) نهائياً في كافة أنحاء الموقع */
input:focus, 
textarea:focus, 
select:focus, 
.wpcf7-form-control:focus {
    outline: none !important;
    border-color: #e2e8f0 !important;      /* يبقى نفس لون الإطار الأصلي */
    background-color: var(--input-bg) !important; /* تبقى نفس الخلفية الرمادية */
    box-shadow: none !important;            /* إلغاء أي ظل نهائياً */
}

::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

body, #main, .site-main{
    background-color: var(--site-bg);
    color: var(--text-main);
}

/* ضبط العناوين بتدرج احترافي */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3 !important;
    margin-bottom: 1.25rem;
}

h1 { 
    font-size: clamp(2.2rem, 5vw, 3rem) !important; 
    font-weight: 800 !important; 
    letter-spacing: -0.02em;
}

h2 { 
    font-size: clamp(1.8rem, 4vw, 1.75rem) !important; 
    font-weight: 600 !important; 
}

h3 { 
    font-size: 1.50rem !important; 
    font-weight: 500 !important; 
}

h4 { 
    font-size: 1.5rem !important; 
    font-weight: 500 !important; 
}

h5 { 
    font-size: 1.25rem !important; 
    font-weight: 700 !important; 
	color: #000000 !important;
}

h6 { 
    font-size: 1.25rem !important; 
    font-weight: 500 !important; 
}

p {
    color: var(--text-muted) !important;
    line-height: 1.8 !important;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

	/* ==========================================================================
   3. تنسيق أزرار المشاركة الموحد (Tech Style)
   ========================================================================== */
.nabd-share-container {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.nabd-share-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nabd-share-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-3px);
}
 
.hero-header {
    background-color: var(--hero-bg) !important;
    background-image: radial-gradient(#1c2a45ad 1.5px, #00000000 1.5px) !important;
    background-size: 28px 28px !important;
    padding: 80px 5% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    min-height: 400px;
    direction: rtl;
    width: 100vw;
    margin-right: calc(-50vw + 50%);
    margin-left: calc(-50vw + 50%);
    position: relative;
    z-index: 10;
}

.inner-hero-header {
    max-width: 1170px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin: auto;
}
    /* القسم الأيمن */
    .hero-content-wrapper { flex: 1; text-align: right; }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        background: rgba(37, 99, 235, 0.1);
        color: #60a5fa;
        font-size: 0.85rem;
        font-weight: 700;
        padding: 8px 18px;
        border-radius: 50px;
        margin-bottom: 25px;
        border: 1px solid rgba(37, 99, 235, 0.2);
    }

    .hero-main-title {
        color: #cbd5e0 !important;
        display: block;
        font-weight: 900;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        font-size: clamp(2.5rem, 4vw, 3.8rem);
    }
.hero-main-title a {
	color: #cbd5e0 !important;align-content
}
site-description{
	 margin-bottom: 1.5rem;
} 

    .logo-desc {
    color: #cbd5e0;
    display: block;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
        max-width: 600px;
    }

    /* القسم الأيسر */
    .hero-visual-wrapper { flex: 1; position: relative; animation: float-anim 6s ease-in-out infinite; }

    @keyframes float-anim {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-20px); }
    }

 

    .editor-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgb(255 255 255 / 17%);
    }

    .mac-dots { display: flex; gap: 8px; }
    .dot { width: 12px; height: 12px; border-radius: 50%; }
    .close-dot { background: #ef4444; }
    .min-dot { background: #eab308; }
    .max-dot { background: #22c55e; }

    .editor-title { color: #6b7280; font-size: 12px; font-family: monospace; }

    .editor-body { font-family: 'Consolas', monospace; font-size: 0.95rem; line-height: 1.7; color: #d1d5db; }
    .code-line { display: flex; gap: 15px; }
    .line-number { color: #4b5563; min-width: 20px; text-align: right; }

    /* Syntax Highlighting */
    .syntax-keyword { color: #ec4899; }
    .syntax-variable { color: #facc15; }
    .syntax-string { color: #4ade80; }
    .syntax-function { color: #60a5fa; }
    .syntax-property { color: #c084fc; }
    .syntax-value { color: #2563eb; }
    .indent-1 { padding-left: 20px; }

    .editor-floating-badge {
        position: absolute;
        bottom: -20px;
        right: -20px;
        background: white;
        padding: 15px 25px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        gap: 15px;
        direction: rtl;
        animation: bounce-anim 3s infinite ease-in-out;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    @keyframes bounce-anim {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

    .badge-icon-wrap { background: var(--primary-color); color: white; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
    .badge-title { color: #0f2c59; font-weight: 800; font-size: 0.85rem; margin: 0; }
    .badge-desc { color: #64748b; font-size: 0.7rem; margin: 0; }



/* محرر الأكواد */
.code-editor-window {
    background: #0b1120 !important;
    border-radius: 16px;
    padding: var(--radius);
    direction: ltr !important;
	text-align: left;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
	 border: 1px solid rgba(255, 255, 255, 0.1);
}
 
.editor-body {
    font-family: 'Consolas', monospace !important;
    color: #d1d5db !important;
}

.syntax-keyword { color: #ec4899; }
.syntax-variable { color: #facc15; }
.syntax-string { color: #4ade80; }
.syntax-function { color: #60a5fa; }
.syntax-property { color: #c084fc; }


 /* --------------------------------------------------------------------------
   7. تنسيق شبكة المقالات في الصفحة الرئيسية (Query Loop / Post Grid)
   -------------------------------------------------------------------------- */


.entries > article.entry-card{
	  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}
h2.entry-title {
    font-size: 1.3rem !important;
}
.entries > article.entry-card:hover{
	    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1) !important;
    border-color: var(--primary-color) !important;
}
.entries > article.entry-card .ct-media-container {
	border-radius: var(--radius) !important;
}
.entries > article.entry-card .ct-media-container > img{
	border-radius: var(--radius) !important;
}

 

/* ==========================================================================
   4. تنسيقات صفحة اتصل بنا المدمجة (Contact Us & CF7)
   ========================================================================== */
   .contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    direction: rtl;
}

.contact-wrapper h1 { 
    font-size: clamp(2rem, 5vw, 3rem) !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* عمودين في الشاشات الكبيرة */
    gap: 30px;
}

.contact-info-card, .contact-form-container {
    background: var(--card-bg) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius) !important;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
}

/* تنسيق حقول Contact Form 7 */
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    color: var(--text-main) !important;
    margin-bottom: 15px !important;
}

.wpcf7-submit {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    font-weight: 700 !important;
    width: 100% !important;
    border: none !important;
    transition: var(--transition) !important;
}



/* [تجاوب القائمة الرئيسية] */
@media (max-width: 600px) {
    .home .wp-block-post-template { grid-template-columns: 1fr !important; }
}


	/* ==========================================================================
   4. تنسيقات الفوتر الاحترافي (Advanced Footer)
   ========================================================================== */

/* الحاوية الرئيسية للفوتر */
.ct-footer {
    background-color: var(--footer-bg) !important;
    color: var(--text-muted) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px !important;
    direction: rtl;
}


.ct-footer .widget-title, .ct-footer p, .ct-footer a {
   
}
/* عناوين القوائم في الفوتر */
.ct-footer .widget-title {
    color: #94a3b7 !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    position: relative;
    padding-right: 15px;
}

.ct-footer .widget-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* روابط القوائم */
.ct-footer ul {
    list-style: none !important;
    padding: 0 !important;
}

.ct-footer ul li {
    margin-bottom: 12px;
}

.ct-footer ul li a {
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.ct-footer ul li a:hover {
    color: var(--primary-color) !important;
    padding-right: 5px;
}

/* سطر الحقوق السفلي */
.ct-footer-copyright {
    padding: 20px 0 !important;
    border-top: 1px solid #192a3d;
    font-size: 0.85rem;
    color: #94a3b7;
    width: 100%;
    text-align: center;
    margin-bottom: 0 !important;
}
/* ==========================================================================
   8. التنسيق الشامل لودجات الشريط الجانبي (Sidebar Widgets)
   ========================================================================== */

/* تحويل كافة الودجات إلى بطاقات متناسقة */
.ct-sidebar .widget, #secondary .widget {
    background: var(--card-bg) !important;
    border-radius: var(--radius) !important;
    padding: 30px !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04) !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 30px !important;
    transition: var(--transition);
}

/* تنسيق عناوين الودجات */
.ct-sidebar .widget-title, #secondary .widget-title {
    color: var(--text-title) !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
    position: relative;
}

/* خط أزرق جمالي تحت العنوان */
.ct-sidebar .widget-title::after, #secondary .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

/* تنسيق القوائم داخل الودجات (الأقسام، أحدث المقالات) */
.ct-sidebar .widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ct-sidebar .widget ul li {
    padding: 12px 0 !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    color: var(--text-muted);
}

.ct-sidebar .widget ul li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* تنسيق الروابط وتأثير التحويم */
.ct-sidebar .widget ul li a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    font-size: 0.95rem;
    display: inline-block;
}

.ct-sidebar .widget ul li a:hover {
    color: var(--primary-color) !important;
    transform: translateX(-5px); /* حركة خفيفة لليسار عند التحويم */
}

@media (max-width: 992px) {
	 .hero-header { flex-direction: column; text-align: center; padding: 50px 20px !important; }
 .inner-hero-header { flex-direction: column; text-align: center; }
 .hero-content-wrapper { text-align: center; }
 .hero-visual-wrapper {
        margin-top: 0;
        max-width: 600px;
        width: 100%;
    }
    .ct-footer [class*="ct-container"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px;
        text-align: right;
		padding-top: 10px !important;
    }
   /* [تعديل التجاوب لصفحة الاتصال] */
    .contact-grid {
        grid-template-columns: 1fr !important; /* تحويل لعمود واحد في التابلت والجوال */
    }
    .contact-info-card, .contact-form-container {
        padding: 25px !important;
    }
}

/* للجوال: يظهر عمود واحد */
@media (max-width: 768px) {
	.inner-hero-header {
    display: block;
}
    .ct-footer [class*="ct-container"] {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }
    .ct-footer .widget-title { padding-right: 0; }
    .ct-footer .widget-title::before { display: none; }
    .footer-social-icons { justify-content: center; }
    .footer-links li { justify-content: center; }
    .footer-links li i { margin-left: 0; margin-right: 10px; order: 2; } /* تعديل أيقونة السهم في الوضع المتمركز */


}