.bold {
    font-weight: bold;
}

a.button.skewed {
    color: #fff;
}


/* Legacy: service tables (service-7col variant) */

.course-table.service .course-table-head {
    background-color: #6B3FAC;
}

.course-table.service .course-table-head > div {
    background-color: #6B3FAC;
}

.course-table.service .course-table-line {
    border-bottom: 2px solid #D4C6DE;
}

.course-table.service .course-name {
    width: 335px;
    min-width: 335px;
}

.course-table.service .course-table-line .course-name {
    background-color: #D4C6DE;
}

.course-table.service .course-pay-month {
    width: 150px;
    min-width: 150px;
}

.course-table.service .course-time {
    width: 150px;
    min-width: 150px;
    text-align: center;
}

.course-table.service-7col .course-name {
    min-width: 170px;
    width: 170px;
}

.course-table.service-7col .course-link {
    min-width: 170px;
    width: 170px;
}

.course-table.service-7col .course-pay {
    min-width: 10%;
    width: 450px;
    text-align: center;
    max-width: 100%;
}

.course-table.service-7col .course-table-head .course-pay {
    font-size: 10px;
}

.course-table.service-7col {
    display: table;
}

.course-table.service-7col > div {
    display: table-row;
}

.course-table.service-7col div > div {
    display: table-cell;
    vertical-align: middle;
}

.course-table.service-7col .course-table-line > div {
    border-bottom: 1px solid #7324FF;
}

@media screen and (max-width: 800px) {
    .course-table.service .course-time,
    .course-table.service .course-time {
        display: block;
    }

    .course-table.service .course-name {
        width: 50%;
        min-width: auto;
    }

    .course-table.service .course-pay-month,
    .course-table.service .course-time {
        width: 25%;
        min-width: auto;
    }

    .course-table.service-7col {
        width: 800px;
        margin-bottom: 25px;
        display: table;
    }

    .course-table.service-7col .course-pay {
        min-width: 10%;
        width: 150px;
        text-align: center;
        max-width: 100%;
    }

    .course-table.service-7col .course-name {
        width: 200px;
        min-width: 10%;
    }

    .course-table.service-7col .course-link {
        display: table-cell;
    }

    .scrollx::after {
        content: '\f30a   Листайте   \f30b ';
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        margin-top: -25px;
        position: absolute;
        display: block;
        width: 100%;
        text-align: center;
        color: #B0A7CA;
        font-size: 13px;
    }
}

.single-article.article-content iframe {
    width: 100%;
}

.article-table a {
    font-size: 80%;

}

.telegram-footer {
    background: #FFFFFF;
    border-radius: 9px;
    padding: 15px;
}

.site-footer .subscription .telegram-footer .header-telegram {
    font-size: 26px;
    line-height: 1.3;
    max-width: none;
}

.site-footer .subscription .telegram-footer .description-telegram {
    font-size: 16px;
    padding-bottom: 20px;
    background-image: url(../img/arrow3.svg);
    background-repeat: no-repeat;
    background-position: right 12px;
    padding-right: 67px;
    max-width: 450px;
    margin: 15px auto 5px;
}

.site-footer .subscription .telegram-button {
    width: 100%;
}

.site-footer .subscription .telegram-button::before {
    width: 29px;
    background-image: url(../img/social-networks/telegram-white.svg);
    height: 29px;
    margin-right: 7px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;

    position: initial;
    border-radius: 0;

}
.site-footer .subscription .telegram-button:hover:before{
opacity: 1;
}

.dashboard-border {
    /*border: 1px dashed rgba(189, 201, 221, 0.6);*/
    box-sizing: border-box;
    border-radius: 9px;
    padding: 40px;
    text-align: center;
    background-image: url("data:image/svg+xml;utf8,<svg width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill: none; stroke: rgba(189, 201, 221, 0.6); stroke-width: 4; stroke-dasharray: 10 10'/></svg>");
}

@media (min-width: 992px) {
    .site-footer .subscription-form, .site-footer .subscription .telegram {
        max-width: 565px;
    }
}
@media (max-width: 768px) {
    .dashboard-border {
        text-align: left;
    }
}

/* ──────────────────────────────────────────────────────── */
/* Course Table — [open_table] shortcode                   */
/* ──────────────────────────────────────────────────────── */

.course-table,
.couse-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    font-size: 14px;
    width: 100%;
    overflow-x: auto;
}

.course-table-head {
    display: flex;
    align-items: center;
    background-color: #7324FF;
    color: #fff;
    font-weight: 700;
}

.course-table-head > div {
    padding: 12px 15px;
    text-align: center;
    background-color: #7324FF;
}

.course-table-head > div:first-child {
    text-align: left;
}

.course-table-head > div:last-child {
    border-right: none;
}

.course-table-line {
    display: flex;
    border-bottom: 2px solid #D4C6DE;
}

.course-table-line:last-child {
    border-bottom: none;
}

.course-table-line > div {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.course-table-line > div:first-child {
    justify-content: flex-start;
    text-align: left;
    background-color: #F0E5FF;
    padding-left: 20px;
}

.course-table-line > div:last-child {
    border-right: none;
}

.course-table-line span {
    font-size: 11px;
}

/* Column widths — 6 columns: 35% + 13% + 12% + 13% + 12% + 15% */
.course-table .course-name,
.couse-table .course-name {
    width: 35%;
    flex-shrink: 0;
}

.course-table .course-school,
.couse-table .course-school {
    width: 13%;
    flex-shrink: 0;
}

.course-table .course-price,
.couse-table .course-price {
    width: 12%;
    flex-shrink: 0;
}

.course-table .course-pay-month,
.couse-table .course-pay-month {
    width: 13%;
    flex-shrink: 0;
}

.course-table .course-time,
.couse-table .couse-time {
    width: 12%;
    flex-shrink: 0;
}

.course-table .course-review,
.couse-table .course-link {
    width: 15%;
    flex-shrink: 0;
}

/* Course name: link below the title */
.course-table-line .course-name {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.course-table-line .course-name .bold {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

/* Links — primary color */
.course-table-line a {
    color: #7324FF;
    text-decoration: none;
}

.course-table-line a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 768px) {
    .course-table-head {
        display: none;
    }

    .course-table-line {
        flex-direction: column;
        padding: 20px 15px;
    }

    .course-table-line > div {
        width: 100% !important;
        border-right: none;
        padding: 6px 0;
        justify-content: flex-start;
        text-align: left;
        font-size: 15px;
    }

    .course-table-line > div:first-child {
        background: none;
        padding: 0 0 12px;
        margin-bottom: 8px;
        border-bottom: 1px solid #E4E9F2;
    }

    .course-table-line .course-name {
        text-align: center;
        align-items: center;
        font-size: 16px;
        font-weight: 600;
    }

    .course-table-line .course-name .bold a {
        display: inline-block;
        padding: 8px 20px;
        background: linear-gradient(135deg, #FF8A00, #FF5C00);
        color: #fff;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        margin-top: 8px;
    }

    .course-table-line .course-name .bold a:hover {
        text-decoration: none;
        opacity: 0.9;
    }

    .course-table-line > div:not(:first-child):not(.course-review) {
        display: flex;
        align-items: baseline;
    }

    .course-table-line > div:not(:first-child):not(.course-review):before {
        font-weight: 700;
        margin-right: 8px;
        min-width: 120px;
        flex-shrink: 0;
    }

    .course-table-line .course-school:before { content: "Школа:"; }
    .course-table-line .course-price:before { content: "Цена:"; }
    .course-table-line .course-pay-month:before { content: "Рассрочка:"; }
    .course-table-line .course-time:before,
    .course-table-line .couse-time:before { content: "Длительность:"; }

    .course-table-line .course-review {
        text-align: center;
        justify-content: center;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid #E4E9F2;
    }

    .course-table-line .course-review a {
        font-weight: 600;
        font-size: 14px;
    }

    .course-table-line .course-review a::after {
        content: " от Checkroi";
    }
}

/* ──────────────────────────────────────────────────────── */
/* Single Top Table — [top] shortcode                      */
/* ──────────────────────────────────────────────────────── */

.single-top-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #525252;
    margin-bottom: 20px;
}

.single-top-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #525252;
}

.single-top-cell {
    width: 50%;
    border-right: 1px solid #525252;
    box-sizing: border-box;
    padding: 10px;
}

.single-top-cell:nth-child(1) {
    width: 33%;
    font-weight: 700;
}

.single-top-cell:nth-child(2) {
    width: 67%;
}

.single-top-row:last-child {
    border-bottom: none;
}

.single-top-cell:last-child {
    border-right: none;
}

img.course-card {
    border-radius: 10px;
}

/* Price list inside single-top-table */
.single-top-cell ul.single-top-price {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.single-top-cell ul.single-top-price li {
    padding: 2px 0;
    font-size: inherit;
    line-height: 1.6;
}

.single-top-cell ul.single-top-price li::before {
    display: none;
}

.single-top-cell ul.single-top-price .price-old {
    text-decoration: line-through;
    color: #999;
}

.single-top-cell ul.single-top-price .price-sale {
    font-weight: 700;
}

/* Links in single-top-table — inherit site primary color */
.single-top-cell a {
    color: #7324FF;
    text-decoration: none;
}

.single-top-cell a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 600px) {
    .single-top-cell:nth-child(1) {
        font-size: 12px;
        padding-top: 1.1em;
        background-color: #f4f4f4;
    }
    .single-top-cell:nth-child(2) {
        font-size: 14px;
    }
}

/* ──────────────────────────────────────────────────────── */
/* Course Banner Card — [top_new] shortcode                */
/* ──────────────────────────────────────────────────────── */

.course-card-banner {
    display: block;
    position: relative;
    background: linear-gradient(135deg, #7324FF 0%, #9B59FF 50%, #7324FF 100%);
    border-radius: 16px;
    padding: 32px 36px;
    margin: 30px 0;
    color: #fff;
    text-decoration: none !important;
    overflow: hidden;
    min-height: 220px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(115, 36, 255, 0.35);
    color: #fff;
    text-decoration: none !important;
}

.course-card-banner * {
    text-decoration: none !important;
}

/* ── Background variations ── */
.ccb-circles {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.ccb-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

/* Variation 1: classic right-side circles */
.ccb-var-1 .ccb-circle-1 { width: 320px; height: 320px; right: -40px; top: -60px; }
.ccb-var-1 .ccb-circle-2 { width: 220px; height: 220px; right: 60px; bottom: -70px; }
.ccb-var-1 .ccb-circle-3 { width: 120px; height: 120px; right: 200px; top: 50%; background: rgba(255,255,255,0.04); }

/* Variation 2: bottom-left + top-right */
.ccb-var-2 .ccb-circle-1 { width: 280px; height: 280px; right: -30px; top: -80px; }
.ccb-var-2 .ccb-circle-2 { width: 200px; height: 200px; left: -50px; bottom: -60px; background: rgba(255,255,255,0.05); }
.ccb-var-2 .ccb-circle-3 { width: 160px; height: 160px; right: 120px; bottom: -30px; }

/* Variation 3: scattered */
.ccb-var-3 .ccb-circle-1 { width: 240px; height: 240px; right: 10px; top: -40px; }
.ccb-var-3 .ccb-circle-2 { width: 180px; height: 180px; right: -50px; bottom: -20px; }
.ccb-var-3 .ccb-circle-3 { width: 300px; height: 300px; left: -100px; top: -120px; background: rgba(255,255,255,0.04); }

/* Variation 4: offset right */
.ccb-var-4 .ccb-circle-1 { width: 350px; height: 350px; right: -80px; top: 50%; transform: translateY(-50%); }
.ccb-var-4 .ccb-circle-2 { width: 150px; height: 150px; right: 100px; top: -40px; }
.ccb-var-4 .ccb-circle-3 { width: 100px; height: 100px; right: 180px; bottom: 20px; background: rgba(255,255,255,0.05); }

/* ── Content ── */
.ccb-content {
    position: relative;
    z-index: 1;
}

/* School badge */
.ccb-school {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 6px 14px;
    margin-bottom: 24px;
}

.ccb-school-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 8px;
    object-fit: contain;
}

.ccb-school-name {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

/* Title */
.ccb-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 14px 0;
    color: #fff;
    max-width: 100%;
}

/* Description */
.ccb-desc {
    font-size: 20px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 28px 0;
    max-width: 100%;
    font-style: italic;
}

/* ── Bottom row ── */
.ccb-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

/* Price blocks */
.ccb-price {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ccb-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ccb-price-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #7324FF;
    flex-shrink: 0;
}

.ccb-price-icon-sale {
    font-size: 20px;
    font-weight: 400;
}

.ccb-price-text {
    display: flex;
    flex-direction: column;
}

.ccb-price-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.ccb-price-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* CTA button */
.ccb-cta {
    flex-shrink: 0;
}

.ccb-button {
    display: inline-block;
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #7324FF;
    white-space: nowrap;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.course-card-banner:hover .ccb-button {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.clearfix {
    clear: both;
}

/* ═══ [top_new] Color variants ═══ */

/* v=2 — Orange */
.course-card-banner.ccb-orange {
    background: linear-gradient(135deg, #FF6B35 0%, #FF9A5C 50%, #FF6B35 100%);
}
.course-card-banner.ccb-orange:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.35);
}
.ccb-orange .ccb-price-icon {
    color: #FF6B35;
}
.ccb-orange .ccb-button {
    color: #FF6B35;
}

/* v=3 — White */
.course-card-banner.ccb-white {
    background: #fff;
    border: 1px solid #E8E8EF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.course-card-banner.ccb-white:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    color: #272B37;
}
.ccb-white .ccb-circle {
    background: rgba(115, 36, 255, 0.04);
}
.ccb-white .ccb-school {
    background: #F5F5FA;
}
.ccb-white .ccb-school-name {
    color: #555;
}
.ccb-white .ccb-title {
    color: #272B37;
}
.ccb-white .ccb-desc {
    color: #555;
}
.ccb-white .ccb-price-icon {
    background: #F5F5FA;
    color: #7324FF;
}
.ccb-white .ccb-price-value {
    color: #272B37;
}
.ccb-white .ccb-price-label {
    color: #999;
}
.ccb-white .ccb-button {
    background: linear-gradient(135deg, #7324FF, #9B5FFF);
    color: #fff;
}
.course-card-banner.ccb-white:hover .ccb-button {
    box-shadow: 0 4px 16px rgba(115, 36, 255, 0.3);
}

/* ── Mobile ── */
@media only screen and (max-width: 600px) {
    .course-card-banner {
        padding: 24px 20px;
    }

    .ccb-title {
        font-size: 20px;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .ccb-desc {
        font-size: 16px;
    }

    .ccb-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ccb-button {
        width: 100%;
        text-align: center;
    }
}

/* ═══════════════════════════════════════
   [top_side] — Compact sidebar course card
   ═══════════════════════════════════════ */
.course-side-card {
    background: #fff;
    border: 1px solid #E8E8EF;
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}
.course-side-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Label badge */
.csc-label {
    display: inline-block;
    background: linear-gradient(135deg, #7324FF, #9B5FFF);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

/* School */
.csc-school {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.csc-school-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
}
.csc-school-name {
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

/* Title */
.csc-title {
    font-size: 17px;
    font-weight: 700;
    color: #272B37;
    line-height: 1.3;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Info row: duration + level */
.csc-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.csc-info-item {
    font-size: 12px;
    color: #666;
    background: #F5F5FA;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Price */
.csc-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}
.csc-price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}
.csc-price-current {
    font-size: 22px;
    font-weight: 700;
    color: #272B37;
}
.csc-price-installment {
    display: block;
    width: 100%;
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}

/* CTA button */
.csc-button,
.article-content .csc-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.2s;
    box-sizing: border-box;
}
.csc-button:hover,
.article-content .csc-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
    color: #fff !important;
}

/* Review link */
.csc-review {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #7324FF;
    text-decoration: none;
}
.csc-review:hover {
    text-decoration: underline;
}

/* ═══ Color variants ═══ */

/* ── Purple card ── */
.course-side-card.csc-purple {
    background: linear-gradient(135deg, #6B1FCF, #9B5FFF);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(115, 36, 255, 0.2);
}
.csc-purple .csc-label {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.csc-purple .csc-school-name {
    color: rgba(255, 255, 255, 0.8);
}
.csc-purple .csc-title {
    color: #fff;
}
.csc-purple .csc-info-item {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}
.csc-purple .csc-price-old {
    color: rgba(255, 255, 255, 0.5);
}
.csc-purple .csc-price-current {
    color: #fff;
}
.csc-purple .csc-price-installment {
    color: rgba(255, 255, 255, 0.7);
}
.csc-purple .csc-button,
.article-content .csc-purple .csc-button {
    background: #fff;
    color: #7324FF !important;
}
.csc-purple .csc-button:hover,
.article-content .csc-purple .csc-button:hover {
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
    color: #7324FF !important;
}
.csc-purple .csc-review,
.article-content .csc-purple .csc-review {
    color: rgba(255, 255, 255, 0.85) !important;
}
.csc-purple .csc-review:hover,
.article-content .csc-purple .csc-review:hover {
    color: #fff !important;
}

/* ── Orange card ── */
.course-side-card.csc-orange {
    background: linear-gradient(135deg, #FF6B35, #FF9A5C);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}
.csc-orange .csc-label {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.csc-orange .csc-school-name {
    color: rgba(255, 255, 255, 0.85);
}
.csc-orange .csc-title {
    color: #fff;
}
.csc-orange .csc-info-item {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}
.csc-orange .csc-price-old {
    color: rgba(255, 255, 255, 0.5);
}
.csc-orange .csc-price-current {
    color: #fff;
}
.csc-orange .csc-price-installment {
    color: rgba(255, 255, 255, 0.7);
}
.csc-orange .csc-button,
.article-content .csc-orange .csc-button {
    background: #fff;
    color: #FF6B35 !important;
}
.csc-orange .csc-button:hover,
.article-content .csc-orange .csc-button:hover {
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
    color: #FF6B35 !important;
}
.csc-orange .csc-review,
.article-content .csc-orange .csc-review {
    color: rgba(255, 255, 255, 0.85) !important;
}
.csc-orange .csc-review:hover,
.article-content .csc-orange .csc-review:hover {
    color: #fff !important;
}

b, strong {
    font-weight: 700;
}

/* ── On mobile: normal flow, full-width block ── */
@media (max-width: 1199px) {
    .course-side-card-anchor {
        height: auto !important;
        overflow: visible;
        position: relative;
    }
    .course-side-card-anchor > .course-side-card {
        position: relative !important;
        width: 100% !important;
        max-width: 100%;
    }
}


/* =============================================
   Category page: heading + post count
   ============================================= */

.category-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-heading .section-header {
    margin-bottom: 0;
}

.category-heading .post-count {
    font-size: 20px;
    font-weight: 400;
    color: #8E93A4;
    white-space: nowrap;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .category-heading .post-count {
        font-size: 16px;
    }
}


/* =============================================
   Blog archive: pagination center + bottom spacing
   ============================================= */

.blog-archive .articles-settings {
    margin: 0 0 40px;
}

.blog-archive .pagination {
    justify-content: center;
    margin-top: 40px;
}

.blog-archive {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .blog-archive {
        padding-bottom: 50px;
    }
}


/* =============================================
   Category page: subcategory pills
   ============================================= */

/* =============================================
   Header: link hover — light purple instead of orange
   ============================================= */

.site-header .main-navigation a:hover {
    color: #9B5FFF;
}


.blog-archive .section-intro:not(.full-width) {
    width: 80%;
    max-width: none;
    margin-top: 15px;
    margin-bottom: 40px;
}

.subcategory-pills {
    margin: 24px 0 45px;
}

.subcategory-pills .pills-label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #272B37;
    margin-bottom: 14px;
}

.subcategory-pills .pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subcategory-pills .pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #272B37;
    background: #fff;
    border: 1px solid #E4E9F2;
    border-radius: 50px;
    transition: all .15s ease;
    white-space: nowrap;
}

.subcategory-pills .pill span {
    color: #8E93A4;
    font-weight: 400;
    margin-top: 2px;
}

.subcategory-pills .pill:hover {
    background: #7324FF;
    border-color: #7324FF;
    color: #fff;
    text-decoration: none;
}

.subcategory-pills .pill:hover span {
    color: rgba(255, 255, 255, .7);
}

@media (max-width: 768px) {
    .subcategory-pills .pills-list {
        gap: 8px;
    }
    .subcategory-pills .pill {
        padding: 6px 14px;
        font-size: 13px;
    }
}


/* =============================================
   Sort bar: period dropdown
   ============================================= */

.period-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    margin: 0 0 10px 30px;
}

.period-label {
    font-size: 14px;
    font-weight: 600;
    color: #272B37;
    white-space: nowrap;
}

.period-select {
    position: relative;
    height: 100%;
}

.period-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: #272B37;
    background: #F7F8FB;
    border: 1px solid #E4E9F2;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s;
}

@media (min-width: 992px) {
    .period-dropdown {
        height: 60px;
    }
    .period-current {
        font-size: 15px;
        padding: 0 20px;
    }
    .period-label {
        font-size: 15px;
    }
}

.period-current:hover {
    border-color: #7324FF;
}

.period-current svg {
    transition: transform .2s;
}

.period-select.open .period-current svg {
    transform: rotate(180deg);
}

.period-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid #E4E9F2;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    z-index: 50;
    overflow: hidden;
}

.period-select.open .period-options {
    display: block;
}

.period-options a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #272B37;
    white-space: nowrap;
    transition: background .1s;
}

.period-options a:hover {
    background: #F7F8FB;
}

.period-options a.active {
    color: #7324FF;
    font-weight: 600;
}

@media (max-width: 768px) {
    .period-dropdown {
        margin-left: 0;
        margin-top: 10px;
        order: 3;
    }
}


/* =============================================
   Archive bottom content block
   ============================================= */

.archive-bottom-content {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E4E9F2;
    font-size: 16px;
    line-height: 1.6;
    color: #272B37;
}

.archive-bottom-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.archive-bottom-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.archive-bottom-content p {
    margin-bottom: 16px;
}

.archive-bottom-content ul,
.archive-bottom-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.archive-bottom-content li {
    margin-bottom: 8px;
}

.archive-bottom-content a {
    color: #7324FF;
}

.archive-bottom-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .archive-bottom-content {
        margin-top: 40px;
        padding-top: 30px;
        font-size: 15px;
    }
    .archive-bottom-content h2 {
        font-size: 20px;
    }
    .archive-bottom-content h3 {
        font-size: 18px;
    }
}


/* =============================================
   Blog Homepage: /blog/
   ============================================= */

.blog-home {
    padding-bottom: 80px;
}

/* --- Digest Section --- */

.blog-digest {
    margin-bottom: 60px;
}

.blog-digest__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.blog-digest__titles .section-header {
    margin-bottom: 8px;
}

.blog-digest__subtitle {
    font-size: 16px;
    color: rgba(39, 43, 55, 0.6);
    margin: 0;
}

.blog-digest__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.blog-digest__counter {
    font-size: 14px;
    color: rgba(39, 43, 55, 0.6);
    white-space: nowrap;
}

.blog-digest__counter b {
    font-weight: 600;
    color: #272B37;
}

.blog-digest__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: #FF9C42;
    color: #fff;
    cursor: pointer;
    box-shadow: 0px 10px 30px -10px rgba(231, 97, 0, 0.5);
    transition: background 0.2s, box-shadow 0.2s;
    transition: .2s;
    flex-shrink: 0;
}

.blog-digest__arrow:hover:not(:disabled) {
    background: #E8872E;
    box-shadow: 0px 6px 18px -8px rgba(231, 97, 0, 0.5);
}

.blog-digest__arrow:disabled {
    background: #E4E9F2;
    color: #9DA3B0;
    cursor: default;
}

.blog-digest__arrow svg {
    width: 20px;
    height: 20px;
}

/* Slider */

.blog-digest__slider {
    position: relative;
}

.blog-digest__slide {
    display: none;
}

.blog-digest__slide.active {
    display: block;
}

/* Ensure alt layout works in digest context */
.blog-digest__slide .articles.alt {
    min-height: 460px;
}


/* --- Categories Section --- */

.blog-categories-section {
    margin-bottom: 60px;
    padding: 30px 0;
    border-top: 1px solid #E4E9F2;
    border-bottom: 1px solid #E4E9F2;
}

.blog-categories__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.blog-categories-section .article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-categories-section .article-categories li {
    margin: 0;
}

.blog-categories-section .article-categories a:not(.button) {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #272B37;
    background: #F7F8FB;
    border: 1px solid #E4E9F2;
    border-radius: 8px;
    white-space: nowrap;
    transition: .15s;
}

.blog-categories-section .article-categories a:not(.button):hover {
    border-color: #7324FF;
    color: #7324FF;
}

.blog-categories-section .article-categories .button.orange {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    background: #FF7A00;
    color: #fff;
    border: none;
    white-space: nowrap;
    transition: .15s;
}

.blog-categories-section .article-categories .button.orange:hover {
    background: #e86e00;
}


/* --- Professions Section --- */

.blog-professions {
    margin-bottom: 60px;
}

.blog-professions__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.blog-professions__titles .section-header {
    margin-bottom: 8px;
}

.blog-professions__subtitle {
    font-size: 16px;
    color: rgba(39, 43, 55, 0.6);
    margin: 0;
    max-width: 540px;
}

.blog-professions__badge {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 24px;
    background: linear-gradient(135deg, #FF7A00, #FF9331);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 22px;
    white-space: nowrap;
    transition: .2s;
    flex-shrink: 0;
}

.blog-professions__badge:hover {
    background: linear-gradient(135deg, #e86e00, #FF7A00);
    color: #fff;
}

/* Professions articles grid */
.blog-professions .articles.grid {
    margin: 0 -15px;
}


/* --- Responsive --- */

@media (max-width: 991px) {
    .blog-digest__slide .articles.alt {
        min-height: auto;
        display: block;
        padding-left: 0;
    }

    .blog-digest__slide .articles.alt .item.main {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }

    .blog-digest__slide .articles.alt .item:not(.main) {
        width: 100%;
        margin: 0 0 15px;
    }

    .blog-professions .articles.grid {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .blog-home {
        padding-bottom: 50px;
    }

    .blog-digest {
        margin-bottom: 40px;
    }

    .blog-digest__header {
        margin-bottom: 20px;
    }

    .blog-digest__subtitle {
        font-size: 14px;
    }

    .blog-digest__arrow {
        width: 38px;
        height: 38px;
    }

    .blog-categories-section {
        margin-bottom: 40px;
        padding: 20px 0;
    }

    .blog-professions {
        margin-bottom: 40px;
    }

    .blog-professions__badge {
        height: 38px;
        padding: 0 18px;
        font-size: 13px;
        border-radius: 19px;
    }
}