﻿/********** BLOG PAGE **********/
.blog-posts :is( h1, h2, h3, h4, h5, h6, p, ul, ol, li, a, table, th, td ) {
    color: inherit;
    line-height: 1.6;
    margin: 0;
}

.blog-posts :is( h1, h2, h3, h4, h5, h6 ) {
    font-weight: bold;
    line-height: 1.2;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    color: inherit;
}
.blog-posts h1 {
    font-size: 2em;
}

.blog-posts h2 {
    font-size: 1.5em;
}

.blog-posts h3 {
    font-size: 1.17em;
}

.blog-posts h4 {
    font-size: 1em;
}

.blog-posts h5 {
    font-size: 0.83em;
}

.blog-posts h6 {
    font-size: 0.67em;
}

/* Paragraphs */
.blog-posts p {
    margin: 1em 0;
    line-height: 1.6;
}

/* Lists */
.blog-posts ul, .blog-posts ol {
    padding-left: 1.5rem;
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.6;
    color: inherit;
}

.blog-posts ul {
    list-style-type: disc;
}

.blog-posts ol {
    list-style-type: decimal-leading-zero;
}

    .blog-posts ul li, .blog-posts ol li {
        margin-top: 0.25em;
        margin-bottom: 0.25em;
    }

/* Links */
.blog-posts a {
    color: #E15726;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

    .blog-posts a:visited {
        color: #B34119;
    }

    .blog-posts a:hover {
        color: #E15726;
        text-decoration: underline;
        text-decoration-thickness: 2px;
    }

    .blog-posts a:focus {
        outline: none;
    }

    .blog-posts a:active {
        color: #c00;
    }

/*faq*/
.blog-posts h3 {
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem;
    padding: 0.75em 1em;
    background-color: #fafafa;
    border: 1px solid #d1d5db;
}

    .blog-posts h3::after {
        content: "+";
        position: absolute;
        padding: 0.75em 1em;
        right: 0;
        top: 0;
        font-weight: 700;
        color: #6b7280;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .blog-posts h3.active {
        color: #E15726;
    }

        .blog-posts h3.active::after {
            transform: rotate(45deg);
            color: #E15726;
        }

    .blog-posts h3 + p {
        display: none;
        margin-top: 0.5rem;
        font-size: 0.95rem;
        color: #374151;
        line-height: 1.6;
    }

    .blog-posts h3.active + p {
        display: block;
    }

.blog-posts table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 1em;
    line-height: 1.6;
    color: inherit;
}

    .blog-posts table th {
        text-align: left;
        font-weight: bold;
        padding: 0.75em 1em;
        background-color: #f3f4f6;
        border: 1px solid #d1d5db;
    }

    .blog-posts table td {
        padding: 0.75em 1em;
        border: 1px solid #d1d5db;
    }

    .blog-posts table tr:nth-child(even) td {
        background-color: #fafafa;
    }

@media screen and (max-width: 768px) {
    .blog-posts table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* classes for static content*/
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

    .blog-posts .post {
        background-color: #fff;
        border-radius: 6px;
        padding: 1.5rem;
        border: 1px solid #E2E2E2;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .blog-posts .post-head {
        margin-bottom: 0.8rem;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }

    .blog-posts .post-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: #222;
        text-decoration: none;
    }

        .blog-posts .post-title:hover {
            color: #E15726;
        }

    .blog-posts .post-date {
        color: #888;
        font-size: 0.9rem;
    }

    .blog-posts .post-body {
        color: #444;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .blog-posts .buttons {
        margin-top: 1rem;
        display: flex;
        gap: 1rem;
    }

        .blog-posts .buttons a {
            font-weight: 500;
            color: #E15726;
            text-decoration: none;
        }

            .blog-posts .buttons a:hover {
                text-decoration: underline;
            }
    .blog-posts img {
        max-height: 300px;
        max-width: 300px;
        padding: 12px;
        height: auto !important;
        position: relative;
    }

.tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .tags label {
        font-weight: 600;
        margin-right: 0.5rem;
    }

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .tag-list li a {
        display: inline-block;
        padding: 0.3rem 0.7rem;
        color: #333;
        border-radius: 9999px;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
    }

        .tag-list li a:hover {
            background-color: #E15726;
            color: #fff;
        }

        .tag-list li a:visited {
            color: unset;
        }

.blog-page .pagination-section {
    border-radius: 6px;
    border: 1px solid #E2E2E2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}