.ktcat-page {
    color: #0f172a;
}

.ktcat-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background-image: url(/resources/img/hero_banner.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.ktcat-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #0f766e;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ktcat-title {
    margin: 0 0 14px;
    color: var(--text-color);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.ktcat-description {
    display: flex;
    gap: 14px;
    max-width: 980px;
    margin-top: 12px;
    padding: 16px 18px;
    border-left: 4px solid #198754;
    border-radius: 0 18px 18px 0;
    background: rgba(255, 255, 255, .76);
    color: #334155;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.68;
    text-align: justify;
}

.ktcat-description i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: #198754;
    font-size: 20px;
}

.ktcat-description p:last-child {
    margin-bottom: 0;
}

.ktcat-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ktcat-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.ktcat-stat-value {
    color: #0f766e;
    font-size: 15px;
    font-weight: 850;
}

.ktcat-stat-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.ktcat-main-card {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
}

.ktcat-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.ktcat-section-head h2 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 850;
    text-transform: uppercase;
}

.ktcat-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.ktcat-post-list {
    display: grid;
    gap: 14px;
}

.ktcat-post-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #ffffff, #f8fafc);
    transition: all .18s ease;
}

.ktcat-post-card:hover {
    border-color: rgba(25, 135, 84, .35);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

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

.ktcat-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.ktcat-post-title {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.45;
}

.ktcat-post-title a {
    color: #0f172a;
    text-decoration: none;
}

.ktcat-post-title a:hover {
    color: #198754;
    text-decoration: none;
}

.ktcat-post-excerpt {
    margin-top: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.ktcat-post-action {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.ktcat-post-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
    transition: all .18s ease;
}

.ktcat-post-action a:hover {
    background: #198754;
    border-color: #198754;
    color: #fff;
    text-decoration: none;
}

.ktcat-empty {
    padding: 36px 22px;
    border: 1px dashed #93c5fd;
    border-radius: 18px;
    background: #eff6ff;
    text-align: center;
}

.ktcat-empty i {
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 30px;
}

.ktcat-empty h5 {
    margin-bottom: 6px;
    color: #0f172a;
    font-weight: 850;
}

.ktcat-empty p {
    margin-bottom: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.ktcat-pagination .pagination {
    margin-bottom: 0;
}

.ktcat-sidebar {
    position: sticky;
    top: 60px;
    z-index: 10;
}

.ktcat-side-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.ktcat-side-header {
    padding: 15px 17px;
    background: linear-gradient(135deg, #198754, #157347, #0f172a);
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    text-transform: uppercase;
}

.ktcat-subject-list {
    display: grid;
    gap: 6px;
    padding: 12px;
}

.ktcat-subject-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    color: #334155;
    text-decoration: none;
    transition: all .18s ease;
}

.ktcat-subject-item:hover {
    background: #f0fdf4;
    color: #198754;
    text-decoration: none;
}

.ktcat-subject-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    /* background: red; */
    color: var(--text-color);
    flex: 0 0 auto;
}

.ktcat-subject-name {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.35;
    color: var(--text-color);
}

.ktcat-subject-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
}

.ktcat-subject-empty {
    padding: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.badge.bg-free {
    background: #dcfce7;
    color: #15803d;
}


@media (max-width: 991.98px) {
    .ktcat-sidebar {
        position: static;
        top: auto;
    }

    .ktcat-post-card {
        flex-direction: column;
    }

    .ktcat-post-action {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .ktcat-hero {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .ktcat-title {
        font-size: 1.65rem;
    }

    .ktcat-description {
        padding: 14px 15px;
        font-size: 15px;
    }

    .ktcat-main-card,
    .ktcat-side-card {
        border-radius: 18px;
    }

    .ktcat-main-card {
        padding: 15px;
    }

    .ktcat-post-card {
        padding: 15px;
        border-radius: 16px;
    }

    .ktcat-post-title {
        font-size: 16px;
    }
}

/* SUBJECTS */

.ktsub-page {
    color: #0f172a;
}

.ktsub-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background-image: url(/resources/img/hero_banner.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.ktsub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #0f766e;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ktsub-title {
    margin: 0 0 14px;
    color: var(--text-color);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.ktsub-description {
    display: flex;
    gap: 14px;
    max-width: 980px;
    margin-top: 12px;
    padding: 16px 18px;
    border-left: 4px solid #198754;
    border-radius: 0 18px 18px 0;
    background: rgba(255, 255, 255, .76);
    color: #334155;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.68;
    text-align: justify;
}

.ktsub-description i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: #198754;
    font-size: 20px;
}

.ktsub-description p:last-child {
    margin-bottom: 0;
}

.ktsub-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ktsub-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.ktsub-stat-value {
    color: #0f766e;
    font-size: 15px;
    font-weight: 850;
}

.ktsub-stat-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.ktsub-main-card {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
}

.ktsub-section-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.ktsub-section-head h2 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 850;
    text-transform: uppercase;
}

.ktsub-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.ktsub-post-list {
    display: grid;
    gap: 14px;
}

.ktsub-post-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    transition: all .18s ease;
}

.ktsub-post-card:hover {
    border-color: rgba(25, 135, 84, .35);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

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

.ktsub-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.ktsub-post-title {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.45;
}

.ktsub-post-title a {
    color: #0f172a;
    text-decoration: none;
}

.ktsub-post-title a:hover {
    color: #198754;
    text-decoration: none;
}

.ktsub-post-excerpt {
    margin-top: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.ktsub-post-action {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.ktsub-post-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
    transition: all .18s ease;
}

.ktsub-post-action a:hover {
    background: #198754;
    border-color: #198754;
    color: #fff;
    text-decoration: none;
}

.ktsub-empty {
    padding: 36px 22px;
    border: 1px dashed #93c5fd;
    border-radius: 18px;
    background: #eff6ff;
    text-align: center;
}

.ktsub-empty i {
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 30px;
}

.ktsub-empty h5 {
    margin-bottom: 6px;
    color: #0f172a;
    font-weight: 850;
}

.ktsub-empty p {
    margin-bottom: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.ktsub-pagination .pagination {
    margin-bottom: 0;
}

.ktsub-sidebar {
    position: sticky;
    top: 60px;
    z-index: 10;
}

.ktsub-side-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.ktsub-side-header {
    padding: 15px 17px;
    background: linear-gradient(135deg, #198754, #157347, #0f172a);
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    text-transform: uppercase;
}

.ktsub-featured-list {
    display: grid;
}

.ktsub-featured-item {
    display: grid;
    gap: 6px;
    padding: 15px 17px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    text-decoration: none;
    transition: all .18s ease;
}

.ktsub-featured-item:last-child {
    border-bottom: 0;
}

.ktsub-featured-item:hover {
    background: #f8fafc;
    color: #198754;
    text-decoration: none;
}

.ktsub-featured-name {
    font-size: 15px;
    font-weight: 850;
    line-height: 1.45;
    color: var(--text-color);
}

.ktsub-featured-meta {
    color: #64748b;
    font-size: 12.5px;
    font-weight: 700;
}

.ktsub-featured-empty {
    padding: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .ktsub-sidebar {
        position: static;
        top: auto;
    }

    .ktsub-post-card {
        flex-direction: column;
    }

    .ktsub-post-action {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .ktsub-hero {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .ktsub-title {
        font-size: 1.65rem;
    }

    .ktsub-description {
        padding: 14px 15px;
        font-size: 15px;
    }

    .ktsub-main-card,
    .ktsub-side-card {
        border-radius: 18px;
    }

    .ktsub-main-card {
        padding: 15px;
    }

    .ktsub-post-card {
        padding: 15px;
        border-radius: 16px;
    }

    .ktsub-post-title {
        font-size: 16px;
    }
}
