.main-heading{
    font-size: 2em;
    margin-top: 40px;
    color: #222;
    font-weight: 700;
    color: rgba(189,0,28);
}

.main{
    .boxes{
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-between;
        margin-top: 40px;
        .box{
            width: calc(25% - 20px);
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
            .top{
                position: relative;
                background-color: rgba(128, 128, 128, 0.384);
                padding: 20px 30px;
                h3{
                    margin: 0 0 10px;
                    font-size: 1.2em;
                    /* color: #333; */
                }
                span{
                    position: absolute;
                    top: -10px;
                    left: -10px;
                    height: 30px;
                    width: 30px;
                    border-radius: 50%;
                    background-color: rgba(189,0,28);
                    display: flex;
                    justify-content: center;
                    align-items:  center;
                    font-size: 18px;
                    color: #fff;
                    font-weight: 800;
                }
            }
            ul{
                padding: 20px 10px;
                margin: 0;
                list-style: inside;
                li{
                    margin-bottom: 10px;
                    font-size: 1em;
                    color: #555;
                    &:last-child{
                        margin-bottom: 0;
                    }
                }
            }
            .images{
                display: flex;
                flex-direction: column;
                gap: 20px;
                padding: 0 10px 20px;
                align-items: center;
                justify-content: center;
                img{
                    width: 100%;
                    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
                }
                .single{
                    position: relative;
                    img{
                        height: 90px;
                        &:nth-child(2){
                            position: absolute;
                            top: -13px;
                            right: -40px;
                            height: 50px;
                            width: 70px;
                        }
                    }
                }
            }
        }
    }
}

.design{
    padding-top: 50px;
    display: flex;
    gap: 20px;
    .left,.right{
        width: 50%;
        
        img{
            width: 100%;
            border-radius: 8px;
            padding-bottom: 20px;
        }
        h4{
            font-size: 22px;
            font-weight: 900;
        }
        h5{
            font-size: 18px;
            font-weight: 700;
            color: rgba(189,0,28);
        }

    }
}

.testAndValidation{
    padding-top: 50px;
    display: flex;
    gap: 20px;

    .left,.right{
        width: 50%;
        img{
            width: 100%;
            height: 600px;
            border-radius: 8px;
            padding-bottom: 20px;
            object-fit: cover;
        }
        h4{
            font-size: 22px;
            font-weight: 900;
        }
        h5{
            font-size: 18px;
            font-weight: 700;
            color: rgba(189,0,28);
        }

    }
}

.CaseStudies{
    padding-top: 50px;
    .boxes{
        display: flex;
        flex-direction: column;
        gap: 20px;
        background-color: #fff;
        padding: 50px;
        .box{
            max-width: 100%;
            border-radius: 10px;
            position: relative;
            display: flex;
            justify-content: center;
            gap: 50px;
            img{
                border-radius: 8px;
                object-fit: contain;
                border: 1px solid; 
            }
            .content{
                padding-top: 10px;
                h3{
                    font-size: 24px;
                    font-weight: 700;
                    color: rgba(189,0,28);
                }
                ul{
                    padding: 10px 0;
                    li{
                        margin-bottom: 10px;
                        font-size: 1em;
                        color: #555;
                        &:last-child{
                            margin-bottom: 0;
                        }
                    }
                }
            }
        }
    }
    .defence{
        .box{
            .content{
                /* width: 100%; */
                img{
                    height: 250px !important;
                }
            }
        }
    }
}

.single{
    display: flex;
    gap: 20px;
    .box{
        flex-direction: column;
        gap: 10px !important;
    }
    .second{
        display: flex;
        gap: 20px;
    }
}

@media (max-width: 768px){
    .main{
        .boxes{
            .box{
                width: 100%;
            }
        }
    }
    .design, .testAndValidation{
        flex-direction: column-reverse;
        .left,.right{
            width: 100%;
        }
    }
    .CaseStudies{
        .second{
            flex-direction: column;
        }
        .boxes{
            padding: 20px;
            .box{
                max-width: 100%;
                flex-direction: column;
                .content{
                    min-width: 100%;
                }
                img{
                    height: auto !important;
                    width: 100%;
                }
            }
        }
    }
}

