/*
Theme Name: Fartak Phlox Child
Theme URI: https://fartaksanatgiti.com/
Description: Custom child theme for Fartak Sanat Giti.
Author: Fartak Sanat Giti
Template: phlox
Version: 1.0.0
Text Domain: fartak-phlox-child
*/

/* Custom CSS goes below this line */
@font-face {
  font-family: 'IRANYekanX';
  src: url('https://fartaksanatgiti.com/wp-content/uploads/2025/10/IRANYekanX-Light.woff2') format('woff2'),
       url('https://fartaksanatgiti.com/wp-content/uploads/2025/10/IRANYekanX-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekanX';
  src: url('https://fartaksanatgiti.com/wp-content/uploads/2025/10/IRANYekanX-Medium.woff2') format('woff2'),
       url('https://fartaksanatgiti.com/wp-content/uploads/2025/10/IRANYekanX-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekanX';
  src: url('https://fartaksanatgiti.com/wp-content/uploads/2025/10/IRANYekanX-Bold.woff2') format('woff2'),
       url('https://fartaksanatgiti.com/wp-content/uploads/2025/10/IRANYekanX-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* اعمال فونت به کل سایت (هم دسکتاپ هم موبایل) */
body, html, p, h1, h2, h3, h4, h5, h6, button, a, input, textarea {
  font-family: 'IRANYekanX', sans-serif !important;
}

/* مخصوص موبایل برای جلوگیری از override قالب */
@media (max-width: 768px) {
  body, html, p, h1, h2, h3, h4, h5, h6, .fartak-product-desc, .fartak-product-title {
    font-family: 'IRANYekanX', sans-serif !important;
  }
}


/* ========== استایل کلی صفحات محصولات ========== */
.product-archive {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
  font-family: "IRANSans", sans-serif;
}

/* تیتر اصلی صفحات محصولات */
.product-archive h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #0a2a4a;
  margin-bottom: 40px;
  position: relative;
}

.product-archive h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0073aa;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ========== گرید محصولات ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 35px;
  justify-content: center;
}

/* ========== کارت هر محصول ========== */
.product-item {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #0073aa;
}

/* تصویر محصول */
.product-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.product-item:hover img {
  filter: brightness(1.05);
}

/* محتوای کارت محصول */
.product-content {
  padding: 18px;
  text-align: center;
}

.product-content h2 {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1d;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  min-height: 45px;
}

/* لینک به صفحه جزئیات */
.product-content a {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  background: #0073aa;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s ease;
}

.product-content a:hover {
  background: #005b88;
}

/* ========== واکنش‌گرایی ========== */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }

  .product-item img {
    height: 180px;
  }

  .product-content h2 {
    font-size: 15px;
  }

  .product-content p {
    font-size: 13px;
  }
}

/* تغییر رنگ دکمه در حالت هاور */
.product-content a:hover {
  background: #F7C325 !important;
  color: #020202 !important;
}

.menu-item .menu-item-type-custom{
	text-align: center !important;
}

/* ============ Fartak Product Page ============ */

/* جلوگیری از تداخل با هدر */
body.single-products #page,
body.single-products header,
body.single-products .elementor-location-header {
    position: relative;
    z-index: 10;
}
body.single-products main.fartak-product-container {
    position: relative;
    z-index: 1;
}

/* ساختار محصول */
.fartak-product-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
    direction: rtl;
}

.fartak-product-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 40px;
}

.fartak-product-image {
    flex: 1;
    text-align: center;
}
.fartak-product-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.fartak-product-content {
    flex: 1;
}
.fartak-product-title {
    font-size: 28px;
    color: #222;
    margin-bottom: 20px;
    font-weight: 700;
}
.fartak-product-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.9;
    margin-bottom: 30px;
}
.fartak-product-btn {
    background: #005bbb;
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s ease;
}
.fartak-product-btn:hover {
    background: #003f8c;
}

/* ============ Popup ============ */
.fartak-popup-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-in-out;
}
.fartak-popup-overlay.show-popup {
    opacity: 1;
    visibility: visible;
}

.fartak-popup {
    background: #fff;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    text-align: center;
    width: 90%;
    max-width: 420px;
    position: relative;
    animation: popupFade 0.3s ease;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 26px;
    color: #444;
    cursor: pointer;
}
.fartak-popup h2 {
    margin-bottom: 15px;
    color: #222;
}
.fartak-popup a {
    color: #005bbb;
    text-decoration: none;
}
.fartak-popup a:hover {
    text-decoration: underline;
}
@keyframes popupFade {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* استایل دکمه اطلاعات تماس مثل دکمه دسته‌بندی */
.fartak-product-btn {
  display: block;
  background: #005bbb; /* آبی برند */
	margin: auto;
  color: #fff !important;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fartak-product-btn:hover {
  background: #FFD700; /* زرد برند */
  color: #000 !important;
}

/* در حالت موبایل، عنوان و توضیحات وسط‌چین */
@media (max-width: 768px) {
  .fartak-product-content {
    text-align: center !important;
  }
  .fartak-product-title {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  .fartak-product-desc {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  .fartak-product-btn {
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
  }
}

/* وسط‌چین کردن عنوان، توضیحات و دکمه در موبایل */
@media (max-width: 768px) {
  .fartak-product-content,
  .fartak-product-content h1.fartak-product-title,
  .fartak-product-content .fartak-product-desc,
  .fartak-product-content .fartak-product-btn {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }

  /* برای اطمینان از عرض دکمه */
  .fartak-product-btn {
    display: block !important;
    margin: auto !important;
  }

  /* کمی فاصله برای زیبایی */
  .fartak-product-title {
    margin-bottom: 10px !important;
  }

  .fartak-product-desc p {
    margin-bottom: 15px !important;
  }
}


/* ریسپانسیو */
@media (max-width: 768px) {
    .fartak-product-section {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    .fartak-product-image img {
        max-width: 100%;
    }
}

.fartak-product-section {
    display: flex;
    flex-direction: column; /* عکس بالا، متن پایین */
    align-items: center;
    text-align: center;
    gap: 25px;
}

.fartak-product-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.fartak-product-content {
    width: 100%;
    max-width: 800px;
    text-align: left; /* اگه می‌خوای متن انگلیسی چپ‌چین باشه */
}

.fartak-product-title {
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .fartak-product-content {
        text-align: center;
    }
}

table tr th {
    background-color: #2c6da4;
}

a.fartak-link-btn {
  background: #005bbb;
  color: #fff;
  padding: 10px 10px;
  border-radius: 0.625rem;
  text-decoration: none;
}

a.fartak-link-btn:hover {
  background: #FFD700;
  color: #111;
}

.readmore a.aux-read-more {
    display: inline-block !important;
    background-color: #005bbb !important; /* آبی لوگو */
    color: #fff !important; /* متن سفید */
    padding: 10px 22px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.readmore a.aux-read-more:hover {
    background-color: #FFD700 !important; /* زرد */
    color: #000 !important; /* متن مشکی */
}

input.submit,
#submit {
    display: inline-block !important;
    background-color: #005bbb !important; /* آبی لوگو */
    color: #fff !important; /* متن سفید */
    padding: 10px 22px !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

input.submit:hover,
#submit:hover {
    background-color: #FFD700 !important; /* زرد */
    color: #000 !important; /* متن مشکی */
}

/* ==========================================
   FARTAK SINGLE PRODUCT
   Optimized & Responsive
   ========================================== */

.fartak-single-product {
    --primary: #07549e;
    --primary-hover: #063d73;
    --dark: #172d49;
    --border: #e4eaf1;

    width: min(100% - 32px, 1200px);
    margin: 32px auto 60px;
    direction: rtl;
}

.fartak-single-product *,
.fartak-single-product *::before,
.fartak-single-product *::after {
    box-sizing: border-box;
}

/* Main product box */

.fartak-single-product > article.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "header image"
        "content image";
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 16px 28px;

    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 24px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 5px 22px rgb(12 45 85 / 6%);
}

/* Product title and categories */

.fartak-single-product .fartak-single-header {
    grid-area: header;
    min-width: 0;
    margin: 0;
    padding: 0;
    align-self: start;
}

.fartak-single-product .fartak-single-title {
    margin: 0 0 14px;
    padding: 0;
    color: var(--dark);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.6;
    text-align: right;
}

.fartak-single-product .fartak-single-category {
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--border);
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
    text-align: right;
}

.fartak-single-product .fartak-single-category a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.fartak-single-product .fartak-single-category a:hover {
    text-decoration: underline;
}

/* Technical information button */

.fartak-single-product .fartak-single-content {
    grid-area: content;
    min-width: 0;
    margin: 0;
    padding: 0;
    align-self: start;
}

.fartak-single-product .fartak-single-content > div {
    text-align: right !important;
}

.fartak-single-product .fartak-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: background .2s ease;
}

.fartak-single-product .fartak-link-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* Featured image - No outer frame */

.fartak-single-product > article.products .fartak-single-image {
    grid-area: image;
    display: flex;
    align-items: flex-start;
    justify-content: center;

    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.fartak-single-product > article.products .fartak-single-image img {
    display: block;
    width: auto;
    max-width: 420px;
    height: auto;
    max-height: 340px;
    margin: 0 auto;
    padding: 0;

    object-fit: contain;
    border: none;
    border-radius: 15px;
    box-shadow: none;
}

/* Related products */

.fartak-single-product .fartak-related-products {
    margin: 48px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--border);
}

.fartak-single-product .fartak-related-title {
    margin: 0 0 24px;
    padding: 0;
    color: var(--dark);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.6;
    text-align: right;
}

.fartak-single-product .fartak-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* Related product card */

.fartak-single-product .fartak-related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;

    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgb(12 45 85 / 7%);
    transition: transform .25s ease, box-shadow .25s ease;
}

.fartak-single-product .fartak-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgb(12 45 85 / 12%);
}

/* Related product image */

.fartak-single-product .fartak-related-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0 14px;
    background: #f8fafc;
    overflow: hidden;
}

.fartak-single-product .fartak-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px ;
}

/* Related product information */

.fartak-single-product .fartak-related-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 18px;
}

.fartak-single-product .fartak-related-content h3 {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
}

.fartak-single-product .fartak-related-content h3 a {
    color: var(--dark);
    text-decoration: none;
}

.fartak-single-product .fartak-related-content h3 a:hover {
    color: var(--primary);
}

/* Related product button */

.fartak-single-product .fartak-related-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 18px;

    background: var(--primary);
    border-radius: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.fartak-single-product .fartak-related-button:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* Tablet */

@media (max-width: 991px) {
    .fartak-single-product .fartak-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .fartak-single-product {
        width: calc(100% - 24px);
        margin: 20px auto 40px;
    }

    .fartak-single-product > article.products {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "image"
            "header"
            "content";
        grid-template-rows: auto;
        gap: 18px;
        padding: 16px;
    }

    .fartak-single-product .fartak-single-title {
        font-size: 23px;
    }

    .fartak-single-product > article.products
    .fartak-single-image img {
        max-width: 100%;
        max-height: 300px;
    }

    .fartak-single-product .fartak-related-products {
        margin-top: 35px;
        padding-top: 22px;
    }

    .fartak-single-product .fartak-related-title {
        font-size: 21px;
    }

    .fartak-single-product .fartak-related-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

/* Accessibility */

.fartak-single-product a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .fartak-single-product .fartak-related-card,
    .fartak-single-product .fartak-link-btn {
        transition: none;
    }
}

/*article archive for align the paragraph on each box of article archive*/

div.ekit-row.no-gutters{
    display:block !important;
}

div.ekit-col-12.order-1{
    max-width:100% !important;
}

/*استایل ساید بار تک مقاله*/

/* ===================================
   FARTAK | SINGLE POST SIDEBAR
=================================== */

.elementor-element-c76a99a {
    --sidebar-blue: #00509a;
    --sidebar-border: #e3eaf3;
    --sidebar-text: #26354a;

    direction: rtl;
    text-align: right;
    font-size: 14px;
    line-height: 1.9;
    color: var(--sidebar-text);
}

.elementor-element-c76a99a > .elementor-widget-container {
    background: #fff;
    padding: 22px;
    border: 1px solid var(--sidebar-border);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 55, 110, .04);
}

.elementor-element-c76a99a .widget-container {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Headings */

.elementor-element-c76a99a .wp-block-heading,
.elementor-element-c76a99a .wp-block-search__label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
    color: #172b48;
    margin: 0 0 14px;
}

.elementor-element-c76a99a .wp-block-heading {
    padding-right: 10px;
    border-right: 3px solid #ffd94a;
}

.elementor-element-c76a99a .wp-block-heading em {
    font-style: normal;
}

/* Search */

.elementor-element-c76a99a .wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--sidebar-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.elementor-element-c76a99a .wp-block-search__input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    box-shadow: none;
}

.elementor-element-c76a99a .wp-block-search__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--sidebar-blue);
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}

.elementor-element-c76a99a .wp-block-search__button:hover {
    background: #003b75;
}

.elementor-element-c76a99a .search-icon {
    fill: currentColor;
}

/* Sections */

.elementor-element-c76a99a #block-9,
.elementor-element-c76a99a #block-10,
.elementor-element-c76a99a #block-12 {
    margin-top: 26px;
}

/* Categories */

.elementor-element-c76a99a .wp-block-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.elementor-element-c76a99a #block-8 li a {
    display: block;
    padding: 9px 12px;
    background: #f6f9fd;
    border-radius: 8px;
    color: var(--sidebar-text);
    font-size: 13px;
    text-decoration: none;
    transition: .2s ease;
}

.elementor-element-c76a99a #block-8 li a:hover {
    background: #eaf2fc;
    color: var(--sidebar-blue);
}

/* Tags */

.elementor-element-c76a99a #block-11 ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.elementor-element-c76a99a #block-11 li {
    margin: 0;
}

.elementor-element-c76a99a #block-11 a {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid var(--sidebar-border);
    border-radius: 7px;
    color: #526176;
    background: #f8fafd;
    font-size: 12px;
    line-height: 1.8;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: .2s ease;
}

.elementor-element-c76a99a #block-11 a:hover {
    color: #fff;
    background: var(--sidebar-blue);
    border-color: var(--sidebar-blue);
}

/* Social */

.elementor-element-c76a99a .wp-block-social-links {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.elementor-element-c76a99a .wp-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: transform .2s;
}

.elementor-element-c76a99a .wp-social-link:hover {
    transform: translateY(-3px);
}

/* Newsletter */

.elementor-element-c76a99a #block-14 {
    margin-top: 26px;
}

.elementor-element-c76a99a #block-14 .ff-el-group {
    margin-bottom: 10px;
}

.elementor-element-c76a99a #block-14 input[type="email"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--sidebar-border);
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    box-shadow: none;
    transition: border-color .2s;
}

.elementor-element-c76a99a #block-14 input[type="email"]:focus {
    border-color: var(--sidebar-blue);
    outline: none;
}

.elementor-element-c76a99a #block-14 .ff-btn-submit {
    width: 100%;
    min-height: 46px;
    margin: 0;
    border: 0;
    border-radius: 9px;
    background: var(--sidebar-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.elementor-element-c76a99a #block-14 .ff-btn-submit:hover {
    background: #003b75;
}

/* Responsive */

@media (max-width: 767px) {
    .elementor-element-c76a99a > .elementor-widget-container {
        padding: 16px;
        border-radius: 12px;
    }
}

/*استایل باکس نظرات در صفحه تکی مقالات*/
/* ==================================
   FARTAK | POST COMMENTS
================================== */

.elementor-element-199b7c4 {
    --comment-primary: #00509a;
    --comment-border: #e2eaf3;
    --comment-text: #24364d;

    width: 100%;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

/* Main Box */

.elementor-element-199b7c4 .wpr-comments-wrap {
    width: 100%;
    padding: 30px;
    background: #f7f9fc;
    border: 1px solid var(--comment-border);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 55, 110, .04);
}

.elementor-element-199b7c4 #respond {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Title */

.elementor-element-199b7c4 .wpr-comment-reply-title {
    margin: 0 0 22px;
    padding: 0 12px 0 0;
    border-right: 3px solid var(--comment-primary);
    color: #172b48;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.8;
}

/* Form Layout */

.elementor-element-199b7c4 #wpr-comment-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.elementor-element-199b7c4 #wpr-comment-form p {
    margin: 0;
}

/* Logged-in Information */

.elementor-element-199b7c4 .logged-in-as {
    color: #68788d;
    font-size: 13px;
    line-height: 2;
}

.elementor-element-199b7c4 .logged-in-as a {
    color: var(--comment-primary);
    text-decoration: none;
}

.elementor-element-199b7c4 .logged-in-as a:hover {
    text-decoration: underline;
}

/* Fields */

.elementor-element-199b7c4 #wpr-comment-form
.wpr-comment-form-text {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.elementor-element-199b7c4 #wpr-comment-form label {
    display: block;
    margin-bottom: 9px;
    color: var(--comment-text);
    font-size: 14px;
    font-weight: 600;
}

.elementor-element-199b7c4 #wpr-comment-form label span {
    color: #e05252;
}

/* Input & Textarea */

.elementor-element-199b7c4 #wpr-comment-form
:is(textarea, input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"])) {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid var(--comment-border);
    border-radius: 10px;
    outline: none;
    color: var(--comment-text);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.elementor-element-199b7c4 #wpr-comment-form textarea {
    min-height: 160px;
    height: 160px;
    resize: vertical;
    line-height: 2;
}

.elementor-element-199b7c4 #wpr-comment-form
:is(textarea, input):focus {
    border-color: var(--comment-primary);
    box-shadow: 0 0 0 3px rgba(0, 80, 154, .08);
}

.elementor-element-199b7c4 #wpr-comment-form
::placeholder {
    color: #9ba8b9;
    opacity: 1;
}

/* Submit Button */

.elementor-element-199b7c4 .form-submit {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.elementor-element-199b7c4 #wpr-submit-comment {
    width: auto;
    min-width: 160px;
    min-height: 46px;
    margin: 0;
    padding: 11px 28px;
    border: 0;
    border-radius: 9px;
    background: var(--comment-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.elementor-element-199b7c4 #wpr-submit-comment:hover {
    background: #003d78;
    transform: translateY(-2px);
}

/* Cancel Reply */

.elementor-element-199b7c4 #cancel-comment-reply-link {
    margin-right: 12px;
    color: #d94e4e;
    font-size: 12px;
    text-decoration: none;
}

/* Responsive */

@media (max-width: 767px) {

    .elementor-element-199b7c4 .wpr-comments-wrap {
        padding: 18px;
        border-radius: 12px;
    }

    .elementor-element-199b7c4 .wpr-comment-reply-title {
        margin-bottom: 18px;
        font-size: 17px;
    }

    .elementor-element-199b7c4 #wpr-comment-form {
        gap: 15px;
    }

    .elementor-element-199b7c4 #wpr-comment-form textarea {
        min-height: 140px;
        height: 140px;
    }

    .elementor-element-199b7c4 #wpr-submit-comment {
        width: 100%;
    }
}

/* ==================================
   FARTAK | POST BREADCRUMB
================================== */

.fartak-post-breadcrumb {
    --bc-primary: #00509a;
    --bc-text: #172b48;
    --bc-muted: #94a3b8;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    width: 100%;
    margin: 0;
    padding: 10px 0;

    direction: rtl;
    text-align: right;
    font-size: 13px;
    line-height: 1.9;
}

/* Links */
.fartak-post-breadcrumb > a {
    color: var(--bc-primary);
    font-size: inherit;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

.fartak-post-breadcrumb > a:hover {
    color: #17a9c4;
}

/* Separator */
.fartak-post-breadcrumb > .separator {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--bc-muted);
    font-size: 17px;
    line-height: 1;
}

/* Current Post */
.fartak-post-breadcrumb > [aria-current="page"] {
    color: var(--bc-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Accessibility */
.fartak-post-breadcrumb > a:focus-visible {
    outline: 2px solid var(--bc-primary);
    outline-offset: 3px;
}

/* Mobile */
@media (max-width: 767px) {
    .fartak-post-breadcrumb {
        gap: 6px;
        padding: 8px 0;
        font-size: 12px;
    }

    .fartak-post-breadcrumb > .separator {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fartak-post-breadcrumb > a {
        transition: none;
    }
}


/* =====================================
   FARTAK | ARCHIVE SIDEBAR
===================================== */

.fartak-archive-sidebar {
    --fs-blue: #00509a;
    --fs-dark: #172b48;
    --fs-border: #e3eaf3;
    --fs-yellow: #ffd94a;

    width: 100%;
    min-width: 0;
    direction: rtl;
    text-align: right;
    color: var(--fs-dark);
    font-size: 14px;
    line-height: 1.9;
}

/* Main Container */

.fartak-archive-sidebar > .elementor-widget-container {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--fs-border);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 55, 110, .04);
}

/* Reset Default Widgets */

.fartak-archive-sidebar .widget-container {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.fartak-archive-sidebar .widget-container + .widget-container {
    margin-top: 14px;
}

/* Section Headings */

.fartak-archive-sidebar .wp-block-heading,
.fartak-archive-sidebar .wp-block-search__label {
    display: block;
    margin: 0 0 14px;
    color: var(--fs-dark);
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.7;
}

.fartak-archive-sidebar .wp-block-heading {
    padding-right: 10px;
    border-right: 3px solid var(--fs-yellow);
}

.fartak-archive-sidebar .wp-block-heading em {
    font-style: normal;
}

/* Search */

.fartak-archive-sidebar .wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--fs-border);
    border-radius: 10px;
    overflow: hidden;
}

.fartak-archive-sidebar .wp-block-search__input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
    font-size: 13px;
}

.fartak-archive-sidebar .wp-block-search__button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--fs-blue);
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}

.fartak-archive-sidebar .wp-block-search__button:hover {
    background: #003b75;
}

.fartak-archive-sidebar .search-icon {
    fill: currentColor;
}

/* Category Lists */

.fartak-archive-sidebar .wp-block-categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fartak-archive-sidebar .wp-block-categories-taxonomy-category li {
    margin: 0 0 7px;
}

.fartak-archive-sidebar .wp-block-categories-taxonomy-category a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f6f9fd;
    color: var(--fs-dark);
    font-size: 13px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.fartak-archive-sidebar .wp-block-categories-taxonomy-category a:hover {
    background: #eaf2fc;
    color: var(--fs-blue);
}

/* Tags */

.fartak-archive-sidebar .wp-block-categories-taxonomy-post_tag {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fartak-archive-sidebar .wp-block-categories-taxonomy-post_tag li {
    margin: 0;
}

.fartak-archive-sidebar .wp-block-categories-taxonomy-post_tag a {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid var(--fs-border);
    border-radius: 7px;
    background: #f8fafd;
    color: #526176;
    font-size: 12px;
    line-height: 1.8;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background .2s, color .2s;
}

.fartak-archive-sidebar .wp-block-categories-taxonomy-post_tag a:hover {
    background: var(--fs-blue);
    border-color: var(--fs-blue);
    color: #fff;
}

/* Social Icons */

.fartak-archive-sidebar .wp-block-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.fartak-archive-sidebar .wp-social-link {
    border-radius: 10px;
    transition: transform .2s;
}

.fartak-archive-sidebar .wp-social-link:hover {
    transform: translateY(-3px);
}

/* Newsletter */

.fartak-archive-sidebar .fluentform {
    width: 100%;
}

.fartak-archive-sidebar .fluentform .ff-el-group {
    margin-bottom: 10px;
}

.fartak-archive-sidebar .fluentform input[type="email"] {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--fs-border);
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    box-shadow: none;
}

.fartak-archive-sidebar .fluentform input[type="email"]:focus {
    border-color: var(--fs-blue);
    outline: none;
}

.fartak-archive-sidebar .fluentform .ff-btn-submit {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 9px;
    background: var(--fs-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.fartak-archive-sidebar .fluentform .ff-btn-submit:hover {
    background: #003b75;
}

/* Accessibility */

.fartak-archive-sidebar a:focus-visible,
.fartak-archive-sidebar button:focus-visible {
    outline: 2px solid var(--fs-blue);
    outline-offset: 2px;
}

/* Responsive */

@media (max-width: 767px) {
    .fartak-archive-sidebar > .elementor-widget-container {
        padding: 16px;
        border-radius: 12px;
    }

    .fartak-archive-sidebar .wp-block-heading {
        font-size: 14px;
    }

    .fartak-archive-sidebar .wp-block-categories-taxonomy-post_tag {
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fartak-archive-sidebar a,
    .fartak-archive-sidebar button,
    .fartak-archive-sidebar .wp-social-link {
        transition: none;
    }
}
