/* صورة الهيدر الكبيرة */
.about-header-image {
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1300px;
    color: white;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    text-align: center;
    padding: 0 15px;
    margin: 20px auto;
    position: relative;
    border-radius: 12px;
}

.about-header-image .overly h1 {
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;        /* enable flexbox for lines */
    -webkit-line-clamp: 1;       /* limit to 5 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;            /* hide extra text */
    text-overflow: ellipsis; 
}

.about-header-image  .overly {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(#00000000,#00000037,#0000008d);
}

.about-header-image  .overly p {
    font-size: 18px;
    max-width: 700px;
    display: -webkit-box;        /* enable flexbox for lines */
    -webkit-line-clamp: 5;       /* limit to 5 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;            /* hide extra text */
    text-overflow: ellipsis; 
}

.about-container {
    max-width: 1300px;
    margin: auto;
    padding: 40px 0px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-card {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}


.about-card .image-container {
    width: 100%;
    height:100%;
    min-height: 300px;
    position: relative;
}


.about-card .image-container img {
    width: 100%;
    height:100%;
    position: absolute;
    object-fit: cover;
}

.about-text {
    padding: 25px;
    width: 100%;
}

.about-text h2 {
    color: #2d8659;
    text-align: end;
    margin-bottom: 10px;
}

.about-text p {
    text-align: justify;
    font-size: 16px;
    text-align: end;
    color: #444;
}

@media (max-width: 768px) {
    .about-card {
           grid-template-columns: repeat(1, 1fr);
    }

    .about-text{
        padding: 12px;
    }
    
    .about-card img, .about-text {
        width: 100%;
    }
}
    
@media (max-width: 1300px){
    .about-header-image ,.about-container{
        margin-left: 20px;
        margin-right: 20px;
    }
}