/*
 Common
*/
.category-badge {
    color: #0D0D0D;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    border-radius: 8px;
    background: #F9F9FB;
    padding: 4px 12px;
}

.nav-arrows .custom-swiper-button-prev,
.nav-arrows .custom-swiper-button-next {
    padding: 6px;
}

html[dir="rtl"] .nav-arrows .custom-swiper-button-prev .icon {
    transform: rotate(180deg) !important;
}

html[dir="rtl"] .nav-arrows .custom-swiper-button-next .icon {
    transform: rotate(0deg) !important;
}

/* Blog Page */

#blog {
    background: linear-gradient(180deg, #ECF5FF 0%, #FFF 100%), #FFF;
}

.blog-hero {
    padding-top: 144px;
}

.blog-hero .card {
    padding: 26px 16px 26px;
}

@media (min-width: 992px) {
    .blog-hero .card {
        padding: 26px 25px 39px;
    }
}

.blog-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.blog-header .title {
    color: #0D0D0D;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.96px;
    margin-top: 2px;
    margin-bottom: 8px;
}

@media (min-width: 992px) {
    .blog-header .title {
        font-size: 48px;
        line-height: 60px;
    }
}

.blog-header .breadcrumb .breadcrumb-item {
    color: #0D0D0D;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
}

.blog-header .breadcrumb .breadcrumb-link {
    color: #808080;
}

.blog-header .custom-breadcrumb {
    margin: 0;
    display: flex;
    list-style: none;
    padding: 0;
}

.blog-header .custom-breadcrumb .custom-breadcrumb-item {

    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    padding-inline-end: 8px;
}

.blog-header .custom-breadcrumb .custom-breadcrumb-item.active .breadcrumb-link {
    color: #0D0D0D;
}

.blog-header .custom-breadcrumb .custom-breadcrumb-item .breadcrumb-link {
    color: #808080;
    text-decoration: none;
}

[dir="ltr"] .blog-header .custom-breadcrumb .custom-breadcrumb-item:not(:last-child)::after {
    float: right;
    padding-inline-start: 8px;
    content: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'8\' height=\'12\' viewBox=\'0 0 8 12\' fill=\'none\'%3E%3Cpath d=\'M0.294922 10.59L4.87492 6L0.294922 1.41L1.70492 0L7.70492 6L1.70492 12L0.294922 10.59Z\' fill=\'%23808080\'/%3E%3C/svg%3E');
    display: inline-block;
    vertical-align: middle;
}

[dir="rtl"] .blog-header .custom-breadcrumb .custom-breadcrumb-item:not(:last-child)::after {
    float: left;
    padding-inline-end: 8px;
    content: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'8\' height=\'12\' viewBox=\'0 0 8 12\' fill=\'none\'%3E%3Cpath d=\'M0.294922 10.59L4.87492 6L0.294922 1.41L1.70492 0L7.70492 6L1.70492 12L0.294922 10.59Z\' fill=\'%23808080\'/%3E%3C/svg%3E');
    display: inline-block;
    vertical-align: middle;
}

/* Rotate the arrow icon for RTL direction */
[dir="rtl"] .blog-header .custom-breadcrumb .custom-breadcrumb-item:not(:last-child)::after {
    transform: rotate(180deg); /* Flip the arrow */
}

/* Blog Intro */
.blog-body {
    display: flex;
    flex-direction: row;
    column-gap: 32px;
    align-items: start;
    margin-top: 12px;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .blog-body {
        margin-top: 40px;
    }
}

.blog-body .blog-content {
    width: 100%;
}

.blog-body .blog-content div:has(table) {
    width: 100%;
    overflow-x: scroll;
}

@media (min-width: 992px) {
    .blog-body .blog-content div:has(table) {
        width: 100%;
        overflow-x: auto;
    }
}


@media (min-width: 992px) {
    .blog-body .blog-content {
        width: calc(70% - 16px);
    }
}

.blog-body .blog-content img {
    border-radius: 10px;
}

.blog-body .blog-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    row-gap: 25px;
}

@media (min-width: 992px) {
    .blog-body .blog-sidebar {
        width: calc(30% - 16px);
        row-gap: 40px;
    }
}

.blog-body .blog-sidebar .arrow-icon {
    transition: transform 0.3s ease;
    transform: rotate(180deg);
}

.blog-body .blog-sidebar .arrow-icon.rotate {
    transform: rotate(0deg);
}

/* Blog Intro */

.blog-content .blog-intro {
    display: flex;
    flex-direction: column;
}

.blog-content .blog-intro .cover {
    width: 100%;
    height: 100%;
    max-height: 400px;
    margin-bottom: 32px;
    border-radius: 10px;
    overflow: hidden;
}

.blog-content .blog-intro .categories {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.blog-content .blog-intro .title {
    color: #0D0D0D;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    margin-bottom: 18px;
}

@media (min-width: 992px) {
    .blog-content .blog-intro .title {
        font-size: 30px;
        line-height: 38px;
        margin-bottom: 24px;
    }
}

.blog-content .blog-intro .author-wrapper {
    display: flex;
    align-items: center;
    column-gap: 16px;
}

.blog-intro .author-wrapper .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

@media (min-width: 992px) {
    .blog-intro .author-wrapper .avatar {
        width: 60px;
        height: 60px;
    }
}

.blog-intro .author-wrapper .info {
    display: flex;
    flex-direction: column;
    align-items: start;
    row-gap: 8px;
    background: none;
}

@media (min-width: 992px) {
    .blog-intro .author-wrapper .info {
        row-gap: 6px;
    }
}

.blog-intro .author-wrapper .info .name {
    color: #0D0D0D;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}

@media (min-width: 992px) {
    .blog-intro .author-wrapper .info .name {
        font-size: 18px;
        line-height: 32px;
    }
}

.blog-intro .author-wrapper .info .blog-details {
    display: flex;
    align-items: center;
    column-gap: 8px;
    color: #808080;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

/* Sidebar */
.blog-sidebar .category-cards {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
}

/* categories */
.blog-sidebar .category-cards .category-header {
    color: rgba(13, 13, 13, 0.20);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(13, 13, 13, 0.20);
}

.blog-sidebar .category-cards .category-content {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
}

.blog-sidebar .category-content .item {
    position: relative;
    width: 100%;
}

.category-content .item .cover {
    width: 100%;
    height: 100%;
    max-height: 148px;
    border-radius: 10px;
    overflow: hidden;
}

.category-content .item .category-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFF;
    width: 126px;
    border-radius: 4px;
    padding: 4px 0;
    text-align: center;
    color: rgba(13, 13, 13, 0.20);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
}

/* toc */
.blog-sidebar .toc {
    width: 100%;
    border: 1px solid var(--color-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.blog-sidebar .toc .toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: var(--color-secondary);
}

.blog-sidebar .toc .toc-header .title {
    display: flex;
    align-items: center;
    column-gap: 12px;
    color: white;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
}

.blog-sidebar .toc .toc-header .title h3 {
    font-size: 20px;
}

.blog-sidebar .toc .toc-content {
    padding: 28px 16px 16px;
    display: flex;
    flex-direction: column;
}

.blog-sidebar .toc .toc-content .item {
    padding: 8px 0 8px 16px;
    border-left: 2px solid rgba(13, 13, 13, 0.20);
}

.toc .toc-content .item .link {
    color: #808080;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

/* recent blogs */
.blog-sidebar .recent-blogs {
    width: 100%;
}

.blog-sidebar .recent-blogs .card {
    padding: 12px;
}

.recent-blogs .swiper-container-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.recent-blogs .swiper-container-wrapper .swiper {
    width: 100%;
}

.recent-blogs .swiper-container-wrapper .blog-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recent-blogs .blog-card-header .card-title {
    color: #050505;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    margin: 0;
}

.recent-blogs .blog-card-header .nav-arrows {
    display: flex;
    align-items: center;
    column-gap: 12px;
}

.recent-blogs .swiper-container-wrapper .blog-card {
    display: flex;
    flex-direction: column;
    align-items: start;
    row-gap: 12px;
}

.recent-blogs .blog-card .cover {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 215px;
}

.recent-blogs .blog-card .content .blog-title {
    color: #050505;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    margin-bottom: 12px;
}

.recent-blogs .blog-card .content .blog-date {
    color: #050505;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* gallery */
.blog-sidebar .gallery {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
}

.blog-sidebar .gallery .gallery-header {
    padding-inline-start: 16px;
    border-inline-start: 2px solid rgba(13, 13, 13, 0.20);
    color: rgba(13, 13, 13, 0.20);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
}

.gallery .gallery-content {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    gap: 14px;
}

.gallery .gallery-content .item {
    aspect-ratio: 1/1;
    width: calc(33.33% - 14px);
    border-radius: 10px;
    overflow: hidden;
}


/* tags */
.blog-sidebar .tags {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
}

.blog-sidebar .tags .tags-header {
    padding-inline-start: 16px;
    border-inline-start: 2px solid rgba(13, 13, 13, 0.20);
    color: rgba(13, 13, 13, 0.20);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
}

.tags .tags-content {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    gap: 10px;
}

.tags .tags-content .item {
    text-align: center;
    color: rgba(13, 13, 13, 0.20);
    font-size: 14px;
    padding: 4px 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    border-radius: 500px;
    background: #F9F9FB;
}
