/*
Theme Name: dev theme
Theme URI: https://wordpress.org/themes/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: یک قالب وبلاگی ایرانی
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 5.6
Version: 1.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentytwo
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, style-variations, wide-blocks, block-styles, accessibility-ready, blog, portfolio
*/
@font-face {
    font-family: devfont;
    src: url(assets/fonts/danadev/d-medium.woff);
 }
 body {
    font-family: devfont !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    margin: auto;
    background: #FCFCFF;
}
.cs-container {
    max-width: 1298px;
    width: 100%;
    margin: auto;
    padding: 0 10px;
}

img{
    width: 100%;
    height: auto;
}
*{
    text-decoration: none;
}
a{
    font-weight: bold;
    text-decoration: unset;
}
a.button-link {
    background: #7bdcb5;
    color: #fff;
    margin-top: 10px;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 10px;
}
input.wp-block-search__input {
    border: 1px solid var(--wp--preset--color--border)  !important;
}
/* فرم ها */
.gform-theme--foundation .gform_fields {
    row-gap: 10px !important;
}
input, textarea {
    border: unset !important;
    border-radius: 10px !important;
}
/* هدر سایت */
header{
    z-index: 5;
}
.header-container-box {
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* پاورقی سایت */
footer.footer-continer {
    padding: 15px;
    margin: 20px 0 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
footer.footer-continer .cs-container {
    border-top: 1px solid #eee;
    padding-top: 15px;
}
/* برگه اصلی index */
.have-post-continer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.have-post-continer .have-post-box {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px 0;
    width: auto;
    align-items: stretch;
    border-top: 1px solid var(--wp--preset--color--border);
}
.have-post-continer .have-post-box:nth-child(1) {
    border-top: none;
}
.have-post-continer .have-post-box img {
    border-radius: 20px;
    width: 250px;
    height: 100%;
    object-fit: cover;
}
.have-post-continer .have-post-box span.heve-post-title {
    font-size: 30px;
    color: #29294b;
    font-weight: bold;
}
.have-post-continer .have-post-box .have-post-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}
.have-post-continer .have-post-box span.have-post-the-author {
    margin-bottom: 5px;
}
.index-page-content-cantiner {
    display: flex;
    gap: 20px;
    flex-direction: row;
    align-items: stretch;
    margin-top: 30px;
}
/* سایدبار */
.devtheme-aside-continer {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}
.fixed-box-aside {
    position: sticky;
    top: 10px;
}

.devtheme-aside-continer img{
    border-radius: 10px;
}
/* برگه نوشته تکی */
.post-continer {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    align-items: stretch;
}
.post-continer article {
    width: 75%;
}
.post-continer img.attachment-large.size-large.wp-post-image {
    border-radius: 20px;
}
.top-post-continer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.top-post-continer, .box-post-content {
    background: #ffffff;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid #cbcbcb;
    text-align: justify;
}
.top-post-continer ul.post-info {
    padding: 10px 20px;
    border-radius: 15px 15px 0 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 80%;
    margin: auto;
    margin-top: -40px;
    background: #fff;
}
ul.post-info {
    padding: 0px;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.nextprev {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
}
.nextprev a {
    background: #3c3c3c;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
}
/* نظرات نوشته */
ul.commentlist.list-unstyled {
    background: #f7f7ff;
    padding: 15px;
    list-style: none;
    border-radius: 20px;
}
ul.commentlist.list-unstyled li {
    background: #fff;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 15px;
}
.comment-body {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
ul.commentlist.list-unstyled li .comment-body p {
    width: 100%;
    background: #f7f7ff;
    padding: 15px;
    border-radius: 20px;
}
div#respond{
    background: #f7f7ff;
    padding: 15px;
    border-radius: 20px;
}

p.comment-form-comment, p.comment-form-url, p.comment-form-email, p.comment-form-author {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 10px;
    border-radius: 15px;
}
form#commentform textarea#comment,form#commentform input#email,form#commentform input#author,form#commentform input#url {
    background: #f7f7ff;
    padding: 10px;
    border: unset;
    margin-top: 10px;
    border-radius: 10px;
}

input#submit {
    border: unset;
    background: #3c3c3c;
    color: #fff;
    padding: 10px;
    font-size: 15px;
    font-family: devfont !important;
    border-radius: 15px;
}


/* استایل‌های ضروری Swiper */
    .swiper {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 1;
      }
      .swiper-wrapper {
        display: flex;
        transition-property: transform;
        transition-timing-function: ease;
        transition-duration: 0ms;
      }
      .swiper-slide {
        flex-shrink: 0;
        width: 100%;
        height: 100%;
      }
      .swiper-button-prev, .swiper-button-next {
        position: absolute;
        top: 50%;
        z-index: 10;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #fff;
        font-size: 50px;
        font-family: math;
        padding: 2px 20px;
        line-height: 1;
        border-radius: 50px;
        transform: translateY(-50%);
    }
      .swiper-button-prev {
        right: 10px;
      }
      .swiper-button-next {
        left: 10px;
      }
      .swiper-pagination {
        position: absolute;
        text-align: center;
        transition: 0.3s opacity;
        z-index: 10;
        bottom: 15px;
        left: 50%;
        transform: translate(-50%);
        display: flex;
        gap: 15px;
    }
    .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        display: inline-block;
        border-radius: 32px;
        background: #000;
        opacity: 0.5;
        transition: opacity 0.3s;
        transition: all 0.6s;
    }
      .swiper-pagination-bullet-active {
        width: 50px;
        opacity: 1;
        background: #ffffff;
    }
  
      /* استایل‌های سفارشی */
    
      .swiper {
        width: 100%;
    }
  
    .swiper-slide {
        background: #a9f3c9;
        border-radius: 20px;
    }
    .swiper-slide-continer {
        padding: 20px;
        display: flex;
        align-items: stretch;
        flex-direction: row;
    }
    .slide-contenet-box {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        width: 100%;
        padding: 20px;
        align-items: flex-start;
        gap: 15px;
    }
    .swiper-slide span.swiper-slide-title {
        font-size: 40px;
        font-weight: bold;
        color: #000000;
    }
    .swiper-slide a.swiper-slide-button-link {
        background: #000;
        padding: 15px 30px;
        color: #fff;
        border-radius: 15px;
    }
    .swiper-slide img {
        width: 500px;
        height: 400px;
        object-fit: cover;
        border-radius: 20px;
    }
    .swiper-slide span.swiper-slide-author {
        padding: 5px 15px;
        border: 2px solid #ffffff;
        border-radius: 15px;
        color: #fff;
    }
    .swiper-slide span.swiper-slide-author a{
        color: #fff;
    }
    .swiper-slide ul.slide-post-info {
        list-style-type: none;
        padding: 0;
        padding-top: 15px;
        display: flex;
        width: 100%;
        flex-direction: row;
        gap: 20px;
        border-top: 1px solid;
    }
    .swiper-button-next, .swiper-button-prev {
        opacity: 0;
        transition: all 1s;
    }
    .swiper.swiper-initialized.swiper-horizontal:hover .swiper-button-prev {
        opacity: 1;
        transform: translateX(10px) translateY(-50%);
    }
    .swiper.swiper-initialized.swiper-horizontal:hover .swiper-button-next {
        opacity: 1;
        transform: translateX(-10px) translateY(-50%);
    }
    .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
        padding: 5px;
        background: #0000004d;
        border-radius: 33px;
    }
/* آرشیو نوشته */
.posts-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.posts-list article {
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid var(--wp--preset--color--border);
    transition: all 0.6s;
}
.posts-list article:hover {
    box-shadow: 5px 5px 10px #00000010;
}
.posts-list img.wp-post-image {
    border-radius: 15px;
    height: 220px;
    object-fit: cover;
}

/* برگه دسته بندی */
.archive-chaild-category {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 15px 0;
}
.archive-chaild-category a {
    padding: 10px;
    border: 2px solid #f7f7ff;
    border-radius: 10px;
    margin-left: 10px;
    font-weight: bold;
}
.archive-chaild-category a:hover {
    background: #f7f7ff;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.nav-links .page-numbers {
    background: #f1f1f1;
    padding: 10px;
    min-width: 25px;
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.nav-links .page-numbers.current, .nav-links .page-numbers:hover {
    background: #A9F3C9;
    font-weight: bold;
}
/************404 page*************/
.continer-notpage {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.continer-notpage svg {
    width: 300px;
    height: fit-content;
}