:root {
    --body-color: var(--dark-card, #161616);
    --secondary-color: var(--white, #FFFFFF);
    --primary-color: var(--primary, #FF6B00);
}

.blog-main ~ .breadcrumbs-container,
.breadcrumbs-container:first-of-type {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.blog-main {
    padding: 40px 0;
}

.blog-main__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-header {
    margin-bottom: 40px;
    text-align: center;
}

.blog-header__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--white);
    margin: 0 0 20px 0;
}

.blog-header__description {
    font-size: 18px;
    color: var(--secondary-color);
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 768px) {
    .blog-header__title {
        font-size: clamp(2.2rem, 5vw, 4rem);
    }
    .blog-header__description {
        font-size: 16px;
    }
}

.blog-tabs {
    margin-bottom: 40px;
    padding: 16px 0;
}

.blog-tabs__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-tabs__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.blog-tabs__item {
    margin: 0;
}

.blog-tabs__link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--dark-card, #1a1a2e);
    border: 1px solid var(--gray-800, #2d2d3d);
    border-radius: 100px;
    font-family: var(--font-body, inherit);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-300, #a0a0b0);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-tabs__link:hover {
    border-color: var(--primary, #ff6b00);
    color: var(--primary, #ff6b00);
}

.blog-tabs__link--active {
    background: linear-gradient(135deg, var(--primary, #ff6b00) 0%, var(--primary-dark, #e05a00) 100%);
    border-color: var(--primary, #ff6b00);
    color: var(--white, #fff);
    font-weight: 600;
}

@media (max-width: 768px) {
    .blog-tabs__list {
        gap: 10px;
    }
    
    .blog-tabs__link {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

.blog-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

.blog-posts__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400, #9ca3af);
    font-size: 18px;
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .blog-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-posts__grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--dark-card);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.service-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card__image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

.service-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card__image {
    transform: scale(1.05);
}

.service-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

.service-card__content {
    padding: 24px;
}

.service-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card__excerpt {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-card__more {
    gap: 12px;
}

.service-card__meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray-500, #6b7280);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.service-card__date,
.service-card__reading-time,
.service-card__views {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-card__date::before,
#blog-content .service-card__date::before {
    content: '\f073';
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 0.9em;
    color: var(--gray-300, #AAAAAA) !important;
    margin-right: 4px;
}

.service-card__reading-time::before,
#blog-content .service-card__reading-time::before {
    content: '\f017';
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 0.9em;
    color: var(--gray-300, #AAAAAA) !important;
    margin-right: 4px;
}

.service-card__views::before,
#blog-content .service-card__views::before {
    content: '\f06e';
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 0.9em;
    color: var(--gray-300, #AAAAAA) !important;
    margin-right: 4px;
}

.blog-card {
    background: var(--dark-card);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.blog-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card__image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}

.blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

.blog-card__content {
    padding: 24px;
}

.blog-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.blog-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.blog-card__date,
.blog-card__reading-time {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.blog-card:hover .blog-card__more {
    gap: 12px;
}

.blog-posts__load-more {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
    width: 100%;
}

.blog-posts__load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary, #ff6b00) 0%, var(--primary-dark, #e05a00) 100%);
    color: var(--white, #fff);
    border: none;
    border-radius: 100px;
    font-family: var(--font-body, inherit);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-posts__load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}

.blog-posts__load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.blog-post-detail {
    padding: 40px 0;
}

.blog-post-detail__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post-article {
    max-width: 1100px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-header__category {
    margin-bottom: 15px;
}

.blog-post-header__category-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.blog-post-header__category-link:hover {
    opacity: 0.8;
}

.blog-post-header__title {
    font-size: 42px;
    font-weight: 500;
    color: var(--secondary-color);
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.blog-post-header__meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--secondary-color);
    opacity: 0.7;
}

.blog-post-header__date,
.blog-post-header__updated,
.blog-post-header__reading-time,
.blog-post-header__views {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-header__date i,
.blog-post-header__updated i,
.blog-post-header__reading-time i,
.blog-post-header__views i {
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .blog-post-header__title {
        font-size: 28px;
    }
}

.blog-post-featured {
    margin-bottom: 40px;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-post-featured__image {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
}

.blog-post-content-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.blog-post-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin-left: -100px;
}

.blog-post-content__text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--secondary-color);
    word-wrap: break-word;
}

.blog-post-content__text .table-responsive {
    
    max-width: 100%;
    overflow-x: auto;
}

.blog-post-content__text table:not(.table-responsive table) {
    
    display: block;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

.blog-post-content__text .table-responsive {
    
    max-width: 100%;
    overflow-x: auto;
}

.blog-post-content__text h2 {
    font-size: 32px;
    font-weight: 500;
    margin: 40px 0 20px 0;
    color: var(--secondary-color);
}

.blog-post-content__text h3 {
    font-size: 24px;
    font-weight: 500;
    margin: 30px 0 15px 0;
    color: var(--secondary-color);
}

.blog-post-content__text h4 {
    font-size: 20px;
    font-weight: 500;
    margin: 25px 0 12px 0;
    color: var(--secondary-color);
}

.blog-post-content__text p {
    margin: 0 0 20px 0;
}

.blog-post-content__text img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 20px 0;
}

.blog-post-content__text .blog-post-slider__image {
    margin: 0;
    border-radius: 0;
}

.blog-post-content__text ul,
.blog-post-content__text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-post-content__text li {
    margin: 10px 0;
}

@media (max-width: 992px) {
    .blog-post-content-wrapper {
        flex-direction: column;
    }
    
    .blog-post-sidebar {
        order: 0;
    }
    
    .blog-post-content {
        order: 1;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .blog-post-detail__container {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .blog-post-article {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .blog-post-content-wrapper {
        overflow-x: hidden; 
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    .blog-post-content {
        overflow-x: hidden; 
        max-width: 100%;
        position: relative;
    }
    
    .blog-post-content__text {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
        position: relative;
        
        touch-action: pan-y;
    }
    
    .blog-post-content__text * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

.blog-post-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: flex-start;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    margin-bottom: 0;
}

.blog-post-author-wrapper {
    flex: 0 0 auto;
    flex-shrink: 0;
}

.blog-post-toc-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.blog-post-author {
    background-color: var(--body-color);
    border: 2px solid #CCCCCC;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-post-author__photo {
    margin-bottom: 15px;
    text-align: center;
}

.blog-post-author__image {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1;
    border: 2px solid var(--secondary-color);
    display: block;
    margin: 0 auto;
}

.blog-post-author__content {
    text-align: center;
}

.blog-post-author__name {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}

.blog-post-author__name-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-author__name-link:hover {
    color: var(--primary-color);
}

.blog-post-author__specialization {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.blog-post-author__social {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--secondary-color);
}

.blog-post-author__social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.blog-post-author__social-link:hover {
    background-color: var(--primary-color);
    color: var(--body-color);
    transform: translateY(-2px);
}

.blog-post-author__social-link i {
    font-size: 16px;
}

@media (max-width: 992px) {
    .blog-post-author {
        position: static;
        max-height: none;
        margin-bottom: 20px;
    }
}

.blog-post-toc {
    flex: 0 0 280px;
}

.toc {
    background-color: var(--body-color);
    border: 2px solid #CCCCCC;
    border-radius: 15px;
    padding: 0;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.toc:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toc__header {
    padding: 15px 20px 15px;
    border-bottom: 1px solid var(--secondary-color);
    background-color: var(--body-color);
}

.toc__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: opacity 0.2s ease;
}

.toc__toggle:hover {
    opacity: 0.8;
}

.toc__toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.toc__toggle[aria-expanded="false"] .toc__icon {
    transform: rotate(-90deg);
}

.toc__icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.toc__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.toc__list {
    list-style: none;
    margin: 0;
    padding: 15px 20px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}

.toc__list--hidden {
    display: none !important;
}

.toc__list::-webkit-scrollbar {
    width: 6px;
}

.toc__list::-webkit-scrollbar-track {
    background: transparent;
}

.toc__list::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 3px;
    opacity: 0.3;
}

.toc__list::-webkit-scrollbar-thumb:hover {
    opacity: 0.5;
}

.toc__sublist {
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0 0 0 20px;
    border-left: 2px solid var(--secondary-color);
    opacity: 1; 
    position: relative;
}

.toc__sublist .toc__link {
    color: var(--secondary-color); 
}

.toc__sublist .toc__number {
    color: var(--secondary-color); 
}

.toc__sublist::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--primary) 20%, 
        var(--primary) 80%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toc__sublist {
    border-left-color: rgba(25, 26, 35, 0.2); 
}

@media (min-width: 992px) {
    .toc__sublist:has(.toc__link--active)::before {
        opacity: 1;
    }
}

.toc__item {
    margin: 4px 0;
    position: relative;
}

.toc__item--h2 {
    margin-top: 8px;
    margin-bottom: 4px;
}

.toc__item--h2:first-child {
    margin-top: 0;
}

.toc__item--h3 {
    margin-left: 0;
    margin-top: 2px;
    margin-bottom: 2px;
}

.toc__item--h4 {
    margin-left: 0;
    margin-top: 2px;
    margin-bottom: 2px;
}

.toc__link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color); 
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    margin-left: -12px;
    margin-right: -12px;
    font-weight: 400;
}

.toc__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--primary);
    border-radius: 0 2px 2px 0;
    transition: all 0.2s ease;
    opacity: 0.7; 
}

.toc__link:hover {
    color: var(--primary-dark); 
    background-color: rgba(25, 26, 35, 0.08);
    font-weight: 500; 
}

.toc__link:hover::before {
    height: 60%;
    opacity: 1; 
    background-color: var(--primary); 
}

.toc__link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (min-width: 992px) {
    .toc__link--active {
        color: var(--primary-dark); 
        font-weight: 600;
        background-color: rgba(255, 107, 0, 0.12); 
    }

    .toc__link--active::before {
        height: 80%;
        background-color: var(--primary); 
        opacity: 1;
        width: 4px; 
    }
}

.toc__number {
    flex-shrink: 0;
    font-weight: 600;
    min-width: 2.5em;
    color: var(--secondary-color); 
    font-variant-numeric: tabular-nums;
}

.toc__link:hover .toc__number {
    color: var(--primary-dark);
}

@media (min-width: 992px) {
    .toc__link--active .toc__number {
        color: var(--primary-dark); 
        font-weight: 700;
    }
}

.toc__text {
    flex: 1;
    word-break: break-word;
    color: inherit; 
}

.toc__indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary); 
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(255, 107, 0, 0.4); 
}

@media (min-width: 992px) {
    .toc__link--active .toc__indicator {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media print {
    .toc {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .toc__toggle {
        display: none;
    }
}

@media (max-width: 992px) {
    .blog-post-sidebar {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
        gap: 0;
        margin-bottom: 0;
    }
    
    .blog-post-toc-wrapper {
        margin-bottom: 0;
        flex: none;
        min-height: auto;
    }
    
    .blog-post-toc {
        flex: none;
        margin-bottom: 0;
    }
    
    .toc {
        position: static;
        max-height: none;
        overflow-y: visible;
        flex: none;
        min-height: auto;
        margin-bottom: 0;
    }
    
    .toc__toggle {
        display: flex; 
        pointer-events: none; 
    }
    
    .toc__icon {
        display: none; 
    }
    
    .toc__title {
        display: block; 
    }
    
    .toc__header {
        padding-bottom: 15px;
    }
}


.blog-post-sources {
    margin: 60px 0;
}

.blog-post-sources__title {
    font-size: 32px;
    font-weight: 500;
    color: var(--secondary-color);
    margin: 0 0 30px 0;
}

.blog-post-sources__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-post-sources__item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--body-color);
    border-radius: 15px;
}

.blog-post-sources__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.blog-post-sources__link:hover {
    color: var(--primary-color);
}

.blog-post-sources__title-text {
    font-weight: 600;
    font-size: 16px;
    color: var(--secondary-color);
}

.blog-post-sources__description {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: var(--secondary-color);
    opacity: 0.8;
    line-height: 1.6;
}

.blog-post-share {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--body-color);
    border-radius: 15px;
    text-align: center;
}

.blog-post-share__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 20px 0;
}

.blog-post-share__links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-post-share__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-post-share__link i {
    font-size: 18px;
    line-height: 1;
}

.blog-post-share__link span {
    line-height: 1;
}

.blog-post-share__link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.blog-post-share__link--vk {
    background-color: #0077FF;
    color: white;
}

.blog-post-share__link--telegram {
    background-color: #0088cc;
    color: white;
}

.blog-post-share__link--copy {
    background-color: var(--body-color);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.blog-post-share__link--copy:hover {
    background-color: var(--secondary-color);
    color: var(--body-color);
}

.blog-post-share__link--copy i {
    color: inherit;
}

@media (max-width: 768px) {
    .blog-post-share {
        padding: 20px 15px;
    }
    
    .blog-post-share__links {
        gap: 10px;
    }
    
    .blog-post-share__link {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .blog-post-share__link i {
        font-size: 16px;
    }
}

.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 60px 0;
    padding: 30px;
    background-color: var(--body-color);
    border-radius: 15px;
}

.blog-post-navigation__prev,
.blog-post-navigation__next {
    flex: 1;
}

.blog-post-navigation__next {
    text-align: right;
}

.blog-post-navigation__label {
    display: block;
    font-size: 12px;
    color: var(--secondary-color);
    opacity: 0.6;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-navigation__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.blog-post-navigation__link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .blog-post-navigation {
        flex-direction: column;
    }
    
    .blog-post-navigation__next {
        text-align: left;
    }
}

.blog-post-back {
    margin: 40px 0;
    text-align: center;
}

.blog-post-back__link {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.blog-post-back__link:hover {
    opacity: 0.8;
}

.related-posts {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--secondary-color);
}

.related-posts__title {
    font-size: 36px;
    font-weight: 500;
    color: var(--secondary-color);
    margin: 0 0 40px 0;
    text-align: center;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

@media (max-width: 1024px) {
    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-posts__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .related-posts__grid {
        grid-template-columns: 1fr;
    }
}

.blog-authors {
    margin: 40px 0;
}

.blog-authors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-authors__empty {
    text-align: center;
    color: var(--secondary-color);
    font-size: 18px;
    padding: 60px 20px;
}

.blog-author-card {
    background-color: var(--body-color);
    border: 1px solid var(--secondary-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-author-card__photo {
    margin-bottom: 20px;
}

.blog-author-card__image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    margin: 0 auto;
}

.blog-author-card__name {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}

.blog-author-card__name-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-author-card__name-link:hover {
    color: var(--primary-color);
}

.blog-author-card__specialization {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.blog-author-card__bio {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.blog-author-card__stats {
    margin: 15px 0;
}

.blog-author-card__stat {
    font-size: 14px;
    color: var(--secondary-color);
    opacity: 0.8;
}

.blog-author-card__link {
    display: inline-block;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.blog-author-card__link:hover {
    opacity: 0.7;
}

.content-card {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--body-color);
    border-radius: 15px;
    border: 1px solid var(--secondary-color);
}

.blog-author-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--body-color);
    border-radius: 15px;
    border: 1px solid var(--secondary-color);
}

.blog-author-header__photo {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-author-header__image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    margin: 0 auto;
}

.blog-author-header__content {
    flex: 1;
    width: 100%;
    text-align: center;
}

.blog-author-header__name {
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 20px 0;
}

.blog-author-header__info {
    margin: 20px 0 0 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.blog-author-header__specialization {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.blog-author-header__experience {
    font-size: 16px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
}

.blog-author-header__social {
    margin-top: 15px;
}

.blog-author-header__social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blog-author-header__social-link:hover {
    background-color: var(--primary-color);
    color: var(--body-color);
    transform: translateY(-2px);
}

.blog-author-header__social-link i {
    font-size: 18px;
}

.blog-author-bio {
}

.blog-author-bio__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 20px 0;
}

.blog-author-bio__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--secondary-color);
}

.blog-author-photos {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--body-color);
    border-radius: 15px;
    border: 1px solid var(--secondary-color);
}

.blog-author-photos__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 20px 0;
}

.blog-author-photos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.blog-author-photos__item {
    text-align: center;
}

.blog-author-photos__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
    margin-bottom: 10px;
}

.blog-author-photos__description {
    font-size: 14px;
    color: var(--secondary-color);
    opacity: 0.8;
    margin: 0;
}

.blog-author-stats {
    display: flex;
    gap: 30px;
}

.blog-author-stats__item {
    flex: 1;
    text-align: center;
}

.blog-author-stats__label {
    display: block;
    font-size: 14px;
    color: var(--secondary-color);
    opacity: 0.8;
    margin-bottom: 8px;
}

.blog-author-stats__value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .blog-authors__grid {
        grid-template-columns: 1fr;
    }
    
    .blog-author-header {
        padding: 20px;
    }
    
    .blog-author-header__image {
        width: 120px;
        height: 120px;
    }
    
    .blog-author-header__name {
        font-size: 24px;
    }
    
    .blog-author-photos__grid {
        grid-template-columns: 1fr;
    }
    
    .blog-author-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .content-card {
        padding: 20px;
    }
}

.table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin: 32px auto;
    position: relative;
    box-sizing: border-box;
    touch-action: pan-x;
    contain: layout style;
    border-radius: var(--radius-lg);
    background: var(--dark-card);
    border: 1px solid var(--gray-800);
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--gray-900);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.table-responsive table {
    width: 100%;
    min-width: 400px;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    table-layout: auto;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--dark-card);
}

.table-responsive table th,
.table-responsive table td {
    padding: 16px 20px;
    text-align: left;
    border: 1px solid var(--gray-800);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
    font-family: var(--font-body);
}

.table-responsive table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    border-top: none;
    border-bottom: 2px solid var(--gray-800);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-responsive table th:first-child {
    border-top-left-radius: var(--radius-md);
    border-left: none;
}

.table-responsive table th:last-child {
    border-top-right-radius: var(--radius-md);
    border-right: none;
}

.table-responsive table td {
    white-space: normal;
    background-color: var(--dark-card);
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.6;
}

.table-responsive table tbody > tr:first-child td {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 600;
    border-top: none;
    border-bottom: 2px solid var(--gray-800);
    white-space: nowrap;
}

.table-responsive table tbody > tr:first-child td:first-child {
    border-top-left-radius: var(--radius-md);
    border-left: none;
}

.table-responsive table tbody > tr:first-child td:last-child {
    border-top-right-radius: var(--radius-md);
    border-right: none;
}

.table-responsive table td:first-child {
    border-left: none;
}

.table-responsive table td:last-child {
    border-right: none;
}

.table-responsive table tr:last-child td {
    border-bottom: none;
}

.table-responsive table tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-md);
}

.table-responsive table tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-md);
}

.table-responsive table tr:nth-child(even) td {
    background-color: var(--gray-900);
}

.table-responsive table.striped tr:nth-child(even) td {
    background-color: var(--gray-900);
}

.table-responsive table.bordered {
    border: 1px solid var(--gray-700);
}

.table-responsive table.bordered th,
.table-responsive table.bordered td {
    border: 1px solid var(--gray-700);
}

.table-responsive table.compact th,
.table-responsive table.compact td {
    padding: 10px 14px;
    font-size: 0.85rem;
}

.table-responsive table tbody tr:hover td {
    background-color: var(--gray-800);
    transition: background-color var(--transition);
}

@media (max-width: 768px) {
    .table-responsive {
        margin: 24px auto;
        border-radius: var(--radius-md);
    }
    
    .table-responsive table {
        min-width: 350px;
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
    }
    
    .table-responsive table th,
    .table-responsive table td {
        padding: 12px 14px;
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .table-responsive table th {
        white-space: normal;
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    .table-responsive table th:first-child {
        border-top-left-radius: var(--radius-sm);
    }
    
    .table-responsive table th:last-child {
        border-top-right-radius: var(--radius-sm);
    }
    
    .table-responsive table tbody > tr:first-child td {
        white-space: normal;
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    .table-responsive table tbody > tr:first-child td:first-child {
        border-top-left-radius: var(--radius-sm);
    }
    
    .table-responsive table tbody > tr:first-child td:last-child {
        border-top-right-radius: var(--radius-sm);
    }
    
    .table-responsive table tr:last-child td:first-child {
        border-bottom-left-radius: var(--radius-sm);
    }
    
    .table-responsive table tr:last-child td:last-child {
        border-bottom-right-radius: var(--radius-sm);
    }
}

@media (max-width: 480px) {
    .table-responsive {
        margin: 20px auto;
        border-radius: var(--radius-sm);
    }
    
    .table-responsive table {
        min-width: 300px;
        font-size: 0.85rem;
        border-radius: var(--radius-sm);
    }
    
    .table-responsive table th,
    .table-responsive table td {
        padding: 10px 12px;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .table-responsive table th {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .table-responsive table th:first-child {
        border-top-left-radius: var(--radius-sm);
    }
    
    .table-responsive table th:last-child {
        border-top-right-radius: var(--radius-sm);
    }
    
    .table-responsive table tbody > tr:first-child td {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .table-responsive table tbody > tr:first-child td:first-child {
        border-top-left-radius: var(--radius-sm);
    }
    
    .table-responsive table tbody > tr:first-child td:last-child {
        border-top-right-radius: var(--radius-sm);
    }
    
    .table-responsive table tr:last-child td:first-child {
        border-bottom-left-radius: var(--radius-sm);
    }
    
    .table-responsive table tr:last-child td:last-child {
        border-bottom-right-radius: var(--radius-sm);
    }
}

.blog-post-slider {
    margin: 40px 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.blog-post-content__text .blog-post-slider {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.blog-post-content__text .blog-post-slider__container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.blog-post-slider__container {
    position: relative;
    max-width: 900px; 
    width: 100%;
    margin: 0 auto; 
    background-color: var(--body-color);
    border: 1px solid var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    border-radius: 25px;
    overflow: hidden;
    box-sizing: border-box;
}

.blog-post-slider__track {
    position: relative;
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100%;
    box-sizing: border-box;
}

.blog-post-slider__slide {
    min-width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    
    border: 0;
    gap: 0;
}

.blog-post-slider__slide--active {
    opacity: 1;
}

.blog-post-slider__image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    background-color: var(--body-color);
    display: block;
    position: relative;
    box-sizing: border-box;
    
    min-height: 0;
    
    margin: 0;
    padding: 0;
    border: 0;
}

.blog-post-slider__image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--body-color) 0%, var(--primary-color) 100%);
    opacity: 0.3;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.blog-post-slider__image-wrapper:has(img.loaded)::before,
.blog-post-slider__image-wrapper img.loaded ~ ::before {
    opacity: 0;
    pointer-events: none; 
    z-index: 0; 
}

.blog-post-slider__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; 
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 2;
    box-sizing: border-box;
    
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

.blog-post-slider__image.loaded {
    opacity: 1;
}

.blog-post-slider__slide:hover .blog-post-slider__image {
    transform: scale(1.02);
    transform-origin: center center; 
}

.blog-post-slider__caption {
    padding: 20px 30px;
    margin: 0;
    background-color: var(--body-color);
    border-top: 1px solid var(--secondary-color);
    text-align: center;
    box-sizing: border-box;
}

.blog-post-slider__caption-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-color);
    line-height: 1.6;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-post-slider__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    font-family: inherit;
    color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.blog-post-slider__button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-post-slider__button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.blog-post-slider__button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.blog-post-slider__button--prev {
    left: 20px;
}

.blog-post-slider__button--next {
    right: 20px;
}

.blog-post-slider__icon {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    display: block;
}

.blog-post-slider__pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background-color: var(--body-color);
    box-sizing: border-box;
}

.blog-post-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    font-size: 0;
    line-height: 0;
    box-sizing: border-box;
}

.blog-post-slider__dot:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.blog-post-slider__dot--active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.blog-post-slider__dot:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 992px) {
    .blog-post-slider__container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-post-slider {
        margin: 30px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .blog-post-content__text .blog-post-slider {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .blog-post-slider__container {
        max-width: 100%;
        width: 100%;
        border-radius: 15px;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .blog-post-slider__image-wrapper {
        aspect-ratio: 4 / 3; 
        width: 100%;
        position: relative;
        overflow: hidden;
        display: block;
        min-height: 0;
    }
    
    .blog-post-slider__image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top; 
        display: block;
        min-width: 100%;
        min-height: 100%;
    }
    
    .blog-post-slider__button {
        width: 44px;
        height: 44px;
    }
    
    .blog-post-slider__button--prev {
        left: 10px;
    }
    
    .blog-post-slider__button--next {
        right: 10px;
    }
    
    .blog-post-slider__icon {
        font-size: 24px;
    }
    
    .blog-post-slider__caption {
        padding: 15px 20px;
    }
    
    .blog-post-slider__caption-text {
        font-size: 14px;
    }
    
    .blog-post-slider__pagination {
        padding: 15px;
    }
    
    .blog-post-slider__dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .blog-post-slider {
        margin: 20px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .blog-post-content__text .blog-post-slider {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .blog-post-slider__container {
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .blog-post-slider__image-wrapper {
        aspect-ratio: 1 / 1; 
        width: 100%;
        position: relative;
        overflow: hidden;
        display: block;
        min-height: 0;
    }
    
    .blog-post-slider__image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top; 
        display: block;
        min-width: 100%;
        min-height: 100%;
    }
    
    .blog-post-slider__image-wrapper {
        aspect-ratio: 1 / 1; 
    }
    
    .blog-post-slider__button {
        width: 44px;
        height: 44px;
    }
    
    .blog-post-slider__button--prev {
        left: 8px;
    }
    
    .blog-post-slider__button--next {
        right: 8px;
    }
    
    .blog-post-slider__icon {
        font-size: 20px;
    }
    
    .blog-post-slider__caption {
        padding: 12px 15px;
    }
    
    .blog-post-slider__caption-text {
        font-size: 13px;
    }
    
    .blog-post-slider__pagination {
        padding: 12px;
        gap: 8px;
    }
    
    .blog-post-slider__dot {
        width: 8px;
        height: 8px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .blog-post-slider__button {
        opacity: 0.7;
    }
    
    .blog-post-slider:hover .blog-post-slider__button {
        opacity: 1;
    }
}

@media print {
    .blog-post-slider__button,
    .blog-post-slider__pagination {
        display: none;
    }
    
    .blog-post-slider__track {
        display: block;
    }
    
    .blog-post-slider__slide {
        page-break-inside: avoid;
        margin-bottom: 20px;
        opacity: 1;
    }
    
    .blog-post-slider__caption {
        border-top: 1px solid #000;
    }
}

.htmx-loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px 50px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.htmx-request .htmx-loading,
.htmx-request.htmx-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.htmx-loading__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color, #007bff);
    border-radius: 50%;
    animation: htmx-spin 0.8s linear infinite;
}

@keyframes htmx-spin {
    to {
        transform: rotate(360deg);
    }
}

.htmx-loading__text {
    color: var(--white, #fff);
    font-size: 14px;
    font-weight: 500;
}

.blog-tabs__link.htmx-request {
    pointer-events: none;
    opacity: 0.7;
}

.blog-posts__load-more-btn.htmx-request {
    pointer-events: none;
    opacity: 0.7;
}

.blog-posts__load-more-btn.htmx-request::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: htmx-spin 0.8s linear infinite;
    vertical-align: middle;
}

#blog-content {
    transition: opacity 0.2s ease;
}

.htmx-swapping #blog-content {
    opacity: 0.5;
}

@keyframes htmx-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-posts__grid > .service-card:last-child {
    animation: htmx-fade-in 0.3s ease;
}
