﻿
/* تنسيق الصور بشكل عام */
.content img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* الحاوية الرئيسية */
.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

/* عنصر الصورة - يغطي الإطار بالكامل */
.gallery-item {
    width: 100%;
    height: 500px;
    max-width: 1000px;
    margin: 0 auto;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

    .gallery-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        display: block;
        transition: transform 0.6s ease;
        max-width: 100%;
    }

    .gallery-item:hover img {
        transform: scale(1.08);
    }

    .gallery-item .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        background: linear-gradient(135deg, rgba(154, 15, 15, 0.85) 0%, rgba(0, 0, 0, 0.85) 100%);
        border-radius: 16px;
        pointer-events: none;
        z-index: 2;
        color: white;
        text-align: center;
    }

    .gallery-item:hover .overlay {
        opacity: 1;
    }

.overlay h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffc300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 80%;
    margin: 0 auto;
}

.gallery-title {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    padding: 40px 0;
    margin-bottom: 40px;
    color: #FFC300;
    border-radius: 0 0 50px 50px;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    width: 100%;
}

/* إزالة الهوامش والمسافات بين الصفوف */
.row.g-0 {
    margin-right: 0;
    margin-left: 0;
}

    .row.g-0 > [class*="col-"] {
        padding-right: 0;
        padding-left: 0;
    }

/* إزالة أي هوامش سفلية من المحتوى */
.mb-5 {
    margin-bottom: 0 !important;
}

/* تنسيق الصورة الثانية */
.col-12 img {
    display: block;
    vertical-align: middle;
}

/* ===== التصميم الجديد للصورة اللاصقة فوق الصورة الثانية ===== */
.image-stack-container {
    position: relative;
    width: 100%;
    margin-top: 0;
}

.sticky-image-overlay {
    position: relative;
    width: 100%;
}

    .sticky-image-overlay .sticky-image {
        width: 100%;
        height: auto;
        display: block;
        max-width: 100%;
    }

.floating-image-right {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    height: auto;
    z-index: 30;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .floating-image-right:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    }

/* تحسينات للشاشات المختلفة */
@media (max-width: 1200px) {
    .floating-image-right {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .floating-image-right {
        width: 220px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    .floating-image-right {
        width: 180px;
        top: 10px;
        right: 10px;
        border-width: 3px;
    }
}

@media (max-width: 576px) {
    .floating-image-right {
        width: 130px;
        top: 8px;
        right: 8px;
        border-width: 2px;
    }
}

@media (max-width: 400px) {
    .floating-image-right {
        width: 100px;
        top: 5px;
        right: 5px;
    }
}

.headerTop-header {
    padding: 20px 0;
    text-align: center;
}

    .headerTop-header h3 {
        margin: 5px 0;
    }

ul.list-icon {
    padding-right: 0;
}

    ul.list-icon li {
        list-style: none;
        margin-bottom: 20px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

        ul.list-icon li i {
            font-size: 24px;
            color: #28a745;
            flex-shrink: 0;
            margin-top: 3px;
        }

        ul.list-icon li p {
            margin: 0;
            flex: 1;
        }

@media (max-width: 576px) {
    ul.list-icon li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

        ul.list-icon li i {
            margin-bottom: 5px;
        }

    .gallery-title {
        font-size: 28px;
        padding: 30px 0;
    }

    .overlay h3 {
        font-size: 24px;
    }

    .overlay p {
        font-size: 16px;
    }

    .headerTop-header h3 {
        font-size: 24px;
    }

        .headerTop-header h3:last-child {
            font-size: 20px;
        }
}

@media (max-width: 375px) {
    .floating-image-right {
        width: 90px;
    }

    .gallery-item {
        height: 300px;
    }

    .overlay h3 {
        font-size: 18px;
    }

    .overlay p {
        font-size: 13px;
    }
}
