@font-face {
    font-family: "Vazir";
    src: url(fonts/Vazir.eot);
    src: url(fonts/Vazir.eot?#iefix) format("eot"), url(fonts/Vazir.woff2) format("woff2"), url(fonts/Vazir.woff) format("woff");
    font-weight: 400;
}

* {
    font-size: 20px;
    font-family: Vazir;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#menu {
    background-color: #09c;
    border-radius: 10px;
    height: 50px;
    padding: 0 10px;
}

#menu ul {
    margin: 0 auto;
    padding: 0;
    list-style: none;
    width: 100%;
}

#menu li {
    float: right;
    display: inline;
    position: relative;
    margin: 0 10px;
    padding: 0;
    list-style: none;
}

#menu a {
    display: block;
    line-height: 50px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
}

#menu a.dropdown-arrow:after {
    content: "\25BE";
    margin-left: 5px;
}

#menu li a:hover {
    color: #09c;
    background: #f2f2f2;
}

#menu input {
    display: none;
    margin: 0;
    padding: 0;
    height: 50px;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

#menu label {
    display: none;
    line-height: 50px;
    text-align: right;
    position: absolute;
    right: 35px;
}

#menu label:before {
    font-size: 1.6em;
    content: "\2261";
    margin-left: 20px;
}

#menu li:hover {
    display: block;
}

.phone-mobile {
    display: none;
}

.heads {
    margin: 10px;
}

#searchform {
    margin-top: 3px;
    text-align: center;
}

#searchsubmit,
#s {
    width: 70%;
    padding: 0;
    margin: 4px 0;
    height: 30px;
    background-color: #f8f9fb;
    border: none;
}

#s {
    border-radius: 0 8px 8px 0;
    padding-right: 20px;
}

#searchsubmit {
    width: 28%;
    background-color: #87ceeb;
    color: #fff;
    border-radius: 8px 0 0 8px;
}

#searchsubmit:hover {
    background-color: #20b2aa;
}

article {
    width: 95%;
    margin: 10px auto;
    background-color:#f2f2f2;
    border-radius: 30px;
    
}

header {
    width: 95%;
    margin: 15px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-mobile {
    display: none;
}

.heads {
    margin: 10px;
}

.logo,
.phone {
    max-width: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img,
.phone img {
    width: 100%;
}

.h1-title {
    width: 100%;
    text-align: center;
    padding:10px;
}

.slider {
    height: 450px;
    display: flex;
    justify-content: space-between;
    background-color:white;
}

.right,
.center {
    width: 25%;
}

.left {
    width: 50%;
    height: 100%;
}

.rows {
    padding: 20px;
    width: 97%;
    border-radius: 30px;
    margin: auto;
    box-shadow: inset 0 0 10px black;
    text-align: center;
    background-color:white;
    
}

.row {
    display: flex;
    justify-content: space-around;
    width: 95%;
    margin: auto; /* کمی فاصله بین باکس‌ها */
    flex-wrap: wrap;
}

.box {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: space-around;
    border-radius: 15px;
    box-shadow: 1px 1px 2px 2px #d3d3d3;

    margin: 15px;
    width: 17%;
    height: 260px;

    padding: 0px;
}

.box img {
    width: 100%;
    height: 160px;
    border-radius: 15px;
    padding: 0px 10px 10px 10px;
}

.box h4 {
    font-size: 14px;
    text-align: center;
    padding: 10px;
}
.head-2 {
    text-align: right;
    padding: 10px 15px;
    margin: 5px 30px 15px 5px;
    border-radius: 15px;

    color: black;
    display: inline-block;
}

.head-2::before{
 content: "🎓";
  display: inline-block;
  font-size: 24px;
  margin-left: 10px; /* تنظیم فاصله میان آیکون و متن */
    
}
.row a{
    text-decoration: none;
    font-size:14px;
    color:grey;
}
.boxx {
    position: relative;
}
.boxx img {
    width: 100%;
    height: 210px;
    padding: 6px;

    margin: 5px;
    border-radius: 15px;
}
.boxx h3 {
    position: absolute;
    font-size: 16px;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    color: black;
    width: 70%;
    padding: 5px;
}
.h2 {
    text-align: center;
    color: gray;
}

.h2 a{
	color:grey;
	text-decoration: none;
}
h2 a{
	text-decoration: none;
	color:black;
}
.hrr {
    width: 35%;
    text-align: center;
    color: lightgray;
}
.left img {
    width: 98%;
    height: 448px;
    padding: 10px;
    border-radius: 25px;
    margin: 0px 10px;
}
.left h3 {
    font-size: 18px;
    padding: 10px;
    width: 55%;
}

hr {
    width: 45%;
    margin: 10px auto;
}


footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    background-color: #f4f4f4;
    padding: 30px;
}

footer p {
    text-align: justify;
}

.foots {
    box-shadow: 0 0 4px 5px grey;
    border-radius: 10px;
    margin: 20px;
    padding: 10px;
}

.foots p,
.foots li {
    font-size: 14px;
    padding: 10px;
}

.foots ul {
    padding: 10px;
}

.software{
	width:33%;
}
.footer-post-item a{
	display:flex;
	text-decoration:none;
	color:grey;
	align-items:center;
	box-shadow: inset 0 0 5px black;
	margin:3px;
	border-radius:8px;
	padding:3px;
	
}
.footer-post-item a:hover{
	background-color:skyblue;
}
.footer-post-item img{
	width:15%;
	height:15%;
	float:right;
	margin:3px;
	padding:3px;
	border-radius:8px;
}
.footer-post-item h4{
	font-size:16px;
	float:left;
	margin:3px;
	padding:3px;
}

.about-me {
    width: 33%;
}

.contact-me {
    width: 33%;
}

.copyright {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.copyright p {
    font-size: 14px;
}

footer li {
    list-style: none;
    border-bottom: 1px gray solid;
    padding: 5px;
}
footer strong {
    font-weight: normal;
}

@media screen and (max-width: 800px) {
    #menu {
        position: relative;
    }

    #menu ul {
        background-color: rgba(0, 0, 0, 0.8);
        color: #fff;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 3;
        height: auto;
        display: none;
    }

    #menu li {
        display: block;
        float: none;
        width: auto;
    }

    #menu input,
    #menu label {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
    }

    #menu input {
        z-index: 4;
    }

    #menu input:checked + label {
        color: #000;
    }

    #menu input:checked + label:before {
        content: "\00d7";
    }

    #menu input:checked ~ ul {
        display: block;
    }

    .ss-display-none {
        display: none;
    }

    .ss-display-block {
        display: block;
    }

    .ss-1-menu {
        width: 98%;
        display: block;
        text-align: center;
        margin: 15px auto;
        padding: 15px 5px;
        height: auto;
    }
    .ss-11-menu {
        width: 100%;
        display: block;
        text-align: center;
        margin: auto;
        padding: 5px;
        height: auto;
    }

    .ss-22-flex,
    .ss-2-flex {
        max-width: 100%;
        display: flex;
        justify-content: space-around;
        height: auto;
        margin: 10px auto;
    }

    .ss-2-flex {
        flex-wrap: wrap;
    }

    .ss-2-menu {
        width: 45%;
        margin: 7px;
        padding: 5px;
        overflow: hidden;
    }

    .ss-22-menu {
        width: 50%;
    }

    .ss-3-menu {
        width: 20%;
        background-color: #fff;
    }

    .ss-3-menu p {
        font-size: 12px;
        background-color: rgba(0, 0, 0, 0);
        color: #000;
    }

    .copyright {
        width: 100%;
        margin: auto;
    }

    .right p,
    .center p {
        font-size: 14px;
    }
}
