.blog-page-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

@media (min-width: 768px) {
    .blog-page-title {
        font-size: 28px;
    }
}

.blog-categories {
    position: sticky;
    top: var(--header-h, 0);
    z-index: 30;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    scrollbar-width: thin;
}

.blog-category-title {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #222;
    color: #222;
    background: transparent;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-category-title:hover,
.blog-category-title.is-active {
    background-color: #222;
    color: #fff;
    border-color: #222;
}

.blog-list {
    font-size: 0.9rem;
    color: #6c757d;
}

.blog-count {
    background-color: var(--main-color);
    color: #fff;
    font-size: 0.8rem;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    margin-inline-start: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.blog-empty {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    color: #6c757d;
}

.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.blog-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.25rem 1.25rem;
}

.blog-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.blog-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: #f4f4f4;
}

@media (max-width: 768px) {
    .blog-image {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 480px) {
    .blog-image {
        aspect-ratio: 16 / 9;
    }
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c0c0;
}

.blog-card .blog-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 0.5rem;
}

.blog-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 0.75rem;
}

.blog-badges {
    display: flex;
    flex-wrap: wrap;
    margin-top: auto;
}

.blog-badges .badge-item {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-inline-end: 6px;
    margin-bottom: 6px;
    background-color: #fff;
}

.blog-badges .badge-item.is-category {
    border-color: var(--main-color);
    color: var(--main-color);
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #6c757d;
    margin-top: 0.75rem;
}

.blog-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

html[dir="rtl"] .blog-arrow,
.rtl .blog-arrow {
    transform: scaleX(-1);
}

.blog-article {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-article .fluid-container {
    max-width: 900px;
}

.blog-cover {
    position: relative;
    width: 100%;
    padding-top: 42.85%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: #f4f4f4;
}

.blog-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1.blog-title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 1rem;
}

@media (min-width: 768px) {
    h1.blog-title {
        font-size: 32px;
    }
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 14px;
}

.blog-content {
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    margin: 1.5rem 0 0.75rem;
    font-weight: 700;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2rem;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #333;
    text-decoration: none;
}

.blog-tag.is-category {
    background: #222;
    border-color: #222;
    color: #fff;
}

.blog-share-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.blog-share-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.blog-share-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.blog-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.blog-slider-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color);
    text-decoration: none;
    white-space: nowrap;
}

.blog-slider-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .blog-slider-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-slider-track {
        grid-template-columns: repeat(4, 1fr);
    }
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.blog-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #222;
    background: #fff;
    text-decoration: none;
}

.blog-page-btn.is-active {
    background: #222;
    border-color: #222;
    color: #fff;
}

.blog-page-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.blog-page-ellipsis {
    padding: 0 4px;
    color: #6c757d;
}
