
/* 
    8. Blog css
*/
.blog__section--inner {
  padding: 2px;
}

.view__all--link {
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  line-height: 2rem;
}

@media only screen and (min-width: 576px) {
  .view__all--link {
    font-size: 1.6rem;
  }
}

.view__all--link::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  bottom: -13px;
  left: 0;
}

.blog__card {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
}

@media only screen and (min-width: 768px) {
  .blog__card {
    padding: 2rem;
  }
}

.blog__card::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(to top, #FCEEF2, #F5F5FE);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: -1;
}

.blog__card:hover {
  border-color: var(--secondary-color);
}

.blog__card:hover::before {
  opacity: 1;
  visibility: visible;
}

.blog__card:hover .blog__card--social {
  opacity: 1;
  visibility: visible;
}

.blog__card:hover .blog__card--social .social__share--icon {
  transform: scale(1);
}

.blog__card:hover .blog__card--thumbnail__img {
  transform: scale(1.06) rotate(2deg);
}

.blog__card--thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.blog__card--thumbnail__link {
  display: block;
  width: 100%;
}

.blog__card--thumbnail__img {
  width: 100%;
  
}

.blog__card--meta {
  font-size: 1.2rem;
  line-height: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--foreground-sub-color);
  font-family: var(--inter-fonts);
  margin-bottom: 0.7rem;
}

.blog__card--meta__date {
  width: 5rem;
  height: 4.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--secondary-color);
  border-radius: 5px;
  color: var(--text-white-color);
  line-height: 1.7rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 12px;
  left: 12px;
}

@media only screen and (min-width: 768px) {
  .blog__card--meta__date {
    width: 6rem;
    height: 5rem;
    font-size: 1.5rem;
    line-height: 1.8rem;
  }
}

.blog__card--desc {
  color: var(--foreground-sub-color);
  margin-bottom: 1.2rem;
}

.blog__card--title {
  font-size: 1.7rem;
  line-height: 2.5rem;
  margin-bottom: 1rem;
}

@media only screen and (min-width: 480px) {
  .blog__card--title {
    font-size: 1.8rem;
    line-height: 2.6rem;
  }
}

@media only screen and (min-width: 1366px) {
  .blog__card--title {
    font-size: 2rem;
    line-height: 2.8rem;
    margin-bottom: 1.1rem;
  }
}

.blog__card--footer {
  gap: 2rem;
}

.blog__card--content {
  padding: 1.5rem 0 0;
}

.blog__card--btn__link {
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--inter-fonts);
}

.blog__card--btn__link svg {
  margin-left: 0.3rem;
  transform: scaleX(-1);
}


.blog__card--social {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.blog__card--social .social__share--icon {
  transform: scale(0);
  transition: 0.5s;
}



/* Modern Glassmorphism Summary Box - Enhanced */
.blog__summary {
    position: relative;
    padding: 30px 35px;
    margin: 40px 0;
    /* استفاده از گرادینت برای ایجاد عمق شیشه ای روی پس زمینه سفید */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 242, 246, 0.7));
    
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    border-radius: 20px;
    /* ایجاد لبه براق شیشه ای */
    border: 1px solid rgba(255, 255, 255, 0.8);
    
    /* خط رنگی مدرن سمت راست با گرادینت */
    border-right: 6px solid var(--secondary-color);
    
    /* سایه چند لایه برای ایجاد حس معلق بودن واقعی */
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.02),
        0 15px 35px rgba(0,0,0,0.05),
        inset 0 0 20px rgba(255,255,255,0.5);
    
 
    color: #2d3436;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog__summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(241, 242, 246, 0.9));
}

/* برچسب چکیده مقاله با استایل کپسولی مدرن */
.blog__summary::before {
    content: "چکیده ";
    position: absolute;
    top: -15px;
    right: 25px;
    background: var(--secondary-color);
    color: #fff;
    padding: 4px 18px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 15px rgba(230, 0, 35, 0.2); 
}

.blog__summary p {
    margin-bottom: 0;
    color: #444;
    
}


/* تبلت کوچک */
@media (min-width: 576px) {
    .blog__summary {
        padding: 25px 28px;
        margin: 35px 0;
        border-radius: 18px;
        font-size: 1.5rem;
    }
}

/* تبلت بزرگ */
@media (min-width: 768px) {
    .blog__summary {
        padding: 30px 35px;
        margin: 40px 0;
        border-radius: 20px;
        font-size: 1.6rem;
    }
}

/* دسکتاپ */
@media (min-width: 992px) {
    .blog__summary {
        padding: 35px 40px;
        margin: 50px 0;
        font-size: 1.65rem;
    }
}

/* دسکتاپ بزرگ */
@media (min-width: 1366px) {
    .blog__summary {
        padding: 40px 45px;
        margin: 60px 0;
    }
}

/* آیکون before - رسپانسیو */
.blog__summary::before {
    font-size: 1rem; /* موبایل */
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .blog__summary::before {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
}

@media (min-width: 1366px) {
    .blog__summary::before {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}



/* Glassmorphism TOC Box */
.toc-box {
    position: relative;
    margin: 30px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 242, 246, 0.72));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-right: 6px solid var(--secondary-color);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.03),
        0 14px 32px rgba(0, 0, 0, 0.06),
        inset 0 0 18px rgba(255, 255, 255, 0.45);
    transition: all 0.35s ease;
    overflow: hidden;
}

.toc-box:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.10),
        inset 0 0 18px rgba(255, 255, 255, 0.55);
}

/* عنوان فهرست */
.toc-title {
    list-style: none;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    padding: 18px 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    position: relative;
}

/* حذف فلش پیش‌فرض مرورگر */
.toc-title::-webkit-details-marker {
    display: none;
}
.toc-title::marker {
    display: none;
}

/* آیکن منو */
.toc-title::before {
    content: "≡";
    font-size: 1.9rem;
    color: var(--secondary-color);
    font-weight: 900;
    line-height: 1;
}

/* آیکن باز/بسته بزرگ‌تر و واضح‌تر */
.toc-title::after {
    content: "+";
    margin-right: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    background: var(--secondary-color);
    box-shadow: 0 6px 14px rgba(230, 0, 35, 0.20);
    transition: all 0.25s ease;
    flex: 0 0 auto;
}

.toc-box[open] .toc-title::after {
    content: "−";
}

.toc-box[open] .toc-title::after {
    background: #b80019;
}

/* محتوای فهرست */
.toc-content {
    padding: 0 24px 18px;
    overflow: hidden;
}

/* خط جداکننده فقط وقتی باز است */
.toc-box[open] .toc-content {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 14px;
}

/* لیست اصلی */
.toc-box ul,
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* آیتم‌ها */
.toc-item {
    margin: 0;
    padding: 0;
}

.toc-item a {
    display: block;
    text-decoration: none;
    color: #374151;
    font-size: 1.40rem;
    line-height: 1.45;
    padding: 4px 10px 4px 0;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
}

/* هاور */
.toc-item a:hover {
    background: rgba(230, 0, 35, 0.06);
    color: var(--secondary-color);
    transform: translateX(-3px);
    padding-right: 15px;
}

/* سطح h2 */
.toc-h2 > a {
    font-weight: 600;
}

/* سطح h3 */
.toc-h3 {
    margin-right: 14px;
}
.toc-h3 > a {
    font-size: 1.4rem;
    color: #4b5563;
}

/* سطح h4 */
.toc-h4 {
    margin-right: 28px;
}
.toc-h4 > a {
    font-size: 0.95rem;
    color: #6b7280;
}

/* اگر کلاس no-toc بود پنهان شود */
.no-toc {
    display: none !important;
}

/* موبایل */
@media (max-width: 768px) {
    .toc-box {
        margin: 22px 0;
        border-radius: 16px;
        border-right-width: 5px;
    }

    .toc-title {
        padding: 15px 18px;
        font-size: 1.05rem;
    }

    .toc-title::after {
        width: 26px;
        height: 26px;
        font-size: 1rem;
    }

    .toc-content {
        padding: 0 18px 16px;
    }

    .toc-item a {
        font-size: 0.96rem;
        line-height: 1.9;
    }

    .toc-h3 {
        margin-right: 12px;
    }

    .toc-h4 {
        margin-right: 24px;
    }
}








/* 
    33. Blog details css 
*/
.blog__sidebar--widget {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

@media only screen and (max-width: 991px) {
  .blog__sidebar--widget.left {
    margin-top: 6rem;
  }
}

@media only screen and (max-width: 767px) {
  .blog__sidebar--widget.left {
    margin-top: 5rem;
  }
}

.blog__post--header.mb-30 {
  margin-bottom: 2.5rem;
}

@media only screen and (min-width: 992px) {
  .post__header--title {
    line-height: 4rem;
  }
}

.blog__post--meta {
  text-transform: capitalize;
}

@media only screen and (min-width: 992px) {
  .blog__post--meta {
    font-size: 1.5rem;
  }
}

.blog__post--meta__link {
  color: var(--secondary-color);
}

.blog__post--meta__link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.blog__thumbnail {
  line-height: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog__thumbnail--img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media only screen and (max-width: 767px) {
  .blog__thumbnail.mb-30 {
    margin-bottom: 2rem;
  }
}

.blog__details--content__subtitle {
  line-height: 3rem;
}

@media only screen and (min-width: 992px) {
  .blog__details--content__subtitle {
    line-height: 3.2rem;
  }
}

@media only screen and (min-width: 1200px) {
  .blog__details--content__subtitle {
    line-height: 3.5rem;
  }
}

.blockquote__content {
  padding: 20px 30px;
  text-align: center;
  border-radius: 10px;
}

@media only screen and (min-width: 992px) {
  .blockquote__content {
    padding: 30px 40px;
  }
}

@media only screen and (min-width: 1200px) {
  .blockquote__content {
    padding: 40px 70px;
  }
}

@media only screen and (max-width: 767px) {
  .blockquote__content {
    margin: 0 0 2.5rem;
    padding: 1.5rem 2rem;
  }
}

.blockquote__content--desc {
  font-size: 1.7rem;
  line-height: 3rem;
  font-style: italic;
  font-weight: 500;
}

@media only screen and (min-width: 768px) {
  .blockquote__content--desc {
    font-size: 2rem;
    line-height: 3.4rem;
  }
}

.blog__tags--social__media {
  padding: 5rem 0;
}

@media only screen and (max-width: 1199px) {
  .blog__tags--social__media {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media only screen and (max-width: 1199px) {
  .blog__tags--media {
    margin-bottom: 2rem;
  }
}

@media only screen and (max-width: 575px) {
  .blog__tags--media {
    flex-direction: column;
    align-items: flex-start;
  }
}

.blog__tags--media__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 1rem;
}

@media only screen and (min-width: 992px) {
  .blog__tags--media__title {
    font-size: 1.6rem;
  }
}

@media only screen and (max-width: 575px) {
  .blog__tags--media__title {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

.blog__tags--media__list {
  margin-right: 0.7rem;
}

.blog__tags--media__list:last-child {
  margin-right: 0;
}

.blog__tags--media__link {
  border: 1px solid var(--border-color);
  background: var(--body-background-color);
  padding: 0.5rem 1.2rem;
  line-height: 2.5rem;
  border-radius: 0.3rem;
  text-transform: capitalize;
}

.blog__tags--media__link:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-white-color);
}

@media only screen and (max-width: 575px) {
  .blog__tags--media__link {
    padding: 0.4rem 0.8rem;
  }
}

.meta__deta {
  color: var(--foreground-sub-color);
  font-weight: 500;
  margin-top: 0.6rem;
  line-height: 2rem;
  font-size: 1.4rem;
}

.blog__social--media__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 1rem;
}

@media only screen and (min-width: 992px) {
  .blog__social--media__title {
    font-size: 1.6rem;
  }
}

.blog__social--media__list {
  margin-right: 1rem;
}

.blog__social--media__list:last-child {
  margin-right: 0;
}

.blog__social--media__link {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  color: var(--text-white-color);
  border-radius: 50%;
}

.blog__social--media__link:hover {
  background: var(--primary-color);
  color: var(--text-white-color);
}

@media only screen and (max-width: 575px) {
  .related__post--text {
    text-align: center;
  }
}

.related__post--items:hover .related__post--img {
  transform: scale(1.05);
}

.related__post--thumb {
  line-height: 1;
  overflow: hidden;
}

.related__post--title {
  font-size: 1.6rem;
  line-height: 2.2rem;
}

@media only screen and (min-width: 992px) {
  .related__post--title {
    font-size: 1.8rem;
  }
}

.related__post--deta {
  font-size: 1.4rem;
  color: var(--light-color);
  line-height: 2.2rem;
}

@media only screen and (min-width: 992px) {
  .related__post--deta {
    font-size: 1.5rem;
  }
}

.comment__reply--btn {
  height: 3.6rem;
  line-height: 3.6rem;
  padding: 0 2rem;
}

@media only screen and (min-width: 768px) {
  .comment__reply--btn {
    height: 4rem;
    line-height: 4rem;
    padding: 0 2.5rem;
  }
}

.reviews__comment--content__title2 {
  font-weight: 600;
  line-height: 2.2rem;
  margin-bottom: 0.4rem;
}

.reviews__comment--content__date2 {
  font-size: 1.5rem;
  color: var(--foreground-sub-color);
}

@media only screen and (max-width: 575px) {
  .reviews__comment--reply__title.style2 {
    text-align: center;
  }
}

/*
    post article css here
*/
.post__article--items {
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.post__article--items:last-child {
  margin-bottom: 0;
}

.post__article--items:hover .post__article--thumbnail__img {
  transform: scale(1.03);
}

.post__article--thumbnail {
  width: 110px;
  border-radius: 5px;
  overflow: hidden;
}

.post__article--thumbnail__img {
  border-radius: 5px;
}

.post__article--content {
  width: calc(100% - 110px);
}

.post__article--content__title {
  font-size: 1.5rem;
}




