/**
 * LSG Blog Generator – Post Content Styles
 */
 
.lsg-post {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 50px;
}

.lsg-post .lsg-post-content {
    color: #454652
}

.lsg-post .lsg-featured-image{
    margin-bottom: 30px;
}

.lsg-post .lsg-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.lsg-post .lsg-featured-image figcaption {
    text-align: center;
    font-size: 0.9em;
    color: #454652;
    margin-top: 0.5em;
}

.lsg-post h2 {
    font-size: 2.2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #454652;
    margin-top: 60px;
    margin-bottom: 20px;
}


.lsg-post h3 {
    font-size: 1.6rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    padding-bottom: 5px;
    border-bottom: 1px solid #454652;
    margin-top: 30px;
    margin-bottom: 14.4px;
}

.lsg-post p,
.lsg-post ul,
.lsg-post ol,
.lsg-post table,
.lsg-post blockquote,
.lsg-post figcaption {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.lsg-post ul,
.lsg-post ol {
  margin-bottom: 14.4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.lsg-post p {
    text-align: justify;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.lsg-post a {
    color: #FF6640;
    transition: color 0.2s;
}

.lsg-post a:hover {
    color: #000666;
}

.lsg-post .lsg-toc {
    background: #0006661A;
    border: 1px solid #000666;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    max-width: 720px;
}

.lsg-post .lsg-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.lsg-post .lsg-toc-title {
    margin: 0 !important;
    font-size: 1.2em;
    padding: 0 !important;
    border: none;
    color: #454652;
}

.lsg-post .lsg-toc-toggle {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: color 0.3s, background-color 0.3s, transform 0.3s;
    color: #000666;
    transform: rotate(0deg);
}

.lsg-post .lsg-toc-toggle:hover,
.lsg-post .lsg-toc-toggle:focus {
    color: #FFFFFF;
    background-color: #000666;
    outline: none;
}

.lsg-post .lsg-toc.collapsed .lsg-toc-toggle {
    transform: rotate(-90deg);
}

.lsg-post .lsg-toc.collapsed .lsg-toc-nav {
    display: none;
}

.lsg-post .lsg-toc-nav ol {
    margin: 12px 0 0;
    padding-left: 20px;
}

.lsg-post .lsg-toc-nav > ol {
    padding-left: 0;
    list-style: none;
    counter-reset: toc-counter;
}

.lsg-post .lsg-toc-nav > ol > li {
    counter-increment: toc-counter;
    margin-bottom: 4px;
}

.lsg-post .lsg-toc-nav > ol > li::before {
    content: counter(toc-counter) ". ";
    font-weight: 600;
    color: #454652;
}

.lsg-post .lsg-toc-nav > ol > li > a {
    color: #454652;
}

.lsg-post .lsg-toc-nav > ol > li > ol > li {
    color: #454652;
}

.lsg-post .lsg-toc-nav > ol > li > ol > li > a {
    color: #454652;
}

.lsg-post .lsg-toc-nav li {
    margin: 4px 0;
    padding: 2px 0;
    line-height: 1.5;
}

.lsg-post .lsg-toc-nav a {
    text-decoration: none;
    color: #454652;
    transition: color 0.2s;
}

.lsg-post .lsg-toc-nav a:hover {
    color: #FF6640;
}

.lsg-post .lsg-toc-header p {
    margin-top: auto;
    margin-bottom: auto;
}

.lsg-post .lsg-section-row {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-top: 30px;
}

.lsg-post .lsg-section-row-reverse {
    flex-direction: row-reverse;
}

.lsg-post .lsg-section-row .lsg-section-text {
    width: 65%;
}

.lsg-post .lsg-section-row .lsg-section-img {
    width: 35%;
}

.lsg-post .lsg-section-figure{
    margin-top: 30px;
}

.lsg-post .lsg-section-figure img{
    border-radius: 20px;
    object-fit: cover;
    object-position: center center;
}

.lsg-post .lsg-section-figure figcaption{
    text-align: center;
    font-size: 0.85em;
    color: #454652;
}

.lsg-post #spis-tresci {
    position: sticky;
    top: 150px;
    align-self: flex-start;
    margin-top: 0px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.lsg-post #spis-tresci .lsg-toc-header p {
    display: flex;
    justify-content:center;
}

.lsg-post #spis-tresci .lsg-toc-nav > ol > li > a {
    font-weight: 500;
}

.lsg-post table thead th {
    background-color: #0006661A;
}

.lsg-post table td,
.lsg-post table th {
    border: 1px solid #000666;
    border-block-start: 1px solid #000666 !important;
}

.lsg-post table tbody tr:nth-child(even) {
    background-color: #FFFFFF;
}

.lsg-post table tbody tr:nth-child(odd) {
    background-color: #0006661A;
}

.lsg-post table tbody tr td,
.lsg-post table tbody tr th {
    background-color: transparent !important;
}

@media (max-width: 1024px) {
    .lsg-post {
        display: block;
    }
    .lsg-post #spis-tresci{
        position: relative;
        max-width: 100%;
        margin-bottom: 60px;
        max-height: 500px;
        top: 0px
    }
    .lsg-post .lsg-section-row,
    .lsg-post .lsg-section-row-reverse {
        flex-direction: column;
        gap: 20px;
    }

    .lsg-post .lsg-section-row .lsg-section-text {
        width: 100%;
    }

    .lsg-post .lsg-section-row .lsg-section-img {
        width: 100%;
    }
    .lsg-post .lsg-post-content {
        font-size: 90%;
    }
    .lsg-post .lsg-post-content h2 {
        font-size: 2rem !important;
    }
    .lsg-post .lsg-post-content h3 {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 768px) {

    .lsg-post table {
    display: block;
    overflow-x: scroll;
    max-width: 100%;
    border: none;
    }

}