.post-title {
    color: var(--text-color);
    transition: color .2s;
}

.post-title:hover {
    color: var(--primary-color);
    text-decoration: none;
}

h1.post-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #333;
}

.post-card {
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    height: 100%;
    border-radius: 0 !important;
}

.post-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.post-image-wrapper {
    height: 420px;
    overflow: hidden;
    border-radius: 0;
}

.post-image-wrapper img {
    transition: transform 0.3s ease;
    border-radius: 0;
    object-fit: cover;
}

.post-card:hover .post-image-wrapper img {
    transform: scale(1.05);
}

.post-container {
    margin-top: 20px;
    margin-bottom: 30px;
}

.card-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-grid-item {
    flex: 0 0 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
}

.post-info {
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
}

.post-image-container {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 0;
}

.post-image {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.post-wrapper .card {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.post-wrapper .card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
}

.post-wrapper .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.post-wrapper .card-body {
    padding: 1.5rem;
    border-radius: 0;
}

@media (max-width: 1199.98px) {
    .card-grid-item {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }

    .post-image-wrapper {
        height: 400px;
    }
    .post-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 991.98px) {
    .card-grid-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }

    .post-image-wrapper {
        height: 400px;
        object-fit: cover;
    }
    .post-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 767.98px) {
    /* Mobile Landscape */
    .card-grid-item {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }

    .card-grid {
        gap: 0.75rem;
    }

    .post-image-wrapper {
        height: 300px;
        width: 100%;
        object-fit: cover;
    }
    .post-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 575.98px) {
    /* Mobile Portrait */
    .card-grid-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .post-image-wrapper {
        height: 300px;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .text-muted.small {
        font-size: 0.8rem;
    }
    .post-image-wrapper {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}