/* 
Theme Name: راییوم
Theme URI: https://www.rayium.ir/
Author: Raymond Baghumian
Author URI: https://www.rayium.ir/
Description: قالب آموزشی راییوم
Version: 4.0
License: GNU General Public License v2 or later
*/

@font-face {
    font-family: 'Lalezar';
    src: url('fonts/Lalezar-Regular.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
    font-weight: bold;
}

@font-face {
    font-family: IranSans;
    src: url('fonts/IRANSansWeb\(FaNum\).woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: IranSans;
    src: url('fonts/IRANSansWeb\(FaNum\)_Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "IranSans";
    background-color: #e8e8e8;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: right;
}

.container {
    max-width: 1400px;
}

a {
    text-decoration: none;
    color: #212529;
}

h1.here {
    font-family: "Lalezar";
    font-size: 60px;
}

ul.here {
    list-style: none;
}

ul.here li {
    margin-bottom: 10px;
    font-weight: bold;
}

figure {
    margin: 0 auto;
}

img.img-fluid {
    max-width: 100%;
}

img.here {
    animation: float 3.8s ease-in-out infinite;
}

/* Header */

.nav-link {
    padding: 0.5rem 0.5rem 1.5rem 0.5rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    border-radius: 25px;
    width: 100%;
}

.dropdown-menu {
    text-align: right;
    /* right: 0; */
}

@media (min-width: 992px) {
    .navbar-expand-lg .nav-item {
        margin-left: 1rem;
        margin-bottom: 0;
    }
}

.dropdown-item.active,
.dropdown-item:active {
    border-radius: 25px;
}

.fa-search,
.fa-user,
.fa-moon,
.fa-sun,
.fa-sign-out {
    font-size: 20px;
}

.search-slide-container {
    position: absolute;
    top: 100%;
    left: 18%;
    transform: translateX(-50%);
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
    z-index: 1000;
    margin-top: 5px;
}

.search-slide-container.active {
    width: 300px;
}

.search-slide-content {
    background: white;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 15px;
}

.search-slide-input {
    min-width: 250px;
    transition: all 0.3s ease;
}

/* برای نمایش بهتر در موبایل */
@media (max-width: 768px) {
    .search-slide-container {
        left: 10px;
        right: 10px;
        transform: none;
    }

    .search-slide-container.active {
        width: calc(100% - 20px);
    }

    .search-slide-input {
        min-width: unset;
        width: 100%;
    }
}

/* انیمیشن برای فیلد */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.search-slide-container.active .search-slide-content {
    animation: slideIn 0.3s ease-out;
}

/* Course Section */
.titlec {
    font-family: "Lalezar";
}

/* Here Section - animated programming icons */
.icon-cloud {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    justify-content: space-around;
    align-items: center;
}

.icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    cursor: default;
    transition: transform 250ms ease, box-shadow 250ms ease;
    animation: float 3.8s ease-in-out infinite;
}

.icon:nth-child(1) {
    background: linear-gradient(135deg, #ff9a66, #ff5e62);
}

.icon:nth-child(2) {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    animation-duration: 4.2s;
}

.icon:nth-child(3) {
    background: linear-gradient(135deg, #7afcff, #4b6cb7);
    animation-duration: 3.4s;
}

.icon:nth-child(4) {
    background: linear-gradient(135deg, #7afcff, #7211f5);
    animation-duration: 4.6s;
}

.icon:nth-child(5) {
    background: linear-gradient(135deg, #8be78b, #2bb673);
    animation-duration: 3.2s;
}

.icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.95);
    color: rgba(255, 255, 255, 0.95);
}

.icon text {
    fill: rgba(255, 255, 255, 0.95);
}

.icon:hover {
    transform: translateY(-8px) scale(1.06);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Make icons smaller on small screens */
@media (max-width: 576px) {
    .icon {
        width: 48px;
        height: 48px;
    }

    .icon svg {
        width: 22px;
        height: 22px;
    }

    .icon-cloud {
        gap: 8px;
    }

    h1.here {
        font-size: 34px;
    }
}

.statistics span {
    margin: 10px;
}

.count {
    font-family: 'Lalezar';
}

/* Sidebar */

ul.lists {
    list-style: none;
    padding: 0;
}

ul.lists li {
    border-bottom: 1px solid #ccc;
    padding: 10px;
}

.titlesidebar {
    display: contents;
}

ul.lists li i {
    margin: 5px 0px 0px 0px;
}

select#cat {
    width: 100%;
    padding: 10px;
    border-radius: 25px;
}

/* Single */
.textsocial {
    margin: -33px 50px 0 0;
}
article.posts {
	overflow: hidden;
}
html :where(img[class*=wp-image-]) { height: auto; max-width: 850px; }
/* Coures Section */
.cprice {
    padding: 10px;
    font-family: "Lalezar";
}

.bap,
.count-student {
    font-family: "Lalezar";
}

.times,
.counts {
    font-size: 0.8rem;
}

del {
    display: block;
    font-size: medium;
}

ins {
    text-decoration: none;
}

/* Comments */

.commentlist {
    display: flex;
    flex-direction: column;
    gap: 2em;
    list-style: none;
    margin-right: -40px;
}

.comment-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1em;
    padding: 1em 1em 1.5em 1em;
    border-radius: 1em;
    border: 1px solid #e8e8e8;
}

.comment:has(.children)>.comment-body {
    padding: 1.5em 1.5em 4.5em 1.5em
}

.comment.bypostauthor {
    background: #e9e9e9;
    border-radius: 1em;
    /* border: 1px solid #21c741; */
    list-style: none;
}

.comment-author {
    justify-self: start;
    border: 1px solid #dacfcf;
    display: flex;
    gap: .25em;
    align-items: center;
    padding: .5em .5em .5em 1em;
    border-radius: 5em;
}

.comment-author img {
    margin-left: .5em;
    border-radius: 50%
}

.comment-author .says {
    display: none
}

.comment-meta {
    justify-self: end;
}


.comment-body p {
    grid-column: 1/3
}

.comment-body pre {
    margin-inline: 0 !important;
    grid-column: 1 / 3
}

.children {
    margin: -2.5em -1% 0 3%;
    list-style: none;
}

.comment .children .comment-body {
    background-color: #e8e8e8;
}

.children .comment-author {
    background-color: #e8e8e8;
}

.comment .reply {
    margin-top: 1em;
    grid-column: 1/3
}

.comment .reply a {
    border: 1px solid #dacfcf;
    padding: .5em 1em .5em 1em;
    font-size: medium;
    font-weight: 600;
    border-radius: 5em;
    transition: color 0.3s ease
}


#respond {
    gap: 1em;
    padding: 1.5em;
    border-radius: 1em;
    border: 1px solid #e8e8e8;
}

#cancel-comment-reply-link {
    color: #222222;
}

#commentform {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    margin-top: 1.5em
}


#commentform textarea {
    min-height: 10em
}


/* Share Social */

.fa-telegram:hover {
    color: #33a6e1;
}

.fa-whatsapp:hover {
    color: #21c741;
}

.fa-linkedin:hover {
    color: #0173b2;
}

.fa-x-twitter:hover {
    color: #000000;
}

.fa-github:hover {
    color: #222222;
}

.fa-instagram:hover {
    color: #fa60badd;
}

.likesingle {
    font-size: 25px;
    text-align: center;
}

summary {
    display: flex;
}

summary::-webkit-details-marker {
    display: none;
}

.p-section-faq__item:nth-of-type(n+2) {
    margin-top: 32px;
}

.titles {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    color: #333;
    cursor: pointer;
}

.icons::after {
    content: "";
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    transition: transform .3s;
    transform: translateY(-80%) rotate(45deg);
    border-right: 2px solid #212529;
    border-bottom: 2px solid #212529;
}

.is-opened .icon::after {
    transform: translateY(-25%) rotate(-135deg);
}

.content {
    overflow: hidden;
}

figure.avatar img {
    border-radius: 15px;
}

.wp-block-code {
    background-color: black;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
}

.wp-block-image .aligncenter {
    padding: 30px;
}

figure.wp-block-image img {
    border-radius: 10px;
}

/* Products */

/* Posts */
figure.imgpost img {
    margin-top: -3.9em;
    margin-bottom: 0.9em;
}

.likepost {
    z-index: 99999;
    font-size: xx-large;
    
    border-radius: 32px;
}

.likeicon {
    margin: 0px 10px -10px 0px;
}
.likeicon .sl-count {
    font-size: x-large;
}
@media screen and (min-width: 321px) and (max-width: 480px)  {
    .likepost {
        position: fixed;
        width: 80%;
        bottom: 10px;
    }

    .carts {
        position: fixed;
        width: 90%;
        bottom: -15px;
        /* height: 50%; */
        z-index: 99999;
    }

    .comment-author, .commentmetadata{
        font-size: x-small;
    }
}
span.icons {
    position: absolute;
    left: 0;
}
