/* ==============================================================
   ملف التنسيقات الموحد للمنتجات والمقالات (layout.css)
============================================================== */

/* -------------------------------------------
   1. الحاويات الرئيسية (المقال والمنتج)
------------------------------------------- */
body {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
}

.product-main-card,
.article-main-card {
    border: 1px solid #e2e8f0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.9;

}
.product-main-card h2,
.article-main-card h2 {
	 font-size: clamp(1.4rem, 2.5vw + 1rem, 1.85rem) !important;
padding-bottom: 10px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
    position: relative;
    margin-bottom: 40px;
    font-weight: 800;
    margin-top: 40px;
    line-height: 1.4;
}
.product-main-card h2:after,
.article-main-card h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: #087BAA;
}
/* -------------------------------------------
   2. تفاصيل المنتجات (الأسعار وصندوق الشراء)
------------------------------------------- */
.product-header-info {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 25px 30px;
}

.price-tag-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-tag-wrapper .final-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0d6efd;
}

.price-tag-wrapper .original-price {
    font-size: 1.2rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.product-purchase-section{
	border: 2px dashed #cbd5e1;
}
/* -------------------------------------------
   3. تفاصيل المقالات (التصنيف والتاريخ)
------------------------------------------- */
.article-meta-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

/* -------------------------------------------
   4. النصوص ووصف المحتوى
------------------------------------------- */
.product-details-content {
    border-top: 2px dashed #e2e8f0;
    margin-top: 20px;
    padding-top: 40px;
}

.article-content-body {
    margin-top: 30px;
    line-height: 2.2 !important;
    font-size: 1.15rem;
    color: #334155;
}

/* العنوان الفرعي الأنيق مع الخط السفلي */
.section-subtitle {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 50px;
    height: 4px;
    background-color: #0d6efd;
    border-radius: 2px;
}

/* -------------------------------------------
   5. معرض الصور (تأثيرات المصغرات)
------------------------------------------- */
.product-image-gallery .thumbnail,
.article-image-gallery .thumbnail {
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.product-image-gallery .thumbnail:hover,
.article-image-gallery .thumbnail:hover {
    border-color: #0d6efd !important;
    transform: translateY(-2px);
}
.group-li li {
    border-bottom: 1px solid #e2e8f0;
}
/* -------------------------------------------
   6. قسم الفيديو المدمج (للمقالات والمنتجات)
------------------------------------------- */
.video-showcase-box {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid #e2e8f0;
}

.video-header-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.video-header-inline i {
    font-size: 32px;
    color: #ef4444;
}

.video-container {
    position: relative;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 2px solid white;
    color: white;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    background: white;
    color: #000;
    transform: translate(-50%, -50%) scale(1.1);
}

/* -------------------------------------------
   7. كارت التعليقات الموحد
------------------------------------------- */
.comments-card {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #eaedf1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 35px;
    margin-bottom: 40px;
}

/* -------------------------------------------
   8. المواضيع والمنتجات ذات الصلة
------------------------------------------- */
.related-section-title {
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: center;
}

.related-card-custom {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.related-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

 /* صندوق الكود الرئيسي */
    .hoststag-code-box {
      background-color: #1e1e1e;
      border-radius: 8px;
      margin: 25px 0;
      overflow: hidden;
      direction: ltr;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* الترويسة العلوية */
    .hoststag-code-header {
      background-color: #2d2d2d;
      padding: 10px 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #3a3a3a;
    }

    /* أزرار الماك (أحمر، أصفر، أخضر) */
    .hoststag-mac-btns {
      display: flex;
      gap: 8px;
    }

    .hoststag-mac-btns span {
      width: 12px;
      height: 12px;
      border-radius: 50%;
    }

    .hoststag-mac-btns span:nth-child(1) {
      background-color: #ff5f56;
    }

    .hoststag-mac-btns span:nth-child(2) {
      background-color: #ffbd2e;
    }

    .hoststag-mac-btns span:nth-child(3) {
      background-color: #27c93f;
    }

    /* زر النسخ */
    .hoststag-copy-btn {
      background: #4a4a4a;
      color: #fff;
      border: none;
      padding: 5px 12px;
      border-radius: 4px;
      font-size: 12px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .hoststag-copy-btn:hover {
      background: #5a5a5a;
    }
 
    /* تنسيق الكود نفسه */
    .hoststag-code-box pre {
      margin: 0;
      padding: 15px;
      overflow-x: auto;
      color: #d4d4d4;
      font-family: Consolas, Monaco, monospace;
      font-size: 14px;
      line-height: 1.6;
      text-align: left;
		    max-height: 400px;
    }
 
/* ======================================================
   تنسيق الجداول المتجاوبة بـ CSS فقط (حل مشكلة المسافة البيضاء)
   ====================================================== */

/* ======================================================
   تنسيق الجداول المتجاوبة بـ CSS فقط (حل مشكلة المسافة البيضاء)
   ====================================================== */

/* STREAMING_CHUNK:Updating CSS selectors for article and product cards... */
/* 1. التنسيق الأساسي للشاشات العادية (دسك توب وتابلت): يتمدد 100% بالتساوي بدون مسافات بيضاء */
.article-main-card table,
.product-details-content table,
.post-content-body table,
.article-content-body table {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    background-color: #ffffff !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    margin: 1.8rem 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* للحفاظ على انحناء زوايا الجدول */
}

/* 2. تنسيق صف العناوين الرئيسية (Header) وتوزيعها على العرض الكامل */
.article-main-card table th,
.product-details-content table th,
.post-content-body table th,
.article-content-body table th {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 14px 16px !important;
    border: none !important;
    border-bottom: 3px solid #0d6efd !important;
    text-align: right !important;
    font-size: 0.98rem !important;
}

/* 3. تنسيق خلايا البيانات (Cells) */
.article-main-card table td,
.product-details-content table td,
.post-content-body table td,
.article-content-body table td {
    padding: 12px 16px !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
    vertical-align: middle !important;
    line-height: 1.6 !important;
    word-break: break-word !important; /* منع خروج النصوص الطويلة عن الخلية */
}

/* 4. إزالة خط الحدود السفلي من آخر صف */
.article-main-card table tr:last-child td,
.product-details-content table tr:last-child td,
.post-content-body table tr:last-child td,
.article-content-body table tr:last-child td {
    border-bottom: none !important;
}

/* 5. تأثير التناوب في الألوان (Zebra Striping) */
.article-main-card table tr:nth-child(even),
.product-details-content table tr:nth-child(even),
.post-content-body table tr:nth-child(even),
.article-content-body table tr:nth-child(even) {
    background-color: #f8fafc !important;
}

/* 6. تأثير التمرير عند وضع الماوس (Hover Effect) */
.article-main-card table tr:hover,
.product-details-content table tr:hover,
.post-content-body table tr:hover,
.article-content-body table tr:hover {
    background-color: #f1f5f9 !important;
    transition: background-color 0.2s ease-in-out;
}

/* 7. التجاوب الخاص بشاشات الموبايل والصغيرة: تفعيل التمرير الأفقي فقط عند الحاجة */
@media (max-width: 768px) {
    .article-main-card table,
    .product-details-content table,
    .post-content-body table,
    .article-content-body table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap !important;
    }
}
/* ======================================================
تنسيق الانسيابية والأنيميشن لوسم details & summary (FAQ)
====================================================== */

/* STREAMING_CHUNK:Defining global and scoped Bootstrap CSS variables... /
/ ======================================================
تنسيق وتعريف متغيرات Bootstrap 5 المفقودة للأسئلة الشائعة
====================================================== */

/* 1. تعريف المتغيرات البرمجية المفقودة بداخل :root و كلاس الأسئلة */
:root,
.faq-bootstrap-item {
--bs-accordion-btn-icon-width: 20px;
--bs-accordion-btn-icon-transform: rotate(-180deg);
--bs-accordion-btn-icon-transition: transform 0.35s ease-in-out;
--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230a58ca'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* STREAMING_CHUNK:Styling the accordion item container... /
/ 2. التنسيق الأساسي لحاوية السؤال */
.faq-bootstrap-item {
background-color: #ffffff;
border: 1px solid #e2e8f0 !important;
border-radius: 10px !important;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
transition: all 0.3s ease;
margin-bottom: 1rem;
}

.faq-bootstrap-item:hover {
box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
}

/* STREAMING_CHUNK:Styling button and dynamic icon using variables... /
/ 3. تنسيق عنوان السؤال واستدعاء المتغيرات البرمجية */
.faq-bootstrap-item .accordion-button {
cursor: pointer;
user-select: none;
font-weight: 700;
color: #0d6efd !important;
background-color: #f8fafc !important;
padding: 1rem 1.25rem !important;
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
width: 100% !important;
transition: background-color 0.3s ease, color 0.3s ease;
box-shadow: none !important;
border: none !important;
text-align: right;
}

.faq-bootstrap-item .accordion-button:not(.collapsed) {
background-color: #edf5ff !important;
color: #0a58ca !important;
}

/* 4. استدعاء واستخدام متغيرات بوتستراب المعرفة بداخل ::after */
.faq-bootstrap-item .accordion-button::after {
content: "" !important;
display: inline-block !important;
width: var(--bs-accordion-btn-icon-width) !important;
height: var(--bs-accordion-btn-icon-width) !important;
min-width: var(--bs-accordion-btn-icon-width) !important;
min-height: var(--bs-accordion-btn-icon-width) !important;
flex-shrink: 0 !important;
background-image: var(--bs-accordion-btn-icon) !important;
background-repeat: no-repeat !important;
background-position: center !important;
background-size: var(--bs-accordion-btn-icon-width) !important;
transition: var(--bs-accordion-btn-icon-transition) !important;
margin-right: auto !important;
margin-left: 0.5rem !important;
}

/* دوران واحتساب التغيير عند فتح السؤال */
.faq-bootstrap-item .accordion-button:not(.collapsed)::after {
transform: var(--bs-accordion-btn-icon-transform) !important;
background-image: var(--bs-accordion-btn-active-icon) !important;
}

/* STREAMING_CHUNK:Styling body text and smooth expansion animation... /
/ 5. تنسيق محتوى الإجابة والأنيميشن */
.faq-bootstrap-item .accordion-body {
color: #475569;
line-height: 1.8;
font-size: 1rem;
background-color: #ffffff;
padding: 1.25rem !important;
border-top: 1px solid #e2e8f0 !important;
}


@keyframes faqFadeIn {
from {
opacity: 0;
transform: translateY(-6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* STREAMING_CHUNK:Defining base badge and soft alert-color badge styles... /
/ ==========================================================================
Custom Soft Badges CSS (Light Alert Colors for Clean Class Names)
========================================================================== */

/* 1. الشارة الزرقاء الفاتحة */
.badge.badge-primary,
.badge-primary {
background-color: #cfe2ff !important;
color: #084298 !important;
border: 1px solid #b6d4fe !important;
}

/* 2. الشارة الخضراء الفاتحة */
.badge.badge-success,
.badge-success {
background-color: #d1e7dd !important;
color: #0f5132 !important;
border: 1px solid #badbcc !important;
}

/* 3. الشارة التحذيرية الفاتحة */
.badge.badge-warning,
.badge-warning {
background-color: #fff3cd !important;
color: #664d03 !important;
border: 1px solid #ffecb5 !important;
}

/* 4. الشارة الحمراء الفاتحة */
.badge.badge-danger,
.badge-danger {
background-color: #f8d7da !important;
color: #842029 !important;
border: 1px solid #f5c2c7 !important;
}

/* 5. الشارة السماوية الفاتحة */
.badge.badge-info,
.badge-info {
background-color: #cff4fc !important;
color: #055160 !important;
border: 1px solid #b6effb !important;
}

/* 6. الشارة الرمادية الفاتحة */
.badge.badge-light,
.badge-light {
background-color: #f8fafc !important;
color: #334155 !important;
border: 1px solid #e2e8f0 !important;
}

/* 7. الشارة الداكنة الفاتحة */
.badge.badge-dark,
.badge-dark {
background-color: #e2e8f0 !important;
color: #0f172a !important;
border: 1px solid #cbd5e1 !important;
}

/* ==========================================================================
HostStag Clean Promo Card CSS (Minimal Classes)
========================================================================== */

.hs-promo-card {
background-color: #f0f7ff;
border: 1px solid #bfdbfe;
border-right: 5px solid #0d6efd;
border-radius: 12px;
padding: 24px;
margin: 35px 0;
direction: rtl;
text-align: right;
box-shadow: 0 4px 15px rgba(13, 110, 253, 0.05);
}

.hs-promo-card h4 {
color: #0d6efd;
font-weight: 800;
font-size: 1.25rem;
margin-top: 0;
margin-bottom: 10px;
line-height: 1.4;
}

.hs-promo-card p {
color: #334155;
font-size: 0.98rem;
line-height: 1.7;
margin-bottom: 18px;
}
.hs-promo-card ul {
list-style: none;
padding: 0;
margin: 0 0 20px 0;
}

.hs-promo-card ul li {
color: #334155;
font-size: 0.95rem;
line-height: 1.8;
margin-bottom: 8px;
}

.hs-promo-card ul li strong {
color: #0f172a;
}
.hs-promo-card .hs-promo-btn {
background-color: #0d6efd;
color: #ffffff !important;
font-weight: 700;
font-size: 0.95rem;
padding: 10px 22px;
border-radius: 8px;
text-decoration: none !important;
display: inline-block;
transition: all 0.25s ease;
box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.hs-promo-card .hs-promo-btn:hover {
background-color: #0b5ed7;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

 .faq-section-wrapper {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
        padding: 2.5rem 2rem;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    .faq-header-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background-color: rgba(13, 110, 253, 0.08);
        color: #0d6efd;
        font-weight: 700;
        font-size: 0.85rem;
        padding: 6px 16px;
        border-radius: 50px;
        margin-bottom: 1rem;
    }
    .faq-accordion .accordion-item {
        border: 1px solid #e2e8f0;
        border-radius: 14px !important;
        margin-bottom: 1rem;
        overflow: hidden;
        background-color: #ffffff;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .faq-accordion .accordion-item:last-child {
        margin-bottom: 0;
    }
    .faq-accordion .accordion-item:hover {
        border-color: #cbd5e1;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
        transform: translateY(-2px);
    }
    .faq-accordion .accordion-button {
        font-size: 1.05rem;
        font-weight: 700;
        color: #1e293b;
        background-color: #ffffff;
        padding: 1.25rem 1.5rem;
        box-shadow: none !important;
        transition: all 0.2s ease;
    }
    .faq-accordion .accordion-button:not(.collapsed) {
        color: #0d6efd;
        background-color: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }
    .faq-accordion .accordion-button::after {
        background-size: 1rem;
        transition: transform 0.3s ease;
		margin-right: auto;
		margin-left: 0;
    }
    .faq-accordion .accordion-body {
        padding: 1.5rem;
        color: #475569;
        font-size: 0.98rem;
        line-height: 1.8;
        background-color: #ffffff;
    }
    .faq-q-icon {
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, #0d6efd, #0b5ed7);
        color: #ffffff;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        flex-shrink: 0;
        margin-left: 12px;
    }