/*
Theme Name: my template 8
Theme URI: 
Author: ali mahmoudi
Author URI: 
Description: Designer Ali Mahmoudi.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: twentythirteen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
/* ----------------------------------------------- variables ----------------------------------------- */
:root {
  --colorPrimaryDarkCard: rgba(41, 44, 45, 1);
  --colorPrimaryDarkBack: rgba(29, 31, 32, 1);
}
/* ----------------------------------------------- index ----------------------------------------- */


/* ----------------------------------------------- swiperjs ----------------------------------------- */
.services-pagination .swiper-pagination-bullet {
    background: #555;
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 4px !important;
}

.services-pagination .swiper-pagination-bullet-active {
    background: #c9a46c;
    width: 18px;
    border-radius: 6px;
}

.courses-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 4px !important;
  border-radius: 999px;
  background: #cbd5e1;
  opacity: 1;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.courses-pagination .swiper-pagination-bullet-active {
  width: 24px;
  background: #2563eb;
}
/* ----------------------------------------------- /swiperjs ----------------------------------------- */


/* -------------------- single product ---------------------- */
.gradientMore {
  position:absolute;
  z-index:2;
  right:0; bottom:0; left:0;
  background: linear-gradient(0deg, #120d0dfc, #1c1d20e0 25%, hsla(0, 0%, 100%, 0));
}
/* -------------------- /single product --------------------------- */
.added_to_cart.wc-forward{
  display: none !important;
}
/* Responsive image styles */
.responsive-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

/* For container with fixed height */
.responsive-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.responsive-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Hover effect for images */
.responsive-image-container:hover img {
    transform: scale(1.05);
}

.dashed-line {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  border-left: 2px dashed var(--colorPrimary); 
}

/* -------------------- Footer Accordion ---------------------- */
@media (max-width: 767px) {
  .footer-accordion-item {
    position: relative;
  }
  
  .footer-accordion-item .footer-accordion-header {
    cursor: pointer;
    position: relative;
    z-index: 10;
  }
  
  .footer-accordion-content {
    display: block;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease 0.1s;
  }

  .footer-accordion-item:not(.footer-accordion-open) .footer-accordion-content {
    max-height: 0 !important;
    opacity: 0;
  }

  .footer-accordion-item.footer-accordion-open .footer-accordion-content {
    max-height: 2000px;
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .footer-accordion-content {
    display: block !important;
    max-height: none !important;
  }
  
  .footer-accordion-icon {
    display: none !important;
  }
}
/* -------------------- /Footer Accordion --------------------------- */

/* -------------------- Single Post (article) ---------------------- */
.post-page {
  --post-text: #0f172a;
  --post-muted: #64748b;
  --post-soft: #e2e8f0;
  --post-accent: #2563eb;
  --post-accent-dark: #1d4ed8;
  color: var(--post-text);
}

/* ===== Article content typography ===== */
.post-page .prose {
  font-size: 16px;
  line-height: 2;
  color: #1e293b;
}

.post-page .prose p {
  line-height: 2;
  margin: 0 0 1.6rem;
}

.post-page .prose h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--post-text);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--post-soft);
  scroll-margin-top: 120px;
}

.post-page .prose h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--post-text);
  margin: 34px 0 14px;
  scroll-margin-top: 120px;
}

.post-page .prose h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--post-text);
  margin: 28px 0 12px;
}

.post-page .prose h5 {
  font-size: 17px;
  font-weight: 600;
  color: var(--post-text);
  margin: 22px 0 10px;
}

.post-page .prose a {
  color: var(--post-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-page .prose a:hover {
  color: var(--post-accent-dark);
  text-decoration: underline;
}

.post-page .prose strong {
  color: var(--post-text);
  font-weight: 800;
}

.post-page .prose ul,
.post-page .prose ol {
  margin: 0 0 1.6rem;
  padding-inline-start: 1.6rem;
}

.post-page .prose ul {
  list-style: disc;
}

.post-page .prose ol {
  list-style: decimal;
}

.post-page .prose li {
  line-height: 2;
  margin-bottom: 0.6rem;
}

.post-page .prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6rem auto;
  border-radius: 18px;
  box-shadow: 0 18px 50px -24px rgba(15, 23, 42, 0.25);
}

.post-page .prose blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-inline-start: 4px solid var(--post-accent);
  border-radius: 14px;
  color: #334155;
}

/* ===== Table (Jannah-like) ===== */
.post-page .prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.8;
  border: 1px solid var(--post-soft);
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.post-page .prose table th,
.post-page .prose table td {
  border: 1px solid var(--post-soft);
  padding: 0.8rem 0.9rem;
  text-align: center;
  vertical-align: middle;
}

.post-page .prose table thead th {
  background-color: #f1f5f9;
  font-weight: 700;
}

.post-page .prose table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.post-page .prose table tbody tr:hover {
  background-color: #eff6ff;
}

.post-page .prose table caption {
  caption-side: bottom;
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--post-muted);
  text-align: center;
  line-height: 1.7;
}

/* ===== TOC (فهرست مطالب) ===== */
.post-toc-link {
  color: var(--post-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-toc-link:hover {
  color: var(--post-accent);
}

.post-toc-link.active {
  color: var(--post-accent);
  font-weight: 700;
}

/* ===== Breadcrumb (هم‌سان با قالب مرجع) ===== */
.post-breadcrumb {
  margin-bottom: 16px;
}

.post-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.post-breadcrumb__item {
  display: flex;
  align-items: center;
}

.post-breadcrumb__link {
  color: var(--post-muted, #64748b);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-breadcrumb__link:hover {
  color: var(--post-accent, #2563eb);
}

.post-breadcrumb__current {
  color: var(--post-text, #0f172a);
  font-weight: 700;
}

.post-breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  margin: 0 8px;
  color: var(--post-soft, #e2e8f0);
}

.post-breadcrumb__sep svg {
  width: 12px;
  height: 12px;
}
/* -------------------- /Single Post (article) ---------------------- */
