/* typo*/
@font-face {
    font-family: 'iran-yekan';
    src: url("../fonts/iranyekan/Qs_Iranyekan.ttf") format("truetype");
}

.aligncenter {
    text-align: center;
}
    /* استایل‌های عمومی */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    font-size: 14px;
}

.search-box {
    position: relative;
    width: 100%;
    min-height: 45px;
    max-width: 300px;
    min-width: 200px;
    background-color: #ededed;
    border: none;
    border-radius: 15px;
    font-size: 18px;
}

.search:focus .search-box {
    border: 1px solid;
}

.search-form {
    display: flex;
    position: relative;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 8px 40px 8px 10px; /* فضای کافی برای آیکون داخل دکمه */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    color: #555;
}

.search-button svg {
    display: block;
}

/* بخش top-header برای دسکتاپ */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    width: 100% !important;
}

.top-header a {
    margin-left: 15px;
    font-size: 0.9em;
}

/* بخش main-header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px !important;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    pointer-events: none;
    width: max-content;
}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    color: black;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
}

.logo-site {
    max-width: 150px;
}

/* منوی دسکتاپ */
.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav ul li {
    margin: 0 10px;
    position: relative;
}

.desktop-nav ul li .icon-nav-link {
    margin-right: 3px;
}

/* استایل باکس جستجو */
.search-box {
    margin-right: 20px;
}

.search-box input {
    padding: 5px 10px;
    font-size: 1em;
}

/* دکمه منوی همبرگری - به صورت پیش‌فرض مخفی در دسکتاپ */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

/* برای اطمینان از یکسان بودن ارتفاع کارت‌ها */
.card.carousel-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 95%; /* یا می‌توانید ارتفاع ثابت مانند 400px تعیین کنید */
}

/* بدنه کارت را طوری تنظیم می‌کنیم که فضای باقی‌مانده کارت را بگیرد */
.card.carousel-card .card-body {
    flex: 1 1 auto;
}

/* اگر نیاز به یکسان سازی سایز تصاویر دارید */
.card.carousel-card img {
    /* استفاده از object-fit برای بریدن مناسب تصویر */
    object-fit: cover;
    width: 100%;
    height: 200px; /* به عنوان نمونه مقدار مناسب انتخاب کنید */
}

.mobile-menu {
    font-size: 20px;
    width: 100vw;
    padding-bottom: 20px;
    padding-top:20px;
    height: fit-content;
    display: none;
    border-top: 1px solid #ddd;
    background-color: #ffc505;
    button{
        color: #333;
        text-decoration: none;
    }
    a{
        font-size: 13px ;
        line-height: 0.75rem;
    }
}

/* استایل برای دکمه‌های فراخوانی (در top-header و...همچنین آیکون‌ها) */
.btn {
    cursor: pointer;
}


@media (max-width: 768px) {
    .mobile-menu{
        display: none;
    }
    /* مخفی کردن top-header */
    .top-header {
        display: none;
    }

    .No1 {
        display: none;
    }

    /* تغییر ساختار main-header */
    .main-header {
        padding: 10px 0;
    }

    /* در موبایل فقط لوگو، باکس جستجو و دکمه منو نمایش داده می‌شوند */
    .desktop-nav {
        display: none;
    }

    .search-box {
        flex-grow: 1;
        margin-right: 10px;
    }

    .menu-toggle {
        display: block;
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
div,
a {
    font-family: iran-yekan;
}
h1 {
    font-size: 1.7rem !important;
}

h2 {
    font-size: 1.6rem !important;
}

h3 {
    font-size: 1.3rem !important;
}

p {
    color: black;
}

a {
    text-decoration: none;
}

.btn-primary {
    background-color: #FEAF2DFF;
    border: none;
}

.btn-primary:hover {
    background-color: rgb(255, 186, 72);
}

ul li {
    list-style: none;
}

/* end of typo*/


.top-header {
    width: 100%;
}

.top-header .contact-links a {
    padding-left: 20px;
    color: black;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.top-header .contact-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ffc505;
    bottom: -5px;
    right: 0;
    transition: width 0.3s ease;
}

.top-header .contact-links a:hover {
    color: #ffc505;
}

.top-header .contact-links a:hover::after {
    width: calc(100% - 20px);
}

.top-header .call-to-action a:first-child {
    background-color: #E2E8F0;
}


.top-header .call-to-action a:first-child:hover {
    background-color: #d9d9da;
}

.top-header .call-to-action a svg {
    width: 20px;
    margin-top: -5px;
}

nav * {
    color: black;
}

nav > svg {
    width: 30px;
}

nav > ul {
    list-style: none;
    display: flex;
}

nav > ul > li {
    list-style: none;
    display: flex;
    padding: 8px 12px;
}

/* mega menu */
.mega-menu {
    position: absolute;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
    justify-content: center;
    align-items: center;
    right: 0;
    margin-top: 2rem;
    z-index: 999;
}

.has-mega-menu:hover .mega-menu {
    display: flex;
    transition: 0.5s;
    visibility: visible;
    opacity: 1;
}

.mega-menu .container .row {
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    border-radius: 1rem;
    background-color: #ffffff;

}

.mega-menu .container .row .col-3 {

    background: linear-gradient(to bottom,
    transparent 10%,
    rgb(158, 157, 157) 10%,
    rgb(158, 157, 157) 90%,
    transparent 90%);
    background-repeat: no-repeat;
    background-size: 1px 100%;
    background-position: left center;
    padding: 10px 10px 10px 10px;
}

.mega-menu .container .row .col-3:last-child {
    background: linear-gradient(to bottom,
    transparent 10%,
    rgb(255, 255, 255) 10%,
    rgb(255, 255, 255) 90%,
    transparent 90%);
    background-repeat: no-repeat;
    background-size: 1px 100%;
    background-position: left center;
}

.mega-menu .container .row .col-3 > ul > li {
    list-style: outside;
    line-height: 2.5rem;
}

.mega-menu .container .row .col-3 > ul > li:hover {
    color: #feaf2d;
}

.mega-menu .container .row .col-3 > ul > li > a {
    display: inline-block;
    padding-left: 20px;
    color: black;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.mega-menu .container .row .col-3 > ul > li > a:hover {
    color: #feaf2d;
}

.mega-menu .container .row .col-3 > ul > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ffc505;
    bottom: -5px;
    right: 0;
    transition: width 0.3s ease;
}

.mega-menu .container .row .col-3 > ul > li > a:hover::after {
    width: 90%;
    left: auto;
    right: 0;
}

/* END mega menu */
/*.last-articles-background {*/
/*    background-image: url("../images/last-articles-section-bg.png");*/
/*    background-size: cover;*/
/*}*/

.about-exchange {
    background-image: linear-gradient(250deg, #853FEA 0%, #323D75 100%);
    color: #FFFFFF;
}

.about-exchange p {
    line-height: 2.2rem;
    color: #d9d9da;
}

.category-regal {
    background-color: #4F3A90;
}

.category-regal .article {
    background-color: white;
    border-radius: 2rem;
}

.card {
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* minimal card */
.minimal-card {
    margin-top: 5rem;
}

.minimal-card > a {
    padding: 1rem;
}

.minimal-card > a > img {
    margin-top: -7rem;
    border-radius: 1rem;
    margin-bottom: -1rem;
    width: 100%;
    height: auto;
}

.minimal-card-body {
    padding: 0;
}

.minimal-card-body > a > h5 {
    font-size: 15px;
    margin-bottom: 1.5rem;
    color: black;
}

.minimal-card-body {
    margin-bottom: 1rem;
    color: black;
}

/* END minimal */

/* tab */
.gradient-tabs .nav-tabs {
    border: none;
}

.gradient-tabs .nav-tabs .nav-item .nav-link {
    border-bottom: 1px solid black;
    border-radius: 10px;
    color: black;
    height: 3.5rem;
}

.gradient-tabs .nav-tabs .nav-item .nav-link:hover {
    border-bottom: none;
    color: rgb(255, 255, 255);
    height: 3.5rem;
}

.nav-link .active {
    border: none;
}

.nav-link > span > svg {
    width: 20px;
}

.nav-tabs .nav-link.active {
    background-color: #543BC2;
    color: #E2E8F0 !important;
}

.nav-tabs .nav-link:hover {
    background-color: #feaf2d;
}

.nav-tabs .nav-link.active:hover {
    background-color: #543BC2;
}

/* END tav */

/* Carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #feaf2d;
    border-radius: 50%;
    padding: 10px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #feaf2d;
    border-radius: 50%;
    padding: 10px;
}

.carousel-control-next,
.carousel-control-prev {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4%;
    padding: 0;
    color: #fff;
    text-align: center;
    border: 0;
    transition: opacity .15sease;
}

.carousel-indicators {
    margin-bottom: -1rem;
}

.carousel-indicators > li {
    list-style-type: none;
}

.carousel-tab-card {
    margin-top: 10rem;
}

.carousel-tab-card > a > img {
    border-radius: 2rem;
    margin-top: -10rem;
    padding: 10px;
    width: 100%;
    height: auto;
}

.card-body > a > p {
    color: #0a0c31;
}

.card-body > a > span > svg {
    width: 10px;
}

.card-body > a > span {
    color: #feaf2d;
}

.carousel-indicators [data-bs-target] {
    background-color: #0a0c31;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    bottom: 0;
}

.category-regal .article img {
    border-radius: 2rem;
    margin-top: 1rem;
}

/* END Carousel */

/* Carousel minimal */
.carousel-target-minimal {
}


.carousel-target-minimal li {
    background-color: #ffffff !important;
}

.carousel-card {
    padding: 1rem;
    border-radius: 1rem;
}

.carousel-card > a > img {
}

.dital-carosel-card {
    background-color: #F5F7FB;
    border-radius: 1rem;
}

.dital-carosel-card > a {
    font-size: 12px;
    color: #626262;
    position: relative;
    padding-right: 10px;

}

.dital-carosel-card > a:hover {
    color: #feaf2d;

}

.dital-carosel-card > a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #feaf2d;
    border-radius: 50%;

}

.dital-carosel-card > span > svg {
    width: 13px;
    color: #feaf2d;
}

.dital-carosel-card > span {
    font-size: 13px;
    color: #626262;
}

.carousel-card .card-body > h4 {
    font-size: 15px;
    font-weight: bold;
    text-align: start;
    line-height: 25px;
    color: black;
}

.carousel-card .card-body > p {
    font-size: 13px;
    font-weight: 100;
    text-align: start;
    line-height: 25px;
    color: rgb(119, 119, 119);
}

.btn-carosel-minimal {
    margin-bottom: -2rem;
}

/* END Carousel */

/* Categorty page */

/* List sub categorty */
.sub-cat-list {
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sub-cat-list a {
    color: white;

}

.sub-cat-list:hover {
    transform: translateY(-5px);
}

/* END List sub categorty */

/* post */
.boardcomp {
}

.boardcomp ul {
    width: max-content;
    border-radius: 1rem;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border: 1px solid rgb(237, 237, 237);
}

.boardcomp ul > li > a {
    color: #feaf2d;
    font-size: 12px;
}

.boardcomp ul > li > a > svg,
ul > li > span > svg {
    width: 13px;
    color: black;
}

/* comments */
.comments {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

/* END comments */
/* END post */

/*  sidebar cat */
.sidebar-cat {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 1px 7px -3px rgba(0, 0, 0, .2);
}

.sidebar-cat ul > p {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgb(221, 221, 221);
    font-size: 13px;
    position: relative;
}

.sidebar-cat ul > p::before {
    content: "";
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 10%;
    height: 5px;
    background-color: #feaf2d;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.3s ease;
    border-radius: 1rem;
}

.sidebar-cat ul:hover::before {
    transform: scaleX(1);
}

.sidebar-cat ul {
    padding: 0;
}

.sidebar-cat li {
    border-bottom: 1px solid rgb(221, 221, 221);
}

.sidebar-cat li > a {
    color: #555555bd;
    font-size: 13px;
}

.sidebar-cat li > a:hover {
    color: #feaf2d;
}

.sidebar-cat li:last-child {
    border-bottom: none;
    padding: 0;
    margin: 0;
}

/* END sidebar cat */
/* END  Categorty page */
footer {
    background-color: #0a0c31;
    color: rgba(255, 255, 255, .7);
}

footer p {
    color: white;
    text-align: justify;
    font-size: 15px;
    margin: 0;
    padding: 0;
}

footer a {
    color: #E2E8F0;
}

footer ul li {
    list-style: none;
    color: white;
    line-height: 1.7rem;
}

.footer-logo {
    background-color: white;
    border-radius: 10px;
    width: 50%;
}


/* advertising */
/* advertising */
.advertising-info {
    background-color: #0a0c31;
}

.advertising-info>div>div>h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.advertising-info>div>div>p {
    color: #cecece;
    font-size: 1rem;
    font-weight: 600;
}

.advertising-info>div>div>p:last-child {
    color: #f76e18;
    font-size: 1.5rem;
    font-weight: 800;
}

.advertising-info-button>div>div>a {
    text-decoration: none;
    background-color: #f76e18;
}

.advertising-info-button>div>div>a>p {
    color: white;
    font-size: 1rem;
}

.advertising-plan>div>div>h2 {
    font-size: 1.8rem;
    font-weight: 900;
    border-bottom: solid 3px black;
}

.box-advertising {
    border: 1px solid black;
}

.box-advertising>img {
    width: 90%;
}

.box-advertising>h3 {
    font-size: 1.5rem;
    font-weight: 900;
}

.box-advertising>p {
    font-size: 1rem;
    color: #f76e18;
}

.advertising-plan-internal-page {
    background-color: #1C244B;
}

.advertising-plan-internal-page>div>div>h2 {
    color: #F8F812;
    font-size: 1.8rem;
    font-weight: 900;
    border-bottom: 3px solid white;
}

.card-plans {
    background-color: #0a0c31;
    border: #F8F812 solid 3px;
    border-radius: 1rem;
}

.card-plans>h3 {
    color: #fff;
    font-size: 1.3rem;
}

.card-plans>p {
    color: #fff;
    font-size: 0.9rem;
}

.card-plans>div>p {
    color: #fff;
    font-size: 0.9rem;
}

.card-plans>div>span>svg {
    color: #fff;
    width: 1rem;
}

.social-advertising-plan {
    border: 1px solid black;
    border-radius: 1rem;
    padding: 1rem;
}

.social-advertising-plan>img {
    width: 80%;
    max-width: 200px;
}

.social-advertising-plan>p {
    font-size: 1.2rem;
    font-weight: 700;
}

.social-advertising-plan>span {
    font-size: 1rem;
    font-weight: 600;
    color: #616162;
}

.list-page-advertising {
    background-color: #E6E9FF;
    padding: 1rem 0;
}

.list-page-advertising>ul>li {
    border-left: 1px solid black;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem;
}

.list-page-advertising>ul>li:last-child {
    border-left: none;
}

/* Media Queries for responsive design */
@media (min-width: 576px) {
    .advertising-info>div>div>h2 {
        font-size: 2.5rem;
    }

    .advertising-info>div>div>p {
        font-size: 1.2rem;
    }

    .advertising-info>div>div>p:last-child {
        font-size: 1.8rem;
    }

    .advertising-info-button>div>div>a>p {
        font-size: 1.1rem;
    }

    .advertising-plan>div>div>h2 {
        font-size: 2.2rem;
    }

    .box-advertising>h3 {
        font-size: 1.8rem;
    }

    .box-advertising>p {
        font-size: 1.1rem;
    }

    .advertising-plan-internal-page>div>div>h2 {
        font-size: 2.2rem;
    }

    .card-plans>h3 {
        font-size: 1.5rem;
    }

    .card-plans>p,
    .card-plans>div>p {
        font-size: 1rem;
    }

    .social-advertising-plan>p {
        font-size: 1.4rem;
    }

    .social-advertising-plan>span {
        font-size: 1.1rem;
    }

    .list-page-advertising>ul>li {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

@media (min-width: 768px) {
    .advertising-info>div>div>h2 {
        font-size: 3rem;
    }

    .advertising-info>div>div>p {
        font-size: 1.3rem;
    }

    .advertising-info>div>div>p:last-child {
        font-size: 2rem;
    }

    .advertising-info-button>div>div>a>p {
        font-size: 1.2rem;
    }

    .box-advertising>h3 {
        font-size: 2rem;
    }

    .card-plans>h3 {
        font-size: 1.7rem;
    }

    .social-advertising-plan>p {
        font-size: 1.6rem;
    }
}

@media (min-width: 992px) {
    .advertising-info>div>div>h2 {
        font-size: 4rem;
    }

    .advertising-info>div>div>p {
        font-size: 1.4rem;
    }

    .advertising-info>div>div>p:last-child {
        font-size: 2.4rem;
    }

    .advertising-plan>div>div>h2 {
        font-size: 3rem;
    }

    .box-advertising>h3 {
        font-size: 2.2rem;
    }

    .box-advertising>p {
        font-size: 1.2rem;
    }

    .advertising-plan-internal-page>div>div>h2 {
        font-size: 3rem;
    }

    .card-plans>h3 {
        font-size: 1.8rem;
    }

    .card-plans>p,
    .card-plans>div>p {
        font-size: 1.1rem;
    }

    .social-advertising-plan>p {
        font-size: 2rem;
    }

    .list-page-advertising>ul>li {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

@media (min-width: 1200px) {
    .box-advertising>h3 {
        font-size: 2.5rem;
    }
}

/* END advertising */

/*  contact */
.breadcrumb-pagName {
    background-color: #0a0c31;
    color: white;
}

.breadcrumb-pagName>div>div>div>span>svg {
    width: 16px;
    color: white;
}

.breadcrumb-pagName>div>div>div>ul>li>a {
    color: white;
}

.breadcrumb-pagName>div>div>div>ul>li>span>svg {
    color: white;
}

.instagram-contact {
    background-color: #f00075;
    width: max-content;
    border-radius: 1rem;
}

.instagram-contact>div>p {
    color: white;
}

.telegram-contact {
    background-color: rgb(26, 131, 216);
    width: max-content;
    border-radius: 1rem;
}

.telegram-contact>div>p {
    color: white;
}

.youtube-contact {
    background-color: rgb(216, 26, 26);
    width: max-content;
    border-radius: 1rem;
}

.youtube-contact>div>p {
    color: white;
}

/* END  contact*/


.category-body {
    margin-top: 2rem;
    font-family: iran-yekan;
    line-height: 2rem;
    text-align: justify;
}

.category-body ul li {
    list-style: circle;
}

.category-body img{
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
}

.category-body a {
    color: #FEAF2DFF !important;
}

.category-body h1,
.category-body h2,
.category-body h3,
.category-body h4,
.category-body h5,
.category-body h6 {
    color: #FEAF2DFF !important;
    padding: 1rem 0;
    text-align: right;
}

.article-image {
    width: 100%;
    height: auto;
}

.article-body {
    font-family: iran-yekan;
    line-height: 2rem;
    text-align: justify;
}

.article-body ul li {
    list-style: circle;
}

.article-body img{
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
}

.article-body a {
    color: #FEAF2DFF !important;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #FEAF2DFF !important;
    padding: 1rem 0;
    text-align: right;
}

.toc {
    padding: 1.5rem 1rem;
    background-color: #d7d7f6;
    margin-bottom: 2rem;
    border-radius: 20px;
    border: 1px solid #c5c5f6;
}

.article-body .toc nav ul {
    display: block;
    list-style: circle inside !important;
}

.toc nav ul li {
    padding: 0;
    text-align: right;
    display: list-item;
}

.toc h4 {
    text-align: right;
    color: black !important;
}

.toc a {
    color: black !important;
}


