
h1{
    font-weight: 600;
    size: 64px;
    line-height: 76.8px;
    text-align: right;
    color: var(--black-color);
    margin-right:150px;
}


div.box{
    margin-bottom: 8rem;
    margin-top: 3rem;
}

.section1 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


.center-image {
    position: relative;
    z-index: 1;
    width: 460px;
    height: 564px;
    border-radius: 16px; 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); /* إعدادات الظل */
    object-fit: cover; /* يجعل الصورة تملأ الحاوية بشكل متناسق */
  
}



.square1, .square2 {
    position: absolute;
    width: 273px;
    height: 248px;
    background-color: var(--svg-color);
    border-radius: 16px;
    z-index: 0;


}

.square1 {
    top: 4px;
    right: 38px;
}

.square2 {
    bottom: 0px;
    left: 35px;
}

/* Styling for the text section */

.section2 {
    /* width: 644px; */
    height: 670px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 20px;
}

.section2 h2 {
    font-size: 39px;
    line-height: 46.8px;
    font-weight: 600;
    color:var(--title-text-color-blog);
    margin: 0;
}

.section2 p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color:var(--title-text-color-blog);
    margin: 0;
}

.section2 button {
    all: unset;
    cursor: pointer;
    background-color: #29ABE2;
    color: #fff;
    width: 550px;
    padding: 10px 25px;
    border-radius: 55px;
    font-size: 28px;
    font-weight: 500;
    line-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
}


.icon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:11px; 
}

.icon-text svg {
    width: 50px;
    height: 50px;
}

.icon-text p {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 37.76px;
    color: var(--black-color);
    margin: 0;
}


@media (max-width:1399px){
    div.box {
    margin-top: 1rem;
    }

    .square1 {
        top: 20px;
        right: 20px;
    }

    .square2 {
        bottom: 20px;
        left: 20px;
    }

    .section2 {
        gap: 15px;
    }

    .section2 button {
        width: 480px;
    }

}

@media (max-width:1199px){
    div.box {
    margin-top: 0rem;
    }

    .center-image {
        width: 410px;
        height: 507px;
    }

    .square1 {
        top: 25px;
        right: 10px;
    }

    .square2 {
        bottom: 25px;
        left: 10px;
    }

    .section2 {
        height: 613px;
        gap: 10px;
    }

    .section2 h2 {
        font-size: 24px;
    }


    .icon-text svg {
        width: 40px;
        height: 40px;
    }

    .section2 button {
        width: 385px;
        font-size: 24px;
        line-height: 45px;
    }

}

@media (max-width:991px){
    div.box {
        margin-bottom: 1rem;
        margin-top: 2rem;
    }

    .section2 {
        margin-top: 1rem;
        height: 460px;
    }

    .square1 {
        top: -15px;
        right: 140px;
    }

    .square2 {
        bottom: -17px;
        left: 139px;
    }

}

@media (max-width:767px){

    h1{
        margin-right: 120px;
    }

    .section2 {
        height: 565px;
    }

    .square1 {
        top: -15px;
        right: 50px;
    }

    .square2 {
        bottom: -15px;
        left: 50px;
    }

}

@media (max-width:660px){
    h1{
        margin-right: 80px;
    }
}

@media (max-width:600px){
    h1{
        margin-right: 55px;
    }
}

@media (max-width:510px){
    div.box {
        margin-top: 0rem;
    }

    .square1 {
        display: none;
    }

    .square2 {
        display: none;
    }

    .section2 {
        height: 600px;
    }
}

@media (max-width:479px){


    .section2 {
        height: 650px;
    }
}

@media (max-width:430px){
    h1 {
        margin-right: 35px;
    }
    .center-image {
      width: 330px;
      height: 430px;
  }


    .section2 {
        height: 700px;
    }

    .section2 button {
        width: 360px;
        font-size: 18px;
        line-height: 40px;
    }
}

@media (max-width:400px){



    .section2 {
        height: 750px;
    }

    .section2 button {
        width: 310px;
    }
}

@media (max-width:360px){

  .center-image {
    width: 270px;
    height: 330px;
}
    .section2 {
        height: 800px;
    }

    .section2 button {
        width: 270px;
    }
}

@media (max-width:330px){



    .section2 {
        height: 850px;
    }

    .section2 button {
        width: 230px;
    }
}


.event-content-wrapper {
  max-height: 500px; /* تحديد أقصى ارتفاع للنص */
  overflow-y: auto;  /* السماح بالتمرير العمودي في حالة وجود نص طويل */
  padding-right: 10px;
  min-height:400px;;
}


