/* ==========================================================================
   WORDPRESS EDITOR SAFE COMPATIBILITY
   Add this at the VERY END of blog-details.css
   ========================================================================== */


/* ==========================================================
   1. PREVENT THE BLOG FROM BREAKING OUTSIDE THE CONTAINER
   ========================================================== */

.blog-review-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.review-container {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.review-article {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}


/* ==========================================================
   2. IMPORTANT: RESET WORDPRESS ALIGNWIDE / ALIGNFULL
   Gutenberg can otherwise push content outside the container
   ========================================================== */

.review-article .alignwide,
.review-article .alignfull,
.review-article > .alignwide,
.review-article > .alignfull {
    width: 100% !important;
    max-width: 100% !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    left: auto !important;
    right: auto !important;

    transform: none !important;
}


/* ==========================================================
   3. NORMAL WORDPRESS PARAGRAPHS
   ========================================================== */

.review-article p {
    width: 100%;
    max-width: 100%;

    font-size: 1rem;
    line-height: 1.7;

    color: #4a4a4a;

    margin-top: 0;
    margin-bottom: 24px;

    padding: 0;

    box-sizing: border-box;

    overflow-wrap: break-word;
}


/* Keep your manually assigned article-text class */

.review-article .article-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 24px;
}


/* ==========================================================
   4. WORDPRESS HEADINGS
   ========================================================== */

.review-article h2 {
    width: 100%;
    max-width: 100%;

    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;

    color: #1a1a1a;

    margin: 36px 0 16px;

    padding: 0;

    letter-spacing: -0.3px;

    overflow-wrap: break-word;
    word-break: normal;
}


.review-article h3 {
    width: 100%;
    max-width: 100%;

    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;

    color: #1a1a1a;

    margin: 30px 0 16px;

    padding: 0;

    overflow-wrap: break-word;
}


.review-article h4 {
    width: 100%;
    max-width: 100%;

    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;

    color: #1a1a1a;

    margin: 26px 0 14px;

    overflow-wrap: break-word;
}


/* Your existing custom heading */

.review-article .section-heading {
    font-size: 45px;
    font-weight: 700;
    line-height: 1.2;

    color: #1a1a1a;

    margin: 36px 0 16px;

    letter-spacing: -0.3px;
}


/* ==========================================================
   5. WORDPRESS BULLET LIST
   Same design as your highlight-list
   ========================================================== */

.review-article ul:not(.review-rating) {
    width: 100%;
    max-width: 100%;

    list-style: none;

    padding-left: 0;

    margin: 20px 0 36px;

    box-sizing: border-box;
}


.review-article ul:not(.review-rating) > li {
    position: relative;

    padding-left: 28px;

    margin-bottom: 18px;

    font-size: 1.1rem;
    line-height: 1.6;

    color: #4a4a4a;

    overflow-wrap: break-word;
}


.review-article ul:not(.review-rating) > li:last-child {
    margin-bottom: 0;
}


.review-article ul:not(.review-rating) > li::before {
    content: "";

    position: absolute;

    left: 0;
    top: 9px;

    width: 10px;
    height: 10px;

    background-color: #f25a22;

    border-radius: 50%;
}


/* ==========================================================
   6. NUMBERED LISTS
   ========================================================== */

.review-article ol {
    width: 100%;
    max-width: 100%;

    margin: 20px 0 36px;

    padding-left: 30px;

    box-sizing: border-box;
}


.review-article ol > li {
    margin-bottom: 16px;

    padding-left: 6px;

    font-size: 1.1rem;
    line-height: 1.6;

    color: #4a4a4a;
}


.review-article ol > li::marker {
    color: #f25a22;
    font-weight: 700;
}


/* ==========================================================
   7. WORDPRESS FIGURE RESET
   Default figure margins can create overflow
   ========================================================== */

.review-article figure {
    width: 100%;
    max-width: 100%;

    margin-left: 0;
    margin-right: 0;

    box-sizing: border-box;
}


/* ==========================================================
   8. ALL WORDPRESS IMAGES
   ========================================================== */

.review-article img {
    max-width: 100%;
    height: auto;

    display: block;

    box-sizing: border-box;
}


.review-article .wp-block-image {
    width: 100%;
    max-width: 100%;

    margin: 30px 0;
}


.review-article .wp-block-image img {
    max-width: 100%;
    width: auto;
    height: auto;

    margin-left: auto;
    margin-right: auto;

    border-radius: 8px;
}


/* Full width image when WordPress chooses large */

.review-article .wp-block-image.size-full img,
.review-article .wp-block-image.size-large img {
    width: 100%;
}


/* ==========================================================
   9. IMAGE CAPTIONS
   ========================================================== */

.review-article figcaption,
.review-article .wp-element-caption,
.review-article .wp-caption-text {
    width: 100%;
    max-width: 100%;

    margin: 8px auto 0;

    font-size: 0.85rem;
    line-height: 1.5;

    color: #777777;

    text-align: center;
    font-style: italic;
}


/* ==========================================================
   10. WORDPRESS GALLERY
   ========================================================== */

.review-article .wp-block-gallery {
    width: 100%;
    max-width: 100%;

    margin: 30px 0;

    gap: 16px;

    box-sizing: border-box;
}


.review-article .wp-block-gallery figure {
    min-width: 0 !important;
    max-width: 100% !important;
}


.review-article .wp-block-gallery img {
    max-width: 100%;
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 8px;
}


/* ==========================================================
   11. WORDPRESS COLUMNS
   ========================================================== */

.review-article .wp-block-columns {
    width: 100%;
    max-width: 100%;

    margin-left: 0;
    margin-right: 0;

    box-sizing: border-box;
}


.review-article .wp-block-column {
    min-width: 0;
    max-width: 100%;

    box-sizing: border-box;
}


/* ==========================================================
   12. WORDPRESS TABLE
   ========================================================== */

.review-article .wp-block-table {
    width: 100%;
    max-width: 100%;

    margin: 24px 0 36px;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


.review-article .wp-block-table table,
.review-article table {
    width: 100%;
    max-width: 100%;

    border-collapse: collapse;

    text-align: left;
}


.review-article table th,
.review-article table td {
    padding: 12px 16px;

    border-bottom: 1px solid #f0e0db;

    font-size: 0.95rem;

    vertical-align: top;
}


.review-article table th {
    background-color: #fff8f6;

    color: #40102a;

    font-weight: 700;
}


/* ==========================================================
   13. WORDPRESS QUOTE
   ========================================================== */

.review-article blockquote,
.review-article .wp-block-quote {
    width: 100%;
    max-width: 100%;

    margin: 30px 0;

    padding: 24px 28px;

    box-sizing: border-box;

    background: #fff8f6;

    border-left: 4px solid #fa570a;

    border-radius: 0 8px 8px 0;
}


.review-article blockquote p {
    margin-bottom: 10px;
}


/* ==========================================================
   14. WORDPRESS BUTTON
   ========================================================== */

.review-article .wp-block-buttons {
    width: 100%;
    max-width: 100%;

    margin: 25px 0;
}


.review-article .wp-block-button__link {
    background: #40102a;

    color: #ffffff !important;

    padding: 12px 22px;

    font-size: 0.9rem;
    font-weight: 600;

    border: 1.5px solid #40102a;

    border-radius: 6px;

    text-decoration: none !important;
}


/* ==========================================================
   15. LINKS
   ========================================================== */

.review-article p a,
.review-article li a {
    color: #40102a;

    font-weight: 600;

    text-decoration-color: #fa570a;

    text-underline-offset: 4px;
}


.review-article p a:hover,
.review-article li a:hover {
    color: #fa570a;
}


/* ==========================================================
   16. EMBEDS / VIDEO
   ========================================================== */

.review-article iframe,
.review-article video,
.review-article embed,
.review-article object {
    max-width: 100%;
}


.review-article .wp-block-embed {
    width: 100%;
    max-width: 100%;

    margin: 30px 0;
}


/* ==========================================================
   17. PRE / CODE
   Prevent long code from breaking page
   ========================================================== */

.review-article pre {
    width: 100%;
    max-width: 100%;

    overflow-x: auto;

    white-space: pre;

    box-sizing: border-box;
}


/* ==========================================================
   18. WORDPRESS SEPARATOR
   ========================================================== */

.review-article hr,
.review-article .wp-block-separator {
    width: 100%;
    max-width: 100%;

    margin: 40px 0;

    border: 0;
    border-top: 1px solid #eeded8;
}


/* ==========================================================
   19. REMOVE WORDPRESS GENERATED NEGATIVE MARGINS
   This is especially important for your screenshot issue
   ========================================================== */

.review-article > * {
    max-width: 100%;
    box-sizing: border-box;
}


.review-article [style*="margin-left: -"],
.review-article [style*="margin-right: -"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ==========================================================
   20. MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .blog-review-section {
        padding-top: 25px;
    }


    .review-container {
        width: 100%;

        padding-left: 15px;
        padding-right: 15px;
    }


    .review-article {
        width: 100%;

        padding: 20px;

        border-radius: 8px;
    }


    .review-article h2,
    .review-article .section-heading {
        font-size: 30px;
        line-height: 1.25;
    }


    .review-article h3 {
        font-size: 24px;
    }


    .review-article h4 {
        font-size: 20px;
    }


    .review-article p {
        font-size: 16px;
        line-height: 1.7;
    }


    .review-article ul:not(.review-rating) > li,
    .review-article ol > li {
        font-size: 16px;
    }


    .review-article .wp-block-columns {
        display: block;
    }


    .review-article .wp-block-column {
        width: 100%;
        margin-bottom: 20px;
    }


    .review-article .wp-block-gallery {
        grid-template-columns: 1fr !important;
    }


    .review-article .alignleft,
    .review-article .alignright,
    .review-article .alignwide,
    .review-article .alignfull {
        float: none !important;

        width: 100% !important;
        max-width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }

}