/* =========================================================
   PRIMA MEMBRANE
   ARTICLE SIDEBAR — FINAL PREMIUM
========================================================= */

.pm-sidebar {
    --pm-navy: #0b294d;
    --pm-navy-dark: #071a35;
    --pm-orange: #f58220;
    --pm-orange-dark: #df6d0c;

    --pm-text: #34475a;
    --pm-muted: #8793a0;
    --pm-border: #e5e9ee;
    --pm-soft: #f5f7f9;

    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

.pm-sidebar *,
.pm-sidebar *::before,
.pm-sidebar *::after {
    box-sizing: border-box;
}


/* =========================================================
   CARD SYSTEM
========================================================= */

.pm-sidebar-card {
    position: relative;

    width: 100%;
    min-width: 0;

    margin: 0 0 18px;
    padding: 19px;

    background: #ffffff;

    border: 1px solid var(--pm-border);
    border-radius: 14px;

    box-shadow:
        0 1px 2px rgba(7, 26, 53, 0.02),
        0 7px 22px rgba(7, 26, 53, 0.045);

    overflow: hidden;
}

.pm-sidebar-card:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CARD TOP ACCENT
========================================================= */

.pm-sidebar-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 19px;

    width: 34px;
    height: 3px;

    border-radius: 0 0 4px 4px;

    background: var(--pm-orange);
}


/* =========================================================
   HEADING
========================================================= */

.pm-sidebar-heading {
    display: flex;
    align-items: center;

    width: 100%;

    margin: 0 0 17px;

    gap: 10px;
}

.pm-sidebar-heading-icon {
    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border-radius: 9px;

    background: #f0f3f6;

    color: var(--pm-navy);

    font-size: 13px;
}

.pm-sidebar-heading-icon.pm-orange {
    background: rgba(245, 130, 32, 0.10);
    color: var(--pm-orange);
}

.pm-sidebar-heading > div {
    min-width: 0;
}

.pm-sidebar-label {
    display: block;

    margin: 0 0 3px;

    color: var(--pm-orange);

    font-size: 7px;
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: 0.13em;
}

.pm-sidebar-heading h2 {
    margin: 0 !important;
    padding: 0 !important;

    color: var(--pm-navy) !important;

    font-family: "Poppins", Arial, sans-serif !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    line-height: 1.3 !important;
}


/* =========================================================
   SEARCH
========================================================= */

.pm-sidebar-search-form {
    position: relative;

    width: 100%;

    margin: 0;
}

.pm-sidebar-search-form input[type="search"] {
    display: block;

    width: 100%;
    height: 43px;

    margin: 0;
    padding: 0 46px 0 13px;

    border: 1px solid #dce2e7 !important;
    border-radius: 8px !important;

    background: #fafbfc !important;

    color: var(--pm-text) !important;

    font-family: inherit;
    font-size: 12px;

    outline: none;

    box-shadow: none !important;

    appearance: none;
}

.pm-sidebar-search-form input[type="search"]::placeholder {
    color: #9aa5af;
}

.pm-sidebar-search-form input[type="search"]:focus {
    border-color: var(--pm-orange) !important;

    background: #fff !important;

    box-shadow:
        0 0 0 3px rgba(245, 130, 32, 0.08) !important;
}

.pm-sidebar-search-form button {
    position: absolute;

    top: 4px;
    right: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 35px;
    height: 35px;

    margin: 0;
    padding: 0;

    border: 0 !important;
    border-radius: 7px !important;

    background: var(--pm-navy) !important;

    color: #ffffff !important;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.pm-sidebar-search-form button:hover {
    background: var(--pm-orange) !important;
    transform: translateX(1px);
}


/* =========================================================
   TABLE OF CONTENT
========================================================= */

.pm-toc {
    display: flex;
    flex-direction: column;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none !important;
}

.pm-toc li {
    display: block;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.pm-toc a {
    display: grid;

    grid-template-columns: 25px minmax(0, 1fr);

    align-items: start;

    gap: 8px;

    width: 100%;

    margin: 0;

    padding: 6px 4px;

    border-radius: 7px;

    color: #526476 !important;

    font-size: 11.3px;
    font-weight: 500;

    line-height: 1.45;

    text-decoration: none !important;

    transition:
        background .18s ease,
        color .18s ease;
}

.pm-toc a:hover {
    background: rgba(245, 130, 32, .055);
    color: var(--pm-navy) !important;
}

.pm-toc-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    border-radius: 6px;

    background: #f0f3f6;

    color: #7c8995;

    font-size: 8px;
    font-weight: 800;

    line-height: 1;
}

.pm-toc a:hover .pm-toc-number {
    background: var(--pm-orange);
    color: #fff;
}

.pm-toc-title {
    min-width: 0;

    overflow-wrap: anywhere;
}

.pm-toc-sub {
    padding-left: 12px !important;
}

.pm-toc-sub .pm-toc-number {
    background: #ffffff;

    border: 1px solid #e2e7eb;

    color: #8d98a3;
}


/* =========================================================
   LATEST POSTS
========================================================= */

.pm-latest {
    width: 100%;
}

.pm-latest-item {
    display: grid;

    grid-template-columns: 66px minmax(0, 1fr);

    align-items: start;

    gap: 10px;

    width: 100%;

    margin: 0;
    padding: 10px 0;

    border-bottom: 1px solid #edf0f3;
}

.pm-latest-item:first-child {
    padding-top: 0;
}

.pm-latest-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.pm-latest-image {
    display: block;

    width: 66px;
    height: 56px;

    overflow: hidden;

    border-radius: 8px;

    background: #edf1f4;

    text-decoration: none;
}

.pm-latest-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}

.pm-latest-image:hover img {
    transform: scale(1.06);
}

.pm-latest-image > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: var(--pm-navy);

    color: rgba(255,255,255,.55);
}

.pm-latest-content {
    min-width: 0;
}

.pm-latest-index {
    display: block;

    margin: 0 0 2px;

    color: var(--pm-orange);

    font-size: 7px;
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: .08em;
}

.pm-latest-content h3 {
    margin: 0 0 4px !important;
    padding: 0 !important;

    font-family: "Poppins", Arial, sans-serif !important;

    font-size: 11.5px !important;
    font-weight: 700 !important;

    line-height: 1.4 !important;
}

.pm-latest-content h3 a {
    color: var(--pm-navy) !important;

    text-decoration: none !important;
}

.pm-latest-content h3 a:hover {
    color: var(--pm-orange) !important;
}

.pm-latest-content time {
    display: block;

    margin: 0;

    color: var(--pm-muted);

    font-size: 8.5px;

    line-height: 1.3;
}


/* =========================================================
   ARCHIVE + CATEGORY
========================================================= */

.pm-sidebar-list {
    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none !important;
}

.pm-sidebar-list li {
    display: block;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    border-bottom: 1px solid #edf0f3;

    list-style: none !important;
}

.pm-sidebar-list li:last-child {
    border-bottom: 0;
}

.pm-sidebar-list li a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    width: 100%;
    min-height: 36px;

    margin: 0;

    padding: 6px 2px;

    color: #526476 !important;

    font-size: 11px;

    line-height: 1.4;

    text-decoration: none !important;
}

.pm-sidebar-list li a:hover {
    color: var(--pm-orange) !important;
}

.pm-sidebar-list .post-count {
    flex: 0 0 auto;

    color: #8995a0;

    font-size: 8px;
}

.pm-category-list li a > span {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    overflow-wrap: anywhere;
}

.pm-category-list li a i {
    flex: 0 0 auto;

    color: var(--pm-orange);

    font-size: 7px;
}

.pm-category-list li a b {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 19px;

    padding: 0 5px;

    border-radius: 5px;

    background: #f2f4f6;

    color: #7e8a96;

    font-size: 8px;
}


/* =========================================================
   SHARE
========================================================= */

.pm-share {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 7px;

    width: 100%;
}

.pm-share a,
.pm-share button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 37px;

    margin: 0;
    padding: 0;

    border: 0 !important;
    border-radius: 8px !important;

    background: var(--pm-navy);

    color: #ffffff;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.pm-share a:hover,
.pm-share button:hover {
    background: var(--pm-orange);
    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   CALCULATOR CARD
========================================================= */

.pm-sidebar-calculator {
    position: relative;

    width: 100%;

    margin: 0;

    padding: 21px;

    overflow: hidden;

    border-radius: 14px;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(245,130,32,.20),
            transparent 43%
        ),
        linear-gradient(
            145deg,
            var(--pm-navy-dark),
            var(--pm-navy)
        );

    color: #ffffff;

    box-shadow:
        0 12px 28px rgba(7,26,53,.14);
}

.pm-calculator-decoration {
    position: absolute;

    right: -70px;
    bottom: -80px;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: rgba(245,130,32,.07);

    pointer-events: none;
}

.pm-calculator-icon {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin: 0 0 13px;

    border-radius: 9px;

    background: rgba(245,130,32,.13);

    color: var(--pm-orange);

    font-size: 16px;
}

.pm-calculator-label {
    position: relative;
    z-index: 1;

    display: block;

    margin: 0 0 5px;

    color: var(--pm-orange);

    font-size: 7px;
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: .13em;
}

.pm-sidebar-calculator h2 {
    position: relative;
    z-index: 1;

    margin: 0 0 8px !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-family: "Poppins", Arial, sans-serif !important;

    font-size: 18px !important;
    font-weight: 800 !important;

    line-height: 1.3 !important;
}

.pm-sidebar-calculator p {
    position: relative;
    z-index: 1;

    margin: 0 0 17px !important;
    padding: 0 !important;

    color: rgba(255,255,255,.72) !important;

    font-size: 11px !important;

    line-height: 1.6 !important;
}

.pm-calculator-button {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    width: 100%;
    min-height: 42px;

    margin: 0;
    padding: 9px 12px;

    border: 0 !important;
    border-radius: 8px !important;

    background: var(--pm-orange) !important;

    color: #ffffff !important;

    font-family: inherit;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.pm-calculator-button:hover {
    background: var(--pm-orange-dark) !important;

    color: #ffffff !important;

    transform: translateY(-2px);
}


/* =========================================================
   DESKTOP STICKY
========================================================= */

@media (min-width: 821px) {

    .prima-layout > .pm-sidebar {
        position: sticky;

        top: 100px;

        align-self: start;

        width: 100%;
        min-width: 0;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) and (min-width: 821px) {

    .pm-sidebar-card {
        padding: 17px;
    }

    .pm-sidebar-card::before {
        left: 17px;
    }

    .pm-latest-item {
        grid-template-columns: 58px minmax(0, 1fr);

        gap: 8px;
    }

    .pm-latest-image {
        width: 58px;
        height: 52px;
    }

    .pm-sidebar-heading h2 {
        font-size: 14px !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 820px) {

    .prima-layout > .pm-sidebar {
        position: static;

        width: 100%;
        max-width: 100%;

        margin-top: 42px;
    }

    .pm-sidebar-card {
        padding: 18px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .pm-sidebar-card {
        padding: 16px;

        border-radius: 12px;
    }

    .pm-sidebar-card::before {
        left: 16px;
    }

    .pm-sidebar-heading {
        gap: 9px;
    }

    .pm-sidebar-heading-icon {
        flex-basis: 34px;

        width: 34px;
        height: 34px;
    }

    .pm-sidebar-heading h2 {
        font-size: 14px !important;
    }

    .pm-latest-item {
        grid-template-columns: 62px minmax(0, 1fr);

        gap: 9px;
    }

    .pm-latest-image {
        width: 62px;
        height: 54px;
    }

    .pm-sidebar-calculator {
        padding: 19px 17px;
    }

}


/* =========================================================
   EXTRA SMALL
========================================================= */

@media (max-width: 360px) {

    .pm-sidebar-card {
        padding: 14px;
    }

    .pm-sidebar-calculator {
        padding: 18px 15px;
    }

}


/* =========================================================
   FOCUS
========================================================= */

.pm-sidebar a:focus-visible,
.pm-sidebar button:focus-visible,
.pm-sidebar input:focus-visible {
    outline: 2px solid var(--pm-orange);
    outline-offset: 2px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pm-sidebar *,
    .pm-sidebar *::before,
    .pm-sidebar *::after {
        transition: none !important;
        animation: none !important;
    }

}