.reviewHeading {
    position: relative;
    min-height: 430px;
    border: 3px solid #F3F3F3;
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 30px 0 0 0;
    font-size: initial;
}

.reviewHeading h1 {
    font-size: 40px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.5);
    letter-spacing: -2.1px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
    padding: 21px 10px;
    margin: 0 0 3px;
    -webkit-border-radius: 2px 2px 0 0;
    border-radius: 2px 2px 0 0;
    width: 62%;
    margin: 80px auto -70px;
    text-align: center; /* Center align */
}

.reviewHeading h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.5);
    letter-spacing: -1.0px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
    padding: 14px 10px;
    margin: 0;
    line-height: 30px;
    -webkit-border-radius: 0 0 2px 2px;
    border-radius: 0 0 2px 2px;
    width: 62%;
    margin: 80px auto 0;
    text-align: center; /* Center align */
}

.reviewHeading p.review_author {
    min-width: 145px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: normal;
    text-align: center;
    transition: color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    display: block; /* Changed from inline-block to block */
    background: rgba(244, 105, 29, 0.8);
    font-size: 10px;
    color: #ffffff;
    text-transform: uppercase;
    padding: 12px 10px;
    margin: 25px auto 0; /* Center horizontally */
    border-radius: 2px;
    width: fit-content; /* Adjust width to fit content */
}



a, .header .postPreview .items .item h3 {
    transition: color 0.2s ease, background-color 0.2s ease;
}

.review-boxContainer {
    display: flex;
    background: #F3F3F3;
    margin: 0 0;
}

.main {
    flex: 2; /* Takes 2/3 of the container width */
    border-right: 1px solid #DCDCDC;
    padding: 25px 10px 30px;
    box-sizing: border-box;
}

.main p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 27px;
    letter-spacing: -0.2px;
    margin-bottom: 1em;
}


.main .tags {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.sidebar {
    flex: 1; /* Takes 1/3 of the container width */
    padding: 25px;
    box-sizing: border-box;
}

.sidebar .widget {
    background: #F3F3F3;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #DCDCDC;
}

.sidebar h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

/* Review Content Styles */
.review-content {
    background-color: #F3F3F3;

}

/* Review Post Styles */
.review-post {
    display: flex;
    position: relative;
    align-items: flex-start;
    margin: -25px -18px 25px;
    padding: 25px 26px 10px;
    border-bottom: 1px solid #DCDCDC;
    overflow: hidden;
    font-size: 16px;
    flex-wrap: wrap;
}

/* Featured Background */
.review-featured-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.review-featured-bg::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
}

/* Review Inner Content */
.review-inner-content {
    position: relative;
    display: flex;
    align-items: flex-start;
    z-index: 1;
    margin: 0 0 25px;
}


/* Apply white border only to featured images */
.review_featured.review-image {
    border: 4px solid #ffffff;
    
}

/* Review Details */
.review-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Review Title */
.review-title {
    font-weight: 500;
    color: #2e2f34;
    font-size: 24px;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    letter-spacing: -0.9px;
}

.review-title a {
    text-decoration: none;
    color: inherit;
}

.review-title a:hover {
    color: orange;
}

/* Review Meta */
.review-meta {
    color: #6c757d;
    font-size: 12px;
    font-weight: 400;
}

/* Review Description */
.review-description {
    color: #333;
    line-height: 22px;
    font-size: 14px;
    margin-top: -15px;
    color: #2e2f34;
}

.review_short_description {
    color: black;
}

@media (max-width: 768px) {
    .review-inner-content {
        display: block;
        width: 100%;
        
    }

    .container {
        overflow-x: hidden;
        padding: 0; /* Add right padding reset as well */
        margin: 0 auto; /* Ensure it's centered */
        box-sizing: border-box; /* Make sure padding is included in the width */
    }

    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .review-post {
        flex-direction: column;
        padding: 10px;
    }

    .review-image {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .review-details {
        padding: 0 10px;
    }

    .review-title {
        margin-top: 10px;
    }

    .review-meta,
    .review-description {
        font-size: 14px;
    }

    .review-description {
        margin-top: 8px;
    }
}


.review-boxContainer {
    
        background-color: #F3F3F3;
        padding: 10px;

}


.reviewSummary {
    position: relative;
    width:100%;
    min-height: 285px;
    z-index: 1;
    font-size: initial;

}



.reviewSummary .summary {
    position: relative;
    width: 80%;
    min-height: 150px;
    /* border-bottom: 10px solid #ffffff; */
    padding: 35px 0 0 70px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}



.reviewSummary .summary p {
    font-family: 'Ubuntu', sans-serif;
    font-size: 21px;
    font-style: italic;
    margin: 0px;
    color:black;
}

.reviewSummary .rating {
    width: 130px;
    height: 130px;
    font-size: 58px;
    font-weight: 700;
    line-height: 130px;
    position: absolute;
    right: -150px;
    bottom: -70px /*80*/;
    border-width: 10px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
    cursor: default;
}

.reviewSummary .rating span {
    margin: -5px 0 0px -10px;
}
.rating span {
    display: block;
    transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.reviewSummary .rating {
    width: 150px;
    height: 150px;
    font-size: 58px;
    font-weight: 700;
    line-height: 130px;
    position: absolute;
    right: -150px;
    bottom: -70px;
    border-width: 10px;
    border: 10px solid #ffffff;
    border-radius: 50%; /* Circular shape */
    background-color: #f4691d; /* Orange background color */
    color: #ffffff;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Adds some shadow for a lifted look */
}
.rating {
    display: inline-block;
    background: #f4691d;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.reviewSummary .rating .text {
    width: 100px;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    position: absolute;
    bottom: -25px; /* Position below the circle */
    left: 30%;
    margin: 0;
    color: #333; /* Optional: Adjust color */
}

.reviewSummary .list {
    display: inline-block;
    width: 50%;
    margin: 20px 0 -70px -30px;
    vertical-align: top;

}

.reviewSummary .list li {
    font-size: 18px;
    padding: 0;
    margin: 15px 0;
    line-height: 20px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: normal;
    color: #2e2f34;
}

.reviewSummary .list.pros li:before {
    content: '';
    display: inline-block;
    float: left;
    width: 16px;
    height: 16px;
    margin: 3px 14px 0 0;
}

.reviewSummary .list li {
    font-size: 18px;
    padding: 0;
    margin: 5px 0;
    line-height: 20px;
    font-family: 'Ubuntu', sans-serif;
    font-weight: normal;
    color: #2e2f34;
}

.list {
    list-style: none;
    padding: 0;
}

.list li {
    margin-bottom: 10px;
    font-size: 16px;
}

.list.pros li {
    color: #28a745; /* Green color for pros */
}

.list.cons li {
    color: #dc3545; /* Red color for cons */
}

.reviewSummary {
    position: relative; /* Ensure child elements can be positioned absolutely */
    overflow: hidden; /* Hide any overflow from the background image */
}

.reviewSummary .back {
    opacity: 0.1;
}

.back {
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
    opacity: .1;
    background-size: cover;
    background-position: center center;
}


/* Hide review summary section on mobile phones */
@media (max-width: 768px) {
    .reviewSummary {
        display: none; /* Hide the review summary section */
    }

    /* Ensure review score and pros/cons are visible and centered on mobile */
    .reviewSummary {
        display: block; /* Make sure the summary is visible again */
    }

    .reviewSummary .rating {
        position: static; /* Reset positioning */
        margin: 0 auto; /* Center horizontally */
        width: 100px; /* Adjust width */
        height: 100px; /* Adjust height */
        font-size: 40px; /* Adjust font size */
        line-height: 100px; /* Center text vertically */
        border-width: 5px; /* Adjust border width */
        background-color: #f4691d; /* Ensure background color */
        color: #ffffff; /* Ensure text color */
        text-align: center; /* Center text */
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Adds some shadow for a lifted look */
    }
    
    .reviewSummary .rating .text {
    width: 100px;
    font-size: 10px;
    text-transform: uppercase;
    text-align: center;
    position: absolute;
    bottom: -19px;
    left: 10%;
    margin: 0;
    color: #ffffff;
    }

    /* Stack pros and cons one below the other on mobile */
    .reviewSummary .list {
        display: block;
        width: 100%; /* Full width */
        margin: 0; /* Remove margin */
        padding: 0; /* Remove padding */
    }

    .reviewSummary .list.pros,
    .reviewSummary .list.cons {
        width: 100%; /* Full width */
        margin-bottom: 20px; /* Space between lists */
    }

    .reviewSummary .list li {
        font-size: 16px; /* Adjust font size */

        color: #2e2f34; /* Ensure text color */
    }

    .reviewSummary .list.pros li {
        color: #28a745; /* Green color for pros */
    }

    .reviewSummary .list.cons li {
        color: #dc3545; /* Red color for cons */
    }
}
