    @font-face {
        font-family: "IRANSansWeb_FaNum";
        src: url("/fonts/IRANSansWeb(FaNum).eot");
        /* IE9 Compat Modes */
        src: url("/fonts/IRANSansWeb(FaNum).eot?#iefix") format("embedded-opentype"),
            /* IE6-IE8 */
            url("/fonts/IRANSansWeb(FaNum).ttf") format("truetype"),
            /* Safari, Android, iOS */
            url("/fonts/IRANSansWeb(FaNum).woff") format("woff"),
            /* Modern Browsers */
            url("/fonts/IRANSansWeb(FaNum).woff2") format("woff2");
        /* Modern Browsers */
        font-weight: normal;
        font-style: normal;
    }

    @font-face {
        font-family: "IRANSansWeb_FaNum_Light";
        src: url("/fonts/IRANSansWeb(FaNum)_Light.eot");
        /* IE9 Compat Modes */
        src: url("/fonts/IRANSansWeb(FaNum)_Light.eot?#iefix") format("embedded-opentype"),
            /* IE6-IE8 */
            url("/fonts/IRANSansWeb(FaNum)_Light.ttf") format("truetype"),
            /* Safari, Android, iOS */
            url("/fonts/IRANSansWeb(FaNum)_Light.woff") format("woff"),
            /* Modern Browsers */
            url("/fonts/IRANSansWeb(FaNum)_Light.woff2") format("woff2");
        /* Modern Browsers */
        font-weight: normal;
        font-style: normal;
    }

    @font-face {
        font-family: "IRANSansWeb_FaNum_Medium";
        src: url("/fonts/IRANSansWeb(FaNum)_Medium.eot");
        /* IE9 Compat Modes */
        src: url("/fonts/IRANSansWeb(FaNum)_Medium.eot?#iefix") format("embedded-opentype"),
            /* IE6-IE8 */
            url("/fonts/IRANSansWeb(FaNum)_Medium.ttf") format("truetype"),
            /* Safari, Android, iOS */
            url("/fonts/IRANSansWeb(FaNum)_Medium.woff") format("woff"),
            /* Modern Browsers */
            url("/fonts/IRANSansWeb(FaNum)_Medium.woff2") format("woff2");
        /* Modern Browsers */
        font-weight: normal;
        font-style: normal;
    }

    @font-face {
        font-family: "IRANSansWeb_FaNum_Bold";
        src: url("../Fonts/IRANSansWeb(FaNum)_Bold.eot");
        /* IE9 Compat Modes */
        src: url("../Fonts/IRANSansWeb(FaNum)_Bold.eot?#iefix") format("embedded-opentype"),
            /* IE6-IE8 */
            url("../Fonts/IRANSansWeb(FaNum)_Bold.ttf") format("truetype"),
            /* Safari, Android, iOS */
            url("../Fonts/IRANSansWeb(FaNum)_Bold.woff") format("woff"),
            /* Modern Browsers */
            url("../Fonts/IRANSansWeb(FaNum)_Bold.woff2") format("woff2");
        /* Modern Browsers */
        font-weight: normal;
        font-style: normal;
    }

/* Justify all text in Elementor */
.elementor-widget-container p,
.elementor-widget-container h1,
.elementor-widget-container h2,
.elementor-widget-container h3,
.elementor-widget-container h5,
.elementor-widget-container h6,
.elementor-widget-container ul,
.elementor-widget-container ol,
.elementor-widget-container li,
.elementor-text-editor p,
.elementor-text-editor h1,
.elementor-text-editor h2,
.elementor-text-editor h3,
.elementor-text-editor h4,
.elementor-text-editor h5,
.elementor-text-editor h6,
.elementor-text-editor ul,
.elementor-text-editor ol,
.elementor-text-editor li {
    text-align: justify !important;
    text-justify: inter-word !important;
}
.news-ticker {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--border-radius, 5px);
    background-color: var(--background-color, #d90000);
    position: relative;
}

.news-ticker-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--right-box-bg, #333);
    width: var(--right-box-width, 100px);
    height: 100%;
}

.news-ticker-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    margin-right: var(--space-between, 10px); /* فاصله بین باکس راست و متن */
}

.news-ticker-items {
    display: flex;
    align-items: center;
    animation: tickerRightToLeft var(--animation-duration) linear infinite;
    white-space: nowrap;
    animation-play-state: running;
}

.news-ticker-wrapper:hover .news-ticker-items {
    animation-play-state: paused;
}

/* انیمیشن‌ها */
@keyframes tickerRightToLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes tickerLeftToRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}


@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.right-text {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}
.news-ticker-wrapper {
    display: flex;
    animation: tickerRightToLeft var(--animation-duration) linear infinite;
    white-space: nowrap;
    animation-play-state: running; /* به طور پیش‌فرض در حال اجراست */
}

/* موقع هاور شدن موس روی نوشته ها */
.news-ticker-wrapper:hover {
    animation-play-state: paused;
}

/* جهت‌های مختلف */
.news-ticker-right_to_left .news-ticker-wrapper {
    animation-name: tickerRightToLeft;
}

.news-ticker-left_to_right .news-ticker-wrapper {
    animation-name: tickerLeftToRight;
}

.news-ticker-top_to_bottom .news-ticker-wrapper {
    flex-direction: column;
    animation-name: tickerTopToBottom;
}

.news-ticker-bottom_to_top .news-ticker-wrapper {
    flex-direction: column;
    animation-name: tickerBottomToTop;
}

/* انیمیشن ها */
@keyframes tickerRightToLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes tickerLeftToRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes tickerTopToBottom {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes tickerBottomToTop {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}
/* استایل باکس خبری */
.news-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* استایل عنوان */
.news-box-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

/* استایل لینک آرشیو */
.archive-link {
    text-align: center;
    margin-bottom: 20px;
}

.archive-link a {
    font-size: 18px;
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

.archive-link a:hover {
    text-decoration: underline;
}

/* استایل استایل 1 برای لینک آرشیو */
.archive-link.style1 a {
    font-size: 18px;
    color: #ff5722;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* استایل استایل 2 برای لینک آرشیو */
.archive-link.style2 a {
    font-size: 18px;
    color: #4caf50;
    background-color: #f1f1f1;
    padding: 8px 16px;
    border-radius: 5px;
    display: inline-block;
}

.archive-link.style2 a:hover {
    background-color: #388e3c;
}
/* خبر اصلی */
.main-news {
    display: flex;
    flex-direction: column;
}

.main-news-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.main-news-content {
    padding: 15px 0;
}

.main-news-title {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.main-news-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.main-news-lead {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* اخبار کوچک */
.related-news {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-news-item:hover {
    transform: translateY(-5px);
}

.related-news-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-news-content {
    padding: 10px;
}

.related-news-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.related-news-lead {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .related-news {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .related-news {
        grid-template-columns: 1fr;
    }
}
/*باکس یادداشت */
.widget-daily-notes {
    font-family: 'IranSans', sans-serif;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--box-background-color, #fafafa);
}

.daily-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.daily-notes-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.archive-link {
    font-size: 14px;
    background: #0073aa;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.archive-link:hover {
    background: #005f8d;
}

.daily-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.daily-note-item {
    text-align: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.daily-note-item:hover {
    transform: translateY(-5px);
}

.note-thumb {
    margin-bottom: 10px;
}

.note-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.note-title {
    margin: 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.note-meta {
    font-size: 13px;
    color: #777;
}

.note-meta .date,
.note-meta .author,
.note-meta .comments {
    display: block;
    margin: 5px 0;
}

.note-meta .comments {
    color: #0073aa;
}

@media screen and (max-width: 768px) {
    .daily-notes-header h2 {
        font-size: 20px;
    }

    .archive-link {
        font-size: 12px;
        padding: 4px 8px;
    }

    .daily-note-item {
        padding: 12px;
    }

    .note-title {
        font-size: 14px;
    }

    .note-meta {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .daily-notes-header h2 {
        font-size: 18px;
    }

    .archive-link {
        font-size: 10px;
        padding: 3px 6px;
    }

    .daily-note-item {
        padding: 10px;
    }

    .note-title {
        font-size: 12px;
    }

    .note-meta {
        font-size: 10px;
    }
}
.widget-daily-notes .note-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.widget-daily-notes .note-thumb img[data-shape="circle"] {
    border-radius: 50%;
}

.widget-daily-notes .note-thumb img[data-shape="square"] {
    border-radius: 0;
}
/*بخش داغ*/
.widget-hot-news {
    background-color: #fafafa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.hot-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.hot-news-header h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.hot-news-header a {
    font-size: 14px;
    background-color: #0073aa;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
}

.hot-news-header a:hover {
    background-color: #005f8f;
}

.hot-news-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hot-news-image {
    flex: 1;
    max-width: 30%;
    margin-right: 20px;
}

.hot-news-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.hot-news-image h4 {
    margin-top: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.hot-news-list {
    flex: 2;
    max-width: 65%;
}

.hot-news-list ul {
    list-style: none;
    padding: 0;
}

.hot-news-list li {
    margin-bottom: 10px;
}

.hot-news-list a {
    font-size: 16px;
    color: #0073aa;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.hot-news-list a:hover {
    color: #005f8f;
    border-bottom: 2px solid #005f8f;
}
.news-tabs-widget {
    padding: 20px;
    border-radius: 10px;
}

.news-tabs-nav {
    display: flex;
    gap: 20px;
    list-style: none;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 0;
}

.news-tabs-nav li {
    font-weight: bold;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.news-tabs-nav li.active {
    border-bottom: 2px solid #2967ca;
    color: #2967ca;
}

.news-tab-content {
    display: none;
}

.news-tab-content.active {
    display: block;
}

.news-tab-content ul {
    padding: 0;
    list-style: none;
}

.news-tab-content li {
    margin-bottom: 10px;
}

.news-tab-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.news-tab-content a:hover span::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 2px;
    width: 100%;
    background-color: #2967ca;
    transition: width 0.3s ease;
}

.news-tab-content a .thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}
/* استایل ویجت تب‌بندی ایسنا */
.custom-tabs {
  font-family: inherit;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  direction: rtl;
}

.tabs-widget-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
  color: #333;
}

.tab-titles {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 20px;
  background: #f4f4f4;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.tab:hover {
  background: #ddd;
}

.tab.active {
  background: #0073aa;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.isna-tab-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.isna-featured {
  flex: 1 1 calc(50% - 10px);
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.isna-featured a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 10px;
}

.isna-featured img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
  object-fit: cover;
}

.isna-featured h4 {
  font-size: 16px;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #222;
}

.isna-featured p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.isna-text {
  flex: 1 1 100%;
  border-top: 1px dashed #ccc;
  margin-top: 10px;
  padding-top: 10px;
}

.isna-text a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.isna-text a:hover {
  color: #0073aa;
}
/*اسلایدر شماره دار */
.numbered-slider {
    direction: rtl; /* برای فارسی */
    font-family: inherit;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.numbered-slider .slide {
    display: none;
    margin-bottom: 30px;
    position: relative;
}

.slider-nav {
    text-align: center;
    margin-top: 15px;
}

.slider-nav-item {
    display: inline-block;
    margin: 0 6px;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 6px;
    background-color: #eee;
    transition: all 0.3s ease;
}

.slider-nav-item.active {
    color: white;
    background-color: #d00;
    border-bottom: 2px solid #a00;
}

.slide-img-wrapper {
    float: right;
    margin-left: 20px;
    width: 120px;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.slide-img {
    width: 100%;
    height: auto;
    display: block;
}

.slide h3 {
    margin-bottom: 10px;
    font-weight: bold;
}

.slide p {
    margin-top: 0;
    color: #333;
}

/* خط زیر عنوان */
.custom-separator {
    position: relative;
    height: 2px;
    background-color: #ddd;
    margin: 20px 0;
    clear: both;
    z-index: 1;
}

/* تصویر بیفته روی خط */
.slide-img-wrapper {
    margin-top: -30px;
}

.widget-title-separator {
    width: 100%;
    height: 2px;
    background-color: #333;
    margin: 20px 0 30px;
}

.post-title-separator {
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin: 15px 0;
}
/*اخبار نوبری */
.featured-news-box {
  background-color: #fff;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 8px;
  direction: rtl;
  font-family: 'IRANSans', sans-serif;
}

.featured-news-box .widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.featured-news-box .widget-header h2 {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  margin: 0;
}

.featured-news-box .archive-link {
  font-size: 14px;
  color: #ed1c24;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-news-box .archive-link:hover {
  color: #af1018;
}

.featured-news-box .news-box-item {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 15px;
}

.featured-news-box .news-box-image img {
  width: 130px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.featured-news-box .news-box-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.6;
  color: #333;
  margin: 0 0 8px;
}

.featured-news-box .news-box-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-news-box .news-box-title a:hover {
  color: #ed1c24;
}

.featured-news-box .news-box-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.featured-news-box .news-box-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}
/*باکس لید و تصویر نوبر */
.naz-news-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.naz-widget-header {
    text-align: center;
    width: 100%;
}

.naz-news-box-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.naz-archive-link {
    font-size: 16px;
    color: #0073e6;
}

.naz-news-box-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

.naz-news-box-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.naz-news-box-image-large {
    width: 100%;
    position: relative;
    margin-bottom: 15px;
}

.naz-news-box-image-large a {
    position: relative;
}

.naz-news-box-image-large img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.naz-news-box-image-large .naz-news-box-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.naz-news-box-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.naz-news-box-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.naz-news-box-excerpt {
    font-size: 14px;
    color: #555;
}

.naz-news-box-subheadline {
    font-size: 16px;
    color: #999;
    margin-bottom: 10px;
}

.naz-news-box-item a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .naz-news-box-container {
        flex-direction: column;
    }

    .naz-news-box-image-large {
        width: 100%;
        height: 200px;
    }
}
/* روز شمار */
.countdown-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
}

.countdown-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.countdown-thumbnail {
    flex: 0 0 80px;
}

.countdown-thumbnail img {
    max-width: 100%;
    border-radius: 5px;
}

.countdown-text {
    flex: 1;
}

.countdown-text h4 {
    font-size: 18px;
    margin: 0 0 10px;
}

.countdown-text p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.countdown-publish-date {
    color: #888;
}

.countdown-due-date {
    font-weight: bold;
    color: #e74c3c;
}
/*اخبار هات */
.hot-news-ranking {
  margin: 20px 0;
  font-family: 'IRANSans';
  direction: rtl;
}

.hot-item {
  margin-bottom: 15px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
}

.hot-item h4 {
  margin: 0 0 5px 0;
  font-size: 15px;
}

.progress-bar {
  height: 6px;
  background: #ff4b2b;
  border-radius: 3px;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

.count {
  font-size: 12px;
  color: #555;
}
/*پربازدید */
.hot-news-box {
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
}
.hot-news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
}
.hot-news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.tab-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: #eee;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.tab-btn.active {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.hot-news-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hot-news-box ul li {
    margin-bottom: 10px;
    line-height: 1.5;
}
.hot-news-box ul li a {
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}
.hot-news-box ul li a:hover {
    color: #0073aa;
}
/*گالری عکس */
.gallery-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.gallery-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    align-items: stretch; /* برای جلوگیری از تغییر ارتفاع */
}

.gallery-slide {
    flex: 0 0 auto;
    width: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #fff;
    display: flex; /* از flex برای پرکردن فضای عمودی استفاده می‌کنیم */
    justify-content: center; /* برای تراز کردن تصویر */
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تصاویر را به‌طور مناسب در فضای خود قرار می‌دهیم */
    display: block;
    transition: transform 0.3s ease;
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: bold;
}

/* دکمه‌های قبلی و بعدی اسلایدر */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.gallery-prev { left: 0; }
.gallery-next { right: 0; }

.gallery-prev:hover,
.gallery-next:hover {
    background: #005a8c;
}

/* رسپانسیو برای موبایل و تبلت */

/* موبایل */
@media (max-width: 767px) {
    .gallery-carousel {
        flex-direction: row;
        gap: 10px;
        padding: 0 10px;
        overflow-x: scroll; /* اضافه کردن اسکرول افقی */
    }

    .gallery-slide {
        width: 150px; /* کوچک‌تر کردن سایز تصاویر */
        height: 150px; /* تنظیم ارتفاع تصاویر */
        margin-bottom: 10px;
    }

    .gallery-prev, .gallery-next {
        padding: 6px 10px;
        font-size: 18px;
    }

    /* حذف سایه در موبایل */
    .gallery-slide {
        box-shadow: none;
    }
}

/* تبلت */
@media (min-width: 768px) and (max-width: 1024px) {
    .gallery-carousel {
        flex-direction: row;
        gap: 15px;
        padding: 0 20px;
        overflow-x: scroll; /* اضافه کردن اسکرول افقی */
    }

    .gallery-slide {
        width: 180px; /* سایز تصویر در تبلت */
        height: 180px; /* تنظیم ارتفاع تصویر */
    }

    .gallery-prev, .gallery-next {
        padding: 8px 12px;
        font-size: 20px;
    }
}

/* دسکتاپ */
@media (min-width: 1025px) {
    .gallery-carousel {
        flex-direction: row;
        gap: 20px;
        padding: 0 40px;
    }

    .gallery-slide {
        width: 220px;
        height: 220px; /* تنظیم ارتفاع تصویر */
    }

    .gallery-prev, .gallery-next {
        padding: 10px 15px;
        font-size: 22px;
    }
}
/*تیکر 2 */

.news-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.news-ticker {
    display: flex;
    animation: scroll-left linear infinite;
}.news-ticker-separator {
    margin: 0 10px;
    color: #fff;
    font-weight: bold;
}
.news-ticker-item {
    display: inline-block;
}
.news-ticker-wrapper {
    display: flex;
    align-items: center;
}


.news-ticker ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.news-ticker li {
    margin-right: 50px;
    padding: 0 10px;
}

.news-ticker a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.news-ticker a:hover {
    color: #005a8c;
}

/* انیمیشن حرکت به چپ */
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* انیمیشن حرکت به راست */
@keyframes scroll-right {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* انیمیشن حرکت به بالا */
@keyframes scroll-up {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* انیمیشن حرکت به پایین */
@keyframes scroll-down {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.scroll-left {
    animation: scroll-left linear infinite;
}

.scroll-right {
    animation: scroll-right linear infinite;
}

.scroll-up {
    animation: scroll-up linear infinite;
}

.scroll-down {
    animation: scroll-down linear infinite;
}

.read-more-btn a {
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
}

.read-more-btn a:hover {
    background-color: #005a8c;
}

/* استایل رسپانسیو */
@media screen and (max-width: 768px) {
    .news-ticker-wrapper {
        padding: 5px 0;
    }

    .news-ticker {
        font-size: 14px;
    }

    .news-ticker ul {
        gap: 20px;
    }
}
.news-ticker-separator {
    margin: 0 10px;
    color: #fff;
    font-weight: bold;
}
.news-ticker-item {
    display: inline-block;
}
.news-ticker-wrapper {
    display: flex;
    align-items: center;
}
.news-ticker-separator i {
    font-size: 20px;  /* اندازه آیکن */
    color: #fff;      /* رنگ آیکن */
    margin: 0 10px;   /* فاصله بین آیکن و متن */
}
/*خبرهای مرتبط */
.related-posts-widget {
    margin-top: 30px;
}

.related-title {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.related-post-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    transition: box-shadow 0.3s;
}

.related-post-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.related-post-card .thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.related-post-info {
    padding: 10px;
}

.related-post-info .title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.related-post-info .title:hover {
    color: #0073aa;
}

.related-post-info .meta {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}
/* اشتراک خبر */
/* فایل: assets/css/share-buttons.css */
/* استایل پایه برای ویجت */
.elementor-widget-post_share_buttons .share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* حالت عمودی */
.elementor-widget-post_share_buttons .share-buttons.vertical {
  flex-direction: column;
}

/* حالت شناور پایه */
.elementor-widget-post_share_buttons .share-buttons.floating {
  position: fixed;
  z-index: 9999;
  flex-direction: column;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* موقعیت چپ برای حالت شناور */
.elementor-widget-post_share_buttons .share-buttons.floating.left {
  left: 20px;
}

/* موقعیت راست برای حالت شناور */
.elementor-widget-post_share_buttons .share-buttons.floating.right {
  right: 20px;
}

/* استایل دکمه‌ها */
.elementor-widget-post_share_buttons .share-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  color: #fff;
  background-color: #3a3a3a;
}

/* استایل هاور دکمه‌ها */
.elementor-widget-post_share_buttons .share-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* استایل آیکون‌ها */
.elementor-widget-post_share_buttons .share-buttons a i {
  margin-left: 8px;
  font-size: 18px;
}

/* استایل متن دکمه */
.elementor-widget-post_share_buttons .share-buttons a span {
  font-size: 14px;
  font-weight: 500;
}

/* استایل‌های خاص برای هر شبکه اجتماعی */
.elementor-widget-post_share_buttons .share-buttons a.telegram {
  background-color: #0088cc;
}

.elementor-widget-post_share_buttons .share-buttons a.whatsapp {
  background-color: #25D366;
}

.elementor-widget-post_share_buttons .share-buttons a.twitter {
  background-color: #1DA1F2;
}

.elementor-widget-post_share_buttons .share-buttons a.linkedin {
  background-color: #0077B5;
}

.elementor-widget-post_share_buttons .share-buttons a.facebook {
  background-color: #4267B2;
}

.elementor-widget-post_share_buttons .share-buttons a.pinterest {
  background-color: #E60023;
}

.elementor-widget-post_share_buttons .share-buttons a.email {
  background-color: #EA4335;
}

/* استایل دکمه چاپ */
.elementor-widget-post_share_buttons .share-buttons a.print-button {
  background-color: #6c757d;
}

/* استایل دکمه کپی لینک */
.elementor-widget-post_share_buttons .share-buttons a.shortlink-button {
  background-color: #6f42c1;
}

/* رسپانسیو برای موبایل */
@media (max-width: 767px) {
  .elementor-widget-post_share_buttons .share-buttons.floating {
    position: static;
    flex-direction: row;
    transform: none;
    top: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 15px 0;
  }
  /* جلوگیری از نمایش آیکون‌های تکراری */
  .elementor-widget-post_share_buttons .share-buttons a:before,
  .elementor-widget-post_share_buttons .share-buttons a:after {
      display: none !important;
  }

  .elementor-widget-post_share_buttons .share-buttons a i {
      margin-left: 0;
      margin-right: 8px;
  }

  /* اگر از آیکون‌های المنتور استفاده می‌کنید */
  .elementor-widget-post_share_buttons .share-buttons a .elementor-icon {
      display: none;
  }
  .elementor-widget-post_share_buttons .share-buttons {
    justify-content: center;
  }
}
/*رنگ آیکن دسته بندی */
/* تغییر رنگ آیکن‌ها در دسته‌بندی اختصاصی */
.elementor-widget-news-assistant .elementor-icon {
    color: #8A2BE2; /* رنگ بنفش */
}

/* برای حالت هاور (hover) */
.elementor-widget-news-assistant .elementor-icon:hover {
    color: #6A0DAD; /* رنگ بنفش تیره‌تر در هاور */
}
.share-button {
       display: flex !important;
       align-items: center !important;
       justify-content: center !important;
       text-align: center !important;
   }
   .share-button i {
       line-height: 1 !important;
       width: 100% !important;
       height: 100% !important;
       display: flex !important;
       align-items: center !important;
       justify-content: center !important;
   }
   /* در فایل CSS پلاگین */
   .elementor-widget-post_share_buttons .share-button {
       display: flex !important;
       align-items: center !important;
       justify-content: center !important;
       text-align: center !important;
   }

   .elementor-widget-post_share_buttons .share-button i {
       line-height: 1 !important;
       width: 100% !important;
       height: 100% !important;
       display: flex !important;
       align-items: center !important;
       justify-content: center !important;
   }

       /* استایل مخصوص چاپ برای المنتور */
       @media print {


           /* نمایش فقط محتوای اصلی */
           .elementor-page .elementor-element.elementor-post-content,
           .elementor-page .elementor-widget-theme-post-content,
           .elementor-page .elementor-widget-container > article,
           .elementor-page .elementor-inner-section .elementor-container {
               visibility: visible !important;
               display: block !important;
               width: 100% !important;
               max-width: 100% !important;
               margin: 0 !important;
               padding: 0 !important;
               position: absolute !important;
               left: 0 !important;
               top: 0 !important;
               background: white !important;
               color: black !important;
           }

           /* مخفی کردن هدر و فوتر المنتور */
           .elementor-location-header,
           .elementor-location-footer,
           .elementor-top-section,
           .elementor-section.elementor-section-boxed > .elementor-container,.custom-comments,.related-posts-widget,
           .elementor-widget-container .elementor-heading-title,
           footer.elementor-footer,
           header.elementor-header {
               display: none !important;
               visibility: hidden !important;
               height: 0 !important;
               padding: 0 !important;
               margin: 0 !important;
           }

           /* مخفی کردن ویجت‌های اشتراک‌گذاری */
           .elementor-widget-post_share_buttons {
               display: none !important;
           }

           /* بهینه‌سازی متن‌ها */
           .elementor-page .elementor-element p,
           .elementor-page .elementor-element h1,
           .elementor-page .elementor-element h2,
           .elementor-page .elementor-element h3 {
               color: #000 !important;
               background: none !important;
           }

           /* جلوگیری از قطع شدن عناصر */
           .elementor-page .elementor-column {
               page-break-inside: avoid !important;
           }
       }
/*آرشیو */
.archive-posts-widget {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.archive-post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.archive-post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.archive-post-thumb img {
    width: 100%;
    display: block;
}

.archive-post-content {
    padding: 16px;
}

.archive-post-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.archive-post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.excerpt {
    font-size: 14px;
    color: #555;
}
.archive-post-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.professional-news-slider-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.professional-news-slider-container body {
    background-color: #f5f5f5;
    padding: 20px;
}

.professional-news-slider-container .container {
    max-width: 1200px;
    margin: 0 auto;
}

.professional-news-slider-container .news-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-bottom: 30px;
}

.professional-news-slider-container .news-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.professional-news-slider-container .news-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .professional-news-slider-container .news-slide {
        flex-direction: row;
    }
}

.professional-news-slider-container .news-image {
    position: relative;
    overflow: hidden;
}

.professional-news-slider-container .news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e11d48;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

.professional-news-slider-container .news-date {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.professional-news-slider-container .news-date svg {
    margin-left: 5px;
}

.professional-news-slider-container .news-title {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #1e293b;
}

.professional-news-slider-container .news-excerpt {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 15px;
}

.professional-news-slider-container .news-read-more {
    display: inline-flex;
    align-items: center;
    color: #0284c7;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.professional-news-slider-container .news-read-more:hover {
    color: #0369a1;
}

.professional-news-slider-container .news-read-more svg {
    margin-right: 5px;
    transition: transform 0.2s ease;
}

.professional-news-slider-container .news-read-more:hover svg {
    transform: translateX(-3px);
}

.professional-news-slider-container .slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
}

.professional-news-slider-container .slider-dots {
    display: flex;
    gap: 8px;
}

.professional-news-slider-container .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.professional-news-slider-container .slider-dot.active {
    background-color: #0284c7;
    transform: scale(1.3);
}

.professional-news-slider-container .slider-arrows {
    display: flex;
    gap: 10px;
}

.professional-news-slider-container .slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.professional-news-slider-container .slider-arrow:hover {
    background-color: #e2e8f0;
}

.professional-news-slider-container .slider-arrow svg {
    width: 20px;
    height: 20px;
    color: #64748b;
}

.professional-news-slider-container .news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}

.professional-news-slider-container .news-author {
    display: flex;
    align-items: center;
}

.professional-news-slider-container .news-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: 8px;
}

.professional-news-slider-container .news-stats {
    display: flex;
    gap: 15px;
}

.professional-news-slider-container .news-stat {
    display: flex;
    align-items: center;
}

.professional-news-slider-container .news-stat svg {
    margin-left: 5px;
    width: 16px;
    height: 16px;
}

.professional-news-slider-container .latest-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.professional-news-slider-container .latest-news-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.professional-news-slider-container .latest-news-title svg {
    margin-left: 8px;
    color: #e11d48;
}

.professional-news-slider-container .latest-news-tabs {
    display: flex;
    gap: 15px;
}

.professional-news-slider-container .latest-news-tab {
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.professional-news-slider-container .latest-news-tab.active {
    color: #0284c7;
    border-bottom: 2px solid #0284c7;
    font-weight: 500;
}

.professional-news-slider-container .latest-news-tab:hover:not(.active) {
    color: #334155;
}

.professional-news-slider-container .breaking-news {
    background-color: #fef2f2;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    margin-bottom: 20px;
}

.professional-news-slider-container .breaking-news-label {
    background-color: #e11d48;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    margin-left: 15px;
    white-space: nowrap;
}

.professional-news-slider-container .breaking-news-content {
    overflow: hidden;
    white-space: nowrap;
}

.professional-news-slider-container .breaking-news-items {
    display: inline-block;
    animation: scrollText 20s linear infinite;
    white-space: nowrap;
}

.professional-news-slider-container .breaking-news-item {
    display: inline-block;
    margin-left: 30px;
    color: #991b1b;
    font-weight: 500;
    text-decoration: none;
}

.professional-news-slider-container .breaking-news-item:last-child {
    margin-left: 0;
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
/* استایل اصلی اسلایدر */
.harika-video-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    font-family: 'Yekan', 'Tanha', 'IRANSans', sans-serif;
    direction: rtl;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.harika-video-slide {
    position: relative;
    transition: all 0.3s ease;
}

/* استایل کانتینر ویدیو */
.harika-video-container {
    position: relative;
    padding-bottom: 56.25%; /* نسبت 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

/* استایل iframe ویدیو */
.harika-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* استایل بخش اطلاعات ویدیو */
.harika-video-info {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.harika-video-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.5;
}

.harika-video-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #777;
}

.harika-video-date {
    margin-left: 15px;
}

.harika-video-views {
    display: flex;
    align-items: center;
}

.harika-video-views i {
    margin-left: 5px;
}

/* استایل ناوبری اسلایدر */
.harika-slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
}

.harika-slider-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin: 0 15px;
}

.harika-slider-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* استایل نقاط راهنما */
.harika-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 2;
}

.harika-slider-dots li {
    margin: 0 5px;
}

.harika-slider-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.harika-slider-dots li.slick-active button {
    background: #fff;
    transform: scale(1.2);
}

/* استایل ریسپانسیو */
@media (max-width: 768px) {
    .harika-video-title {
        font-size: 16px;
    }

    .harika-slider-nav button {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }
}
/* استایل اصلی */
.avg-video-gallery {
    direction: rtl;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

/* ویدیوی اصلی */
.avg-main-video {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.avg-main-video iframe,
.avg-main-video video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* نسبت‌های تصویر */
.avg-ratio-16by9 {
    padding-bottom: 56.25%; /* 16:9 */
}

.avg-ratio-4by3 {
    padding-bottom: 75%; /* 4:3 */
}

.avg-ratio-1by1 {
    padding-bottom: 100%; /* 1:1 */
}

.avg-ratio-16by9,
.avg-ratio-4by3,
.avg-ratio-1by1 {
    position: relative;
    height: 0;
    overflow: hidden;
}

.avg-ratio-16by9 iframe,
.avg-ratio-4by3 iframe,
.avg-ratio-1by1 iframe,
.avg-ratio-16by9 video,
.avg-ratio-4by3 video,
.avg-ratio-1by1 video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* گالری ویدیوها */
.avg-gallery-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.avg-gallery-item {
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.avg-gallery-item:hover {
    transform: translateY(-5px);
}

.avg-gallery-video {
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.avg-gallery-video img,
.avg-gallery-video video {
    width: 100%;
    height: auto;
    display: block;
}

.avg-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.avg-video-title {
    font-size: 14px;
    margin: 10px 0 0;
    line-height: 1.4;
    text-align: right;
    padding: 0 5px;
    color: #333;
}

/* ستون‌بندی */
.avg-columns-2 .avg-gallery-item {
    width: 50%;
}

.avg-columns-3 .avg-gallery-item {
    width: 33.333%;
}

.avg-columns-4 .avg-gallery-item {
    width: 25%;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .avg-columns-4 .avg-gallery-item {
        width: 33.333%;
    }
}

@media (max-width: 768px) {
    .avg-columns-3 .avg-gallery-item,
    .avg-columns-4 .avg-gallery-item {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .avg-gallery-item {
        width: 100% !important;
    }
}
.tags-badge-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
}

.tags-horizontal {
    flex-direction: row;
}

.tags-vertical {
    flex-direction: column;
}

.tag-badge {
    padding: 6px 12px;
    font-size: 0.95rem;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tag-badge:hover {
    background-color: #e0e0e0;
    color: #000;
}

.tags-widget-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}
.tags-badge-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
}

.tags-horizontal {
    flex-direction: row;
}

.tags-vertical {
    flex-direction: column;
}

.tag-badge, .tag-badge-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tags-widget-title {
    font-weight: bold;
    margin-bottom: 10px;
}
/* استایل اصلی */
.avg-video-gallery {
    direction: rtl;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* هدر بخش */
.avg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.avg-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.avg-archive-link {
    text-decoration: none;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.avg-archive-link:hover {
    color: #d62a2a;
}

.avg-archive-link i {
    margin-left: 5px;
}

/* محتوای اصلی */
.avg-content {
    display: flex;
    gap: 20px;
}

/* ستون ویدیوی اصلی */
.avg-main-col {
    flex: 1;
}

.avg-main-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* نسبت 16:9 */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.avg-main-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ستون گالری ویدیوها */
.avg-gallery-col {
    width: 205px;
    display: flex;
    flex-direction: column;
}

.avg-gallery-item {
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avg-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.avg-gallery-item.active {
    border: 2px solid #d62a2a;
}

.avg-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* نسبت 16:9 */
    overflow: hidden;
}

.avg-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avg-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avg-video-title {
    margin: 0;
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    text-align: right;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .avg-content {
        flex-direction: column;
    }

    .avg-gallery-col {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .avg-gallery-item {
        width: calc(50% - 8px);
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .avg-gallery-item {
        width: 100%;
    }

    .avg-section-title {
        font-size: 18px;
    }
}
.harika-news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.harika-news-item {
  display: flex;
  gap: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  transition: 0.3s ease;
}
.harika-news-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.harika-thumb {
  width: 150px;
  min-height: 100px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.harika-content {
  flex-grow: 1;
}
.harika-content .title {
  font-size: 18px;
  margin: 0 0 5px;
}
.harika-content .title a {
  text-decoration: none;
  color: #333;
}
.harika-content .lead {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}
.meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999;
}
.meta i {
  margin-left: 4px;
}
.meta .cat {
  background: #0073aa;
  color: #fff;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 11px;
}
.harika-news-widget-title {
  font-size: 22px;
  margin-bottom: 20px;
}
.harika-news-loadmore {
  text-align: center;
  margin-top: 15px;
}
.harika-news-loadmore button {
  padding: 10px 25px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.harika-news-loadmore button:hover {
  background: #005c8e;
}
@media(max-width: 768px) {
  .harika-news-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .harika-thumb {
    width: 100%;
    height: 180px;
  }
}
/* فایل استایل ویجت آخرین اخبار حرفه‌ای */

.harika-news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 30px;
}

.harika-news-item {
  display: flex;
  flex-direction: row;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.harika-news-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.harika-thumb {
  width: 35%;
  background-size: cover;
  background-position: center;
  min-height: 200px;
}

.harika-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.harika-content .meta.cat {
  display: inline-block;
  background: #0073aa;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.harika-content .title {
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.4;
}

.harika-content .title a {
  color: #222;
  text-decoration: none;
}

.harika-content .lead {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.harika-content .meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 15px;
  align-items: center;
}

.harika-content .meta i {
  margin-left: 4px;
  vertical-align: middle;
}

.harika-news-pagination {
  text-align: center;
  margin-top: 30px;
}

.harika-news-pagination ul {
  display: inline-flex;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.harika-news-pagination li {
  background: #f2f2f2;
  padding: 8px 14px;
  border-radius: 6px;
}

.harika-news-pagination li a,
.harika-news-pagination li span {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.harika-news-pagination .current {
  background: #0073aa;
  color: #fff;
}

.harika-news-loadmore {
  text-align: center;
  margin-top: 20px;
}

.harika-news-loadmore .btn-more-posts {
  display: inline-block;
  background: #0073aa;
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

.harika-news-loadmore .btn-more-posts:hover {
  background: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
  .harika-news-item {
    flex-direction: column;
  }

  .harika-thumb {
    width: 100%;
    min-height: 180px;
  }
}

@media (max-width: 480px) {
  .harika-content {
    padding: 16px;
  }
  .harika-content .title {
    font-size: 16px;
  }
  .harika-content .lead {
    font-size: 13px;
  }
}
/* Professional News Widget Styles */
.professional-news-container {
    width: 100%;
}

.professional-news-item {
    display: flex;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background-color: #fff;
    overflow: hidden;
}

.professional-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.professional-news-inner {
    display: flex;
    width: 100%;
}

.professional-news-inner.type1 {
    flex-direction: row;
}

.professional-news-inner.type2 {
    flex-direction: row-reverse;
}

.professional-news-image {
    flex-shrink: 0;
}

.professional-news-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.professional-news-image a:hover img {
    opacity: 0.9;
}

.professional-news-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.professional-news-category a {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.professional-news-category a:hover {
    opacity: 0.8;
}

.professional-news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.professional-news-title a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.professional-news-lead {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.professional-news-meta {
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
}

.professional-news-meta i {
    margin-left: 5px;
}

.professional-news-archive-btn-container {
    text-align: center;
    margin-top: 30px;
}

.professional-news-archive-btn {
    display: inline-block;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.professional-news-archive-btn:hover {
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 767px) {
    .professional-news-inner {
        flex-direction: column !important;
    }

    .professional-news-image {
        width: 100% !important;
        margin-bottom: 15px;
    }

    .professional-news-meta {
        flex-wrap: wrap;
    }

    .professional-news-meta span {
        margin-bottom: 5px;
    }
}
.pakdast-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pakdast-news-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pakdast-news-title {
    order: 1;
    margin-bottom: 0;
}

.pakdast-media-player {
    order: 2;
    margin: 5px 0 10px 0;
}

.pakdast-news-content {
    order: 3;
}

.pakdast-news-meta {
    order: 4;
}
.pakdast-news-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pakdast-news-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.pakdast-news-title a {
    color: inherit;
    text-decoration: none;
}

.pakdast-news-title a:hover {
    color: #4CAF50;
}

.pakdast-news-content {
    margin-bottom: 10px;
    line-height: 1.6;
}

.pakdast-news-meta {
    font-size: 13px;
    color: #777;
}

.pakdast-archive-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pakdast-archive-link:hover {
    background-color: #45a049;
}

.pakdast-no-news {
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 4px;
    text-align: center;
}

/* حالت تاریک */
.elementor-panel-dark-mode .pakdast-news-item {
    background-color: #2a2a2a;
    border-color: #444;
}

.elementor-panel-dark-mode .pakdast-news-title,
.elementor-panel-dark-mode .pakdast-news-content {
    color: #eee;
}

.elementor-panel-dark-mode .pakdast-news-meta {
    color: #aaa;
}
.pakdast-media-player {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
}

.pakdast-media-player video,
.pakdast-media-player audio {
    width: 100%;
    max-width: 100%;
}

.pakdast-media-player .wp-video {
    width: 100% !important;
}

.pakdast-media-player .mejs-container {
    border-radius: 8px;
}
.pakdast-media-buttons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pakdast-btn {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 14px;
}
.pakdast-media-buttons img {
    transition: transform 0.2s;
}
.pakdast-media-buttons img:hover {
    transform: scale(1.1);
}
/* استایل اصلی گالری */
.advanced-gallery {
    font-family: inherit;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    line-height: 1.6;
}

/* هدر گالری */
.gallery-header {
    margin-bottom: 30px;
}

.gallery-title {
    font-size: 28px;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: #333;
}

.gallery-subtitle {
    font-size: 16px;
    margin: 0;
    color: #777;
}

/* تصویر اصلی */
.gallery-main {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-image {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
}

.main-info {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
}

.main-title {
    font-size: 24px;
    margin: 10px 0;
    line-height: 1.4;
    color: #fff;
}

.main-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
    color: rgba(255,255,255,0.9);
}

/* تصاویر کوچک */
.gallery-thumbnails {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.thumb-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.thumb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.thumb-bg {
    position: relative;
    background-size: cover;
    background-position: center;
}

.thumb-info {
    padding: 15px;
}

.thumb-title {
    font-size: 16px;
    margin: 10px 0 5px;
    line-height: 1.4;
    color: #333;
}

/* آیکن‌ها */
.photo-icon-wrapper {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.photo-icon {
    color: #fff;
}

.main-image .photo-icon-wrapper {
    width: 50px;
    height: 50px;
}

/* دکمه آرشیو */
.gallery-footer {
    text-align: center;
    margin-top: 30px;
}

.archive-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.archive-button:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-title {
        font-size: 24px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-image {
        padding: 20px;
    }

    .main-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .advanced-gallery {
        padding: 15px;
    }

    .gallery-thumbnails {
        grid-template-columns: 1fr;
    }

    .archive-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
/* برای آیکن دوربین */
.photo-icon {
    color: #ffffff; /* رنگ سفید */
}

/* برای آیکن لینک خارجی */
.title-external-icon {
    color: rgba(255,255,255,0.7);
}

/* حالت hover */
.thumb-card:hover .photo-icon,
.main-image-link:hover .photo-icon {
    color: #3498db; /* رنگ آبی */
}

.main-title-link:hover .title-external-icon {
    color: #ffffff;
    opacity: 1;
}
/* استایل‌های پایه هدر */
.cnh-header-wrapper {
    direction: rtl;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    background: #fff;
}

.cnh-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cnh-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* استایل نوار بالا */
.cnh-top-bar {
    background: #2c3e50;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cnh-top-menu-col {
    flex: 1;
}

.cnh-top-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.cnh-top-menu li {
    margin-left: 20px;
    position: relative;
}

.cnh-top-menu li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.cnh-top-menu li a:hover {
    color: #f39c12;
}

.cnh-date-time-col {
    margin-right: auto;
}

.cnh-date-time {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cnh-date-time span {
    display: flex;
    align-items: center;
}

.cnh-date-time span:before {
    margin-left: 5px;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.cnh-date:before {
    content: "\f073";
}

.cnh-time:before {
    content: "\f017";
}

/* استایل بخش اصلی هدر */
.cnh-main-header {
    padding: 15px 0;
    position: relative;
}

.cnh-logo-col {
    flex: 0 0 180px;
}

.cnh-logo-col img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.cnh-ad-col {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.cnh-advertisement {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 5px;
    border: 1px solid #eee;
}

.cnh-advertisement img {
    max-height: 60px;
    width: auto;
    margin: 0 auto;
    display: block;
}

.cnh-tools-col {
    flex: 0 0 250px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* استایل شبکه‌های اجتماعی */
.cnh-social-icons {
    display: flex;
}

.cnh-social-icons a {
    width: 32px;
    height: 32px;
    background: #f1f1f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cnh-social-icons a:hover {
    background: #ffaa7f91;
    color: #fff;
    transform: translateY(-3px);
}

/* استایل جستجو */
.cnh-search-col {
    position: relative;
}

.cnh-search-toggle {
    background: none;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.cnh-search-toggle:hover {
    color: #e74c3c;
}

.cnh-search-form-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 300px;
}

.cnh-search-toggle.active + .cnh-search-form-wrapper {
    opacity: 1;
    visibility: visible;
}

.cnh-search-form {
    position: relative;
}

.cnh-search-form input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
}

.cnh-search-form input:focus {
    border-color: #e74c3c;
}

.cnh-search-form button {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
}

.cnh-search-form button:hover {
    color: #ffffff;
}

/* استایل منوی اصلی */
.cnh-main-menu-col {
    width: 100%;
    margin-top: 15px;
}

.cnh-main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    position: relative;
}

.cnh-main-menu > li {
    position: relative;
    margin: 0 5px;
}

.cnh-main-menu > li > a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    font-size: 14px;
    border-radius: 4px;
}

.cnh-main-menu > li > a:hover,
.cnh-main-menu > li.current-menu-item > a {
    color: #e74c3c;
    background: #f9f9f9;
}

/* منوی آبشاری */
.cnh-main-menu li ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 10px 0;
    border-top: 2px solid #e74c3c;
}

.cnh-main-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
}

.cnh-main-menu li ul li a {
    padding: 8px 20px;
    display: block;
    color: #555;
    transition: all 0.3s ease;
    font-size: 13px;
}

.cnh-main-menu li ul li a:hover {
    background: #f5f5f5;
    color: #e74c3c;
    padding-right: 25px;
}

/* استایل هدر چسبان */
.sticky-header .cnh-main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    padding: 10px 0;
    z-index: 9999;
}

.sticky-header .cnh-logo-col img {
    max-height: 40px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* رسپانسیو برای تبلت */
@media (max-width: 991px) {
    .cnh-logo-col {
        flex: 0 0 150px;
    }

    .cnh-ad-col {
        order: 3;
        flex: 0 0 100%;
        margin-top: 15px;
        padding: 0;
    }

    .cnh-tools-col {
        flex: 0 0 calc(100% - 170px);
    }

    .cnh-main-menu > li > a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 767px) {
    .cnh-top-bar {
        padding: 10px 0;
    }

    .cnh-top-menu {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 5px;
    }

    .cnh-top-menu li {
        margin-left: 10px;
        margin-right: 10px;
    }

    .cnh-date-time {
        display: none;
    }

    .cnh-logo-col {
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .cnh-tools-col {
        flex: 0 0 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    .cnh-main-menu {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 5px;
    }

    .cnh-main-menu > li {
        margin: 0 3px;
    }

    .cnh-main-menu > li > a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .cnh-search-form-wrapper {
        left: 50%;
        transform: translateX(-50%);
    }

    .cnh-social-icons {
        display: none;
    }
}

/* پشتیبانی از حالت تاریک */
@media (prefers-color-scheme: dark) {
    .cnh-header-wrapper,
    .cnh-main-menu li ul {
        background: #222;
    }

    .cnh-main-menu > li > a {
        color: #eee;
    }

    .cnh-main-menu > li > a:hover,
    .cnh-main-menu > li.current-menu-item > a {
        color: #e74c3c;
        background: #333;
    }

    .cnh-main-menu li ul li a {
        color: #ddd;
    }

    .cnh-main-menu li ul li a:hover {
        background: #444;
    }

    .cnh-search-form input {
        background: #333;
        border-color: #444;
        color: #fff;
    }

    .cnh-advertisement {
        background: #333;
        border-color: #444;
    }
}
