/*!
Theme Name: My ComfyUI Theme
Theme URI: http://example.com/my-comfyui-theme
Author: Your Name
Author URI: http://example.com
Description: یک قالب وردپرس برای سایت My-ComfyUI.ir
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-comfyui-theme
*/

:root {
--primary-color: #1e1e1e; /* رنگ اصلی تیره‌تر */
--secondary-color: #333333; /* رنگ ثانویه */
--accent-color: #007bff; /* رنگ تأکید */
--background-color: #121212; /* رنگ پس‌زمینه تیره */
--text-color: #ffffff; /* رنگ متن */
--primary-text-color: #1e1e1e; /* رنگ متن */
--border-color: #444444; /* رنگ bordr */
--nav-text-color:rgb(193, 194, 197);
--font_familly:iranyekan;
}


/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #25262b; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(63 63 63); 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

body {
margin: 0;
font-family: Arial, sans-serif;
background-color: var(--background-color);
color: var(--text-color);
direction: rtl;
}
a {
    text-decoration: none;
    color: var(--accent-color);
}
code {
    white-space: pre-line;
    background-color: #4c4c4c;
    padding: 5px;
}

h1, h2, h3, h4, h5, h6, input, textarea{
    color: var(--accent-color);
}

img{
    max-width: 100%;
}
p {
    word-break: break-word;
}

input[type="text"] , input[type="email"] ,input[type="url"],input[type="password"]{
    height: 36px;
    -webkit-tap-highlight-color: transparent;
    line-height: 34px;
    appearance: none;
    resize: none;
    box-sizing: border-box;
    font-size: 14px;
    width: 100%;
    color: rgb(193, 194, 197);
    display: block;
    text-align: right;
    min-height: 36px;
    padding-left: 36px;
    padding-right: 12px;
    border-radius: 4px;
    border: 1px solid rgb(55, 58, 64);
    background-color: rgb(37, 38, 43);
    transition: border-color 100ms ease 0s;
    margin-top: 4px;
    margin-bottom: 4px;
        width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;

}

textarea {
    height: auto;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.55;
    appearance: none;
    resize: none;
    box-sizing: border-box;
    font-size: 14px;
    width: 100%;
    color: rgb(193, 194, 197);
    display: block;
    text-align: right;
    min-height: 36px;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid rgb(55, 58, 64);
    background-color: rgb(37, 38, 43);
    transition: border-color 100ms ease 0s;
}
select {
    height: auto;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.55;
    appearance: none;
    resize: none;
    box-sizing: border-box;
    font-size: 14px;
    /*width: 100%;*/
    color: rgb(193, 194, 197);
    /*display: block;*/
    text-align: right;
    min-height: 36px;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid rgb(55, 58, 64);
    background-color: rgb(37, 38, 43);
    transition: border-color 100ms ease 0s;
}

button , input[type="submit"] {
    padding: 0px 22px;
    appearance: none;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    height: 42px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    width: auto;
    border-radius: 32px;
    font-weight: 600;
    position: relative;
    line-height: 1;
    font-size: 16px;
    user-select: none;
    cursor: pointer;
    border: 1px solid transparent;
    background-color: rgb(25, 113, 194);
    color: rgb(254, 254, 254);
    margin: 4px 0px 3px 0px;
}

.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: var(--primary-color);
border-bottom: 1px solid var(--border-color);
}

.header .logo, .header nav ul {
margin: 0;
padding: 0;
}

.header .logo img {
/*max-width: 150px;*/
}

.header nav ul {
list-style: none;
display: flex;
}

.header nav ul li {
margin-left: 20px;
}

.header nav ul li a {
text-decoration: none;
color: var(--accent-color);
font-weight: bold;
}

.header nav ul li a:hover {
color: var(--accent-color);
}

.hero {
background-image: url('hero-image.jpg');
background-size: cover;
background-position: center;
text-align: center;
padding: 100px 20px;
color: var(--text-color);
}

.hero h1 {
font-size: 48px;
margin-bottom: 20px;
}

.hero p {
font-size: 24px;
margin-bottom: 40px;
}

.hero .cta-button {
padding: 15px 30px;
background-color: var(--accent-color);
color: var(--text-color);
text-decoration: none;
font-size: 18px;
border-radius: 5px;
}

.hero .cta-button:hover {
background-color: #0056b3;
}

.content {
    padding: 40px 20px;
    text-align: center;
    /* padding-right: 100px;
    padding-left: 100px; */
    padding-right: 1vw;
    padding-left: 1vw;
}

.image_deatils > .image-wrapper >img{
    max-width: 100%;
}

.image_deatils > table , th, td {
    border: 1px solid #25262b;
    border-collapse: collapse;
    padding: 6px;
  }
  .image_deatils > table > th, td {
    padding: 5px;
    text-align: left;
    word-break: break-all;
  }
.image_deatils > table{
    width: 99vw !important;
    direction: ltr;
    text-align: left;
    display: block;
}
.image_deatils{
    display: grid;
    grid-template-columns: 87vw;
    justify-items: center;
    align-items: center;
    justify-content: center;
}

.content h2 {
font-size: 36px;
margin-bottom: 20px;
}

.content p {
font-size: 18px;
margin-bottom: 40px;
}
header{
    text-align: right;
}
.tags_list {
    font-size: small;
    text-align: right;
}

.tags_list > a {
       -webkit-tap-highlight-color: transparent;
    font-size: 10px;
    height: 18px;
    line-height: 16px;
    -webkit-text-decoration: none;
    text-decoration: none;
    padding: 0 8px;
    box-sizing: border-box;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: auto;
    text-transform: uppercase;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-overflow: ellipsis;
    overflow: hidden;
    background: #343a40;
    color: #fefefe;
    border: 1px solid transparent;
    cursor: pointer;
    margin-right: 10px;
    display: inline-block;

}
.tags_list > a > span{
  
}


.parent {
display: grid;
grid-template-columns: 40% 60%;
grid-template-rows: auto auto auto;
grid-column-gap: 0px;
grid-row-gap: 0px;
}
.parent > .g_right {
    padding: 14px;
    position: relative;
}

.parent_image{
display: grid;
grid-template-columns: 100%;
grid-template-rows: auto auto auto;
grid-column-gap: 0px;
grid-row-gap: 0px;
}
.div1_dl { 
    display: grid;
    grid-template-columns: 20% 20% 15% 15% 15% 15%;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
}
.div2_msg {margin-top: 1em;}
.div3_details { margin-top: 1em; }
.div3_details > .deatils_line_frist{
    display: grid;
    grid-template-columns: 45% 55%;
    overflow: hidden;
    font-size: 14px;
    border: 1px solid #373A40;
    padding: 7px 7px!important;
}
.div3_details > .deatils_line{
    display: grid;
    grid-template-columns: 45% 55%;
    overflow: hidden;
    font-size: 14px;
    border: 1px solid #373A40;
}
.div3_details > .deatils_line > .dl_name{
    background-color: #25262b;
    padding: 7px 7px!important;
    border-right: none;
    border-left: 1px solid #373A40;
    
}
.div3_details > .deatils_line > .dl_status{
    padding: 7px 7px!important;
    text-align: right;
}
.div4_files { grid-area: 4 / 2 / 5 / 3; }
.div5_user { 
    display: grid;
    grid-template-rows: 100px auto;
    border: 1px solid #373A40;
    background: url(img/default-account-bg.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1em;
}
.div5_user > .user_top {
        height: 63px;
}
.div5_user > .user_top > .list_btns{
        float: left;
    margin-left: 17px;
}
.div5_user > .user_top > .list_btns > li{
  display: inline;  
}
.div5_user > .user_top > .list_btns > li > a{
    background-color: rgb(52 58 64 / 48%);
    border-radius: 5px 15px 15px 5px;
    padding-right: 15px;
    padding-left: 5px;
    border: solid 1px #494b51;
    font-size: 15px;
    padding-top: 3px;
}
.div5_user > .user_top > .list_btns > li > a > i{
       padding-right: 5px; 
}
.div5_user > .user_top > .user_award {
    display: block;
    margin: auto;
    margin-left: 56%;
    margin-top: 3%;
}
.div5_user > .user_top > .user_award > img{
        width: 86px;

}

.div5_user > .user_bottom {
    height: auto;
    padding-bottom: 10px;
    position: relative;
}
.div5_user > .user_bottom > .list_btns{
    margin: 0;
    padding: 0;
    position: absolute;
    right: 10px;
    bottom: 10px;
}
.div5_user > .user_bottom > .list_btns > li{
  display: inline;  
}
.div5_user > .user_bottom > .list_btns > li > a{
    
}
.div5_user > .user_bottom > .list_btns > li > a > i{
    
}
.div5_user > .user_bottom > .user_deatils {
    width: 60%;
    float: left;
    padding-left: 15px;
}
.div5_user > .user_bottom > .user_deatils > img{
    width: 50px;
    height: 50px;
    float: left;
    border-radius: 50px;
    border: solid 2px black;
}
.div5_user > .user_bottom > .user_deatils > .regdate{
    font-size: 12px;
    text-align: left;
    display: block;
    width: 77%;
}
.div5_user > .user_bottom > .user_deatils > .byline{
    color: white;
    width: 74%;
    display: inline-block;
    text-align: left;
}
.div5_user > .user_bottom > .user_deatils > .byline > a{
    color: white;
}

.div6_comment { grid-area: 6 / 1 / 7 / 3; }
.div7_imags { 
    grid-area: 1 / 1 / 4 / 2; 
    direction: ltr;
}
.div7_imags img{
    max-width: 100%;
    height: auto;
    /* width: 50vw; 
    height: auto; */
    
}
.div8_mtn { 
text-align: right;
    
}

.format-gallery > .parent {
    width: 100%;
    display: inline-block;
}

.format-gallery > .parent > .g_left > .div7_imags img{
    width: 100%;
    height: auto;
}
.msg{
        font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
    position: relative;
    overflow: hidden;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    background-color: rgba(25, 113, 194, 0.2);
    color: #a5d8ff;
    padding-left: 10px;
}
.btn {
  border-radius: 9px;
  text-shadow: 0px 0px 0px #ffffff;
  box-shadow: 0px 0px 0px #666666;
  font-family: var(--font_familly);;
  color: #ffffff;
  padding: 0.5vh 1vw 0.5vh 1vw;
  text-decoration: none;
    margin: 2px;
    border: none;
    cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}
.red_btn {
    background: #e10a0a ;
    background-image: -webkit-linear-gradient(top, #e10a0a, #870303);
    background-image: -moz-linear-gradient(top, #1971c2, #1971c2);
    background-image: -ms-linear-gradient(top, #1971c2, #1971c2);
    background-image: -o-linear-gradient(top, #1971c2, #1971c2);
    background-image: linear-gradient(to bottom, #ff1010, #870303);
}
.blue_btn {
  background: #1971c2;
  background-image: -webkit-linear-gradient(top, #1971c2, #1971c2);
  background-image: -moz-linear-gradient(top, #1971c2, #1971c2);
  background-image: -ms-linear-gradient(top, #1971c2, #1971c2);
  background-image: -o-linear-gradient(top, #1971c2, #1971c2);
  background-image: linear-gradient(to bottom, #1971c2, #1971c2);
  
}
.blue_btn:hover {
  background: #1561a3;
  background-image: -webkit-linear-gradient(top, #1561a3, #1971c2);
  background-image: -moz-linear-gradient(top, #1561a3, #1971c2);
  background-image: -ms-linear-gradient(top, #1561a3, #1971c2);
  background-image: -o-linear-gradient(top, #1561a3, #1971c2);
  background-image: linear-gradient(to bottom, #1561a3, #1971c2);
}
.hightligt_btn {
  background: rgba(25, 113, 194, 0.2);
  color: #ffffff;

}

.hightligt_btn:hover {
  background: #1561a3;
}
.green_btn {
  background: rgba(47, 158, 68, 0.2);
  color: rgba(49, 130, 49, 0.61);
}

.green_btn:hover {
  background: rgba(47, 158, 68, 0.47);
}
.green_btn > span {
    font-size: 23px;
}
.footer {
padding: 20px;
background-color: var(--primary-color);
text-align: center;
border-top: 1px solid var(--border-color);
}

.footer p {
margin: 0;
color: var(--text-color);
}


/* nav*/
.nav-menu {
list-style: none;
padding: 0;
margin: 0;
display: flex;
font-size: small;
}

.nav-menu li {
margin-right: 20px;
}

.nav-menu li a {
text-decoration: none;
color: var(--text-color) !important;
transition: color 0.3s;
}

.nav-menu li a:hover {
color: var(--accent-color);
}



/* استایل بخش کامنت‌ها */
#comments {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
margin: 40px 0;
padding: 20px;
}

/* استایل هر کامنت */
.comment {
    display: grid;
    grid-template-columns: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    grid-template-rows: 58px auto 28px;
    
        outline: 0px;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    color: rgb(193, 194, 197);
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid rgb(55, 58, 64);
    overflow: auto;
    background-color: rgb(37, 38, 43);
    padding: 16px;
}
.comments-title{
    font-size: 25px !important;
    margin-bottom: 20px;
    text-align: right;
}
.comment_top {
    display: grid;
    grid-template-columns: 15% 85%;
    grid-template-rows: 33px;
    align-items: center;
    align-content: center;
    justify-content: center;
    justify-items: start;
}
ul.comment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 290px);
    justify-content: space-between;
    grid-template-rows: repeat(auto-fill,273px);
}
.comment a{
    color: #7a8080;
    font-size: 14px;
}
.comment p{
    font-size: 14px;
    text-align: right;
}
.comment-avatar {
    
}

.comment-avatar img {
border-radius: 50%;
width: 100%;
height: auto;
object-fit: cover;
}

.comment-content {
padding-left: 10px;
}

.comment-author {
    font-size: 14px;
    float: right;
    color: gray;
}

.comment-text {
margin-bottom: 10px;
color: #7a8080;
}

.comment-meta {
font-size: 0.85em;
color: #999;
}
.reply {
    float: left;
}

.comment-respond {
    position: fixed;
    top: 13%;
    left: 25%;
    background-color: #2a2a2b;
    width: 50%;
    height: auto;
    display: none;
    margin: auto;
    padding: 10px;
    border-radius: 18px;
    border: solid 2px #545556;

}
.comment-respond > .close_icon{
    float: right;
    padding: 10px;
    font-size: 14px;
    color: gray;
    cursor: pointer;
}
.comment-respond > .comment-reply-title{
    float: right;
    font-size: 14px;
    color: gray;
}
.comment-respond  textarea{
    border: 3px solid rgb(0 0 0);
    background: #404040;
    width: 80%;
    margin: auto;
    border-radius: 12px;
    color: white;
}
.comment-respond input#submit{
    padding: 0px 18px;
    appearance: none;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
    height: 36px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    width: auto;
    border-radius: 4px;
    font-weight: 600;
    position: relative;
    line-height: 1;
    font-size: 14px;
    user-select: none;
    cursor: pointer;
    border: 1px solid transparent;
    background-color: rgb(25, 113, 194);
    color: rgb(254, 254, 254);
}
.comment_is_open{
    width: 100%;
    min-height: 100px;
    display: grid;
    align-content: center;
    justify-content: start;
    align-items: center;
    grid-template-rows: auto;
    grid-template-columns: auto auto;
    grid-gap: 10px;
}
.comment_is_open > h2{
    text-align: right;
    font-size: 22px;
    float: right;
}
.comment_is_open >.comment_button {
    
    padding: 0px 14px 0px 9.33333px;
    appearance: none;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
    height: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    width: auto;
    border-radius: 4px;
    font-weight: 600;
    position: relative;
    line-height: 1;
    font-size: 12px;
    user-select: none;
    cursor: pointer;
    border: 1px solid rgb(51, 154, 240);
    background-color: transparent;
    color: rgb(51, 154, 240);
}


/*search s*/
.search-form {
display: flex;
justify-content: center;
margin-bottom: 20px;
}

.search-form select,
.search-form input,
.search-form button {
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
}

.search-form select {
    margin-right: 5px;
    background-color: rgb(52, 58, 64);
    border-bottom: 1px solid #2C2E33;
    color: #949494;
    border: solid 1px #000000;
    font-family: 'iranyekan';
    font-size: 10px;
    margin-left: -6px;
    border-left: none;
    border-radius: 0px 5px 5px 0px;
    appearance: none;
    height: 32px;
}
.search-form select:focus-visible {
        outline-offset: 0px;
    outline: none;
}



/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}

.search-form input:focus-visible {
        outline-offset: 0px;
    outline: none;
}

.search-form input {
    flex: 1;
    margin-right: 5px;
    background-color: rgb(37, 38, 43);
    border-bottom: 1px solid #2C2E33;
    color: #949494;
    border: solid 1px #000000;
    font-family: 'iranyekan';
    font-size: 14px;
    border-right: none;
    border-left: none;
    border-radius: 0;
    height: 32px;
    margin-top: 0;
    margin-bottom: 0;
    display: block;
}

.search-form button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    background-color: rgb(52, 58, 64);
    border-bottom: 1px solid #2C2E33;
    color: #949494;
    border: solid 1px #000000;
    font-family: 'iranyekan';
    font-size: 10px;
    border-right: none;
    border-radius: 5px 0px 0px 5px;
    height: 36px;
    margin-top: 0;
}

.search-form button:hover {
background-color: #0056b3;
}

.search-form .search_arrow {
    margin-right: 0;
    background-color: rgb(52, 58, 64);
    border-bottom: 1px solid #2C2E33;
    color: #949494;
    border: solid 1px #000000;
    font-size: 26px;
    border-left: none;
    border-right: 0;
    border-radius: 5px 0px 0px 5px;
    margin-left: -6px;
    display: grid;
    align-content: center;
    justify-content: center;
    align-items: center;
    display: none;
}
/*search e*/

#countdown {
font-family: 'Helvetica', sans-serif;
color: #333;
text-align: center;
font-size: 40px;
margin-top: 20px;
border: 3px solid #333;
padding: 10px;
display: inline-block;
}


/*post details s */
.list_post_details{
        display: contents;
}
.list_post_details > li{
     display: inline-block;
    font-size: 11px;
    background: rgba(52, 58, 64, 0.2);
    -webkit-tap-highlight-color: transparent;
    height: 26px;
    line-height: 24px;
    -webkit-text-decoration: none;
    text-decoration: none;
    padding: 0 13.333333333333334px;
    box-sizing: border-box;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: auto;
    text-transform: uppercase;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.25px;
    cursor: inherit;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #e9ecef;
    border: 1px solid transparent;
    padding-left: 6px;
    padding-right: 6px;
    cursor: pointer;
    direction: ltr;
}
.list_post_details > li >i{
    padding-right: 5px;
    padding-left: 5px;
}
/*post details e */
.author_page {
        display: grid;
    /* grid-template-columns: 28vw 1fr; */
    grid-template-columns: 100%;
    grid-template-rows: 100vh;
    margin-top: -19px;
}

@media only screen and (max-width: 800px) {
    .author_page {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: 100vh;
        /* margin-top: -19px; */
    }
}
.author_page > .content{
    overflow-y: scroll;
}
.author_page > .sidebar_user {
    background-color: rgb(24 24 24);
    margin: 0;
    padding: 0;
    text-align: center;
    display: grid;
    flex-direction: column;
    -webkit-box-align: stretch;
    align-items: center;
    -webkit-box-pack: start;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px;
    overflow-y: scroll;
    border-left: solid 1px rgb(52, 58, 64);
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: 'topr topl'
        'center center'
        'bottom bottom'
        'bottom1 bottom1'
        'bottom2 bottom2';
    justify-items: center;
    overflow: hidden;
    overflow-y: scroll;
}
.author_page > .sidebar_user > .avatar{
    float: right;
    grid-area: topr;
    z-index: 2;
}
.author_page > .sidebar_user > .avatar > img{
     width: 256px;
    height: 256px;
    float: right;
    border-radius: 500px;
    border: solid 2px white;
    box-shadow: 1px 1px 6px 1px #8e9494;
    /* width: 30vw;
    height: auto; */
}
.author_page > .sidebar_user > .avatar > div{
    width: 256px;
    height: 256px;
    float: right;
    border-radius: 500px;
    border: solid 2px white;
    box-shadow: 1px 1px 6px 1px #8e9494;
    background-size: cover;
    background-position: center;
    /* width: 30vw;
    height: auto; */
}
.author_page > .sidebar_user > .name_dis{
    float: left;
    grid-area: topl;
}
.author_page > .sidebar_user > .name_dis > .name{
    font-size: larger;
    text-align: right;
}
.author_page > .sidebar_user > .name_dis > .join_date{
    font-size: 14px;
    text-align: right;
    padding-top: 10px;
    padding-bottom: 10px;
    color: gray;
}
.author_page > .sidebar_user > .name_dis > .discription{
    font-size: 16px;
    text-align: right;
}
.author_page > .sidebar_user > .links{
    grid-area: center;
    border-top: solid 2px #25262b;
    width: 108%;
    margin-top: -60px;
    padding-top: 16px;
    z-index: 1;
}
.author_page > .sidebar_user > .links > ul {}
.author_page > .sidebar_user > .links > ul > li{
        display: inline;
    padding: 2px;
}
.author_page > .sidebar_user > .links > ul > li > a{
        -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    appearance: none;
    font-size: 20px;
    text-decoration: none;
    box-sizing: border-box;
    border: 1px solid transparent;
    background-color: transparent;
    color: rgb(233, 236, 239);
    position: relative;
    border-radius: 4px;
    padding: 0px;
}
.author_page > .sidebar_user > .buttons{
    display: grid;
    grid-gap: 9px;
    justify-items: stretch;
    align-items: center;
    grid-area: bottom;
    grid-template-columns: 100%;
    width: 100%;
}
.author_page > .sidebar_user > .buttons > .Tip{
        padding: 0px 8px;
    appearance: none;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    height: 42px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    width: auto;
    border-radius: 32px;
    position: relative;
    line-height: 1;
    user-select: none;
    cursor: pointer;
    border: 1px solid transparent;
    background-color: rgba(240, 140, 0, 0.2);
    color: rgb(245, 159, 0);
    font-size: 14px;
    font-weight: 590;
}
.author_page > .sidebar_user > .buttons > .follow{
        padding: 0px 12px;
    appearance: none;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    height: 42px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    width: auto;
    border-radius: 32px;
    position: relative;
    user-select: none;
    cursor: pointer;
    border: 1px solid transparent;
    background-color: rgb(25, 113, 194);
    color: rgb(254, 254, 254);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
.author_page > .sidebar_user > .stauts{
    grid-area: bottom1;
}
.author_page > .sidebar_user > .Badges{
    grid-area: bottom2;
}



.profileform{
    display: grid;
    grid-gap: 0;
    grid-template-rows: auto;
    max-width: 50vw;
    margin: auto;
}

.profileform >.icon_picker_div{
    
}
.profileform >.icon_picker_div > select{}
.profileform >.icon_picker_div > i{
    font-size: 47px;
}




.tab {
overflow: hidden;
padding: 3px;
}

.tab button {
background-color: inherit;
float: right;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
   color: rgb(193, 194, 197);
    border-radius: 0.2em;
}

.tab button:hover {
color: #ddd;
}

.tab button.active {
background-color: rgb(55, 58, 64);
}

.tabcontent {
display: none;
padding: 6px 12px;

}



.secend_nav {
    outline: 0;
    -webkit-tap-highlight-color: transparent;
    display: block;
    text-decoration: none;
    color: #C1C2C5;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 0 16px;
    border-radius: 0;
    transition: transform 0.3s;
    background: #25262b;
    margin-bottom: 16px;
    padding-right: 8px;
    padding-left: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
}


.secend_nav > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    overflow: hidden;
    scrollbar-width: thin; /* ضخامت اسکرول بار */
    scrollbar-color: #888 #31313a; /* رنگ اسکرول بار و پس‌زمینه */
}


/* برای کروم، اج و سافاری */
.secend_nav > ul::-webkit-scrollbar {
width: 2px !important; /* عرض اسکرول بار */
}

.secend_nav > ul::-webkit-scrollbar-track {
background: #31313a; /* رنگ پس‌زمینه اسکرول بار */
}

.secend_nav > ul::-webkit-scrollbar-thumb {
background-color: #45454c; /* رنگ اسکرول بار */
border-radius: 10px; /* گرد کردن گوشه‌های اسکرول بار */
border: 3px solid #45454c; /* فضای خالی اطراف اسکرول بار */
}

.secend_nav > ul::-webkit-scrollbar-thumb:hover {
background: #31313a; /* رنگ اسکرول بار در حالت هاور */
}


.secend_nav > ul > li {
    border-radius: 6px;
    padding: 4px 11px;
    display: flex;
    direction: ltr;
}
.secend_nav > ul > li:hover {
    background-color: #343a40;
    color: #fefefe;
}
.secend_nav > ul > li > a {
 display: flex;
align-items: center; 
justify-content: center;
font-size: 14px;
}
.secend_nav > ul > li > a > span {
    padding: 0px 7px;
    font-size: 25px;
}

.post_related{
    display: flex;
    gap: 7px;
    background: rgb(37, 38, 43);
    padding: 24px 16px;
    justify-content: space-around;
    flex-wrap: nowrap;
    flex-direction: column;
}


.latest-posts-grid {
margin: 20px auto;
max-width: 1200px;
padding: 0 15px;
}

.posts-grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
gap: 20px;
}

.post-grid-item {
background: #fff;
border: 1px solid #ddd;
border-radius: 5px;
overflow: hidden;
transition: transform 0.2s;
}

.post-grid-item:hover {
transform: translateY(-5px);
}

.post-thumbnail img {
width: 100%;
height: auto;
}

.post-content {
padding: 15px;
}

.post-title {
font-size: 18px;
margin: 10px 0;
}

.post-excerpt {
font-size: 14px;
color: #666;
}




@media only screen and (max-width: 850px) {
    .header {
    display: grid;
    padding: 20px;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
    justify-items: center;
}
    
.parent {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}
    
    .parent > .g_right {
    padding: 14px;
    display: none;
}

.secend_nav > ul {
    overflow: scroll;
 }
}

@media only screen and (max-width: 1100px) {
.div5_user > .user_bottom {
    height: auto;
    padding-bottom: 10px;
    position: relative;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 93px 41px;
    align-items: center;
    justify-items: center;
}
.div5_user > .user_bottom > .user_deatils {
    width: 92%;
    float: revert-layer;
    padding-left: 15px;
    border-bottom: solid 1px rgb(55, 58, 64);
    padding-bottom: 5px;
    margin-bottom: 12px;
    border-top: solid 1px rgb(55, 58, 64);
    padding-top: 5px;
}
    .div5_user {
    display: grid;
    grid-template-rows: 174px auto;
    border: 1px solid #373A40;
    background: url(img/default-account-bg.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1em;
}
}