.blogs-container {
    width: 70%;
    margin: auto;
    margin-top: calc(70px + 2rem);
}

.blogs-container-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blogs-container-top h1 {
    font-size: 1.2rem;
    font-weight: bold;
}

.bct-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-tags {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--link-color);
    box-shadow: 1px 1px 2px 1px #ccc;
}

.active-tag {
    background-color: var(--link-color);
    color: white;
    pointer-events: none;
    border: 1px solid var(--link-color);
    box-shadow: 1px 1px 2px 1px var(--link-color);
}

.tag:hover {
    /* background-color: #f0f0f0; */
    box-shadow: 1px 1px 4px 2px #ccc;
}

.search-bar {
    border: 1px solid gray;
    border-radius: 5px;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
}

.search-bar input[type="search"] {
    outline: none;
    border: none;
    font-size: 0.9rem;
}

.htmx-request#spinner {
    display: flex;
}

@keyframes blink {
    0%,
    80%,
    100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

#spinner {
    display: none;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    gap: 0.3rem;
}

#spinner div {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

#spinner div:nth-child(2) {
    animation-delay: 0.2s;
}

#spinner div:nth-child(3) {
    animation-delay: 0.4s;
}

#blog-main-content {
    margin-top: 5rem;
}
.blogs-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.blog-left {
    width: 60%;
}

.blog-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-right a {
    display: none;
}

.blog-right img {
    width: 200px;
    border: 1px solid gray;
    border-radius: 5px;
}

.blogs-box .blog-date {
    font-size: 0.9rem;
    color: rgb(71, 68, 68);
    font-style: italic;
}

.blogs-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.step-links {
    display: flex;
    gap: 1rem;
}

.step-links .current,
.step-links button {
    text-decoration: none;
    border: 1px solid #ccc;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    color: var(--link-color);
    border-radius: 4px;
}

.step-links .current {
    color: var(--primary-color);
}

@media (min-width: 1900px) {
    .blog-right img {
        width: 300px;
    }

    .blog-left {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .blogs-container {
        width: 90%;
    }

    #blog-main-content {
        margin-top: 3rem;
    }

    .blog-tags {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    .blog {
        flex-direction: column-reverse;
    }

    .blog-left {
        width: 100%;
    }

    .blog-left a {
        display: none;
    }

    .blog-right a {
        display: block;
    }
}

@media (max-width: 480px) {
    .blogs-container {
        width: 90%;
    }

    .blogs-container-top {
        flex-direction: column;
        gap: 1rem;
    }

    .search-bar {
        width: 100%;
    }

    .blogs-container-top h1 {
        text-align: center;
    }

    .bct-right {
        width: 100%;
        justify-content: space-between;
    }
}
