@import url('https://fonts.googleapis.com/css2?family=Edu+VIC+WA+NT+Beginner:wght@400..700&family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&family=League+Spartan:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Vazirmatn:wght@588&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,600;0,700;1,400&display=swap');
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    box-sizing: border-box;
}

body {
    background: rgba(76,114,189,0.24);
}

/* root value */
:root {
    --container-color: #1a1e21;
    --second-color: rgba(77, 228, 255);
    --tex-color: #172317;
    --bg-color: #fff;
}

::selection {
    color: var(--bg-color);
    background: var(--second-color);
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

img {
    width: 100%;
}

section {
    padding: 3rem 0 2rem;
}

.container {
    max-width: 1068px;
    margin: auto;
    width: 100%;
}

a {
    color: #fff;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
}

header.shadow {
    background: var(--bg-color);
    box-shadow: 0 1px 4px hsl(0 4% 14% / 10%);
    transition: .5s;
}

header.shadow .logo {
    color: var(--tex-color);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--second-color);
}

.logo span {
    color: var(--second-color);
}

.sub1 {
    padding: 8px 14px;
    border: none;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    background: var(--second-color);
    color: var(--bg-color);
    cursor: pointer;
}

.sub2 {
    background-color: orange;
}

.login:hover {
    background: hsl(199, 98%, 56%);
    transition: .5s;
}

.div1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home {
    width: 100%;
    min-height: 440px;
    background: url("../img/banner.jpg");
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-text {
    color: var(--bg-color);
    text-align: center;
}

.home-title {
    font-size: 3.5rem;
}

.home-subtitle {
    font-size: 1rem;
    font-weight: 400;
}

.about {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about .contentBx {
    max-width: 50%;
    width: 50%;
    text-align: left;
    padding-right: 30px;
}

.titleText {
    font-weight: 600;
    color: #111;
    font-size: 2rem;
    margin-bottom: 40px;
}

.farsi-title {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    direction: rtl; text-align: right;
}

.title-text {
    color: #111;
    font-size: 1rem;
}

.fitBg {
    margin-top: 60px;
    border-radius: 10px;
    box-shadow: 0 4px 14px gray;
    width: 400px;
}



.about .imgBx {
    position: relative;
    min-width: 50%;
    width: 50%;
    min-height: 500px;
}

.btn2 {
    position: relative;
    display: inline-block;
    margin-top: 30px;
    padding: 10px 30px;
    background: #fff;
    border: 1px solid #111;
    color: #333;
    text-decoration: none;
    transition: 0.5s;
    border-radius: 8px;
}

.btn2:hover {
    background-color: var(--second-color);
    border: none;
    color: #fff;
}

.post-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
    margin-top: 2rem !important;
}

.filter-item {
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.active-filter {
    background: var(--second-color);
    color: var(--bg-color);
    padding: 4px 10px;
    border-radius: 4px;
}

.post {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, auto));
    justify-content: center;
    gap: 1.5rem;
}

.post-box {
    cursor: pointer;
    background-color: rgb(247, 171, 138);
    box-shadow: 0 4px 14px gray;
    padding: 18px;
    border-radius: 0.5rem;
    max-height: 600px;
    overflow: hidden;
}

.set-position {
}

.post-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;
}

.category {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--second-color);
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--tex-color);
    display: -webkit-box;
    --webkit-line-clamb: 2;
    --webkit-box-orient: vertical;
    overflow: hidden;
}

.post-data {
    display: flex;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 400;
}

.post-description {
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin: 5px 0 10px;
    display: -webkit-box;
    --webkit-line-clamb: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--second-color);
}

.profile-name {
    font-size: 0.8rem;
    font-weight: 500;
}

footer {
    position: relative;
    width: 100%;
    height: auto;
    padding: 50px 100px;
    margin-top: 3rem;
    background: #111;
    display: flex;
    font-family: sans-serif;
    justify-content: space-between;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row;
}

.footer-container .sec {
    margin-right: 30px;
}

.footer-container .sec .aboutus {
    width: 40%;
}

.footer-container h2 {
    position: relative;
    color: #fff;
    margin-bottom: 15px;
}

.footer-container h2::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: rgba(77, 228, 255);
}

footer p {
    color: #fff;
}

.sci {
    margin: 20px;
    display: flex;
}

.sci li {
    list-style: none;
}

.sci li a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    text-decoration: none;
    border-radius: 4px;
    transform: .5s;
}

.sci li a:hover {
    background-color: rgba(77, 228, 255);
}

.sci li a .bx {
    color: #fff;
    font-size: 20px;
}

.quick-links {
    position: relative;
    width: 25%;
}

.quick-links ul li {
    list-style: none;
}

.quick-links ul li {
    color: #999;
    text-decoration: none;
    margin-bottom: 10px;
    display: inline-block;
    transition: 0.3s;
}

.quick-links ul li a:hover {
    color: #fff;
}

.footer-container .contactbx {
    width: calc(35% - 60px);
    margin-right: 0 !important;
}

.contactbx .info {
    position: relative;
}

.contactbx .info li {
    display: flex !important;
    margin-bottom: 16px;
}

.contactbx .info li span:nth-child(1) {
    color: #fff;
    font-size: 20px;
    margin-right: 10px;
}

.contactbx .info li span {
    color: #999;
}

.contactbx .info li a {
    color: #999;
    text-decoration: none;
    transition: .5s;
}

.contactbx .info li a:hover {
    color: #fff;
}

@media (max-width: 1060px) {
    .container {
        margin: 0 auto;
        width: 95%;
    }

    .home-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 10px 0;
    }

    section {
        padding: 2rem 0 !important;
    }

    .header-content {
        margin-top: 3rem !important;
    }

    .home {
        min-height: 380px;
    }

    .home-title {
        font-size: 3rem;
    }

    .header-title {
        font-size: 2rem;
    }

    .header-img {
        height: 370px;
    }

    .about {
        flex-direction: column;
    }

    .about .contactbx {
        min-width: 100%;
        width: 100%;
        text-align: center;
        padding-right: 0;
    }

    .about .contactbx, .about .imgBx {
        min-width: 100%;
        width: 100%;
        text-align: center;
        padding-right: 0;
    }

    .about .imgBx {
        min-height: 250px;
    }

    .btn2 {
        margin-bottom: 30px;
    }

    .post-header {
        height: 435px;
    }

    .post-header {
        margin-top: 9rem !important;
    }
}

@media (max-width: 570px) {
    .post-header {
        height: 390px;
    }

    .header-title {
        width: 100%;
    }

    .header-img {
        height: 340px;
    }
}

@media (max-width: 396px) {
    .home-title {
        font-size: 2rem;
    }

    .home-subtitle {
        font-size: 0.9rem;
    }

    .home {
        min-height: 300px;
    }

    .post-box {
        padding: 10px;
    }

    .header-title {
        font-size: 1.4rem;
    }

    .header-img {
        height: 240px;
    }

    .post-header {
        height: 335px;
    } 

    .header-img {
        height: 340px;
    }
}

/* footer media query */
@media (max-width: 991px) {
    footer {
        padding: 40px;
        font-size: 20px;
    }

    footer .footer-container {
        flex-direction: column;
    }

    footer .footer-container .sec {
        margin-right: 0;
        margin-bottom: 40px;
    }

    footer .footer-container .sec .aboutus {
        width: 100% !important;
    }

    footer .footer-container .quick-links {
        width: 100%;
    }

    footer .footer-container .contactbx {
        width: 100%;
    }
}