.blog-posts-grid{
    max-width: 1200px;
    margin: 20px auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;

    width: 90%;
}

.posts-container{
    display: grid;
    grid-template-columns: repeat(4, 286.25px);
    grid-gap: 25px;
}

.blog-posts-grid .post-item {
    padding: 0;
    position: relative;
    max-width: 286.25px;
    height: 286.25px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Keeps the pseudo-element within bounds */
}

/* Create the border effect on hover using a pseudo-element */
.blog-posts-grid .post-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent; /* Invisible initially */
    box-sizing: border-box;
    pointer-events: none; /* Ensures the element doesn't interfere with interactions */
    transition: border-color 0.3s ease; /* Smooth transition for the hover effect */

    z-index: 999;
}

/* Change the border color on hover */
.blog-posts-grid .post-item:hover::before {
    border-color: #D62598; /* Visible border color on hover */
}


.blog-posts-grid .post-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-posts-grid .post-image{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.post-content{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    gap: 30px;

    width: 100%;
    height: 100%;
}

.post-content-row{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;

    position: relative;
}

.post-content-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 5px;

    max-width: 80%;
}


.post-content-col h2{
    text-shadow: 0px 3px 6px #000000!important;
    text-align: center;
    margin: 0;
    padding: 0;
    color: #fff!important;
    text-transform: uppercase;
    font-size: 18px!important;
    font-family: "Roboto Bold", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 24px;
}

.post-content-col p {
    font-size: 7px!important;
    text-shadow: 0px 3px 6px #000000!important;
    text-align: center;
    margin: 0;
    padding: 0;
    color: #fff!important;
    text-transform: uppercase;
    font-family: "Roboto Bold", sans-serif;
}


.post-content .inside-button{
    font-size: 14px;
}


.absolute-button{
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.post-item .article-button{
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show the button on hover */
.post-item:hover .article-button {
    opacity: 1;
    transition: opacity 0.3s;
}


/* SINGLE POST*/
.single-post-template{
    max-width: 1200px;
    width: 90%;
    margin: 0px auto;

    display: grid;
    grid-template-columns: 465px 1fr;
    grid-gap: 45px;
}

.blog-post-side{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 45px;
}

.post-image{
    position: relative;
    width: 100%;
    overflow: hidden;
    max-height: 465px;
}

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

.post-image-overlay{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.post-image-overlay h1{
    text-align: center;
    margin: 0;
    padding: 0;
    color: #fff!important;
    font-size: 29px!important;
    text-shadow: 1px 1px 5px #000000!important;
    font-family: "Roboto Bold", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.3;
}

.post-image-overlay p{
    font-size: 14px!important;
    text-align: center;
    margin: 0;
    padding: 0;
    text-shadow: 1px 1px 5px #000000!important;
    font-family: "Roboto Bold", Tahoma, Geneva, Verdana, sans-serif;
    color: #fff!important;
}

.post-single-content{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;

    text-align: left;
}

.post-single-content h2{
    text-align: center;
    margin: 0;
    padding: 0;
    color: #655C57!important;
    font-size: 18px!important;
    font-family: "Segoe UI Bold", Tahoma, Geneva, Verdana, sans-serif;
}

.post-single-content p{
    font-size: 16px!important;
    text-align: left;
    margin: 0;
    padding: 0;
    color: #655C57!important;
}


/* NAVIGATION */

.navigation{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 90%;

    max-width: 1200px;
    margin: 30px auto;
}

.nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.nav-link a {
    text-decoration: none;
    color: #655C57;
    font-size: 15px;
    font-family: "Segoe UI Bold", Tahoma, Geneva, Verdana, sans-serif;
}

.nav-link img {
    width: 15px;
    height: 25px;
}


/* FORM */

.single-post-template .contact-form-header h2{
    font-size: 20px;
}

.single-post-template .contact-container input[type="text"],
.single-post-template .contact-container input[type="email"],
.single-post-template .contact-container textarea,
.single-post-template .contact-container input[type="tel"]{
    background-color: #fff !important;
}

.single-post-template .contact-form-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

    max-width: 100%;
}

.single-post-template .contact-form-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}


.single-post-template .contact-form-text p{
    text-align: center;
    margin: 0;
    padding: 0;
    color: #655C57!important;
    font-size: 15px!important;
    line-height: 28px;
}

.pink-span {
    color: #D62598;
    font-size: 18px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.strong-span {
    font-family: "Segoe UI Bold", Tahoma, Geneva, Verdana, sans-serif;
}

.single-post-template form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.single-post-template .checkbox-row{
    margin-bottom: 10px;
}


.single-post-template  .contact-container input[type="checkbox"]{
    width: 15px;
    height: 15px;
}

.single-post-template .contact-container input[type="checkbox"]:checked::before {
    width: 9px; /* Reduced from 10px */
    height: 9px; /* Reduced from 10px */
}


.single-post-template .phone-number {
    color: #655C57!important;
    text-decoration: none;
}

.single-post-template .phone-number:hover {
    color: #D62598!important;
}



/* Media Queries */
@media screen and (max-width: 991px){

    /* BLOG */
    .page-banner-content{
        padding: 25px 0;
    }
    .container-pink h1{
        font-size: 23px;
        max-width: 90%;
    }

    .blog-posts-grid{
        width: auto;
        margin: 0 15px;
        gap: 20px;
        margin-bottom: 30px;

        margin-top: 20px;
    }

    .posts-container{
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
        max-width: 100%;
        height: 100%;

    }

    .blog-posts-grid .post-item{
        max-width: 100%;
        height: auto;
    }

    .post-content-col h2{
        font-size: 16px!important;
        font-weight: 600;
        color: #fff;
        font-family: "Segoe UI SemiBold", Tahoma, Geneva, Verdana, sans-serif;
        text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.39);
        text-align: center;
        max-width: 80%;
    }

    .post-content-col p{
        display: none;
    }

    .blog-posts-grid .contact-submit{
        margin-top: 0;
    }


    /* SINGLE POST */
    .single-post-template{
        grid-template-columns: 1fr;
        grid-gap: 20px;
        width: auto;
    }

    .blog-post-side{
        gap: 30px;
    }

    .single-post-template .single-contact-form{
        margin: 0;
    }
    .post-single-content{
        gap: 15px;
    }

    .post-single-content h2{
        text-align: left;
    }

    .post-single-content p{
        font-size: 14px!important;
        line-height: 1.6;
    }

    .navigation{
        margin: 30px 15px;
        width: auto;
    }

    .nav-link img{
        width: 10px;
        height: 20px;
    }

}
