﻿:root {
    --kh-primary: #8b1538;
    --kh-primary-hover: #6f102c;
    --kh-accent: #8b1538;
    --kh-text: #1c1c1c;
    --kh-text-muted: #5c5c5c;
    --kh-border: #e5e5e5;
    --kh-bg: #fafafa;
    --kh-surface: #ffffff;
    --kh-radius: 4px;
    --kh-fs-xs: 0.75rem;
    --kh-fs-sm: 0.8125rem;
    --kh-fs-base: 0.9375rem;
    --kh-fs-md: 1rem;
    --kh-fs-lg: 1.125rem;
    --kh-line: 1.75;
    --kh-slider-h: 380px;
}

* { box-sizing: border-box; }

body {
    color: var(--kh-text);
    background: var(--kh-bg);
    font-size: 0.9375rem;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--kh-primary); }

.site-header {
    background: var(--kh-surface);
    border-bottom: 1px solid var(--kh-border);
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.site-header-top {
    background: #f5f5f5;
    border-bottom: 1px solid var(--kh-border);
    font-size: 0.75rem;
    color: var(--kh-text-muted);
    padding: 0.4rem 0;
}

.site-header-top i {
    color: var(--kh-primary);
    margin-left: 0.25rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--kh-text);
}

.site-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--kh-primary);
    color: #fff;
    border-radius: var(--kh-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.site-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--kh-radius);
    flex-shrink: 0;
    background: #fff;
}

.site-logo-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--kh-text-muted);
    margin-top: 0.1rem;
}

.site-search .form-control {
    border-radius: var(--kh-radius) 0 0 var(--kh-radius);
    border-color: var(--kh-border);
    font-size: 0.85rem;
}

.site-search .btn {
    border-radius: 0 var(--kh-radius) var(--kh-radius) 0;
    background: var(--kh-primary);
    border-color: var(--kh-primary);
}

.site-search .btn:hover {
    background: var(--kh-primary-hover);
    border-color: var(--kh-primary-hover);
}

.site-nav {
    background: var(--kh-surface);
}

.site-nav .nav-link {
    color: var(--kh-text);
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}

.site-nav .nav-link i {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 0.35rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--kh-primary);
    border-bottom-color: var(--kh-primary);
}

.news-slider-section {
    border: 1px solid var(--kh-border);
    background: var(--kh-surface);
    overflow: hidden;
}

.news-slider-grid {
    height: var(--kh-slider-h);
}

@media (min-width: 992px) {
    :root { --kh-slider-h: 400px; }
}

.news-slider-grid > .col-lg-8 {
    display: flex;
    flex-direction: column;
}

.news-hero-carousel {
    position: relative;
    flex: 1;
    height: var(--kh-slider-h);
    overflow: hidden;
}

.news-hero-carousel .carousel-inner,
.news-hero-carousel .carousel-item {
    height: var(--kh-slider-h);
}

.news-slide-link {
    display: block;
    position: relative;
    height: var(--kh-slider-h);
    color: #fff;
    overflow: hidden;
}

.news-slide-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #1a1a1a;
}

.news-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-slide-img.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #666;
    background: #2a2a2a;
}

.news-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.05) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.75rem 2rem;
}

.news-slide-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--kh-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 2px;
    margin-bottom: 0.65rem;
    width: fit-content;
}

.news-slide-title {
    font-size: var(--kh-fs-lg);
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 0.4rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .news-slide-title { font-size: 1.25rem; }
}

.news-slide-excerpt {
    font-size: var(--kh-fs-sm);
    opacity: 0.92;
    line-height: 1.6;
    margin-bottom: 0.65rem;
    max-width: 92%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-slide-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.95;
}

.news-slide-meta i { margin-left: 0.25rem; }

.news-slide-more {
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 1px;
}

.news-slide-link:hover .news-slide-more {
    border-bottom-color: #fff;
}

.news-carousel-indicators {
    margin-bottom: 0.5rem;
    gap: 0.35rem;
}

.news-carousel-indicators [data-bs-target] {
    width: 28px;
    height: 3px;
    border-radius: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: width 0.25s, background 0.25s;
}

.news-carousel-indicators .active {
    width: 40px;
    background: #fff;
}

.news-carousel-control {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 2px;
}

.news-carousel-control:hover {
    opacity: 1;
    background: var(--kh-primary);
}

.news-slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.news-slide-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: var(--kh-primary);
}

@keyframes newsProgress {
    from { width: 0; }
    to { width: 100%; }
}

.news-slider-thumbs {
    height: var(--kh-slider-h);
    display: flex;
    flex-direction: column;
    background: #f7f7f7;
    border-right: 1px solid var(--kh-border);
    overflow-x: hidden;
    overflow-y: auto;
}

.news-thumbs-header {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--kh-primary);
    background: var(--kh-surface);
    border-bottom: 2px solid var(--kh-primary);
}

.news-thumbs-header i { margin-left: 0.35rem; }

.news-thumb-item {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--kh-border);
    background: transparent;
    text-align: right;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
    flex: 0 0 auto;
    min-height: 72px;
    max-height: 88px;
}

.news-thumb-item:hover {
    background: #eee;
}

.news-thumb-item.active {
    background: var(--kh-surface);
    box-shadow: inset 4px 0 0 var(--kh-primary);
}

.news-thumb-num {
    flex-shrink: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--kh-text-muted);
    background: #efefef;
}

.news-thumb-item.active .news-thumb-num {
    background: var(--kh-primary);
    color: #fff;
}

.news-thumb-item img,
.news-thumb-placeholder {
    width: 84px;
    height: 64px;
    min-width: 84px;
    min-height: 64px;
    max-height: 64px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.news-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
    font-size: 1.1rem;
}

.news-thumb-body {
    flex: 1;
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-thumb-cat {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--kh-primary);
    margin-bottom: 0.15rem;
}

.news-thumb-title {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--kh-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-thumb-date {
    font-size: 0.68rem;
    color: var(--kh-text-muted);
    margin-top: 0.2rem;
}

@media (max-width: 991px) {
    .news-slider-thumbs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        min-height: auto;
        border-right: 0;
        border-top: 1px solid var(--kh-border);
    }

    .news-thumbs-header {
        display: none;
    }

    .news-thumb-item {
        flex: 0 0 220px;
        border-bottom: 0;
        border-left: 1px solid var(--kh-border);
    }

    .news-thumb-num { display: none; }
}

.news-card {
    background: var(--kh-surface);
    border: 1px solid var(--kh-border);
    height: 100%;
    transition: border-color .2s;
}

.news-card:hover {
    border-color: #ccc;
}

.news-card-img {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
    display: block;
}

.news-card-body { padding: 1rem 1.1rem; }

.news-card-cat {
    color: var(--kh-primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.news-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--kh-text);
    margin: 0.35rem 0;
}

.news-card-meta {
    font-size: 0.72rem;
    color: var(--kh-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    color: var(--kh-text);
    padding-bottom: 0.65rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--kh-primary);
}

.section-title a.more-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--kh-text-muted);
}

.section-title a.more-link:hover {
    color: var(--kh-primary);
}

.sidebar-box {
    background: var(--kh-surface);
    border: 1px solid var(--kh-border);
    padding: 1rem 1.1rem;
}

.side-list-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--kh-border);
}

.side-list-item:last-child { border-bottom: 0; }

.side-list-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: var(--kh-radius);
    border: 1px solid var(--kh-border);
}

.side-list-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--kh-text);
}

.article-single .article-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--kh-border);
}

.article-single .article-cat {
    display: inline-block;
    font-size: var(--kh-fs-xs);
    font-weight: 600;
    color: var(--kh-primary);
    background: rgba(139, 21, 56, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 2px;
    margin-bottom: 0.6rem;
}

.article-single .article-cat:hover {
    color: var(--kh-primary-hover);
}

.article-single .article-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 0.65rem;
    color: var(--kh-text);
}

@media (min-width: 768px) {
    .article-single .article-title { font-size: 1.5rem; }
}

.article-single .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: var(--kh-fs-sm);
    color: var(--kh-text-muted);
}

.article-single .article-meta i {
    color: var(--kh-primary);
    margin-left: 0.2rem;
}

.article-single .article-featured {
    margin: 0 0 1.25rem;
    border-radius: var(--kh-radius);
    overflow: hidden;
    border: 1px solid var(--kh-border);
    aspect-ratio: 16 / 9;
    background: #eee;
}

.article-single .article-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-single .article-excerpt {
    font-size: var(--kh-fs-base);
    color: var(--kh-text-muted);
    line-height: var(--kh-line);
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    border-right: 3px solid var(--kh-primary);
    background: #f7f7f7;
}

.article-single .article-content {
    font-size: var(--kh-fs-base);
    line-height: var(--kh-line);
    color: var(--kh-text);
}

.article-single .article-content p {
    margin-bottom: 1rem;
}

.article-single .article-content h2 {
    font-size: var(--kh-fs-lg);
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.article-single .article-content h3 {
    font-size: var(--kh-fs-md);
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
}

.article-single .article-content h4 {
    font-size: var(--kh-fs-base);
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.article-single .article-content ul,
.article-single .article-content ol {
    margin-bottom: 1rem;
    padding-right: 1.25rem;
}

.article-single .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--kh-radius);
    margin: 0.75rem 0 1.1rem;
    display: block;
}

.article-single .article-content img.content-image.aligncenter,
.article-single .article-content figure.aligncenter img {
    margin-inline: auto;
}

.article-single .article-content img.content-image.alignright {
    margin-right: 0;
    margin-left: auto;
}

.article-single .article-content img.content-image.alignleft {
    margin-left: 0;
    margin-right: auto;
}

.article-single .article-content img.content-image.size-full { width: 100%; }
.article-single .article-content img.content-image.size-large { width: min(100%, 720px); }
.article-single .article-content img.content-image.size-medium { width: min(100%, 420px); }
.article-single .article-content img.content-image.size-small { width: min(100%, 240px); }

.article-single .article-content figure.content-image {
    margin: 1.25rem 0;
    max-width: 100%;
}

.article-single .article-content a {
    color: var(--kh-primary);
    text-decoration: underline;
}

.article-single .article-content blockquote {
    margin: 1rem 0;
    padding: 0.65rem 1rem;
    border-right: 3px solid var(--kh-border);
    background: #f9f9f9;
    font-size: var(--kh-fs-sm);
    color: var(--kh-text-muted);
}

.site-footer {
    background: #2b2b2b;
    color: rgba(255,255,255,.75);
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
    border-top: 3px solid var(--kh-primary);
}

.site-footer h5 {
    font-size: 1rem;
    font-weight: 700;
}

.site-footer a.text-white-50:hover {
    color: #fff !important;
}

.site-footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.site-footer-tagline {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.site-footer-about {
    font-size: 0.82rem;
    line-height: 1.7;
    opacity: 0.9;
}

.site-footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.site-footer-contact li + li {
    margin-top: 0.4rem;
}

.site-footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.site-footer-contact a:hover {
    color: #fff;
}

.site-footer-phone {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.site-footer-dev {
    font-size: 0.75rem;
    opacity: 0.85;
}

.site-footer-dev-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: color 0.2s, border-color 0.2s;
}

.site-footer-dev-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.placeholder-img {
    background: #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.5rem;
}

.pagination .page-link {
    color: var(--kh-primary);
    border-color: var(--kh-border);
    font-size: 0.85rem;
}

.pagination .page-item.active .page-link {
    background: var(--kh-primary);
    border-color: var(--kh-primary);
}

.news-ticker {
    display: flex;
    align-items: stretch;
    background: var(--kh-primary);
    color: #fff;
    font-size: 0.8rem;
    overflow: hidden;
    min-height: 36px;
}

.news-ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1rem;
    background: rgba(0,0,0,.15);
    font-weight: 700;
    white-space: nowrap;
}

.news-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 40s linear infinite;
}

.news-ticker:hover .news-ticker-track {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    color: #fff;
    white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,.2);
}

.news-ticker-item:hover { color: #fff; opacity: 0.9; }

.news-ticker-cat {
    background: rgba(255,255,255,.2);
    padding: 0.1rem 0.45rem;
    border-radius: 2px;
    font-size: 0.7rem;
}

.sidebar-box-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--kh-primary);
}

.archive-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-cat-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.5rem;
    font-size: 0.85rem;
    border-radius: var(--kh-radius);
    color: var(--kh-text);
}

.archive-cat-list a:hover,
.archive-cat-list a.active {
    background: #f5f5f5;
    color: var(--kh-primary);
}

.archive-cat-list .badge { margin-right: auto; font-weight: 500; }

.post-gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--kh-border);
    background: #f5f5f5;
    border-radius: var(--kh-radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.post-gallery-thumb img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform .2s;
}

.post-gallery-thumb:hover img { transform: scale(1.03); }

.post-gallery-caption {
    display: block;
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
    background: rgba(0,0,0,.65);
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.comment-form .card-body { padding: 1.25rem; }

.comment-list { margin: 0; }

.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--kh-border);
}

.comment-avatar {
    font-size: 2rem;
    color: var(--kh-text-muted);
    line-height: 1;
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--kh-text-muted);
    margin-bottom: 0.35rem;
}

.comment-meta strong { color: var(--kh-text); margin-left: 0.5rem; }

.comment-replies {
    margin: 0.75rem 0 0 1rem;
    padding-right: 1rem;
    border-right: 2px solid var(--kh-border);
}

.comment-reply { padding: 0.5rem 0; }

.comment-reply-toggle {
    color: var(--kh-accent);
    font-size: 0.8rem;
    text-decoration: none;
}

.comment-reply-toggle:hover { color: #6f102c; }

.comment-reply-form .card-body { background: #fafafa; }

.members-section {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    border-top: 1px solid var(--kh-border);
}

.members-section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.members-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.members-title-line {
    display: inline-block;
    width: 36px;
    height: 3px;
    background: var(--kh-accent);
    border-radius: 2px;
}

.members-section-sub { font-size: 0.85rem; }

.members-carousel { padding: 0 2.75rem 2rem; position: relative; }

.members-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    align-items: start;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
}

.member-card {
    text-align: center;
    padding: 0.35rem 0.25rem;
    width: 100%;
    max-width: 180px;
}

.member-photo-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(139, 21, 56, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.member-card:hover .member-photo-wrap {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 21, 56, 0.18);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--kh-text);
}

.member-position {
    font-size: 0.78rem;
    color: var(--kh-text-muted);
    margin: 0;
}

.members-control {
    width: 2.25rem;
    height: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.members-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: #fff;
    border: 1px solid var(--kh-border);
    border-radius: 50%;
    color: var(--kh-accent);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: background 0.2s, color 0.2s;
}

.members-control:hover .members-control-icon {
    background: var(--kh-accent);
    color: #fff;
    border-color: var(--kh-accent);
}

.carousel-control-prev.members-control { right: 0; left: auto; }
.carousel-control-next.members-control { left: 0; right: auto; }

.members-indicators {
    position: static;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.members-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    opacity: 1;
    margin: 0 4px;
}

.members-indicators .active {
    background-color: var(--kh-accent);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .members-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.75rem; }
}

@media (max-width: 575px) {
    .members-carousel { padding: 0 1.75rem 1.5rem; }
    .member-photo-wrap { width: 110px; height: 110px; }
    .member-card { max-width: 150px; }
}

.jehadi-banner-wrap {
    padding: 1.25rem 0 0.75rem;
    background: var(--kh-bg);
}

.jehadi-banner-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--kh-border);
    background: var(--kh-surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    line-height: 0;
    transition: box-shadow 0.25s, transform 0.25s;
}

.jehadi-banner-card:hover {
    box-shadow: 0 8px 28px rgba(139, 21, 56, 0.12);
    transform: translateY(-2px);
}

.jehadi-banner-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.jehadi-banner-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--kh-primary), #a01d45);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .jehadi-banner-wrap { padding: 1.5rem 0 1rem; }
    .jehadi-banner-card img { max-height: 240px; }
}

.jehadi-page-head {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--kh-border);
}

.jehadi-page-badge {
    display: inline-block;
    font-size: var(--kh-fs-xs);
    font-weight: 600;
    color: var(--kh-primary);
    background: rgba(139, 21, 56, 0.08);
    padding: 0.25rem 0.65rem;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.jehadi-page-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
    .jehadi-page-title { font-size: 1.5rem; }
}

.jehadi-page-dates {
    font-size: var(--kh-fs-sm);
}

.jehadi-page-content {
    margin-top: 1.25rem;
}

.jalali-date-picker .form-select {
    font-size: var(--kh-fs-sm);
}

#jehadiRegisterModal .modal-title {
    font-size: 1rem;
    font-weight: 700;
}

.btn-donation-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 31px;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: var(--kh-primary);
    border: 1px solid var(--kh-primary);
    border-radius: var(--kh-radius);
    box-shadow: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn-donation-header i {
    font-size: 0.9rem;
    opacity: 0.92;
}

.btn-donation-header:hover {
    color: #fff;
    background: var(--kh-primary-hover);
    border-color: var(--kh-primary-hover);
}

.btn-donation-header:focus-visible {
    outline: 2px solid rgba(139, 21, 56, 0.45);
    outline-offset: 2px;
}

.btn-donation-nav {
    width: 100%;
    text-align: right;
    color: var(--kh-primary) !important;
    font-weight: 600;
}

body.donation-modal-open .modal-backdrop.show {
    background: rgba(8, 6, 12, 0.62);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.donation-modal-dialog {
    max-width: 400px;
    margin: 1.75rem auto;
}

.donation-modal-shell {
    position: relative;
    overflow: visible;
    padding: 0;
}

.donation-glass-panel {
    position: relative;
    padding: 1.5rem 1.5rem 1.35rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(40px) saturate(1.65);
    -webkit-backdrop-filter: blur(40px) saturate(1.65);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.42),
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -18px 36px rgba(255, 255, 255, 0.03);
    color: #fff;
    overflow: hidden;
}

.donation-glass-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.02) 60%,
        rgba(255, 255, 255, 0.2) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.donation-glass-glow {
    position: absolute;
    inset: -30% -10% auto;
    height: 65%;
    background:
        radial-gradient(ellipse at 25% 10%, rgba(255, 200, 215, 0.28), transparent 52%),
        radial-gradient(ellipse at 85% 5%, rgba(139, 21, 56, 0.32), transparent 48%);
    pointer-events: none;
    z-index: 0;
}

.donation-glass-header,
.donation-glass-body {
    position: relative;
    z-index: 1;
}

.donation-glass-header {
    display: grid;
    grid-template-columns: 2.5rem 1fr 2.5rem;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.donation-glass-heading {
    grid-column: 2;
    text-align: center;
    min-width: 0;
}

.donation-glass-header-spacer {
    grid-column: 3;
    width: 2.5rem;
    height: 2.5rem;
}

.donation-modal-close {
    grid-column: 1;
    position: relative;
    top: 0;
    left: 0;
    margin: 0;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    flex-shrink: 0;
    opacity: 0.85;
    filter: invert(1) grayscale(1) brightness(1.6);
    background: transparent;
    border-radius: 50%;
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.donation-modal-close:hover {
    opacity: 1;
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.12);
}

.donation-glass-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
    margin: 0 0 0.3rem;
}

.donation-glass-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.3rem;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.donation-glass-sub {
    font-size: 0.78rem;
    line-height: 1.55;
    opacity: 0.8;
    margin: 0;
}

.donation-glass-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
}

.donation-bank-card {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 1.15rem 1.25rem 1rem;
    min-height: 164px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #2a0f1a 0%, #5c1830 38%, #8b1538 72%, #c43d62 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    overflow: hidden;
    isolation: isolate;
}

.donation-bank-card-shine {
    position: absolute;
    inset: -50% -30%;
    background: linear-gradient(
        115deg,
        transparent 38%,
        rgba(255, 255, 255, 0.14) 48%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0.1) 52%,
        transparent 62%
    );
    transform: rotate(-8deg);
    pointer-events: none;
    animation: donation-card-shine 7s ease-in-out infinite;
}

.donation-bank-card-noise {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

@keyframes donation-card-shine {
    0%, 100% { transform: translateX(-30%) rotate(-8deg); opacity: 0.6; }
    50% { transform: translateX(30%) rotate(-8deg); opacity: 1; }
}

.donation-bank-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.35rem;
}

.donation-chip {
    width: 2.1rem;
    height: 1.45rem;
    border-radius: 5px;
    background: linear-gradient(145deg, #e8d5a8, #c9a84a 45%, #9a7b32 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    position: relative;
}

.donation-chip::before {
    content: '';
    position: absolute;
    inset: 0.28rem 0.35rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
}

.donation-card-brand {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.55);
}

.donation-bank-card-number {
    font-size: clamp(0.95rem, 4.2vw, 1.22rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    margin: 0 0 0.85rem;
    word-spacing: 0.15em;
}

.donation-bank-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 0.75rem;
}

.donation-bank-card-field {
    text-align: right;
    min-width: 0;
}

.donation-bank-card-field:last-child {
    text-align: left;
}

.donation-bank-card-label {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.62;
    margin-bottom: 0.15rem;
}

.donation-bank-card-value {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-donation-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.72rem 1rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1a1014;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-donation-copy:hover {
    color: #1a1014;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.btn-donation-copy-icon {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(139, 21, 56, 0.1);
    color: var(--kh-primary);
    font-size: 0.85rem;
}

.donation-copy-feedback {
    font-size: 0.78rem;
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.donation-modal.show .donation-modal-dialog {
    animation: donation-modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes donation-modal-in {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 575px) {
    .btn-donation-header span { display: none; }
    .btn-donation-header {
        width: 31px;
        padding: 0;
    }
    .donation-glass-panel {
        padding: 1.25rem 1.15rem 1.15rem;
        border-radius: 18px;
    }
    .donation-glass-header {
        grid-template-columns: 2.25rem 1fr 2.25rem;
        margin-bottom: 1rem;
    }
    .donation-modal-close,
    .donation-glass-header-spacer {
        width: 2.25rem;
        height: 2.25rem;
    }
    .donation-bank-card-number { letter-spacing: 0.08em; }
}

.install-page {
    min-height: 100vh;
    background: #f4f4f5;
    color: #1c1c1c;
}

.install-page-bg {
    display: none;
}

.install-page .container {
    position: relative;
    z-index: 1;
}

.install-glass-card {
    position: relative;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.install-glass-card--setup .install-glass-inner {
    color: #1c1c1c;
}

.install-glass-border,
.install-glass-glow {
    display: none;
}

.install-glass-inner {
    position: relative;
    z-index: 1;
    padding: 2rem 1.75rem 1.75rem;
}

.install-glass-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.35rem;
    color: #ffc9d4;
}

.install-glass-title {
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #1c1c1c;
}

.install-glass-sub {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.82;
    margin-bottom: 1.25rem;
}

.install-terms-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.install-terms-inner {
    padding: 1.75rem 1.5rem 1.5rem;
}

.install-terms-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.install-terms-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #1c1c1c;
}

.install-terms-lead {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.install-terms-body {
    font-size: 0.875rem;
    line-height: 1.85;
    color: #444;
}

.install-terms-body p {
    margin-bottom: 0.75rem;
}

.install-terms-body p:last-child {
    margin-bottom: 0;
}

.install-terms-link {
    color: var(--kh-primary);
    text-decoration: none;
    font-weight: 600;
}

.install-terms-link:hover {
    text-decoration: underline;
}

.install-terms-body strong {
    color: #1c1c1c;
}

.install-terms-github {
    margin-top: 0.85rem;
    padding: 0.65rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.82rem;
    word-break: break-all;
}

.install-terms-github .bi-github {
    margin-left: 0.25rem;
}

.install-terms-contact {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: #666;
}

.install-terms-error {
    margin: 1rem 0 0;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
}

.install-terms-form {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #eee;
}

.install-terms-agree {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 1rem;
    cursor: pointer;
    user-select: none;
}

.install-terms-agree input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.install-terms-agree-box {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15rem;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.install-terms-agree input:checked + .install-terms-agree-box {
    background: var(--kh-primary);
    border-color: var(--kh-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M12.2 4.2 6.5 9.9 3.8 7.2l-1.1 1.1L6.5 12.1l6.8-6.8z'/%3E%3C/svg%3E");
    background-size: 0.75rem;
    background-position: center;
    background-repeat: no-repeat;
}

.install-terms-agree-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #333;
}

.btn-install-terms {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    color: #fff;
    background: var(--kh-primary);
    border: none;
    border-radius: 8px;
}

.btn-install-terms:hover {
    color: #fff;
    background: var(--kh-primary-hover);
}

.install-license-text {
    text-align: right;
    font-size: 0.88rem;
    line-height: 1.85;
    padding: 1.15rem 1.2rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.install-license-text p {
    margin-bottom: 0.85rem;
}

.install-license-text p:last-child {
    margin-bottom: 0;
}

.install-license-link {
    color: #ffc9d4;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}

.install-license-link:hover {
    color: #fff;
}

.install-terms-check {
    text-align: right;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.install-terms-check .form-check-label {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.install-terms-check .form-check-input {
    margin-top: 0.35rem;
}

.btn-install-continue {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    color: #fff;
    background: var(--kh-primary);
    border: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-install-continue:hover {
    color: #fff;
    background: var(--kh-primary-hover);
}

.install-step-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.install-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #888;
    margin-bottom: 0.75rem;
}

.install-input {
    background: #fff;
    border-color: #ddd;
    color: #1c1c1c;
}

.install-input:focus {
    background: #fff;
    border-color: var(--kh-primary);
    color: #1c1c1c;
    box-shadow: 0 0 0 0.2rem rgba(139, 21, 56, 0.12);
}

.install-glass-card--setup .form-label {
    font-size: 0.85rem;
    color: #555;
}

.install-step-badge {
    color: #666;
    background: #f5f5f5;
    border-color: #e5e5e5;
}

.install-cpanel-hint {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #555 !important;
}

.install-cpanel-hint code {
    color: var(--kh-primary);
}

.install-success-icon {
    font-size: 3rem;
    color: #7dffa8;
    margin-bottom: 0.75rem;
}

@media (max-width: 575px) {
    .install-glass-inner {
        padding: 1.5rem 1.15rem 1.25rem;
    }
}
