/* الحاوية الشاملة للقسمين */
.about-page-wrapper {
    max-width: 95%;
    margin: 60px auto;
    padding: 0 20px;
    direction: rtl; /* دعم اللغة العربية */
    font-family: 'Tajawal', sans-serif;
}

/* التنسيق المشترك للمستطيلين الكبيرين */
.about-main-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 50px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    overflow: hidden;
}

/* 🏢 تخصيص المستطيل الأول (من نحن) */
.block-one {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text-content {
    flex: 1;
}

.block-badge {
    background-color: #eff6ff;
    color: #1d4ed8; /* الأزرق الأساسي */
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.about-text-content h2 {
    color: #0f172a;
    font-size: 2.3rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.about-text-content p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

/* 🖼️ حركة وتأثير الصورة (المستطيل الأول) */
.about-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.interactive-image-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: perspective(1000px); /* تهيئة بيئة الحركة ثلاثية الأبعاد */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
}

.interactive-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* طبقة الإضاءة المضيئة الناعمة فوق الصورة */
.image-overlay-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135px, rgba(29, 78, 216, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* 🖱️ تأثير Hover الصورة عند مرور الماوس */
.interactive-image-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-10deg) translateY(-5px); /* التواء ثلاثي أبعاد ذكي */
    box-shadow: 0 25px 45px rgba(29, 78, 216, 0.15);
}

.interactive-image-card:hover img {
    transform: scale(1.06); /* زووم سلس للصورة */
}

.interactive-image-card:hover .image-overlay-glow {
    opacity: 1; /* ظهور التوهج الأزرق */
}
.txt-hov {
	    transition:  0.5s ease;
}
.txt-hov:hover {
    transform: scale(1.06); /* تكبير العنوان */
}

/* 🎯 تخصيص المستطيل الثاني (المربعات الثلاثة) */
.block-two {
    background-color: #f8fafc; /* خلفية ناعمة لتمييز المربعات */
    padding: 40px;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 مربعات متساوية */
    gap: 30px;
}

/* تصميم المربع الفردي */
.core-value-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

/* 🔵 التأثير البصري الذاتي (وهج خلفي للمربعات) */
.card-glow-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(59deg,rgba(6, 24, 43, 1) 0%, rgba(15, 96, 182, 1) 58%);
    z-index: -1;
    transform: translateY(100%); /* مختبئ بالأسفل */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* دائرة الأيقونة وتأثيرها الحركي الذاتي */
.value-icon-circle {
    width: 75px;
    height: 75px;
    background-color: #eff6ff;
    color: #1d4ed8; /* الأزرق الجوهري */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.05);
    transition: all 0.4s ease;
    
    /* 🔄 الحركة الذاتية المستمرة للأيقونة (نبض وارتفاع تلقائي) */
    animation: iconFloat 3.5s ease-in-out infinite;
}

/* تنظيم حركة بقية نصوص الكروت */
.core-value-card h3 {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    transition: color 0.3s ease;
}

.core-value-card p {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
    transition: color 0.3s ease;
}

/* 🔥 حركة الـ Hover عند مرور الماوس فوق المربعات الثلاثة */
.core-value-card:hover {
    transform: translateY(-19px); /* صعود الكارت بالكامل */
    border-color: #1d4ed8;
    box-shadow: 0 20px 35px rgba(29, 78, 216, 0.18);
    cursor: pointer;
}

/* صعود الخلفية الزرقاء وتغطية الكارت بالكامل */
.core-value-card:hover .card-glow-bg {
    transform: translateY(0);
}

/* عكس ألوان الأيقونة وعناصر الكارت تلقائياً */
.core-value-card:hover .value-icon-circle {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    animation-play-state: paused; /* إيقاف الحركة الذاتية عند وقوف الماوس لقراءة أفضل */
    transform: scale(1.08);
}

.core-value-card:hover h3 {
    color: #ffffff;
}

.core-value-card:hover p {
    color: #f1f5f9;
}

/* 🔄 كود الـ Animation للحركة الذاتية المستمرة للأيقونات */
@keyframes iconFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); } /* ترتفع للأعلى وتلتف تلميحاً */
    100% { transform: translateY(0px) rotate(0deg); }
}

/* 📱 هندسة التجاوب التام والمرن مع شاشات الجوال والتابلت */
@media (max-width: 992px) {
    .block-one {
        flex-direction: column; /* تحويل لصف عمودي في التابلت والموبايل */
        text-align: center;
        padding: 35px 25px;
    }
    .core-values-grid {
        grid-template-columns: repeat(2, 1fr); /* مربعين بالصف على التابلت */
    }
    .block-badge { margin-bottom: 15px; }
}

@media (max-width: 680px) {
    .core-values-grid {
        grid-template-columns: 1fr; /* مربع واحد ممتد بالكامل على الموبايل */
        gap: 20px;
    }
    .about-main-block {
        padding: 30px 20px;
    }
    .block-two {
        padding: 20px;
    }
    .about-text-content h2 { font-size: 1.8rem; }
    .interactive-image-card { height: 260px; }
}
