/* ==========================================================================
   blog.css — Blog article components
   .si-toc          : left-hand Table of Contents + share (component/toc.php)
   .si-kt           : "Key Takeaways" callout box
   .si-faq          : FAQ accordion inside blog articles
   .blog-pagination : client-side paging for the blogs.php card grid
   Brand tokens (style.css): --orange-color #F58424, --black #262C36
   ========================================================================== */

/* ---------- Table of Contents ---------- */
.si-toc {
    box-shadow: 0 4px 8px rgb(0 0 0 / .1);
    border-radius: 10px;
    padding: 25px;
    background: #fff;
    margin-bottom: 30px;
}

.si-toc--sticky {
    position: sticky;
    top: 120px;
}

.si-toc__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--black, #262C36);
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--orange-color, #F58424);
}

.si-toc ol {
    counter-reset: si-toc-i;
    list-style: none;
    margin: 0;
    padding: 0;
}

.si-toc ol li {
    counter-increment: si-toc-i;
    position: relative;
    padding: 7px 0 7px 26px;
    line-height: 1.45;
}

.si-toc ol li::before {
    content: counter(si-toc-i) ".";
    position: absolute;
    left: 0;
    top: 7px;
    color: var(--orange-color, #F58424);
    font-weight: 700;
    font-size: 14px;
}

.si-toc ol li a {
    color: var(--black, #262C36);
    font-size: 15px;
    display: inline-block;
    transition: color .2s ease;
}

.si-toc ol li a:hover,
.si-toc ol li a.is-active {
    color: var(--orange-color, #F58424);
}

/* nested (h3 level) items */
.si-toc ol ol {
    counter-reset: si-toc-j;
    margin-top: 4px;
}

.si-toc ol ol li {
    counter-increment: si-toc-j;
    padding: 5px 0 5px 20px;
}

.si-toc ol ol li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange-color, #F58424);
    top: 13px;
}

.si-toc ol ol li a {
    font-size: 14px;
    color: #585858;
}

/* ---------- share row ---------- */
.si-toc__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.si-toc__share a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #d4d7dd;
    color: var(--black, #262C36);
    font-size: 14px;
    transition: all .2s ease;
}

.si-toc__share a:hover {
    background: var(--orange-color, #F58424);
    border-color: var(--orange-color, #F58424);
    color: #fff;
}

.si-toc__share .si-toc-copy {
    width: auto;
    border-radius: 20px;
    padding: 0 14px;
    gap: 7px;
    font-size: 13px;
}

/* ---------- Key Takeaways ---------- */
.si-kt {
    background: #f8f9fb;
    border-left: 5px solid var(--orange-color, #F58424);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 0 25px;
}

.si-kt h2,
.si-kt h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--black, #262C36) !important;
    margin: 0 0 12px !important;
}

.si-kt ul {
    margin: 0;
    padding: 0;
}

/* bullets themselves come from the .si-article rules below — same dot everywhere */
.si-kt ul li {
    position: relative;
    padding-left: 25px !important;
    margin: 8px 0;
    line-height: 1.6;
    color: #3a3f47;
}

.si-kt ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange-color, #F58424);
}

/* ---------- article body lists ----------
   style.css sets `li,ul{list-style:none}` site-wide, so blog lists render with
   no marker at all. Draw the bullet ourselves as an orange dot. */
.si-article ul li {
    position: relative;
    padding-left: 25px !important;
}

.si-article ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange-color, #F58424);
}

/* numbered lists keep their numbers, not dots */
.si-article ol {
    list-style: decimal;
    padding-left: 30px;
}

.si-article ol li {
    list-style: decimal;
    padding-left: 0 !important;
}

/* the accordion's own chevron column already indents these */
.si-article .si-faq ul li {
    padding-left: 22px !important;
}

/* ---------- FAQ accordion ---------- */
.si-faq {
    margin: 20px 0;
}

.si-faq .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.si-faq .accordion-button {
    font-weight: 600;
    font-size: 16px;
    color: var(--black, #262C36);
    background: #fff;
    box-shadow: none;
    padding: 15px 18px;
}

.si-faq .accordion-button:not(.collapsed) {
    background: #fdf1e6;
    color: var(--orange-color, #F58424);
    box-shadow: none;
}

.si-faq .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.si-faq .accordion-body {
    font-size: 15px;
    line-height: 1.7;
    color: #3a3f47;
    text-align: justify;
    padding: 15px 18px;
}

/* ---------- blogs.php pagination ---------- */
/* cards outside the current page — the paging script toggles this class */
.blog-grid .grid-item.is-hidden {
    display: none !important;
}

.blog-pagination {
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 10px;
}

.blog-pagination .ind_btn_2 {
    color: var(--orange-color, #F58424);
    border: 2px solid var(--orange-color, #F58424);
    padding: 8px 18px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 6px;
    transition: all .2s ease;
}

.blog-pagination .ind_btn_2:hover {
    background: var(--orange-color, #F58424);
    color: #fff;
}

.blog-pagination .ind_btn_2.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.blog-pagination #pageNumbers {
    font-size: 16px;
    font-weight: 600;
    color: var(--black, #262C36);
    white-space: nowrap;
}

.blog-pagination .jump-to-page {
    gap: 8px;
    font-size: 15px;
    color: var(--black, #262C36);
}

.blog-pagination .jump-to-page input {
    width: 70px;
    padding: 7px 10px;
    border: 1px solid #d4d7dd;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
}

.blog-pagination .jump-to-page input:focus {
    outline: none;
    border-color: var(--orange-color, #F58424);
}

.blog-pagination .btn-jump {
    background: var(--black, #262C36);
    color: #fff;
    border: 2px solid var(--black, #262C36);
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s ease;
}

.blog-pagination .btn-jump:hover {
    background: var(--orange-color, #F58424);
    border-color: var(--orange-color, #F58424);
}

@media (max-width: 575px) {
    .blog-pagination {
        gap: 10px;
    }

    .blog-pagination .jump-to-page {
        order: 3;
        width: 100%;
    }
}

/* anchor targets should not hide behind the sticky header */
.blog-content [id] {
    scroll-margin-top: 130px;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .si-toc--sticky {
        position: static;
    }

    .si-toc {
        margin-bottom: 25px;
    }
}
