body {
    margin: 0;
    padding: 0 !important;
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    font-family: "Ubuntu", sans-serif;
}

.main-content {
    padding-top: 2rem;
    padding-bottom: 4rem;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container-flex {
    /* generic div that holds the content section */
    display: block;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 42rem;
    /* width of the article content */
}

.author-section {
    display: flex;
    align-items: center;
    margin-bottom: var(--md-margin);
    font-style: normal;
}

.author-container {
    display: inline-flex;
    align-items: center;
    margin-right: 0.75rem;
    font-size: .8rem;
    line-height: 1.25rem;
}

.author-img {
    margin: auto;
    margin-right: 1rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.author-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--light-gray-text);
}

.author-name {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: var(--primary-text-color);
    text-decoration: none !important;
}


.article-title {
    font-size: 2.5rem;
    line-height: 3.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--sm-margin);
    color: var(--primary-text-color)
}

.blog-excerpt {
    color: var(--primary-text-color);
    margin-bottom: var(--md-margin);
    font-size: 1.35rem;
    line-height: 1.5;
    font-weight: 400;
    font-style: italic;
    position: relative;
    max-width: 80ch;
    /* Optimal reading width */
    margin-left: auto;
    margin-right: auto;
}

.image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    /* Maintains the 3:2 aspect ratio */
    border-radius: 1rem;
    /* Equivalent to Tailwind's rounded-2xl */
    margin-bottom: var(--md-margin);

}

.article-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop and center the image */
    object-position: center;
    /* Ensure the image is centered */
}

img {
    margin-bottom: var(--md-margin);
}

p {
    color: var(--primary-text-color);
    font-size: var(--md-font);
    line-height: 2rem;
    margin-bottom: var(--md-margin);
}

strong {
    color: var(--primary-text-color);
    font-weight: 700;
}

h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-text-color);
    margin-bottom: var(--sm-margin);
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.65rem;

}

h4 {
    font-size: 1.4rem;

}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.15rem;
}

hr {
    margin-bottom: var(--md-margin);
}

#article-body {
    position: relative;
}

.article-header {
    padding-top: 80px;
}

#blog-post figure {
    margin-bottom: var(--lg-margin);
}

#blog-post figcaption {
    margin-top: .5rem;
    color: var(--primary-text-color);
    text-align: center;
    font-size: var(--sm-font);
}

#blog-post li {
    color: var(--primary-text-color);
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: var(--sm-font);
    padding-left: .5rem;
    font-weight: 400;
    line-height: 1.75rem;
}

#blog-post ul li::marker {
    color: var(--primary);
}

#blog-post ol li::marker {
    color: var(--primary);
    font-weight: 600;
}

#blog-post ul {
    list-style-type: disc;
    list-style-position: inside;
}

#blog-post ol {
    list-style-type: decimal;
    list-style-position: inside;
}

#blog-post ul,
ol {
    padding-left: 1.5rem;
    margin-bottom: var(--md-margin);
}

#blog-post blockquote {
    line-height: 1.75;
    margin: 0;
    color: var(--primary-text-color);
    font-size: var(--md-font);
    font-style: italic;
    font-weight: 700;
    margin-bottom: 2rem;
    quotes: "\201C" "\201D" "\2018" "\2019";
}

#blog-post blockquote:before {
    background-image: url("../vectors/blockquote.svg");
    background-repeat: no-repeat;
    color: var(--primary-text-color);
    content: "";
    display: block;
    height: 1.3333333em;
    margin-top: 1.75rem;
    /* Existing margin */
    margin-bottom: var(--xs-margin);
    /* Add spacing below the icon */
    width: 1.8em;
}




#article-body a {
    color: var(--primary);
    text-decoration: underline;
}

#article-body a {
    color: var(--primary-highlight);

}

.table-responsive {
    overflow-x: auto;
    margin-bottom: var(--lg-margin);
}

#blog-post table {
    width: 100%;
    border-collapse: separate;
    /* Prevent border collapse issues */
    border-spacing: 0;
    /* Remove spacing between cells */
    border-radius: 12px;
    /* Rounded corners */
    border-style: hidden;
    /* Hide actual table border */
    box-shadow: 0 0 0 1px #9b9b9b;
    /* Simulate a border with box-shadow */
    overflow: hidden;
    /* Clip overflowing corners */
}

#blog-post table th {
    padding: 10px;
    font-size: 16px;
    background-color: var(--primary);
    color: var(--primary-text-color);
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
}

#blog-post table th:first-child {
    border: 1px solid #9b9b9b;
}

#blog-post table th {
    border: 1px solid #9b9b9b;
    border-left: none;
    color: white
}

#blog-post table td {
    padding: 8px;
    text-align: left;
    vertical-align: top;
    font-size: 15px;
    border-bottom: 1px solid #9b9b9b;
}

#blog-post table td:first-child {
    border: 1px solid #9b9b9b;
    border-top: 0;
}

#blog-post table td {
    border-right: 1px solid #9b9b9b;
    border-left: none;
    color: var(--primary-text-color);
}

#blog-post table td strong {
    font-weight: bold;
}

/* Alternating row colors */
#blog-post table tr:nth-child(even) {
    background-color: var(--bg-secondary-color);
    /* Soft gray for even rows */
}

#blog-post table tr:nth-child(odd) {
    background-color: var(--bg-color);
    /* White for odd rows */
}

/* Estilo para embeds responsivos */
.embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* Proporção 16:9 (altura / largura) */
    height: 0;
    overflow: hidden;
    margin: var(--md-margin) 0;
    /* Espaço acima e abaixo */
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ---------------- CUSTOM COMPONENTS ------------------*/


.box {
    margin-bottom: var(--lg-margin);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--primary);
    border-top: 4px solid var(--primary);
    background-color: var(--bg-secondary-color);
    line-height: 1.5;
    position: relative;
}

.blog-tip {
    font-size: var(--xs-font);
    line-height: 1.65;
    color: #222;
    text-align: left;
    position: relative;
    clear: both;
    padding: 1.25rem 1.2rem 1.5rem 1rem;
    background: var(--bg-secondary-color);
    margin-bottom: var(--lg-margin);
    margin-left: var(--md-margin);
    margin-right: var(--md-margin);
    padding-right: 2rem;
}

.blog-tip .tip-label {
    font-weight: 600;
    font-size: var(--lg-font);
    color: var(--primary);
    display: block;
    padding-left: 2rem;
}

.blog-tip p {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    font-size: 1rem;
}

.blog-tip .tip-label::before {
    content: "";
    /* Required for pseudo-elements */
    background-image: url('../../vectors/tip.png');
    /* Path to your image */
    background-size: contain;
    /* Ensure proper scaling */
    background-repeat: no-repeat;
    display: inline-block;
    width: 3.5rem;
    /* Adjust width */
    height: 3.5rem;
    /* Adjust height */
    position: absolute;
    left: -1.75rem;
    /* Move icon further to the left */
    top: .5rem;
    /* Adjust vertical alignment */
}


.blog-warning {
    box-sizing: border-box;
    font-size: var(--xs-font);
    line-height: 1.65;
    color: var(--primary-text-color);
    text-align: center;
    clear: both;
    position: relative;
    padding: 1.5rem;
    margin: var(--lg-margin) auto;
    width: 90%;
    border: solid .0625rem var(--warning-color);
    border-bottom-width: .375rem;
}

.blog-warning .warning-label {
    text-align: left;
    box-sizing: border-box;
    margin: 1.5rem 0 .75rem;
    color: var(--primary-text-color);
    margin-top: 0;
    display: table;
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    padding: 0 .75rem;
    width: max-content;
    font-size: var(--sm-font);
    font-weight: 700;
    letter-spacing: .03125rem;
    text-transform: uppercase;
    background-color: var(--bg-color);
    top: -1rem;
    line-height: 1.5;
}


/* -------------------- RELATED ARTICLES ----------------------*/

.related-articles-section {
    background-color: var(---bg-secondary-color);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.related-articles-container {
    max-width: 1280px;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    /* Stack the title and articles vertically */
    align-items: center;
    /* Center the content horizontally */
}

.related-articles-title-container {
    /*this container mimics the articles container, but align title to start */
    max-width: 1280px;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.related-article-section-title {
    margin-bottom: var(--lg-margin);
}

.articles-container {
    display: grid;
    grid-template-columns: 1fr;
    /* Default: one column */
    gap: 3rem;
}

.article-card {
    max-width: 20rem
        /* 320px */
    ;

}

.related-article-image-container {
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: 0.25rem;
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
}

.related-articles-image {
    position: absolute;
    /* Position the image inside the container */
    top: 0;
    left: 0;
    width: 100%;
    /* Make sure the image covers the container */
    height: 100%;
    /* Ensure the image fills the container vertically */
    object-fit: cover;
    /* Maintain aspect ratio without stretching */
}

.related-article-title {
    margin: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;

    color: var(--primary-text-color);
}

.related-article-excerpt {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-gray-text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* --------------------- SUMMARY ------------------------------ */
.summary {
    display: none;
}

/* -------------------- MEDIA QUERIES -------------------------*/

@media (max-width: 480px) {

    #blog-post table th,
    #blog-post table td {
        padding: 6px;
        font-size: 13px;
    }

    #blog-post table th {
        font-size: 14px;
    }

    #blog-post ul,
    ol {
        padding-left: .5rem;
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {

    #blog-post table th,
    #blog-post table td {
        padding: 8px;
        font-size: 14px;
    }

    #blog-post table th {
        font-size: 15px;
    }

}

/* Small screens (e.g., tablets in portrait mode) */
@media (min-width: 480px) {
    .articles-container {
        grid-template-columns: repeat(2, 1fr);
        /* Two cards per row */
    }
}

/* Medium screens (e.g., tablets in landscape mode) */
@media (min-width: 768px) {
    .articles-container {
        grid-template-columns: repeat(3, 1fr);
        /* Three cards per row */
    }
}

/* Large screens (e.g., small desktops) */
@media (min-width: 1024px) {

    /* lg breakpoint */
    .main-content {
        padding-top: 4rem;
        /* lg:pt-16 */
        padding-bottom: 6rem;
        /* lg:pb-24 */
    }

    .qa-section-container {
        padding-left: var(--sm-margin);
        padding-right: var(--sm-margin);
    }

    .comment-options-container {
        /* the options container in desktop is intended to go half out the comment container */
        top: 24%;
        left: 85%;
    }

    .related-articles-container {
        margin-left: auto;
        margin-right: auto;
    }

    .related-articles-title-container {
        margin-left: auto;
        margin-right: auto;
    }

    .articles-container {
        grid-template-columns: repeat(4, 1fr);
        /* Three cards per row on large screens */
    }

    .contact-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

}

@media (min-width: 1240px) {

    .summary {
        display: block;
        width: 240px;
        z-index: 10;
        -webkit-transform: translateX(-115%);
        transform: translateX(-115%);
        overflow: hidden;
        background: #32e60e;
        border: 0;
        margin-bottom: 0;
        top: 0;
        position: absolute;
        pointer-events: auto;
        /* Ensure the entire summary is clickable */
    }

    /* Fixed position when scrolling into view */
    .summary.scrolled {
        position: fixed;
        top: 150px;

    }

    /* Absolute position at the bottom of the article */
    .summary.fixed-bottom {
        position: absolute;
        top: auto;
        bottom: 0;
    }

    .summary-title {
        font-size: var(--xs-font);
        color: var(--primary-text-color);
        margin: 0;
        padding: 0;
        display: inline-block;
        font-weight: 500;
        line-height: 1.6;
        padding-bottom: 8px;
        text-transform: uppercase;
    }

    .summary-list {
        list-style: none !important;
        padding-left: 0 !important;
    }

    .summary-item {
        font-size: .75rem !important;
        padding-left: 0 !important;
        line-height: 1rem !important;
        margin-bottom: .75rem !important;
        margin-top: .75rem !important;
    }

    .summary-link {
        color: var(--gray-text) !important;
        text-decoration: none !important;
    }


    .article-share {
        display: flex;
        /*align-items: center; /* Align items vertically in the center */
        gap: 12px;
        /* Space between "Compartilhe" and the icons */

        font-size: 18px;
        line-height: 1.5;
        letter-spacing: -0.26px;
        box-sizing: border-box;
        padding-top: 0;
        margin-bottom: 0;
        margin-top: 20px;
        border-top: 1px solid #E4E4E7;
        position: relative;
        /* Ensure the share section is part of the flow */
    }

    .article-share-title {
        color: var(--primary-text-color);
        font-weight: 500;
        text-transform: uppercase;
        font-size: var(--xxs-font);
        margin-top: 1rem;

    }

    .article-share-links {
        display: flex;
        gap: 8px;
        /* Space between the icons */
        margin-top: .95rem;
        z-index: 50;
        overflow: visible;
    }


    .share-icon {
        color: var(--gray-text) !important;
        position: relative;
        z-index: 10;
        /* Or a value high enough to ensure they are on top */
    }

    .share-icon:hover {
        color: var(--primary-text-color) !important;
    }

    .share-icon svg {
        pointer-events: auto;
    }

    .form-hidden {
        width: 1px;
        height: 1px;
        opacity: 0;
    }

    .visually-hidden {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

}