/* 
Theme Name: راییوم
Theme URI: https://www.rayium.ir/
Author: Raymond Baghumian
Author URI: https://www.rayium.ir/
Description: قالب آموزشی راییوم
Version: 3.0
License: GNU General Public License v2 or later
*/
/* @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap'); */

@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;
}

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 1rem 0rem;
}
.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;
    }
}
.dropdown-item.active, .dropdown-item:active {
    border-radius: 25px;
}

.fa-search{
    font-size: 15px;
}
.search-slide-container {
    position: absolute;
    top: 100%;
    left: 50%;
    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;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px;
    border: 1px solid #dee2e6;
}

.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: flex-end;
    /* align to right for RTL */
    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;
}
/* 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 {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.commentlist .children {
    list-style: none;
    margin-right: 2rem;
}

.comment {
    margin-bottom: 2rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
}

/* Admin Comment Styling */
.comment.bypostauthor {
    background: #e8f5e9;
    border-right: 4px solid #4caf50;
}

.comment.bypostauthor .comment-author .fn {
    color: #2e7d32;
    font-weight: 700;
}

.comment.bypostauthor .comment-metadata {
    color: #388e3c;
}

.comment.bypostauthor .comment-content {
    color: #1b5e20;
}

.comment.bypostauthor .comment-reply-link {
    background: #4caf50;
    color: white;
}

.comment.bypostauthor .comment-reply-link:hover {
    background: #388e3c;
    color: white;
}

.comment-body {
    position: relative;
}

.comment-meta {
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-author img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-author .fn {
    font-weight: 600;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.9rem;
    color: #6c757d;
}

.comment-content {
    margin: 1rem 0;
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 1rem;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border:1px solid;
}

.comment-reply-link:hover {
    background: #dee2e6;
    color: #212529;
}

/* Comment Form Styling */
#respond {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
}

#respond h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #212529;
}

#commentform {
    max-width: 100%;
}

#commentform label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

#commentform .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#commentform .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Comments Navigation */
.comments-navigation {
    display: flex;
    justify-content: space-between;
}

.comments-navigation a {
    padding: 0.5rem 1rem;
    background: #e9ecef;
    border-radius: 0.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.comments-navigation a:hover {
    background: #dee2e6;
    color: #212529;
}

/* 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 {
/* 	display: block;
    flex-shrink: 0;
    position: relative;
    width: 16px;
    transform-origin: center; */
}
.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;
}

