.single-post-template {
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: 4% auto;
    color: #4f48d6;
}

.single-post-template .post-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 5 / 1;
    width: 100%;
    overflow: hidden;
}

.single-post-template .post-thumbnail img {
    width: 100%;
    height: auto;
}

.single-post-template .header {
    display: flex;
    justify-content: space-between;
}

.single-post-template .header .post-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0 20px;
}

.single-post-template .header .post-info img {
    height: 1.8rem;
}

.single-post-template .header .post-info div {
    display: flex;
    gap: 0 10px;
    align-items: center;
}

.single-post-template .header .post-info div p {
    font-size: 1.15rem;
    margin: 0;
}

.single-post-template .header .cat-container {
    display: flex;
    justify-content: flex-start;
    font-size: 1.15rem;
    margin-top: 10px;
}

.single-post-template .header .cat-container .date-text {
    color: #4f48d6;
    opacity: 0.5;
}

.single-post-template .socials {
    display: flex;
    justify-content: space-between;
    margin: 3% 0;
    padding: 10px 30px;
    border: 2px solid #4f48d6;
    border-radius: 12px;
    font-size: 1.2rem;
}

.single-post-template .socials p {
    margin: 0;
}

.single-post-template .socials a {
    display: flex;
}

.single-post-template .socials .tags-container {
    display: flex;
    align-items: center;
}

.single-post-template .socials .tags-container .tags {
    font-weight: 600;
}

.single-post-template .socials .share {
    display: flex;
    align-items: center;
    gap: 0 10px;
}

.single-post-template .socials .icons {
    display: flex;
    gap: 0 15px;
}

.single-post-template .socials .icons img {
    width: 30px;
    height: 30px;
}

.single-post-template .similar-posts {
    display: flex;
    flex-direction: column;
}

.single-post-template .post {
    display: flex;
    flex: 1 1 calc(24% - 15px); /* Two posts per row, considering the gap */
    aspect-ratio: 16 / 10; /* Maintain aspect ratio */
    max-width: 25%;
    position: relative;
    transition: border-radius 0.3s ease-in-out;
    overflow: hidden;
}

.single-post-template .background-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: center/cover no-repeat;
    filter: grayscale(100%) brightness(120%) contrast(60%);
    z-index: 5;
}

.single-post-template .post a {
    display: none;
    background-color: rgb(255, 255, 255, 0.6);
    width: 100%;
    height: 100%;
    z-index: 10;
}

.single-post-template .post:hover a {
    display: flex;
}

.single-post-template .post:hover {
    border-radius: 20px;
}

.single-post-template .post img {
    width: auto;
    height: auto;
}

.single-post-template .page-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.single-post-template .see-all-btn {
    display: flex;
    justify-content: center;
    margin: 40px 0 0 0;
}

.single-post-template .see-all-btn button {
    font-family: "VT323", monospace;
    font-size: 1.25rem;
    padding: 0 10px;
    color: #4f48d6;
    background-color: #99e6ff;
    border: none;
}

.wp_ulike_general_class {
    box-shadow: none !important;
    padding: 0 !important;
}

.wp_ulike_put_image:after {
    width: 1.9rem !important;
    height: 1.9rem !important;
}

.wp_ulike_counter_up {
    color: #4f48d6 !important;
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    padding-right: 0 !important;
}

.comments-area {
    margin-top: 30px;
}

.comments-area #submit {
    border-color: #4f48d6;
    color: #4f48d6;
}

.comments-area #submit:hover,
.comments-area #submit:focus {
    background-color: #4f48d6;
    color: #fff;
}

.comments-area textarea,
.comments-area input {
    border-color: #4f48d6 !important;
}

.comments-area textarea:focus,
.comments-area input:focus {
    outline: #4f48d6 solid 2px;
    border-color: #4f48d6;
}

.comments-area input {
    margin-top: 5px;
}

.comments-area #reply-title small a {
    margin-left: 20px;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    border: #4f48d6 solid 1px;
    border-radius: 3px;
    padding: 6px 12px;
    transition: background-color 0.3s ease-in-out;
}

.comments-area #reply-title small a:hover {
    color: #fff;
    background-color: #4f48d6;
}

.comments-area #reply-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments-area a {
    color: #4f48d6;
    font-weight: 600;
    text-decoration: none !important;
}

.comments-area .required-field-message,
.comments-area .comment-form-comment label,
.comments-area .comment-edit-link,
.title-comments,
.comments-area input#url,
.comments-area .comment-form-url label {
    display: none;
}

@media (min-width: 427px) {
    .single-post-template .post-thumbnail {
        margin: 3% 0;
    }
}

@media (max-width: 1024px) {
    .single-post-template .post {
        display: flex;
        flex: 1 1 calc(24% - 10px); /* Two posts per row, considering the gap */
        aspect-ratio: 16 / 10; /* Maintain aspect ratio */
        max-width: 25%;
        position: relative;
        transition: border-radius 0.3s ease-in-out;
        overflow: hidden;
    }

    .single-post-template .page-content {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .single-post-template {
        display: flex;
        flex-direction: column;
        width: 85%;
        margin: 4% auto;
        color: #4f48d6;
    }

    .single-post-template .header {
        display: flex;
        justify-content: space-between;
    }

    .single-post-template .header .post-info {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0 20px;
    }

    .single-post-template .header .post-info img {
        height: 1.2rem;
    }

    .single-post-template .header .post-info div {
        display: flex;
        flex-direction: column;
        gap: 10px 0;
        align-items: center;
    }

    .single-post-template .header .post-info div p {
        font-size: 0.9rem;
        text-align: center;
        margin: 0;
    }

    .single-post-template .header .cat-container {
        display: flex;
        justify-content: flex-start;
        font-size: 0.9rem;
        font-weight: 500;
        margin-top: 10px;
    }

    .single-post-template h2 {
        font-size: 1.3rem;
        font-weight: 700;
    }

    .single-post-template h3 {
        font-size: 1.25rem;
    }

    .single-post-template h4 {
        font-size: 1.1rem;
    }

    .single-post-template h5 {
        font-size: 1rem;
    }

    .single-post-template .post {
        display: flex;
        flex: 1 1 calc(50% - 15px); /* Two posts per row, considering the gap */
        aspect-ratio: 16 / 10; /* Maintain aspect ratio */
        max-width: 51%;
        position: relative;
        transition: border-radius 0.3s ease-in-out;
        overflow: hidden;
    }

    .single-post-template .page-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        width: 100%;
    }

    .single-post-template .tags {
        font-size: 1rem;
    }

    .single-post-template .socials .icons {
        display: flex;
        gap: 0 10px;
    }

    .single-post-template .socials .icons img {
        width: 20px;
        height: 20px;
    }

    .single-post-template .socials p {
        font-size: 1rem;
        margin: 0;
    }

    .wp_ulike_put_image:after {
        width: 1.4rem !important;
        height: 1.4rem !important;
    }

    .wp_ulike_put_image {
        padding: 10px !important;
    }

    .wp_ulike_counter_up {
        font-size: 0.9rem !important;
        line-height: 20px !important;
    }

    .wpulike-heart {
        padding: 0 !important;
    }

    .likes p {
        display: none;
    }

    .comments-area #reply-title small a {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 426px) {
    .single-post-template .header {
        display: flex;
        flex-direction: column;
        gap: 15px 0;
    }

    .single-post-template .header .post-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .single-post-template .header .post-info img {
        height: 1.2rem;
    }

    .single-post-template .header .post-info div {
        display: flex;
        flex-direction: column;
        gap: 10px 0;
        align-items: center;
    }

    .single-post-template .header .post-info div p {
        font-size: 0.9rem;
        margin: 0;
    }

    .single-post-template .post {
        display: flex;
        flex: 1 1 calc(50% - 10px); /* Two posts per row, considering the gap */
        aspect-ratio: 16 / 10; /* Maintain aspect ratio */
        max-width: 51%;
        position: relative;
        transition: border-radius 0.3s ease-in-out;
        overflow: hidden;
    }

    .single-post-template .page-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    .single-post-template .socials {
        display: flex;
        flex-direction: column;
        margin: 3% 0;
        padding: 10px 30px;
        border: 2px solid #4f48d6;
        border-radius: 12px;
        font-size: 1.2rem;
        gap: 10px 0;
    }

    .single-post-template .socials .share,
    .single-post-template .socials .tags-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .wp_ulike_put_image:after {
        width: 1.3rem !important;
        height: 1.3rem !important;
    }

    .wp_ulike_counter_up {
        font-size: 0.9rem !important;
        line-height: 20px !important;
    }

    .wpulike-heart {
        padding: 0 !important;
    }

    .comments-area #reply-title small a {
        font-size: 0.9rem !important;
        margin: 0;
    }

    .comments-area #reply-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px 0;
    }
}
