/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* تعریف فونت YekanBakhFaNum-Light */
@font-face {
    font-family: 'YekanBakhFaNum-Light';
    src: url('https://rajabi.co/wp-content/uploads/2025/05/YekanBakhFaNum-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* تعریف فونت YekanBakhFaNum-Bold */
@font-face {
    font-family: 'YekanBakhFaNum-Bold';
    src: url('https://rajabi.co/wp-content/uploads/2025/05/YekanBakhFaNum-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* اعمال فونت YekanBakhFaNum-Light به body */
body {
    font-family: 'YekanBakhFaNum-Light', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f8f9fa;
}

/* اعمال فونت YekanBakhFaNum-Bold به عناوین */
h1, h2, h3, h4, h5, h6 {
    font-family: 'YekanBakhFaNum-Bold', sans-serif;
    font-weight: 700;
    color:#004a61;
}
h2 {
  font-size: 28px;
margin-bottom: 20px;
margin-top: 20px;
}
h3 {
  font-size: 26px;
margin-bottom: 20px;
margin-top: 20px;
}
/* اعمال فونت YekanBakhFaNum-Light به متن‌های معمولی */
p {font-size: 20px;line-height: 38px;
    font-family: 'YekanBakhFaNum-Light', sans-serif;
    font-weight: 300;
    color:#000000;
}
.entry-content p {
  margin-bottom: 1.0em; /* یا مقدار دلخواه دیگر، مثل 15px, 20px */
}
strong{ font-family: 'YekanBakhFaNum-Bold', sans-serif;}
a {
  text-decoration: none;
}
/* محدود کردن عرض سایت به 1200 پیکسل */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding:100px 0px;
}


/* موبایل: سایدبار مخفی و دکمه نمایش */
@media (max-width: 767px) {
  .container {margin: 10px 10px 10px 10px;
  }

}




table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;

  font-family: inherit;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 10px;
  overflow: hidden;
}

thead {
  background-color: #f2f6fc;
}

thead th {
  padding: 1rem;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eee;
  color: #444;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr:hover {
  background-color: #f1f7ff;
  transition: background-color 0.2s ease-in-out;
}

@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0.5rem;
    background: #fff;
  }

  td {
    padding: 0.8rem 1rem;
    text-align: right;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    font-weight: bold;
    color: #666;
    text-align: left;
  }
}



/* هدر-------------------------------- */
  .header {
            width: 100%;
            background: linear-gradient(90deg, rgba(241, 245, 249, 0.8), rgba(255, 255, 255, 0.8));
            backdrop-filter: blur(10px);
            padding: 15px 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
        }

        .header-container {
            width: 100%;
            max-width: 1200px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .menu-logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .hamburger {
            cursor: pointer;
            width: 30px;
            height: 30px;
            fill: #004A61;
            transition: fill 0.3s ease;
        }

        .hamburger:hover {
            fill: #E2CCAE;
        }

        .logo {
            position: relative;
            overflow: hidden;
        }

        .logo img {
            height: 50px;
            transition: transform 0.3s ease;
        }

        .logo img:hover {
            transform: scale(1.05);
        }

        .logo::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.4) 50%,
                rgba(255, 255, 255, 0) 100%
            );
            animation: shimmer 2s infinite 10s;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .company-name {
            color: #004A61;
            font-size: 22px;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .phone-number {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #004A61;
            font-size: 18px;
            font-weight: 400;
            white-space: nowrap;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .phone-number:hover {
            color: #E2CCAE;
            text-decoration: underline;
        }

        .phone-number svg {
            width: 24px;
            height: 24px;
            fill: #004A61;
            transition: transform 0.3s ease, fill 0.3s ease;
        }

        .phone-number:hover svg {
            fill: #E2CCAE;
            transform: scale(1.2);
        }

        .nav-menu {
            display: none;
            position: fixed;
            top: 80px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            max-width: 960px;
            background: #004A61;
            padding: 20px;
            z-index: 1001;
            box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
            border-radius: 12px;
            opacity: 0;
            transform: translateX(-50%) translateY(-20px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        .nav-menu.active {
            display: block;
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .menu-content {
            display: flex;
            flex-direction: column;
            gap: 5px;
            padding-top: 50px;
            padding-bottom: 20px;
        }

        .action-buttons {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 12px;
            margin: 0 5px 5px;
        }

        .action-buttons a {
            text-decoration: none;
            color: #FFFFFF;
            font-size: 16px;
            font-weight: 700;
            padding: 8px 16px;
            border-radius: 8px;
            background: linear-gradient(90deg, #004A61, #007B8F);
            border: 1px solid #007B8F;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            opacity: 0;
            animation: fadeIn 0.5s ease forwards;
            animation-delay: calc(0.1s * var(--i));
        }

        .action-buttons a:hover {
            background: #FFFFFF;
            color: #004A61;
            border-color: #004A61;
        }

        .action-buttons a svg {
            width: 20px;
            height: 20px;
            fill: #FFFFFF;
            transition: fill 0.3s ease;
        }

        .action-buttons a:hover svg {
            fill: #004A61;
        }

        .top-menu {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 12px;
            border-bottom: 2px solid rgba(226, 204, 174, 0.3);
            padding: 12px;
            margin: 0 5px 5px;
            background: linear-gradient(90deg, rgba(241, 245, 249, 0.1), rgba(255, 255, 255, 0.1));
            backdrop-filter: blur(8px);
            border-radius: 16px;
        }

        .top-menu a {
            text-decoration: none;
            color: #FFFFFF;
            
            font-weight: 700;
            padding: 10px 10px;
            border-radius: 8px;
            background: linear-gradient(90deg, rgba(241, 245, 249, 0.1), rgba(255, 255, 255, 0.1));
            transition: all 0.3s ease;
            opacity: 0;
            animation: fadeIn 0.5s ease forwards;
            animation-delay: calc(0.1s * var(--i));
        }

        .top-menu a:hover {
            background: #FFFFFF;
            color: #004A61;
        }

        .top-menu a.magazine {
            font-size: 16px;
            padding: 8px 16px;
        }

        .menu-columns {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 16px;
            padding: 16px;
            background: linear-gradient(90deg, rgba(241, 245, 249, 0.1), rgba(255, 255, 255, 0.1));
            backdrop-filter: blur(8px);
            border-radius: 16px;
            margin: 0 5px 5px;
        }

        .menu-column h3 {
            color: #E2CCAE;
            margin-bottom: 12px;
            font-size: 18px;
            font-weight: 700;
            border-bottom: 2px solid rgba(226, 204, 174, 0.3);
            padding-bottom: 6px;
            opacity: 0;
            animation: fadeIn 0.5s ease forwards;
        }

        .menu-column ul {
            list-style: none;
        }

        .menu-column ul li {
            margin-bottom: 10px;
            opacity: 0;
            animation: fadeIn 0.5s ease forwards;
            animation-delay: calc(0.1s * var(--i));
        }

        .menu-column ul li a {
            text-decoration: none;
            color: #E2CCAE;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .menu-column ul li a:hover {
            color: #FFFFFF;
            padding-right: 5px;
        }

        .close-btn {
            width: 28px;
            height: 28px;
            fill: #FFFFFF;
            cursor: pointer;
            position: absolute;
            top: 15px;
            left: 15px;
            transition: fill 0.3s ease;
        }

        .close-btn:hover {
            fill: #E2CCAE;
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1000;
        }

        .overlay.active {
            display: block;
        }

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

        @media (max-width: 768px) {
            .phone-number { font-size: 16px; }
            .company-name { font-size: 18px; }
            .nav-menu {
                width: 90%;
                padding: 15px;
            }
            .menu-content {
                gap: 3px;
                padding-top: 40px;
                padding-bottom: 15px;
            }
            .action-buttons { gap: 8px; }
            .top-menu {
                flex-direction: column;
                align-items: flex-start;
                padding: 8px;
            }
            .top-menu a.magazine {
               
                padding: 6px 12px;
            }
            .menu-columns {
                gap: 12px;
                padding: 12px;
            }
            .menu-column h3 {
                font-size: 16px;
                margin-bottom: 8px;
            }
            .menu-column ul li {
                margin-bottom: 8px;
            }
            .menu-column ul li a {

            }
        }

        @media (max-width: 480px) {
            .header { padding: 10px; }
            .logo img { height: 40px; }
            .company-name { font-size: 16px; }
            .phone-number {  }
            .hamburger { width: 24px; height: 24px; }
        }





















/* فوتر-------------------------------- */

        /* باکس باریک تماس */
        .contact-box {
            background: #fff;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            text-align: center;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            position: relative;
            top: 70px;
            z-index: 10;
        }

        .contact-box p {
            font-size: 16px;
            margin-bottom: 10px;
        }

        .contact-box .phone {
            font-size: 24px;
            font-weight: bold;
            color: #1a73e8;
            margin-bottom: 15px;
        }

        .contact-box .logo {
            position: absolute;
            bottom:100px; /* نیمی از لوگو بیرون کادر */
            left: 50%;
            transform: translateX(-50%);
        }

        .contact-box .logo img {
            max-width: 120px;
            height: auto;
        }

        .footer {
            background: #f1f1f1;
            color: #333;
            padding: 120px 0 40px;
            width: 100%;
        }

     




        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .footer-section {
            background: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            min-height: 250px; /* ارتفاع یکسان برای همه باکس‌ها */
            display: flex;
            flex-direction: column;
        }

        .footer-section .title {
            font-size: 18px;
            margin-bottom: 15px;
            color: #1a73e8;
            font-weight: bold;
        }

        .footer-section p {

            line-height: 1.6;
            margin-bottom: 10px;
        }

        /* درباره و شبکه‌های اجتماعی */
        .about-social .social-links {
            margin-top: auto; /* شبکه‌های اجتماعی به پایین باکس منتقل می‌شوند */
        }

        .social-links a {
            display: inline-block;
            
            color: #333;
            text-decoration: none;
            margin: 0 10px 10px 0;
            transition: color 0.3s;
        }

        .social-links a:hover {
            color: #1a73e8;
        }

        /* ریسپانسیو */
        @media (max-width: 768px) {
            .contact-box {
                max-width: 90%;
                top: 50px;
                padding: 15px;
            }

            .contact-box p {
            }

            .contact-box .phone {
                font-size: 20px;
            }

            .contact-box .logo img {
                max-width: 100px;
            }

            .footer {
                padding-top: 100px;
            }

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

            .footer-section {
                min-height: auto; 
                margin-bottom: 15px;
            }

            .footer-section {
                text-align: center;
            }

            .social-links a {
                margin: 0 10px;
            }
        }




.floating-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  background-color: #1e3a8a;
  color: white;
  padding: 10px 15px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.contact-item:hover {
  background-color: #374fc2;
}

.contact-item.whatsapp {
  background-color: #25d366;
}

.contact-item.whatsapp:hover {
  background-color: #1ebe57;
}

.pulse {
  animation: pulse-animation 1.8s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(30, 58, 138, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(30, 58, 138, 0);
  }
}




/* اسلاید خطی */

.image-slider {padding: 50px 0 50px 0;
  overflow: hidden;
  width: 100%;
  direction: ltr;
  position: relative;
}

.image-slider::before,
.image-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 30px; /* نازک‌تر شد */
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.image-slider::before {
  left: 0;

}

.image-slider::after {
  right: 0;

}

.slider-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollLeft 90s linear infinite;
  position: relative;
  z-index: 1;
}

.slider-track img {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* موبایل */
@media (max-width: 500px) {
  .slider-track img {
    width: 120px;
    height: 120px;
  }
}














.my-sidebar-unique {
  display: flex;
  flex-direction: row;
  position: relative;
}

.my-sidebar-unique .my-sidebar-content {
  flex: 1;
  padding: 0px 0px 0px 20px;
}

.my-sidebar-unique .my-sidebar-box {
  width: 250px;
  background: #f4f4f4;
  padding: 15px;
  transition: transform 0.3s ease;
}

/* دسکتاپ: سایدبار همیشه دیده میشه */
@media (min-width: 768px) {
  .my-sidebar-unique #my-mobile-sidebar {
    transform: translateX(0);
    position: relative;
  }

  .my-sidebar-unique .my-sidebar-btn {
    display: none;
  }
}

/* موبایل: سایدبار مخفی و دکمه نمایش */
@media (max-width: 767px) {
  .my-sidebar-unique #my-mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 999;
    background: #f4f4f4;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  }

  .my-sidebar-unique #my-mobile-sidebar.open {
    transform: translateX(0);
  }

  .my-sidebar-unique .my-sidebar-btn {
    position: fixed;
    top: 100px;
    left: -20px;
    width: 40px;
    height: 40px;
    z-index: 1000;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: left 0.3s ease;
  }

  .my-sidebar-unique .my-sidebar-btn:hover {
    left: 0;
  }

  .my-sidebar-unique .my-sidebar-box {
    padding: 100px 15px 15px 15px;
  }
}





.related-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.related-posts .thumb {
    display: block;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-left: 10px;
    overflow: hidden;
    border-radius: 4px;
}

.related-posts .thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.related-posts .title {
    flex: 1;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.related-posts .title:hover {
    color: #0073aa;
}
.more {font-family: 'YekanBakhFaNum-Bold';
  font-size: 18px;
  font-weight: bold;
}













/* --- استایل باکس متا --- */
.post-meta-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 24px;
    font-size: 15px;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    box-shadow: 0 1px 6px rgba(100,100,100,0.07);
    direction: rtl;
}

.post-meta-box .meta-item {
    display: flex;
    align-items: center;
}

.post-meta-box a {
    color: #2196f3;
    text-decoration: none;
    transition: color 0.2s;
}

.post-meta-box a:hover {
    color: #1769aa;
    text-decoration: underline;
}

.meta-sep {
    color: #aaa;
    margin: 0 5px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .post-meta-box {
        flex-direction: column;
        gap: 5px 0;
        align-items: flex-start;
    }
    .meta-sep {
        display: none;
    }
}



.post-thumbnail-container {
  margin-bottom: 15px; /* اضافه کردن فضای خالی در زیر عکس (اختیاری) */
}

.post-thumbnail-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content img { /* برای تصاویر داخل محتوا هم اعمال می شود */
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}