#post section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    position: relative;
    background-color: rgb(var(--background));
}

#post section .main {
    grid-column: span 3 / span 4;
}

#post section .main .title {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 10px;
}

#post section .main .author {
    color: rgb(var(--foreground_text_color_alt));
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

#post section .main img {
    width: 100%;
}

#post section .main .details {
    margin-top: 20px;
}

#post section .main .details p {
    font-size: 0.95rem;
    line-height: 2;
}

#post section .main .comments {
    margin-top: 2rem;
}

#post section .main .comments .title {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(var(--border_color), 0.1);
    font-size: 1.1rem;
    font-weight: 500;
}

#post section .main .comments .count-comment-wrap {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

#post section .main .comments .count-comment {
    font-size: 1.3rem;
}

#post section .main .comments .write-comment-btn {
    padding: 0.4rem 1rem;
    background-color: rgb(var(--primary));
    color: rgb(var(--secondary));
    border-radius: 0.25rem;
}

#post section .main .comments .comment-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#post section .main .comments .comment-list .comment .info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#post section .main .comments .comment-list .comment .info img {
    width: 2.5rem;
}

#post section .main .comments .comment-list .comment .message {
    margin-top: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

#post section .main .write-a-comment {
    margin-top: 2rem;
}

#post section .main .write-a-comment .title {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(var(--border_color), 0.1);
    font-size: 1.1rem;
    font-weight: 500;
}

#post section .main .write-a-comment form > div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#post section .main .write-a-comment form textarea {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: 3px;
    border: 1px solid rgba(var(--border_color), 0.1);
    outline: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: rgb(var(--background));
    color: rgb(var(--text_color));
    transition: border 0.3s;
}

#post section .main .write-a-comment form textarea:focus {
    border: 1px solid rgba(var(--primary), 1);
}


#post section .main .write-a-comment form button {
    margin-top: 1rem;
    padding: 0.9rem 1.8rem;
    background-color: rgb(var(--background));
    color: rgb(var(--primary));
    outline: 0;
    border: 2px solid rgba(var(--primary), 1);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 0.5rem;
    transition: all 0.3s;
}

#post section .main .write-a-comment form button i {
    transform: rotate(0deg);
    transition: transform 0.5s;
}

#post section .main .write-a-comment form button:hover {
    background-color: rgb(var(--primary));
    color: rgb(var(--secondary));
}

#post section .main .write-a-comment form button:hover i {
    transform: rotate(50deg);
}

#post section aside {
    grid-column: span 1 / span 4;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 80px;
    height: max-content;
}

#post section aside > div {
    background-color: rgb(var(--foreground));
    padding: 2rem;
}

#post section aside > div h3:first-child {
    padding: 1rem;
}

#post section aside > div > h3 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#post section aside > div > h3::before {
    position: absolute;
    content: "";
    width: 50px;
    height: 3px;
    border-radius: 30px;
    background-color: rgb(var(--primary));
    bottom: -5px;
}

#post section aside .search-blog form {
    display: flex;
}

#post section aside .search-blog input {
    width: 100%;
    padding: 1rem;
    border: 0;
    outline: 0;
    font-size: 0.9rem;
    flex-grow: 1;
}

#post section aside .search-blog .search-btn {
    background-color: rgb(var(--primary));
    color: rgb(var(--secondary));
    border: 0;
    padding: 0 1.2rem;
    cursor: pointer;
}

#post section aside > div ul li {
    padding: 20px;
    border-bottom: 1px solid rgba(var(--border_color), 0.2);
}

#post section aside > div ul li a {
    display: flex;
    gap: 20px;
    align-items: center;
    color: rgb(var(--text_color));
    transition: all 0.3s;
}

#post section aside > div ul li i {
    font-size: 0.8rem;
}

#post section aside > div ul li a:hover {
    color: rgb(var(--primary));
}

#post section aside .similar_blogs .blogs {
    margin-top: 2rem;
}

#post section aside .similar_blogs .blogs .img-wrapper {
    height: 100%;
    width: 40%;
}

#post section aside .similar_blogs .blogs .item {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

#post section aside .similar_blogs .blogs .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

#post section aside .similar_blogs .blogs .item .title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
    transition: 0.3s;
    color: rgb(var(--text_color));
    width: 60%;
}

#post section aside .similar_blogs .blogs .item:hover .title {
    color: rgb(var(--primary));
}

@media only screen and (max-width: 1536px) {
    #post section {
        padding: 50px 4%;
    }
}

@media only screen and (max-width: 1280px) {
    #post section {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
    #post section .main {
        grid-column: span 2 / span 3;
    }
    #post section aside {
        grid-column: span 1 / span 3;
    }
}

@media only screen and (max-width: 768px) {
    #post section {
        display: flex;
        flex-direction: column;
    }
    #post section aside {
        gap: 30px;
    }
}
