.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
}


.blog-card {
    overflow: hidden;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.205);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(127, 90, 240, 0.2);
    height: 490px;
}
.blog-card > img{
    max-height: 250px;
    width: 100%;
    height: 100%;
}
.see-more{
    position: absolute;
    bottom: 0;
    background-color: #633ef7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 100%;
    color: white;
    padding: 4px 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;

}
.see-more:hover {
    background-color: #4d30c5;
}
.blog-card-body {
    padding: var(--space-2);
    display: grid;
    gap: var(--space-2);
}
.blog-card-body  > .tag{
    color: #2936e9;
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.blog-excerpt {
    line-height: 1.75;
}

.blog-card.hidden,
.ranking-card.hidden {
    display: none;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #2e2e2e;
    background: rgb(180, 180, 180);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pagination .page-numbers:hover {
    /* background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3); */
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: rgb(54, 54, 54);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(127, 90, 240, 0.4);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-size: 16px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
}

.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
    color: rgba(255, 255, 255, 0.4);
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1360px;
    margin: 0 auto;
}

.grid-container a {
    text-decoration: none;
    color: inherit;
    display: block;
    background: #f5f5f5;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.grid-container a:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(101, 90, 255, 0.25);
}
.grid-container > a > div > p{
    font-size: 0.88rem;
    color: #999;
    margin-top: 6px;
    margin-bottom: 6px;
    opacity: 0.6;
}
.grid-container > a > div {
    position: relative;
}
.grid-container > a > div > div {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #666;
    align-items: center;
    padding: 10px 0;
    width: 100%;
}
.card {
    background: linear-gradient(145deg, #1a1a24, #14141c);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #ec4899, #f97316);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-container a:hover .card {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.35);
}

.grid-container a:hover .card::before {
    opacity: 1;
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.card p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #9ca3af;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-footer span {
    font-size: 0.78rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-footer span:first-child::before {
    content: '👁';
    font-size: 0.85rem;
}
.bottom-blog-title{
    font-size: 2.1rem;
    font-weight: 600;
    color: #333;
    margin: 12px auto;
    text-align: center;
}
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}