/*
 * category-page.css
 * Styles for the DSC enhanced category page template.
 * Enqueue via functions.php or directly in category.php before get_header().
 *
 * Depends on the BuddyBoss theme's base reset/typography already being loaded.
 */

/* ── DESIGN TOKENS ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --dsc-primary: #3366cc;
    --dsc-primary-dk: #2a54a8;
    --dsc-primary-btn: #7094db;
    --dsc-primary-lt: #e8effc;
    --dsc-body-bg: #f9f9f9;
    --dsc-content-bg: #ffffff;
    --dsc-border: #e0dfdb;
    --dsc-text: #393e41;
    --dsc-text-muted: #aaaaaa;
    --dsc-text-dark: #1e2132;
    --dsc-heading: #393e41;
    --dsc-block-radius: 10px;
    --dsc-btn-radius: 6px;
    --dsc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
    --dsc-shadow: 0 6px 24px rgba(18, 43, 70, 0.12);

    /* Per-category accent color — overridden inline on .cat-hero */
    --cat-color: #3366cc;
    --cat-color-dk: #2a54a8;
    --cat-color-lt: #e8effc;
}

body {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
    color: var(--dsc-text);
    background: var(--dsc-body-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 0.875rem;
}

.container {
    padding: 0px;
}

h1,
h2,
h3,
h4,
p,
span,
div {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
    line-height: 1.5;
}

/* ── CATEGORY HERO BANNER ──────────────────────────────────────────── */
.dsc-cat-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    color: white;
    box-sizing: border-box;
    flex: auto !important;
    background: #0f1a2e;
    padding: 36px 0 32px;
    position: relative;
    overflow: hidden;
}

/* Diagonal color wash */
.dsc-cat-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10%;
    bottom: 0;
    width: 55%;
    background: linear-gradient(135deg, transparent 20%, rgba(0, 162, 232, 0.1) 100%);
    pointer-events: none;
}

/* Thin gradient underline */
.dsc-cat-hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cat-color) 0%, var(--dsc-primary-btn) 50%, transparent 100%);
    pointer-events: none;
}

.dsc-cat-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dsc-cat-hero-logo-wrap {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsc-cat-hero-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.dsc-cat-hero-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cat-color);
    margin-bottom: 6px;
}

.dsc-cat-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.dsc-cat-hero-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    line-height: 1.6;
    max-width: 520px;
    margin: 0;
}

/* ── MAIN LAYOUT ───────────────────────────────────────────────────── */
.dsc-site-content {
    padding: 28px 0 40px;
    background: var(--dsc-body-bg);
}

.dsc-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

.dsc-content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

.dsc-content-layout>* {
    min-width: 0;
}

/* ── SECTION HEADER ────────────────────────────────────────────────── */
.dsc-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dsc-border);
}

.dsc-section-head h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--dsc-heading);
    letter-spacing: -0.01em;
    margin: 0;
}

.dsc-section-head-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--dsc-primary);
    text-decoration: none;
}

.dsc-section-head-link:hover {
    opacity: 0.75;
}

.dsc-section-head-link::after {
    content: " →";
}

/* ── CALLOUT ROW (AI Agent + Learners) ─────────────────────────────── */
.dsc-callout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--dsc-block-radius);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--dsc-shadow);
}

.dsc-callout-panel {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    overflow: hidden;
}

.dsc-callout-eyebrow {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

.dsc-callout-headline {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.dsc-callout-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    margin-bottom: 8px;
}

.dsc-callout-btn {
    align-self: flex-start;
    display: inline-block;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--dsc-btn-radius);
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.dsc-callout-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #ffffff;
}

/* Agent panel */
.dsc-callout-panel--agent {
    background: linear-gradient(135deg, #2b3f5c, #385187);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.dsc-callout-panel--agent .dsc-callout-btn {
    background: var(--dsc-primary-btn);
}

.dsc-callout-agent-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.dsc-callout-agent-icon {
    font-size: 26px;
}

/* Learners panel */
.dsc-callout-panel--learners {
    background: #003366;
    border-left: 4px solid #f7941e;
}

.dsc-callout-panel--learners .dsc-callout-btn {
    background: #f7941e;
}

.dsc-callout-learners-logo {
    height: 22px;
    width: auto;
    margin-bottom: 4px;
    display: block;
}

/* ── EXPERTS SECTION ───────────────────────────────────────────────── */
.dsc-experts-section {
    margin-bottom: 32px;
}

.dsc-experts-carousel {
    position: relative;
}

.dsc-experts-scroll-wrap {
    overflow-x: auto;
    scrollbar-width: none;
}

.dsc-experts-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.dsc-experts-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.dsc-experts-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dsc-content-bg);
    border: 1px solid var(--dsc-primary);
    /**box-shadow: 0 2px 8px rgb(0 51 102 / 25%);**/
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--dsc-text-dark);
    font-size: 16px;
    line-height: 1;
    transition: background 0.18s, box-shadow 0.18s, opacity 0.18s;
    padding: 0px;
}

.dsc-experts-arrow:hover {
    background: var(--dsc-primary-btn);
    color: #fff;
    border-color: var(--dsc-primary-btn);
    box-shadow: var(--dsc-shadow);
}

.dsc-experts-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.dsc-experts-arrow--prev {
    left: -18px;
}

.dsc-experts-arrow--next {
    right: -18px;
}

.dsc-expert-card {
    width: 280px;
    flex-shrink: 0;
    background: var(--dsc-content-bg);
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-block-radius);
    overflow: hidden;
    box-shadow: var(--dsc-shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.dsc-expert-card:hover {
    box-shadow: var(--dsc-shadow);
    transform: translateY(-2px);
}

.dsc-expert-card-header {
    background: linear-gradient(135deg, var(--cat-color-lt, #e5f6fd), #f0faff);
    border-bottom: 1px solid var(--dsc-border);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 104px;
    max-height: 104px;
}

.dsc-expert-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.dsc-expert-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--dsc-text-dark);
    margin-bottom: 2px;
}

.dsc-expert-role {
    font-size: 11px;
    color: var(--dsc-text-muted);
    font-weight: 500;
}

.dsc-expert-articles {
    padding: 10px 14px 14px;
}

.dsc-expert-articles-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cat-color);
    margin-bottom: 8px;
}

.dsc-expert-article {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--dsc-border);
    text-decoration: none;
}

.dsc-expert-article:last-child {
    border-bottom: none;
}

.dsc-expert-article-thumb {
    width: 44px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8eaed;
}

.dsc-expert-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dsc-expert-article-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dsc-text);
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dsc-expert-article-title:hover {
    color: var(--dsc-primary);
}

.dsc-expert-article-date {
    font-size: 0.65rem;
    color: var(--dsc-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ── COMMUNITY TAB BOX ─────────────────────────────────────────────── */
.dsc-community-box {
    background: var(--dsc-content-bg);
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-block-radius);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--dsc-shadow-sm);
}

.dsc-community-tabs {
    display: flex;
    border-bottom: 2px solid var(--dsc-border);
}

.dsc-community-tab {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--dsc-text-muted);
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.18s, border-color 0.18s;
    letter-spacing: 0.01em;
    font-family: inherit;
}

.dsc-community-tab:hover {
    color: var(--dsc-text-dark);
    background-color: #ffffff;
    border-radius: 0px;
}

.dsc-community-tab.active,
.dsc-community-tab.focus {
    color: var(--dsc-primary);
    border-bottom-color: var(--dsc-primary);
    background-color: #ffffff;
    border-radius: 0px;
    box-shadow: none;
}

.dsc-community-panel {
    display: none;
    padding: 14px 16px;
}

.dsc-community-panel.active {
    display: block;
}

.dsc-community-view-more {
    display: block;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--dsc-border);
    font-size: 12px;
    font-weight: 700;
    color: var(--dsc-primary);
    text-align: right;
    text-decoration: none;
}

.dsc-community-view-more:hover {
    opacity: 0.75;
}

/* Events */
.dsc-event-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dsc-border);
}

.dsc-event-row:last-of-type {
    border-bottom: none;
}

.dsc-event-date-badge {
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    background: var(--dsc-primary-lt);
    border-radius: 6px;
    padding: 5px 4px;
}

.dsc-event-date-month {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dsc-primary);
    letter-spacing: 0.06em;
}

.dsc-event-date-day {
    font-size: 18px;
    font-weight: 800;
    color: var(--dsc-primary-dk);
    line-height: 1;
}

.dsc-event-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--dsc-text-dark);
    line-height: 1.4;
    margin-bottom: 3px;
}

.dsc-event-title a {
    color: inherit;
    text-decoration: none;
}

.dsc-event-title a:hover {
    color: var(--dsc-primary);
}

.dsc-event-meta {
    font-size: 11px;
    color: var(--dsc-text-muted);
}

/* Summit sessions */
.dsc-summit-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dsc-border);
}

.dsc-summit-row:last-of-type {
    border-bottom: none;
}

.dsc-summit-thumb {
    width: 68px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #e8eaed;
}

.dsc-summit-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dsc-summit-tag {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cat-color);
    margin-bottom: 2px;
    line-height: normal;
}

.dsc-summit-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--dsc-text-dark);
    line-height: 1.4;
    margin-bottom: 2px;
}

.dsc-summit-title a {
    color: inherit;
    text-decoration: none;
}

.dsc-summit-title a:hover {
    color: var(--dsc-primary);
}

.dsc-summit-meta {
    font-size: 11px;
    color: var(--dsc-text-muted);
}

/* Community feed */
.dsc-feed-join-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 8px;
}

.dsc-feed-join-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.dsc-feed-join-headline {
    font-size: 14px;
    font-weight: 700;
    color: var(--dsc-text-dark);
}

.dsc-feed-join-desc {
    font-size: 12px;
    color: var(--dsc-text-muted);
    max-width: 340px;
    line-height: 1.6;
}

.dsc-feed-join-btn {
    margin-top: 8px;
    display: inline-block;
    padding: 9px 22px;
    background: var(--dsc-primary-btn);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--dsc-btn-radius);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.dsc-feed-join-btn:hover {
    background: var(--dsc-primary);
    transform: translateY(-1px);
}

.feed-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dsc-border);
}

.feed-user {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.feed-action {
    font-size: 12px;
    color: var(--text-muted);
}

.feed-topic {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.feed-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8eaed;
}

.feed-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.community-view-more {
    display: block;
    margin-top: 12px;
    padding-top: 10px;
    /* border-top: 1px solid var(--dsc-border); */
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

/* ── FILTER BAR ────────────────────────────────────────────────────── */
.dsc-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dsc-filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--dsc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 4px;
}

.dsc-filter-btn {
    padding: 5px 12px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--dsc-text-muted);
    background: var(--dsc-content-bg);
    border: 1px solid var(--dsc-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
}

.dsc-filter-btn:hover {
    color: var(--dsc-primary);
    border-color: var(--dsc-primary);
    background: var(--dsc-primary-lt);
}

.dsc-filter-btn.active {
    color: #fff;
    background: var(--dsc-primary);
    border-color: var(--dsc-primary);
}

/* ── POST ROW CARDS ────────────────────────────────────────────────── */
.dsc-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.dsc-post-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--dsc-content-bg);
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-block-radius);
    padding: 14px 16px;
    text-decoration: none;
    transition: box-shadow 0.18s, transform 0.18s;
}

.dsc-post-row:hover {
    box-shadow: var(--dsc-shadow-sm);
    transform: translateY(-1px);
}

.dsc-post-row-thumb {
    width: 110px;
    height: 72px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8eaed;
}

.dsc-post-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.dsc-post-row:hover .dsc-post-row-thumb img {
    transform: scale(1.04);
}

.dsc-post-row-body {
    flex: 1;
    min-width: 0;
}

.dsc-post-row-tags {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.dsc-post-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dsc-primary);
    background: var(--dsc-primary-lt);
    padding: 2px 6px;
    border-radius: 3px;
}

.dsc-post-tag--video {
    color: #d14;
    background: #fde8e8;
}

.dsc-post-row-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dsc-heading);
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.18s;
}

.dsc-post-row:hover .dsc-post-row-title {
    color: var(--dsc-primary-dk);
}

.dsc-post-row-excerpt {
    font-size: 0.775rem;
    color: var(--dsc-text-muted);
    line-height: 1.45;
    font-weight: 500;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.dsc-post-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsc-post-row-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.dsc-post-row-author {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--dsc-text);
}

.dsc-post-row-date {
    font-size: 0.7rem;
    color: var(--dsc-text-muted);
    font-weight: 500;
}

.dsc-post-row-dot {
    color: var(--dsc-border);
    font-size: 10px;
}

/* ── PAGINATION ────────────────────────────────────────────────────── */
.dsc-pagination {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.dsc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--dsc-btn-radius);
    color: var(--dsc-text);
    border: 1px solid var(--dsc-border);
    background: var(--dsc-content-bg);
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}

.dsc-pagination .page-numbers.current,
.dsc-pagination .page-numbers:hover {
    background: var(--dsc-primary);
    color: #fff;
    border-color: var(--dsc-primary);
}

.dsc-pagination .page-numbers.dots {
    border: none;
    background: none;
    color: var(--dsc-text-muted);
}

/* ── SIDEBAR ───────────────────────────────────────────────────────── */
.dsc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dsc-sw {
    background: var(--dsc-content-bg);
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-block-radius);
    overflow: hidden;
}

/* Search widget */
.dsc-search-form {
    display: flex;
    border: 1px solid var(--dsc-border);
    border-radius: var(--dsc-btn-radius);
    overflow: hidden;
    margin: 14px;
}

.dsc-search-input {
    flex: 1;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
    border: none;
    outline: none;
    color: var(--dsc-text);
    font-weight: 500;
    background: transparent;
}

.dsc-search-btn {
    padding: 8px 14px;
    background: var(--dsc-primary-btn);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.dsc-search-btn:hover {
    background: var(--dsc-primary);
}

/* Summit widget */
.dsc-sw-summit {
    padding: 16px;
    text-align: center;
}

.dsc-sw-summit img {
    margin: 0 auto 10px;
    max-height: 50px;
    width: auto;
    display: block;
}

.dsc-sw-summit p {
    font-size: 13px;
    color: var(--dsc-text);
    line-height: 1.5;
    margin-bottom: 10px;
}

.dsc-sw-btn {
    display: block;
    padding: 9px 18px;
    background: var(--dsc-primary-btn);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--dsc-btn-radius);
    text-align: center;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s;
}

.dsc-sw-btn:hover {
    background: var(--dsc-primary);
}

/* Learners sidebar widget */
.dsc-sw-learners {
    background: #e8eef7;
    border-color: #c2d0e8;
}

.dsc-sw-learners-body {
    padding: 16px 16px 12px;
}

.dsc-sw-learners-logo {
    height: 34px;
    width: auto;
    margin-bottom: 10px;
    display: block;
}

.dsc-sw-learners-desc {
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 12px;
}

.dsc-sw-learners-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dsc-sw-learners-list li {
    font-size: 12px;
    color: #2d3a52;
    font-weight: 600;
    padding: 5px 0;
    border-bottom: 1px solid #c2d0e8;
}

.dsc-sw-learners-list li:last-child {
    border-bottom: none;
}

.dsc-sw-learners-cta {
    display: block;
    background: #f7941e;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 12px;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s;
}

.dsc-sw-learners-cta:hover {
    background: #e0830f;
}

/* Special events widget */
.dsc-sw-events-head {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--dsc-border);
    color: var(--dsc-heading);
}

.dsc-sw-event {
    padding: 10px 16px;
    border-bottom: 1px solid var(--dsc-border);
}

.dsc-sw-event:last-child {
    border-bottom: none;
}

.dsc-sw-event-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dsc-text);
    margin-bottom: 3px;
}

.dsc-sw-event-detail {
    font-size: 11px;
    color: var(--dsc-text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.dsc-btn-register {
    display: inline-block;
    padding: 4px 10px;
    background: var(--dsc-primary-btn);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: var(--dsc-btn-radius);
    text-decoration: none;
    transition: background 0.2s;
}

.dsc-btn-register:hover {
    background: var(--dsc-primary);
}

/* Newsletter widget */
.dsc-sw-newsletter {
    padding: 16px;
    text-align: center;
}

.dsc-sw-newsletter h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dsc-text);
    margin-bottom: 10px;
}

/* Feature sidebar widget */
.dsc-sw-feature {
    padding: 14px;
}

.dsc-sw-feature-headline {
    font-size: 14px;
    font-weight: 700;
    color: var(--dsc-heading);
    margin-bottom: 10px;
}

.dsc-sw-feature-headline span {
    color: var(--dsc-primary);
}

.dsc-sw-feature img {
    border-radius: 6px;
    margin-bottom: 10px;
    width: 100%;
    display: block;
}

.dsc-sw-feature-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dsc-heading);
    margin-bottom: 6px;
}

.dsc-sw-feature-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s;
}

.dsc-sw-feature-title a:hover {
    color: var(--dsc-primary);
}

.dsc-sw-feature-excerpt {
    font-size: 12px;
    color: var(--dsc-text-muted);
    line-height: 1.5;
    font-weight: 500;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .dsc-content-layout {
        grid-template-columns: 1fr 260px;
    }
}

@media (max-width: 900px) {
    .dsc-content-layout {
        grid-template-columns: 1fr;
    }

    .dsc-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .dsc-cat-hero-title {
        font-size: 22px;
    }

    .dsc-callout-row {
        grid-template-columns: 1fr;
    }

    .dsc-callout-panel--learners {
        border-left: none;
        border-top: 4px solid #f7941e;
    }

    .dsc-experts-arrow--prev {
        left: -10px;
    }

    .dsc-experts-arrow--next {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .dsc-cat-hero-logo-wrap {
        width: 64px;
        height: 64px;
    }

    .dsc-cat-hero-logo {
        width: 56px;
        height: 56px;
    }

    .dsc-post-row-thumb {
        width: 80px;
        height: 56px;
    }
}