:root {
    --khz-font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bs-font-sans-serif: var(--khz-font-family);
    --bs-body-font-family: var(--khz-font-family);
    --khz-public-ink: #10231c;
    --khz-public-muted: #68766f;
    --khz-public-border: #dce8e1;
    --khz-public-surface: #ffffff;
    --khz-public-soft: #f7faf5;
    --khz-public-green: #087A35;
    --khz-public-green-2: #36A94B;
    --khz-public-teal: #167ca0;
    --khz-public-gold: #F4C400;
    --khz-public-gold-soft: #FFF7D8;
    --khz-public-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --khz-public-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --khz-public-radius: 16px;
}

* {
    letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
    font-family: var(--khz-font-family) !important;
}

.khz-series-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--khz-public-border);
    border-radius: var(--khz-public-radius);
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(16, 35, 28, 0.06);
}

.khz-series-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.khz-series-table th,
.khz-series-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(214, 229, 220, 0.82);
    vertical-align: middle;
}

.khz-series-table th {
    color: #173228;
    background: linear-gradient(180deg, #f5fbf7, #eff8f3);
    font-weight: 900;
    white-space: nowrap;
}

.khz-series-table tbody tr {
    background: #ffffff;
    transition: background-color 0.16s ease;
}

.khz-series-table tbody tr:hover {
    background: #f8fcfa;
}

.khz-series-table tbody tr:target {
    background: #eef9f3;
    box-shadow: inset 4px 0 0 rgba(15, 139, 99, 0.45);
}

.khz-series-table tr:last-child td {
    border-bottom: 0;
}

.khz-audio-title-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.khz-audio-title-link:hover,
.khz-audio-title-link:focus-visible {
    color: #0b6f53;
    text-decoration: none;
    outline: none;
}

.khz-series-title-cell strong,
.khz-series-title-cell span {
    display: block;
}

.khz-series-title-cell strong {
    color: var(--khz-public-ink);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.55;
}

.khz-series-title-cell span {
    color: var(--khz-public-muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

.khz-series-sheikh-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.khz-series-sheikh-cell a,
.khz-series-sheikh-cell strong {
    color: var(--khz-public-ink);
    font-weight: 900;
    line-height: 1.5;
    text-decoration: none;
}

.khz-series-sheikh-cell a:hover {
    color: #0b6f53;
    text-decoration: none;
}

.khz-series-sheikh-avatar {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(15, 139, 99, 0.18);
    border-radius: 50%;
    color: #0c7b58;
    background: linear-gradient(135deg, #eef8f3, #fff8e7);
}

.khz-series-sheikh-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.khz-series-files-btn {
    min-width: 138px;
    justify-content: center;
    border-color: rgba(15, 139, 99, 0.28);
    border-radius: 999px;
    color: #0b6f53;
    background: linear-gradient(180deg, #ffffff, #f1faf5);
    font-weight: 900;
}

.khz-audio-table th:nth-child(1),
.khz-audio-table td:nth-child(1) {
    width: 42%;
    text-align: right;
}

.khz-audio-table th:nth-child(2),
.khz-audio-table td:nth-child(2) {
    width: 16%;
    text-align: center;
}

.khz-audio-table th:nth-child(3),
.khz-audio-table td:nth-child(3) {
    width: 24%;
    text-align: center;
}

.khz-audio-table th:nth-child(4),
.khz-audio-table td:nth-child(4) {
    width: 18%;
    text-align: center;
}

.khz-audio-table .khz-series-sheikh-cell {
    justify-content: center;
    min-width: 0;
}

.khz-audio-table .khz-series-title-cell {
    padding-inline-start: 22px;
}

.khz-audio-table .khz-public-badge,
.khz-audio-table .khz-series-files-btn {
    margin-inline: auto;
}

.khz-khutbah-table th:nth-child(1),
.khz-khutbah-table td:nth-child(1) {
    width: 30%;
}

.khz-khutbah-table th:nth-child(2),
.khz-khutbah-table td:nth-child(2) {
    width: 28%;
}

.khz-khutbah-table th:nth-child(3),
.khz-khutbah-table td:nth-child(3) {
    width: 24%;
}

.khz-khutbah-table th:nth-child(4),
.khz-khutbah-table td:nth-child(4) {
    width: 18%;
}

.khz-khutbah-meta-cell {
    text-align: center;
}

.khz-khutbah-meta-cell .khz-public-badge {
    margin-inline: auto;
}

.khz-khutbah-mosque-badge {
    gap: 7px;
}

.khz-khutbah-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
    color: var(--khz-public-muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.6;
}

.khz-khutbah-date-separator {
    color: rgba(15, 139, 99, 0.56);
}

.khz-reader-table th:nth-child(1),
.khz-reader-table td:nth-child(1) {
    width: 48%;
}

.khz-reader-table th:nth-child(2),
.khz-reader-table td:nth-child(2) {
    width: 20%;
    text-align: center;
}

.khz-reader-table th:nth-child(3),
.khz-reader-table td:nth-child(3) {
    width: 32%;
    text-align: center;
}

.khz-series-table .khz-public-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    max-width: 100%;
    padding: 6px 13px;
    border: 1px solid rgba(15, 139, 99, 0.2);
    border-radius: 999px;
    color: #0b6f53;
    background: linear-gradient(180deg, #ffffff, #edf8f2);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: none;
}

.khz-series-table .khz-public-badge:hover {
    color: #ffffff;
    border-color: #0f8b63;
    background: #0f8b63;
}

.khz-series-files-btn:hover {
    color: #ffffff;
    border-color: #0f8b63;
    background: #0f8b63;
}

.khz-series-files-btn .badge,
.khz-series-track-counter,
.khz-series-control-btn,
.khz-series-download-btn {
    border-radius: 999px;
}

.khz-series-player-modal .modal-dialog {
    max-width: min(920px, calc(100vw - 28px));
}

.khz-series-player-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #fbfdfb;
    box-shadow: 0 34px 100px rgba(7, 32, 25, 0.34);
}

.khz-series-player-modal .modal-header {
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(8, 65, 51, 0.96), rgba(10, 132, 118, 0.92)),
        #0b614d;
}

.khz-series-player-modal .modal-title {
    color: #ffffff;
    line-height: 1.5;
}

.khz-series-player-modal .modal-header .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

.khz-series-player-modal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.85;
}

.khz-series-player-modal .modal-body {
    padding: 18px;
    background: linear-gradient(180deg, rgba(237, 248, 242, 0.82), rgba(255, 255, 255, 0.96));
}

.khz-series-player-modal .modal-footer {
    padding: 14px 18px;
    border-color: rgba(15, 139, 99, 0.12);
    background: #ffffff;
}

.khz-series-player-panel,
.khz-series-playlist,
.khz-series-player-card {
    display: grid;
    gap: 14px;
}

.khz-series-player-card {
    padding: 16px;
    border: 1px solid rgba(15, 139, 99, 0.14);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(16, 35, 28, 0.08);
}

.khz-series-now-playing {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(15, 139, 99, 0.16);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(237, 248, 242, 0.96), rgba(255, 249, 230, 0.78));
}

.khz-series-now-icon {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #0c8f64, #0e7987);
    box-shadow: 0 12px 26px rgba(12, 143, 100, 0.28);
}

.khz-series-now-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.khz-series-now-playing strong,
.khz-series-now-playing span {
    display: block;
}

.khz-series-now-playing strong {
    overflow: hidden;
    color: var(--khz-public-ink);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khz-series-now-playing span {
    color: var(--khz-public-muted);
    font-size: 0.82rem;
}

.khz-series-track-counter {
    min-width: 58px;
    padding: 7px 10px;
    color: #0b6f53;
    background: #ffffff;
    border: 1px solid rgba(15, 139, 99, 0.18);
    font-weight: 900;
    text-align: center;
}

.khz-series-player-audio {
    width: 100%;
    min-height: 44px;
}

.khz-pro-audio-player {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(15, 139, 99, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(244, 250, 246, 0.98), rgba(255, 250, 232, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.khz-pro-audio-player .khz-series-player-audio {
    display: none;
}

.khz-pro-player-timeline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: #31463d;
    direction: ltr;
    font-weight: 900;
}

.khz-pro-player-timeline span {
    min-width: 54px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.khz-pro-progress {
    --khz-progress: 0%;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    outline: 0;
    appearance: none;
    background:
        linear-gradient(90deg, #0f8b63 0 var(--khz-progress), rgba(15, 139, 99, 0.16) var(--khz-progress) 100%);
    cursor: pointer;
}

.khz-pro-progress::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    appearance: none;
    background: #0f8b63;
    box-shadow: 0 8px 20px rgba(12, 93, 69, 0.28);
}

.khz-pro-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: #0f8b63;
    box-shadow: 0 8px 20px rgba(12, 93, 69, 0.28);
}

.khz-pro-player-actions {
    display: grid;
    grid-template-columns: minmax(104px, 1fr) minmax(150px, 1.2fr) minmax(104px, 1fr);
    align-items: center;
    gap: 10px;
}

.khz-audio-load-error {
    padding: 10px 12px;
    border: 1px solid rgba(185, 55, 55, 0.16);
    border-radius: 8px;
    color: #9f2f2f;
    background: rgba(185, 55, 55, 0.08);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
}

.khz-pro-control {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(15, 139, 99, 0.18);
    border-radius: 999px;
    color: #0b6f53;
    background: #ffffff;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.khz-pro-control:hover,
.khz-pro-control:focus {
    color: #ffffff;
    background: #0f8b63;
    box-shadow: 0 12px 24px rgba(15, 139, 99, 0.22);
    transform: translateY(-1px);
}

.khz-pro-control-main {
    min-height: 52px;
    color: #ffffff;
    background: linear-gradient(135deg, #078b5f, #0d7c93);
    box-shadow: 0 14px 30px rgba(13, 124, 147, 0.22);
}

.khz-pro-control-main:hover,
.khz-pro-control-main:focus {
    background: linear-gradient(135deg, #05764f, #0a6c80);
}

.khz-series-player-controls,
.khz-series-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.khz-series-player-controls {
    justify-content: space-between;
}

.khz-series-control-group {
    gap: 8px;
}

.khz-series-control-btn,
.khz-series-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    font-weight: 900;
}

.khz-series-control-btn {
    color: #0b6f53;
    border: 1px solid rgba(15, 139, 99, 0.24);
    background: #ffffff;
}

.khz-series-control-btn:hover {
    color: #ffffff;
    background: #0f8b63;
}

.khz-series-download-btn {
    color: #5b3b00;
    border: 1px solid rgba(202, 144, 22, 0.28);
    background: #ffc107;
    text-decoration: none;
}

.khz-series-download-btn:hover {
    color: #3a2600;
    background: #ffcf33;
}

.khz-series-playlist {
    gap: 8px;
    max-height: 330px;
    overflow: auto;
    padding-inline-end: 2px;
}

.khz-series-track-btn {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--khz-public-border);
    border-radius: 12px;
    color: var(--khz-public-ink);
    background: #ffffff;
    text-align: right;
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.khz-series-track-btn:hover,
.khz-series-track-btn.is-active {
    border-color: rgba(15, 139, 99, 0.38);
    background: #eef8f3;
}

.khz-series-track-btn:hover {
    transform: translateY(-1px);
}

.khz-series-track-number {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: #0d7a58;
    background: rgba(15, 139, 99, 0.09);
    font-weight: 900;
}

.khz-series-track-title {
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khz-series-track-state {
    color: var(--khz-public-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.khz-series-track-btn.is-active .khz-series-track-state {
    color: #0b6f53;
}

@media (max-width: 576px) {
    .khz-series-now-playing {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .khz-series-track-counter {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
label,
small,
strong,
table,
thead,
tbody,
tfoot,
tr,
th,
td,
.btn,
.form-control,
.form-select,
.dropdown-menu,
.modal,
.alert,
.badge,
.select2-container,
.select2-dropdown,
.select2-results__option,
.select2-search__field,
.select2-selection__rendered {
    font-family: var(--khz-font-family) !important;
}

.khz-public-body {
    margin: 0;
    min-height: 100vh;
    padding-bottom: 76px;
    color: var(--khz-public-ink);
    background:
        radial-gradient(circle at top left, rgba(54, 169, 75, 0.13), transparent 32%),
        radial-gradient(circle at bottom right, rgba(244, 196, 0, 0.12), transparent 28%),
        linear-gradient(180deg, #F8FCF9 0%, #F1F7F3 100%);
}

.khz-public-container {
    width: min(100% - 32px, 1560px);
    margin-inline: auto;
}

.khz-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--khz-public-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.khz-site-nav {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.khz-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 8px 12px;
    color: inherit;
    text-decoration: none;
    min-width: max-content;
    border-radius: 20px;
    border: 1px solid rgba(220, 232, 225, 0.95);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 26px rgba(16, 35, 28, 0.055);
}

.khz-site-logo {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--khz-public-border);
    box-shadow: var(--khz-public-shadow);
}

.khz-site-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.khz-site-brand strong,
.khz-site-brand small {
    display: block;
}

.khz-site-brand strong {
    color: var(--khz-public-ink);
    font-size: 1.08rem;
    line-height: 1.25;
    font-weight: 900;
}

.khz-site-brand small {
    color: var(--khz-public-muted);
    font-size: 0.78rem;
    margin-top: 4px;
    line-height: 1.35;
}

.khz-site-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.khz-site-menu::-webkit-scrollbar {
    display: none;
}

.khz-site-menu a,
.khz-public-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--khz-public-radius);
    text-decoration: none;
    font-weight: 700;
}

.khz-site-menu a {
    color: #40524a;
    padding: 7px 8px;
    border: 1px solid transparent;
    font-size: 0.84rem;
    flex: 0 0 auto;
}

.khz-site-menu a i {
    display: none;
}

.khz-site-menu a:hover,
.khz-site-menu a.active {
    color: var(--khz-public-green);
    background: #edf7f2;
    border-color: rgba(28, 139, 100, 0.16);
}

.khz-public-hero {
    position: relative;
    overflow: hidden;
    margin: 22px auto 28px;
    padding: clamp(26px, 5vw, 54px);
    color: #ffffff;
    border-radius: var(--khz-public-radius);
    background:
        linear-gradient(135deg, rgba(13, 93, 69, 0.97), rgba(16, 35, 28, 0.96) 58%, rgba(22, 124, 160, 0.92)),
        #10231c;
    box-shadow: 0 28px 80px rgba(17, 22, 19, 0.16);
}

.khz-public-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.055) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.055) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.24;
}

.khz-public-hero > * {
    position: relative;
    z-index: 1;
}

.khz-public-kicker,
.khz-public-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: var(--khz-public-radius);
}

.khz-public-kicker {
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffe4a3;
    font-weight: 700;
    font-size: 0.86rem;
}

.khz-public-hero h1 {
    max-width: 760px;
    margin: 16px 0 10px;
    font-size: clamp(2rem, 5vw, 3.45rem);
    line-height: 1.35;
    font-weight: 800;
}

.khz-public-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.95;
    font-size: 1.04rem;
}

.khz-public-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.khz-public-btn {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.khz-public-btn.primary {
    color: #10231c;
    background: #ffe4a3;
}

.khz-public-btn.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.khz-public-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.khz-public-stat {
    min-height: 92px;
    padding: 15px;
    border-radius: var(--khz-public-radius);
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.khz-public-stat strong,
.khz-public-stat span {
    display: block;
}

.khz-public-stat strong {
    font-size: 1.55rem;
}

.khz-public-stat span {
    color: rgba(255, 255, 255, 0.76);
    margin-top: 4px;
}

.khz-public-section {
    margin-bottom: 30px;
}

.khz-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.khz-section-head h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.35rem;
    font-weight: 800;
}

.khz-section-head h2 i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--khz-public-green);
    background: #edf7f2;
    border: 1px solid rgba(28, 139, 100, 0.14);
    border-radius: var(--khz-public-radius);
}

.khz-section-head p {
    margin: 4px 43px 0 0;
    color: var(--khz-public-muted);
}

.khz-section-head a {
    color: var(--khz-public-green);
    text-decoration: none;
    font-weight: 800;
}

.khz-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
}

.khz-public-grid.four {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.khz-public-card {
    min-height: 138px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    border-radius: var(--khz-public-radius);
    border: 1px solid var(--khz-public-border);
    background: var(--khz-public-surface);
    box-shadow: var(--khz-public-shadow);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.khz-public-card:hover {
    transform: translateY(-2px);
    color: inherit;
    border-color: rgba(191, 140, 43, 0.42);
    box-shadow: 0 18px 42px rgba(16, 35, 28, 0.12);
}

.khz-public-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.khz-public-icon,
.khz-reader-photo {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--khz-public-radius);
    color: var(--khz-public-green);
    background: #edf7f2;
    border: 1px solid rgba(28, 139, 100, 0.14);
    overflow: hidden;
}

.khz-reader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.khz-public-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.55;
}

.khz-public-meta,
.khz-public-card p {
    color: var(--khz-public-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.khz-public-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.khz-public-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 9px;
    color: #7b5819;
    background: var(--khz-public-gold-soft);
    border: 1px solid rgba(191, 140, 43, 0.2);
    border-radius: var(--khz-public-radius);
    font-size: 0.82rem;
    font-weight: 700;
}

.khz-public-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--khz-public-border);
    border-radius: var(--khz-public-radius);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--khz-public-shadow);
}

.khz-public-search input,
.khz-public-search > button {
    min-height: 46px;
    border-radius: var(--khz-public-radius);
}

.khz-public-search input {
    border: 1px solid var(--khz-public-border);
    padding: 9px 12px;
    background: #ffffff;
}

.khz-public-search input:focus {
    outline: 0;
    border-color: var(--khz-public-green);
    box-shadow: 0 0 0 0.18rem rgba(28, 139, 100, 0.14);
}

.khz-public-search > button {
    border: 0;
    padding: 9px 18px;
    color: #ffffff;
    background: var(--khz-public-green);
    font-weight: 800;
}

.khz-public-search-field {
    position: relative;
    min-width: 0;
}

.khz-public-search-field input {
    width: 100%;
}

.khz-speaker-suggestions {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 6px);
    z-index: 20;
    display: grid;
    gap: 4px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--khz-public-border);
    border-radius: var(--khz-public-radius);
    box-shadow: var(--khz-public-shadow);
}

.khz-speaker-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--khz-public-text);
    background: transparent;
    border: 0;
    border-radius: calc(var(--khz-public-radius) - 4px);
    text-align: start;
    font-weight: 700;
}

.khz-speaker-suggestion:hover,
.khz-speaker-suggestion:focus {
    color: var(--khz-public-green);
    background: rgba(236, 249, 242, 0.9);
    outline: 0;
}

.khz-public-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: -6px 0 18px;
    padding: 10px 12px;
    color: var(--khz-public-muted);
    background: rgba(236, 249, 242, 0.82);
    border: 1px solid rgba(28, 139, 100, 0.16);
    border-radius: var(--khz-public-radius);
    font-size: 0.9rem;
}

.khz-public-filter-summary a,
.khz-public-meta a {
    color: var(--khz-public-green);
    text-decoration: none;
    font-weight: 800;
}

.khz-public-filter-summary a:hover,
.khz-public-meta a:hover {
    text-decoration: underline;
}

.khz-empty {
    padding: 28px;
    text-align: center;
    color: var(--khz-public-muted);
    border: 1px dashed var(--khz-public-border);
    border-radius: var(--khz-public-radius);
    background: rgba(255, 255, 255, 0.7);
}

.khz-public-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(219, 232, 223, 0.85);
}

.khz-public-pagination-summary {
    color: #52645c;
    font-size: 0.9rem;
    font-weight: 800;
}

.khz-public-page-links {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.khz-public-page-link,
.khz-public-page-ellipsis {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 900;
}

.khz-public-page-link {
    color: #31534a;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(28, 139, 100, 0.16);
    box-shadow: 0 8px 18px rgba(16, 35, 28, 0.05);
}

.khz-public-page-link:hover {
    color: #087a35;
    border-color: rgba(8, 122, 53, 0.35);
}

.khz-public-page-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #0b7f57, #0c8f7d);
    border-color: transparent;
}

.khz-public-page-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.khz-public-page-ellipsis {
    color: #7b8b84;
}

.khz-site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    min-height: 62px;
    padding: 14px 0;
    color: var(--khz-public-muted);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--khz-public-border);
    box-shadow: 0 -12px 34px rgba(16, 35, 28, 0.06);
}

.khz-site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.khz-site-footer strong {
    color: var(--khz-public-green);
}

.khz-offline-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 86px;
    z-index: 1200;
    width: min(100% - 32px, 560px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #10231c;
    border: 1px solid rgba(244, 196, 0, 0.38);
    border-radius: 18px;
    background: rgba(255, 248, 221, 0.98);
    box-shadow: 0 18px 42px rgba(16, 35, 28, 0.16);
    backdrop-filter: blur(14px);
}

.khz-offline-banner[hidden] {
    display: none !important;
}

.khz-offline-banner-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #8a6400;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(129, 95, 0, 0.12);
}

.khz-offline-banner-text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.khz-offline-banner-text strong {
    color: #10231c;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.5;
}

.khz-offline-banner-text small {
    color: #6d776f;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.6;
}

.khz-offline-banner-action {
    min-height: 38px;
    padding: 8px 13px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #087a35, #167ca0);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.4;
}

@media (max-width: 520px) {
    .khz-offline-banner {
        bottom: 78px;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .khz-offline-banner-action {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.khz-ad-zone {
    position: relative;
    display: block;
    margin: 22px auto 28px;
}

.khz-ad-track {
    position: relative;
    width: 100%;
    aspect-ratio: 6 / 1;
    min-height: 150px;
    max-height: 250px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef5f1;
    box-shadow: var(--khz-public-shadow);
}

.khz-ad-zone--hero {
    margin-top: -6px;
}

.khz-ad-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: block;
    padding: 0;
    color: inherit;
    text-decoration: none;
    border: 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-3%);
    transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s;
}

.khz-ad-card.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.khz-ad-card:hover {
    color: inherit;
    transform: translateX(0);
}

.khz-ad-label {
    position: absolute;
    inset-block-start: 16px;
    inset-inline-start: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    color: #4a3000;
    background: var(--khz-public-gold-soft);
    border: 1px solid rgba(244, 196, 0, 0.32);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.khz-ad-content {
    min-width: 0;
    padding-top: 22px;
}

.khz-ad-content strong,
.khz-ad-content small {
    display: block;
}

.khz-ad-content strong {
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    line-height: 1.45;
    font-weight: 900;
}

.khz-ad-content small {
    max-width: 720px;
    margin-top: 6px;
    color: var(--khz-public-muted);
    line-height: 1.75;
}

.khz-ad-media {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #eaf7ee;
    border: 0;
}

.khz-ad-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.khz-ad-dots {
    position: absolute;
    z-index: 3;
    inset-inline-start: 50%;
    bottom: 10px;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.khz-ad-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(16, 35, 28, 0.45);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.24);
}

.khz-ad-dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .khz-site-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .khz-site-menu {
        justify-content: flex-start;
        width: 100%;
    }

    .khz-public-stats,
    .khz-public-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .khz-ad-card {
        grid-template-columns: 1fr;
    }

    .khz-ad-media {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .khz-public-container {
        width: min(100% - 20px, 1220px);
    }

    .khz-site-menu {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .khz-site-menu a {
        justify-content: center;
    }

    .khz-public-hero {
        padding: 22px;
    }

    .khz-public-actions,
    .khz-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .khz-public-btn {
        width: 100%;
    }

    .khz-public-stats,
    .khz-public-grid,
    .khz-public-grid.four,
    .khz-public-search {
        grid-template-columns: 1fr;
    }

    .khz-section-head p {
        margin-right: 0;
    }

    .khz-site-footer-inner {
        justify-content: center;
        text-align: center;
    }

    .khz-ad-card {
        padding: 18px;
    }
}

/* Modern public home refinements */
.khz-site-header {
    box-shadow: 0 8px 28px rgba(16, 35, 28, 0.05);
}

.khz-site-nav {
    justify-content: center;
}

.khz-site-brand {
    margin-inline-end: auto;
    flex: 0 0 auto;
}

.khz-site-menu {
    margin-inline: 0;
}

.khz-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    align-items: stretch;
    gap: clamp(20px, 4vw, 42px);
    min-height: 520px;
    margin-top: 26px;
}

.khz-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.khz-hero-showcase {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: 100%;
    padding: clamp(18px, 3vw, 28px);
    border-radius: var(--khz-public-radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.khz-hero-logo {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--khz-public-radius);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.khz-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.khz-hero-showcase h2 {
    margin: 4px 0 0;
    font-size: 1.38rem;
    font-weight: 800;
}

.khz-hero-showcase p {
    margin: 0;
    line-height: 1.8;
}

.khz-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.khz-hero-tags span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: #ffe4a3;
    border-radius: var(--khz-public-radius);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 700;
    font-size: 0.84rem;
}

.khz-home-hero .khz-public-stats {
    grid-column: 1 / -1;
    margin-top: 0;
}

.khz-public-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.khz-services-section {
    margin-top: -4px;
}

.khz-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.khz-service-card {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    border-radius: var(--khz-public-radius);
    border: 1px solid var(--khz-public-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--khz-public-shadow);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.khz-service-card:hover {
    transform: translateY(-2px);
    color: inherit;
    border-color: rgba(191, 140, 43, 0.42);
    box-shadow: 0 18px 42px rgba(16, 35, 28, 0.12);
}

.khz-service-card span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--khz-public-radius);
    color: var(--khz-public-green);
    background: #edf7f2;
    border: 1px solid rgba(28, 139, 100, 0.14);
}

.khz-service-card strong {
    font-size: 1.08rem;
}

.khz-service-card small {
    color: var(--khz-public-muted);
}

.khz-home-panel {
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid rgba(220, 232, 225, 0.85);
    border-radius: var(--khz-public-radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 44px rgba(16, 35, 28, 0.055);
}

.khz-home-panel + .khz-home-panel {
    margin-top: 24px;
}

.khz-home-panel .khz-section-head {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(220, 232, 225, 0.75);
}

.khz-section-head a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: var(--khz-public-radius);
    background: #edf7f2;
    border: 1px solid rgba(28, 139, 100, 0.14);
}

.khz-section-head a::after {
    content: "\f104";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.78rem;
}

.khz-public-card {
    min-height: 126px;
}

.khz-reader-photo {
    width: 58px;
    height: 58px;
}

@media (max-width: 991.98px) {
    .khz-site-nav {
        align-items: stretch;
    }

    .khz-site-brand,
    .khz-site-menu {
        margin-inline: 0;
    }

    .khz-home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .khz-hero-showcase {
        min-height: 240px;
    }

    .khz-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .khz-site-menu {
        grid-template-columns: 1fr 1fr;
    }

    .khz-home-hero {
        gap: 18px;
    }

    .khz-hero-showcase {
        min-height: auto;
    }

    .khz-service-grid {
        grid-template-columns: 1fr;
    }

    .khz-home-panel {
        padding: 14px;
    }

    .khz-section-head a {
        width: fit-content;
    }
}

/* Portal layout inspired by modern Islamic content networks */
.khz-site-nav {
    min-height: 86px;
}

.khz-site-search {
    width: min(100%, 300px);
    min-height: 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    overflow: hidden;
    border: 1px solid var(--khz-public-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(16, 35, 28, 0.045);
}

.khz-site-nav .khz-site-search {
    margin-inline-start: auto;
}

.khz-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-inline-start: auto;
}

.khz-date-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    padding: 6px;
    border-radius: 18px;
    border: 1px solid rgba(220, 232, 225, 0.95);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(16, 35, 28, 0.05);
}

.khz-date-place,
.khz-date-main,
.khz-date-chip {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 13px;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 800;
}

.khz-date-place {
    color: #ffffff;
    background: linear-gradient(135deg, var(--khz-public-green), #0b5c3f);
}

.khz-date-main {
    color: var(--khz-public-green);
    background: #edf7f2;
}

.khz-date-chip {
    color: #40524a;
    background: #ffffff;
    border: 1px solid rgba(220, 232, 225, 0.9);
}

.khz-date-chip--gold {
    color: #6d5012;
    background: var(--khz-public-gold-soft);
    border-color: rgba(244, 196, 0, 0.34);
}

.khz-social-follow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.khz-social-title {
    color: var(--khz-public-green);
    font-size: 0.92rem;
    font-weight: 900;
    white-space: nowrap;
}

.khz-social-follow a,
.khz-social-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 11px;
    color: #40524a;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 14px;
    border: 1px solid rgba(220, 232, 225, 0.95);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(16, 35, 28, 0.045);
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.khz-social-follow a:hover {
    transform: translateY(-1px);
    color: var(--khz-public-green);
    border-color: rgba(8, 122, 53, 0.22);
}

.khz-social-follow i {
    color: var(--khz-public-green);
    font-size: 1rem;
}

.khz-social-link--empty {
    opacity: 0.72;
}

.khz-site-search input,
.khz-site-search button,
.khz-hero-search input,
.khz-hero-search button {
    border: 0;
    outline: 0;
}

.khz-site-search input {
    min-width: 0;
    padding: 10px 14px;
    color: var(--khz-public-ink);
    background: transparent;
}

.khz-site-search button {
    color: #ffffff;
    background: var(--khz-public-green);
}

.khz-portal-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 290px;
    gap: 18px;
    align-items: stretch;
    margin-top: 20px;
}

.khz-social-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    position: relative;
    width: 100%;
    margin-block: 24px 0;
    margin-inline: 0;
}
.khz-media-section { min-width: 0; height: 100%; display: flex; flex-direction: column; margin-top: 0 !important; padding: 0 !important; overflow: hidden; border: 1px solid rgba(21, 105, 80, .11) !important; border-radius: 20px !important; background: rgba(255,255,255,.92) !important; box-shadow: 0 15px 40px rgba(19, 72, 56, .07); }
.khz-media-section-head { position: relative; display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 18px 20px; overflow: hidden; border-bottom: 1px solid rgba(18, 105, 78, .09); background: linear-gradient(135deg, rgba(19, 133, 96, .10), rgba(255,255,255,.92)); }
.khz-media-section-head::after { position: absolute; width: 110px; height: 110px; left: -45px; top: -55px; content: ""; border-radius: 50%; background: currentColor; opacity: .045; }
.khz-media-brand { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; font-size: 1.25rem; background: linear-gradient(145deg, #07845f, #0c694f); box-shadow: 0 9px 20px rgba(8, 113, 82, .22); }
.khz-media-heading { min-width: 0; display: grid; gap: 2px; }
.khz-media-heading small { color: #75847e; font-size: .68rem; font-weight: 600; }
.khz-media-heading strong { color: #16352c; font-size: .98rem; line-height: 1.6; }
.khz-media-count { margin-inline-start: auto; min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #087352; font-size: .73rem; font-weight: 800; background: #fff; box-shadow: 0 4px 14px rgba(23, 86, 67, .1); }
.khz-media-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.khz-media-section--facebook .khz-media-list,
.khz-media-section--youtube .khz-media-list {
    flex: 1;
    grid-template-rows: repeat(2, minmax(0, 1fr));
}
.khz-media-section--facebook .khz-media-card,
.khz-media-section--youtube .khz-media-card {
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}
.khz-media-section--facebook .khz-media-thumb,
.khz-media-section--youtube .khz-media-thumb {
    aspect-ratio: 16 / 9;
}
.khz-media-section--facebook .khz-media-copy,
.khz-media-section--youtube .khz-media-copy {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.khz-media-section--facebook .khz-media-copy strong,
.khz-media-section--youtube .khz-media-copy strong {
    min-height: 3.5em;
}
.khz-media-section--facebook .khz-media-copy em,
.khz-media-section--youtube .khz-media-copy em {
    margin-top: auto;
}
.khz-media-section--selected .khz-media-list:has(.khz-media-card:only-child) { height: auto; flex: 1; grid-template-columns: 1fr; }
.khz-media-section--selected .khz-media-card:only-child { height: 100%; display: grid; grid-template-rows: minmax(250px, 1fr) auto; }
.khz-media-section--selected .khz-media-card:only-child .khz-media-thumb { height: 100%; aspect-ratio: auto; }
.khz-media-section--selected .khz-media-card:only-child .khz-media-copy { padding: 14px 16px 16px; }
.khz-media-section--selected .khz-media-card:only-child .khz-media-copy strong { min-height: auto; font-size: .88rem; -webkit-line-clamp: 2; }
.khz-media-card { position: relative; min-width: 0; display: block; overflow: hidden; border: 1px solid rgba(20, 100, 76, .12); border-radius: 18px; color: #18372e; text-decoration: none; background: linear-gradient(180deg, #fff, #fbfefc); box-shadow: 0 7px 22px rgba(18, 63, 49, .07); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.khz-media-card::after { position: absolute; inset-inline: 18px; bottom: 0; height: 3px; content: ""; border-radius: 999px 999px 0 0; background: linear-gradient(90deg, #12a277, #24bf90); opacity: 0; transform: scaleX(.35); transition: opacity .25s ease, transform .25s ease; }
.khz-media-section--youtube .khz-media-card::after { background: linear-gradient(90deg, #d9140b, #ff5148); }
.khz-media-section--facebook .khz-media-card::after { background: linear-gradient(90deg, #1263bf, #2789f5); }
.khz-media-card:hover { color: #18372e; transform: translateY(-5px); border-color: rgba(10, 129, 91, .27); box-shadow: 0 17px 35px rgba(19, 94, 70, .15); }
.khz-media-card:hover::after { opacity: 1; transform: scaleX(1); }
.khz-media-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; color: #fff; font-size: 1.35rem; background: linear-gradient(135deg, #0e7859, #1590aa); }
.khz-media-thumb img, .khz-media-thumb > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.khz-media-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 9px; color: rgba(255,255,255,.94); background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.17), transparent 30%), linear-gradient(145deg, #087657, #0d9b73 56%, #13b58a); }
.khz-media-fallback::before, .khz-media-fallback::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.khz-media-fallback::before { width: 190px; height: 190px; top: -95px; right: -70px; }
.khz-media-fallback::after { width: 150px; height: 150px; left: -72px; bottom: -75px; }
.khz-media-fallback i { position: relative; z-index: 1; font-size: 2.2rem; filter: drop-shadow(0 7px 15px rgba(0,0,0,.2)); }
.khz-media-fallback small { position: relative; z-index: 1; font-size: .72rem; font-weight: 800; }
.khz-media-video-preview { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; background: #10251f; pointer-events: none; }
.khz-media-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,22,16,.46), transparent 65%); transition: background .25s ease; }
.khz-media-play { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; color: #087a58; font-size: .9rem; background: rgba(255,255,255,.95); box-shadow: 0 9px 28px rgba(0,0,0,.25); transition: transform .25s ease, box-shadow .25s ease; }
.khz-media-card:hover .khz-media-play { transform: scale(1.13); box-shadow: 0 12px 34px rgba(0,0,0,.3); }
.khz-media-section--facebook .khz-media-thumb { background: #1877f2; }
.khz-media-section--youtube .khz-media-thumb { background: #e62117; }
.khz-media-section--facebook .khz-media-play,
.khz-media-section--facebook .khz-media-copy em { color: #1877f2; }
.khz-media-section--facebook .khz-media-brand { background: linear-gradient(145deg, #2789f5, #1263bf); box-shadow: 0 9px 20px rgba(24,119,242,.22); }
.khz-media-section--youtube .khz-media-brand { background: linear-gradient(145deg, #ff3b31, #c5160d); box-shadow: 0 9px 20px rgba(230,33,23,.2); }
.khz-media-copy { min-width: 0; display: grid; gap: 7px; padding: 13px 14px 15px; }
.khz-media-platform { width: fit-content; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px; color: #13805f; font-size: .59rem; font-weight: 900; background: #eaf7f2; }
.khz-media-section--youtube .khz-media-platform { color: #c92017; }
.khz-media-section--facebook .khz-media-platform { color: #1877f2; }
.khz-media-section--youtube .khz-media-platform { background: #fff0ef; }
.khz-media-section--facebook .khz-media-platform { background: #edf5ff; }
.khz-media-section--youtube .khz-media-platform,
.khz-media-section--facebook .khz-media-platform { display: none; }
.khz-media-copy strong { min-height: 3.35em; color: #15372d; font-size: .79rem; font-weight: 800; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.khz-media-copy small { color: #718078; font-size: .69rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.khz-media-copy em { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: #087b59; font-size: .66rem; font-style: normal; font-weight: 900; }
.khz-media-copy em i { transition: transform .2s ease; }
.khz-media-card:hover .khz-media-copy em i { transform: translateX(-3px); }
.khz-media-more { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: auto auto 14px; padding: 9px 18px; border: 1px solid rgba(12,125,91,.18); border-radius: 999px; color: #087b59; font-size: .72rem; font-weight: 900; text-decoration: none; background: #eff9f5; transition: transform .2s ease, box-shadow .2s ease; }
.khz-media-more:hover { color: #087b59; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(12,100,75,.12); }
.khz-media-section--facebook .khz-media-more { color: #1877f2; border-color: rgba(24,119,242,.2); background: #edf5ff; }
.khz-media-section--youtube .khz-media-more { color: #d8271e; border-color: rgba(216,39,30,.18); background: #fff1f0; }
.khz-media-empty { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; margin: 14px; border: 1px dashed rgba(19, 111, 83, .17); border-radius: 16px; color: #829089; text-align: center; background: radial-gradient(circle at 50% 10%, rgba(18,128,94,.07), transparent 62%); }
.khz-media-empty span { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 18px; color: #168363; font-size: 1.2rem; background: #e9f6f1; }
.khz-media-empty strong { color: #456158; font-size: .86rem; }
.khz-media-empty small { max-width: 190px; font-size: .7rem; line-height: 1.7; }
.khz-facebook-showcase { position: relative; min-height: 415px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 14px; padding: 34px 24px; overflow: hidden; border-radius: 17px; color: #fff; text-align: center; text-decoration: none; background: linear-gradient(145deg, #0b4fa9 0%, #1877f2 52%, #3b94ff 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 15px 35px rgba(24,119,242,.2); }
.khz-facebook-showcase::before { position: absolute; inset: 0; content: ""; opacity: .18; background-image: radial-gradient(circle at 15% 15%, #fff 0 1px, transparent 2px); background-size: 22px 22px; }
.khz-facebook-orbit { position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.khz-facebook-orbit--one { width: 270px; height: 270px; top: -145px; left: -95px; }
.khz-facebook-orbit--two { width: 220px; height: 220px; right: -120px; bottom: -100px; }
.khz-facebook-logo { position: relative; z-index: 1; width: 82px; height: 82px; display: grid; place-items: center; margin-bottom: 8px; border: 1px solid rgba(255,255,255,.45); border-radius: 26px; font-size: 2.1rem; background: rgba(255,255,255,.16); box-shadow: 0 14px 35px rgba(2,45,101,.27); backdrop-filter: blur(8px); }
.khz-facebook-showcase-copy { position: relative; z-index: 1; display: grid; gap: 5px; }
.khz-facebook-showcase-copy small { color: rgba(255,255,255,.76); font-size: .72rem; font-weight: 700; }
.khz-facebook-showcase-copy strong { font-size: 1.08rem; line-height: 1.7; }
.khz-facebook-showcase-copy em { color: rgba(255,255,255,.84); font-size: .72rem; font-style: normal; }
.khz-facebook-showcase-action { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 11px 22px; border-radius: 999px; color: #1268d4; font-size: .75rem; font-weight: 900; background: #fff; box-shadow: 0 8px 20px rgba(1,50,111,.2); transition: transform .2s ease, box-shadow .2s ease; }
.khz-facebook-showcase:hover { color: #fff; }
.khz-facebook-showcase:hover .khz-facebook-showcase-action { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(1,50,111,.3); }
.khz-facebook-live { position: relative; flex: 1; display: flex; padding: 14px; background: linear-gradient(180deg, rgba(24,119,242,.025), transparent 45%); }
.khz-facebook-frame-crop { position: relative; min-height: 427px; flex: 1; overflow: hidden; border: 1px solid rgba(24,119,242,.1); border-radius: 15px; background: #f4f8f6; box-shadow: 0 7px 22px rgba(26,72,128,.07); }
.khz-facebook-frame-crop iframe { position: absolute; top: -105px; left: 50%; display: block; width: 500px; max-width: none; height: 720px; border: 0; background: #f4f8f6; transform: translateX(-50%); }
.khz-facebook-post-modal-trigger { position: absolute; z-index: 3; inset: 0; display: block; cursor: zoom-in; background: transparent; }
@media (max-width: 1100px) { .khz-social-media-grid { grid-template-columns: 1fr 1fr; } .khz-media-section--selected { grid-column: 1 / -1; } .khz-media-section--selected .khz-media-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .khz-social-media-grid { grid-template-columns: 1fr; } .khz-media-section--selected { grid-column: auto; } .khz-media-section--selected .khz-media-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .khz-media-list { gap: 9px; padding: 10px; } .khz-media-copy { padding: 9px; } .khz-media-copy strong { font-size: .7rem; } .khz-media-section-head { padding: 14px; } }
.khz-video-modal .modal-dialog { width: min(94vw, 460px); max-width: 460px; margin-inline: auto; }
.khz-video-modal.khz-video-modal--open { z-index: 20000 !important; display: flex !important; align-items: center; justify-content: center; padding: 12px; background: rgba(2,10,8,.78); backdrop-filter: blur(10px); }
.khz-video-modal--css { position: fixed; inset: 0; z-index: 20000; display: none; align-items: center; justify-content: center; padding: 12px; background: rgba(2,10,8,.78); backdrop-filter: blur(10px); }
.khz-video-modal--css:target { display: flex !important; }
.khz-video-modal-backdrop { position: absolute; inset: 0; display: block; }
.khz-video-modal--css .modal-dialog { position: relative; z-index: 1; }
.khz-video-modal-close { text-decoration: none; }
.khz-video-caption-brand--youtube { color: #ff4b43; }
.khz-video-caption-brand--facebook { color: #63a8ff; }
.khz-facebook-post-modal .modal-dialog { width: min(94vw, 500px); max-width: 500px; }
.khz-facebook-post-stage { width: 100%; height: min(720px, 72vh); overflow: hidden; background: #fff; }
.khz-facebook-post-stage iframe { width: 500px; max-width: 100%; height: 720px; display: block; margin: 0 auto; border: 0; background: #fff; }
.khz-selected-video-trigger, .khz-selected-video-trigger * { cursor: pointer; }
.khz-selected-video-trigger .khz-media-thumb > img,
.khz-selected-video-trigger .khz-media-thumb > video,
.khz-selected-video-trigger .khz-media-shade,
.khz-selected-video-trigger .khz-media-play,
.khz-selected-video-trigger .khz-media-play * {
    pointer-events: none !important;
}
.khz-video-modal .modal-content { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; color: #fff; background: #07110e; box-shadow: 0 30px 90px rgba(0,0,0,.48); }
.khz-video-modal-close { position: absolute; z-index: 5; top: 14px; left: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: rgba(0,0,0,.42); backdrop-filter: blur(9px); }
.khz-video-stage { width: 100%; aspect-ratio: 9 / 14; max-height: 72vh; display: grid; place-items: center; background: #000; }
.khz-video-stage iframe, .khz-video-stage video { width: 100%; height: 100%; display: block; border: 0; object-fit: contain; background: #000; }
.khz-video-caption { position: relative; padding: 17px 20px 20px; background: linear-gradient(135deg, #09271e, #07110e); }
.khz-video-caption-brand { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 7px; color: #58d4a9; font-size: .68rem; font-weight: 800; }
.khz-video-caption h3 { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.7; }
.khz-video-caption p { margin: 5px 0 0; color: #a8bdb6; font-size: .73rem; line-height: 1.7; }
@media (max-width: 480px) { .khz-video-modal .modal-dialog { width: calc(100vw - 20px); margin: 10px auto; } .khz-video-modal .modal-content { border-radius: 22px; } .khz-video-stage { max-height: 70vh; } }

.khz-media-archive { padding-block: 28px 48px; }
.khz-media-archive-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 24px 28px; overflow: hidden; border: 1px solid rgba(18,105,78,.12); border-radius: 22px; background: linear-gradient(135deg, #edf8f4, #fff); box-shadow: 0 12px 34px rgba(18,70,54,.08); }
.khz-media-archive-icon { width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center; border-radius: 20px; color: #fff; font-size: 1.45rem; background: linear-gradient(145deg, #0b956d, #067353); box-shadow: 0 12px 26px rgba(8,117,84,.24); }
.khz-media-archive-hero small { color: #668078; font-size: .72rem; font-weight: 700; }
.khz-media-archive-hero h1 { margin: 2px 0 4px; color: #15382e; font-size: 1.45rem; font-weight: 900; }
.khz-media-archive-hero p { margin: 0; color: #6f817b; font-size: .78rem; }
.khz-media-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; padding: 8px; border: 1px solid rgba(18,105,78,.1); border-radius: 18px; background: rgba(255,255,255,.86); }
.khz-media-filters a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 12px; color: #456158; font-size: .75rem; font-weight: 800; text-decoration: none; }
.khz-media-filters a:hover, .khz-media-filters a.is-active { color: #fff; background: linear-gradient(135deg, #0a8c65, #087151); box-shadow: 0 7px 18px rgba(8,113,81,.2); }
.khz-media-archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.khz-media-card--archive { height: 100%; display: grid !important; grid-template-rows: auto minmax(0, 1fr); }
.khz-media-card--archive .khz-media-copy { height: 100%; display: flex; flex-direction: column; }
.khz-media-card--archive .khz-media-copy em { margin-top: auto; }
.khz-media-card--archive.khz-media-card--facebook .khz-media-play,
.khz-media-card--archive.khz-media-card--facebook .khz-media-copy em { color: #1877f2; }
.khz-media-card--archive.khz-media-card--youtube .khz-media-copy em { color: #d8271e; }
.khz-video-caption-brand--selected { color: #58d4a9; }
.khz-media-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.khz-media-pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; padding-inline: 10px; border: 1px solid rgba(18,105,78,.15); border-radius: 12px; color: #167558; font-size: .78rem; font-weight: 900; text-decoration: none; background: #fff; box-shadow: 0 5px 15px rgba(18,70,54,.06); }
.khz-media-pagination a:hover, .khz-media-pagination a.is-active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #0a8c65, #087151); }
.khz-media-archive-empty { min-height: 280px; display: grid; place-content: center; justify-items: center; gap: 12px; border: 1px dashed rgba(18,105,78,.2); border-radius: 20px; color: #71827b; background: rgba(255,255,255,.74); }
.khz-media-archive-empty i { color: #15906b; font-size: 2rem; }
@media (max-width: 1050px) { .khz-media-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .khz-media-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .khz-media-archive-hero { padding: 20px; } }
@media (max-width: 460px) { .khz-media-archive-grid { grid-template-columns: 1fr; } .khz-media-archive-hero { align-items: flex-start; padding: 17px; } .khz-media-archive-icon { width: 50px; height: 50px; flex-basis: 50px; border-radius: 15px; } .khz-media-archive-hero h1 { font-size: 1.1rem; } }

/* Unified home-card language */
.khz-centered-page {
    --khz-card-radius: 18px;
    --khz-card-border: rgba(18, 105, 78, .12);
    --khz-card-shadow: 0 8px 24px rgba(18, 70, 54, .07);
    --khz-card-shadow-hover: 0 16px 34px rgba(18, 91, 68, .14);
}
.khz-centered-page .khz-grand-section,
.khz-centered-page .khz-grand-categories > a,
.khz-centered-page .khz-reader-marquee-card,
.khz-centered-page .khz-home-strip-card,
.khz-centered-page .khz-media-card {
    border: 1px solid var(--khz-card-border);
    border-radius: var(--khz-card-radius);
    background: linear-gradient(180deg, #fff 0%, #fbfefc 100%);
    box-shadow: var(--khz-card-shadow);
}
.khz-centered-page .khz-grand-categories > a,
.khz-centered-page .khz-reader-marquee-card,
.khz-centered-page .khz-home-strip-card,
.khz-centered-page .khz-media-card {
    position: relative;
    overflow: hidden;
    transition: transform .27s ease, box-shadow .27s ease, border-color .27s ease, background .27s ease;
}
.khz-centered-page .khz-grand-categories > a:hover,
.khz-centered-page .khz-reader-marquee-card:hover,
.khz-centered-page .khz-home-strip-card:hover,
.khz-centered-page .khz-media-card:hover {
    border-color: rgba(12, 137, 98, .28);
    background: #fff;
    box-shadow: var(--khz-card-shadow-hover);
    transform: translateY(-4px);
}
.khz-centered-page .khz-grand-categories > a::after,
.khz-centered-page .khz-reader-marquee-card::after,
.khz-centered-page .khz-home-strip-card::after {
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 3px;
    content: "";
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, #0a8b65, #29bd8f);
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .25s ease, transform .25s ease;
}
.khz-centered-page .khz-grand-categories > a:hover::after,
.khz-centered-page .khz-reader-marquee-card:hover::after,
.khz-centered-page .khz-home-strip-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}
.khz-centered-page .khz-grand-section {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(18, 70, 54, .075);
}
.khz-centered-page .khz-section-head {
    padding-bottom: 14px;
    border-bottom-color: rgba(18, 105, 78, .1);
}
.khz-centered-page .khz-section-head h2 {
    color: #15382e;
}
.khz-centered-page .khz-section-head > a {
    border: 1px solid rgba(13, 130, 94, .16);
    box-shadow: 0 5px 14px rgba(18, 105, 78, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}
.khz-centered-page .khz-section-head > a:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 19px rgba(18, 105, 78, .13);
}
.khz-centered-page .khz-grand-categories > a > span,
.khz-centered-page .khz-home-strip-icon,
.khz-centered-page .khz-reader-photo {
    box-shadow: 0 7px 18px rgba(17, 83, 63, .12);
}
.khz-centered-page .khz-empty {
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(248, 252, 250, .95), rgba(255, 255, 255, .98));
}
.khz-centered-page .khz-grand-section:not(.khz-media-section) .khz-section-head {
    position: relative;
    min-height: 76px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid rgba(18, 105, 78, .08);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(19, 133, 96, .095), rgba(255, 255, 255, .94));
}
.khz-centered-page .khz-grand-section:not(.khz-media-section) .khz-section-head::before {
    position: absolute;
    top: -58px;
    left: -44px;
    width: 118px;
    height: 118px;
    content: "";
    border-radius: 50%;
    background: #168363;
    opacity: .05;
}
.khz-centered-page .khz-grand-section:not(.khz-media-section) .khz-section-head > * {
    position: relative;
    z-index: 1;
}
.khz-centered-page .khz-grand-section:not(.khz-media-section) .khz-section-head h2 i {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #07845f, #0c694f);
    box-shadow: 0 9px 20px rgba(8, 113, 82, .2);
}
.khz-centered-page .khz-grand-section:not(.khz-media-section) .khz-section-head p {
    margin-top: 2px;
    color: #788880;
    font-size: .72rem;
}
@media (max-width: 640px) {
    .khz-centered-page .khz-grand-section:not(.khz-media-section) .khz-section-head {
        min-height: 68px;
        padding: 12px;
    }
}

.khz-portal-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 14px;
}

.khz-side-card,
.khz-category-list,
.khz-home-panel {
    border-radius: 18px;
    border: 1px solid rgba(220, 232, 225, 0.92);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--khz-public-shadow);
}

.khz-side-card {
    padding: 16px;
}

.khz-side-brand-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.khz-side-brand-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--khz-public-border);
}

.khz-side-brand-logo img,
.khz-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.khz-side-brand-logo img {
    object-fit: contain;
    padding: 4px;
}

.khz-side-card h2,
.khz-side-brand-card h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
}

.khz-side-card p,
.khz-side-brand-card p {
    margin: 4px 0 0;
    color: var(--khz-public-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.khz-category-list {
    display: grid;
    overflow: hidden;
    padding: 8px;
}

.khz-category-list a {
    min-height: 62px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 10px;
    color: inherit;
    text-decoration: none;
    border-radius: 14px;
}

.khz-category-list a:hover {
    color: inherit;
    background: #f2f9f4;
}

.khz-category-list a > span {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.khz-category-list .sky {
    background: #2394b7;
}

.khz-category-list .green {
    background: var(--khz-public-green);
}

.khz-category-list .gold {
    color: #352600;
    background: var(--khz-public-gold);
}

.khz-category-list .rose {
    background: #d97866;
}

.khz-category-list strong {
    font-size: 0.94rem;
    font-weight: 900;
}

.khz-category-list small {
    color: var(--khz-public-muted);
    font-size: 0.78rem;
}

.khz-side-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-bottom: 10px;
    padding: 5px 9px;
    color: #6d5012;
    background: var(--khz-public-gold-soft);
    border: 1px solid rgba(244, 196, 0, 0.32);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.khz-today-card {
    background:
        linear-gradient(135deg, rgba(8, 122, 53, 0.92), rgba(16, 35, 28, 0.94)),
        var(--khz-public-green);
    color: #ffffff;
}

.khz-today-card strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
}

.khz-today-card span:not(.khz-side-kicker),
.khz-today-card small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
}

.khz-gateway-hero {
    display: grid;
    gap: 24px;
    margin: 0 0 18px;
    padding: clamp(28px, 5vw, 58px);
    border-radius: 26px;
}

.khz-gateway-hero h1 {
    max-width: 840px;
}

.khz-hero-search {
    width: min(100%, 660px);
    min-height: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    overflow: hidden;
    margin-top: 24px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.khz-hero-search input {
    min-width: 0;
    padding: 12px 16px;
}

.khz-hero-search button {
    color: #10231c;
    background: var(--khz-public-gold);
    font-weight: 900;
}

.khz-gateway-hero .khz-public-stats {
    margin-top: 0;
}

.khz-feature-panel {
    padding-top: 22px;
}

.khz-reader-feature-card {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.khz-reader-photo--large {
    width: 76px;
    height: 76px;
    border-radius: 22px;
}

.khz-feed-list,
.khz-mini-list {
    display: grid;
    gap: 10px;
}

.khz-feed-item {
    min-height: 74px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    color: inherit;
    text-decoration: none;
    border-radius: 16px;
    border: 1px solid var(--khz-public-border);
    background: #ffffff;
}

.khz-feed-item:hover {
    color: inherit;
    border-color: rgba(8, 122, 53, 0.22);
    background: #f8fcf9;
}

.khz-feed-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--khz-public-green);
    background: #edf7f2;
    border-radius: 14px;
}

.khz-speaker-thumb {
    overflow: hidden;
    flex: 0 0 auto;
}

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

.khz-speaker-thumb--card {
    width: 52px;
    height: 52px;
}

.khz-feed-item strong,
.khz-feed-item small,
.khz-mini-list strong,
.khz-mini-list small {
    display: block;
}

.khz-feed-item strong,
.khz-mini-list strong {
    font-weight: 900;
    line-height: 1.45;
}

.khz-feed-item small,
.khz-mini-list small {
    margin-top: 3px;
    color: var(--khz-public-muted);
    font-size: 0.84rem;
}

.khz-feed-item em {
    padding: 5px 8px;
    color: #6d5012;
    background: var(--khz-public-gold-soft);
    border-radius: 999px;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.khz-side-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.khz-side-card-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.khz-side-card-head a,
.khz-newsletter-card a {
    color: var(--khz-public-green);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.khz-mini-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 9px;
    border-radius: 14px;
}

.khz-mini-list a:hover {
    color: inherit;
    background: #f2f9f4;
}

.khz-mini-avatar {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 14px;
    background: #edf7f2;
}

.khz-mini-empty {
    padding: 16px;
    text-align: center;
    color: var(--khz-public-muted);
    background: #f8fbf9;
    border-radius: 14px;
}

.khz-newsletter-card {
    background:
        linear-gradient(135deg, rgba(255, 247, 216, 0.92), rgba(255, 255, 255, 0.96));
}

.khz-newsletter-card a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(8, 122, 53, 0.16);
    border-radius: 14px;
    background: #ffffff;
}

.khz-page-hero {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: clamp(108px, 8vw, 128px);
    text-align: center;
    border-radius: 26px;
}

.khz-page-hero .khz-page-hero-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: block;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.88);
    background:
        url("../img/logo_khazina.png") center / 88% auto no-repeat,
        radial-gradient(circle, #ffffff 0 59%, #f6fbf8 60% 100%);
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.16),
        0 14px 34px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.khz-page-hero .khz-page-hero-logo:hover,
.khz-page-hero .khz-page-hero-logo:focus-visible {
    transform: translateX(-50%) translateY(-2px) scale(1.04);
    border-color: #ffffff;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.2),
        0 18px 42px rgba(0, 0, 0, 0.24);
    outline: none;
}

.khz-page-hero::before {
    z-index: 0;
}

.khz-page-hero > * {
    z-index: 1;
}

.khz-page-hero h1,
.khz-page-hero p {
    margin-inline: auto;
}

.khz-page-hero h1 {
    margin-top: 0;
}

.khz-public-search--wide {
    margin-bottom: 24px;
}

.khz-section-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: -8px auto 24px;
}

.khz-section-tabs--inside {
    width: 100%;
    margin: 0 0 18px;
}

.khz-section-tabs a {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--khz-public-ink);
    text-decoration: none;
    border-radius: 16px;
    border: 1px solid var(--khz-public-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--khz-public-shadow);
    font-weight: 900;
}

.khz-section-tabs a:hover,
.khz-section-tabs a.active {
    color: var(--khz-public-green);
    background: #edf7f2;
    border-color: rgba(8, 122, 53, 0.18);
}

.khz-compact-card {
    min-height: 112px;
}

@media (max-width: 1199.98px) {
    .khz-portal-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .khz-portal-sidebar--left {
        grid-column: 1 / -1;
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .khz-site-search {
        width: 100%;
        order: 3;
    }

    .khz-portal-shell {
        grid-template-columns: 1fr;
    }

    .khz-portal-sidebar {
        position: static;
    }

    .khz-portal-sidebar--right,
    .khz-portal-sidebar--left {
        grid-template-columns: 1fr;
    }

    .khz-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .khz-gateway-hero {
        border-radius: 22px;
    }
}

@media (max-width: 575.98px) {
    .khz-public-body {
        padding-bottom: 96px;
    }

    .khz-site-nav {
        min-height: auto;
    }

    .khz-site-brand {
        width: 100%;
        justify-content: center;
        padding: 8px 10px;
    }

    .khz-site-logo {
        width: 50px;
        height: 50px;
    }

    .khz-site-brand strong {
        font-size: 1rem;
    }

    .khz-site-brand small {
        font-size: 0.72rem;
    }

    .khz-header-tools,
    .khz-social-follow {
        width: 100%;
        justify-content: center;
        order: 3;
    }

    .khz-date-widget {
        width: 100%;
    }

    .khz-social-follow a,
    .khz-social-link {
        min-height: 36px;
        padding: 7px 9px;
        font-size: 0.82rem;
    }

    .khz-site-search,
    .khz-hero-search {
        grid-template-columns: minmax(0, 1fr) 52px;
    }

    .khz-hero-search button span,
    .khz-hero-search button {
        font-size: 0;
    }

    .khz-hero-search button i {
        font-size: 1rem;
    }

    .khz-category-list {
        grid-template-columns: 1fr;
    }

    .khz-section-tabs {
        grid-template-columns: 1fr 1fr;
    }

    .khz-feed-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .khz-feed-item em {
        grid-column: 2;
        width: fit-content;
    }
}

/* Clean centered home card */
.khz-centered-page {
    width: min(100% - 40px, 1520px);
    margin: 26px auto 10px;
}

.khz-grand-card {
    overflow: hidden;
    padding: clamp(14px, 2.4vw, 28px);
    border: 1px solid rgba(220, 232, 225, 0.96);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 250, 0.92)),
        #ffffff;
    box-shadow: 0 24px 80px rgba(16, 35, 28, 0.12);
}

.khz-grand-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(250px, 32vh, 360px);
    padding: clamp(24px, 3.8vw, 44px) clamp(16px, 4vw, 52px);
    text-align: center;
    color: #ffffff;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(8, 122, 53, 0.96), rgba(16, 35, 28, 0.97) 58%, rgba(22, 124, 160, 0.92)),
        #10231c;
    box-shadow: 0 22px 60px rgba(16, 35, 28, 0.22);
}

.khz-grand-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.055) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.055) 75%);
    background-position: 0 0, 15px 15px;
    background-size: 30px 30px;
    opacity: 0.22;
}

.khz-grand-hero > * {
    position: relative;
    z-index: 1;
}

.khz-grand-platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 16px;
    color: #ffe8a8;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid rgba(255, 232, 168, 0.36);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px);
}

.khz-grand-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.khz-grand-logo {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.khz-grand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.khz-grand-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2rem, 5.3vw, 4rem);
    line-height: 1.18;
    font-weight: 900;
}

.khz-grand-subtitle {
    margin: 8px 0 0;
    color: #ffe8a8;
    font-size: clamp(1.02rem, 1.8vw, 1.42rem);
    font-weight: 900;
}

.khz-grand-description {
    max-width: 760px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.95;
    font-size: 1.03rem;
}

.khz-grand-search {
    width: min(100%, 560px);
    min-height: 50px;
    grid-template-columns: minmax(0, 1fr) 106px;
    margin-inline: auto;
    margin-top: 18px;
    border-radius: 16px;
}

.khz-grand-search input {
    padding: 10px 14px;
}

.khz-grand-stats {
    width: min(100%, 760px);
    margin-top: 26px;
}

.khz-grand-categories {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 10px;
    margin: 22px 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.khz-grand-categories a {
    min-width: 0;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    color: inherit;
    text-align: center;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid var(--khz-public-border);
    background: #ffffff;
    box-shadow: var(--khz-public-shadow);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.khz-grand-categories a:hover {
    transform: translateY(-2px);
    color: inherit;
    border-color: rgba(8, 122, 53, 0.24);
    box-shadow: 0 16px 40px rgba(16, 35, 28, 0.1);
}

.khz-grand-categories span {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 16px;
}

.khz-grand-categories .sky {
    background: #2394b7;
}

.khz-grand-categories .green {
    background: var(--khz-public-green);
}

.khz-grand-categories .gold {
    color: #352600;
    background: var(--khz-public-gold);
}

.khz-grand-categories .rose {
    background: #d97866;
}

.khz-grand-categories strong {
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

.khz-grand-categories small {
    color: var(--khz-public-muted);
    font-size: 0.76rem;
    white-space: nowrap;
}

.khz-grand-section {
    padding: clamp(16px, 2.3vw, 24px);
    border: 1px solid rgba(220, 232, 225, 0.88);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 34px rgba(16, 35, 28, 0.055);
}

.khz-grand-section + .khz-grand-section,
.khz-grand-columns,
.khz-ad-zone--inside-card {
    margin-top: 20px;
}

.khz-grand-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 18px;
}

.khz-mini-list--boxed a {
    border: 1px solid var(--khz-public-border);
    background: #ffffff;
}

.khz-ad-zone--inside-card {
    margin-bottom: 22px;
}

@media (max-width: 991.98px) {
    .khz-grand-categories {
        grid-template-columns: repeat(9, minmax(112px, 1fr));
    }

    .khz-grand-columns {
        grid-template-columns: 1fr;
    }

    .khz-grand-hero {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .khz-centered-page {
        width: min(100% - 18px, 1180px);
        margin-top: 14px;
    }

    .khz-grand-card {
        padding: 10px;
        border-radius: 22px;
    }

    .khz-grand-hero {
        padding: 26px 14px;
        border-radius: 18px;
    }

    .khz-grand-brand {
        flex-direction: column;
    }

    .khz-grand-logo {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    .khz-grand-categories,
    .khz-grand-stats {
        grid-template-columns: repeat(9, minmax(112px, 1fr));
    }

    .khz-grand-categories a {
        min-height: 96px;
    }

    .khz-grand-section {
        padding: 14px;
        border-radius: 18px;
    }
}

/* Khazinat 2026 refined public skin */
:root {
    --khz-public-ink: #17221d;
    --khz-public-muted: #69766f;
    --khz-public-border: #dde7df;
    --khz-public-surface: #ffffff;
    --khz-public-soft: #f6f8f4;
    --khz-public-green: #0f8b63;
    --khz-public-green-2: #39a85b;
    --khz-public-teal: #167ca0;
    --khz-public-gold: #d9a328;
    --khz-public-gold-soft: #fff6dc;
    --khz-public-rose: #c97061;
    --khz-public-shadow: 0 10px 30px rgba(23, 34, 29, 0.07);
    --khz-public-shadow-lg: 0 24px 70px rgba(23, 34, 29, 0.13);
    --khz-public-radius: 8px;
}

html {
    background: #f6f8f4;
}

.khz-public-body {
    padding-bottom: 0;
    color: var(--khz-public-ink);
    background:
        linear-gradient(90deg, rgba(15, 139, 99, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(217, 163, 40, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, #fbfcf8 0%, #eef5f0 100%);
    background-size: 44px 44px, 44px 44px, auto;
}

.khz-public-container,
.khz-centered-page {
    width: min(100% - 32px, 1320px);
}

.khz-site-header {
    background: rgba(251, 252, 248, 0.91);
    border-bottom: 1px solid rgba(221, 231, 223, 0.92);
    box-shadow: 0 12px 34px rgba(23, 34, 29, 0.055);
}

.khz-site-nav {
    min-height: 82px;
    justify-content: space-between;
    gap: 14px;
}

.khz-site-brand {
    min-width: 230px;
    margin-inline-end: 0;
    border-radius: 8px;
    border-color: rgba(221, 231, 223, 0.9);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--khz-public-shadow);
}

.khz-site-logo,
.khz-public-icon,
.khz-reader-photo,
.khz-section-head h2 i,
.khz-feed-icon,
.khz-mini-avatar,
.khz-side-brand-logo,
.khz-grand-categories span {
    border-radius: 8px;
}

.khz-site-logo {
    width: 52px;
    height: 52px;
}

.khz-site-brand strong {
    font-size: 1rem;
}

.khz-site-brand small {
    font-size: 0.75rem;
}

.khz-site-menu {
    flex: 1 1 auto;
    justify-content: center;
    gap: 6px;
    padding: 0 4px;
}

.khz-site-menu a {
    min-height: 42px;
    gap: 7px;
    padding: 8px 11px;
    color: #43544c;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 800;
}

.khz-site-menu a i {
    display: inline-flex;
    color: var(--khz-public-green);
}

.khz-site-menu a:hover,
.khz-site-menu a.active {
    color: #0b664c;
    background: #eaf6ef;
    border-color: rgba(15, 139, 99, 0.18);
}

.khz-header-tools {
    flex: 0 1 410px;
}

.khz-date-widget {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--khz-public-shadow);
}

.khz-date-place,
.khz-date-main,
.khz-date-chip,
.khz-social-follow a,
.khz-social-link,
.khz-section-head a,
.khz-public-badge,
.khz-feed-item em,
.khz-grand-platform-badge {
    border-radius: 8px;
}

.khz-social-follow {
    gap: 6px;
}

.khz-social-title {
    display: none;
}

.khz-social-follow a,
.khz-social-link {
    width: 38px;
    min-height: 38px;
    padding: 0;
    color: var(--khz-public-green);
}

.khz-social-follow a span,
.khz-social-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.khz-centered-page {
    margin-top: 22px;
    margin-bottom: 34px;
}

.khz-grand-card {
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.khz-grand-hero,
.khz-public-hero {
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 44, 35, 0.97), rgba(15, 139, 99, 0.94) 54%, rgba(22, 124, 160, 0.9)),
        #11261f;
    box-shadow: var(--khz-public-shadow-lg);
}

.khz-grand-hero {
    min-height: clamp(430px, 58vh, 620px);
    padding: clamp(30px, 5vw, 68px);
}

.khz-grand-hero::before,
.khz-public-hero::before {
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.055) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.055) 75%);
    background-position: 0 0, 16px 16px;
    background-size: 32px 32px;
    opacity: 0.2;
}

.khz-grand-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.khz-grand-logo img {
    padding: 7px;
}

.khz-grand-hero h1 {
    max-width: 860px;
    font-size: clamp(2.15rem, 5vw, 4.4rem);
    line-height: 1.2;
}

.khz-grand-subtitle {
    color: #ffe6aa;
}

.khz-grand-description {
    max-width: 740px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.khz-hero-search,
.khz-public-search,
.khz-site-search {
    border-radius: 8px;
}

.khz-grand-search {
    width: min(100%, 620px);
    min-height: 58px;
    margin-top: 24px;
}

.khz-grand-search button,
.khz-hero-search button {
    background: var(--khz-public-gold);
}

.khz-grand-stats {
    width: min(100%, 820px);
    margin-top: 28px;
}

.khz-public-stat {
    min-height: 94px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.2);
}

.khz-grand-categories {
    grid-auto-flow: initial;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.khz-grand-categories a,
.khz-public-card,
.khz-service-card,
.khz-grand-section,
.khz-home-panel,
.khz-ad-card,
.khz-section-tabs a,
.khz-feed-item,
.khz-side-card,
.khz-category-list,
.khz-empty {
    border-radius: 8px;
}

.khz-grand-categories a {
    min-height: 110px;
    box-shadow: var(--khz-public-shadow);
}

.khz-grand-categories a:hover,
.khz-public-card:hover,
.khz-service-card:hover,
.khz-ad-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 139, 99, 0.28);
    box-shadow: 0 18px 44px rgba(23, 34, 29, 0.11);
}

.khz-grand-section,
.khz-home-panel {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(221, 231, 223, 0.94);
    box-shadow: var(--khz-public-shadow);
}

.khz-section-head {
    align-items: center;
}

.khz-section-head h2 {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.khz-section-head p {
    color: var(--khz-public-muted);
}

.khz-section-head a {
    background: #eef7f2;
}

.khz-public-card {
    min-height: 130px;
    box-shadow: var(--khz-public-shadow);
}

.khz-public-card h3,
.khz-feed-item strong,
.khz-mini-list strong {
    color: var(--khz-public-ink);
}

.khz-public-icon,
.khz-feed-icon,
.khz-section-head h2 i,
.khz-service-card span {
    color: #0b664c;
    background: #eaf6ef;
    border-color: rgba(15, 139, 99, 0.16);
}

.khz-public-badge,
.khz-feed-item em {
    color: #725116;
    background: var(--khz-public-gold-soft);
}

.khz-public-search {
    background: rgba(255, 255, 255, 0.9);
}

.khz-public-search input,
.khz-public-search > button,
.khz-hero-search input,
.khz-hero-search button {
    border-radius: 0;
}

.khz-public-search > button {
    background: var(--khz-public-green);
}

.khz-section-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.khz-section-tabs a {
    box-shadow: var(--khz-public-shadow);
}

.khz-ad-card {
    min-height: 144px;
    background:
        linear-gradient(90deg, #17221d 0 18%, var(--khz-public-green) 18% 70%, var(--khz-public-gold) 70% 100%) top / 100% 5px no-repeat,
        #ffffff;
}

.khz-site-footer {
    position: static;
    min-height: auto;
    background: rgba(251, 252, 248, 0.94);
}

audio {
    min-height: 42px;
}

@media (max-width: 1199.98px) {
    .khz-site-nav {
        align-items: stretch;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .khz-site-brand {
        flex: 1 1 260px;
    }

    .khz-header-tools {
        flex: 1 1 360px;
    }

    .khz-site-menu {
        order: 4;
        flex-basis: 100%;
        justify-content: flex-start;
    }

    .khz-grand-categories {
        grid-template-columns: repeat(5, minmax(130px, 1fr));
        overflow-x: auto;
    }
}

@media (max-width: 991.98px) {
    .khz-public-container,
    .khz-centered-page {
        width: min(100% - 24px, 1180px);
    }

    .khz-grand-hero {
        min-height: auto;
    }

    .khz-public-stats,
    .khz-grand-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .khz-grand-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .khz-public-body {
        padding-bottom: 0;
    }

    .khz-public-container,
    .khz-centered-page {
        width: min(100% - 18px, 1180px);
    }

    .khz-site-brand {
        width: 100%;
        justify-content: flex-start;
    }

    .khz-header-tools {
        width: 100%;
        order: 2;
        justify-content: flex-start;
    }

    .khz-date-widget {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .khz-date-widget::-webkit-scrollbar {
        display: none;
    }

    .khz-date-place,
    .khz-date-main,
    .khz-date-chip {
        flex: 0 0 auto;
    }

    .khz-social-follow {
        display: none;
    }

    .khz-site-menu {
        order: 3;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .khz-site-menu a {
        flex: 0 0 auto;
    }

    .khz-grand-hero {
        padding: 28px 16px;
    }

    .khz-grand-logo {
        width: 70px;
        height: 70px;
    }

    .khz-grand-search,
    .khz-hero-search,
    .khz-public-search {
        grid-template-columns: minmax(0, 1fr) 54px;
    }

    .khz-grand-search button,
    .khz-hero-search button,
    .khz-public-search > button {
        font-size: 0;
        padding-inline: 0;
    }

    .khz-grand-search button i,
    .khz-hero-search button i,
    .khz-public-search > button i {
        font-size: 1rem;
    }

    .khz-public-stats,
    .khz-grand-stats,
    .khz-public-grid,
    .khz-public-grid.four,
    .khz-section-tabs {
        grid-template-columns: 1fr;
    }

    .khz-grand-hero .khz-public-stats,
    .khz-grand-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .khz-grand-hero .khz-public-stat {
        min-height: 76px;
        padding: 10px;
    }

    .khz-grand-hero .khz-public-stat strong {
        font-size: 1.22rem;
    }

    .khz-grand-hero .khz-public-stat span {
        font-size: 0.78rem;
    }

    .khz-grand-categories {
        grid-template-columns: repeat(9, minmax(118px, 1fr));
    }

    .khz-section-head {
        align-items: stretch;
    }
}

/* Khazinat polished public interface */
:root {
    --khz-public-ink: #16251e;
    --khz-public-muted: #65766e;
    --khz-public-border: #dbe8df;
    --khz-public-surface: #ffffff;
    --khz-public-soft: #f5f8f2;
    --khz-public-green: #0b7f57;
    --khz-public-green-2: #2fa865;
    --khz-public-teal: #197f99;
    --khz-public-gold: #d9a72e;
    --khz-public-gold-soft: #fff6dc;
    --khz-public-rose: #c96858;
    --khz-public-shadow: 0 12px 34px rgba(22, 37, 30, 0.075);
    --khz-public-shadow-lg: 0 26px 80px rgba(22, 37, 30, 0.16);
    --khz-public-radius: 8px;
}

.khz-public-body {
    background:
        linear-gradient(90deg, rgba(11, 127, 87, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(217, 167, 46, 0.028) 1px, transparent 1px),
        linear-gradient(180deg, #fcfdf9 0%, #eff6f1 50%, #f8fbf6 100%);
    background-size: 48px 48px, 48px 48px, auto;
}

.khz-public-container,
.khz-centered-page {
    width: min(100% - 40px, 1240px);
}

.khz-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(252, 253, 249, 0.94);
    border-bottom: 1px solid rgba(219, 232, 223, 0.92);
    box-shadow: 0 10px 30px rgba(22, 37, 30, 0.055);
}

.khz-site-topbar {
    border-bottom: 1px solid rgba(219, 232, 223, 0.78);
    background: rgba(255, 255, 255, 0.48);
}

.khz-site-topbar .khz-header-tools {
    width: min(100% - 40px, 1240px);
    min-height: 46px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
}

.khz-date-widget {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.khz-date-place,
.khz-date-main,
.khz-date-chip {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.khz-date-place {
    background: #e8f5ef;
    color: #0b6d4f;
    border: 1px solid rgba(11, 127, 87, 0.14);
}

.khz-date-main {
    color: #0b6d4f;
    background: rgba(232, 245, 239, 0.78);
}

.khz-date-chip {
    color: #4e5e57;
    background: #ffffff;
    border: 1px solid rgba(219, 232, 223, 0.92);
}

.khz-date-chip--gold {
    color: #755411;
    background: #fff7df;
    border-color: rgba(217, 167, 46, 0.25);
}

.khz-social-follow {
    flex: 0 0 auto;
    gap: 6px;
}

.khz-social-follow a,
.khz-social-link {
    width: 34px;
    min-height: 34px;
    border-radius: 999px;
    color: #0b6d4f;
    background: #ffffff;
    box-shadow: none;
}

.khz-site-nav {
    min-height: 74px;
    padding-block: 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.khz-site-brand {
    min-width: 244px;
    padding: 7px 9px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.khz-site-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(22, 37, 30, 0.08);
}

.khz-site-brand strong {
    font-size: 1.04rem;
}

.khz-site-brand small {
    font-size: 0.74rem;
}

.khz-site-menu {
    min-width: 0;
    justify-content: flex-start;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(219, 232, 223, 0.88);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.khz-site-menu a {
    min-height: 38px;
    padding: 7px 8px;
    border-radius: 999px;
    color: #44564e;
    font-size: 0.8rem;
}

.khz-site-menu a i {
    display: inline-flex;
    color: currentColor;
    font-size: 0.88rem;
}

.khz-site-menu a:hover,
.khz-site-menu a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0b7f57, #197f99);
    border-color: transparent;
}

.khz-centered-page {
    margin-top: 28px;
    margin-bottom: 42px;
}

.khz-grand-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.khz-grand-hero {
    min-height: 0;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 41, 32, 0.98), rgba(11, 127, 87, 0.95) 50%, rgba(25, 127, 153, 0.92)),
        #10241d;
    box-shadow: var(--khz-public-shadow-lg);
}

.khz-grand-hero::before {
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.07) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.07) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.045) 75%);
    background-position: 0 0, 18px 18px;
    background-size: 36px 36px;
    opacity: 0.18;
}

.khz-grand-platform-badge {
    margin-bottom: 10px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
}

.khz-grand-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.khz-grand-hero h1 {
    max-width: 850px;
    font-size: clamp(2.05rem, 4.4vw, 3.55rem);
    line-height: 1.18;
}

.khz-grand-subtitle {
    margin-top: 10px;
    color: #ffe8aa;
    font-size: clamp(1.02rem, 1.7vw, 1.32rem);
}

.khz-grand-description {
    max-width: 710px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.83);
    line-height: 1.75;
}

.khz-grand-search {
    width: min(100%, 590px);
    min-height: 50px;
    margin-top: 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.khz-grand-search input {
    padding-inline: 18px;
}

.khz-grand-search button {
    color: #17221d;
    background: var(--khz-public-gold);
}

.khz-grand-stats {
    width: min(100%, 760px);
    gap: 12px;
    margin-top: 18px;
}

.khz-public-stat {
    min-height: 72px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.khz-public-stat strong {
    font-size: 1.38rem;
}

.khz-grand-categories {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 12px;
    margin: 18px 0 20px;
    overflow: visible;
}

.khz-grand-categories a {
    min-height: 108px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 250, 0.96));
    box-shadow: var(--khz-public-shadow);
}

.khz-grand-categories span {
    border-radius: 8px;
}

.khz-grand-categories a:hover,
.khz-public-card:hover,
.khz-ad-card:hover,
.khz-feed-item:hover,
.khz-mini-list a:hover {
    transform: translateY(-3px);
    border-color: rgba(11, 127, 87, 0.26);
    box-shadow: 0 18px 46px rgba(22, 37, 30, 0.12);
}

.khz-grand-section {
    padding: clamp(18px, 2.5vw, 26px);
    border-radius: 8px;
    border: 1px solid rgba(219, 232, 223, 0.96);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--khz-public-shadow);
}

.khz-grand-section + .khz-grand-section,
.khz-grand-columns,
.khz-ad-zone--inside-card {
    margin-top: 18px;
}

.khz-section-head {
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(219, 232, 223, 0.78);
}

.khz-section-head h2 {
    font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.khz-section-head h2 i,
.khz-feed-icon,
.khz-public-icon,
.khz-reader-photo,
.khz-mini-avatar {
    border-radius: 8px;
}

.khz-section-head a {
    border-radius: 999px;
    background: #edf7f2;
}

.khz-public-card,
.khz-feed-item,
.khz-mini-list--boxed a,
.khz-empty,
.khz-ad-card {
    border-radius: 8px;
}

.khz-public-card {
    box-shadow: none;
}

.khz-reader-feature-card {
    min-height: 164px;
}

.khz-reader-photo--large {
    width: 78px;
    height: 78px;
}

.khz-grand-columns {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.khz-site-footer {
    position: static;
    background: rgba(252, 253, 249, 0.96);
}

@media (max-width: 1199.98px) {
    .khz-site-topbar .khz-header-tools,
    .khz-public-container,
    .khz-centered-page {
        width: min(100% - 28px, 1180px);
    }

    .khz-site-nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .khz-site-brand {
        min-width: 0;
        width: fit-content;
    }

    .khz-site-menu {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .khz-site-menu::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .khz-site-topbar .khz-header-tools {
        min-height: auto;
        padding-block: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .khz-date-widget {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .khz-date-widget::-webkit-scrollbar {
        display: none;
    }

    .khz-date-place,
    .khz-date-main,
    .khz-date-chip {
        flex: 0 0 auto;
    }

    .khz-social-follow {
        display: none;
    }

    .khz-site-nav {
        padding-block: 8px;
    }

    .khz-site-brand {
        width: 100%;
    }

    .khz-site-menu {
        border-radius: 8px;
        padding: 6px;
    }

    .khz-site-menu a {
        min-height: 40px;
        padding-inline: 11px;
    }

    .khz-centered-page {
        margin-top: 16px;
    }

    .khz-grand-hero {
        padding: 28px 16px;
    }

    .khz-grand-logo {
        width: 68px;
        height: 68px;
    }

    .khz-grand-search {
        grid-template-columns: minmax(0, 1fr) 54px;
        border-radius: 8px;
    }

    .khz-grand-search button {
        font-size: 0;
        padding-inline: 0;
    }

    .khz-grand-search button i {
        font-size: 1rem;
    }

    .khz-grand-stats,
    .khz-grand-hero .khz-public-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .khz-grand-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .khz-grand-columns,
    .khz-public-grid,
    .khz-public-grid.four {
        grid-template-columns: 1fr;
    }

    .khz-section-head {
        align-items: stretch;
    }
}

/* Public photo albums */
.khz-albums-page{padding-block:32px 58px}.khz-albums-hero{position:relative;display:flex;align-items:center;gap:18px;padding:clamp(22px,4vw,38px);overflow:hidden;color:#fff;border-radius:24px;background:linear-gradient(125deg,#063d2e,#087956 58%,#16929a);box-shadow:0 24px 65px rgba(6,61,46,.2)}.khz-albums-hero:after{content:"";position:absolute;inset:auto -60px -100px auto;width:300px;height:300px;border:50px solid rgba(255,255,255,.06);border-radius:50%}.khz-albums-hero-icon{width:76px;height:76px;display:grid;place-items:center;flex:0 0 auto;font-size:2rem;color:#173c27;border-radius:22px;background:linear-gradient(145deg,#fff4bd,#d7b84e);box-shadow:0 14px 32px rgba(0,0,0,.16)}.khz-albums-hero h1{margin:3px 0 5px;font-size:clamp(1.65rem,4vw,2.6rem);font-weight:950}.khz-albums-hero p{margin:0;color:rgba(255,255,255,.78)}.khz-albums-kicker{color:#f7d86c;font-size:.8rem;font-weight:900}.khz-albums-total{position:relative;z-index:1;margin-inline-start:auto;min-width:100px;padding:13px;text-align:center;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(255,255,255,.1);backdrop-filter:blur(8px)}.khz-albums-total strong,.khz-albums-total span{display:block}.khz-albums-total strong{font-size:1.65rem}.khz-albums-total span{font-size:.78rem}.khz-albums-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:26px}.khz-album-card{overflow:hidden;border:1px solid #dce8e0;border-radius:20px;background:#fff;box-shadow:0 14px 40px rgba(17,54,39,.08);transition:.25s ease}.khz-album-card:hover{transform:translateY(-5px);box-shadow:0 24px 58px rgba(17,54,39,.14)}.khz-album-cover{position:relative;width:100%;aspect-ratio:16/10;display:block;padding:0;overflow:hidden;border:0;background:#eaf2ed}.khz-album-cover>img{width:100%;height:100%;object-fit:cover;transition:transform .55s ease}.khz-album-card:hover .khz-album-cover>img{transform:scale(1.045)}.khz-album-cover>span:first-child{height:100%;display:grid;place-items:center;font-size:3rem;color:#8ba499}.khz-album-cover-shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 44%,rgba(3,28,20,.72))}.khz-album-photo-count,.khz-album-view{position:absolute;bottom:13px;z-index:1;display:flex;align-items:center;gap:6px;padding:7px 10px;color:#fff;font-size:.76rem;font-weight:850;border-radius:999px;background:rgba(4,37,27,.7);backdrop-filter:blur(7px)}.khz-album-photo-count{right:13px}.khz-album-view{left:13px;opacity:0;transform:translateY(6px);transition:.22s}.khz-album-card:hover .khz-album-view{opacity:1;transform:none}.khz-album-card-body{padding:17px}.khz-album-card-body h2{margin:12px 0 8px;font-size:1.05rem;font-weight:950;line-height:1.6}.khz-album-card-body>p{margin:0;color:#64756d;font-size:.84rem}.khz-album-date{display:flex;align-items:center;gap:7px;color:#087653;font-size:.78rem;font-weight:850}.khz-album-date small{margin-inline-start:auto;color:#9a7717}.khz-album-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.khz-album-card-actions button,.khz-album-card-actions a,.khz-viewer-toolbar a{min-height:42px;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px;border:1px solid #cde3d7;border-radius:11px;color:#087653;background:#eef8f3;text-decoration:none;font-size:.78rem;font-weight:900;transition:.2s}.khz-album-card-actions a{color:#725814;border-color:#eadcae;background:#fff9e8}.khz-album-card-actions button:hover,.khz-album-card-actions a:hover,.khz-viewer-toolbar a:hover{transform:translateY(-2px);filter:saturate(1.2)}.khz-albums-empty{margin-top:28px;padding:60px 20px;text-align:center;border:1px dashed #bed7c8;border-radius:22px;background:rgba(255,255,255,.75)}.khz-albums-empty>i{font-size:3rem;color:#79a58f}.khz-albums-empty h2{margin:14px 0 6px;font-size:1.25rem}.khz-albums-empty p{color:#718078}.khz-album-viewer .modal-content{overflow:hidden;border:0;border-radius:22px;background:#f4f8f5;box-shadow:0 30px 100px rgba(0,0,0,.32)}.khz-album-viewer .modal-header{padding:15px 20px;color:#fff;border:0;background:linear-gradient(100deg,#073e2f,#0b805c)}.khz-album-viewer .modal-header h2{margin:2px 0 0;font-size:1.08rem;font-weight:950}.khz-album-viewer .modal-header small{color:#c9ebdc}.khz-album-viewer .btn-close{filter:invert(1)}.khz-album-viewer .modal-body{padding:14px}.khz-viewer-stage{position:relative;height:min(65vh,650px);display:grid;place-items:center;overflow:hidden;border-radius:16px;background:radial-gradient(circle at center,#24332d,#07110d)}.khz-viewer-stage>img{max-width:100%;max-height:100%;opacity:0;transform:scale(.985);object-fit:contain;transition:.22s}.khz-viewer-stage>img.is-ready{opacity:1;transform:none}.khz-viewer-loading{position:absolute;color:#d9b94f;font-size:1.7rem;opacity:0;pointer-events:none}.khz-viewer-loading.is-visible{opacity:1}.khz-viewer-nav{position:absolute;top:50%;z-index:3;width:48px;height:48px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.25);border-radius:50%;color:#fff;background:rgba(0,0,0,.38);backdrop-filter:blur(7px);transform:translateY(-50%);transition:.2s}.khz-viewer-nav:hover{background:#0c8a62}.khz-viewer-prev{right:14px}.khz-viewer-next{left:14px}.khz-viewer-counter{position:absolute;right:50%;bottom:12px;z-index:2;padding:5px 11px;color:#fff;border-radius:999px;background:rgba(0,0,0,.55);transform:translateX(50%);font-size:.76rem}.khz-viewer-toolbar{display:flex;justify-content:center;gap:9px;margin:11px 0}.khz-viewer-toolbar a{padding-inline:18px}.khz-viewer-thumbs{display:flex;gap:8px;padding:4px 2px 8px;overflow-x:auto;scrollbar-width:thin}.khz-viewer-thumbs button{width:78px;height:58px;flex:0 0 auto;padding:3px;overflow:hidden;border:2px solid transparent;border-radius:10px;background:#fff;opacity:.64;transition:.2s}.khz-viewer-thumbs button.active{border-color:#0b8b62;opacity:1;transform:translateY(-2px)}.khz-viewer-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:6px}
@media(max-width:991.98px){.khz-albums-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.khz-viewer-stage{height:calc(100vh - 235px);min-height:300px}.khz-album-viewer .modal-content{border-radius:0}}
@media(max-width:575.98px){.khz-albums-page{padding-top:16px}.khz-albums-hero{align-items:flex-start;padding:20px;border-radius:18px}.khz-albums-hero-icon{width:52px;height:52px;border-radius:14px;font-size:1.35rem}.khz-albums-total{display:none}.khz-albums-grid{grid-template-columns:1fr;gap:15px;margin-top:16px}.khz-album-card{border-radius:16px}.khz-album-viewer .modal-body{padding:8px}.khz-viewer-stage{height:calc(100vh - 225px);border-radius:11px}.khz-viewer-nav{width:40px;height:40px}.khz-viewer-prev{right:7px}.khz-viewer-next{left:7px}.khz-viewer-toolbar{display:grid;grid-template-columns:1fr 1fr}.khz-viewer-toolbar a{padding:7px;font-size:.7rem}.khz-viewer-thumbs button{width:66px;height:50px}}

/* Keep all nine home shortcuts in one responsive row. */
.khz-grand-categories{grid-template-columns:repeat(9,minmax(0,1fr))!important;grid-auto-flow:column!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;scrollbar-width:thin}.khz-grand-categories>a{scroll-snap-align:start}
@media(max-width:1199.98px){.khz-grand-categories{grid-template-columns:repeat(9,minmax(112px,1fr))!important}}
@media(max-width:575.98px){.khz-grand-categories{grid-template-columns:repeat(9,minmax(96px,1fr))!important;gap:8px!important}.khz-grand-categories>a{min-height:82px!important}.khz-grand-categories strong{font-size:.72rem!important}}

@media (max-width: 420px) {
    .khz-site-topbar .khz-header-tools,
    .khz-public-container,
    .khz-centered-page {
        width: min(100% - 18px, 1180px);
    }

    .khz-site-brand strong {
        font-size: 0.96rem;
    }

    .khz-site-brand small {
        font-size: 0.7rem;
    }

    .khz-grand-hero h1 {
        font-size: 2rem;
    }

    .khz-grand-stats,
    .khz-grand-hero .khz-public-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .khz-grand-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Full-width rotating site banners: final overrides for legacy card rules. */
.khz-ad-zone[data-khz-banner-slider] .khz-ad-card,
.khz-ad-zone[data-khz-banner-slider] .khz-ad-card:hover {
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    background: transparent;
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-card:not(.is-active) {
    transform: translateX(-3%);
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-card.is-active,
.khz-ad-zone[data-khz-banner-slider] .khz-ad-card.is-active:hover {
    transform: translateX(0);
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-media {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 8px;
}

@media (max-width: 991.98px) {
    .khz-ad-zone[data-khz-banner-slider] {
        width: 100%;
        margin-block: 16px 20px;
    }

    .khz-ad-track {
        min-height: 140px;
        max-height: 190px;
        aspect-ratio: 4 / 1;
    }

    .khz-ad-zone[data-khz-banner-slider] .khz-ad-media img {
        object-position: center;
    }

    .khz-ad-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 575.98px) {
    .khz-ad-zone[data-khz-banner-slider] {
        margin-inline: 0;
        margin-block: 12px 18px;
    }

    .khz-ad-track {
        min-height: 110px;
        max-height: 150px;
        aspect-ratio: 3 / 1;
        border-radius: 7px;
    }

    .khz-ad-zone[data-khz-banner-slider] .khz-ad-card,
    .khz-ad-zone[data-khz-banner-slider] .khz-ad-media {
        border-radius: 7px;
    }

    .khz-ad-dots {
        bottom: 7px;
        gap: 6px;
    }

    .khz-ad-dot.is-active {
        width: 22px;
    }
}

/* Centered and separated header navigation */
.khz-site-topbar {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(219, 232, 223, 0.9);
}

.khz-site-topbar .khz-header-tools {
    min-height: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.khz-site-topbar .khz-date-widget {
    flex: 0 0 auto;
}

.khz-site-nav {
    min-height: auto;
    padding-block: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.khz-site-brand {
    width: fit-content;
    min-width: 0;
    flex: 0 0 auto;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid rgba(219, 232, 223, 0.96);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 28px rgba(22, 37, 30, 0.06);
}

.khz-site-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.khz-site-menu {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    justify-content: center;
    gap: 6px;
    padding: 7px;
    border-radius: 999px;
    border: 1px solid rgba(11, 127, 87, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 248, 0.94));
    box-shadow: 0 14px 34px rgba(22, 37, 30, 0.08);
}

.khz-site-menu a {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #3e5148;
    font-size: 0.83rem;
    border: 1px solid transparent;
}

.khz-site-menu a:hover {
    color: #0b6d4f;
    background: #edf8f2;
    border-color: rgba(11, 127, 87, 0.12);
}

.khz-site-menu a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0b7f57, #1b879f);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(11, 127, 87, 0.22);
}

@media (max-width: 1199.98px) {
.khz-site-nav {
    align-items: center;
    gap: 10px;
}

    .khz-site-menu {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .khz-site-menu::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .khz-site-topbar .khz-header-tools {
        min-height: auto;
        padding-block: 8px;
    }

    .khz-site-brand {
        width: 100%;
        border-radius: 8px;
    }

    .khz-site-menu {
        border-radius: 8px;
    }
}

/* Logo-only navigation mark */
.khz-site-nav {
    flex-direction: row;
    gap: 12px;
}

.khz-nav-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    order: -1;
    color: inherit;
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid rgba(11, 127, 87, 0.16);
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.96), rgba(247, 251, 248, 0.94)),
        #ffffff;
    box-shadow:
        0 14px 34px rgba(22, 37, 30, 0.12),
        inset 0 0 0 5px rgba(237, 248, 242, 0.9);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.khz-nav-logo:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 127, 87, 0.3);
    box-shadow:
        0 18px 42px rgba(22, 37, 30, 0.15),
        inset 0 0 0 5px rgba(237, 248, 242, 0.95);
}

.khz-nav-logo img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    border-radius: 50%;
}

@media (max-width: 1199.98px) {
    .khz-site-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    .khz-nav-logo {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .khz-site-menu {
        flex: 1 1 auto;
        width: auto;
    }
}

@media (max-width: 575.98px) {
    .khz-site-nav {
        gap: 8px;
    }

    .khz-nav-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
}

/* Fixed elegant public footer */
.khz-public-body {
    padding-bottom: 88px;
}

.khz-site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    min-height: 70px;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(191, 220, 205, 0.86);
    background:
        linear-gradient(90deg, rgba(10, 126, 87, 0.08), rgba(218, 168, 37, 0.09), rgba(28, 134, 151, 0.08)),
        rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    box-shadow: 0 -16px 44px rgba(21, 42, 33, 0.12);
}

.khz-site-footer-inner {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    color: #455d53;
    font-family: var(--khz-font-family);
    font-size: 0.9rem;
    font-weight: 800;
}

.khz-site-footer-inner > div {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(209, 229, 218, 0.9);
    box-shadow: 0 10px 26px rgba(22, 42, 33, 0.08);
    line-height: 1.55;
    white-space: nowrap;
    font-weight: 800;
}

.khz-footer-copy {
    color: #304a3f;
}

.khz-footer-mark {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #0b8a61, #d8a320);
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 7px 18px rgba(11, 138, 97, 0.24);
}

.khz-footer-credit {
    color: #5d7068;
}

.khz-site-footer strong {
    color: #0b7f57;
    font-weight: 900;
}

@media (max-width: 575.98px) {
    .khz-public-body {
        padding-bottom: 134px;
    }

    .khz-site-footer-inner {
        justify-content: center;
        gap: 8px;
        flex-direction: column;
        text-align: center;
    }

    .khz-site-footer-inner > div {
        width: 100%;
        min-height: 34px;
        padding: 6px 10px;
        white-space: normal;
    }
}

.khz-feedback-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(209, 229, 218, 0.96);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 249, 0.96));
    box-shadow: 0 28px 80px rgba(16, 35, 28, 0.18);
}

.khz-feedback-modal .modal-header {
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(219, 232, 223, 0.9);
}

.khz-feedback-modal .modal-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--khz-public-ink);
    font-weight: 900;
}

.khz-feedback-modal .modal-title i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b7f57;
    border-radius: 8px;
    background: #eaf7f1;
}

.khz-feedback-modal .modal-header p {
    margin-top: 7px;
    color: var(--khz-public-muted);
    line-height: 1.8;
    font-size: 0.9rem;
}

.khz-feedback-modal .btn-close {
    flex: 0 0 auto;
}

.khz-feedback-modal .modal-body {
    display: grid;
    gap: 12px;
    padding: 18px 20px 12px;
}

.khz-feedback-modal-form {
    margin: 0;
}

.khz-feedback-modal input,
.khz-feedback-modal textarea {
    width: 100%;
    border: 1px solid rgba(219, 232, 223, 0.96);
    border-radius: 8px;
    padding: 11px 12px;
    color: var(--khz-public-ink);
    background: #ffffff;
}

.khz-feedback-modal textarea {
    resize: vertical;
}

.khz-feedback-modal input:focus,
.khz-feedback-modal textarea:focus {
    outline: 0;
    border-color: rgba(11, 127, 87, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(11, 127, 87, 0.1);
}

.khz-feedback-modal .modal-footer {
    gap: 8px;
    justify-content: flex-start;
    padding: 12px 20px 18px;
    border-top: 0;
}

.khz-modal-primary,
.khz-modal-secondary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 900;
}

.khz-modal-primary {
    color: #ffffff;
    border: 0;
    background: linear-gradient(135deg, #0b7f57, #1b879f);
}

.khz-modal-secondary {
    color: #43574d;
    border: 1px solid rgba(219, 232, 223, 0.96);
    background: #ffffff;
}

.khz-about-modal {
    --bs-modal-width: min(920px, calc(100vw - 24px));
}

.khz-about-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(209, 229, 218, 0.96);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 249, 0.98));
    box-shadow: 0 28px 80px rgba(16, 35, 28, 0.2);
}

.khz-about-modal .modal-header {
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    color: #ffffff;
    border-bottom: 0;
    background:
        linear-gradient(135deg, rgba(5, 75, 48, 0.96), rgba(12, 134, 148, 0.92)),
        var(--khz-public-green);
}

.khz-about-modal .btn-close {
    flex: 0 0 auto;
    filter: invert(1) grayscale(1) brightness(1.8);
    opacity: 0.9;
}

.khz-about-modal-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.khz-about-modal-logo {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.khz-about-modal-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.khz-about-modal .modal-title {
    color: #ffffff;
    font-size: clamp(1.25rem, 3vw, 1.9rem);
    font-weight: 900;
    line-height: 1.35;
}

.khz-about-modal-heading p {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 800;
}

.khz-about-modal .modal-body {
    display: grid;
    gap: 18px;
    padding: 20px;
}

.khz-about-modal-description {
    margin: 0;
    color: var(--khz-public-ink);
    line-height: 2;
    font-size: 1rem;
}

.khz-about-modal-mission {
    display: grid;
    gap: 14px;
}

.khz-about-modal-section-head {
    padding-top: 14px;
    border-top: 1px solid rgba(219, 232, 223, 0.96);
}

.khz-about-modal-section-head h6 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--khz-public-ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.khz-about-modal-section-head h6 i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b7f57;
    border-radius: 8px;
    background: #eaf7f1;
}

.khz-about-modal-section-head p {
    margin: 8px 0 0;
    color: var(--khz-public-muted);
    line-height: 1.9;
}

.khz-about-modal-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.khz-about-modal-card {
    min-height: 160px;
    padding: 16px;
    border: 1px solid rgba(209, 229, 218, 0.96);
    border-radius: 8px;
    background: #ffffff;
}

.khz-about-modal-card span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b7f57;
    border: 1px solid rgba(16, 166, 120, 0.18);
    border-radius: 8px;
    background: #eaf7f1;
}

.khz-about-modal-card h6 {
    margin: 14px 0 0;
    color: var(--khz-public-ink);
    font-size: 1rem;
    font-weight: 900;
}

.khz-about-modal-card p {
    margin: 9px 0 0;
    color: var(--khz-public-muted);
    font-size: 0.9rem;
    line-height: 1.85;
}

.khz-about-modal-links {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(219, 232, 223, 0.96);
}

.khz-about-modal-links h6 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--khz-public-ink);
    font-size: 1rem;
    font-weight: 900;
}

.khz-about-modal-links h6 i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b7f57;
    border-radius: 8px;
    background: #eaf7f1;
}

.khz-about-modal-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.khz-about-modal-link-list a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    color: #0b6f50;
    text-decoration: none;
    border: 1px solid rgba(16, 166, 120, 0.2);
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.khz-about-modal-link-list a:hover {
    color: #064b36;
    border-color: rgba(16, 166, 120, 0.38);
    background: #eaf7f1;
    transform: translateY(-1px);
}

.khz-about-modal .modal-footer {
    justify-content: flex-start;
    padding: 0 20px 20px;
    border-top: 0;
}

/* Public feedback, comments, and reactions */
.khz-feedback-box {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
    margin: 24px auto 96px;
    padding: clamp(18px, 2.5vw, 26px);
    border: 1px solid rgba(219, 232, 223, 0.96);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 249, 0.92));
    box-shadow: var(--khz-public-shadow);
}

.khz-feedback-box h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--khz-public-ink);
    font-size: 1.18rem;
    font-weight: 900;
}

.khz-feedback-box h2 i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b7f57;
    border-radius: 8px;
    background: #eaf7f1;
}

.khz-feedback-box p {
    margin: 10px 45px 0 0;
    color: var(--khz-public-muted);
    line-height: 1.8;
}

.khz-feedback-notice {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
    padding: 7px 11px;
    color: #0b6d4f;
    border-radius: 999px;
    background: #eaf7f1;
    border: 1px solid rgba(11, 127, 87, 0.14);
    font-weight: 800;
    font-size: 0.84rem;
}

.khz-feedback-box form,
.khz-comment-form {
    display: grid;
    gap: 10px;
}

.khz-feedback-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.khz-feedback-box input,
.khz-feedback-box textarea,
.khz-comment-form input,
.khz-comment-form textarea {
    width: 100%;
    border: 1px solid rgba(219, 232, 223, 0.96);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--khz-public-ink);
    background: #ffffff;
}

.khz-feedback-box textarea,
.khz-comment-form textarea {
    resize: vertical;
}

.khz-feedback-box input:focus,
.khz-feedback-box textarea:focus,
.khz-comment-form input:focus,
.khz-comment-form textarea:focus {
    outline: 0;
    border-color: rgba(11, 127, 87, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(11, 127, 87, 0.1);
}

.khz-feedback-box button,
.khz-comment-form button {
    width: fit-content;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #0b7f57, #1b879f);
    font-weight: 900;
}

.khz-engagement {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(219, 232, 223, 0.78);
}

.khz-reaction-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.khz-reaction-row form {
    margin: 0;
}

.khz-reaction-row button,
.khz-comment-count {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    color: #40544b;
    border-radius: 999px;
    border: 1px solid rgba(219, 232, 223, 0.96);
    background: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
}

.khz-reaction-row button {
    cursor: pointer;
}

.khz-reaction-row button:hover {
    color: #0b6d4f;
    background: #edf8f2;
    border-color: rgba(11, 127, 87, 0.18);
}

.khz-reaction-row button strong {
    color: #0b7f57;
}

.khz-comments-box {
    border: 1px dashed rgba(11, 127, 87, 0.2);
    border-radius: 8px;
    background: rgba(248, 252, 249, 0.72);
}

.khz-comments-box summary {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: #0b6d4f;
    cursor: pointer;
    font-weight: 900;
}

.khz-comments-list {
    display: grid;
    gap: 8px;
    padding: 0 12px 10px;
}

.khz-comments-list article {
    padding: 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(219, 232, 223, 0.88);
}

.khz-comments-list strong {
    color: var(--khz-public-ink);
    font-size: 0.88rem;
}

.khz-comments-list p {
    margin: 5px 0 0;
    color: #52645c;
    line-height: 1.8;
    font-size: 0.86rem;
}

.khz-comment-form {
    padding: 0 12px 12px;
}

@media (max-width: 767.98px) {
    .khz-feedback-box,
    .khz-feedback-fields {
        grid-template-columns: 1fr;
    }

    .khz-feedback-box p {
        margin-right: 0;
    }

    .khz-feedback-box button,
    .khz-comment-form button {
        width: 100%;
    }
}

/* Elegant centered public logo header */
.khz-site-header {
    background: rgba(252, 253, 249, 0.96);
}

.khz-site-nav {
    min-height: 82px;
    padding-block: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.khz-site-menu {
    display: none;
}

.khz-nav-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.khz-nav-logo {
    position: relative;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 0;
    border-radius: 50%;
    border: 1px solid rgba(11, 127, 87, 0.18);
    background:
        radial-gradient(circle at 35% 25%, #ffffff 0 28%, #f8fcf8 54%, #eaf6f0 100%);
    box-shadow:
        0 10px 26px rgba(22, 37, 30, 0.1),
        0 0 0 5px rgba(255, 255, 255, 0.72),
        inset 0 0 0 4px rgba(237, 248, 242, 0.86);
}

.khz-nav-logo::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 1px solid rgba(217, 167, 46, 0.22);
    pointer-events: none;
}

.khz-nav-logo:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 127, 87, 0.3);
    box-shadow:
        0 14px 32px rgba(22, 37, 30, 0.14),
        0 0 0 5px rgba(255, 255, 255, 0.82),
        inset 0 0 0 4px rgba(237, 248, 242, 0.94);
}

.khz-nav-logo img {
    width: 84%;
    height: 84%;
    object-fit: contain;
    border-radius: 50%;
}

.khz-nav-brand-text {
    display: grid;
    gap: 3px;
    text-align: right;
    line-height: 1.3;
}

.khz-nav-brand-text strong {
    color: var(--khz-public-ink);
    font-size: clamp(1.05rem, 1.5vw, 1.34rem);
    font-weight: 900;
    white-space: nowrap;
}

.khz-nav-brand-text small {
    color: #0b7f57;
    font-size: clamp(0.78rem, 1vw, 0.92rem);
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .khz-site-nav {
        min-height: 70px;
        padding-block: 10px;
    }

    .khz-nav-logo {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .khz-nav-brand {
        gap: 10px;
    }

    .khz-nav-brand-text strong {
        font-size: 0.96rem;
    }

    .khz-nav-brand-text small {
        font-size: 0.72rem;
    }
}

@media (max-width: 420px) {
    .khz-nav-brand-text {
        display: none;
    }
}

/* Place the home title higher inside the green hero */
.khz-grand-hero {
    justify-content: flex-start;
    padding-top: clamp(24px, 3vw, 34px);
    padding-bottom: clamp(32px, 3.6vw, 44px);
}

.khz-grand-hero h1 {
    direction: rtl;
    unicode-bidi: isolate;
    max-width: min(100%, 820px);
    margin-top: 0;
    font-weight: 700;
    line-height: 1.28;
    text-wrap: balance;
    white-space: normal;
    word-spacing: 0.06em;
}

.khz-grand-subtitle {
    direction: rtl;
    unicode-bidi: isolate;
    margin-top: 6px;
    font-weight: 700;
}

.khz-nav-brand {
    max-width: min(100%, 520px);
}

.khz-nav-brand-text {
    min-width: 0;
}

.khz-nav-brand-text strong,
.khz-nav-brand-text small {
    direction: rtl;
    unicode-bidi: isolate;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .khz-grand-hero {
        padding-top: 22px;
        padding-bottom: 28px;
    }

    .khz-grand-hero h1 {
        font-size: clamp(1.9rem, 9vw, 2.7rem);
    }
}

.khz-grand-titleline {
    position: relative;
    z-index: 1;
    direction: rtl;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 16px);
    max-width: 100%;
}

.khz-grand-title-logo {
    flex: 0 0 auto;
    width: clamp(50px, 5.2vw, 72px);
    height: clamp(50px, 5.2vw, 72px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 30px rgba(7, 24, 18, 0.22);
}

.khz-grand-title-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.khz-grand-titleline h1 {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .khz-grand-titleline {
        gap: 9px;
    }

    .khz-grand-title-logo {
        width: 46px;
        height: 46px;
        padding: 5px;
    }
}

/* Refined public footer */
.khz-public-body {
    padding-bottom: 92px;
}

.khz-site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    min-height: 0;
    padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(204, 225, 216, 0.82);
    background:
        linear-gradient(90deg, rgba(245, 250, 246, 0.92), rgba(255, 252, 244, 0.92), rgba(244, 251, 250, 0.92)),
        rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px) saturate(1.16);
    -webkit-backdrop-filter: blur(18px) saturate(1.16);
    box-shadow: 0 -10px 32px rgba(24, 44, 36, 0.09);
}

.khz-site-footer-inner {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: center;
    gap: 14px;
    padding: 0 clamp(10px, 2vw, 18px);
    color: #425a51;
    font-size: 0.84rem;
    font-weight: 700;
}

.khz-footer-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(205, 226, 216, 0.96);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #123d31;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(28, 55, 45, 0.07);
}

.khz-footer-brand:hover {
    color: #0b7f57;
}

.khz-footer-logo {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(201, 224, 214, 0.9);
}

.khz-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.khz-footer-brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.khz-site-footer-inner > .khz-footer-content {
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1.5;
    white-space: normal;
}

.khz-footer-copy,
.khz-footer-credit {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.khz-footer-mark {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    padding: 3px;
    color: #0b7f57;
    background: #ffffff;
    border: 1px solid rgba(201, 224, 214, 0.9);
    box-shadow: 0 6px 15px rgba(11, 138, 97, 0.2);
}

.khz-footer-mark--logo {
    text-decoration: none;
}

.khz-footer-mark--logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.khz-footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.khz-footer-links a {
    padding: 4px 8px;
    border-radius: 999px;
    color: #557069;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid transparent;
}

.khz-footer-links a:hover {
    color: #0b7f57;
    border-color: rgba(184, 216, 202, 0.92);
}

.khz-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.khz-site-footer .khz-social-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.khz-site-footer .khz-social-title {
    display: none;
}

.khz-site-footer .khz-social-follow a,
.khz-site-footer .khz-social-link {
    width: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 999px;
    color: #0b7f57;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(198, 224, 213, 0.94);
    box-shadow: none;
}

.khz-site-footer .khz-social-follow a:hover {
    transform: translateY(-1px);
    color: #0b7f57;
    background: #ffffff;
    border-color: rgba(11, 127, 87, 0.28);
}

.khz-site-footer .khz-social-follow a span,
.khz-site-footer .khz-social-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.khz-site-footer .khz-social-follow i {
    color: currentColor;
    font-size: 0.86rem;
}

.khz-site-footer strong {
    color: #0b7f57;
    font-weight: 900;
}

/* Keep the home category shortcuts balanced after removing written-content sections. */
.khz-grand-categories {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-flow: initial;
    gap: 10px;
    overflow: visible;
}

.khz-grand-categories a {
    min-width: 0;
    min-height: 100px;
    padding: 10px 8px;
}

.khz-grand-categories span {
    width: 36px;
    height: 36px;
}

.khz-grand-categories strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.72rem, 0.72vw, 0.86rem);
    line-height: 1.35;
}

@media (max-width: 1199.98px) {
    .khz-grand-categories {
        grid-template-columns: repeat(8, minmax(112px, 1fr));
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: thin;
    }

    .khz-grand-categories a {
        min-height: 96px;
    }
}

@media (max-width: 767.98px) {
    .khz-public-body {
        padding-bottom: 152px;
    }

    .khz-site-footer {
        padding-top: 8px;
    }

    .khz-site-footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 8px;
        text-align: center;
    }

    .khz-footer-brand {
        max-width: min(100%, 240px);
        padding: 5px 10px;
    }

    .khz-site-footer-inner > .khz-footer-content {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }

    .khz-footer-copy,
    .khz-footer-credit {
        justify-content: center;
        width: 100%;
    }

    .khz-footer-links {
        width: 100%;
        flex-wrap: wrap;
    }

    .khz-footer-social,
    .khz-site-footer .khz-social-follow {
        width: 100%;
    }

    .khz-site-footer .khz-social-follow {
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .khz-public-body {
        padding-bottom: 162px;
    }

    .khz-footer-copy {
        font-size: 0.78rem;
    }

    .khz-footer-links a {
        padding: 3px 7px;
        font-size: 0.78rem;
    }
}

@media (max-width: 575.98px) {
    .khz-page-hero {
        padding-top: 98px;
    }

    .khz-page-hero .khz-page-hero-logo {
        top: 18px;
        width: 68px;
        height: 68px;
    }
}

.khz-public-back-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    color: #0b7f57;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.92rem;
    line-height: 1;
    border: 1px solid rgba(8, 122, 53, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--khz-public-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.khz-public-back-button:hover,
.khz-public-back-button:focus-visible {
    color: #075f42;
    background: #edf7f2;
    box-shadow: 0 12px 28px rgba(16, 35, 28, 0.13);
    transform: translateY(-1px);
    outline: none;
}

.khz-public-back-button i {
    font-size: 0.82rem;
}

.khz-section-tabs.khz-section-tabs--with-back {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.khz-section-tabs.khz-section-tabs--with-back a,
.khz-section-tabs.khz-section-tabs--with-back .khz-public-back-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    padding: 8px 5px;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.78rem;
    line-height: 1.15;
}

.khz-section-tabs.khz-section-tabs--with-back i {
    flex: 0 0 auto;
    font-size: 0.88em;
}

.khz-readers-marquee {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(219, 232, 223, 0.9);
    background:
        linear-gradient(90deg, rgba(237, 247, 242, 0.88), rgba(255, 255, 255, 0.96) 34%, rgba(255, 246, 220, 0.55));
    isolation: isolate;
}

.khz-readers-marquee::before,
.khz-readers-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(24px, 5vw, 72px);
    pointer-events: none;
}

.khz-readers-marquee::before {
    right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(247, 252, 249, 0.98));
}

.khz-readers-marquee::after {
    left: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(255, 250, 236, 0.98));
}

.khz-readers-marquee-track {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-padding-inline: 12px;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(11, 127, 87, 0.26) transparent;
    scrollbar-width: thin;
    animation: khz-readers-soft-glide 8s ease-in-out infinite alternate;
    will-change: transform;
}

.khz-readers-marquee:hover .khz-readers-marquee-track,
.khz-readers-marquee:focus-within .khz-readers-marquee-track {
    animation-play-state: paused;
}

.khz-readers-marquee-track::-webkit-scrollbar {
    height: 6px;
}

.khz-readers-marquee-track::-webkit-scrollbar-track {
    background: transparent;
}

.khz-readers-marquee-track::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(11, 127, 87, 0.22);
}

.khz-reader-marquee-card {
    width: clamp(210px, 22vw, 270px);
    min-height: 94px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    scroll-snap-align: start;
    padding: 13px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(219, 232, 223, 0.96);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 250, 0.94));
    box-shadow: 0 10px 26px rgba(22, 37, 30, 0.055);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.khz-reader-marquee-card .khz-reader-photo--large {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(22, 37, 30, 0.08);
}

.khz-reader-marquee-info {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.khz-reader-marquee-info strong {
    width: 100%;
    overflow: hidden;
    color: var(--khz-public-ink);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khz-name-prefix {
    color: var(--khz-public-green);
    font-weight: 900;
}

.khz-reader-marquee-info small {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    color: #896719;
    border: 1px solid rgba(217, 167, 46, 0.25);
    border-radius: 999px;
    background: rgba(255, 246, 220, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
}

.khz-reader-marquee-card:hover,
.khz-reader-marquee-card:focus-visible {
    color: inherit;
    background: #ffffff;
    transform: translateY(-3px);
    border-color: rgba(11, 127, 87, 0.32);
    box-shadow: 0 16px 34px rgba(22, 37, 30, 0.11);
    outline: none;
}

.khz-series-marquee .khz-readers-marquee-track {
    width: max-content;
    overflow: visible;
    padding-bottom: 2px;
    animation: khz-series-marquee-ltr 18s linear infinite;
}

.khz-series-marquee-card {
    width: clamp(250px, 26vw, 340px);
}

.khz-series-marquee-card .khz-reader-photo--large {
    display: inline-grid;
    place-items: center;
    color: #0b7f57;
    background: linear-gradient(135deg, #edf8f3, #fff7df);
}

.khz-series-marquee-card .khz-reader-marquee-info small {
    color: #4f675d;
    border-color: rgba(15, 139, 99, 0.16);
    background: rgba(237, 247, 242, 0.82);
}

@keyframes khz-readers-soft-glide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-34px);
    }
}

@keyframes khz-series-marquee-ltr {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .khz-readers-marquee-track,
    .khz-series-marquee .khz-readers-marquee-track {
        animation: none;
    }
}

.khz-home-strip {
    position: relative;
    overflow: visible;
    padding-top: 10px;
}

.khz-home-strip::-webkit-scrollbar {
    display: none;
}

.khz-home-strip-track {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.khz-home-strip--moving {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 10px;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(11, 127, 87, 0.22) transparent;
    scrollbar-width: thin;
}

.khz-home-strip--moving .khz-home-strip-track {
    width: max-content;
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    animation: khz-home-strip-soft-glide 8s ease-in-out infinite alternate;
    will-change: transform;
}

.khz-home-strip--moving:hover .khz-home-strip-track,
.khz-home-strip--moving:focus-within .khz-home-strip-track {
    animation-play-state: paused;
}

.khz-home-strip--moving .khz-home-strip-card {
    width: clamp(205px, 24vw, 255px);
    min-height: 76px;
    flex: 0 0 auto;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    scroll-snap-align: start;
}

.khz-home-strip--moving .khz-home-strip-icon {
    width: 44px;
    height: 44px;
}

.khz-home-strip--moving .khz-home-strip-info {
    gap: 5px;
}

.khz-home-strip--moving .khz-home-strip-info strong {
    font-size: 0.84rem;
    line-height: 1.45;
    -webkit-line-clamp: 1;
}

.khz-home-strip--moving .khz-home-strip-info small {
    min-height: 24px;
    max-width: 100%;
    padding: 3px 8px;
    font-size: 0.72rem;
}

.khz-home-strip--vertical {
    height: 96px;
    overflow: hidden;
    padding-inline: 0;
}

.khz-home-strip--vertical .khz-home-strip-track {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 10px;
    animation: khz-home-strip-rise 12s linear infinite;
    will-change: transform;
}

.khz-home-strip--vertical:hover .khz-home-strip-track,
.khz-home-strip--vertical:focus-within .khz-home-strip-track {
    animation-play-state: paused;
}

.khz-home-strip--vertical .khz-home-strip-card {
    min-height: 86px;
    flex: 0 0 86px;
}

.khz-home-strip--static {
    overflow: visible;
}

.khz-home-strip--static .khz-home-strip-track {
    display: grid;
    grid-template-columns: 1fr;
}

.khz-home-strip-card--lecture {
    min-height: 86px;
}

.khz-home-strip-card {
    width: 100%;
    min-height: 96px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 13px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(219, 232, 223, 0.96);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(22, 37, 30, 0.045);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.khz-home-strip--wide .khz-home-strip-track {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.khz-home-strip--wide .khz-home-strip-card {
    min-height: 126px;
}

.khz-home-strip-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--khz-public-green);
    border: 1px solid rgba(11, 127, 87, 0.14);
    border-radius: 8px;
    background: #edf7f2;
}

.khz-home-strip-icon img,
.khz-home-strip-card .khz-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.khz-home-strip-card .khz-mini-avatar {
    width: 54px;
    height: 54px;
    border-radius: 8px;
}

.khz-home-strip-info {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.khz-home-strip-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--khz-public-ink);
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.khz-home-strip-info small,
.khz-home-strip-card em {
    width: fit-content;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 800;
}

.khz-home-strip-info small {
    max-width: 100%;
    overflow: hidden;
    color: #566a60;
    border: 1px solid rgba(219, 232, 223, 0.9);
    background: rgba(247, 250, 245, 0.88);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khz-home-strip-info > span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--khz-public-muted);
    font-size: 0.82rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.khz-home-strip-info > .khz-home-recitation-line {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
    -webkit-line-clamp: unset;
}

.khz-home-recitation-line strong {
    flex: 0 1 auto;
    min-width: 0;
    display: block;
    overflow: hidden;
    color: var(--khz-public-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-line-clamp: unset;
}

.khz-home-recitation-line small {
    flex: 1 1 auto;
    min-width: 0;
    min-height: auto;
    display: block;
    overflow: hidden;
    padding: 0;
    color: #566a60;
    border: 0;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khz-home-title-divider {
    width: 26px;
    height: 1px;
    flex: 0 0 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 139, 99, 0.08), rgba(15, 139, 99, 0.72), rgba(217, 167, 46, 0.56));
}

.khz-home-strip-card em {
    grid-column: 2;
    align-self: end;
    justify-self: start;
    margin-top: -2px;
    color: #896719;
    border: 1px solid rgba(217, 167, 46, 0.24);
    background: rgba(255, 246, 220, 0.82);
}

.khz-home-strip-card:hover,
.khz-home-strip-card:focus-visible {
    color: inherit;
    background: #ffffff;
    transform: translateY(-3px);
    border-color: rgba(11, 127, 87, 0.3);
    box-shadow: 0 16px 34px rgba(22, 37, 30, 0.11);
    outline: none;
}

@keyframes khz-home-strip-soft-glide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-32px);
    }
}

@keyframes khz-home-strip-rise {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(calc(-50% - 5px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .khz-home-strip--moving .khz-home-strip-track,
    .khz-home-strip--vertical .khz-home-strip-track {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .khz-readers-marquee {
        padding: 10px;
    }

    .khz-reader-marquee-card {
        width: min(82vw, 250px);
        min-height: 88px;
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 11px;
    }

    .khz-reader-marquee-card .khz-reader-photo--large {
        width: 52px;
        height: 52px;
    }

    .khz-home-strip-card {
        grid-template-columns: 50px minmax(0, 1fr);
        min-height: 90px;
        padding: 11px;
    }

    .khz-home-strip-icon,
    .khz-home-strip-card .khz-mini-avatar {
        width: 50px;
        height: 50px;
    }

    .khz-home-strip--moving .khz-home-strip-card {
        width: min(76vw, 240px);
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .khz-home-strip--moving .khz-home-strip-icon {
        width: 42px;
        height: 42px;
    }
}

/* Mobile home hero and collapsible footer refinements */
.khz-footer-toggle {
    display: none;
}

@media (max-width: 575.98px) {
    .khz-grand-titleline {
        width: 100%;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .khz-grand-title-logo {
        width: 42px;
        height: 42px;
        padding: 5px;
    }

    .khz-grand-titleline h1,
    .khz-grand-hero h1 {
        flex: 0 1 auto;
        max-width: calc(100% - 50px);
        overflow: visible;
        font-size: clamp(1.48rem, 6.1vw, 1.9rem);
        line-height: 1.15;
        white-space: nowrap;
        word-spacing: 0;
    }
}

@media (max-width: 360px) {
    .khz-grand-title-logo {
        width: 38px;
        height: 38px;
    }

    .khz-grand-titleline h1,
    .khz-grand-hero h1 {
        max-width: calc(100% - 46px);
        font-size: 1.34rem;
    }
}

@media (max-width: 767.98px) {
    .khz-public-body {
        padding-bottom: 76px;
    }

    .khz-public-body.khz-footer-expanded {
        padding-bottom: 178px;
    }

    .khz-site-footer {
        padding-top: 7px;
        padding-bottom: calc(7px + env(safe-area-inset-bottom));
    }

    .khz-site-footer-inner {
        min-height: 46px;
        grid-template-columns: auto;
        justify-content: center;
        justify-items: center;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    .khz-footer-brand {
        max-width: min(calc(100vw - 92px), 230px);
        padding: 5px 10px;
    }

    .khz-footer-toggle {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        border: 1px solid rgba(198, 224, 213, 0.96);
        border-radius: 999px;
        color: #0b7f57;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 8px 20px rgba(28, 55, 45, 0.08);
    }

    .khz-footer-toggle:focus-visible {
        outline: 3px solid rgba(11, 127, 87, 0.22);
        outline-offset: 2px;
    }

    .khz-site-footer-inner > .khz-footer-content {
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }

    .khz-site-footer[data-collapsed="true"] .khz-footer-content {
        display: none;
    }

    .khz-site-footer[data-collapsed="false"] .khz-footer-content {
        display: flex;
    }
}

@media (max-width: 420px) {
    .khz-public-body {
        padding-bottom: 76px;
    }

    .khz-public-body.khz-footer-expanded {
        padding-bottom: 188px;
    }
}

/* Keep the home motto below the brand title and align the logo with it. */
.khz-grand-hero > .khz-grand-subtitle {
    order: 2;
    margin: 8px 0 0;
    line-height: 1.35;
}

.khz-grand-hero > .khz-grand-titleline {
    order: 1;
    margin: 0;
}

.khz-grand-hero > .khz-grand-search {
    order: 3;
}

.khz-grand-titleline h1 {
    font-weight: 900;
    text-align: center;
}

@media (max-width: 575.98px) {
    .khz-grand-hero > .khz-grand-subtitle {
        width: 100%;
        margin-top: 7px;
        font-size: clamp(1rem, 4.7vw, 1.18rem);
        text-align: center;
        white-space: nowrap;
    }

    .khz-grand-hero > .khz-grand-titleline {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
        gap: 9px;
    }

    .khz-grand-titleline h1,
    .khz-grand-hero h1 {
        max-width: calc(100% - 52px);
        font-size: clamp(1.42rem, 5.8vw, 1.78rem);
        line-height: 1.18;
        letter-spacing: 0;
    }

    .khz-grand-title-logo {
        width: 43px;
        height: 43px;
    }
}

.khz-confirm-modal {
    --bs-modal-width: 480px;
}

.khz-confirm-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(8, 33, 25, 0.26);
}

.khz-confirm-modal .modal-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 18px;
}

.khz-confirm-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #b93737;
    background: rgba(185, 55, 55, 0.1);
    border: 1px solid rgba(185, 55, 55, 0.18);
    font-size: 1.25rem;
}

.khz-confirm-copy {
    min-width: 0;
}

.khz-confirm-title {
    margin: 0 0 6px;
    color: var(--khz-public-ink);
    font-size: 1.08rem;
    font-weight: 900;
}

.khz-confirm-message {
    margin: 0;
    color: var(--khz-public-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.khz-confirm-modal .modal-footer {
    gap: 10px;
    justify-content: flex-start;
    padding: 14px 24px 22px;
    border: 0;
}

.khz-confirm-modal .btn {
    min-width: 94px;
    border-radius: 8px;
    font-weight: 800;
}

.khz-confirm-modal .btn-danger {
    border-color: #b93737;
    background: #b93737;
    box-shadow: 0 10px 24px rgba(185, 55, 55, 0.22);
}

.khz-field-scroll-overlay {
    position: fixed;
    z-index: 1045;
    display: none;
    max-height: min(46vh, 320px);
    overflow: auto;
    padding: 0.55rem 0.7rem;
    color: var(--khz-public-ink);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(8, 122, 53, 0.2);
    box-shadow: 0 16px 38px rgba(16, 35, 28, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.khz-field-scroll-track {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.8;
}

/* Unified readable content styling across public pages. */
.khz-public-section a:not(.btn):not(.khz-section-tabs a):not(.khz-public-page-link):not(.khz-series-files-btn),
.khz-home-panel a:not(.btn):not(.khz-series-files-btn),
.khz-public-card a:not(.btn),
.khz-series-table a:not(.btn) {
    color: var(--khz-public-ink);
    font-weight: 900;
    text-decoration: none;
}

.khz-public-section a:not(.btn):not(.khz-section-tabs a):not(.khz-public-page-link):not(.khz-series-files-btn):hover,
.khz-home-panel a:not(.btn):not(.khz-series-files-btn):hover,
.khz-public-card a:not(.btn):hover,
.khz-series-table a:not(.btn):hover {
    color: #0b6f53;
    text-decoration: none;
}

.khz-public-badge,
a.khz-public-badge,
span.khz-public-badge,
.khz-public-card .khz-public-badge,
.khz-series-table .khz-public-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    max-width: 100%;
    padding: 6px 12px;
    border: 1px solid rgba(15, 139, 99, 0.2);
    border-radius: 999px;
    color: #0b6f53 !important;
    background: linear-gradient(180deg, #ffffff, #edf8f2) !important;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: none;
}

a.khz-public-badge:hover,
.khz-public-card .khz-public-badge:hover,
.khz-series-table .khz-public-badge:hover {
    color: #ffffff !important;
    border-color: #0f8b63;
    background: #0f8b63 !important;
}

.khz-public-meta a,
.khz-public-meta span {
    color: var(--khz-public-muted);
    text-decoration: none;
}

.khz-public-meta a:hover {
    color: #0b6f53;
}

.khz-series-table-wrap,
.khz-public-card,
.khz-home-panel,
.khz-public-search {
    border-color: rgba(214, 229, 220, 0.95);
}

.khz-public-section table:not(.khz-series-table) {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.khz-public-section table:not(.khz-series-table) th,
.khz-public-section table:not(.khz-series-table) td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(214, 229, 220, 0.82);
    vertical-align: middle;
}

.khz-public-section table:not(.khz-series-table) thead th {
    color: var(--khz-public-ink);
    background: linear-gradient(180deg, #f7fbf8, #eff7f2);
    font-weight: 900;
}

.khz-public-card {
    border-color: rgba(214, 229, 220, 0.95);
}

/* Final responsive polish for tablets and phones. */
html {
    -webkit-text-size-adjust: 100%;
}

.khz-public-body {
    overflow-x: hidden;
    padding-bottom: 0;
}

.khz-site-footer {
    position: static;
}

.khz-public-container,
.khz-centered-page,
.khz-site-topbar .khz-header-tools {
    max-width: 100%;
}

.khz-public-card,
.khz-grand-section,
.khz-home-panel,
.khz-series-table-wrap,
.khz-public-search,
.khz-section-tabs a,
.khz-public-btn,
.khz-series-files-btn,
.khz-footer-links a {
    min-width: 0;
}

.khz-public-card h3,
.khz-section-head h2,
.khz-series-title-cell strong,
.khz-series-sheikh-cell strong,
.khz-series-sheikh-cell a,
.khz-public-badge,
.khz-footer-copy,
.khz-footer-credit {
    overflow-wrap: anywhere;
}

.khz-public-search input,
.khz-grand-search input,
.khz-hero-search input {
    min-width: 0;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .khz-site-topbar .khz-header-tools,
    .khz-public-container,
    .khz-centered-page {
        width: min(100% - 32px, 1100px);
    }

    .khz-grand-categories {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
    }

    .khz-grand-columns,
    .khz-feedback-box {
        grid-template-columns: 1fr;
    }

    .khz-public-grid,
    .khz-public-grid.four,
    .khz-readers-grid,
    .khz-scholars-grid,
    .khz-mosques-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .khz-section-tabs,
    .khz-section-tabs.khz-section-tabs--with-back {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .khz-series-table-wrap {
        overflow: visible !important;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .khz-series-table {
        min-width: 0 !important;
        display: block;
        table-layout: auto;
        border-collapse: separate;
    }

    .khz-series-table thead {
        display: none;
    }

    .khz-series-table tbody {
        display: grid;
        gap: 12px;
    }

    .khz-series-table tr {
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid rgba(214, 229, 220, 0.95);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(22, 37, 30, 0.065);
    }

    .khz-series-table td {
        width: 100% !important;
        display: grid;
        grid-template-columns: minmax(76px, 0.35fr) minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 0 !important;
        border: 0;
        text-align: right !important;
    }

    .khz-series-table td::before {
        color: var(--khz-public-muted);
        font-size: 0.76rem;
        font-weight: 900;
        line-height: 1.5;
    }

    .khz-audio-table td:nth-child(1)::before {
        content: "العنوان";
    }

    .khz-audio-table td:nth-child(2)::before {
        content: "التصنيف";
    }

    .khz-audio-table td:nth-child(3)::before {
        content: "الشخص";
    }

    .khz-audio-table td:nth-child(4)::before {
        content: "الملف";
    }

    .khz-khutbah-table td:nth-child(2)::before {
        content: "المسجد / التاريخ";
    }

    .khz-khutbah-table td:nth-child(3)::before {
        content: "الخطيب";
    }

    .khz-reader-table td:nth-child(1)::before {
        content: "القارئ";
    }

    .khz-reader-table td:nth-child(2)::before {
        content: "التلاوات";
    }

    .khz-reader-table td:nth-child(3)::before {
        content: "الملفات";
    }

    .khz-series-title-cell strong,
    .khz-series-title-cell span,
    .khz-series-track-title,
    .khz-series-now-playing strong {
        white-space: normal;
        text-overflow: clip;
    }

    .khz-series-sheikh-cell {
        min-width: 0;
        justify-content: flex-start !important;
    }
}

@media (max-width: 767.98px) {
    .khz-public-body {
        background-size: 34px 34px, 34px 34px, auto;
    }

    .khz-site-header {
        position: sticky;
        top: 0;
        z-index: 1020;
    }

    .khz-site-topbar .khz-header-tools,
    .khz-public-container,
    .khz-centered-page {
        width: min(100% - 22px, 720px);
    }

    .khz-site-topbar .khz-header-tools {
        padding-block: 7px;
    }

    .khz-date-widget {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .khz-date-widget::-webkit-scrollbar {
        display: none;
    }

    .khz-date-place,
    .khz-date-main,
    .khz-date-chip {
        flex: 0 0 auto;
        min-height: 32px;
        padding-inline: 10px;
        font-size: 0.76rem;
    }

    .khz-centered-page {
        margin-top: 14px;
        margin-bottom: 22px;
    }

    .khz-public-section {
        margin-bottom: 22px;
    }

    .khz-grand-hero,
    .khz-public-hero,
    .khz-page-hero {
        border-radius: 8px;
    }

    .khz-grand-hero {
        min-height: 0;
        padding: 24px 14px 18px;
    }

    .khz-grand-titleline {
        width: 100%;
        justify-content: center;
    }

    .khz-grand-titleline h1,
    .khz-grand-hero h1 {
        max-width: calc(100% - 54px);
        white-space: normal;
        text-wrap: balance;
    }

    .khz-grand-hero > .khz-grand-subtitle {
        white-space: normal;
        line-height: 1.55;
    }

    .khz-grand-search,
    .khz-hero-search,
    .khz-public-search {
        width: 100%;
        min-height: 52px;
        grid-template-columns: minmax(0, 1fr) 56px !important;
        gap: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 8px;
    }

    .khz-public-search {
        margin-bottom: 16px;
        background: #ffffff;
    }

    .khz-grand-search input,
    .khz-hero-search input,
    .khz-public-search input {
        min-height: 52px;
        padding-inline: 14px;
        border: 0;
        border-radius: 0;
    }

    .khz-grand-search button,
    .khz-hero-search button,
    .khz-public-search > button {
        width: 56px;
        min-width: 56px;
        min-height: 52px;
        padding: 0 !important;
        border-radius: 0;
        font-size: 0 !important;
    }

    .khz-grand-search button i,
    .khz-hero-search button i,
    .khz-public-search > button i {
        margin: 0;
        font-size: 1rem !important;
    }

    .khz-section-head {
        align-items: stretch;
        gap: 10px;
        padding-bottom: 12px;
    }

    .khz-section-head h2 {
        align-items: flex-start;
        font-size: 1.04rem;
        line-height: 1.55;
    }

    .khz-section-head h2 i {
        width: 32px;
        height: 32px;
        flex: 0 0 auto;
    }

    .khz-section-head p {
        margin: 5px 0 0;
        line-height: 1.75;
    }

    .khz-section-head a {
        width: fit-content;
        max-width: 100%;
    }

    .khz-grand-section,
    .khz-home-panel {
        padding: 14px;
    }

    .khz-grand-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
        overflow: visible;
    }

    .khz-grand-categories a {
        min-height: 94px;
        padding: 10px 8px;
    }

    .khz-grand-categories strong {
        white-space: normal;
    }

    .khz-public-grid,
    .khz-public-grid.four,
    .khz-readers-grid,
    .khz-scholars-grid,
    .khz-mosques-grid,
    .khz-feedback-fields,
    .khz-feedback-box {
        grid-template-columns: 1fr !important;
    }

    .khz-public-card {
        min-height: 0;
        padding: 15px;
    }

    .khz-public-card-top,
    .khz-public-meta {
        gap: 10px;
    }

    .khz-section-tabs,
    .khz-section-tabs.khz-section-tabs--with-back {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .khz-section-tabs a,
    .khz-public-back-button {
        min-height: 46px;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .khz-public-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .khz-public-page-links {
        justify-content: center;
    }

    .khz-public-page-link,
    .khz-public-page-ellipsis {
        min-width: 38px;
        min-height: 38px;
    }

    .khz-page-hero {
        min-height: 210px;
        margin-top: 14px;
        margin-bottom: 16px;
        padding: 88px 16px 24px;
    }

    .khz-page-hero .khz-page-hero-logo {
        top: 16px;
        width: 62px;
        height: 62px;
    }

    .khz-page-hero h1 {
        font-size: clamp(1.55rem, 8vw, 2.18rem);
        line-height: 1.25;
    }

    .khz-page-hero p {
        max-width: 100%;
        font-size: 0.94rem;
        line-height: 1.85;
    }

    .khz-series-sheikh-avatar {
        width: 42px;
        height: 42px;
    }

    .khz-series-files-btn,
    .khz-reader-profile-link,
    .khz-reader-album-view,
    .khz-scholar-album-view,
    .khz-modal-primary,
    .khz-modal-secondary {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }

    .khz-series-player-modal .modal-dialog {
        max-width: calc(100vw - 18px);
        margin-inline: auto;
    }

    .khz-about-modal .modal-dialog {
        max-width: calc(100vw - 18px);
        margin-inline: auto;
    }

    .khz-about-modal .modal-header,
    .khz-about-modal .modal-body,
    .khz-about-modal .modal-footer {
        padding-inline: 14px;
    }

    .khz-about-modal-heading {
        align-items: flex-start;
    }

    .khz-about-modal-logo {
        width: 46px;
        height: 46px;
    }

    .khz-about-modal-logo img {
        width: 36px;
        height: 36px;
    }

    .khz-about-modal-cards {
        grid-template-columns: 1fr;
    }

    .khz-about-modal-card {
        min-height: auto;
    }

    .khz-about-modal-link-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .khz-about-modal-link-list a {
        width: 100%;
        padding-inline: 10px;
    }

    .khz-series-player-modal .modal-header,
    .khz-series-player-modal .modal-body,
    .khz-series-player-modal .modal-footer {
        padding-inline: 14px;
    }

    .khz-series-now-playing,
    .khz-series-track-btn {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .khz-series-now-icon {
        width: 44px;
        height: 44px;
    }

    .khz-series-track-state,
    .khz-series-track-counter {
        grid-column: 1 / -1;
    }

    .khz-footer-toggle {
        display: inline-flex;
    }

    .khz-site-footer {
        position: sticky;
        bottom: 0;
        z-index: 1010;
    }
}

@media (max-width: 420px) {
    .khz-site-topbar .khz-header-tools,
    .khz-public-container,
    .khz-centered-page {
        width: min(100% - 16px, 420px);
    }

    .khz-grand-title-logo {
        width: 40px;
        height: 40px;
    }

    .khz-grand-titleline h1,
    .khz-grand-hero h1 {
        max-width: calc(100% - 48px);
        font-size: clamp(1.32rem, 6.6vw, 1.62rem);
    }

    .khz-grand-categories a {
        min-height: 88px;
    }

    .khz-public-card,
    .khz-grand-section,
    .khz-home-panel,
    .khz-series-table tr {
        padding: 12px;
    }

    .khz-series-table td {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .khz-series-table td::before {
        color: #0b6f53;
    }

    .khz-footer-copy,
    .khz-footer-credit {
        font-size: 0.76rem;
    }
}

@media (max-width: 575.98px) {
    .khz-date-widget {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        overflow: visible;
    }

    .khz-date-place,
    .khz-date-main,
    .khz-date-chip {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding-inline: 8px;
        white-space: normal;
        text-align: center;
    }
}

/* Home hero and footer toggle final tuning. */
.khz-grand-hero > .khz-grand-titleline {
    margin-bottom: 0;
}

.khz-grand-hero > .khz-grand-subtitle {
    display: block;
    max-width: min(100%, 760px);
    margin: 10px auto 0;
    color: #ffe9a9;
    font-weight: 900;
    line-height: 1.55;
    text-align: center;
    text-wrap: balance;
}

.khz-footer-toggle {
    overflow: hidden;
    padding: 5px;
    border-radius: 50%;
}

.khz-footer-toggle img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

.khz-site-footer[data-collapsed="false"] .khz-footer-toggle {
    border-color: rgba(11, 127, 87, 0.36);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(11, 127, 87, 0.18);
}

@media (max-width: 575.98px) {
    .khz-grand-hero {
        gap: 0;
        padding-top: 24px;
    }

    .khz-grand-titleline {
        align-items: center;
        gap: 8px;
    }

    .khz-grand-titleline h1,
    .khz-grand-hero h1 {
        max-width: calc(100% - 50px);
        font-size: clamp(1.48rem, 6vw, 1.82rem);
        line-height: 1.28;
    }

    .khz-grand-hero > .khz-grand-subtitle {
        width: 100%;
        margin-top: 8px;
        padding-inline: 8px;
        font-size: clamp(1rem, 4.6vw, 1.2rem);
        line-height: 1.6;
        white-space: normal;
    }

    .khz-grand-hero > .khz-grand-search {
        margin-top: 18px;
    }

    .khz-footer-toggle {
        width: 44px;
        height: 44px;
        padding: 5px;
    }
}

@media (max-width: 380px) {
    .khz-grand-title-logo {
        width: 38px;
        height: 38px;
    }

    .khz-grand-titleline h1,
    .khz-grand-hero h1 {
        max-width: calc(100% - 46px);
        font-size: 1.36rem;
    }

    .khz-grand-hero > .khz-grand-subtitle {
        font-size: 0.96rem;
    }
}

/* Clean public pages: keep headings and actions, hide decorative subtitles. */
.khz-grand-hero > .khz-grand-subtitle,
.khz-page-hero > p,
.khz-section-head p,
.khz-about-modal-heading p,
.khz-about-modal-section-head p {
    display: none !important;
}

.khz-section-head {
    align-items: center;
}

.khz-page-hero h1,
.khz-grand-hero h1 {
    margin-bottom: 0;
}

/* Keep the footer at the viewport bottom on short public pages. */
.khz-public-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.khz-public-body > main {
    width: 100%;
    flex: 1 0 auto;
}

.khz-site-footer {
    flex: 0 0 auto;
}

/* Latest series strip polish. */
.khz-series-marquee {
    direction: ltr;
    padding: 14px;
    border-color: rgba(15, 139, 99, 0.12);
    background:
        linear-gradient(90deg, rgba(246, 251, 248, 0.95), rgba(255, 255, 255, 0.98) 48%, rgba(253, 250, 239, 0.72));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 14px 30px rgba(16, 35, 28, 0.045);
}

.khz-series-marquee::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(247, 252, 249, 0.98));
}

.khz-series-marquee::after {
    background: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(254, 252, 244, 0.98));
}

.khz-series-marquee .khz-readers-marquee-track {
    width: max-content;
    gap: 0;
    align-items: center;
    direction: ltr;
    padding-block: 1px 7px;
    animation: khz-series-marquee-continuous 74s linear infinite;
}

.khz-series-marquee:hover .khz-readers-marquee-track,
.khz-series-marquee:focus-within .khz-readers-marquee-track {
    animation-play-state: paused;
}

.khz-series-marquee-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding-inline-end: 12px;
    direction: ltr;
}

.khz-series-marquee-card {
    position: relative;
    direction: rtl;
    width: clamp(276px, 25vw, 340px);
    min-height: 88px;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 13px;
    overflow: hidden;
    border-color: rgba(205, 224, 214, 0.86);
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 10px 24px rgba(16, 35, 28, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.khz-series-marquee-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 999px;
    background: var(--khz-public-green);
    opacity: 0.58;
}

.khz-series-marquee-card .khz-reader-photo--large {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(15, 139, 99, 0.12);
    box-shadow: 0 8px 16px rgba(15, 139, 99, 0.08);
}

.khz-series-marquee-card .khz-reader-marquee-info {
    gap: 6px;
}

.khz-series-marquee-card .khz-reader-marquee-info strong {
    font-size: 0.93rem;
    line-height: 1.42;
}

.khz-series-marquee-card .khz-reader-marquee-info small {
    min-height: 26px;
    max-width: 100%;
    overflow: hidden;
    color: #0b6f53;
    border-color: rgba(15, 139, 99, 0.13);
    background: rgba(241, 249, 245, 0.72);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.khz-series-count-bubble {
    min-width: 48px;
    height: 38px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: end;
    padding: 5px 9px;
    border: 1px solid rgba(217, 167, 46, 0.28);
    border-radius: 8px;
    color: #6c520d;
    background: rgba(255, 248, 221, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 8px 18px rgba(217, 167, 46, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.khz-series-count-bubble strong,
.khz-series-count-bubble small {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1;
}

.khz-series-count-bubble strong {
    color: inherit;
    font-size: 0.98rem;
    font-weight: 950;
    white-space: nowrap;
}

.khz-series-count-bubble small {
    margin-top: 2px;
    color: rgba(93, 67, 0, 0.86);
    font-size: 0.52rem;
    font-weight: 900;
}

.khz-series-marquee-card:hover .khz-series-count-bubble,
.khz-series-marquee-card:focus-visible .khz-series-count-bubble {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 10px 20px rgba(217, 167, 46, 0.16);
}

.khz-grand-section:has(.khz-series-marquee) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 249, 0.92));
    border-color: rgba(15, 139, 99, 0.14);
}

@media (max-width: 575.98px) {
    .khz-series-marquee {
        padding: 12px;
    }

    .khz-series-marquee .khz-readers-marquee-track {
        width: 100%;
        overflow-x: auto;
        animation: none;
    }

    .khz-series-marquee-card {
        width: min(88vw, 320px);
        min-height: 84px;
        grid-template-columns: 50px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px;
    }

    .khz-series-marquee-card .khz-reader-photo--large {
        width: 52px;
        height: 52px;
    }

    .khz-series-count-bubble {
        min-width: 44px;
        height: 36px;
        padding: 5px;
    }

    .khz-series-count-bubble strong {
        font-size: 0.94rem;
    }

    .khz-series-count-bubble small {
        font-size: 0.5rem;
    }
}

@keyframes khz-series-marquee-ltr {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-16.6667%);
    }
}

@keyframes khz-series-marquee-continuous {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.khz-grand-columns.khz-grand-columns--latest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.khz-grand-columns--latest .khz-grand-section {
    min-width: 0;
    height: 246px;
    min-height: 246px;
    display: grid;
    grid-template-rows: 58px minmax(0, 1fr);
    padding: 20px;
}

.khz-grand-columns--latest > .khz-grand-section {
    margin-top: 0 !important;
}

.khz-grand-columns--latest .khz-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 0;
    height: 58px;
    padding-bottom: 12px;
}

.khz-grand-columns--latest .khz-section-head h2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    margin: 0;
    font-size: clamp(0.94rem, 1.05vw, 1.08rem);
    line-height: 1.35;
    white-space: nowrap;
}

.khz-grand-columns--latest .khz-section-head p {
    display: none;
}

.khz-grand-columns--latest .khz-section-head a {
    align-self: center;
    padding: 7px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.khz-grand-columns--latest .khz-section-head h2 i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
}

.khz-grand-columns--latest .khz-home-strip {
    min-height: 0;
    padding-top: 14px;
}

.khz-grand-columns--latest .khz-home-strip--vertical {
    height: 132px;
    align-self: start;
}

.khz-grand-columns--latest .khz-home-strip--vertical .khz-home-strip-card {
    min-height: 61px;
    flex-basis: 61px;
}

.khz-grand-columns--latest .khz-home-strip--vertical .khz-home-strip-track {
    animation: khz-home-strip-rise 12s linear infinite;
}

.khz-grand-columns--latest .khz-home-strip-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
}

.khz-grand-columns--latest .khz-home-strip-icon,
.khz-grand-columns--latest .khz-home-strip-card .khz-mini-avatar {
    width: 42px;
    height: 42px;
}

.khz-grand-columns--latest .khz-home-recitation-line {
    gap: 6px;
}

.khz-grand-columns--latest .khz-home-recitation-line strong {
    font-size: 0.86rem;
}

.khz-grand-columns--latest .khz-home-recitation-line small {
    font-size: 0.72rem;
}

.khz-grand-columns--latest .khz-home-title-divider {
    width: 16px;
    flex-basis: 16px;
}

@media (max-width: 991.98px) {
    .khz-grand-columns.khz-grand-columns--latest {
        grid-template-columns: 1fr;
    }

    .khz-grand-columns--latest .khz-grand-section {
        height: auto;
        min-height: 224px;
    }

    .khz-grand-columns--latest .khz-home-strip--vertical {
        height: 116px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .khz-grand-columns.khz-grand-columns--latest {
        gap: 12px;
    }

    .khz-grand-columns--latest .khz-grand-section {
        padding: 16px;
    }

    .khz-grand-columns--latest .khz-section-head {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .khz-grand-columns--latest .khz-section-head a {
        justify-self: start;
    }
}

/* Professional responsive guardrails for smartphones and tablets. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas,
audio {
    max-width: 100%;
}

.khz-public-body {
    width: 100%;
    overflow-x: clip;
}

.khz-public-section,
.khz-grand-card,
.khz-grand-section,
.khz-public-card,
.khz-page-hero,
.khz-section-tabs,
.khz-series-player-modal .modal-content,
.khz-about-modal .modal-content {
    min-width: 0;
}

.khz-public-card,
.khz-grand-section,
.khz-home-strip-card,
.khz-reader-marquee-card,
.khz-section-tabs a,
.khz-public-back-button,
.khz-public-btn,
.khz-footer-links a,
.khz-series-files-btn,
.khz-modal-primary,
.khz-modal-secondary {
    touch-action: manipulation;
}

.khz-public-card h3,
.khz-public-card p,
.khz-section-head h2,
.khz-section-head a,
.khz-home-recitation-line,
.khz-reader-marquee-info,
.khz-footer-links a,
.khz-series-track-title,
.khz-series-now-playing strong {
    min-width: 0;
}

.khz-public-card h3,
.khz-public-card p,
.khz-home-recitation-line strong,
.khz-home-recitation-line small,
.khz-reader-marquee-info strong,
.khz-reader-marquee-info small,
.khz-page-hero h1,
.khz-grand-titleline h1 {
    overflow-wrap: anywhere;
}

.khz-public-section table:not(.khz-series-table) {
    max-width: 100%;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .khz-grand-card,
    .khz-public-section {
        margin-inline: auto;
    }

    .khz-grand-hero,
    .khz-page-hero {
        padding-inline: clamp(22px, 4vw, 38px);
    }

    .khz-grand-columns.khz-grand-columns--latest {
        grid-template-columns: 1fr;
    }

    .khz-grand-columns--latest .khz-grand-section {
        min-height: 0;
        height: auto;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .khz-grand-columns--latest .khz-section-head {
        height: auto;
    }

    .khz-grand-columns--latest .khz-home-strip--vertical {
        height: 132px;
    }

    .khz-public-card,
    .khz-grand-section {
        padding: clamp(16px, 2.4vw, 22px);
    }
}

@media (max-width: 991.98px) {
    .khz-khutbah-table td:nth-child(1)::before {
        content: "العنوان";
    }

    .khz-series-table td > * {
        min-width: 0;
    }

    .khz-series-table .khz-public-badge,
    .khz-series-files-btn {
        width: 100%;
        max-width: 100%;
    }

    .khz-public-section table:not(.khz-series-table) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    .khz-public-body {
        font-size: 0.95rem;
    }

    .khz-public-container,
    .khz-centered-page,
    .khz-site-topbar .khz-header-tools {
        width: min(100% - 18px, 720px);
    }

    .khz-grand-card,
    .khz-grand-section,
    .khz-home-panel,
    .khz-public-card,
    .khz-series-table tr {
        border-radius: 8px;
    }

    .khz-grand-card {
        margin-block: 10px 18px;
    }

    .khz-grand-hero {
        display: grid;
        gap: 16px;
        padding: 20px 12px 16px;
    }

    .khz-grand-titleline {
        gap: 9px;
    }

    .khz-grand-title-logo {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .khz-grand-titleline h1,
    .khz-grand-hero h1 {
        max-width: calc(100% - 52px);
        font-size: clamp(1.38rem, 6vw, 1.72rem);
        line-height: 1.35;
    }

    .khz-grand-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px;
    }

    .khz-grand-categories a {
        min-height: 86px;
    }

    .khz-section-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .khz-section-head a {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }

    .khz-grand-columns--latest .khz-grand-section {
        min-height: 0;
        height: auto;
        grid-template-rows: auto auto;
    }

    .khz-grand-columns--latest .khz-section-head {
        height: auto;
        grid-template-columns: 1fr;
    }

    .khz-grand-columns--latest .khz-section-head h2 {
        white-space: normal;
    }

    .khz-grand-columns--latest .khz-section-head a {
        justify-self: stretch;
    }

    .khz-grand-columns--latest .khz-home-strip--vertical {
        height: auto;
        max-height: 180px;
        overflow: auto;
    }

    .khz-home-strip--vertical .khz-home-strip-track {
        animation: none !important;
    }

    .khz-section-tabs,
    .khz-section-tabs.khz-section-tabs--with-back {
        display: flex !important;
        gap: 8px;
        margin-block: 10px 16px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .khz-section-tabs a,
    .khz-public-back-button {
        min-width: min(76vw, 260px);
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .khz-series-table td {
        grid-template-columns: minmax(84px, 0.42fr) minmax(0, 1fr);
    }

    .khz-series-player-modal .modal-dialog,
    .khz-about-modal .modal-dialog,
    .modal-dialog {
        max-width: calc(100vw - 18px);
        margin: 9px auto;
    }

    .khz-series-player-modal .modal-content,
    .khz-about-modal .modal-content,
    .modal-content {
        border-radius: 8px;
    }

    .khz-pro-player-actions {
        grid-template-columns: 1fr;
    }

    .khz-pro-control {
        min-height: 46px;
    }
}

@media (max-width: 420px) {
    .khz-public-container,
    .khz-centered-page,
    .khz-site-topbar .khz-header-tools {
        width: min(100% - 14px, 420px);
    }

    .khz-grand-categories {
        grid-template-columns: 1fr 1fr !important;
    }

    .khz-grand-categories a {
        min-height: 78px;
        padding: 9px 7px;
    }

    .khz-grand-categories span {
        width: 34px;
        height: 34px;
    }

    .khz-series-table td {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .khz-series-table td::before {
        font-size: 0.72rem;
    }

    .khz-footer-links {
        grid-template-columns: 1fr;
    }
}

/* Mobile parity fixes: keep public pages tidy and animated like desktop. */
@media (max-width: 767.98px) {
    .khz-section-tabs,
    .khz-section-tabs.khz-section-tabs--with-back {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .khz-section-tabs a,
    .khz-section-tabs.khz-section-tabs--with-back a,
    .khz-public-back-button,
    .khz-section-tabs.khz-section-tabs--with-back .khz-public-back-button {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        justify-content: center;
        padding: 10px 8px;
        overflow: visible;
        text-align: center;
        white-space: normal;
    }

    .khz-section-tabs a i,
    .khz-section-tabs.khz-section-tabs--with-back i {
        flex: 0 0 auto;
    }

    .khz-home-strip--vertical {
        height: 132px;
        max-height: none;
        overflow: hidden;
    }

    .khz-home-strip--vertical .khz-home-strip-track,
    .khz-grand-columns--latest .khz-home-strip--vertical .khz-home-strip-track {
        animation: khz-home-strip-rise 12s linear infinite !important;
    }

    .khz-series-marquee .khz-readers-marquee-track {
        width: max-content;
        overflow: visible;
        animation: khz-series-marquee-continuous 74s linear infinite !important;
    }

    .khz-pro-audio-player .khz-series-player-audio {
        display: block;
        width: 100%;
        min-height: 42px;
    }
}

@media (max-width: 420px) {
    .khz-section-tabs,
    .khz-section-tabs.khz-section-tabs--with-back {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .khz-section-tabs a,
    .khz-public-back-button {
        font-size: 0.78rem;
        line-height: 1.45;
    }
}

/* Clean audio modal on phones and tablets. */
@media (max-width: 991.98px) {
    .khz-series-player-modal .modal-dialog {
        max-width: min(100vw - 20px, 720px);
        margin: 10px auto;
    }

    .khz-series-player-modal .modal-content {
        border-radius: 8px;
        box-shadow: 0 18px 54px rgba(7, 32, 25, 0.28);
    }

    .khz-series-player-modal .modal-header {
        align-items: center;
        padding: 16px;
    }

    .khz-series-player-modal .modal-title {
        font-size: clamp(1.1rem, 4.8vw, 1.45rem);
        line-height: 1.45;
    }

    .khz-series-player-modal .modal-header .text-muted {
        margin-top: 3px;
        font-size: 0.82rem;
    }

    .khz-series-player-modal .modal-body {
        padding: 14px;
    }

    .khz-series-player-card {
        gap: 12px;
        padding: 14px;
        border-radius: 8px;
        box-shadow: none;
    }

    .khz-series-now-playing {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 12px;
        border-radius: 8px;
    }

    .khz-series-now-icon {
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }

    .khz-series-now-playing strong {
        font-size: 0.98rem;
        white-space: normal;
    }

    .khz-series-now-playing span {
        font-size: 0.78rem;
    }

    .khz-pro-audio-player {
        gap: 10px;
        padding: 12px;
        border-radius: 8px;
        background: linear-gradient(180deg, #ffffff, #f4fbf7);
    }

    .khz-pro-audio-player .khz-series-player-audio {
        display: block;
        width: 100%;
        min-height: 44px;
    }

    .khz-pro-player-timeline,
    .khz-pro-player-actions {
        display: none;
    }

    .khz-series-player-controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .khz-series-control-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .khz-series-download-btn,
    .khz-series-control-btn {
        width: 100%;
        min-height: 44px;
        border-radius: 8px;
    }

    .khz-series-player-modal .modal-footer {
        padding: 10px 14px 14px;
    }
}

@media (max-width: 767.98px) {
    .khz-series-player-modal .modal-dialog {
        max-width: calc(100vw - 22px);
        margin: 11px auto;
    }

    .khz-series-player-modal .modal-header {
        padding: 14px;
    }

    .khz-series-player-modal .modal-body {
        padding: 12px;
    }

    .khz-series-player-modal .modal-footer {
        display: none;
    }

    .khz-reader-table td:nth-child(1)::before {
        content: none;
        display: none;
    }

    .khz-reader-table td:nth-child(1) {
        grid-template-columns: 1fr;
    }

    .khz-quran-track-table td:nth-child(3) {
        display: none;
    }
}

/* Cleaner lecture cards on phones and tablets. */
@media (max-width: 991.98px) {
    .khz-audio-table tr {
        gap: 12px;
        padding: 14px 16px;
    }

    .khz-audio-table td {
        grid-template-columns: minmax(64px, max-content) minmax(0, 1fr);
        gap: 8px 12px;
    }

    .khz-audio-table td::before {
        color: #0b6f53;
        font-size: 0.76rem;
        line-height: 1.6;
    }

    .khz-audio-table td:nth-child(1),
    .khz-audio-table td:nth-child(4) {
        grid-template-columns: 1fr;
    }

    .khz-audio-table td:nth-child(1)::before,
    .khz-audio-table td:nth-child(4)::before {
        content: none;
        display: none;
    }

    .khz-audio-table td:nth-child(3)::before {
        content: none;
        display: none;
    }

    .khz-audio-table .khz-series-title-cell {
        padding-inline-start: 0;
    }

    .khz-audio-table .khz-series-title-cell strong {
        font-size: 1.02rem;
    }

    .khz-audio-table .khz-series-title-cell span {
        margin-top: 3px;
    }

    .khz-audio-table .khz-public-badge,
    .khz-audio-table .khz-series-files-btn {
        margin-inline: 0;
    }

    .khz-audio-table .khz-public-badge {
        width: auto;
        justify-self: start;
        padding-inline: 14px;
    }

    .khz-audio-table .khz-series-sheikh-cell {
        justify-content: flex-start !important;
    }

    .khz-audio-table:not(.khz-khutbah-table):not(.khz-quran-track-table) .khz-series-sheikh-cell a::before,
    .khz-audio-table:not(.khz-khutbah-table):not(.khz-quran-track-table) .khz-series-sheikh-cell > strong::before {
        content: "الشيخ: ";
        color: #0b6f53;
        font-weight: 900;
    }

    .khz-khutbah-table .khz-series-sheikh-cell a::before,
    .khz-khutbah-table .khz-series-sheikh-cell > strong::before {
        content: "الخطيب: ";
        color: #0b6f53;
        font-weight: 900;
    }

    .khz-quran-track-table .khz-series-sheikh-cell a::before,
    .khz-quran-track-table .khz-series-sheikh-cell > strong::before,
    .khz-reader-table .khz-series-sheikh-cell a::before,
    .khz-reader-table .khz-series-sheikh-cell > strong::before {
        content: "القارئ: ";
        color: #0b6f53;
        font-weight: 900;
    }

    .khz-audio-table .khz-series-files-btn {
        width: 100%;
    }

    .khz-reader-table tr {
        gap: 12px;
        padding: 14px 16px;
    }

    .khz-reader-table td {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px 12px;
    }

    .khz-reader-table td::before {
        color: #0b6f53;
        font-size: 0.76rem;
        line-height: 1.6;
    }

    .khz-reader-table td:nth-child(1)::before,
    .khz-reader-table td:nth-child(3)::before {
        content: none;
        display: none;
    }

    .khz-reader-table .khz-series-sheikh-cell {
        justify-self: start;
        max-width: 100%;
        gap: 12px;
    }

    .khz-reader-table .khz-series-sheikh-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .khz-reader-table .khz-series-sheikh-cell a,
    .khz-reader-table .khz-series-sheikh-cell strong {
        min-width: 0;
        max-width: calc(100% - 56px);
        overflow-wrap: anywhere;
    }

    .khz-reader-table .khz-series-files-btn {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .khz-audio-table tr {
        grid-template-columns: minmax(0, 1fr) max-content;
        grid-template-areas:
            "title category"
            "speaker speaker"
            "file file";
        align-items: center;
        gap: 12px 18px;
    }

    .khz-audio-table td:nth-child(1) {
        grid-area: title;
    }

    .khz-audio-table td:nth-child(2) {
        grid-area: category;
        display: flex;
        justify-content: flex-start;
    }

    .khz-audio-table td:nth-child(2)::before {
        content: none;
        display: none;
    }

    .khz-audio-table td:nth-child(3) {
        grid-area: speaker;
        grid-template-columns: minmax(0, 1fr);
        justify-content: start;
    }

    .khz-audio-table td:nth-child(3)::before {
        content: none;
        display: none;
    }

    .khz-audio-table td:nth-child(3) .khz-series-sheikh-cell {
        justify-self: start;
        max-width: 100%;
        gap: 12px;
    }

    .khz-audio-table td:nth-child(3) .khz-series-sheikh-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .khz-audio-table td:nth-child(3) .khz-series-sheikh-cell a,
    .khz-audio-table td:nth-child(3) .khz-series-sheikh-cell strong {
        min-width: 0;
        max-width: calc(100% - 56px);
        overflow-wrap: anywhere;
    }

    .khz-audio-table td:nth-child(4) {
        grid-area: file;
    }

    .khz-reader-table tr {
        grid-template-columns: minmax(0, 1fr) max-content;
        grid-template-areas:
            "reader count"
            "files files";
        align-items: center;
        gap: 12px 18px;
    }

    .khz-reader-table td:nth-child(1) {
        grid-area: reader;
    }

    .khz-reader-table td:nth-child(2) {
        grid-area: count;
        display: flex;
        justify-content: flex-start;
    }

    .khz-reader-table td:nth-child(2)::before {
        content: none;
        display: none;
    }

    .khz-reader-table td:nth-child(3) {
        grid-area: files;
    }
}

@media (max-width: 767.98px) {
    .khz-quran-track-table td:nth-child(3) {
        display: grid;
    }
}

/* Restore the home hero card subtitle and proportions. */
.khz-grand-card .khz-grand-hero > .khz-grand-subtitle {
    display: block !important;
    max-width: min(100%, 760px);
    margin: 8px auto 0;
    color: #ffe9a9;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
}

.khz-grand-title-main {
    white-space: nowrap;
}

.khz-grand-title-copy {
    min-width: 0;
    text-align: center;
}

.khz-grand-title-copy .khz-grand-subtitle {
    display: block !important;
    max-width: min(100%, 760px);
    margin: 8px auto 0;
    color: #ffe9a9;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .khz-grand-card .khz-grand-hero {
        padding: 34px 30px 30px;
    }

    .khz-grand-card .khz-grand-titleline {
        width: min(100%, 720px);
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-inline: auto;
    }

    .khz-grand-card .khz-grand-title-logo {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .khz-grand-card .khz-grand-titleline h1 {
        max-width: 100%;
        font-size: clamp(2.45rem, 5.2vw, 3.35rem);
        line-height: 1.22;
    }

    .khz-grand-card .khz-grand-hero > .khz-grand-subtitle {
        margin-top: 8px;
        font-size: clamp(1.08rem, 2.25vw, 1.35rem);
    }

    .khz-grand-card .khz-grand-hero > .khz-grand-search {
        margin-top: 18px;
    }
}

@media (max-width: 767.98px) {
    .khz-grand-card .khz-grand-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 0;
        padding: 28px 18px 22px;
    }

    .khz-grand-card .khz-grand-titleline {
        width: min(100%, 370px);
        display: grid;
        grid-template-columns: 50px minmax(0, 1fr);
        align-items: start;
        justify-content: center;
        gap: 10px;
        margin-inline: auto;
    }

    .khz-grand-card .khz-grand-title-logo {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        margin-top: 5px;
    }

    .khz-grand-card .khz-grand-titleline h1,
    .khz-grand-card .khz-grand-hero h1 {
        max-width: 100%;
        font-size: clamp(1.92rem, 7.1vw, 2.18rem);
        line-height: 1.22;
        text-align: center;
    }

    .khz-grand-card .khz-grand-title-sub {
        display: block;
    }

    .khz-grand-card .khz-grand-hero > .khz-grand-subtitle {
        width: min(100%, 360px);
        margin-top: 16px;
        padding-inline: 0;
        font-size: clamp(1.08rem, 4.75vw, 1.28rem);
        line-height: 1.45;
        text-wrap: balance;
    }

    .khz-grand-card .khz-grand-hero > .khz-grand-search {
        width: min(100%, 374px);
        margin-top: 18px;
    }
}

@media (max-width: 380px) {
    .khz-grand-card .khz-grand-hero {
        padding-inline: 14px;
    }

    .khz-grand-card .khz-grand-titleline {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 8px;
    }

    .khz-grand-card .khz-grand-title-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        margin-top: 4px;
    }

    .khz-grand-card .khz-grand-titleline h1,
    .khz-grand-card .khz-grand-hero h1 {
        font-size: 1.66rem;
    }
}

@media (max-width: 767.98px) {
    .khz-grand-card .khz-grand-titleline {
        width: 100%;
        max-width: 372px;
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: center;
        justify-self: center;
        gap: 12px;
        margin-inline: auto;
    }

    .khz-grand-card .khz-grand-title-logo {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        margin-top: 0;
    }

    .khz-grand-card .khz-grand-title-copy {
        text-align: center;
    }

    .khz-grand-card .khz-grand-titleline h1,
    .khz-grand-card .khz-grand-hero h1 {
        font-size: clamp(2.02rem, 7.45vw, 2.25rem);
        line-height: 1.16;
    }

    .khz-grand-card .khz-grand-title-sub {
        display: none;
    }

    .khz-grand-card .khz-grand-title-copy .khz-grand-subtitle {
        width: 100%;
        margin-top: 10px;
        padding-inline: 0;
        font-size: clamp(1rem, 4.35vw, 1.18rem);
        line-height: 1.45;
        text-wrap: balance;
    }

    .khz-grand-card .khz-grand-hero > .khz-grand-search {
        width: 100%;
        max-width: 374px;
        justify-self: center;
        margin-inline: auto;
        margin-top: 20px;
    }
}

@media (max-width: 380px) {
    .khz-grand-card .khz-grand-titleline {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 9px;
    }

    .khz-grand-card .khz-grand-title-logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .khz-grand-card .khz-grand-titleline h1,
    .khz-grand-card .khz-grand-hero h1 {
        font-size: 1.72rem;
    }

    .khz-grand-card .khz-grand-title-copy .khz-grand-subtitle {
        font-size: 0.96rem;
    }
}

@media (max-width: 420px) {
    .khz-audio-table td {
        grid-template-columns: minmax(62px, max-content) minmax(0, 1fr);
        gap: 6px 10px;
    }

    .khz-audio-table td:nth-child(1),
    .khz-audio-table td:nth-child(4) {
        grid-template-columns: 1fr;
    }
}

/* Full-width rotating site banners (final cascade overrides). */
.khz-ad-zone[data-khz-banner-slider] .khz-ad-card,
.khz-ad-zone[data-khz-banner-slider] .khz-ad-card:hover {
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    background: transparent;
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-card:not(.is-active) {
    transform: translateX(-3%);
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-card.is-active,
.khz-ad-zone[data-khz-banner-slider] .khz-ad-card.is-active:hover {
    transform: translateX(0);
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-media {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 8px;
}

@media (max-width: 991.98px) {
    .khz-ad-zone[data-khz-banner-slider] { width: 100%; margin-block: 16px 20px; }
    .khz-ad-track { min-height: 140px; max-height: 190px; aspect-ratio: 4 / 1; }
    .khz-ad-zone[data-khz-banner-slider] .khz-ad-media img { object-position: center; }
    .khz-ad-dot { width: 10px; height: 10px; }
}

@media (max-width: 575.98px) {
    .khz-ad-zone[data-khz-banner-slider] { margin-inline: 0; margin-block: 12px 18px; }
    .khz-ad-track { min-height: 110px; max-height: 150px; aspect-ratio: 3 / 1; border-radius: 7px; }
    .khz-ad-zone[data-khz-banner-slider] .khz-ad-card,
    .khz-ad-zone[data-khz-banner-slider] .khz-ad-media { border-radius: 7px; }
    .khz-ad-dots { bottom: 7px; gap: 6px; }
    .khz-ad-dot.is-active { width: 22px; }
}

/* Polished banner carousel motion and controls. */
.khz-ad-track {
    isolation: isolate;
    box-shadow: 0 16px 38px rgba(16, 35, 28, 0.12);
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-card {
    transform: translate3d(-4%, 0, 0) scale(1.015);
    transition: opacity .72s cubic-bezier(.22, 1, .36, 1),
                transform .82s cubic-bezier(.22, 1, .36, 1),
                visibility .82s;
    will-change: opacity, transform;
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-card.is-active {
    transform: translate3d(0, 0, 0) scale(1);
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-card.is-leaving-next {
    transform: translate3d(4%, 0, 0) scale(.99);
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-card.is-leaving-prev {
    transform: translate3d(-4%, 0, 0) scale(.99);
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-media img {
    transform: scale(1.025);
    transition: transform 5s linear;
}

.khz-ad-zone[data-khz-banner-slider] .khz-ad-card.is-active .khz-ad-media img {
    transform: scale(1);
}

.khz-ad-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(16, 35, 28, .42);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
    backdrop-filter: blur(7px);
    opacity: 0;
    transform: translateY(-50%) scale(.88);
    transition: opacity .25s ease, transform .25s ease, background .25s ease;
}

.khz-ad-arrow--prev { inset-inline-start: 14px; }
.khz-ad-arrow--next { inset-inline-end: 14px; }
.khz-ad-zone:hover .khz-ad-arrow,
.khz-ad-zone:focus-within .khz-ad-arrow { opacity: 1; transform: translateY(-50%) scale(1); }
.khz-ad-arrow:hover { background: rgba(8, 122, 53, .82); }

.khz-ad-progress {
    position: absolute;
    z-index: 4;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
    background: rgba(255, 255, 255, .2);
}

.khz-ad-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--khz-public-gold), #fff);
    transform: scaleX(0);
    transform-origin: right center;
}

.khz-ad-progress span.is-running { animation: khz-banner-progress 5s linear forwards; }
.khz-ad-zone.is-paused .khz-ad-progress span { animation-play-state: paused; }

@keyframes khz-banner-progress { to { transform: scaleX(1); } }

@media (max-width: 991.98px) {
    .khz-ad-arrow { width: 38px; height: 38px; opacity: .86; transform: translateY(-50%); }
    .khz-ad-arrow--prev { inset-inline-start: 9px; }
    .khz-ad-arrow--next { inset-inline-end: 9px; }
}

@media (max-width: 575.98px) {
    .khz-ad-arrow { width: 34px; height: 34px; font-size: .8rem; }
    .khz-ad-dots { bottom: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .khz-ad-card, .khz-ad-media img, .khz-ad-progress span { transition: none !important; animation: none !important; }
}

/* Final home-shortcuts layout: one row on desktop, horizontally scrollable on touch devices. */
.khz-grand-categories {
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.khz-grand-categories > a { scroll-snap-align: start; }
@media (max-width: 1199.98px) {
    .khz-grand-categories { grid-template-columns: repeat(9, minmax(112px, 1fr)) !important; }
}
@media (max-width: 575.98px) {
    .khz-grand-categories { grid-template-columns: repeat(9, minmax(96px, 1fr)) !important; gap: 8px !important; }
    .khz-grand-categories > a { min-height: 82px !important; }
    .khz-grand-categories strong { font-size: .72rem !important; }
}

/* Albums: the same visual structure and four-column rhythm as public pages. */
.khz-albums-content { min-height: calc(100vh - 560px); }

.khz-albums-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: start;
    width: 100%;
    gap: 18px;
    margin-top: 20px;
}

.khz-album-card {
    position: relative;
    width: 100%;
    isolation: isolate;
}

.khz-album-card::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.38) 48%, transparent 66%);
    opacity: 0;
    transform: translateX(65%);
    transition: opacity .25s ease, transform .7s ease;
}

.khz-album-card:hover::after {
    opacity: .7;
    transform: translateX(-65%);
}

.khz-album-card:hover {
    border-color: rgba(12, 139, 98, .35);
    transform: translateY(-7px) scale(1.012);
    box-shadow: 0 26px 65px rgba(8, 83, 59, .18);
}

@media (max-width: 991.98px) {
    .khz-albums-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 575.98px) {
    .khz-albums-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Public section navigation: always one row; swipe horizontally on narrow screens. */
.khz-section-tabs,
.khz-section-tabs.khz-section-tabs--with-back {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.khz-section-tabs > a,
.khz-section-tabs.khz-section-tabs--with-back > a,
.khz-section-tabs > .khz-public-back-button {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    width: auto !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
}

@media (max-width: 991.98px) {
    .khz-section-tabs > a,
    .khz-section-tabs.khz-section-tabs--with-back > a,
    .khz-section-tabs > .khz-public-back-button {
        min-width: 112px !important;
        flex: 0 0 112px !important;
    }
}

@media (max-width: 575.98px) {
    .khz-section-tabs > a,
    .khz-section-tabs.khz-section-tabs--with-back > a,
    .khz-section-tabs > .khz-public-back-button {
        min-width: 100px !important;
        min-height: 46px;
        flex-basis: 100px !important;
        font-size: .72rem !important;
    }
}

/* Elegant albums counter. */
.khz-albums-count {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 13px 7px 16px;
    overflow: hidden;
    color: #075f45;
    border: 1px solid rgba(11, 139, 98, .22);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,.98), #e9f8f1);
    box-shadow: 0 9px 24px rgba(8, 91, 63, .1), inset 0 1px 0 #fff;
    white-space: nowrap;
}

.khz-albums-count i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #0c9568, #06704f);
    box-shadow: 0 6px 14px rgba(8, 120, 83, .25);
}

.khz-albums-count strong { font-size: 1.05rem; font-weight: 950; line-height: 1; }
.khz-albums-count span { color: #527267; font-size: .74rem; font-weight: 800; }

/* Shared public-page safeguards for phones and tablets. */
.khz-public-body,
.khz-public-body main { max-width: 100%; overflow-x: clip; }
.khz-public-body img { max-width: 100%; }

@media (max-width: 991.98px) {
    .khz-public-hero { min-height: 220px; padding-inline: clamp(18px, 5vw, 36px); }
    .khz-public-section { min-width: 0; }
    .khz-section-head { gap: 12px; }
    .khz-album-card-actions { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .khz-public-hero { min-height: 180px; border-radius: 16px; }
    .khz-public-hero h1 { font-size: clamp(1.7rem, 9vw, 2.3rem); }
    .khz-public-section { padding-inline: 0; }
    .khz-albums-content .khz-section-head {
        align-items: center;
        flex-direction: row;
    }
    .khz-albums-content .khz-section-head h2 { font-size: 1rem; }
    .khz-albums-content .khz-section-head p { display: none; }
    .khz-albums-count { min-height: 38px; padding: 5px 8px 5px 11px; gap: 6px; }
    .khz-albums-count i { width: 25px; height: 25px; font-size: .72rem; }
}

/* Framed albums section. */
.khz-albums-content {
    margin-block: 18px 32px;
    padding: clamp(18px, 2.4vw, 28px) !important;
    border: 1px solid rgba(19, 91, 66, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 38px rgba(17, 65, 48, .08);
}

.khz-albums-content .khz-section-head {
    margin-bottom: 4px;
}

@media (max-width: 575.98px) {
    .khz-albums-content {
        margin-block: 12px 22px;
        padding: 14px !important;
        border-radius: 16px;
        box-shadow: 0 9px 26px rgba(17, 65, 48, .07);
    }
}

/* Simple Gregorian/Hijri badges in the album viewer. */
.khz-album-viewer .modal-header { position: relative; gap: 14px; }
.khz-viewer-heading { min-width: 0; }
.khz-viewer-dates {
    position: absolute;
    top: 50%;
    left: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    transform: translateY(-50%);
}

.khz-viewer-date {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    color: #eafff7;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(7px);
    white-space: nowrap;
    font-size: .72rem;
}

.khz-viewer-date i { color: #f8d66a; }
.khz-viewer-date b { font-weight: 850; }
.khz-viewer-date--hijri { background: rgba(247, 207, 89, .12); }

@media (max-width: 767.98px) {
    .khz-album-viewer .modal-header { flex-wrap: wrap; gap: 8px; }
    .khz-viewer-heading { flex: 1 1 calc(100% - 45px); }
    .khz-viewer-dates {
        position: static;
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin: 0;
        transform: none;
    }
    .khz-viewer-date { min-height: 28px; padding: 4px 8px; font-size: .66rem; }
}
