@import url(all.min.css);
@import url(colors.css);

@font-face {
    font-family: Estedad;
    src: url(../fonts/Estedad-Medium.ttf);
}
@font-face {
    font-family: Vazirmatn;
    src: url(../fonts/Vazirmatn-FD-Medium.ttf);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: var(--primary-bg) !important;
}

h1, h2, h3, h4, h5, h6, p{
    direction: rtl;
}

a{
    text-decoration: none !important;
    color: var(--primary-color) !important;
}

ul{
    list-style: none;
}

/* --------------Header------------ */
header.hero{
    background-image: url(../img/optimized/contact-us-header.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 50vh;
    position: relative;
}
.hero-content{
    position: absolute;
    top: 100px;
    left: 10%;
    font-family: Estedad;
    direction: rtl;
    text-align: center;
}
.hero-content p{
    color: var(--text-primary);
    max-width: 500px;
}
.hero-content h2{
    color: var(--title-primary);
    font-weight: bold;
}
@media screen and (min-width:2200px) {
    header.hero{
        background-size: 2200px;
    }
    .hero-content{
        left: 20%;
    }
}
.hero-scroll{
    margin-top: 70px;
    font-family: Vazirmatn;
}
.hero-scroll i{
    vertical-align: middle;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-12px);
        opacity: 0.5;
    }
    60% {
        transform: translateY(-7px);
    }
}


/* ----------All  Articles Page----------  */
.all-articles{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
}
.all-articles .article{
    background-color: var(--card-bg);
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
    margin: min(10px , 40px);
}
.all-articles .article:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}
.all-articles .article .article-header{
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}
.all-articles .article .article-header img{
    object-position: center;
    object-fit: cover;
}
.all-articles .article .article-content{
    margin-top: 20px;
    direction: rtl;
    line-height: 30px;
}
.all-articles .article .article-content h5{
    text-align: center;
    font-family: Estedad;
    color: var(--title-primary);
    margin-bottom: 15px;
}
.all-articles .article .article-content p{
    color: var(--text-primary);
}
.all-articles .article .article-footer {
    color: var(--primary-icon);
    direction: ltr;
} 
.all-articles .article .article-footer a{
    transition: all 0.2s ease-in;
}
.all-articles .article .article-footer a:hover{
    background-color: var(--secondary-bg);
    padding: 3px 6px;
    border-radius: 50px;
}
.all-articles .article .article-footer a i{
    font-size: 10px;
    vertical-align: middle;
}


/* -------Page Bittons-------- */
.pages-buttons ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.pages-buttons ul li{
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    text-align: center;
    font-family: Vazirmatn;
    margin: 25px 10px;
}
.pages-buttons ul li:hover{
    background-color: var(--secondary-bg);
    transition: 0.4s;
    cursor: pointer;
}
.pages-buttons ul li.page-active{
    background-color: var(--primary-color);
}
.pages-buttons ul li.page-active a{
    color: var(--card-bg) !important;
}



/* --------Gift section--------- */
.moshavere-free{
    background-color: var(--secondary-bg);
    border-radius: 15px;
    padding: 5px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    direction: rtl;
}
.moshavere-free{
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
}
.moshavere-free div:first-child img{
    width: 100px;
    animation: gift-animation 2s infinite;
}
@keyframes gift-animation {
    0%, 40%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-12px);
        transform: scale(1.05);
    }
    60% {
        transform: translateY(-7px);
        transform: scale(1.12);

    }
}

.moshavere-free div:nth-child(2) h4{
    color: var(--title-primary);
    font-family: Estedad;
    font-weight: bold;
}
.moshavere-free div:nth-child(2) p{
    color: var(--text-primary);
    font-family: Vazirmatn;
}
.moshavere-free div:nth-child(3){
    background-color: var(--primary-button);
    padding: 10px 15px;
    font-family: Vazirmatn;
    color: var(--card-bg);
    border-radius: 50px;
    transition: all 0.2s ease-in-out;
}
.moshavere-free div:nth-child(3){
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.moshavere-free div:nth-child(3) a{
    color: var(--card-bg) !important;
    transition: all 0.3s ease-in-out;
}
.moshavere-free div:nth-child(3):hover{
    background-color: var(--card-bg);
    outline: 1px solid var(--primary-button);
}
.moshavere-free div:nth-child(3):hover a{
    color: var(--primary-button) !important;
}
.moshavere-free div:nth-child(3) a i{
    vertical-align: middle;
    animation: phone-animation 2s infinite;
}
@keyframes phone-animation {
    0%, 40%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: rotateZ(15deg);
    }
    60% {
        transform: rotateZ(-15deg);
    }
    70% {
        transform: rotateZ(15deg);
    }
    80% {
        transform: rotateZ(-15deg);
    }
}


/* ===========================
   Tablet (<=768px)
=========================== */
@media screen and (max-width:768px){
    .moshavere-free{
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
        border-radius: 20px;
    }
    .moshavere-free div:first-child img{
        width: 80px;
    }
    .moshavere-free div:nth-child(2) h4{
        font-size: 22px;
        margin-bottom: 10px;
    }
    .moshavere-free div:nth-child(2) p{
        font-size: 15px;
        line-height: 1.9;
        margin: 0;
    }
    .moshavere-free div:nth-child(3){
        width: 100%;
        max-width: 320px;
        padding: 14px;
        border-radius: 50px;
    }
    .moshavere-free div:nth-child(3) a{
        display: block;
        font-size: 16px;
    }
}

/* ===========================
   Small Phones (<=480px)
=========================== */
@media screen and (max-width:480px){
    .moshavere-free{
        padding: 20px 15px;
        gap: 15px;
    }
    .moshavere-free div:first-child img{
        width: 65px;
    }
    .moshavere-free div:nth-child(2) h4{
        font-size: 19px;
    }
    .moshavere-free div:nth-child(2) p{
        font-size: 14px;
        line-height: 1.8;
    }
    .moshavere-free div:nth-child(3){
        width: 100%;
        padding: 12px;
    }
    .moshavere-free div:nth-child(3) a{
        font-size: 14px;
    }
}