.content-flex {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.left-content {
    flex: 2;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #222;

    /* isti izgled kartica */
    height: 40px;
    overflow: hidden;
}

.meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.post-content p {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;

    height: 60px;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    text-decoration: none;
    color: white;
    background: #f58220;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: auto;
    transition: 0.3s;
}

.read-more:hover {
    background: #d96d10;
}

.pagination {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
     justify-content: center;  
}

.pagination a {
    padding: 8px 12px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
}

.pagination a:hover {
    background: #ddd;
}

.pagination a.active {
    background: #f58220;
    color: white;
}
.right-content {
    flex: 1;
}

.right-content1 {
    flex: 1;
}

.left-content1 {
    flex: 1;
}

.center-content1 {
    flex: 1;
}

.sidebar-box {
    background: white;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    color: #333;
}

.category-list {
    list-style: none;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    transition: 0.2s;
}

.category-list li:hover {
    background: #f9f9f9;
}

.count {
    min-width: 32px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #f58220, #ff9a3c);
    color: white;

    font-size: 13px;
    font-weight: 600;

    border-radius: 20px;
    padding: 0 10px;

    box-shadow: 0 2px 6px rgba(245,130,32,0.3);

    transition: 0.3s;
}

.category-list li:hover .count {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(245,130,32,0.5);
}

.featured-book {
    position: relative;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f7f7f7);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: 0.4s;
    cursor: pointer;
}

.featured-book:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.featured-book img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 10px;
    border-bottom: 3px solid #f58220;
    transition: 0.4s;
}

.featured-book:hover img {
    transform: scale(1.05);
}

.featured-book::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0.8;
    transition: 0.3s;
}

.featured-book:hover::after {
    opacity: 0.6;
}

.featured-book h4,
.featured-book h5 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 2;
}

.featured-book h4 {
    bottom: 45px;
    font-size: 18px;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.featured-book h5 {
    bottom: 20px;
    font-size: 14px;
    color: #ffd8b5;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.featured-book::before {
    content: "ISTAKNUTO";
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f58220, #ff9a3c);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 3px 8px rgba(245,130,32,0.4);
}

@media (max-width: 768px) {
    .right-content {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .content-flex {
        flex-direction: column;
    }

    .posts {
        grid-template-columns: 1fr;
    }

    .post-card img {
        height: 200px;
    }
}