/* =========================
   FONTS
========================= */
@font-face {
    font-family: 'Dana';
    src: url('../fonts/Dana.woff2') format('woff2'),
         url('../fonts/Dana.woff') format('woff'),
         url('../fonts/Dana.ttf') format('truetype');
    font-family: 'Peyda';
    src: url('../fonts/Peyda.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* =========================
   ROOT COLORS
========================= */
:root {
    --primary: #003d91;
    --primary-light: #006bff;
    --dark-gray: #4b4b4b;
    --light-bg: #fafafa;
    --primary-hover-color: #0056b3;
    --success-color: #28a745; /* سبز */
    --success-hover-color: #218838;
    --danger-color: #dc3545; /* قرمز */
    --danger-hover-color: #c82333;
    --warning-color: #ffc107; /* زرد */
    --info-color: #17a2b8; /* فیروزه‌ای */
    --light-color: #f8f9fa;
    --medium-color: #dee2e6;
    --dark-color: #343a40;
    --gray-light: #e9ecef;
    --gray-medium: #adb5bd;
    --gray-dark: #6c757d;
    --invoice-bg: #ffffff;
    --invoice-border-color: #e0e0e0;
    --invoice-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --input-border-color: #ced4da;
    --input-focus-shadow: 0 0 0 2px rgba(0, 105, 217, 0.3);
    --dropdown-shadow: 0 4px 8px rgba(0,0,0,0.1);
    --table-header-bg: #007bff;
    --table-row-hover-bg: #f1f1f1;
    --total-bg: #f8f9fa;
    --text-color-dark: #212529;
    --text-color-muted: #6c757d;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --speed-img: 1200ms;       
    --speed-fade: 1000ms;      
    --ease: cubic-bezier(.22,1,.36,1);
    --text-delay: 250ms;
}

/* =========================
   GLOBAL
========================= */
html, body {
    height: 100%;
    font-family: 'Peyda';
}

body {
    font-family: 'Peyda';
    margin: 0;
    padding: 0;
    color: var(--dark-gray);
    direction: rtl;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--light-bg);
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1{
    font-size: 2.0em;
    color: var(--primary);
}


/* =========================
   HEADER TOP
========================= */
.header-top {
    padding: 20px 50px; /* فاصله چپ و راست اضافه شد */
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================
   BRAND AREA
========================= */
.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-area .logo {
    width: 55px;
}

.brand-area .brand-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

/* =========================
   SEARCH AREA
========================= */
.search-area {
    position: relative;
    width: 35%;
    display: flex;
    align-items: center;
}

.search-area input {
    width: 100%;
    padding: 12px 12px 12px 55px;
    border-radius: 20px;
    border: 1px solid var(--input-border-color);
    font-size: 14px;
    box-sizing: border-box;
    font-family: 'Peyda';
}

.search-area input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.3);
    outline: none;
}

.search-area button {
    position: absolute;
    left: 0;
    top: 0;
    border: none;
    background: var(--primary);
    width: 55px;
    height: 100%;
    border-radius: 20px 0 0 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    overflow: visible;
    padding: 0;
}

.search-area button svg {
    width: 18px;
    height: 18px;
    display: block;
}

.search-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: none;
    z-index: 999;
    max-height: 420px;
    overflow-y: auto;
}

.search-group-title {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: bold;
    color: #666;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.search-item {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
    color: #222;
    transition: background 0.2s ease;
}

.search-item:hover {
    background: #e9ecef;
    color: var(--primary);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item-product {
    background-color: #f5faff;
}

.search-item-blog {
    background-color: #fff8f0;
}

.search-empty {
    padding: 14px;
    color: #777;
    font-size: 14px;
}

/* =========================
   CTA PHONE
========================= */
.cta-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoom 2s infinite;
}

@keyframes zoom {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-text {
    text-align: right; /* متن سمت راست */
}

.cta-text span {
    display: block;
    font-size: 13px;
    color: #555;
}

.cta-text a {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: block;
    margin-top: 2px;
}


/* =========================
   DIVIDER
========================= */
.divider {
    height: 1px;
    background: #eee;
}

/* =========================
   MAIN MENU
========================= */
.header-menu {
    background: #fff;
    position: relative;
}

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    justify-content: flex-start;
}

.header-menu .container{
    max-width: 100%;
    margin: 0;
    padding-right: 40px;
}

.menu li {
    position: relative;
}

.menu li a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 5px;
    transition: color 0.3s;
}

.menu li a:hover {
    color: var(--primary);
    cursor: pointer;
}

.menu > li > a {
    justify-content: flex-start;
}

.menu-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #333;
}


/* =========================
   MEGA MENU
========================= */

.mega-parent {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    background: #fff;
    min-width: 400px;
    min-height: fit-content;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 999;
    direction: rtl;
}

.mega-parent:hover .mega-menu {
    display: flex;
}

/* ستون دسته‌ها (راست) */
.mega-categories {
    width: 200px;
    background: #f9fafb;
    border-left: 1px solid var(--invoice-border-color);
    display: flex;
    flex-direction: column;
}

.mega-category {
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.mega-category-img{
    width: 25px;
    height: 25px;
    object-fit: cover;
    display: block;
}

.mega-category:hover,
.mega-category.active {
    background: #f1f5f9;
    font-weight: 600;
}

.mega-category.active {
    font-weight: normal;
    background: transparent;
}

/* بخش محتوا (چپ) */
.mega-content {
    flex: 1;
    padding: 25px 35px;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

/* پنل‌ها */
.mega-panel {
    display: none;
}

.mega-panel.active {
    display: block;
}

.mega-panel.active ~ .mega-content,
.mega-content:has(.mega-panel.active) {
    display: flex;
}

.mega-columns {
    display: flex;
    gap: 40px;
}

.col h4 {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
}

.col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.col ul li {
    font-size: 14px;
    cursor: pointer;
}

.col ul li:hover {
    color: var(--primary);
}

/* =========================
   STICKY HEADER
========================= */
.main-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
    .mega-menu {
        min-width: 600px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        gap: 0;
    }
    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        min-width: auto;
        padding: 15px 0;
        display: none;
    }
    .mega-parent:hover .mega-menu {
        display: block;
    }
}

/* =========================
   NEWS BAR
========================= */
.header-news {
    background: rgb(242,236,227);
    padding: 8px 0;
    overflow: hidden;
    font-size: 13px;
}

.news-scroll {
    overflow: hidden;
    flex: 1;
    direction: rtl;
    position: relative;
}

.news-track {
    display: inline-flex;
    gap: 50px;
    animation: scrollNews 25s linear infinite;
    white-space: nowrap;
}

.news-track span {
    display: flex;
    align-items: center;
    gap: 5px; /* فاصله بین متن و عدد */
}

.news-track span + span {
    margin-left: 50px; /* فاصله بین هر آیتم دلار، طلا، سکه */
}

.news-scroll:hover .news-track {
    animation-play-state: paused;
}

@keyframes scrollNews {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.news-text {
    color: var(--primary); 
    font-weight: 600;
}

.news-number {
    color: var(--secondary); 
    font-weight: 700;
    font-family: 'Peyda';
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .news-track {
        gap: 30px;
        font-size: 12px;
    }
}

/* =========================
   HAMBURGER MOBILE MENU
========================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
}

@media (max-width: 992px) {

    .menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 280px;
        height: 100%;
        background:#fff;
        flex-direction: column;
        padding: 30px;
        transition: .4s;
        overflow-y: auto;
    }

    .menu.active {
        right: 0;
    }

    .hamburger {
        display:flex;
    }

    .mega-menu {
        position: static;
        padding: 20px 0;
        box-shadow: none;
    }

    .mega-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================
   FOOTER 
========================= */
.main-footer {
    background: linear-gradient(180deg, var(--primary) 45%, 
    color-mix(in srgb, var(--primary) 100%, white) 35%, 
    color-mix(in srgb, var(--primary) 70%, white) 100%, #fff 100%);
    color: #fff;
    font-family: 'Peyda';
    position:relative;
    margin-top:20px;
}

/* Container */
.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== Social ===== */
.footer-social {
    background: #fff;
    border-top: 4px solid var(--primary);
    padding: 15px 0;
}

.footer-social .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-social-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social-content {
    position: relative;
}

.footer-social-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.footer-social-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.footer-social-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    margin-top: 10px;
    border-radius: 2px;
}

.footer-social-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.footer-social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f2f4f8;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    transition: all .3s ease;
}

.social-icon:hover {
    background-color: #fff;
    transform: translateY(-5px);
}

/* آیکون‌ها */
.aparat { background-image: url('/assets/images/aparat.svg'); }
.telegram { background-image: url('/assets/images/telegram.svg'); }
.twitter { background-image: url('/assets/images/twitter.svg'); }
.linkedin { background-image: url('/assets/images/linkedin.svg'); }
.instagram { background-image: url('/assets/images/instagram.svg'); }

/* ===== Columns ===== */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 30px 0;
}

.footer-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

/* Contact */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-light);
}

/* ===== Trust ===== */
.footer-trust {
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trust-text {
    color: #fff;
    font-weight: 600;
}

.trust-logos {
    display: flex;
    justify-content: center; 
    align-items: center; 
    gap: 20px; 
}

.trust-logos img {
    max-height: 60px;
    width: auto;
}

/* ===== Bottom ===== */
.footer-bottom {
    text-align: center;
    padding: 10px;
    background: #181818;
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-trust {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-social .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==========================
      Mobile Footer
========================== */

@media (max-width:768px){

    .footer-container{
        width:92%;
    }

    /* Social */

    .footer-social{
        padding:25px 0;
    }

    .footer-social-wrapper{
        flex-direction:column;
        justify-content:center;
        align-items:center;
        gap:25px;
        text-align:center;
    }

    .footer-social-title{
        font-size:22px;
    }

    .footer-social-title::after{
        margin:12px auto 0;
    }

    .footer-social-subtitle{
        font-size:15px;
    }

    .footer-social-icons{
        justify-content:center;
        flex-wrap:wrap;
        gap:14px;
    }

    .social-icon{
        width:48px;
        height:48px;
        background-size:22px;
    }


    /* Columns */
    .footer-columns{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
        padding:25px 0;
    }

    .footer-col{
        background:#292929;
        border-radius:14px;
        padding:18px;
    }

    .footer-title{
        font-size:16px;
        margin-bottom:15px;
        border-bottom:1px solid rgba(255,255,255,.08);
        padding-bottom:10px;
    }

    .footer-col ul li{
        margin-bottom:12px;
    }

    .footer-col ul li a{
        font-size:14px;
        display:block;
        padding:4px 0;
    }


    /* Contact */
    .footer-contact li{
        align-items:flex-start;
        font-size:13px;
        line-height:1.8;
    }

    .footer-contact svg{
        flex-shrink:0;
        margin-top:3px;
    }


    /* Trust */
    .footer-trust{
        flex-direction:column;
        gap:18px;
        text-align:center;
        padding:20px 0;
    }

    .trust-logos{
        flex-wrap:wrap;
        gap:15px;
    }

    .trust-logos img{
        max-height:55px;
    }

    /* Bottom */
    .footer-bottom{
        padding:15px;
        font-size:13px;
        line-height:1.8;
    }

    .footer-col:not(:first-child) ul{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:10px 15px;
    }

    .footer-col:not(:first-child) ul li{
        margin:0;
    }

    .footer-col:not(:first-child) ul li a{
        display:block;
        font-size:14px;
        padding:6px 0;
    }

}


/* گوشی‌های خیلی کوچک */

@media (max-width:480px){

    .footer-columns{
        grid-template-columns:1fr;
    }

    .footer-social-title{
        font-size:20px;
    }

    .social-icon{
        width:44px;
        height:44px;
    }

    .trust-logos img{
        max-height:50px;
    }

}

/* ===== Container ===== */
.container {
  width: 95%;
  max-width: 95%;
  margin: 0 auto;
}

/* ===== سکشن ===== */
.steps-section {
  background: #fff;
  padding: 40px 0 60px;
  font-family: 'Peyda';
  direction: rtl;
  margin-top: 30px;
}

/* ===== عنوان ===== */
.steps-header {
  text-align: center;
  margin-bottom: 40px;
}

.steps-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #5f5f5f;
  position: relative;
  display: inline-block;
  padding: 0 30px;
}

.steps-header h3::before,
.steps-header h3::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 2px;
  background: var(--primary);
  transform: translateY(-50%);
}

.steps-header h3::before {
  right: 100%;
  margin-right: 10px;
}

.steps-header h3::after {
  left: 100%;
  margin-left: 10px;
}

.steps-header p {
  margin-top: 10px;
  font-size: 14px;
  color: #5f5f5f;
}

.steps-header .highlight {
  color: #107715;
  font-weight: 600;
}

/* ===== کارت‌ها ===== */
.steps-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
  overflow-x: auto; 
  padding-bottom: 10px;
}

.step-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 2px 4px 20px rgba(41,44,124,0.1);
  padding: 10px 20px;
  width: 207px;
  text-align: right;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 2px 6px 25px rgba(41,44,124,0.2);
}

/* ===== آیکون ===== */
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-icon i {
  font-size: 24px;
  color: #fff;
}

.step-card img {
  width: 35px;
  height: 35px;
}

/* ===== عنوان کارت ===== */
.step-title {
  font-weight: 600;
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}

/* ===== متن کارت ===== */
.step-text {
  font-size: 13px;
  color: #868686;
  line-height: 1.7;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
  .steps-cards {
    justify-content: center;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .steps-cards {
    overflow-x: auto; 
    padding-bottom: 10px;
  }
}


.level-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  background-color: var(--primary-light);
  border-radius: 12px;
  padding: 25px 40px;
  gap: 25px;
  direction: rtl;
  overflow-x: auto;
}

.level-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
}

.level-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.level-item img:hover {
  transform: scale(1.1);
}

.level-item p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
}

.arrow-desktop svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* 👇 تغییرات برای فلش موبایل */
.arrow-mobile {
  display: none;
  margin-top: 10px; /* افزایش فاصله */
  opacity: 0; /* شروع نامرئی */
  transform: translateY(-10px); /* شروع از کمی بالاتر */
  animation: fadeInUp 0.5s forwards; /* اعمال انیمیشن */
}

.arrow-mobile svg {
  width: 20px;
  height: 20px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 👆 پایان تغییرات فلش موبایل */


@media (max-width: 768px) {
   .level-section {
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    overflow-x: hidden;
    padding: 25px 20px; /* کاهش padding افقی */
  }

  .arrow-desktop {
    display: none;
  }

  .arrow-mobile {
    display: block;
  }

  .level-item img {
    width: 45px;
    height: 45px;
  }

  .level-item p {
    font-size: 0.8rem;
  }

   .arrow-mobile svg {
    width: 20px;
    height: 20px;
  }

}

.blog-header{
  display:flex;
  align-items:center;
  width:100%;
  margin-bottom:35px;
  margin-top:65px ;
  flex-wrap: nowrap;
}

.blog-title{
  display: flex;       
  align-items: center; 
  gap: 8px;           
  flex: 0 0 auto;
}

.blog-title h2{
  font-size:18px;
  font-weight:700;
  color:#333;
  margin:0;
  white-space:nowrap;
}

.blog-divider{
  flex: 1 1 auto;
  height: 1px;
  background: var(--primary);
  margin: 0 20px;
}

.blog-viewall{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  font-size:14px;
  color:var(--primary-light);
  white-space:nowrap;
  transition:.3s;
}

.blog-viewall:hover{
  color: var(--primary);
}

.blog-viewall .arrow{
  transition:.3s;
}

.blog-viewall:hover .arrow{
  transform:translateX(-5px);
}


.blog-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--invoice-border-color); /* حاشیه ملایم */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* سایه سبک و نرم */
  transition: transform 0.3s, box-shadow 0.3s;
  height: 280px; /* ارتفاع ثابت */
  display: flex;
  flex-direction: column;
  margin: 10px 0;
}

.blog-card:hover {
  transform: translateY(-5px); /* کمی بلند میشه */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* سایه پررنگ‌تر روی hover */
  border-color: #b3b3b3; /* حاشیه کمی مشخص‌تر */
}

/* تصویر داخل کارد */
.blog-image {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0; /* جداکننده تصویر */
}

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

.blog-card:hover .blog-image img {
  transform: scale(1.05); /* بزرگ شدن ملایم تصویر */
}

/* محتوای پایین کارد */
.blog-content {
  padding: 12px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
}

/* عنوان */
.blog-card-title {
  font-size: 14px;
  color: #333;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* توضیح کوتاه */
.blog-description {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s, transform 0.3s;
}

/* ===== Hover ===== */

.blog-card:hover .blog-content{
  transform:translateY(-25px); /* فقط محتوا بالا میره */
}

.blog-card:hover .blog-card-title{
  white-space:normal;
}

.blog-card:hover .blog-description{
  opacity:1;
  transform:translateY(0);
}

.blog-card:hover .blog-image img{
  transform:scale(1.05);
}

.swiper {
  overflow: hidden; 
  width: 100%;
  margin: 0 auto;
}

.swiper-wrapper {
  display: flex;
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1); 
  will-change: transform; 
  touch-action: pan-y; /* اجازه اسکرول عمودی صفحه در موبایل */
  cursor: grab; /* نشانه موس برای حالت درگ */
}

.swiper-wrapper.dragging {
  cursor: grabbing; /* نشانه موس موقع کشیدن */
  transition: none; /* موقع درگ، انیمیشن قطع میشه */
}

.swiper-slide {
  flex-shrink: 0; /* مانع از کوچک شدن اسلایدها */
  width: 100%; /* به طور پیش‌فرض هر اسلاید 100% عرض رو می‌گیره */
  box-sizing: border-box;
  padding: 0 10px; /* فاصله بین اسلایدها */
}

/* تنظیمات برای نمایش چند کارت در هر اسلاید (اختیاری) */
/* میتونی این مقادیر رو بر اساس نیازت تغییر بدی */
@media (min-width: 768px) {
  .swiper-slide {
    width: 50%; /* دو کارت در هر نما */
  }
}
@media (min-width: 1024px) {
  .swiper-slide {
    width: 25%; /* چهار کارت در هر نما */
  }
}


.features-section {
  padding: 40px 0;
  background-color: #f8f8f8;
}

.features-row {
  display: flex;
  justify-content: space-between; 
  align-items: stretch; 
  gap: 20px;
  flex-wrap: wrap;
}

.feature-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  align-items: center;    
  text-align: center;           
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 80px;          
  min-width: 0;
  box-sizing: border-box;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.feature-icon {
  margin-bottom: 12px;
  fill: var(--primary); 
}

.feature-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-top: auto;
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .features-row {
    justify-content: center; 
  }

  .features-row .feature-item {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
    margin-bottom: 20px; 
  }

  /* اگر خواستید در موبایل تک ستونه بشه، این قسمت رو از کامنت در بیارید */
  /*
  .features-row .feature-item {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
  */
}

.feature-title {
  white-space: normal; 
  overflow: visible;
  text-overflow: clip;
}

.d-flex {
    display: flex;
}
.flex-wrap {
    flex-wrap: wrap;
}
.justify-content-center {
    justify-content: center;
}
.card {
    background-color: #fff;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 10px;
    width: 380px;
    height: fit-content; 
}
.card:hover {
    background-color: #fff; 
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.card-body {
    padding: 15px;
}
.card-title {
    color: #333;
    font-size: 1.2em;
    margin: 10px;
}
.card-text {
    font-size: 0.95em;
    color: #878787;
}
.card-footer {
    display: flex;
    justify-content: flex-end; 
    border: none;
    background-color: transparent;
    padding-top: 15px;
}
.footer-link {
    color: var(--primary-hover-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 0.93em;
}
.footer-link svg {
    margin-right: 5px;
}
img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .card {
        width: 100%; 
    }
}

.container-cart{
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
}


.container-cart ul {
    list-style: none; 
    padding: 0; 
    margin: 0;
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center;
    gap: 20px; 
}

.container-cart ul li {
    flex: 0 0 calc(25% - 20px); 
    max-width: calc(25% - 20px); 
    box-sizing: border-box; 
}

/* استایل برای کارت‌ها در حالت دسکتاپ/تبلت */
.card {
    width: 100%; 
    margin: 0;
    box-sizing: border-box; 
    overflow: hidden;
}

/* Media query برای تبلت (مثلاً بین 768px و 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container-cart ul li {
        flex: 0 0 calc(50% - 20px); /* برای 2 ستون */
        max-width: calc(50% - 20px);
    }
}

/* Media query برای موبایل (کمتر از 768px) */
@media (max-width: 767px) { 
    .container-cart ul li {
        flex: 0 0 100%; /* برای 1 ستون */
        max-width: 100%;
    }
    /* در موبایل، کارت‌ها هم عرض کامل بگیرند */
    .card {
        width: 100%;
        margin: 10px 0; /* کمی فاصله بالا و پایین */
    }
}

/* استایل برای چینش داخل کارت */
.card .d-flex {
    flex-direction: column; 
    align-items: center;
    background-color: #f6fbfd; 
}

.card .d-flex > div {
    width: 100% !important; 
    padding: 0 15px; 
    box-sizing: border-box;
}

.card .d-flex > div:first-child {
    padding: 0 !important;
}

.card .d-flex > div:last-child { 
    margin-top: 15px; /* فاصله بین عکس و متن */
}

.card img {
    height: 150px; 
    object-fit: cover; 
    width: 100%; 
    display: block; 
    margin-top: 0 !important;  
    margin-right: 0 !important; 
    padding-top: 0 !important;  
    padding-right: 0 !important;
}

/* در حالت تبلت و دسکتاپ، چینش افقی باشه */
@media (min-width: 768px) {
    .card .d-flex {
        flex-direction: row; 
        align-items: stretch; 
    }
    .card .d-flex > div {
        width: 50% !important; 
        padding: 0; 
    }
    .card .d-flex > div:first-child { 
        display: flex; 
        align-items: flex-start;
    }
    .card .d-flex > div:last-child { 
        margin-top: 0; 
        display: flex;
        flex-direction: column; 
        justify-content: center; 
        padding-left: 15px;
    }
    .card img {
        height: auto;
        max-height: 200px;
        object-fit: contain;
    }
}


/* کانتینر اصلی خطا */
.error-container {
    padding: 0px 30px;
    padding-bottom: 30px;
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: center;
    margin: auto;
    text-align: center;
    position: relative;
}

/* استایل عکس */
.box-image img {
    position: relative;
    top: 0;
    height: 300px;
    margin-bottom: 20px; 
    animation: moveUpDown 2s infinite alternate;
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

/* تعریف انیمیشن moveUpDown */
@keyframes moveUpDown {
    0% {
        transform: translateY(0) rotate(-5deg);
    }
    100% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* متن خطا */
.error-text h3 {
    font-size: 1.5em; 
    margin-bottom: 15px;
    color: #333; 
}

/* دکمه‌ها */
.error-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; 
    flex-wrap: wrap; 
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    font-family: 'Peyda'; 
}

.btn-home {
    background-color: var(--primary); 
    color: #fff;
}

.btn-home:hover {
    background-color: #2980b9; 
    transform: translateY(-2px);
}

.btn-back {
    background-color: #3a3a3a; 
    color: #fff;
}

.btn-back:hover {
    background-color: #333;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .error-container {
        padding: 30px 20px;
    }
    .box-image img {
        height: 200px; 
    }
    .error-text h1 {
        font-size: 2em;
    }
    .error-text p {
        font-size: 1em;
    }
    .error-buttons {
        flex-direction: column; 
        align-items: center;
    }
    .btn {
        width: 80%; 
        margin-bottom: 10px;
    }
}

.nav-list {
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: 1px solid var(--invoice-border-color);
        padding: 0;
        margin: 0;
        list-style: none;
        background-color: #fafafa;
    }

    .nav-list li {
        flex:1;
        cursor: pointer;
        padding: 14px 20px;
        font-size: 13px;
        font-weight: 600;
        color: #555;
        display: flex;
        align-items: center;
        justify-content:center;
        border-radius: 4px 4px 0 0;
        transition: all 0.2s ease;
    }

    .nav-list li i {
        margin-left: 8px;
        font-size: 16px;
    }

    .nav-list li.active {
        background-color: #fff;
        color: var(--primary-light);
        border-bottom: 2px solid var(--primary-light);
        box-shadow: inset 0 -2px 0 var(--primary-light);
    }

    .nav-list li:hover:not(.active) {
        background-color: #f0f0f0;
        color: var(--primary-light);
    }

    .nav-list li a {
        text-decoration: none;
        color: inherit;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .content-container {
        padding: 25px;
        text-align: right;
    }

    .tab-content {
        display: none;
        animation: fadeIn 0.4s ease;
    }

    .tab-content.active-form {
        display: block;
    }

    .tab-content h3 {
        margin-bottom: 20px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        border-bottom: 1px solid var(--invoice-border-color);
        padding-bottom: 8px;
    }

    form {
        display: grid;
        grid-template-columns: auto 1fr auto 1fr;
        gap: 15px;
        margin-top: 10px;
        justify-content: start;
        align-items: center;
    }

    form label {
        font-size: 13px;
        color: #555;
        display: block;
    }

    form input[type="number"] {
        width: 100%;
        padding: 8px;
        font-family: 'Peyda';
        font-size: 14px;
        border: 1px solid var(--input-border-color);
        border-radius: 4px;
        box-sizing: border-box;
    }

    form input[type="number"]:focus {
        border-color: var(--primary-light); 
        outline: none; 
        box-shadow: var(--input-focus-shadow);
    }

    form input::placeholder {
        color: #aaa;
        font-size: 12px;
    }

    form button {
        grid-column: 1 / -1;
        padding: 10px 20px;
        background-color: var(--primary-light);
        color: white;
        border: none;
        border-radius: 4px;
        font-family: 'Peyda';
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.2s ease;
        margin-top: 10px;
    }

    form button:hover {
        background-color: #0053ba;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 768px) {
        .nav-list {
            flex-wrap: wrap;
            gap: 4px;
        }
        
        .nav-list li {
            flex: 1 1 calc(50% - 8px);
            text-align: center;
            font-size: 12px;
        }

        form {
            grid-template-columns: 1fr; 
        }
    }

.result-display{
    display: none;              
    width: 100%;
    max-width: 700px;           
    margin: 30px auto 0;       
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--invoice-border-color);
    background: #fafafa;
    text-align: center;        
    box-sizing: border-box;
}

.result-label {
    font-weight: bold; 
    color: #555;
}

.result-value {
    font-weight: bold;
    color: #007bff; 
    margin: 0 6px; 
}

.result-details {
    font-size: 0.9em; 
    color: #777; 
    display: block; 
    margin-top: 5px; 
}

.result-error {
    color: #dc3545;
    font-weight: bold;
}


.pricing-section {
  width: 95%;
  direction: rtl;
  justify-items: stretch;
  margin: 0 auto;
  height: fit-content;
}

.section-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-direction: row;
}

.title-box {
  min-width: 150px;
  text-align: right;
  align-content: center;
  justify-self: flex-start;
}

.title {
  text-align: right; 
  margin: 0;
}

.title span {
  display: block;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 auto;
}

.categories-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: space-between;
  width: 85%;
  justify-items: center;
}

.category {
  flex: 1 1 auto;
  min-width: 50px;
  max-width: 10%; 
  text-align: center;
  display: flex;
  flex-direction: column;
  align-content: space-around;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
}

.category img {
  width: 100%;
  height: auto;
  max-width: 80px;
  border-radius: 8px;
  margin-bottom: 8px;
  align-self: center;
}

@media (max-width: 768px) {

  .categories-container {
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }

  .category {
    flex: 1 1 30%;   /* سه ستونه */
    max-width: 33.33%;
  }

}

/* موبایل */
@media (max-width: 768px) {
  .section-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .title-box {
    text-align: center;
    width: 100%;
  }

  .title {
    text-align: center;
  }

  .title span {
    display: inline-block; 
    width: auto; 
    font-size: 22px;
    margin: 0 2px; 
  }

}

.hero-slider{
    width: 95%;
    direction: rtl;
    position: relative;
    margin: 0 auto;
}

.hero-slider__viewport{
    height: 350px;
    overflow: hidden;
    position: relative;
    margin: 20px;
    border-radius: 8px;
    margin-top: 0px;
}

.hero-slider__slides{
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    position: relative;
}

.hero-slider__slide{
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-slider__slide.is-active{
    opacity: 1;
    pointer-events: auto;
}

.hero-slider__img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform: scale(1.02);
    filter: saturate(1.05);
}

.hero-slider__overlay{
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.05) 100%);
}

.hero-slider__content{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 18px); 
    opacity: 0;
    text-align: center;
    width: min(780px, 92%);
    will-change: transform, opacity;
}

.hero-slider__content.is-visible{
    opacity: 1;
    transform: translate(-50%, -50%); 
}

.hero-slider__title{
    color: #fff;
    font-size: clamp(22px, 3.2vw, 44px);
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: .2px;
    text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.hero-slider__desc{
    color: rgba(255,255,255,.92);
    margin: 0 0 18px;
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.7;
}

.hero-slider__nav{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.hero-slider__dot{
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: transform 220ms var(--ease), background 220ms var(--ease), width 220ms var(--ease);
}
.hero-slider__dot.is-active{
    background: rgba(255,255,255,.95);
    width: 26px;
}
.hero-slider__dot:hover{
    transform: translateY(-2px);
}

.hero-slider__slide.is-next{
    opacity: 1;
    pointer-events: auto; 
}

.hero-slider__slide.is-leaving{
    opacity: 1;
    pointer-events: none;
}

.hero-slider__slide.is-next{
    transition:
      transform var(--speed-img) var(--ease),
      opacity var(--speed-img) var(--ease);
}
.hero-slider__slide.is-next.is-enter{
    transform: translateX(0);
}

.hero-slider__slide.is-leaving{
    transition:
      transform var(--speed-img) var(--ease),
      opacity 450ms linear;
}
.hero-slider__slide.is-leaving.is-leave{
    transform: translateX(30px);
    opacity: 0.001;
}

.hero-slider__content{
    transition:
      opacity var(--speed-fade) var(--ease),
      transform var(--speed-fade) var(--ease);
    transition-delay: 0ms;
}

.hero-slider__slide.is-next .hero-slider__content{
    opacity: 0;
    transform: translate(-50%, 18px);
}

.hero-slider__slide.is-next.is-enter .hero-slider__content{
    transition-delay: var(--text-delay);
}

.hero-slider__slide.is-next.is-enter .hero-slider__content.is-visible{
    opacity: 1;
    transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce){
    .hero-slider__slide,
    .hero-slider__slide.is-next,
    .hero-slider__slide.is-leaving,
    .hero-slider__content,
    .hero-slider__dot{
      transition: none !important;
    }
}

@media(max-width:992px){

    .hero-slider{
        width: 100%;
        direction: rtl;
        position: relative;
        margin: 0 auto;
        margin-top: 20px;
    }

    .hero-slider__viewport{
        height: 250px;
        overflow: hidden;
        position: relative;
        margin: 20px;
        border-radius: 8px;
        margin-top: 0px;
    }

}


.breadcrumb-nav{
    background-color: var(--light-bg);
}

.breadcrumb {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0;
    margin: 12px 30px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    white-space: nowrap;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #111;
}

.breadcrumb-item.active {
    color: #111;
    font-weight: 500;
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.separator svg {
    display: block;
}

.breadcrumb-nav.hidden {
    display: none !important;
}


/* faq Section */
.faq {
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background-color: transparent;
    background-image: linear-gradient(180deg, #D7C9A1 0%, #FFFFFF 100%);
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    scroll-behavior: smooth;
}

.faq::before { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.faq-content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.faq-left {
    flex: 1;
    min-width: 300px;
    justify-self: end; 
}

.faq-left img {
    max-width: 60%;
    height: 60%;
    display: block;
    padding:30px;
}

.faq-right {
    flex: 1;
    min-width: 300px;
    text-align: right;
    padding: 20px;
    margin-right:30px;
}

.faq-right h1 {
    font-size: 3em;
    margin-bottom: 30px;
    color: #fff;
}

.nav-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-options li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-options li:hover {
    color: #000; 
}

.nav-options li svg {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    fill: currentColor; 
}

.faq-section {
    padding: 60px 5%;
    background-color: #fff;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #333;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h3 {
    font-size: 1.5em;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: #555;
}

.accordion {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; 
}

.accordion-header {
    background-color: #f1f1f1;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: right;
    outline: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family:Peyda;
}

.accordion-header:hover {
    background-color: #ddd;
}

.accordion-header.active {
    background-color: #ccc;
}

.accordion-icon {
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.accordion-content {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-content p {
    padding: 18px 0;
    margin: 0;
    line-height: 1.6;
}

        /* Responsive Adjustments */
@media (max-width: 768px) {
    .faq {
        flex-direction: column;
        height: auto; /* Adjust height for smaller screens */
        padding: 20px 5%;
    }
    .faq-content {
        flex-direction: column;
    }
    .faq-left, .faq-right {
        width: 100%;
        margin-left: 0;
        margin-bottom: 30px;
        text-align: center; /* Center content on small screens */
    }
    .faq-right h1 {
        font-size: 2.5em;
    }
    .nav-options li {
        justify-content: center; /* Center nav items */
    }
    .nav-options li svg {
        margin-left: 0;
        margin-bottom: 5px;
    }
    .faq-section h2 {
        font-size: 2em;
    }
    .faq-category h3 {
        font-size: 1.7em;
    }
}


.main-content-wrapper {
    display: flex; 
    flex-direction: row; 
    flex: 1; 
    padding: 20px;
    text-align: right; 
}

.text-column {
    flex: 1; 
    padding: 40px; 
    text-align: right; 
    max-width: 1000px; 
    margin: 40px auto;
    gap: 30px;
}

.image-column {
    flex-shrink: 0; 
    max-width: 40%;
    padding: 0;
    text-align: center;
    justify-content: center; 
    align-items: center;  
    background-color: #f0f0f0;
    border-radius: 16px;
}

.image-container {
    display: inline-block; 
}

.about-image {
    max-width: 100%; 
    height: auto;
    display: block;
    margin: 0 auto; 
}


/* ===========================
   Responsive Mobile
=========================== */

@media (max-width: 768px) {

    .main-content-wrapper {
        flex-direction: column;
        padding: 15px;
    }

    .image-column {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .image-container {
        width: 100%;
    }

    .about-image {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .text-column {
        max-width: 100%;
        padding: 10px;
        margin: 0;
    }

    h1 {
        font-size: 26px;
        line-height: 1.5;
        margin-bottom: 15px;
        text-align: center;
    }

    p {
        font-size: 15px;
        line-height: 2;
        text-align: justify;
    }

}


.mobile-header , .mobile-menu-wrapper{
    display: none;
}

@media(max-width:992px){

    .header-top , .header-menu{
        display: none;
    }

    .mobile-header{
        display:flex;
        align-items:center;
        justify-content:space-between;
        min-height:60px;
        padding:0 15px;
        background:#fff;
        box-shadow:0 2px 10px rgba(0,0,0,.08);
        position:sticky;
        top:0;
        z-index:999;
    }

    .menu-toggle{
        border:none;
        background:none;
        font-size:20px;
        cursor:pointer;
        color: var(--primary);
    }

    .mobile-brand{
        display:flex;
        align-items:center;
        gap:10px;
    }

    .mobile-brand img{
        width:42px;
    }

    .mobile-brand span{
        font-size:18px;
        font-weight:bold;
        color: var(--primary);
    }

    .mobile-phone{
        color:#222;
        text-decoration:none;
        font-size:14px;
        font-weight:bold;
    }

    .cta-area {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .phone-icon {
        width: 30px;
        height: 30px;
        background: var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: zoom 2s infinite;
    }

    @keyframes zoom {
        0%,100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }

    .cta-text {
        text-align: right; /* متن سمت راست */
    }

    .cta-text span {
        display: block;
        font-size: 10px;
        color: #555;
    }

    .cta-text a {
        font-weight: 700;
        color: var(--primary);
        text-decoration: none;
        display: block;
        margin-top: 2px;
        font-size:10px;
    }

    .search-area {
        position: relative;
        width: 90%;
        display: flex;
        align-items: center;
        justify-self: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .menu-overlay{
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.45);
        opacity:0;
        visibility:hidden;
        transition:.3s;
        z-index:9998;
    }

    .menu-overlay.active{
        opacity:1;
        visibility:visible;
    }

    .mobile-header{
        position:sticky;
        top:0;
        right:0;
        left:0;
        height:65px;
        background:#fff;
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding:0 15px;
        box-shadow:0 2px 10px rgba(0,0,0,.08);
        z-index:999;
    }

    .mobile-brand{
        display:flex;
        align-items:center;
        gap:10px;
    }

    .mobile-brand img{
        width:42px;
    }

    .mobile-brand span{
        font-size:22px;
        font-weight:700;
    }

    .mobile-phone{
        text-decoration:none;
        color:#222;
        font-size:13px;
        font-weight:bold;
    }

    .ticker-track{
        white-space:nowrap;
        animation:ticker 20s linear infinite;
        padding-right:100%;
    }

    @keyframes ticker{

        from{
            transform:translateX(100%);
        }

        to{
            transform:translateX(-100%);
        }

    }

    @media(min-width:993px){
        .mobile-header{
            display:none;
        }
    }

    @media(max-width:992px){
        .header-top,
        .header-menu{
            display:none;
        }
    }

    .mobile-menu-wrapper{
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transform: translateX(100%);
        transition: .3s ease;
        overflow-y: auto;
    }

    /* وقتی منو باز شد */
    .mobile-menu-wrapper.active{
        transform: translateX(0);
    }

    .mobile-menu,
    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu {
        width: 100%;
        background: #fff;
    }

    .mobile-menu li {
        border-bottom: 1px solid #ececec;
    }

    .mobile-menu a,
    .menu-title,
    .submenu-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 10px;
        text-decoration: none;
        color: #222;
        cursor: pointer;
        font-size: 15px;
        transition: .3s;
    }

    .mobile-menu a:hover,
    .menu-title:hover,
    .submenu-title:hover {
        background: #f7f7f7;
    }

    .mobile-menu img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    .menu-title svg {
        margin-left: 8px;
    }

    .menu-title span:first-of-type,
    .submenu-title span:first-of-type {
        flex: 1;
    }

    .arrow {
        font-size: 18px;
        color: #006bff;
        transition: .3s;
    }

    .submenu li,
    .submenu2 li,
    .submenu3 li {
        border-bottom: 1px solid #eee;
    }

    .submenu2 a,
    .submenu3 a {
        padding-right: 35px;
        display:block;
        width:100%;
    }

    .submenu3 a {
        padding-right: 55px;
    }

    .submenu,
    .submenu2,
    .submenu3{
        display:none;
        margin:0;
        padding:0;
        list-style:none;
        background:#fafafa;
    }

    .has-submenu.active>.submenu,
    .has-submenu.active>.submenu2,
    .has-submenu.active>.submenu3 {
        display: block;
    }

    .has-submenu.active>.menu-title .arrow,
    .has-submenu.active>.submenu-title .arrow {
        transform: rotate(45deg);
    }

    strong {
        display: block;
        padding: 12px 16px;
        color: #006bff;
        background: #f2f8ff;
        font-size: 14px;
    }


    .searchDropdown{
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-top: 6px;
        max-height: 300px;
        overflow-y: auto;
        display: none;
        z-index: 99999;
    }

    .mobile-menu .searchDropdown{
        position: absolute;
        z-index: 99999;
    }

}

    .image-gallery {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 30px;
        max-width: 93%;
        margin: 0 auto;
        margin-top: 30px;
        margin-bottom: 30px;
        justify-content: center;
        align-items: center;
    }

    .image-container{
        width: 100%;
        margin:0 auto;
        justify-content: center;
        align-items: center;
    }

    .image-gallery img {
        width: 95%;
        height: auto;
        display:block;
        border-radius: 8px;
        object-fit: cover;
        transition: filter 0.3s ease;
        position: relative; /* Needed for the button positioning */
    }

    .image-gallery .image-container {
        position: relative;
        overflow: hidden; /* Hide the button initially */
    }

    .image-gallery .image-container:hover img {
        filter: brightness(0.5) grayscale(100%); /* Darken and desaturate on hover */
    }

    .image-gallery .image-container:hover .caption {
        bottom: 20px; /* Position the button */
    }

    .image-gallery .caption {
        position: absolute;
        bottom: -50px; /* Start hidden */
        left: 50%;
        transform: translateX(-40%);
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 10px 20px;
        border-radius: 5px;
        transition: bottom 0.3s ease;
        font-size: 14px;
        cursor: pointer;
        margin:0 auto;
    }

    .article-content{
        direction:rtl;
        text-align:justify;
        line-height:2.0;
        font-size:16px;
        color:#333;
        max-width:90%;
        margin:100px auto;
    }

    .article-content h1{
        font-size:25px;
        margin:20px 0;
        font-weight:700;
        color:var(--primary);
    }

    .article-content h2{
        font-size:22px;
        margin-top:55px;
        margin-bottom:20px;
        color:var(--primary);
    }

    .article-content h3{
        font-size:18px;
        margin-top:35px;
        margin-bottom:15px;
        color:var(--primary);
    }

    .article-content p{
        margin-bottom:22px;
    }

    .article-content a{
        color:#0b6efd;
        font-weight:bold;
        text-decoration:none;
    }

    .article-content a:hover{
        text-decoration:underline;
    }

    .article-content .formula{
        text-align:center;
        font-size:22px;
        font-weight:bold;
        background:#f7f7f7;
        padding:20px;
        margin:30px 0;
        border-radius:8px;
    }

    @media(max-width:768px){

        .image-gallery .caption {
            position: absolute;
            bottom: -80px; /* Start hidden */
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            transition: bottom 0.3s ease;
            font-size: 12px;
            cursor: pointer;
            margin:0 auto;
        }

        .article-content{
            font-size:16px;
            line-height:2.2;
        }

        .article-content h1{
            font-size:28px;
        }

        .article-content h2{
            font-size:24px;
        }

        .article-content h3{
            font-size:20px;
        }

        .image-gallery{
            grid-template-columns:repeat(2,1fr);
            gap:12px;
        }

        .image-container img{
            width:100%;
            object-fit: cover;
        }

        .image-container:active img{
            transform:scale(0.96);
            transition:0.2s;
        }

    }

    .product-content {
        width: 90%;
        max-width: 90%;
        margin: 20px auto;
        direction:rtl;
        text-align:justify;
        line-height:1.8;
        font-size:16px;
        color:#333;
    }

    .product-content h1{
        font-size:25px;
        margin:20px 0;
        font-weight:700;
        color:var(--primary);
    }

    .product-content h2{
        font-size:22px;
        margin-top:55px;
        margin-bottom:20px;
        color:var(--primary);
    }

    .product-content h3{
        font-size:18px;
        margin-top:35px;
        margin-bottom:15px;
        color:var(--primary);
    }

    .product-content p{
        margin-bottom:18px;
    }

    .product-content a{
        color:#0b6efd;
        font-weight:bold;
        text-decoration:none;
    }

    .product-content a:hover{
        text-decoration:underline;
    }

    .product-content ul {
        list-style: square;
        padding-right:25px;
        margin:15px 0;
    }

    .product-content{
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-content.show{
        display:block;
    }

    .fade-box{
        position:absolute;
        bottom:0;
        right:0;
        width:100%;
        height:100px;
        display:flex;
        align-items:end;
        justify-content:center;
        padding-bottom:15px;
        background:linear-gradient(
            rgba(255,255,255,0),
            rgba(255,255,255,1)
        );
    }

    #showMoreBtn{
        background:#0d6efd;
        color:white;
        border:none;
        padding:10px 28px;
        border-radius:30px;
        cursor:pointer;
        font-family:'Peyda';
        font-size:15px;
        transition:.3s;
    }

    #showMoreBtn:hover{
        transform:translateY(-2px);
        box-shadow:0 5px 15px rgba(0,0,0,.15);
    }

    .article-wrapper{
        position: relative;
    }


.footer-wave{
    position:absolute;
    top:125px;
    left:0;
    width:100%;
    height:100px;
    line-height:0;
    overflow:hidden;
}

.footer-wave svg{
    display:block;
    width:100%;
    height:100%;
    transform: rotate(180deg);
}

.footer-wave .wave1{
    fill:var(--primary);
}

.footer-wave .wave2{
    fill:var(--primary);
}

.footer-wave .wave3{
    fill:var(--primary);
}   

.category-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    position: relative;
}

.category-disabled span {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
}
