/* =====================================================
   HIDDEN SEO H1
===================================================== */
.hidden-h1 {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =====================================================
   POST GRID LAYOUT
===================================================== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
    column-gap: 20px;
    padding: 40px 30px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =====================================================
   POST CARD
===================================================== */
.post-card {
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    contain: layout paint;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    border-width: 2px;
    border-image-slice: 1;
    border-image-source: linear-gradient(90deg, #d18d29, #02ff99);
    box-shadow: 0 6px 20px rgba(209, 141, 41, 0.25);
}

.post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card h2 {
    margin-top: 10px;
    font-size: 18px;
    color: #000;
    text-align: center;
}

/* =====================================================
   SHIMMER LOADER
===================================================== */
.shimmer {
    height: 200px;
    border-radius: 5px;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 37%,
        #f0f0f0 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }
    100% {
        background-position: 400px 0;
    }
}

/* =====================================================
   LOADER TEXT
===================================================== */
.loading {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #0073aa;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: 1fr;
        padding: 5px;
    }
}

@media (min-width: 601px) and (max-width: 992px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 5px;
    }
}