
:root{
    --outside-theme-color: rgba(51, 127, 200, 1);
    --inside-theme-color: rgba(16, 139, 69, 1);
    --government-theme-color: rgba(136, 95, 38, 1);

    --base-text-color: #555;
    /*--base-text-color: #232425;*/
    --base-text-size: 16px;

    --white: #fff;
    --black: #000;

    --logos-gap: 0.5rem;
    --top-nav-margin: 20px;
    --bg-anim-opacity: 0.35;
    --nav-height: 80px;

    --main-max-width: 1400px;
    --max-width: 1200px;
    --logo-img-height: 70px;
    --logos-height: 50px;

    --card-width: 50%;
    --card-height: 190px;
    --cards-gap: 32px;

    --animBG-top: -32px;;

    --primery-color: #008850;
    --secondary-color: #232425;
}

  
.rtl {
    direction: rtl;
}


h1, h2 {
    font-weight: normal;
}

a {
    color: var(--primery-color);
}

.hide {
    display: none;
}



.landContainer {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 80%;
    align-content: center;
    display: grid;
    grid-template-columns: 100%;
}


#mid-content {
    display: flex;
    gap: 50px;
    flex-direction: column;
    margin: 0 40px;
}

.top-text {
    width: 35%;
    backdrop-filter: blur(2px);
    text-shadow: 1px 1px 2px #fff;
}

.top-text h1 {
    font-size: 36px;
   
    margin-bottom: 16px;
    color: var(--black);
}
.top-text p {
    font-size: 16px;
}

.card-item {
    text-decoration: none;
    border-radius: 1rem;
    border: 0.5px solid #e3e3e3;
    background: #ffffffd6;
    box-shadow: 0px 17px 33px -2px rgba(28, 39, 49, 0.05);
    color: var(--base-text-color);
    width: var(--card-width);
    padding-bottom: 40px;
    position: relative;
}


.card-contents {
    display: flex;
    padding: 32px 24px 10px;
}


.cards-container {
    display: flex;
    gap: var(--cards-gap);
    /*justify-content: space-between;*/
    margin-bottom: 50px;
}

.card-text {
    /*margin: 0 10px;*/
    margin: 0 5px;
    width: 100%;
}

.card-text h2 {
    text-align: start;
    font-size: 24px;
    /* font-weight: 700; */
    margin: 0 10px 5px;
    color: var(--black);
}

.card-text p {
    /* font-weight: 600; */
    margin: 0 10px 20px;
}

.card-logo svg {
    width: 40px;
    height: 60px;
}


.go-link {
    text-align: end;
    margin-inline-end: 0px !important;
    margin-bottom: 20px !important;
    color: var(--primery-color);
    position: relative;
    position: absolute;
    bottom: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rtl .go-link {
    left: 25px;
}

.ltr .go-link {
    right: 25px;
}


.go-link span {
     font-size: 16px;
     margin-inline-start: 10px; 
    
}


.go-link svg {
     height: 15px;
    vertical-align: middle;
    margin-inline-start: 5px; 
    
}

a.card-outside:hover{
    background-color: var(--outside-theme-color);
    
}

a.card-item .logoIcon {
    width: 65px;
}
.go-link .arrow {
    width: 14px;
    margin-top: 5px;
}
.ltr .go-link .arrow {
    rotate: 180deg;
}

a.card-item:hover .arrow, a.card-item:hover .logoIcon {
    display: none;
}

a.card-item:hover .arrow.hover, a.card-item:hover .logoIcon.hover {
    display: block !important;
    filter: brightness(0) invert(1);
}


a.card-inside:hover{
    background-color: var(--inside-theme-color);
    
}

a.card-gov:hover{
    background-color: var(--government-theme-color);
    
}

a.card-item:hover .card-text h2, a.card-item:hover .card-text p, a.card-item:hover .card-text .go-link {
    color: #fff;
}

@media screen and (max-width: 1199px) {

    #mid-content {
        margin: 0 40px;

    }

}

@media screen and (max-width: 991px) {
    .top-text{
        width: 100%;
        text-align: center;
    }

    .top-text h1 {
        font-size: 28px;
    }

    .card-contents {
        padding: 15px 14px;
        flex-direction: column;
        align-items: center;
    }

    .card-text h2, .card-text p {
        text-align: center;
    }

    .rtl .card-item {
        --card-height: 250px;
        /*height: var(--card-height);*/
    }

    .ltr .card-item {
        --card-height: 300px;
        /*height: var(--card-height);*/
    }


}

@media screen and (max-width: 767px) {
	
    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card-item {
        width: 75%;
        margin: 0 auto;
        padding: 5px;
    }


    .card-contents {
        padding: 15px 14px 10px;
        flex-direction: row;
        align-items: flex-start;
    }

    .top-text h1 {
        font-size: 24px;
    }

    .card-text p {
        font-weight: 500;
        /*margin: 0 10px 15px;*/
    }

    .card-text p:not(.go-link) {
        padding-inline-end: 60px;
    }

    .card-text h2, .card-text p {
        text-align: start;
    }

    .go-link {
        /* top: 50px; */
        bottom: 10px;
    }


}


@media screen and (max-width: 576px) {
	
    .cards-container {
        gap: 0;
    }

    .top-text h1 {
        font-size: 22px;
    }

    .top-text p {
        font-size: 14px;
    }

    .card-item {
        /*width: 85%;*/
        width: 100%;
        margin: 15px auto;
        --card-height: 100px !important;
        padding-bottom: 0;

    }

    .card-text p {
        font-size: 14px;
    }

    .card-text p:not(.go-link) {
        padding-inline-end: 10px;
    }

    .card-text h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }



    #mid-content {
        margin: 0 15px;
        gap: 30px;
    }

    .go-link  {
        display: none !important;
    }

    .go-link {
        top: 20px;
    }



}
