.container-grid.service-detail{
    min-height: 400px;
    grid-template-columns: repeat(2, 1fr);
}

.container-grid h4{
    padding: 0px;
    margin: 15px 0px;
    font-size: 22px;
}

.container-grid p{
    margin-top: 10px;
    text-align: justify;
}

.grid-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0px;
    margin: 0px;
}

.grid-table{
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: none;
}

.grid-table th{
    color: #0a4e92;
    text-align: center;
    font-size: 18px;
}

.grid-table td{
    vertical-align: top;
    color: #4d4d4d;
    text-align: left;
    padding: 5px 0px;
    line-height: 1.2;
}

.section-about{
    width: calc(100% - 20%);
    height: auto;
    margin-top: 50px;
    padding: 0px 10% 0px 10%;
}

.section-details{
    width: 100%;
    height: auto;
    margin-top: 50px;
    padding: 0px;
}

.section-details h4{
    margin-left: 10%;
}

.section-details h5{
    width: auto;
    padding-left: 10%;
    font-size: 30px;
    font-weight: 500;
    color: #0a4e92;
    border-bottom: 5px solid #0a4e92;
}

.section-details p{
    margin-left: calc(10% + 25px);
    margin-top: 0px;
    margin-bottom: 0px;
    line-height: 2;
}
.section-details p.sub{
    margin-left: calc(10% + 65px);
}

.container-grid.projects{
    padding: 15px 50px;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.container-grid.projects img{
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.container-grid.projects-01{
    padding: 15px 50px;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
    /*grid-template-rows: 300px 250px 400px 250px 230px 250px 180px 250px 280px 280px 350px;*/
    grid-template-rows: repeat(12, 250px);
}

.project-item{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    padding: 0px;
    color: #FFFFFF;
    backface-visibility: hidden;
    text-decoration: none;
    overflow: hidden;
}

.project-item.cat{
    background: #0a4e92;
}

.project-item h5{
    margin: 0px;
    color: #FFFFFF;
    font-size: 20px;
    text-align: left;
    padding: 5px 30px;
    letter-spacing: 2px;
}

.project-item h1{
    margin: 0px;
    color: #FFFFFF;
    font-size: 40px;
    text-align: left;
    padding: 5px 5px;
    word-wrap: break-word;
    text-shadow: 0 0 5px #000000;
}

.project-item::before,
.project-item::after{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.project-item::before{
      transition: 300ms opacity linear;
}

.project-item::after{
    background: linear-gradient(180deg, #00000000 0%, #000000ff 100%);
    opacity: 0;
    transition: 300ms opacity linear;
}

.project-item > *{
    z-index: 5;
}

.project-item img{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0px;
    margin: 0px;
    z-index: 0;
    object-fit: cover;
    transition: 300ms opacity linear;
}

.project-item h5,
.project-item button{
    transform: translateY(2ex);
}

.project-item h5{
    opacity: 0;
    transition: 300ms opacity linear, 300ms transform ease-in-out;
}

.project-item button{
    opacity: 0;
    transition: 300ms opacity linear, 300ms transform ease-in-out;
}

.project-item:focus{
    outline: 0.5rem solid white;
    outline-offset: -0.5rem;
}

.project-item:hover :is(h5, button),
.project-item:focus :is(h5, button){
    transform: none;
}

.project-item:hover::after,
.project-item:focus::after,
.project-item:hover::before,
.project-item:focus::before{
    opacity: 0.7;
}

.project-item:hover h5{
    opacity: 1;
    transition-delay: 200ms;
}


.project-item:nth-child(1){
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}
.project-item:nth-child(2){
    grid-row: 1 / 2;
    grid-column: 2 / 4;
}
.project-item:nth-child(3){
    grid-row: 1 / 3;
    grid-column: 4 / 5;
}
.project-item:nth-child(4){
    grid-row: 2 / 4;
    grid-column: 1 / 2;
}
.project-item:nth-child(5){
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}
.project-item:nth-child(6){
    grid-row: 2 / 3;
    grid-column: 3 / 4;
}
.project-item:nth-child(7){
    grid-row: 3 / 4;
    grid-column: 2 / 3;
}
.project-item:nth-child(8){
    grid-row: 3 / 4;
    grid-column: 3 / 4;
}
.project-item:nth-child(9){
    grid-row: 3 / 5;
    grid-column: 4 / 5;
}
.project-item:nth-child(10){
    grid-row: 4 / 5;
    grid-column: 1 / 3;
}
.project-item:nth-child(11){
    grid-row: 4 / 5;
    grid-column: 3 / 4;
}
.project-item:nth-child(12){
    grid-row: 5 / 7;
    grid-column: 1 / 2;
}
.project-item:nth-child(13){
    grid-row: 5 / 6;
    grid-column: 2 / 3;
}
.project-item:nth-child(14){
    grid-row: 5 / 6;
    grid-column: 3 / 5;
}
.project-item:nth-child(15){
    grid-row: 6 / 7;
    grid-column: 2 / 4;
}
.project-item:nth-child(16){
    grid-row: 6 / 8;
    grid-column: 4 / 5;
}
.project-item:nth-child(17){
    grid-row: 7 / 8;
    grid-column: 1 / 3;
}
.project-item:nth-child(18){
    grid-row: 7 / 8;
    grid-column: 3 / 4;
}
.project-item:nth-child(19){
    grid-row: 8 / 10;
    grid-column: 1 / 2;
}
.project-item:nth-child(20){
    grid-row: 8 / 9;
    grid-column: 2 / 3;
}
.project-item:nth-child(21){
    grid-row: 8 / 9;
    grid-column: 3 / 4;
}
.project-item:nth-child(22){
    grid-row: 8 / 9;
    grid-column: 4 / 5;
}
.project-item:nth-child(23){
    grid-row: 9 / 10;
    grid-column: 2 / 4;
}
.project-item:nth-child(24){
    grid-row: 9 / 10;
    grid-column: 4 / 5;
}
.project-item:nth-child(25){
    grid-row: 10 / 11;
    grid-column: 1 / 3;
}
.project-item:nth-child(27){
    grid-row: 10 / 11;
    grid-column: 4 / 5;
}
.project-item:nth-child(28){
    grid-row: 11 / 12;
    grid-column: 1 / 3;
}
.project-item:nth-child(29){
    grid-row: 11 / 12;
    grid-column: 3 / 4;
}
.project-item:nth-child(30){
    grid-row: 11 / 12;
    grid-column: 4 / 5;
}
.project-item:nth-child(31){
    grid-row: 12 / 13;
    grid-column: 1 / 2;
}
.project-item:nth-child(32){
    grid-row: 12 / 13;
    grid-column: 2 / 3;
}
.project-item:nth-child(33){
    grid-row: 12 / 13;
    grid-column: 3 / 5;
}

@media (min-width: 1200px) and (max-width: 1599px){

}
@media (min-width: 992px) and (max-width: 1199px) {

}
@media (min-width: 768px) and (max-width: 991px) {

}
@media (min-width: 576px) and (max-width: 767px) {

}
@media (max-width: 575px) {
    .section-about{
        width: 100%;
        margin: 10vh 0% 10vh 0%;
    }

    .section-details{
        grid-template-columns: 1fr;
    }

    .section-details span{
        font-size: 35px; 
    }

    .container-grid.services{
        grid-template-columns: 1fr;
        background-color: #3c3c3c;
        gap: 0;
    }

    .container-grid.r1{
        grid-template-columns: 100%;
        padding: 0px 5% 35px 5%;
    }
    .container-grid.r2{
        grid-template-columns: 100%;
        gap: 0;
        grid-template-rows: 100px;
    }

    .grid-img{
        margin-top: 50px;
    }

    .grid-text{
        padding: 20px 5% 25px 5%;
    }

    .grid-text h4{
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }

    .container-grid.projects-01{
        padding: 15px 5%;
        gap: 5px;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(21, 180px);
    }

    .project-item h1{
        font-size: 24px;
    }

    .project-item:hover h5{
        opacity: 1;
        transition-delay: 200ms;
    }
    
    .project-item:nth-child(1){
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(2){
        grid-row: 1 / 2;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(3){
        grid-row: 2 / 4;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(4){
        grid-row: 3 / 5;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(5){
        grid-row: 2 / 3;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(6){
        grid-row: 4 / 5;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(7){
        grid-row: 5 / 6;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(8){
        grid-row: 5 / 6;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(9){
        grid-row: 6 / 8;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(10){
        grid-row: 7 / 8;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(11){
        grid-row: 6 / 7;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(12){
        grid-row: 8 / 10;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(13){
        grid-row: 8 / 9;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(14){
        grid-row: 9 / 10;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(15){
        grid-row: 10 / 11;
        grid-column: 1 / 3;
    }
    .project-item:nth-child(16){
        grid-row: 11 / 13;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(17){
        grid-row: 11 / 12;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(18){
        grid-row: 12 / 13;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(19){
        grid-row: 13 / 15;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(20){
        grid-row: 13 / 14;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(21){
        grid-row: 14 / 15;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(22){
        grid-row: 16 / 17;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(23){
        grid-row: 15 / 16;
        grid-column: 1 / 3;
    }
    .project-item:nth-child(24){
        grid-row: 16 / 17;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(25){
        grid-row: 17 / 18;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(26){
        grid-row: 17 / 18;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(27){
        grid-row: 18 / 19;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(28){
        grid-row: 19 / 20;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(29){
        grid-row: 18 / 19;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(30){
        grid-row: 19 / 20;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(31){
        grid-row: 20 / 21;
        grid-column: 1 / 2;
    }
    .project-item:nth-child(32){
        grid-row: 20 / 21;
        grid-column: 2 / 3;
    }
    .project-item:nth-child(33){
        grid-row: 21 / 22;
        grid-column: 1 / 3;
    }

    .project-item h5{
        font-size: 18px;
        padding: 5px 10px;
    }
    
}