/*
Theme Name: Woodmart Child
Template: woodmart
*/


@font-face {
    font-family: 'NianExtraBold';
    src: url('fonts/NianExtraBold.eot'); /* IE9 Compat Modes */
    src: url('fonts/NianExtraBold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/NianExtraBold.woff2') format('woff2'), /* Super Modern Browsers */
         url('fonts/NianExtraBold.woff') format('woff'), /* Modern Browsers */
         url('fonts/NianExtraBold.ttf') format('truetype'); /* Legacy iOS */
    font-weight: 900;
    font-style: bold;
}
@font-face {
    font-family: 'SHABNAM-BOLD';
    src: url('fonts/SHABNAM-BOLD.eot'); /* IE9 Compat Modes */
    src: url('fonts/SHABNAM-BOLD.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/SHABNAM-BOLD.woff2') format('woff2'), /* Super Modern Browsers */
         url('fonts/SHABNAM-BOLD.woff') format('woff'), /* Modern Browsers */
         url('fonts/SHABNAM-BOLD.ttf') format('truetype'); /* Legacy iOS */
    font-weight: 700;
    font-style: bolder;
}
@font-face {
    font-family: 'SHABNAM';
    src: url('fonts/SHABNAM.eot'); /* IE9 Compat Modes */
    src: url('fonts/SHABNAM.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/SHABNAM.woff2') format('woff2'), /* Super Modern Browsers */
         url('fonts/SHABNAM.woff') format('woff'), /* Modern Browsers */
         url('fonts/SHABNAM.ttf') format('truetype'); /* Legacy iOS */
    font-weight: 400;
    font-style: bolder;
}

:root {
  --main-color: #133330;
  --link-color: #1e3c72;
  --themes-color: #2b6242;
  --second-newcolor: #D1AD6D3D;
  --second-bg: #fff;
  --main-bg: #ececee;
  --border-color: #E6E8F2;
  --main-font: 'SHABNAM';
  --titr-fonts : 'SHABNAM-BOLD';
}
html {
    scroll-behavior: smooth;
}

body strong ,body legend,body h1,body h2,body h3, body h4,body h5,body h6,body .title,body table th,
body .elementor-widget-posts .elementor-post__title,
body .elementor-widget-posts .elementor-post__title a{
    font-family: var(--titr-fonts);
    font-weight: 900;
}

.mnProduct-category-description p {
  font-size: 20px;
  font-weight: bold;
}
body .wd-page-content, body,body p,body a,body span,body div,body article,body section,body label, body input,body select,body option,body textarea,body sub,body inc,body small,body dell, body .wd-entities-title,
body .elementor-widget-posts .elementor-post__excerpt p, body .elementor-widget-image figcaption.widget-image-caption{
    font-family:var(--main-font);
    font-weight: 400;
}

#mn_mainNews .news-lead {
  font-size: 15px;
  margin-bottom: 0;
}
.mn_otherPosts .elementor-post__thumbnail {
  display: none;
}
p.news-lead {
  font-size: 12px;
  margin-bottom: 5px;
}
.wd-header-filter .wd-tools-icon::before {
  content: "\f118";
  font-family: "woodmart-font";

}
#main-content {
  background: #f6f2e6;
}
.single-product .product_meta .sku_wrapper.detail-container, .single-product .product_meta .posted_in.detail-container {
  display: none;
}

.whb-main-header .whb-column {
  justify-content: center;
}
.whb-main-header .woodmart-nav-link span {
  color: #fff;
  font-size: 17px;
  font-family: Vazirmatn;
  font-weight: bold;
}
html[lang="en-US"] .whb-main-header .woodmart-nav-link span {
  font-size: 15px;
}
html[lang="en-US"] .whb-top-bar .woodmart-nav-link span {
  font-size: 12px;
}
html[lang="en-US"] *{
    direction: ltr !important;
}
html[lang="en-US"] .news-title {
  text-align: left;
}
.whb-top-bar-inner .wd-header-secondary-nav img {
  display: none;
}
.whb-top-bar-inner .wd-header-secondary-nav .sub-menu-dropdown {
  min-width: 90px;
  width: auto;
  text-align: center;
}
#mn_lastNews {
  background: #fff;
  border-radius: 10px;
}
#mn_lastNews .elementor-posts .elementor-post {
  flex-direction: row;
  border-bottom: 1px solid #eee;
  position: relative;
}
#mn_lastNews .elementor-post__text {
  width: 70%;
  padding: 10px;
  padding-left: 0;
}
#mn_lastNews .news-lead {
  font-size: 12px;
  margin-bottom: 5px;
}
#mn_lastNews .elementor-post__meta-data {
  position: absolute;
  bottom: -10px;
  left: 0;
}
#mn_lastNews .elementor-widget-posts .elementor-post__excerpt p {
  font-size: 14px;
}

#mn_lastNews .elementor-posts .elementor-post__title{
    font-size: 18px;
}
#mn_lastNews .elementor-posts .elementor-post {
  margin-top: -25px;
}
#mn_lastNews .elementor-posts .elementor-post:first-child{
    margin-top: 0;
}
#mn_mainNews > .elementor-widget-posts {
  background: #fff;
  border-radius: 10px;
  margin-left: 1%;
  padding: 10px;
  position: relative;
}
.wd-negative-gap.elementor-element.e-flex.e-con-boxed {
  padding: 0;
}
#mn_mainNews .elementor-post__thumbnail {
  border-radius: 10px;
}
#mn_mainNews .elementor-post__thumbnail__link {
  margin: 0;
}
#mn_mainNews .elementor-post__text {
  background: #2c453075;
  padding: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  z-index: 9;
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: calc(100% - 20px);
}
#mn_mainNews .elementor-post__text a {
    color: #fff;
}
#mn_middleListPosts {
  background: #fff;
  border-radius: 10px;
  margin-top: 20px;
}
#mn_gallerySection {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  margin: 20px auto;
  border: 2px solid #b59961;
}
.mn_middlepostCat .elementor-widget-wd_title .elementor-widget-container {
  padding: 10px;
}
#mn_galleryHeading .title-wrapper {
  text-align: right;
  padding-right: 60px;
}
#mn_galleryHeading .title-wrapper .woodmart-title-container {
  color: var(--themes-color);
  font-size: 30px;
}
.whb-general-header .whb-col-center .wd-logo.wd-main-logo {
  position: relative;
  left: 25px;
}
#mn_galleryHeading .title-wrapper .woodmart-title-container::before {
  content: "";
  width: 25px;
  height: 25px;
  background: var(--themes-color);
  position: absolute;
  right: 25px;
  top: 6px;
}
#mn_middleListPosts .elementor-element {
  --widgets-spacing-row: 0;
}
.mn_middlepostCat .news-lead {
  display: none;
}
body .mn_middlepostCat .elementor-post__title a {
  font-size: 18px !important;
  color: var(--link-color);
}
body .mn_otherPosts .elementor-posts .elementor-post__title a {
  font-family: var(--main-font);
  color: #333;
  list-style: inside;
  font-size: 16px !important;
  padding-right: 20px;
  position: relative;
}
.elementor-icon.elementor-social-icon.elementor-social-icon-telegram {
  background: transparent !important;
}
body .mn_otherPosts .elementor-posts .elementor-post__title a::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: #2b6242;
  position: absolute;
  right: 5px;
  top: calc(50% - 5px);
}
body .mn_portfolioTabs .woodmart-title-container {
  font-size: 18px;
  color: var(--themes-color);
  line-height: 2;
  border-width: 3px;
  border-color: var(--themes-color);
}
.mn_portfolioLastPosts .elementor-post__thumbnail__link {
  max-width: 50%;
  border-radius: 10px;
}
.mn_portfolioLastPosts article {
  position: relative;
}
.mn_portfolioLastPosts .elementor-post__title {
  padding-right: 20px;
}
.mn_portfolioLastPosts .elementor-post__title::before {
  content: "";
  height: 10px;
  width: 10px;
  position: absolute;
  right: 0;
  top: 10px;
  border-radius: 100%;
  background: var(--themes-color);
}
.mn_lastSectioPosts {
  width: 100%;
}
.mn_lastSectioPosts .elementor-post__thumbnail {
  border-radius: 20px;
}
body .mn_lastSectioPosts .elementor-post__text {
  display: none;
}
body .mn_ourpartnerShip{
    justify-content: center;
    text-align: center;
} 
body .mn_ourpartnerShip .elementor-widget-image {
  max-width: 150px !important;
  margin: 0 20px;
}
body .mn_ourpartnerShip .elementor-widget-image h3 {
 margin-bottom: 10px;
}
body .mn_ourpartnerShip .elementor-widget-image p {
  font-weight: bold;
  font-size: 12px;
  margin-top: 10px;
  margin-bottom: 0;
}
body .fullWidth {
  width: 100vw;
  position: relative;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw !important;
  left: 50%;
  right: 50%;
}
.mn_portfolioLastPosts article .elementor-post__thumbnail {
  border-radius: 10px;
}
.mn_postArchive .news-lead {
  font-size: 10px;
  margin-bottom: 5px;
}
.mn_postArchive .elementor-post__title a {
  font-family: var(--titr-fonts) !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
}
body .mn_postArchive .elementor-post__excerpt p {
  font-family: var(--main-font) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-align: justify;
  padding: 3px;
}
.mn_postArchive {
  background: #f9ffe9;
  padding: 15px;
  border-radius: 10px;
}
.menu-item.current-menu-item a span {
  color: #efc62f !important;
}
.mn_dnone{
    display: none !important;
}
body .mn_postArchive .elementor-post__read-more-wrapper {
  text-align: left;
}
body .mn_postArchive .elementor-post__read-more-wrapper a {
  font-size: 30px;
  line-height: 0;
}
body .mn_postArchive .elementor-post__card .elementor-post__badge {
  background-color: #efc62e !important;
  color: #333 !important;
  font-family: var(--titr-fonts) !important;
}
body .mn_postArchive .elementor-post__thumbnail__link {
  margin-bottom: 5px;
}
.mn_latestwidget .news-lead {
  display: none;
}
.mn_relatedArticle .news-lead {
  display: none;
}
.mn_relatedArticle h3 > a{
    position: relative;
    padding-right: 20px;
}

.mn_relatedArticle h3 > a::after {
  content: "";
  width: 15px;
  height: 15px;
  background-image: url(/wp-content/uploads/2025/10/camera.png);
  position: absolute;
  right: 0;
  top: 0px;
  border-radius: 100%;
  background-size: contain;
}
html[lang="en-US"] .mn_relatedArticle h3 > a {
  padding-right: 0;
  padding-left: 20px;
}
html[lang="en-US"] .mn_relatedArticle h3 > a::after {
  content: "";
  width: 15px;
  height: 15px;
  background-image: url(/wp-content/uploads/2025/10/camera.png);
  position: absolute;
  right: auto;
  left: 0;
  top: 0px;
  border-radius: 100%;
  background-size: contain;
}
body footer .elementor-icon-list-text {
  font-family: var(--main-font) !important;
}
.mn_portfolioLastPosts .news-lead {
  display: none;
  margin-bottom: 0;
}
#mn_topSections .e-con-inner {
  max-width: 90%;
}
.mn_Deputy{
    margin-top: 25px;
    padding: 20px;
}

.mn_Deputy.mn_boss {
  margin-top: 0;
  padding: 10px;
}
body .mn_lastnews {
  width: 90%;
  max-width: 1410px;
}
.mn_headingbox img {
  max-height: 35px;
  width: auto;
}
.mn_homesection {
  width: 90%;
  margin: 20px auto;
}
.mn_headingbox {
  background: #f6f2e6;
  padding: 10px 0;
  border-radius: 10px;
  color: var(--main-color);
}
.mn_calendartitle {
    min-height: 250px;
}
.mn_majmadetails .mn_middlepostCat {
  padding: 10px;
}
.mn_majmadetails .mn_middlepostCat .elementor-widget-image {
  border: 2px solid #b59961;
  border-radius: 20px;
  padding: 20px;
}
.mn_majmadetails .mn_middlepostCat .elementor-widget-image figure {
  display: flex;
  justify-content: center;
  direction: ltr;
  align-items: center;
}
.mn_majmadetails .mn_middlepostCat .elementor-widget-image figure img {
  max-width: 50%;
  text-align: left;
  padding-right: 10px;
}
.mn_majmadetails .mn_middlepostCat .elementor-widget-image figure .wp-caption-text {
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
  width: 50%;
}
.mn_majmadetails .mn_middlepostCat .elementor-widget-image figure .wp-caption-text strong {
  font-size: 25px;
  margin-bottom: 0;
  line-height: 1;
  color: #000;
}
#mn_gallerySection .mn_headingbox {
  background: transparent;
}
body #main-content .mn_homesection {
  width: 90%;
  margin: 20px auto;
  padding: 20px;
}
.mn_homesection .mn_calendartitle {
  min-height: 125px;
}
.mn_Statement .mn_headingbox {
  background: transparent;
}
.mn_Statement .mn_headingbox {
  background: transparent;
  margin: 0;
}
body .mn_Statement .elementor-heading-title {
  color: #455856;
}
.mn_bayanieCarusel {
  font-size: 18px;
  font-weight: bold;
  font-family: var(--main-font);
  line-height: 1.7;
}
.mn_homesection.mn_videoSection {
  background: url("/wp-content/uploads/2025/11/video_sectionBg.png");
  border-radius: 20px;
  border: 2px solid #b59961;
}
.mn_homesection.mn_videoSection .mn_headingbox {
  background: transparent;
  color: #fff;
}
.headerSection {
  display: flex;
  justify-content: space-between;
}
.headerSection a {
  color: #fff;
}
.headerSection a.more {
  position: relative;
  top: 16px;
}
body .whb-sticky-prepared .whb-main-header {
  max-width: 1440px;
  margin: 0 auto;
}
body .mn_Deputy.mn_boss img {
  margin-top: 0;
  border: 4px solid #B3975E;
  border-radius: 100%;
  padding: 0;
}
body .relatedOffice {
  background: #fff;
  margin-top: 50px;
  padding-top: 30px !important;
  border-top: 6px solid #b59961;
  border-bottom: 6px solid #b59961;
  border-radius: 10px;
}
.relatedOffice .mn_headingbox {
  max-width: calc(90% - 40px);
  margin: 0 auto;
}
header .whb-main-header a.woodmart-nav-link .nav-link-text {
  color: #ffedb9;
}
body .mn_Statement .elementor-heading-title {
  color: #455856;
  font-family: var(--titr-fonts);
  font-weight: 900;
  font-size: 24px;
}
body .mn_Statement .elementor-widget-theme-post-featured-image {
  background: #133330;
  border-radius: 20px;
  overflow: hidden;
}
.whb-main-header .wd-tools-element > a {
  color: #b59962;
}
.whb-main-header .wd-tools-element > a span {
  font-family: var(--main-font);
  margin-right: 0;
}
.whb-col-center .site-logo {
  max-height: calc(100% + 20px);
  position: relative;
  bottom: 20px;
}
footer > .wd-negative-gap {
  max-width: 1440px !important;
  margin: 0 auto;
  margin-top: 0;
}
.mn_footerText p {
  font-size: 20px;
  line-height: 2;
  text-align: justify !important;
}
.mn_newsForm form br {
  display: none;
}
.mn_newsForm form input[type="email"] {
  background: #fff;
  border-radius: 10px;
  min-width: 600px;
}
.mn_newsForm form p {
  display: flex;
  justify-content: center;
}
footer .elementor-icon-list-items {
  font-family: var(--main-font) !important;
}
footer nav.elementor-nav-menu--main li a {
  font-family: var(--main-font) !important;
}
#mn_social {
  margin-top: 30px;
}
body .mn_newsForm {
  width: 100%;
  text-align: center;
  justify-content: center;
  display: flex;
}
.mn_newsForm form input[type="submit"] {
  position: relative;
  left: 85px;
  height: 35px !important;
  line-height: 1;
  min-height: 1px;
  top: 4px;
  border-radius: 8px;
  background: #133330 !important;
}
footer .elementor-icon-list-item .elementor-icon-list-text {
  direction: ltr;
}



/* استایل‌های پایه برای فهرست مطالب خودکار */
#custom-toc-container {
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    max-width: 300px; /* حداکثر عرض فهرست */
}

/* ⬅️ مهم‌ترین بخش برای قرارگیری در کنار متن (سایدبار شبیه سازی شده) */
/* Float کردن به راست و ایجاد حاشیه */
#custom-toc-container {
    float: right; /* یا float: left; اگر زبان سایت انگلیسی است */
    margin-right: 0; 
    margin-left: 20px; /* فاصله از متن اصلی */
}

/* استایل دهی لیست */
.toc-list, .toc-h3-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-h3-list {
    margin-right: 15px; /* تورفتگی برای H3ها */
    font-size: 0.95em;
}

#custom-toc-container a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 2px 0;
}

#custom-toc-container a:hover {
    color: #0073aa;
}
h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
    scroll-margin-top: 80px; 
}
#custom-toc-container li {
  margin-bottom: 0;
  font-size: 12px;
}
#custom-toc-container .toc-h3-list li {
  font-size: 11px;
  font-weight: 400;
}
.news-breadcrumb-wrapper {
    background: linear-gradient(135deg, #2d5f3f 0%, #1a3d28 100%);
    border-radius: 8px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
}

.news-breadcrumb-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
}

.news-breadcrumb-right a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-breadcrumb-right a:hover {
    color: #ffd700;
}

.breadcrumb-separator {
    color: #ffffff;
    margin: 0 5px;
    opacity: 0.7;
}

.breadcrumb-current {
    color: #ffd700;
    font-weight: bold;
}

.news-breadcrumb-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 13px;
}

.breadcrumb-author,
.breadcrumb-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}
.breadcrumb-date {
  line-height: 2;
  border-right: 1px solid;
  padding-right: 10px;
}    
.news-breadcrumb-right img {
  filter: invert(1);
  max-height: 25px;
  width: auto;
}
body .elementor.elementor .mn_Singlepost.e-con > .elementor-element {
  max-width: 80%;
  margin: 0 auto;
  width: 100%;
  text-align: justify;
}
body .elementor.elementor .mn_Singlepost.e-con {
  padding-top: 50px;
}
body .elementor.elementor .mn_Singlepost.e-con > .elementor-element.elementor-widget-theme-post-excerpt {
  font-size: 16px;
  font-family: var(--main-font);
  line-height: 1.7;
}
body .elementor.elementor .mn_Singlepost.e-con > .elementor-element img {
  width: 100%;
}
.single-post .elementor-heading-title {
  line-height: 1.7;
}
body footer .e-n-menu-title-text {
  font-family: var(--main-font) !important;
}
#mn_contactUs {
  max-width: 80%;
  padding: 20px;
}
#mn_contactUs .elementor-icon-list-text strong {
  color: #ffedb9;
}
#mn_contactUs h1 span {
  font-family: var(--titr-fonts);
}
#mn_contactUs .elementor-icon-list-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  margin-left: 10px;
  border: 1px solid #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  border-radius: 100%;
  padding: 5px;
}
#mn_contactUs .elementor-icon-list-icon svg {
  margin: 0;
}
#mn_contactUs .elementor-icon-list-text {
  font-family: var(--main-font);
}
#mn_contactUs_form {
  max-width: 80%;
  background: #fff;
  border-radius: 20px;
  margin-top: 20px;
  padding: 20px;
  border: 3px solid #4f6854;
}
#mn_contactUs_form h2 {
  color: #4f6854;
  margin-bottom: 0;
}
#mn_contactUs_form form {
  text-align: right;
}
#mn_contactUs_form form .wpcf7-form-control-wrap {
  width: 49%;
  display: inline-block;
  margin-right: 1%;
  border: 2px solid #4f6854;
  border-radius: 10px;
}
#mn_contactUs_form form label .wpcf7-form-control-wrap {
  width: 99%;
  border-radius: 20px;
  border-bottom-right-radius: 0;
  border-top-left-radius: 0;
}
#mn_contactUs_form form .wpcf7-form-control.wpcf7-submit.has-spinner {
  margin-top: 10px;
  background-color: #b59961;
  float: left;
}

body .mn_pages.e-con {
  max-width: 80%;
  border: 3px solid #b59961;
  border-radius: 20px;
  background: #f6f2e6;
}
body .mn_pages.e-con p {
  font-size: 18px;
  line-height: 2;
  text-align: justify;
}
#mn_workship .wp-caption {
  flex-direction: column-reverse;
  display: flex;
  align-items: center;
  padding-left: 50px;
}
#mn_workship .mn_workship {
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
  font-weight: bold;
}
#mn_workship img {
  max-width: 70px;
  margin-top: 20px;
}
#mn_bottomform form label {
  display: flex;
}
#mn_bottomform {
  max-width: 90%;
  margin: 0 auto;
  border-top: 2px solid #b59961;
  padding-top: 20px;
}
#mn_bottomform h2{
    text-align: center;
    color: #46604b;
}
#mn_bottomform form label span {
  margin-right: 20px;
}
#mn_bottomform form label span input {
  border: none;
  border-bottom: 1px solid;
}
#mn_bottomform form .wpcf7-submit.has-spinner {
  background: #b59961;
  text-align: center;
  margin: 0 auto;
  justify-content: center;
  float: none;
}

.majma-gallery {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    direction: rtl;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h2 {
    font-size: 28px;
    color: #2d5a4a;
    margin: 0;
    display: flex;
    align-items: right;
    justify-content: right;
    gap: 10px;
}
.mn_bayanieCarusel.elementor-widget-theme-post-excerpt {
  text-align: justify;
  font-family: var(--main-font);
}
.gallery-header .icon {
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: right;
    justify-content: right;
    color: #fff;
    font-size: 18px;
}
.archive .majma-gallery {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 90%;
  border: 3px solid #b59961;
}


.archive .majma-gallery .gallery-item {
    background: #fff;
    /*overflow: hidden;*/
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    text-align: right;
}

.archive .majma-gallery .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.archive .majma-gallery .gallery-image {
  position: relative;
  padding-top: 65%;
  /*overflow: hidden;*/
  /*background: #f0f0f0;*/
  /*border-top-left-radius: 15px;*/
  /*border-bottom-left-radius: 15px;*/
  /*border-top-right-radius: 25px;*/
  /*border: 3px solid #b59961;*/
}

.archive .majma-gallery .gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 25px;
    border: 3px solid #b59961;
}

.archive .majma-gallery .gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.archive .majma-gallery .image-count {
  position: absolute;
  bottom: 0;
  right: -5px;
  background: rgb(19, 51, 48);
  color: #fff;
  padding: 5px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: bold;
  z-index: 2;
  flex-direction: column;
  border: 3px solid #b59961;
  z-index: 9;
}
.archive .majma-gallery .pagination-wrapper .page-numbers {
  list-style: none;
  display: flex;
  margin: 5px;
}
/*.archive .majma-gallery .image-count::before {*/
/*    content: '📷';*/
/*    font-size: 16px;*/
/*}*/
#main-content .elementor-post__title {
  text-align: justify;
}
.archive .majma-gallery .gallery-content {
    padding: 20px;
}
#menu-topbarmenu-english .nav-link-text {
  font-size: 12px;
}

.archive .majma-gallery .gallery-title {
    font-size: 16px;
    font-weight: bold;
    color: #2d5a4a;
    margin: 0 0 10px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.archive .majma-gallery .gallery-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #999;
    margin-top: 12px;
}


.archive .majma-gallery .gallery-category {
    padding-right: 4px;
    font-size: 12px;
    color: #666;
}

.archive .majma-gallery .gallery-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.archive .majma-gallery .pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    direction: rtl;
}

.pagination-wrapper a,
.pagination-wrapper span {
    padding: 10px 18px;
    background: #fff;
    border: 2px solid #2d5a4a;
    border-radius: 8px;
    color: #2d5a4a;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.pagination-wrapper a:hover {
    background: #2d5a4a;
    color: #fff;
}

.pagination-wrapper span.current {
    background: #2d5a4a;
    color: #fff;
}
    
 /* بخش ویدیو اصلی */
.featured-video-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    direction: rtl;
}

.featured-video-content {
    color: white;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.featured-video-subtitle {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}

.featured-video-title {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 0;
  color: #fff;
  text-align: center;
}

.featured-video-description {
    font-size: 17px;
    line-height: 2;
    opacity: 0.95;
    text-align: justify;
}

.featured-video-button {
    background: #fff;
    color: #000;
    padding: 10px 35px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    margin-top: 10px;
}

.featured-video-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.featured-video-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background: #000;
    aspect-ratio: 16/9;
    border: 4px solid #b59961;
}

.featured-video-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-video-image-wrapper:hover .featured-video-image {
    transform: scale(1.05);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

.featured-video-image-wrapper:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(212, 175, 55, 1);
}

/* بخش ویدیوهای پایین */
.video-grid-section {
    position: relative;
    z-index: 1;
}

.video-grid-header {
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: right;
}

.video-divider {
    height: 2px;
    background: #b59961;
    margin-bottom: 30px;
}

.video-small-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    direction: rtl;
}

.video-small-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    aspect-ratio:3/2;
    background: #000;
    border: 3px solid #b59961;
}
#mn_footerLogo {
  padding: 40px;
  padding-top: 0;
}
.video-small-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

.elementor img.video-small-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-small-item:hover .video-small-image {
    transform: scale(1.15);
}

.video-small-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.5) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
}

.video-small-item:hover .video-small-overlay {
    opacity: 1;
}

.video-small-title {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.6;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    text-align: right;
}

.video-small-item:hover .video-small-title {
    transform: translateY(0);
}

.video-small-excerpt {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.9;
    margin-top: 8px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
    text-align: right;
}

.video-small-item:hover .video-small-excerpt {
    transform: translateY(0);
}

.video-small-item .video-play-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.video-small-item:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.15);
}
/* image gallery */


.spg-header {
    text-align: center;
    margin-bottom: 40px;
}

.spg-icon-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.spg-icon {
    width: 40px;
    height: 40px;
    background: rgba(45, 90, 74, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(45, 90, 74, 0.2);
}

.spg-icon-title h2 {
    color: #c9a961;
    font-size: 22px;
    margin: 0;
}

.spg-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px 0;
    line-height: 1.8;
    color: #2d5a4a;
}

.spg-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
    flex-wrap: wrap;
}

.spg-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.spg-description {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
    line-height: 2;
    text-align: justify;
    font-size: 15px;
    border: 1px solid #e0e0e0;
}

.spg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.spg-item {
    background: #2d5a4a;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 3px solid #2d5a4a;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.spg-item:hover {
    border-color: #c9a961;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.spg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.spg-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.spg-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.spg-lightbox.active {
    display: flex;
}

.spg-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.spg-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.spg-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: #c9a961;
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.spg-lightbox-close:hover {
    background: #b8956a;
    transform: rotate(90deg);
}

.spg-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201,169,97,0.8);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spg-lightbox-nav:hover {
    background: #c9a961;
}

.spg-lightbox-prev {
    left: 20px;
}

.spg-lightbox-next {
    right: 20px;
}

.spg-lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 20px;
}
#mn_gallerypics figure {
  display: inline-flex;
  justify-content: center;
  align-self: auto;
  flex: 0 0 auto;
  width: max-content;
  border-bottom: 2px solid #fff;
  padding-bottom: 20px;
}
#mn_gallerypics figure img {
  max-width: 50px;
  margin-left: 20px;
  filter: invert(0.7);
}
#mn_gallerypics figure .wp-caption-text{
    font-family: var(--titr-fonts);
    font-size: 24px;
}
#mn_gallerysinglepost .e-con-inner {
  max-width: 80%;
}
#mn_gallerysinglepost h1, strong, h2{
    font-family: var(--titr-fonts);
}
#mn_gallerysinglepost .elementor-widget-theme-post-excerpt,
#mn_gallerysinglepost p,
#mn_gallerysinglepost span
{
  font-size: 20px;
  font-family: var(--main-font);
  line-height: 1.7;
}
.wd-dropdown-menu.wd-dropdown {
  background: #46604b;
  border: 1px solid #f6f2e6;
}
.wd-dropdown-menu.wd-dropdown a {
  color: #ffedb9;
}
#mn-footericon {
  max-width: 70%;
  margin: 0 auto;
}
#mn-footericon img {
  max-width: 65px;
}
#mn-footericon .wp-caption-text {
  font-size: 10px;
  color: #aba98c;
  margin-top: 5px;
}
.whb-general-header-inner .whb-col-right.whb-column {
  flex-direction: column;
}
.whb-general-header-inner .whb-col-right.whb-column .wd-header-nav {
  width: 100%;
  padding-left: 20px;
}
#menu-topbarmenu {
  width: 100%;
}
#menu-topbarmenu li a .nav-link-text {
  font-size: 14px !important;
}
.whb-top-bar .whb-col-right .nav-link-text {
  font-size: 12px;
}
.whb-column.whb-col-left .wd-logo.wd-main-logo {
  position: relative;
  bottom: 20px;
}
.page-id-1364 .whb-header,
.page-id-1364 footer
{
  display: none;
}
#mnintrosections .elementor-widget-html,#mnintrosections {
  height: 100vh;
}
.mnbuttons a {
  color: #aa9442;
  border: 1px solid;
  background: #00301b;
  margin: 10px;
  padding: 5px 20px;
  border-radius: 5px;
  font-size: 25px;
}
.mnbuttons {
  position: absolute;
  top: calc(50% - 20px);
  right: calc(50% - 205px);
}
.rpg-section {
        padding: 60px 20px;
}

.rpg-container {
    max-width: 1400px;
    margin: 0 auto;
}

.rpg-header {
    text-align: right;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rpg-header h3 {
    font-size: 28px;
    color: #2d5a4a;
    margin: 0;
    font-weight: bold;
}

.rpg-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;

}

.rpg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.rpg-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 4px solid #b59961;
}

.rpg-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.rpg-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    transition: all 0.4s;
}

.rpg-item:hover::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.95) 100%);
}

.elementor img.rpg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rpg-item:hover .rpg-image {
    transform: scale(1.1);
}

.rpg-overlay {
    position: absolute;
    bottom: -500px;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
    transform: translateY(0);
    transition: all 0.4s;
}

.rpg-item:hover .rpg-overlay {
    transform: translateY(-5px);
    bottom: 0;
}
#mn_wikishia .e-con-inner {
  padding: 0;
}
.rpg-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rpg-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.rpg-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rpg-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* دکمه نشانگر در گوشه */
.rpg-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(201, 169, 97, 0.95);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
}
.wp-video {
  margin: 0 auto;
}
.rpg-item:hover .rpg-badge {
    opacity: 1;
    transform: translateY(0);
}
#mn_gallerysinglepost p a {
  color: #ffedb9;
}
footer .elementor-icon-list-item:first-child .elementor-icon-list-text {
  direction: rtl;
  text-align: right;
}
.elementor .ejlasieHeader img {
  height: 150px;
  width: auto;
}
.mn_ejlasie a {
  max-width: 40%;
  display: inline-block;
  margin: 1%;
  margin-bottom: 2%;
}

.mn-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mn-search-overlay.active {
    display: block;
    opacity: 1;
}

.mn-search-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 46, 46, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mn-search-overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

.mn-search-container {
    max-width: 750px;
    width: 100%;
    animation: mnSlideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.wd-search-dropdown.wd-dropdown {
  visibility: hidden !important;
}
.mn_ar,.mn_en{
    display: none !important;
}

html[lang="ar"] .mn_ar,
html[lang="en-US"] .mn_en{ 
    display: revert !important;
}
html[lang="ar"] .mn_fa,
html[lang="en-US"] .mn_fa
{ 
    display: none !important;
}
html[lang="en-US"] .mn_fa,
html[lang="en-US"] .mn_ar{ 
    display: none !important;
}

html[lang="en-US"] .mn_newsForm form input[type="submit"]{
    left: auto;
    right: 105px;
}
html[lang="en-US"] .wpcf7-form.init p {
  direction: ltr;
}
html[lang="en-US"] footer .elementor-icon-list-item:first-child .elementor-icon-list-text {
    text-align: left;
}
html[lang="en-US"] #mn_contactUs_form form {
  text-align: left;
}
html[lang="en-US"] .breadcrumb-date {
  line-height: 2;
  border-right: none;
  padding-right: 0;
  border-left: 1px solid;
  padding-left: 10px;
}
html[lang="en-US"] .gallery-header h2 {
  justify-content: left;
}
.jg-entry.entry-visible {
    margin: 10px !important;
    padding: 5px !important;
}

.jg-entry.entry-visible img {
    padding: 5px !important;
    box-sizing: border-box !important;
}

/* اگر container گالری هست */
.justified-gallery .jg-entry {
    margin: 10px !important;
    padding: 5px !important;
}
@keyframes mnSlideDown {
    from {
        transform: translateY(-60px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.mn-close-search {
  position: absolute !important;
  top: -70px;
  background: transparent !important;
  border: 2px solid #cec59b !important;
  transition: all 0.3s ease !important;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px !important;
  border-radius: 100% !important;
  right: calc(50% - 21px);
}

.mn-close-search:hover {
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.mn-search-title {
    color: #cec59b;
    text-align: center;
    font-size: 32px;
    margin-bottom: 35px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mn-search-form {
    width: 100%;
}

.mn-search-input-wrapper {
    position: relative;
    margin-bottom: 35px;
}

.mn-search-input {
  width: 100% !important;
  padding: 5px 10px !important;
    padding-right: 10px;
  background: #041f1d !important;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px !important;
  color: #fff;
  font-size: 17px;
  direction: rtl;
  text-align: right;
  transition: all 0.3s ease !important;
  font-family: inherit;
  padding-right: 20px !important;
}
html[lang="en-US"] .mn-search-input {
  text-align: left;
}
.mn-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.mn-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mn-search-submit {
    position: absolute !important;
      left: -30px;
      top: 50%;
      transform: translateY(-50%);
      background: transparent !important;
      color: #cec59b !important;
      transition: all 0.3s ease !important;
      display: flex;
      align-items: center !important;
      justify-content: center !important;
      border-right: 1px solid #cec59b !important;
}
html[lang="en-US"] .mn_majmadetails .e-con-inner {
  width: 100%;
  max-width: 90%;
}
html[lang="en-US"] .mn_majmadetails .mn_middlepostCat .elementor-widget-image figure .wp-caption-text {
  white-space: normal;
}
html[lang="en-US"] .mn-search-submit {
  right: -30px;
  left: auto;
  border-left: 1px solid #cec59b !important;
  border-right: none !important;
}
footer > .elementor-element:last-child .wd-text-block p {
  margin-bottom: 0;
  padding: 5px 0;
}
html[lang="en-US"] .mn_majmadetails .mn_middlepostCat .elementor-widget-image {
  padding: 10px;
}
.mn-search-submit:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.mn-search-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.mn-category-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    user-select: none;
}

.mn-category-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.mn-category-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4CAF50;
    margin: 0;
}

.mn-category-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.elementor-icon-list-text .mn_phone {
  direction: ltr ;
  float: left;
  padding-right: 20px;
  font-family: var(--main-font);
}
html[lang="en-US"] .elementor-icon-list-text .mn_phone{
    float: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
/* news grid home page */
.latest-news-section {
    background: linear-gradient(135deg, #f8f6f0 0%, #f0ede3 100%);
    padding: 50px 30px;
    border-radius: 20px;
    margin: 40px 0;
    border: 3px solid #d4af37;
}

.news-header {
    text-align: right;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.news-header-icon {
    font-size: 42px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.news-header-title {
    font-size: 36px;
    font-weight: bold;
    color: #2c2c2c;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    direction: rtl;
}

.news-card {
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 2px solid #fff;
}

.news-card:hover {
    transform: translateY(-10px);
    /*box-shadow: 0 15px 40px rgba(0,0,0,0.2);*/
    border-color: #d4af37;
    /*border: 2px solid #e8e4d8;*/

}

.news-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    border-radius: 20px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image {
    transform: scale(1.15);
}

.news-category-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #3c513fe3;
    color: white;
    padding: 10px 25px;
    font-size: 15px;
    font-weight: bold;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.7) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card:hover .news-overlay {
    opacity: 1;
}

.news-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
  font-size: 20px;
  font-weight: bold;
  color: #2c2c2c;
  line-height: 1.5;
  margin-bottom: 10px;
  text-align: right;
  transition: color 0.3s ease;
  min-height: 70px;
  text-align: justify;
}

.news-card:hover .news-title {
    color: #d4af37;
}

.news-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 25px;
    flex-grow: 1;
}

.news-divider {
    height: 2px;
    background: #d4af37;
    margin: 10px 0;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #133330;
    font-size: 14px;
    font-weight: 600;
}

.news-date-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    border-right: 1px solid #d4af37;
    padding-right: 2px;
}
        
 @media (max-width: 1200px) {
    .rpg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
    
/* استایل برای تبلت */
@media (max-width: 1024px) {
    .featured-video-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .news-image-wrapper{
        height: 200px;
    }
    .mn_majmadetails .e-con-inner{
        max-width: 100%;
        width: 100%;
    } 
    .whb-general-header-inner .whb-mobile-right {
      text-align: center;
    }
    .video-small-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-header-title {
        font-size: 30px;
    }
    
    .featured-video-title {
        font-size: 26px;
    }
     .news-header-title {
        font-size: 30px;
    }
    
    .news-title {
        font-size: 20px;
        min-height: auto;
    }
    
    .latest-news-section {
        padding: 40px 25px;
    }
    .news-grid {
        max-width: 100%;
        margin: 0 auto;
        border: none;
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 0;
        padding-bottom: 10px;
    }
    .news-card {
      animation: fadeInUp 0.6s ease forwards;
      margin-bottom: 10px;
      flex: 0 0 auto !important;
      width: 300px !important;
    }    
    .news-image-wrapper {
      height: auto;
    }
    .mn_majmadetails .e-con-inner {
        margin: 0;
        border: none;
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .mn_majmadetails .mn_middlepostCat {
        padding: 0;
        margin: 0.5%;
        margin-bottom: 10px;
        flex: 0 0 auto !important;
        width: 200px !important;
    }
    
}

/* responsive */
@media (max-width: 768px) {
    body .whb-main-header .whb-column {
      justify-content: start;
    }
    .home .wd-page-content.main-page-wrapper #main-content{
        background-size: cover !important;
    }
    
    html[lang="ar"] .wd-header-mobile-nav .wd-tools-icon {
      position: relative;
      right: 5px;
      top: 3px;
    }
    .news-breadcrumb-wrapper {
        padding: 12px 15px;
        font-size: 12px;
    }
    html[lang="ar"] .wd-header-mobile-nav .wd-tools-text {
      font-size: 0;
    }
    html[lang="ar"] .wd-header-mobile-nav .wd-tools-text::after {
      content: "القائمة";
      position: absolute;
      right: 40px;
      color: #dbd0a4;
      font-size: 20px;
      bottom: 5px;
    }
    body #main-content .mn_homesection#mn_wikishia {
      margin-top: 20px;
      padding-top: 15px;
    }
    .rpg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .rpg-header h3 {
        font-size: 22px;
    }
    
    .rpg-title {
        font-size: 16px;
    }
    body .elementor.elementor .mn_Singlepost.e-con > .elementor-element {
      max-width: 90%;
      margin: 0 auto;
      width: 100%;
    }
    .news-breadcrumb-left {
        font-size: 11px;
        width: 100%;
        justify-content: flex-start;
    }
     .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-header h2 {
        font-size: 22px;
    }
    
    .gallery-title {
        font-size: 14px;
    }
    .mn-close-search {
        top: 20px;
        right: 20px;
    }
    
    .mn-search-title {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .mn-search-input {
        padding: 16px 55px 16px 20px;
        font-size: 15px;
    }
    
    .mn-search-categories {
        gap: 10px;
    }
    
    .mn-category-item {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .mn-category-checkbox {
        width: 18px;
        height: 18px;
    }
    .whb-mobile-right img {
        display: none;
    }
    .whb-mobile-right .wd-sub-menu.sub-menu img {
      display: none;
    }
    body .whb-mobile-right .wd-dropdown{
        width: auto !important;
        padding: 5px 12px !important;
        right: auto;
        left: 0px;
    }
    .mn_videoSection {
      margin-bottom: 30px !important;
    }
    #mn_topSections .e-con-inner {
        max-width: 100%;
        margin: 0 auto;
        border: none;
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 0;
        padding-bottom: 10px;
        padding-top: 0;
    }
    .mn_footerText h2 {
        padding: 0 8px;
        font-size: 18px;
        /* text-align: center; */
    }
    .mn_footerText p{
        padding: 0 15px;
        line-height: 1.7;
        font-size: 16px;

    }
    body .mn_newsForm{
        width: 96vw !important;
    }
    #mn_topSections {
      background-size: calc(100% + 20px);
    }
    .mn_middlepostCat {
        margin-bottom: 10px;
        flex: 0 0 auto !important;
        width: 150px !important;
        padding-top: 0 !important;
    }
    
    .whb-mobile-right .wd-header-nav.wd-header-secondary-nav{
        justify-content: end;
        display: flex;
        padding-left: 10px;
    }
    .mn_middlepostCat .mn_Deputy figcaption {
        font-size: 14px !important;
        margin-top: 5px !important;
        line-height: 1.4 !important;
    }
    body #main-content .mn_homesection {
        width: 96%;
        margin: 0px auto;
        padding: 0px;
    }
    .mn_headingbox {
        font-size: 16px;
    }
    .mn_headingbox img {
        max-height: 25px;
        width: auto;
    }

    .gallery-overlay {
        padding: 15px;
    }
    .custom-gallery-masonry{
        padding: 0;
    }
    .mn_homesection.mn_videoSection .mn_headingbox {
        padding-right: 10px;
        margin: 0;
    }
    .video-gallery-section {
        padding: 0 10px;
    }
    .gallery-title{
        margin-bottom: 0;
    }
    .gallery-meta {
        margin-top: 5px;
        font-size: 13px;
        opacity: 0.85;
    }
    #mn_gallerySection {
        padding: 10px;
        width: 96%;
    }
    .news-card{
        padding: 0;
    }
    .video-small-overlay {
        opacity: 1;
        padding: 10px;
    }
    .video-small-title {
        transform: none;
    }
    .video-small-excerpt {
        display: none;
    }
    .mn_Statement .mn_headingbox {
        padding-right: 10px;
    }
    .relatedOffice .mn_headingbox {
        max-width: calc(100% - 20px);
        margin: 0 auto;
    }
    .mn_ourpartnerShip {
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 10px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
    }
    .mn_ourpartnerShip > .elementor-widget.elementor-widget-image{
        margin-bottom: 10px;
        flex: 0 0 auto !important;
        width: 150px !important;
    
    }
    .mn_newsForm form input[type="email"] {
      min-width: 90vw;
      position: absolute;
      right: 0;
    }
    .mn_newsForm form input[type="submit"] {
      position: absolute;
      left: 5px;
    
    }
    #mn-footericon {
      max-width: 98%;
      margin: 0 auto;
      margin: 0;
      border: none;
      display: flex !important;
      overflow-x: auto !important;
      flex-wrap: nowrap !important;
      gap: 0;
      padding-bottom: 10px;
      scrollbar-width: none;
    }
    #mn-footericon .mn_middlepostCat {
      margin-bottom: 10px;
      flex: 0 0 auto !important;
      width: 150px !important;
    }
    .comments-wrapper h3 {
      font-size: 18px;
      margin: 0 0 5px 0;
    }
    #mn_footerLogo {
      padding: 10px;
      max-width: 120px;
      margin: 0 auto;
    }
    .comments-area .comment-respond {
      margin-top: 0;
    }
    .comments-area .comment-respond #reply-title {
      display: none;
    }
    .mn_ejlasie a {
      max-width: 96%;
    }
    #main-content .elementor-widget {
      padding: 10px !important;
      max-width: 100% !important;
      margin: 0 auto;
      width: 100%;
    }
    #main-content {
      padding-top: 0;
    }
    #mn_topSections .mn_middlepostCat .mn_Deputy {
      margin-top: 0;
    }
    .gallery-grid {
      grid-template-columns: repeat(1, 1fr);
      gap: 10px;
    }
    .archive .majma-gallery {
      padding: 10px;
      max-width: 100%;
      border: 3px solid #b59961;
    }
}

@media (max-width: 640px) {
   
    
    .video-small-grid {
        grid-template-columns: 1fr;
    }
    
    .video-header-title {
        font-size: 24px;
    }
    
    .video-header-icon {
        font-size: 32px;
    }
    
    .featured-video-title {
        font-size: 22px;
    }
    
    .featured-video-description {
        font-size: 15px;
    }
    
    .featured-video-content {
        padding: 10px;
    }
}
@media (max-width: 480px) {
    .mnbuttons{
        text-align: center;
        top: calc(50% - 100px);
        right: auto;
        position: relative;
    }
    .mnbuttons a {
      padding: 5px 20px;
      border-radius: 5px;
      font-size: 18px;
      display: block;
      max-width: 60%;
      margin: 10px auto;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .rpg-grid {
        grid-template-columns: 1fr;
    }
    .mn_middlepostCat {
        width: 130px !important;
    }
    .rpg-section {
        padding: 40px 15px;
    }
    .mn-search-overlay-content {
        padding: 15px;
    }
    
    .mn-search-title {
        font-size: 22px;
    }
    
    .mn-search-categories {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mn-category-item {
        justify-content: flex-start;
    }
}
@supports not (backdrop-filter: blur(12px)) {
    .mn-search-overlay-backdrop {
        background: rgba(20, 46, 46, 0.98);
    }
}