.captionjs.captionjs-stacked {
  max-width: fit-content;
}
section {
  padding: 10px 0 !important;;
}
#footer img {
  max-width: 250px;
}
.article-body_Custom h5 a {
  color: #3f1616;
  margin: 0px;
  font-size: 24px;
}
.fixed-top {
    position: relative !important;
}
.article-body_Custom h3 {
  font-size: 22px;
}
#header {
       top: 0 !important;
       border-top: none;

}
.article-body_Custom h4 {
  font-size: 20px;
}
.article-body_Custom h5 ul {
  background: #f3f3f3;
}

.article-body_Custom strong {
  font-family: "Readex Pro", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "HEXP" 0;
  font-weight: 500;
}
.article-body_Custom h4 {
  font-size: 22px;
}
.article-body_Custom * {
  font-family: "Readex Pro", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "HEXP" 0;
line-height: inherit;
}
.article-body_Custom p, .article-body_Custom br, .article-body_Custom div {
font-weight: 300;
}
.topic-page p,
.topic-page .article-body_Custom {
  margin-bottom: 1rem;
  word-wrap: break-word;
  font-size: 20px;
  line-height: 1.8;
}

.topic-page p,
.topic-page .article-body_Custom p,
.topic-page .article-body_Custom br {
  text-indent: 15px;
}
.fixed-top-margin {
    margin-top: 20px !important;
}
.sw_title_desc_img {
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  margin-top: -30px !important;
  position: relative;
  width: 100%;
  float: left;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 16px;
  margin-bottom: 20px;
}

.post-main-photo {
  width: 100%;
  max-height: 700px;
}

.sw_title_desc_img::before {
  content: url("https://www.alndaa.net/uploads/Camera_Icon16.png");
}

.topic-page br,
.article-body_Custom br {
  margin-bottom: 20px;
  text-indent: 15px;
}

.img_hover_container .topics_card.h-100.w-100.writer {
  max-width: 200px;
  max-height: 200px;
  border-radius: 80%;
}
.topics_card.h-100.w-100.writer {
  width: 100% !important;
  height: auto !important;
  max-width: 200px !important;
  max-height: 200px !important;
  border-radius: 80% !important;
  object-fit: cover !important;
}

.article-body_Custom h3,
.article-body_Custom h4 {
  border-right: solid #551b1b 6px;
  padding-right: 10px;
  font-weight: 500;
}

.sw_title_sub {
  font-size: 28px;
}

.link_slider {
  background: #00000091;
}

.image-container.undefined {
  text-indent: initial;
}

.article-body_Custom p a,
.article-body_Custom p img {
  display: initial;
}

.article-body_Custom a {
  color: #2775c3;
}

@media (max-width: 768px) {
  .image-container.undefined {
    display: inline-block;
  }

  .article-body_Custom h3 {
    font-size: 22px;
  }
}


<!-- Google Tag Manager -->
    <style>
    a:hover,
    .site-top a,
    #topbar .contact-info i,
    #topbar .contact-info a:hover,
    #topbar .social-links a:hover,
    .navbar a:hover,
    .navbar .active,
    .navbar .active:focus,
    .navbar li:hover>a,
    .navbar .dropdown ul a:hover,
    .navbar .dropdown ul .active:hover,
    .navbar .dropdown ul li:hover>a,
    #footer .footer-bottom a,
    .sidebar-list .list-group .active,
    .sidebar-list .list-group a:hover,
    .contact .info i {
        color: #ec1b24;
    }

    .navbar .active,
    .navbar .active:focus {
        color: #ec1b24 !important;
    }

    #hero .carousel-item::before {
        background-color: rgba(46,62,78,0.7);
    }

    a,
    #footer .footer-bottom a:hover,
    .section-title h2,
    .staff .member h4,
    .testimonials .testimonial-item h3 {
        color: #2e3e4e;
    }

    .read-more-link:hover,
    .card-title:hover {
        color: #ec1b24 !important;
    }

    .btn-theme,
    #footer .footer-newsletter form button:hover,
    .back-to-top,
    .section-title h2::before,
    .section-title h2::after,
    .contact .info .email:hover i,
    .contact .info .address:hover i,
    .contact .info .phone:hover i {
        background: #ec1b24;
    }

    .btn-primary {
        background: #2e3e4e;
        border-color: #2e3e4e;
    }

    .btn-primary:hover,
    .btn-primary:active,
    .btn-primary:focus {
        background: #ec1b24 !important;
        border-color: #ec1b24 !important;
    }

    .btn-theme:hover,
    #footer .footer-newsletter form button,
    .back-to-top:hover {
        background: #2e3e4e;
    }

    .section-bg {
        background-color: #edf3f2;
    }

    #footer .footer-bottom,
    .breadcrumbs {
        background-color: #edf3f2;
    }

    .testimonials .testimonial-item .quote-icon-left,
    .testimonials .testimonial-item .quote-icon-right {
        color: #dfeae8;
    }

    .testimonials .swiper-pagination .swiper-pagination-bullet {
        border-color: #ec1b24;
    }

    .testimonials .swiper-pagination .swiper-pagination-bullet-active {
        background-color: #ec1b24;
    }

    .btn-secondary,
    .bg-secondary {
        background-color: #ec1b24;
        border-color: #ec1b24;
    }

    .btn-secondary:hover {
        background-color: #2e3e4e;
        border-color: #2e3e4e;
    }

    .tooltip-inner {
        background-color: #ec1b24;
    }

    .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
    .bs-tooltip-top .tooltip-arrow::before {
        border-top-color: #ec1b24;
    }

    .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
    .bs-tooltip-top .tooltip-arrow::before {
        border-bottom-color: #ec1b24;
    }

    .services .icon-box:hover {
        background: #2e3e4e !important;
        border-color: #2e3e4e !important;
    }

    .services .icon-box {
        border-color: #ec1b24 !important;
        background: #ec1b24 !important;
    }

    .services .icon-box .icon i,
    .services .icon-box:hover .icon i {
        color: #ec1b24;
    }

    .bottom-article,
    .widget-title,
    .contact .info i {
        background: #edf3f2;
        border-color: #dfeae8;
    }

    .text-primary {
        color: #ec1b24 !important;
    }

    .bg-primary {
        background-color: #ec1b24 !important;
        border-color: #ec1b24 !important;
    }

    .list-group-item,
    .card,
    .form-control,
    .card {
        border-color: #dfeae8;
    }

    .page-link {
        color: #000 !important;
    }

    .active>.page-link,
    .page-link.active {
        background-color: #ec1b24 !important;
        border-color: #ec1b24 !important;
    }

    #preloader:before {
        border-color: #ec1b24;
        border-top-color: #dfeae8;
    }

    #footer .footer-top .footer-links ul a:hover,
    #footer a:hover,
    #footer a:active {
        color: #ec1b24;
    }

    .form-control:focus {
        border-color: #dfeae8;
        box-shadow: 0 0 0 0.25rem#edf3f2;
    }

    .dropdown-item:focus,
    .dropdown-item:hover {
        color: #ec1b24 !important;
    }

    .select2-container--default .select2-results__option--selected {
        background-color: #edf3f2;
    }

    .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
        background-color: #ec1b24;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        background-color: #edf3f2 !important;
    }

    .bg-light {
        background-color: #2e3e4e !important;
    }

    .text-light {
        color: #edf3f2 !important;
    }

    .text-light::placeholder {
        color: #dfeae8 !important;
        opacity: 0.7;
    }

    .text-light::-ms-input-placeholder {
        color: #dfeae8 !important;
        opacity: 0.7;
    }

    .accordion-item {
        border-color: #dfeae8 !important;
    }

    .accordion-item:last-of-type .accordion-button.collapsed {
        background: #edf3f2 !important;
    }

    .accordion-button:not(.collapsed) {
        color: #fff !important;
        background-color: #ec1b24 !important;
        box-shadow: none;
    }

    .no-data {
        color: #2e3e4e !important;
    }

    .btn.disabled,
    .btn:disabled,
    fieldset:disabled .btn {
        color: #dfeae8 !important;
    }

    .header-form-search .form-control {
        background-color: #edf3f2 !important;
    }

    .home-page .testimonials,
    .home-page .gallery {
        border-top: 1px solid #edf3f2 !important;
    }

    .staff .member span::after {
        background: #ec1b24 !important;
    }

    .cookies-accept-box {
        background-color: rgba(46,62,78,0.9);
    }

    .post-gallery {
        background: #edf3f2 !important;
    }

    .line-frame {
        border: 1px solid #dfeae8 !important;
    }

    .gallery .gallery-item {
        border: 3px solid #fff;
    }

    .staff .member {
        background: #dfeae8 !important;
        box-shadow: none;
    }

    .staff .member .member-info .custom-field-value {
        background: transparent;
    }

/* ==== الإعدادات الأساسية ==== */
.article-body_Custom figure {
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
}

/* ==== الحاوية الذكية للصورة ==== */
.smart-figure {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 20px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.smart-figure:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ==== أحجام الصور المختلفة ==== */

/* الصور الصغيرة */
.smart-figure.size-small {
    max-width: 280px;
    float: right;
    margin: 15px 0 25px 25px;
    clear: right;
}

/* الصور المتوسطة */
.smart-figure.size-medium {
    max-width: 380px;
    float: right;
    margin: 15px 0 25px 30px;
    clear: right;
}

/* الصور الكبيرة */
.smart-figure.size-large {
    width: 100%;
    max-width: 750px;
    margin: 35px auto;
    float: none;
    clear: both;
}

/* الصور بالعرض الكامل */
.smart-figure.size-full {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    float: none;
    clear: both;
}

/* ==== حاوية الصورة ==== */
.smart-figure .image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: block;
    line-height: 0;
}

.smart-figure .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.02) 100%);
    pointer-events: none;
}

/* ==== الصورة نفسها ==== */
.smart-figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.smart-figure .image-container:hover img {
    transform: scale(1.03);
}

/* ==== أيقونة التكبير ==== */
.smart-figure .zoom-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    z-index: 3;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.smart-figure:hover .zoom-icon {
    opacity: 1;
    transform: scale(1.1);
}

.smart-figure .zoom-icon:hover {
    background: rgba(0, 123, 255, 0.9);
    transform: scale(1.2);
}

/* ==== التسمية التوضيحية ==== */
.smart-figure figcaption {
    padding: 18px 22px;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.95) 0%, 
        rgba(233, 236, 239, 0.95) 100%);
    border-top: 1px solid rgba(222, 226, 230, 0.6);
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
    text-align: center;
    font-weight: 500;
    position: relative;
    backdrop-filter: blur(10px);
}

/* خط زخرفي فوق التسمية */
.smart-figure figcaption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        #007bff 0%, 
        #0056b3 50%, 
        #007bff 100%);
    border-radius: 2px;
    opacity: 0.8;
}

/* ==== تنسيقات خاصة لكل حجم ==== */

/* للصور الصغيرة */
.smart-figure.size-small figcaption {
    padding: 14px 18px;
    font-size: 13px;
}

.smart-figure.size-small .zoom-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    top: 10px;
    left: 10px;
}

/* للصور الكبيرة */
.smart-figure.size-large figcaption,
.smart-figure.size-full figcaption {
    padding: 22px 28px;
    font-size: 15px;
}

.smart-figure.size-large figcaption::before,
.smart-figure.size-full figcaption::before {
    width: 80px;
    height: 4px;
}

/* ==== الحركات والانتقالات ==== */
.smart-figure.entering {
    opacity: 0;
    transform: translateY(30px);
}

.smart-figure.entered {
    opacity: 1;
    transform: translateY(0);
}

/* ==== حالة التحميل ==== */
.smart-figure .loading-placeholder {
    background: linear-gradient(90deg, 
        #f0f0f0 25%, 
        rgba(240, 240, 240, 0.5) 37%, 
        #f0f0f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    min-height: 200px;
}

@keyframes shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==== حالة الخطأ ==== */
.smart-figure.error img {
    opacity: 0.6;
    filter: grayscale(80%);
}

.smart-figure.error .image-container {
    background: #f8d7da;
}

.smart-figure.error figcaption {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-top-color: #f5c6cb;
}

.smart-figure.error figcaption::before {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

/* ==== تصميم متجاوب - الجوال ==== */
@media (max-width: 768px) {
    .smart-figure,
    .smart-figure.size-small,
    .smart-figure.size-medium,
    .smart-figure.size-large,
    .smart-figure.size-full {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 25px 0 !important;
        clear: both;
    }
    
    .smart-figure figcaption {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .smart-figure .zoom-icon {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .smart-figure:hover {
        transform: translateY(-1px);
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .smart-figure {
        border-radius: 8px;
        margin: 20px 0 !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
    
    .smart-figure figcaption {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .smart-figure .zoom-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
        top: 12px;
        left: 12px;
    }
}

/* ==== تنظيف التدفق ==== */
.article-body_Custom::after {
    content: '';
    display: table;
    clear: both;
}

/* التأكد من عدم تعارض النص مع الصور المطفوة */
.smart-figure + p,
.smart-figure + h1,
.smart-figure + h2,
.smart-figure + h3,
.smart-figure + h4,
.smart-figure + h5,
.smart-figure + h6,
.smart-figure + div {
    clear: none;
    margin-top: 0;
}

/* إضافة مسافة مناسبة للفقرات التي تتبع الصور الكبيرة */
.smart-figure.size-large + p,
.smart-figure.size-full + p {
    margin-top: 25px;
}

/* ==== تحسينات الأداء ==== */
.smart-figure img {
    will-change: transform;
}

.smart-figure:not(:hover) img {
    will-change: auto;
}

/* ==== تنسيق للطباعة ==== */
@media print {
    .smart-figure {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px 0 !important;
        transform: none !important;
    }
    
    .smart-figure .zoom-icon {
        display: none !important;
    }
    
    .smart-figure img {
        transform: none !important;
    }
    
    .smart-figure figcaption {
        background: #f8f9fa !important;
        color: #333 !important;
    }
}

/* ==== تحسينات إضافية ==== */

/* تأثير الظل المحسن للشاشات عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .smart-figure {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    
    .smart-figure:hover {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    }
}

/* دعم الوضع الليلي */
@media (prefers-color-scheme: dark) {
    .smart-figure {
        background: #2d2d2d;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .smart-figure .image-container {
        background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
    }
    
    .smart-figure figcaption {
        background: linear-gradient(135deg, 
            rgba(45, 45, 45, 0.95) 0%, 
            rgba(64, 64, 64, 0.95) 100%);
        color: #e9ecef;
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* تحسين الوصولية */
.smart-figure:focus-within {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

.smart-figure .zoom-icon:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* إعدادات الحركة المخفضة للمستخدمين الذين يفضلون ذلك */
@media (prefers-reduced-motion: reduce) {
    .smart-figure,
    .smart-figure img,
    .smart-figure .zoom-icon {
        transition: none !important;
        animation: none !important;
    }
    
    .smart-figure:hover {
        transform: none !important;
    }
    
    .smart-figure .image-container:hover img {
        transform: none !important;
    }
}

.right-sidebar {
    background-color: #e9ecef !important;
    border-radius: 5px;
}