@font-face {
    font-family: farsi;
    src: url(Fonts/Vazirmatn-VariableFont_wght.ttf);
}
#body{
    background-color: #FBFFF4;
}
.nav-logo-parent{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo{
    width: 8%;
}
.logo img{
    width: 100%;
}
.navbar{
    width: 50%;
    display: flex !important;
    justify-content: space-between !important;
    align-items: start !important;
    flex-wrap: wrap !important;
    direction: rtl !important;
    font-family: farsi;
}
.navbar-nav{
    width: 100% !important;
    margin-top: 4vh;
    display:flex;
}
.nav-item{
    width: 100%;
    color: black;
    text-align: center !important;
    transition: 0.5s;
}
.nav-item:hover{
    color: #22A75D;
}

.section-1{
    width: 80%;
    background-image: url("/static/MainApp/img/Union.png");
    background-size: contain;
    background-position: center;
    height: 70vh;
    background-repeat: no-repeat;
    margin: 5vh auto;
    font-family: farsi;   
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
}
.text-box-section-1 h1{
    margin-top: 0vh;
    color: #1C281A;
}
.text-box-section-1 p{
    width: 70%;
    margin: 8vh auto;
    direction: rtl;
}
.text-box-section-1 a{
    width: 30%;
    margin: 2vh auto;
    height: 50px;
    background-color: #31572C;
    color: aliceblue;
    padding: 1vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: farsi;
    border-radius: 16px;
    transition: 0.4s;
}
.text-box-section-1 a:hover{
    color: aliceblue;
    transform: scale(1.07);
    background-color: #567743;
}
.text-box-section-1 i{
    margin-left: 15%;
}

.card-section{
    width: 80%;
    margin: 2vh auto;
}

.card-parent{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: -16vh;
}

.card-basic{
    width: 20%;
    font-family: farsi;
    text-align: center;
    padding: 2vh;
}
.card-basic h5{
    margin-top:5vh;
}
.card-basic p{
    font-size: 14px;
    color: #6236F5;
}
.card-section .card-parent .card img{
    width: 100%;
    border-radius: 50px !important;
}
.social-box{
    width: 60%;
    margin-left: 20%;
    display: flex;
    justify-content: space-around;
}
.social-box i{
    color: #ACAEB4;
    transition: 0.5s;
}
.social-box i:hover{
    cursor: pointer;
    color: black;
}

.first-row{
    font-family: farsi;
    width: 70%;
    margin: 24vh auto 4vh;
    display: flex;
    justify-content: space-evenly;
}
.first-row a{
    color: #000000;
    text-decoration: none !important;
    transition: 0.3s;
}
.first-row a:hover{
    color: #22A75D;
}
.second-row{
    display: flex;
    justify-content: space-between;
    align-items: center;

}
.footer-logo{
    width: 20%;
    margin-left: 2%;
}
.footer-logo img{
    width:40%;
}
.social-box-footer{
    width: 30%;
    display: flex;
    justify-content: space-evenly;
    font-size: 36px;
}
.social-box-footer a{
    color: #000000;
    transition: 0.3s;
}
.social-box-footer a:hover{
    cursor: pointer;
    color: #000000;
    transform: scale(1.3)
}
.copy-right{
    font-family: farsi;
    text-align: right;
    width: 20%;
    margin-right: 2%;
}
.section-2 {
    width: 80%;
    margin-inline: 10%;
    position: relative;
}

.section-2-img {
    width: 100%;
    position: absolute;
    z-index: 0;
}
.section-2 {
    width: 80%;
    margin-inline: 10%;
    margin-bottom: 60px; /* add space below section-2 */
    position: relative;
    z-index: 1; /* raise stacking context above absolute footer bg */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Remove absolute positioning from inner image below */
}

.section-2-img {
    width: 100%;
    position: relative; /* Remove absolute; let it flow in document */
    z-index: 0;
    display: block; /* remove inline gap */
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-2 {
        width: 96%;
        margin-inline: 2%;
        margin-bottom: 32px;
    }
}


/* 
 * Handle .section2content stacking above .section-2-img which acts as background:
 * Usage example in HTML:
 * <div class="section-2">
 *   <img src="..." alt="">
 *   <div class="section2content"> ...cards and titles... </div>
 * </div>
 */

.section-2 {
    position: relative;
}

.section-2-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    object-fit: contain;   /* fill box without stretch */
    z-index: 1;
    pointer-events: none; /* let mouse events through to content */
}

.section2content {
    position: relative;        /* default; stacking context above z-index 1 bg */
    z-index: 2;                /* sit above background */
    width: 100%;
    padding: 0rem 2rem;
    display: flex;
    justify-content: right;
    align-items: center;
    color: white;
    margin-top: 7rem;
    flex-wrap: wrap;
    font-family: farsi;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section2content {
        padding: 1rem 0.5rem;
    }
}

.dna-card-parent {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
    flex-wrap: wrap;
    direction: rtl;
}
.dna-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 1px 16px 0 #00B0DB33;
    padding: 2rem 1.2rem 1.2rem 1.2rem;
    width: 22%;
    min-width: 200px;
    max-width: 322px;
    height: 350px;
    box-sizing: border-box;
    color: #222;
    font-family: farsi, sans-serif;
    text-align: right;
    display: flex;
    direction: rtl;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
}
.dna-card {
    transition: margin-top 0.4s ease;
}
.dna-card:hover {
    margin-top: -2vh;
}
.dna-card h4 {
    margin-top: 1.2rem;
    margin-bottom: 0.9rem;
    font-size: 1.1rem;
    color: #3D3E41;
    font-weight: bold;
    text-align: right;
    letter-spacing: 0.01em;
    
}
.dna-card p {
    font-size: 0.8rem;
    margin: 0;
    color: #263238;
    line-height: 1.9;
    text-align: justify;
    direction: rtl;
}
.dna-card-img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .dna-card-parent {
        gap: 1rem;
    }
    .dna-card {
        width: 45%;
        min-width: 180px;
    }
}
@media (max-width: 700px) {
    .dna-card-parent {
        flex-direction: column;
        gap: 1.1rem;
        align-items: stretch;
    }
    .dna-card {
        width: 100%;
        min-width: 0;
    }
}
.section3 {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    margin: 10% auto;
    direction: rtl;
}
.section3-textbox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: right;
    text-align: right;
    font-family: farsi, sans-serif;
    gap: 1.2rem;
}
.section3-imgbox img {
    width: 100%;
    max-width: 350px;
}

@media (max-width: 950px) {
    .section3 {
        flex-direction: column-reverse;
        text-align: right;
        gap: 2rem;
        padding: 1.6rem 1rem;
        width: 97%;
    }
    .section3-imgbox {
        max-width: 100vw;
        margin-bottom: 1.3rem;
    }
}
@media (max-width: 600px) {
    .section3 {
        padding: 1rem 0.3rem;
        font-size: 1rem;
    }
}

.sarv-join-btn {
    display: block !important;
    background-color: #6EB410;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 1.5vh;
    /* font-size: 1.1em; */
    cursor: pointer;
    /* font-weight: bold; */
    transition: background 0.2s;
    gap: 0.7em;
    text-decoration: none;
    margin-top: 1em;
  }
  .sarv-join-btn:hover {
    background-color: #5ba40e;
    color: white;
  }
  .sarv-join-btn .arrow-icon {
    display: inline-block;
    margin-right: 0.3em;
    width: 1.4em;
    height: 1.4em;
    vertical-align: middle;
  }
  .sarv-join-btn:visited{
    text-decoration: none;
  }
  .sarv-join-btn:hover{
    text-decoration: none;
  }
  .sarv-join-btn:active{
    text-decoration: none;
  }

.res-navbar{
    width: 100%;
    display: none;
    align-items: center !important;
    justify-content: space-between;
}
.res-logo{
    width: 40%;
    /* margin-left: -5%; */
}
.res-logo img{
    width: 80%;
}
.res-nav-icon{
    width: 15%;
    margin-right: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.res-nav-icon i{
    width: 40px;
    height: 40px;
    padding: 1vh;
    font-size: 20px;
    border: 2px solid #709759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.res-nav-items{
    width: 60%;
    height: 100%;
    margin-left: 40%;
    text-align: right;
    position: absolute;
    padding: 2vh;
    top: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.843);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
}

.res-nav-items a{
    margin-top: 2vh;
    display: block;
    color: #000000;
    text-decoration: none !important;
    font-size: 20px;
    font-family: farsi;
}
.res-nav-items a:hover{
    color: #22A75D;
}

.res-nav-close{
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.res-nav-close i{
    width: 35px;
    height: 35px;
    padding: 2vh;
    font-size: 16px;
    border: 2px solid #709759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.res-bg-close{
    width: 100%;
    height: 100vh !important;
    z-index: 1;
    background-color: #312f2fbe;
    position: absolute;
    display: none;
}


.res-section-1{
    width: 100%;
    display: none;
}

.res-section-bg{
    width: 100%;
    height: 200px;
    background-image: url("/static/MainApp/img/Union.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
}

.res-section-text{
    width: 100%;
    padding: 2vh;
    box-sizing: border-box;
    text-align: center;
}

.res-section-text h1{
    font-family: farsi;
    font-size: 18px;
    font-weight: bolder;
}

.res-section-text a{
    width: 75%;
    margin: 3vh auto;
    padding: 1vh;
    border-radius: 12px;
    text-decoration: none !important;
    color: aliceblue;
    background-color: #31572C;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.res-section-text a:hover{
    color: aliceblue;
}
.res-section-text a p{
    font-size: 12px;
    margin: 0;
    font-family: farsi;
}

.res-section-text a i{
    font-size: 16px;
}


.res-second-row{
    display: none;
}
@media screen and (min-width:1200px){
    .navbar{
        width: 60%;
    }
    .navbar-nav a{
        width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        /* background-color: rgb(120, 190, 177); */
    }
    .section-1{
        width: 100%;
        padding: 0;
        background-size: contain;
        height:70vh ;
        background-repeat: no-repeat;
        background-position: center;
        display: flex;
        align-items: center;
        /* background-color: #6236F5; */
    }
}
@media screen and (min-width:992px) and (max-width:1200px) and (max-height:1400px){
    .navbar{
        width: 80%;
    }
    .logo{
        width: 10%;
    }
    .navbar-nav a{
        width: 100% !important;
        padding: 0 !important;
        font-size: 16px;
        display: flex !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        /* background-color: rgb(120, 190, 177); */
    }
    .section-1{
        width: 100%;
        padding: 0;
        background-size: contain;
        height:60vh ;
        background-repeat: no-repeat;
        background-position: center;
        display: flex;
        align-items: center;
        /* background-color: #6236F5; */
    }
    .text-box-section-1 p{
        width: 70%;
        margin: 4vh auto;
        direction: rtl;
    }
    .text-box-section-1 a{
        margin: 0 auto 0vh;
    }
    .card-parent{
        width: 100%;
        margin: 4vh auto;
    }
    
    .card-basic{
        width: 25%;
        font-family: farsi;
        text-align: center;
        padding: 2vh;
    }
    .card-basic h5{
        margin-top: 1vh;
    }
    .card-basic p{
        font-size: 12px;
        color: #6236F5;
    }
    .card-basic img{
        width: 90%;
    }
    
    footer{
        padding: 2vh;
    }
    .first-row{
        width: 100%;
        margin: 10vh 0 5vh 0;
    }
    .second-row{
        display: none;
    }
    .res-second-row{
        display: flex;
        flex-wrap: wrap;
    }
    .social-box-footer{
        width: 50%;
        margin-left: 25%;
        font-size: 30px;
    }
    .social-box-footer i:hover{
        transform: unset;
    }
    .footer-logo{
        width: 30%;
        margin: 4vh 0 0 0;
    }
    .footer-logo img{
        width: 50%;
    }
    .copy-right{
        width: 70%;
        margin: 4vh 0 0 0;
        align-content: end;
    }
    .copy-right p{
        font-size: 14px;
        margin: 0;
    }
    .copy-right span{
        color: #8f9197;
    }

}
@media screen and (min-width:768px) and (max-width:992px){
    .navbar{
        width: 80%;
    }
    .logo{
        width: 10%;
    }
    .navbar-nav a{
        width: 100% !important;
        padding: 0 !important;
        font-size: 14px;
        display: flex !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        /* background-color: rgb(120, 190, 177); */
    }
    .section-1{
        width: 100%;
        padding: 0;
        background-size: contain;
        height:60vh ;
        background-repeat: no-repeat;
        background-position: center;
        display: flex;
        align-items: center;
        /* background-color: #6236F5; */
    }
    .text-box-section-1 h1{
        /* margin: 12vh auto 0; */
        font-size: 28px;
    }
    .text-box-section-1 p{
        width: 70%;
        margin: 4vh auto;
        direction: rtl;
    }
    .text-box-section-1 a{
        margin: 0 auto 0vh;
    }
    .card-parent{
        width: 100%;
        margin: 4vh auto;
    }
    
    .card-basic{
        width: 26%;
        font-family: farsi;
        text-align: center;
        padding: 2vh;
    }
    .card-basic h5{
        margin-top: 1vh;
    }
    .card-basic p{
        font-size: 12px;
        color: #6236F5;
    }
    .card-basic img{
        width: 90%;
    }
    
    footer{
        padding: 2vh;
    }
    .first-row{
        width: 100%;
        margin: 10vh 0 5vh 0;
    }
    .second-row{
        display: none;
    }
    .res-second-row{
        display: flex;
        flex-wrap: wrap;
    }
    .social-box-footer{
        width: 50%;
        margin-left: 25%;
        font-size: 30px;
    }
    .social-box-footer i:hover{
        transform: unset;
    }
    .footer-logo{
        width: 30%;
        margin: 4vh 0 0 0;
    }
    .footer-logo img{
        width: 50%;
    }
    .copy-right{
        width: 70%;
        margin: 4vh 0 0 0;
        align-content: end;
    }
    .copy-right p{
        font-size: 14px;
        margin: 0;
    }
    .copy-right span{
        color: #8f9197;
    }



}
@media screen and (min-width:576px) and (max-width:768px){
    .nav-logo-parent{
        display: none;
    }
    .section-1{
        display: none;
    }

    .res-navbar{
        display: flex;
    }
    
    .res-section-1{
        display: block;
    }
    .res-logo{
        width: 20%;
    }

    .card-section{
        width: 100%;
        margin: 0;
    }
    .card-parent{
        width: 100%;
        margin-top: -6vh;
    }
    
    .card-basic{
        width: 26%;
        font-family: farsi;
        text-align: center;
        padding: 2vh;
    }
    .card-basic h5{
        margin-top: 1vh;
    }
    .card-basic p{
        font-size: 12px;
        color: #6236F5;
    }
    .card-basic img{
        width: 90%;
    }
    
    footer{
        padding: 2vh;
    }
    .first-row{
        width: 100%;
        margin: 10vh 0 5vh 0;
    }
    .second-row{
        display: none;
    }
    .res-second-row{
        display: flex;
        flex-wrap: wrap;
    }
    .social-box-footer{
        width: 50%;
        margin-left: 25%;
        font-size: 30px;
    }
    .social-box-footer i:hover{
        transform: unset;
    }
    .footer-logo{
        width: 30%;
        margin: 4vh 0 0 0;
    }
    .footer-logo img{
        width: 50%;
    }
    .copy-right{
        width: 70%;
        margin: 4vh 0 0 0;
        align-content: end;
    }
    .copy-right p{
        font-size: 14px;
        margin: 0;
    }
    .copy-right span{
        color: #8f9197;
    }


}

@media screen and (max-width:576px) {
    .nav-logo-parent{
        display: none;
    }
    .section-1{
        display: none;
    }

    .res-navbar{
        display: flex;
    }
    
    .res-section-1{
        display: block;
    }

    .card-section{
        width: 100%;
        margin: 0;
    }
    
    .card-parent{
        width: 100%;
        margin-top: -2vh;
    }
    
    .card-basic{
        width: 45%;
        font-family: farsi;
        text-align: center;
        padding: 2vh;
    }
    .card-basic h5{
        margin-top: 1vh;
    }
    .card-basic p{
        font-size: 12px;
        color: #6236F5;
    }
    .card-basic img{
        width: 90%;
    }
    .section-2 {
        width: 100%;
        margin: 0;
        padding: 2vh 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }
    .section2content {
        width: 100% !important;
        padding: 0 2vw;
        box-sizing: border-box;
        text-align: center;
    }
    .section2content h2 {
        font-size: 16px;
        margin-bottom: 2vh;
        color: #333;
        line-height: 1.5;
        text-align: center;
        width: 100%;

    }

    .dna-card-parent {
        flex-direction: column;
        align-items: center;
        gap: 2vh;
        width: 100%;
        padding: 0 1vw;
    }
    .dna-card {
        width: 95%;
        box-sizing: border-box;
        margin-bottom: 2vh;
        padding: 2vh 2vw;
        text-align: center;
    }
    .dna-card-img {
        width: 60px !important;
        height: auto;
        margin-bottom: 1vh;
    }
    .section-2-img {
        display: none;
    }

    .section3 {
        flex-direction: column;
        padding: 2vh 2vw !important;
        align-items: center !important;
    }
    .section3-imgbox {
        width: 100% !important;
        margin-bottom: 2vh;
        text-align: center;
    }
    .section3-imgbox img {
        width: 80%;
        height: auto;
    }
    .section3-textbox {
        width: 100% !important;
        box-sizing: border-box;
        padding: 0 2vw;
        margin: 0 auto;
        text-align: center;
        direction: rtl;
    }
    .section3-textbox h2 {
        font-size: 20px;
        margin-block: 2vh;
    }
    .section3-textbox p {
        font-size: 14px;
        line-height: 2;
        text-align: justify;
        padding: 0 1vw;
    }
    .sarv-join-btn {
        width: 90%;
        margin: 2vh auto 0 auto;
        height: 40px;
        background-color: #31572C;
        color: aliceblue;
        padding: 1vh;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 12px;
        font-family: farsi;
        font-size: 15px;
        transition: 0.4s;
        text-decoration: none;
    }
    .sarv-join-btn .arrow-icon {
        margin-right: 8px;
        display: flex;
        align-items: center;
    }

    footer{
        padding: 2vh;
    }
    .first-row{
        width: 100%;
        margin: 10vh 0 5vh 0;
    }
    .second-row{
        display: none;
    }
    .res-second-row{
        display: flex;
        flex-wrap: wrap;
    }
    .social-box-footer{
        width: 50%;
        margin-left: 25%;
        font-size: 30px;
    }
    .social-box-footer i:hover{
        transform: unset;
    }
    .footer-logo{
        width: 30%;
        margin: 4vh 0 0 0;
    }
    .footer-logo img{
        width: 50%;
    }
    .copy-right{
        width: 70%;
        margin: 4vh 0 0 0;
        align-content: end;
    }
    .copy-right p{
        font-size: 14px;
        margin: 0;
    }
    .copy-right span{
        color: #8f9197;
    }

}