
/*
Theme Name:  sarad
Theme URI: https://amirhamidi.ir
Author: Amir Hamidi
Author URI: https://amirhamidi.ir
Description: یک پوسته مدرن، سبک و واکنش‌گرا برای وردپرس، طراحی‌شده با تمرکز بر عملکرد، دسترس‌پذیری و تجربه کاربری در زبان فارسی و محیط راست‌به‌چپ.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarad
Tags: rtl-language-support, custom-logo, featured-images, responsive-layout, accessibility-ready
*/

.primary-color-background {
  background-color: var(--primary-color);
}
.secondary-color-background {
  background-color: var(--secondary-color);
}
.accent-color-background {
  background-color: var(--accent-color);
}
.primary-color-text {
  color: var(--primary-color);
}
.secondary-color-text {
  color: var(--secondary-color);
}
.accent-color-text {
  color: var(--accent-color);
}
.auxiliary-color-bg{
color: var(--accent-color);
}
.auxiliary-color-text{
color: #F32028;
}

.auxiliary-color-bg-red{
background-color: #F32028;
}


.top-menu-t-bg {
 background-color:var(--accent-color);
}
.top-menu-b-bg {
 background-color: var(--primary-color);
}

@font-face {
  font-family: "IRANSansWeb_Bold";
  src: url(./fonts/iransans/IRANSansWeb_Bold.woff);
}
@font-face {
  font-family: "IRANSansWeb_Light";
  src: url(./fonts/iransans/IRANSansWeb_Light.woff);
}
@font-face {
  font-family: "IRANSansWeb_Medium";
  src: url(./fonts/iransans/IRANSansWeb_Medium.woff);
}
html {
  scroll-behavior: smooth;
  scroll-duration: 0.5s;
}

    :root {
            --paper: #efece3;
            --accent: #b13c3c;
            --live: #ff5a4e;
            --focus: #ffcf6e;
        }

   

        .site-header a {
            text-decoration: none;
        }

        .site-header *:focus-visible {
            outline: 2px solid var(--focus);
            outline-offset: 2px;
            border-radius: 6px;
        }

     
        .utility-bar {
            font-size: .75rem;
            background-color: rgba(0, 0, 0, .16);
        }

        .utility-bar a {
            color: rgba(255, 255, 255, .78);
            transition: color .15s ease;
        }

        .utility-bar a:hover {
            color: #fff;
        }

        .utility-bar .divider {
            color: rgba(255, 255, 255, .3);
        }

        /* لوگو */
        .brand img {
            height: 75x;
            width: auto;
        }

        /* منو */
        .nav-item {
            position: relative;
        }

        .nav-item>a {
            position: relative;
        }

        .nav-item>a::after {
            content: "";
            position: absolute;
            right: 7px;
            left: 7px;
            bottom: 4px;
            height: 2px;
            border-radius: 2px;
            background: var(--accent);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform .25s ease;
        }

        .nav-item:hover>a::after,
        .nav-item.libg>a::after {
            transform: scaleX(1);
        }

        .nav-item.libg>a {
            color: #fff;
            font-weight: 600;
        }

        .icon-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 999px;
            background: rgba(255, 255, 255, .1);
            color: #fff;
            flex-shrink: 0;
            transition: background .2s ease, transform .2s ease;
        }

        .icon-btn:hover {
            background: rgba(255, 255, 255, .2);
            transform: translateY(-1px);
        }

        .submenu li a,
        .mobile-nav-panel a {
            border-radius: 10px;
        }

        .mobile-nav-panel {
            box-shadow: 0 18px 34px rgba(0, 0, 0, .16);
        }

        /* ردیف اخبار داغ */
        .breaking-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: var(--live);
            display: inline-block;
            animation: breaking-pulse 1.8s infinite;
        }

        @keyframes breaking-pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 90, 78, .55);
            }

            70% {
                box-shadow: 0 0 0 8px rgba(255, 90, 78, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(255, 90, 78, 0);
            }
        }

body,
html {
  font-family: "IRANSansWeb_Light", tahoma, monospace;
  scroll-behavior: smooth;
  letter-spacing: 0;
  word-spacing: -1px;
}

.current-menu-item a {
   background-color: #0b2940;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  line-height: inherit;
  letter-spacing: 0;
  word-spacing: -1px;
}
p {
  letter-spacing: 0;
  word-spacing: -1px;
}
a {
  text-decoration: none;
}
.swiper-slide {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 30.5s ease;
}
.swiper-slide-zoom img {
  transform: scale(1.5);
}
.swiper {
  margin-left: auto;
  margin-right: auto;
}
.square-bullet-title {
  @apply relative pl-4;
}
.square-bullet-title::before {
  @apply absolute left-0 top-[0.6em];
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 3px;
  display: inline-block;
  background-color: #F32028;
  vertical-align: middle;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 23px;
  color: #F32028;
}
.page-numbers {
  padding: 4px;
}
a.page-numbers {
  padding: 4px;
  background-color: var(--primary-color);
  margin: 4px;
  color: aliceblue;
  min-width: 30px;
  max-width: 30px;
  text-align: center;
  border-radius: 5px;
}
span.page-numbers.current {
  padding: 4px;
  background-color: var(--secondary-color);
  margin: 4px;
  color: aliceblue;
  min-width: 30px;
  max-width: 30px;
  text-align: center;
  border-radius: 5px;
}
@media print {
  .no-print {
    display: none !important;
  }
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--primary-color);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2274b8;
}
.ripple-container {
  position: relative;
  width: 5px;
  height: 5px;
}
.ripple {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 1px solid #15618d8a;
  border-radius: 50%;
  animation: ripple-animation 3s ease-out infinite;
  opacity: 0;
}
.ripple:nth-child(2) {
  animation-delay: 0.5s;
}
.ripple:nth-child(3) {
  animation-delay: 1s;
}
@keyframes ripple-animation {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(10);
    opacity: 0;
  }
}
.play-video {
  content: url(./assets/play.svg);
  width: 53px;
  height: 53px;
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
}
.dropdown:hover .dropdown-menu,
.submenu:hover .submenu-menu {
  display: block;
}
.blob.white {
  background: #fff0;
  box-shadow: 0 0 0 0 #d71920;
  animation: pulse-white 2s infinite;
}
.blob {
  background: #000;
  border-radius: 100%;
  box-shadow: 0 0 0 0 rgb(0 0 0);
  margin: 10px;
  height: 30px;
  width: 30px;
  transform: scale(1);
  animation: pulse-black 2s infinite;
  position: absolute;
  top: 55px;
}
@keyframes pulse-black {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgb(0 0 0 / 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px #fff0;
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 #fff0;
  }
}
.blob.white {
  background: #fff0;
  box-shadow: 0 0 0 0 #d71920;
  animation: pulse-white 2s infinite;
}
@keyframes pulse-white {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgb(255 255 255 / 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 50px #fff0;
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 #fff0;
  }
}
.font-bold {
  font-weight: 700;
}
.box-color {
  background-color: #fbfaf9;
}
.header-bg {
  background-image: url(assets/map.png);
  background-position: center;
}
.header-bg-2 {
  background-image: url(assets/building.svg);
  background-position: initial;
  width: 165px;
  height: 147px;
  left: 30px;
  top: 10px;
}

/* */
#post_content h2 {
    font-weight: bold; /* برای بولد کردن متن */
    position: relative; /* برای قرار دادن مربع قرمز */
    padding-right: 30px; /* فضا برای مربع قرمز */
}

#post_content h2::before {
    content: ""; /* عنصر ساختگی */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px; /* عرض مربع */
    height: 18px; /* ارتفاع مربع */
    border-radius: 5px;
    background-color: var(--secondary-color); /* رنگ مربع */
}

.slider-rotitr{

}
.slider-title{

}
.slider-zirtitr{

}

/* تصاویر داخل پست ریسپانسیو */
.entry-content img,
.wp-caption img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* کادر کپشن هم ریسپانسیو بشه */
.wp-caption {
    max-width: 100% !important;
}

