.blog-page-wrapper {
    display: flex;
    justify-content: center;
}

.blog-page-content {
    width: 100%;
    box-sizing: border-box;
}

.latest-posts {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 auto;
    padding: 0 0 20px 20px;
    width: 100%;
    max-width: 100rem;
    box-sizing: border-box;
    justify-content: center;
}

.latest-posts-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start; 
}

.latest-post-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative; 
}

.latest-post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.latest-post-first:hover .latest-post-thumbnail img {
    transform: scale(1.02);
}

.latest-post-item-large {
    border-radius: 0 0 20px 20px;
    grid-row: span 2; 
}

.latest-post-thumbnail {
    width: 100%;
    height: auto;
}

.latest-post-second {
    display: flex  !important;
    flex-direction: column  !important;
}

.second-post-thumbnail img {
    width: 100%  !important;
    height: 200px  !important;
    margin-bottom: 10px;
}

.latest-post-second .latest-post-content {
    padding-left: 0;
    text-align: right;
    width: 100%;
}

.latest-post-item-large .latest-post-content {
    position: absolute;
    bottom: 10px; 
    left: 10px;
    right: 10px;
    background: #fff; 
    padding: 15px;
    border-radius: 20px; 
}

.latest-post-item-small {
    background: none;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    border-bottom: 1px solid #e8eaed;
    padding: 50px 0;
    justify-content: space-between;
}

.latest-post-item-small:first-child {
    padding-top: 20px;
}

.latest-post-item-small:last-child {
    border-bottom: none;
}

.latest-post-item-small .latest-post-thumbnail {
    display: contents;
    margin: 0 auto 10px auto; 
    width: 100%;
}

.latest-post-item-small .latest-post-thumbnail img {
    border-radius: 20px;
    height: auto;
    object-fit: cover;
    display: block;
    width: 150px;
    height: 100px;
    transition: transform 0.8s ease;
}

.latest-post-item-small:first-child:hover .latest-post-thumbnail img {
    transform: scale(1.03);
}

.latest-post-item-small:hover .latest-post-thumbnail img {
    transform: scale(1.05);
}

.latest-post-content {
    padding-left: 10px;
    text-align: right;
}

.latest-post-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.latest-post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.latest-post-item:hover .latest-post-title a {
    color: #000; 
}

.latest-post-first {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-categories {
    margin-bottom: 8px;
}

.post-category {
    display: inline-block;
    margin-right: 5px;
    padding-bottom: 3px;
    font-size: 13px;
    color: #232323;
}

.latest-post-excerpt {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    max-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.latest-post-content-separate {
    position: relative;
    background: #fff;
    padding: 20px 30px 5em  30px;
    border-radius: 0 20px 20px 20px;
    margin: -7em 30px 0 0;
    box-shadow: 0 10px 3px rgb(54 64 67 / 0%), 0 10px 30px 0px rgb(54 64 67 / 7%);
}

.title-post-categories  {
    padding: 20px 0;
}

.svg-icon-bottom-left {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 35px;
}

.svg-icon-bottom-left svg {
    width: 24px;
    height: 24px;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.latest-post-first:hover .svg-icon-bottom-left svg {
    transform: translateX(-5px);
}

.latest-post-first:hover .svg-icon-bottom-left svg path {
    stroke: #4285f5;
}

.latest-post-content-separate a {
    font-size: 30px;
}

.all-blog-categories-wrapper {
    position: relative;
}

.all-blog-categories-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 250px;
    background: #f8f9fa;
    transform: translateY(-50%);
    z-index: -1;
    border-radius: 10px;
}

.blog-categories-wrapper {
    padding: 50px 20px;
    text-align: right;
    display: flex;
    max-width: 100rem;
    box-sizing: border-box;
    margin: 0 auto;
    justify-content: space-between;
}

.blog-categories-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

.blog-categories-container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 10px 0;
    white-space: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none; 
}

.blog-categories-container::-webkit-scrollbar {
    display: none;
}

.category-button {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 400;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    height: 300px;
    width: 165px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.category-button::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="337" height="425" viewBox="0 0 337 425" fill="none"><path d="M5.25655 83.8736L336.06 84.0304M2.78589 126.649L333.589 126.805M2.76561 169.425L333.569 169.582M2.74534 212.201L333.548 212.358M0.274675 254.976L331.078 255.133M0.254403 297.752L331.057 297.909M0.234131 340.528L331.037 340.685" stroke="url(%23paint0_linear_102_30)"/><path d="M292.639 5.40874L292.442 422.476M249.864 3.24966L249.667 420.317M207.088 3.22939L206.89 420.297M164.312 3.20911L164.112 424.554M121.537 1.05003L121.338 420.256M78.7606 1.0325L76.4231 420.238M35.9844 1.00949L35.7857 420.216" stroke="url(%23paint1_linear_102_30)"/><defs><linearGradient id="paint0_linear_102_30" x1="0.213541" y1="383.838" x2="331.017" y2="383.995" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0"/><stop offset="0.484375" stop-color="white" stop-opacity="0.2"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient><linearGradient id="paint1_linear_102_30" x1="35.45" y1="1.00922" x2="35.2513" y2="420.216" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0"/><stop offset="0.484375" stop-color="white" stop-opacity="0.2"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient></defs></svg>') no-repeat center;
    background-size: 100%;
    z-index: 0;
    pointer-events: none;
}

.category-button .top-icon {
    width: 50px;
    height: 15px;
    position: absolute;
    top: 10px;
    fill: #f8f9fa;
}

.category-button svg:not(.top-icon) {
    width: 65px;
    height: 65px;
    fill: currentColor;
    margin-top: 30px;
}

.google, .apple, .telegram, .playstation, .xbox, .other {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-button.other .loader {
    width: 30px;
    height: 30px;
    border: 15px solid rgba(255, 255, 255, 0.3); 
    border-top: 15px solid #ffffff; 
    border-radius: 50%; 
    animation: spin 1s linear infinite;
    margin-top: 35px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



.google {
    background: linear-gradient(45deg, #f6bc03, #f39c12);
}

.apple {
    background: linear-gradient(45deg, #949494, #7f8c8d);
}

.telegram {
    background: linear-gradient(45deg, #1d5b9d, #3498db);
}

.playstation {
    background: linear-gradient(45deg, #7058e9, #8e44ad);
}

.xbox {
    background: linear-gradient(45deg, #1e7f1a, #2ecc71);
}

.other {
    background: linear-gradient(45deg, #7f8c8d, #95a5a6);
}

.category-button:hover {
    filter: brightness(1.1);
}

.blog-categories-header {
    display: flex;
    align-items: center;
    margin-left: 20px;
    width: 15%;
    
}

.blog-categories {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 10px 0;
    white-space: nowrap;
}

.blog-categories > * {
    flex-shrink: 0;
}

.blog-categories::-webkit-scrollbar {
    height: 8px; 
}

.blog-categories::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

.blog-categories::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 4px;
}

.blog-categories::-webkit-scrollbar-thumb:hover {
    background: #555; 
}


.blog-posts-wrapper {
    padding: 0 20px;
    text-align: right;
    display: flex;
    max-width: 100rem;
    box-sizing: border-box;
    margin: 0 auto;
    justify-content: space-between;
}

.blog-posts-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

.blog-post-item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 15px;
    background: #fff;
    transition: box-shadow 0.5s ease !important;
    text-align: right;
    border: 1px solid #e5e7ef;
}

.blog-post-item:hover {
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
}

.blog-post-content {
    flex: 1;
    text-align: right;
    padding: 0 10px;
}

.post-categories a {
    display: inline-block;
    padding-bottom: 3px;
    font-size: 13px;
    font-weight: 400;
    color: #232323;
}

.vwalt-blog-lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.vwalt-blog-lazy-loaded {
    opacity: 1;
}

.blog-post-thumbnail {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

.blog-post-thumbnail img {
    border-radius: 14px 14px 0 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-entry-title {
    font-weight: 500;
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}

.blog-entry-title a {
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    color: #3a3a3a;
    transition: color 0.3s;
}

.blog-entry-title a:hover {
    color: #000;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.blog-pagination a,
.blog-pagination span {
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    background: #f0f0f0;
    border-radius: 4px;
    color: #007bff;
    transition: background 0.3s, color 0.3s;
}

.blog-pagination a:hover {
    background: #007bff;
    color: #fff;
}

.blog-pagination .current {
    background: #007bff;
    color: #fff;
    pointer-events: none;
}

.blog-no-posts {
    font-size: 16px;
    color: #777;
    text-align: center;
}

.back-to-blog-container {
    padding: 20px;
    text-align: right;
    background: #fff;
    margin: 0 0 50px 0;
}

.blog-categories-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 40px 20px 20px 20px;
    width: 100%;
    max-width: 100rem;
    box-sizing: border-box;
    overflow: hidden;
}

.blog-categories-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    box-sizing: border-box;
}

.category-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px 0;
    gap: 10px;
    scrollbar-width: none;
    max-width: 100%;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}


.category-buttons {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 10px;
    text-decoration: none;
    color: #000;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    margin: 0;
}

.active-category, .active-category:hover {
    background-color: #000 !important;
    color: #fff !important;
}

.back-to-blog-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 10px;
    text-decoration: none;
    color: #000;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.category-buttons:hover,
.back-to-blog-button:hover {
    background-color: #e0e0e0;
}


@media (max-width: 1324px) {
    .blog-categories-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .blog-categories-header {
        width: 100%;
    }
    
    .all-blog-categories-wrapper::before {
        top: 40%;
        height: 350px;
    }
}

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

@media (max-width: 768px) {
    .latest-posts-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .blog-categories-scroll {
        padding: 40px 10px 20px 10px;
    }
    
    .latest-post-thumbnail img {
         height: 200px;
    }
    
    .latest-post-first {
        margin-bottom: 0;
    }
    
    .latest-posts {
        padding: 0;
    }

    .latest-post-item-large {
        border-radius: 0;
    }

    .latest-post-content-separate {
        border-radius: 20px !important;
        margin: 0 15px !important;
        bottom: 2em;
    }

    .latest-post-content-separate a {
        font-size: 18px;
    }
    
    .svg-icon-bottom-left {
        padding: 20px;
    }

    .latest-post-excerpt {
        font-size: 14px;
    }

    .latest-post-item-small {
        margin: 10px;
    }
    
    .blog-categories-wrapper {
        padding: 50px 10px;
    }
    
    .blog-posts {
        padding: 10px;
    }
    
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 468px) {
    .blog-post-thumbnail img {
        height: 100px;
    }
    
    .blog-entry-title {
        font-size: 13px;
    } 
}
