/* ===================== */
/* === Persian Fonts ==== */
/* ===================== */

@font-face { 
    font-family: 'IRANSans'; 
    font-weight: normal; 
    font-style: normal;
    font-display: swap;
    src: url('https://exgold.co.uk/Portals/_default/Skins/glend/resource/fonts/IRANSansWeb.woff') format('woff'); 
}

@font-face { 
    font-family: 'IRANSans'; 
    font-weight: bold; 
    font-style: normal;
    font-display: swap;
    src: url('https://exgold.co.uk/Portals/_default/Skins/glend/resource/fonts/IRANSansWeb_Bold.woff') format('woff'); 
}

@font-face { 
    font-family: 'IRANYekan'; 
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    src: url('https://exgold.co.uk/Portals/_default/Skins/glend/resource/fonts/iranyekanwebregular.woff') format('woff'); 
}

/* ===================== */
/* === Global Persian === */
/* ===================== */

html,
body {
    direction: rtl;
    text-align: right;
}

body,
html,
p,
div,
span,
a,
button,
input,
textarea,
select,
label,
li,
td,
th,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'IRANSans', 'IRANYekan', Tahoma, Arial, sans-serif !important;
}

body {
    line-height: 1.9;
}

p,
li,
span,
div {
    unicode-bidi: plaintext;
}

a {
    text-decoration: none;
}

/* ============================= */
/* === DNN / Editor Exceptions == */
/* ============================= */

#divCb,
#divFb,
.is-row-tool.is-tool,
#DnnMediaBox,
.dnnEditState,
.dnnModuleManager,
.dnnActionMenu,
.dnnActionMenu *,
.dnnModuleActions,
.dnnModuleActions *,
.cke,
.cke *,
.CodeMirror,
.CodeMirror *,
.DNNEmptyPane {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: normal !important;
}

/* ===================== */
/* === Form Elements ==== */
/* ===================== */

input,
textarea,
select {
    direction: rtl;
    text-align: right;
}

input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[name*="email"],
input[name*="Email"],
input[name*="phone"],
input[name*="Phone"],
input[name*="mobile"],
input[name*="Mobile"],
input[name*="captcha"],
input[id*="captcha"],
input[class*="captcha"] {
    direction: ltr !important;
    text-align: left !important;
}

input::placeholder,
textarea::placeholder {
    text-align: right;
    direction: rtl;
}

/* ===================== */
/* === Skip Menu RTL ==== */
/* ===================== */

#skip-menu {
    left: auto;
    right: 0;
}

#skip-menu ul a {
    left: auto;
    right: -9999px;
}

#skip-menu ul a:focus {
    right: 0;
    left: auto;
}

/* ========================= */
/* === Text Align Helpers === */
/* ========================= */

body#Body .text-right,
.text-right {
    text-align: right !important;
}

body#Body .text-left,
.text-left {
    text-align: left !important;
}

body#Body .text-center,
.text-center {
    text-align: center !important;
}

.ltr,
[dir="ltr"] {
    direction: ltr !important;
    text-align: left !important;
}

/* ========================= */
/* === Search Popup RTL ==== */
/* ========================= */

body .search-popup-box .popup-content {
    text-align: right;
    direction: rtl;
    inset-inline-end: -15px;
    right: auto;
}

body .search-popup-box a.search {
    left: 0;
    right: auto;
}

body .search-popup-box .searchInputContainer {
    direction: rtl;
}

body .search-popup-box .searchInputContainer input {
    direction: rtl;
    text-align: right;
    padding-right: 15px;
    padding-left: 45px;
}

body .search-popup-box .searchInputContainer a.dnnSearchBoxClearText {
    right: auto;
    left: 15px;
}

/* ============================ */
/* === Full RTL Desktop Menu === */
/* ============================ */

/* کل منوی اصلی راست به چپ */
body .dng-megamenu,
body .dng-main-menu,
body .dng-main-menu .dng-megamenu,
body .dng-megamenu .primary_structure {
    direction: rtl !important;
    text-align: right !important;
}

/* آیتم‌های منو از راست به چپ چیده شوند */
body .dng-megamenu .primary_structure {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    padding-right: 0;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
}

/* هر آیتم منو */
body .dng-megamenu .primary_structure > li {
    float: none !important;
    direction: rtl !important;
    text-align: right !important;
}

/* لینک‌های منو */
body .dng-megamenu .primary_structure > li > a,
body .dng-megamenu .primary_structure > li > a > span,
body .dng-megamenu .primary_structure > li > a .menu-title,
body .dng-megamenu .primary_structure > li > a .text {
    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: plaintext;
}

/* فلش و آیکن‌های منو */
body .dng-megamenu .primary_structure > li > a .menu_arrow,
body .dng-megamenu .primary_structure > li > a .arrow,
body .dng-megamenu .primary_structure > li > a i {
    margin-right: 6px;
    margin-left: 0;
}

/* زیرمنوها */
body .dng-megamenu .sub-menu,
body .dng-megamenu .dropdown-menu,
body .dng-megamenu .megamenu,
body .dng-megamenu .mega-menu,
body .dng-megamenu .dnngo_menuslide,
body .dng-megamenu .dnngo_boxslide {
    direction: rtl !important;
    text-align: right !important;
    right: 0 !important;
    left: auto !important;
}

/* آیتم‌های داخل زیرمنو */
body .dng-megamenu .sub-menu li,
body .dng-megamenu .dropdown-menu li,
body .dng-megamenu .megamenu li,
body .dng-megamenu .mega-menu li,
body .dng-megamenu .sub-menu li a,
body .dng-megamenu .dropdown-menu li a,
body .dng-megamenu .megamenu li a,
body .dng-megamenu .mega-menu li a {
    direction: rtl !important;
    text-align: right !important;
}

/* زیرمنوی سطح دوم */
body .dng-megamenu .sub-menu .sub-menu,
body .dng-megamenu .dropdown-menu .dropdown-menu {
    right: 100% !important;
    left: auto !important;
}

/* هدر */
body .header-area,
body .header-wrap,
body .dng-main,
body .dng-main-menu {
    direction: rtl !important;
    text-align: right !important;
}

/* ============================ */
/* === Mobile Menu RTL Fix ==== */
/* ============================ */

body .mobilemenu-main,
body .mobilemenu-main .m-menu,
body .mobilemenu-main .gomenu,
body .mobilemenu-main .gomenu li,
body .mobilemenu-main .gomenu li a {
    direction: rtl !important;
    text-align: right !important;
}

body .mobilemenu-main .m-menu {
    transform: translateX(100%);
}

body .mobilemenu-main .m-menu.active,
body .mobilemenu-main.mobilemenu-open .m-menu,
body .mobilemenu-main.open .m-menu {
    transform: translateX(0);
}

body .mobilemenu-main .gomenu li .arrows {
    left: 15px;
    right: auto;
}

body .mobilemenu-main .gomenu li .arrows::after {
    margin-right: -3px;
    margin-bottom: 1px;
    transform: rotate(-135deg);
}

body .mobilemenu-main .gomenu li .arrows.active {
    transform: rotate(-90deg);
}

/* ======================== */
/* === Swiper / Carousel === */
/* ======================== */

/* ساختار اسلایدرها LTR بماند تا عملکردشان خراب نشود */
.swiper-container,
.easy-carousel,
.owl-carousel,
.slick-slider {
    direction: ltr !important;
}

/* محتوای داخل اسلاید فارسی باشد */
.swiper-container .swiper-slide,
.swiper-container .swiper-slide *,
.easy-carousel .carousel-item,
.easy-carousel .carousel-item *,
.owl-carousel .owl-item,
.owl-carousel .owl-item *,
.slick-slide,
.slick-slide * {
    direction: rtl;
    text-align: right;
}

.swiper-pagination,
.easy-carousel .carousel-pagination,
.owl-dots,
.slick-dots {
    direction: ltr !important;
    text-align: center !important;
}

.swiper-container::before {
    direction: rtl;
}

/* ===================== */
/* === Accordion RTL === */
/* ===================== */

body .dg-accordion .panel-heading button,
body .dg-accordion .accordion-content {
    text-align: right;
    direction: rtl;
}

body .dg-accordion .panel-heading button {
    padding-right: 20px;
    padding-left: 45px;
}

/* ===================== */
/* === Titles / Lines === */
/* ===================== */

body .title-14 .line.line-left {
    margin-left: auto;
    margin-right: 0;
}

body .title-14 .line.line-left::before {
    left: -9px;
    right: auto;
}

/* ===================== */
/* === Pricing Boxes === */
/* ===================== */

body .price-08 .front .pricing,
body .price-08 .front .content,
body .price-08 .back {
    text-align: right;
    direction: rtl;
}

body .price-08 .back {
    margin-left: auto;
    margin-right: -100%;
}

body .price-08 .price-features li .sico,
body .price-09 .price-features .sico {
    margin-left: 10px;
    margin-right: 0;
}

body .price-10 .unit {
    padding-right: 15px;
    padding-left: 0;
}

/* ===================== */
/* === Info Boxes RTL === */
/* ===================== */

body .info-box11:before {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 30px;
    transform: rotate(135deg);
}

body .info-box01 {
    direction: rtl;
    text-align: right;
}

body .info-box01 .icon {
    margin-right: 0;
    margin-left: 15px;
}

@media only screen and (min-width: 768px) {
    body .info-box01.text-right .icon {
        margin-right: 15px;
        margin-left: 0;
    }
}

/* ===================== */
/* === Icon Boxes RTL === */
/* ===================== */

body .icon-box01,
body .icon-box03,
body .icon-box11,
body .icon-box24,
body .icon-box29,
body .icon-box31 {
    direction: rtl;
    text-align: right;
}

body .icon-box01 .icon,
body .icon-box03 .icon {
    margin-left: 30px;
    margin-right: 0;
}

body .icon-box11 .content,
body .icon-box24,
body .icon-box29,
body .icon-box31 {
    text-align: right;
}

body .icon-box31 .icon::after {
    left: auto;
    right: 0;
}

/* =================== */
/* === Image Boxes === */
/* =================== */

body .img-box03 {
    text-align: right;
    direction: rtl;
}

body .img-box09 .pic {
    margin-left: 20px;
    margin-right: 0;
}

/* ===================== */
/* === Portfolio RTL ==== */
/* ===================== */

body .portfolio-carousel04 td:first-child {
    text-align: right;
}

body .portfolio-carousel04 td:last-child {
    text-align: left;
}

body .portfolio-carousel06 .content {
    align-items: flex-end;
    text-align: right;
}

body .portfolio-masonry-style01 .content {
    padding-left: 0;
    padding-right: 30px;
    text-align: right;
    direction: rtl;
}

body .portfolio-masonry-style01 .content::after {
    left: auto;
    right: 0;
}

body .portfolio-masonry-style07 .info::after {
    left: auto;
    right: 0;
}

body .portfolio-masonry-style07 .info {
    padding-left: 0;
    padding-right: 80px;
    text-align: right;
}

body .portfolio-masonry-style13 .content .info {
    align-items: end;
    text-align: right;
}

/* ======================= */
/* === Progressbar RTL === */
/* ======================= */

body .progressbar .bar span {
    float: left;
    transform: translateX(-50%);
}

body .progressbar02 .bar,
body .progressbar03 .bar,
body .progressbar04 .bar {
    left: auto;
    right: 0;
}

body .progressbar02 .bar span,
body .progressbar03 .bar span,
body .progressbar04 .bar span {
    left: auto;
    right: 100%;
    transform: translateX(50%);
    margin-left: 0;
    margin-right: -5px;
}

/* ========================== */
/* === Testimonials RTL ===== */
/* ========================== */

body .easy-testimonials03 {
    text-align: right;
    direction: rtl;
}

body .easy-testimonials03.easy-carousel .carousel-navigation {
    right: auto;
    left: 40px;
}

body .easy-testimonials03.easy-carousel .carousel-prev {
    left: 0;
}

body .easy-testimonials03.easy-carousel .carousel-pagination {
    text-align: right;
}

body .easy-testimonials05 .pic + .info-title {
    margin-left: 0;
    margin-right: 8px;
}

body .easy-testimonials07.easy-carousel .carousel-pagination {
    left: 0;
    right: auto;
}

body .easy-testimonials07 blockquote .description,
body .easy-testimonials07 blockquote .info {
    text-align: right;
    direction: rtl;
}

body .easy-testimonials07 blockquote .pic {
    margin-left: 6px;
    margin-right: 0;
}

body .testimonials-carousel03 .left-cont {
    padding-left: 0;
    padding-right: 40px;
}

body .swiper-testimonials01 blockquote,
body .swiper-testimonials01 .swiper-pagination {
    text-align: center;
}

/* ===================== */
/* === Counter RTL ===== */
/* ===================== */

body .counter-04 .counter .icon {
    margin-left: 5px;
    margin-right: 0;
}

/* ===================== */
/* === Forms RTL ======= */
/* ===================== */

body .powerforms-style02 {
    text-align: right;
    direction: rtl;
}

body .powerforms-style02 .fixline .form_label {
    transform-origin: right top;
}

body .powerforms-style02 input,
body .powerforms-style02 textarea,
body .powerforms-style02 select {
    direction: rtl;
    text-align: right;
}

body .powerforms-style02 input[type="email"],
body .powerforms-style02 input[type="tel"],
body .powerforms-style02 input[type="url"],
body .powerforms-style02 input[type="number"] {
    direction: ltr !important;
    text-align: left !important;
}

/* ===================== */
/* === Tabs RTL ======== */
/* ===================== */

body .tab03 ul.resp-tabs-list {
    margin: 0 0 0 -60px;
    direction: rtl;
}

body .tab03 ul.resp-tabs-list li {
    text-align: right;
    direction: rtl;
}

body .tab03 ul.resp-tabs-list li.resp-tab-active:after {
    left: 0;
    right: auto;
    transform: rotate(180deg) translate(100%, 50%);
}

body .tab03 .resp_margin {
    padding-left: 55px;
    padding-right: 120px;
}

/* ===================== */
/* === Lists RTL ======= */
/* ===================== */

body .list-08 li {
    padding-left: 0;
    padding-right: 18px;
    text-align: right;
    direction: rtl;
}

body .list-08 li::before,
body .list-08 li::after {
    right: 0;
    left: auto;
}

body .list-01 li {
    direction: rtl;
    text-align: right;
}

body .list-01 li i {
    margin-left: 20px;
    margin-right: 0;
}

/* ===================== */
/* === FAQ RTL ========= */
/* ===================== */

body .faq-01,
body .faq-02,
body .faq-03 {
    text-align: right;
    direction: rtl;
    padding-left: 0;
    padding-right: 48px;
}

body .faq-01 .title::before, 
body .faq-01 .title::after,
body .faq-02 .title::before, 
body .faq-02 .title::after,
body .faq-03 .title::before, 
body .faq-03 .title::after {
    right: -48px;
    left: auto;
}

/* ===================== */
/* === Slider Box RTL == */
/* ===================== */

body .slider-box02.swiper-container .left-cont {
    margin-left: -120px;
    margin-right: auto;
}

body .slider-box02.swiper-container > .title {
    right: 0;
    left: auto;
    text-align: right;
}

body .slider-box02.swiper-container > .title::after {
    margin-left: auto;
    margin-right: 0;
}

.slider-box01.swiper-container::before {
    right: auto !important;
    left: -20px !important;
}

.slider-box01.swiper-container div.swiper-slide,
.slider-box01.swiper-container div.swiper-slide .row {
    text-align: right !important;
    direction: rtl;
}

.slider-box01.swiper-container .swiper-button-prev {
    left: auto !important;
    right: calc(41% + 234px) !important;
}

.slider-box01.swiper-container .swiper-pagination {
    left: auto !important;
    right: calc(41% + 89px) !important;
}

.slider-box01.swiper-container .swiper-button-next {
    left: auto !important;
    right: calc(41% + 20px) !important;
}

@media only screen and (max-width: 767px) {
    .slider-box01.swiper-container .swiper-button-prev {
        right: 214px !important;
    }

    .slider-box01.swiper-container .swiper-pagination {
        right: 69px !important;
    }

    .slider-box01.swiper-container .swiper-button-next {
        right: 0 !important;
    }
}

/* ===================== */
/* === Timeline RTL ==== */
/* ===================== */

body .time-line01::after {
    width: 0;
}

body .time-line01 .date::after {
    left: auto;
    right: -19px;
}

body .time-line02 {
    padding-left: 0;
    padding-right: 45px;
    direction: rtl;
    text-align: right;
}

body .time-line02::before {
    left: auto;
    right: 0;
}

body .time-line02::after {
    left: auto;
    right: 9px;
}

body .time-line03 .description,
body .time-line03:nth-child(2n) .title-icon {
    text-align: right;
    direction: rtl;
}

body .time-line03 .title-icon,
body .time-line03:nth-child(2n) .description {
    text-align: left;
}

/* ===================== */
/* === Blog Box RTL ==== */
/* ===================== */

body .blogbox-08 {
    direction: rtl;
    text-align: right;
}

body .blogbox-08 .item-footer .item-tool > span .sico {
    margin-left: 8px;
    margin-right: 0;
}

/* ===================== */
/* === Tables RTL ====== */
/* ===================== */

table {
    direction: rtl;
}

td,
th {
    text-align: right;
}

/* ===================== */
/* === Bootstrap Fix === */
/* ===================== */

.row {
    direction: rtl;
}

[class*="col-"] {
    direction: rtl;
    text-align: right;
}

/* اسلایدرها */
.swiper-container .row,
.easy-carousel .row,
.owl-carousel .row,
.slick-slider .row {
    direction: rtl;
}

/* ===================== */
/* === Icons Spacing === */
/* ===================== */

.fa,
.fas,
.far,
.fab,
.sico {
    margin-left: 6px;
    margin-right: 0;
}

.icon-right .fa,
.icon-right .fas,
.icon-right .far,
.icon-right .fab,
.icon-right .sico {
    margin-right: 6px;
    margin-left: 0;
}

/* ===================== */
/* === Media Elements === */
/* ===================== */

img,
video,
iframe {
    max-width: 100%;
}

video,
iframe {
    direction: ltr;
}

/* ===================== */
/* === Content Areas ==== */
/* ===================== */

body .content,
body .container,
body .container-fluid,
body .Normal,
body .NormalTextBox,
body .DNNModuleContent {
    direction: rtl;
    text-align: right;
}

/* ابزارهای مدیریتی DNN */
body .dnnActionMenu,
body .dnnActionMenu *,
body .dnn_mact,
body .dnn_mact *,
body .DnnModule,
body .DnnModule .dnnActionMenu {
    unicode-bidi: normal;
}

/* ایمیل، تلفن، لینک و متن‌های انگلیسی */
a[href^="mailto:"],
a[href^="tel:"],
.ltr-text,
.email,
.phone,
.url,
.website {
    direction: ltr !important;
    unicode-bidi: embed !important;
}

/* ===================== */
/* === Final Menu Force = */
/* ===================== */

/* اگر قالب یا Bootstrap دوباره منو را برگرداند، این بخش آخر اجبار می‌کند منو RTL بماند */
body .dng-megamenu ul,
body .dng-megamenu li,
body .dng-megamenu a {
    direction: rtl !important;
    text-align: right !important;
}

body .dng-megamenu .primary_structure {
    direction: rtl !important;
    flex-direction: row !important;
}

body .dng-megamenu .primary_structure > li {
    float: none !important;
}