/**
 * KermanFoosball Theme — Main Styles (Part 1/2)
 * پالت: آبی نفتی + نارنجی
 * فونت: Vazirmatn
 */

/* ==================================================
   ۱. دکمه‌ها
   ================================================== */

.kf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: var(--kf-radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.kf-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.kf-btn-primary {
    background: var(--kf-accent);
    color: #fff;
    border-color: var(--kf-accent);
}

.kf-btn-primary:hover {
    background: var(--kf-accent-dark);
    border-color: var(--kf-accent-dark);
    color: #fff;
}

.kf-btn-outline {
    background: transparent;
    color: var(--kf-primary);
    border-color: var(--kf-primary);
}

.kf-btn-outline:hover {
    background: var(--kf-primary);
    color: #fff;
}

.kf-btn-light {
    background: #fff;
    color: var(--kf-primary);
    border-color: #fff;
}

.kf-btn-light:hover {
    background: #f0f4f9;
}

/* ==================================================
   ۲. هدر سایت
   ================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--kf-border);
    box-shadow: 0 2px 8px rgba(15, 52, 96, .04);
}

.kf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-branding {
    flex: 0 0 auto;
    min-width: 0;
}

.site-branding .custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
}

.kf-site-title-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: var(--kf-primary);
    transition: color .15s;
}

.kf-site-title-link:hover {
    color: var(--kf-accent);
}

.kf-site-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    color: inherit;
}

.kf-site-description {
    font-size: 12px;
    font-weight: 500;
    color: var(--kf-text-muted);
    line-height: 1.4;
}

.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-start;
}

.kf-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kf-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.kf-menu li a {
    display: inline-block;
    padding: 9px 14px;
    border-radius: var(--kf-radius-sm);
    color: var(--kf-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.kf-menu li a:hover,
.kf-menu li.current-menu-item > a,
.kf-menu li.current_page_item > a,
.kf-menu li.current-menu-ancestor > a {
    background: var(--kf-bg);
    color: var(--kf-accent);
}

.kf-menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    margin: 6px 0 0;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-sm);
    box-shadow: var(--kf-shadow-hover);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 10;
}

.kf-menu li:hover > ul.sub-menu,
.kf-menu li:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kf-menu li ul.sub-menu li a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
}

.kf-menu-toggle {
    display: none;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-sm);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: background .15s;
}

.kf-menu-toggle:hover {
    background: var(--kf-bg);
}

.kf-menu-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--kf-primary);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.kf-menu-toggle[aria-expanded="true"] .kf-menu-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.kf-menu-toggle[aria-expanded="true"] .kf-menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.kf-menu-toggle[aria-expanded="true"] .kf-menu-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.kf-mobile-nav {
    display: none;
    padding: 12px 20px 20px;
    background: #fff;
    border-top: 1px solid var(--kf-border);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.kf-mobile-nav.is-open {
    display: block;
}

.kf-mobile-nav .kf-mobile-menu,
.kf-mobile-nav .kf-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.kf-mobile-nav .kf-mobile-menu li,
.kf-mobile-nav .kf-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.kf-mobile-nav .kf-mobile-menu li a,
.kf-mobile-nav .kf-menu li a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--kf-radius-sm);
    color: var(--kf-primary);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: right;
    transition: background .15s, color .15s;
}

.kf-mobile-nav .kf-mobile-menu li a:hover,
.kf-mobile-nav .kf-menu li a:hover,
.kf-mobile-nav .kf-mobile-menu li.current-menu-item > a,
.kf-mobile-nav .kf-menu li.current-menu-item > a,
.kf-mobile-nav .kf-mobile-menu li.current_page_item > a,
.kf-mobile-nav .kf-menu li.current_page_item > a {
    background: var(--kf-bg);
    color: var(--kf-accent);
}

.kf-mobile-nav .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 4px 0 0;
    padding: 0;
    padding-right: 16px;
    list-style: none;
}

.kf-mobile-nav .sub-menu li a {
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
}

/* ==================================================
   ۳. محتوای اصلی — بدون سایدبار
   ================================================== */

.site-content {
    min-height: 60vh;
}

.kf-content-wrap,
.kf-page-wrap,
.kf-single-wrap,
.kf-index-wrap {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    box-sizing: border-box;
}

.kf-single-wrap {
    max-width: 900px;
}

.kf-main,
.kf-page-main,
.kf-single-main,
.kf-index-main {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* ==================================================
   ۴. صفحه اصلی — کادر واحد (دو ستون)
   ================================================== */

.kf-front-container {
    padding-top: 32px;
    padding-bottom: 48px;
}

.kf-front-board {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow);
}

.kf-board-slider {
    min-width: 0;
}

.kf-board-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.kf-top-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ==================================================
   ۵. اسلایدر
   ================================================== */

.kf-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--kf-radius-sm);
    background: var(--kf-bg);
    aspect-ratio: 16 / 10;
    height: 100%;
    min-height: 360px;
}

.kf-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.kf-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
}

.kf-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.kf-slide-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.kf-slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.kf-slide-image img,
.kf-slide-image .kf-avatar-default {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.kf-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    z-index: 2;
}

.kf-slide-status {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: var(--kf-radius-pill);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.kf-slide-status.kf-status-open {
    background: var(--kf-success);
    color: #fff;
}

.kf-slide-status.kf-status-completed {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
}

.kf-slide-category {
    background: var(--kf-accent);
    color: #fff;
}

.kf-slide-title {
    margin: 0;
    color: #fff;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    word-break: break-word;
}

.kf-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.kf-slide-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kf-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: rgba(255, 255, 255, .9);
    color: var(--kf-primary);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    transition: background .15s, transform .15s;
}

.kf-slider-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.kf-slider-prev { right: 12px; }
.kf-slider-next { left: 12px; }

.kf-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 6px;
}

.kf-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    background: rgba(255, 255, 255, .5);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.kf-slider-dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* ==================================================
   ۶. کارت‌های برترین
   ================================================== */

.kf-top-box {
    padding: 14px 16px;
    background: var(--kf-bg);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-sm);
    min-width: 0;
}

.kf-top-box-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--kf-border);
}

.kf-top-box-icon {
    font-size: 18px;
    line-height: 1;
}

.kf-top-box-title {
    margin: 0;
    color: var(--kf-primary);
    font-size: 13px;
    font-weight: 800;
}

.kf-top-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kf-top-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: 6px;
    font-size: 12px;
}

.kf-top-item-rank {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    color: var(--kf-text-muted);
    font-weight: 800;
    font-size: 11px;
}

.kf-top-item-medal {
    font-size: 15px;
    line-height: 1;
}

.kf-top-item-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--kf-primary);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

.kf-top-item-name a {
    color: inherit;
    text-decoration: none;
}

.kf-top-item-name a:hover {
    color: var(--kf-accent);
    text-decoration: underline;
}

.kf-top-empty {
    margin: 0;
    padding: 10px 0;
    color: var(--kf-text-muted);
    font-size: 12px;
    text-align: center;
}

/* ==================================================
   ۷. رویداد پیش رو
   ================================================== */

.kf-upcoming-box {
    padding: 14px 16px;
    background: var(--kf-bg);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-sm);
}

.kf-upcoming-compact {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity .15s;
}

.kf-upcoming-compact:hover {
    opacity: .9;
    text-decoration: none;
}

.kf-upcoming-thumb {
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: var(--kf-radius-sm);
    background: #fff;
    flex: 0 0 auto;
}

.kf-upcoming-thumb img,
.kf-upcoming-thumb .kf-avatar-default {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--kf-radius-sm);
}

.kf-upcoming-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kf-upcoming-event-title {
    margin: 0;
    color: var(--kf-primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    word-break: break-word;
}

.kf-upcoming-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--kf-text-muted);
    font-size: 11px;
}

.kf-upcoming-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kf-upcoming-btn {
    display: inline-block;
    margin-top: 4px;
    color: var(--kf-accent);
    font-size: 12px;
    font-weight: 800;
}

.kf-upcoming-compact:hover .kf-upcoming-btn {
    color: var(--kf-accent-dark);
    text-decoration: underline;
}

/* ==================================================
   ۸. بخش‌ها
   ================================================== */

.kf-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.kf-section-bar {
    display: block;
    flex: 0 0 4px;
    width: 4px;
    height: 26px;
    border-radius: var(--kf-radius-pill);
    background: var(--kf-accent);
}

.kf-section-title {
    margin: 0;
    color: var(--kf-primary);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.5;
}

.kf-section-link {
    margin-right: auto;
    color: var(--kf-accent);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.kf-section-link:hover {
    color: var(--kf-accent-dark);
    text-decoration: underline;
}

/* ==================================================
   ۹. فوتر
   ================================================== */

.site-footer {
    margin-top: 40px;
    padding: 48px 0 0;
    background: var(--kf-primary);
    color: rgba(255, 255, 255, .85);
}

.kf-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
}

.kf-footer-col {
    min-width: 0;
}

.kf-footer-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

.kf-footer-desc {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    line-height: 1.9;
}

.kf-footer-social {
    display: flex;
    gap: 10px;
}

.kf-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .1);
    border-radius: var(--kf-radius-sm);
    color: #fff;
    text-decoration: none;
    transition: background .15s, transform .15s;
}

.kf-social-icon:hover {
    background: var(--kf-accent);
    color: #fff;
    transform: translateY(-2px);
}

.kf-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kf-footer-menu li {
    margin: 0;
    padding: 0;
}

.kf-footer-menu li a {
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    text-decoration: none;
    transition: color .15s;
}

.kf-footer-menu li a:hover {
    color: #fff;
    text-decoration: underline;
}

.kf-footer-contact li {
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    line-height: 2;
}

.kf-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
}

.kf-copyright,
.kf-footer-credit {
    margin: 0;
}

.kf-copyright a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.kf-copyright a:hover {
    color: var(--kf-accent);
    text-decoration: underline;
}

/* ==================================================
   ۱۰. نوشته تکی
   ================================================== */

.kf-single-article {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-sizing: border-box;
}

.kf-single-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--kf-accent);
}

.kf-single-title {
    margin: 0 0 12px;
    color: var(--kf-primary);
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.kf-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--kf-text-muted);
    font-size: 13px;
    line-height: 1.8;
}

.kf-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.kf-single-thumb {
    margin: 0 0 24px;
    border-radius: var(--kf-radius);
    overflow: hidden;
    box-shadow: var(--kf-shadow);
    width: 100%;
}

.kf-single-thumb img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.kf-single-content {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow);
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 2;
    color: var(--kf-text);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-x: hidden;
}

.kf-single-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.kf-single-content img,
.kf-single-content video,
.kf-single-content iframe,
.kf-single-content embed,
.kf-single-content object,
.kf-single-content svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: var(--kf-radius-sm);
}

.kf-single-content iframe { width: 100%; }

.kf-single-content pre,
.kf-single-content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 13px;
    background: var(--kf-bg);
    padding: 12px;
    border-radius: var(--kf-radius-sm);
}

.kf-single-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kf-single-content table th,
.kf-single-content table td {
    padding: 8px 10px;
    border: 1px solid var(--kf-border);
    font-size: 13px;
}

.kf-single-content h2 { margin-top: 1.75rem; font-size: 22px; line-height: 1.5; }
.kf-single-content h3 { margin-top: 1.5rem; font-size: 19px; line-height: 1.5; }
.kf-single-content h4 { margin-top: 1.25rem; font-size: 17px; line-height: 1.5; }

.kf-single-content p { margin: 0 0 1rem; }

.kf-single-content ul,
.kf-single-content ol {
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

.kf-single-content li { margin-bottom: 0.4rem; }

.kf-single-content blockquote {
    margin: 1.5rem 0;
    padding: 14px 18px;
    border-right: 4px solid var(--kf-accent);
    background: var(--kf-bg);
    border-radius: var(--kf-radius-sm);
    color: var(--kf-text-muted);
    font-style: italic;
    font-size: 15px;
}

.kf-single-content a {
    color: var(--kf-accent);
    text-decoration: underline;
    word-break: break-word;
}

.kf-single-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--kf-border);
}

.kf-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
}

.kf-tags-label {
    color: var(--kf-text-muted);
    font-weight: 700;
}

.kf-single-tags a {
    display: inline-block;
    padding: 3px 10px;
    background: var(--kf-bg);
    border-radius: var(--kf-radius-pill);
    color: var(--kf-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.kf-single-tags a:hover {
    background: var(--kf-accent);
    color: #fff;
}

.kf-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
    padding-top: 24px;
    border-top: 1px solid var(--kf-border);
    font-size: 13px;
    line-height: 1.8;
}

.kf-post-nav-prev,
.kf-post-nav-next {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.kf-post-nav-next { text-align: left; }

.kf-post-navigation a {
    color: var(--kf-primary);
    font-weight: 700;
    text-decoration: none;
}

.kf-post-navigation a:hover {
    color: var(--kf-accent);
    text-decoration: underline;
}

/* ==================================================
   ۱۱. برگه
   ================================================== */

.kf-page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--kf-accent);
}

.kf-page-title {
    margin: 0;
    color: var(--kf-primary);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.4;
}

.kf-page-content {
    font-size: 16px;
    line-height: 2;
    color: var(--kf-text);
}

.kf-page-content h2 { margin-top: 2rem; }
.kf-page-content h3 { margin-top: 1.5rem; }

.kf-page-content img {
    border-radius: var(--kf-radius-sm);
    margin: 1rem 0;
}

.kf-page-content blockquote {
    margin: 1.5rem 0;
    padding: 16px 20px;
    border-right: 4px solid var(--kf-accent);
    background: var(--kf-bg);
    border-radius: var(--kf-radius-sm);
    color: var(--kf-text-muted);
    font-style: italic;
}

.kf-page-content ul,
.kf-page-content ol {
    padding-right: 1.8rem;
}

/* ==================================================
   ۱۲. وبلاگ (کارت‌های نوشته)
   ================================================== */

.kf-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.kf-post-card {
    display: flex;
    flex-direction: column;
    background: var(--kf-card);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.kf-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--kf-shadow-hover);
}

.kf-post-thumb {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--kf-bg);
}

.kf-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.kf-post-card:hover .kf-post-thumb img {
    transform: scale(1.05);
}

.kf-post-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.kf-post-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kf-post-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
}

.kf-post-title a {
    color: var(--kf-primary);
    text-decoration: none;
}

.kf-post-title a:hover {
    color: var(--kf-accent);
}

.kf-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--kf-text-muted);
    font-size: 12px;
}

.kf-post-excerpt {
    color: var(--kf-text-muted);
    font-size: 14px;
    line-height: 1.9;
}

.kf-post-excerpt p { margin: 0; }

.kf-post-readmore {
    margin-top: auto;
    color: var(--kf-accent);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.kf-post-readmore:hover {
    color: var(--kf-accent-dark);
    text-decoration: underline;
}

/* ==================================================
   ۱۳. صفحه‌بندی
   ================================================== */

.pagination,
.navigation.pagination {
    display: flex;
    justify-content: center;
    margin: 28px 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-sm);
    color: var(--kf-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}

.nav-links a:hover {
    background: var(--kf-accent);
    color: #fff;
    border-color: var(--kf-accent);
    text-decoration: none;
}

.nav-links .current {
    background: var(--kf-primary);
    color: #fff;
    border-color: var(--kf-primary);
}

/* ==================================================
   ۱۴. فرم جستجو
   ================================================== */

.kf-search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-sm);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.kf-search-form:focus-within {
    border-color: var(--kf-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, .12);
}

.kf-search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 16px;
    background: transparent;
    border: 0;
    color: var(--kf-text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.kf-search-input::placeholder { color: var(--kf-text-muted); }

.kf-search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: var(--kf-accent);
    color: #fff;
    border: 0;
    cursor: pointer;
    transition: background .15s;
}

.kf-search-submit:hover { background: var(--kf-accent-dark); }

/* ==================================================
   ۱۵. آمار صفحه اصلی
   ================================================== */

.kf-front-stats {
    margin-top: 20px;
}

.kf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow);
}

.kf-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 12px;
    background: var(--kf-bg);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-sm);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.kf-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--kf-shadow);
}

.kf-stat-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
}

.kf-stat-value {
    color: var(--kf-accent);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 900;
    line-height: 1.2;
}

.kf-stat-label {
    color: var(--kf-text-muted);
    font-size: 13px;
    font-weight: 700;
}

/* ==================================================
   ۱۶. آخرین اخبار
   ================================================== */

.kf-front-news {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow);
}

.kf-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kf-news-card {
    display: flex;
    flex-direction: column;
    background: var(--kf-bg);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-sm);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.kf-news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--kf-shadow);
    border-color: var(--kf-primary-light);
}

.kf-news-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
}

.kf-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.kf-news-card:hover .kf-news-thumb img {
    transform: scale(1.05);
}

.kf-news-thumb-placeholder {
    font-size: 40px;
    line-height: 1;
    color: var(--kf-text-muted);
}

.kf-news-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 14px;
    flex: 1 1 auto;
    min-width: 0;
}

.kf-news-cat {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 8px;
    background: #e8eef5;
    color: var(--kf-primary);
    border-radius: var(--kf-radius-pill);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.8;
    white-space: nowrap;
}

.kf-news-title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    word-break: break-word;
}

.kf-news-title a {
    color: var(--kf-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kf-news-title a:hover {
    color: var(--kf-accent);
}

.kf-news-excerpt {
    margin: 0;
    color: var(--kf-text-muted);
    font-size: 12px;
    line-height: 1.8;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kf-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--kf-text-muted);
    font-size: 11px;
    margin-top: 2px;
}

.kf-news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kf-news-views {
    color: var(--kf-accent);
    font-weight: 700;
}

.kf-news-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--kf-accent);
    color: #fff;
    border-radius: var(--kf-radius-sm);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    align-self: flex-start;
    transition: background .15s, transform .15s;
}

.kf-news-more:hover {
    background: var(--kf-accent-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ==================================================
   ۱۷. گالری تصاویر
   ================================================== */

/* ==================================================
   گالری تصاویر — صفحه اصلی
   ================================================== */

.kf-front-gallery {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow);
}

.kf-front-gallery .kf-section-head {
    margin-bottom: 18px;
}

/* کاهش اندازه عکس‌ها: ۸ ستون به جای ۴ (هر عکس نصف می‌شود) */
.kf-gallery-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.kf-gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--kf-bg);
    border-radius: var(--kf-radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: transform .2s, box-shadow .2s;
}

.kf-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--kf-shadow);
}

.kf-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
    pointer-events: none;
}

.kf-gallery-item:hover img {
    transform: scale(1.05);
}

.kf-gallery-more {
    margin-top: 18px;
    text-align: center;
}

.kf-gallery-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--kf-accent);
    color: #fff;
    border-radius: var(--kf-radius-sm);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .15s, transform .15s;
}

.kf-gallery-more-link:hover {
    background: var(--kf-accent-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.kf-gallery-grid-all {
    margin-top: 24px;
}

/* صفحه‌بندی گالری */
.kf-gallery-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 28px 0 8px;
}

.kf-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-sm);
    color: var(--kf-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}

.kf-page-btn:hover {
    background: var(--kf-accent);
    color: #fff;
    border-color: var(--kf-accent);
    text-decoration: none;
}

.kf-page-btn.is-current {
    background: var(--kf-primary);
    color: #fff;
    border-color: var(--kf-primary);
}

/* ==================================================
   ۱۸. Lightbox
   ================================================== */

.kf-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kf-lightbox.is-open {
    display: flex !important;
}

.kf-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .92);
    cursor: pointer;
}

.kf-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kf-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--kf-radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    background: #fff;
}

.kf-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 48px;
    height: 48px;
    background: #fff;
    color: #000;
    border: 0;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
    transition: transform .15s;
}

.kf-lightbox-close:hover {
    transform: scale(1.1);
}

body.kf-lightbox-open {
    overflow: hidden;
}

/* ==================================================
   ۱۹. ۴۰۴
   ================================================== */

.kf-404 { padding: 60px 0; }

.kf-404-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 24px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow);
    text-align: center;
}

.kf-404-code {
    display: block;
    margin-bottom: 8px;
    color: var(--kf-accent);
    font-size: clamp(60px, 12vw, 100px);
    font-weight: 900;
    line-height: 1;
}

.kf-404-title {
    margin: 0 0 12px;
    color: var(--kf-primary);
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 800;
}

.kf-404-text {
    margin: 0 0 24px;
    color: var(--kf-text-muted);
    font-size: 14px;
    line-height: 2;
}

.kf-404-search {
    max-width: 420px;
    margin: 0 auto 24px;
}

.kf-404-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ==================================================
   ۲۰. کامنت‌ها
   ================================================== */

.comments-area {
    margin-top: 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow);
}

.comments-title {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--kf-accent);
    color: var(--kf-primary);
    font-size: 18px;
    font-weight: 800;
}

.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .children { list-style: none; padding-right: 24px; margin: 16px 0 0; }
.kf-comment { margin: 0 0 16px; }

.kf-comment-body {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--kf-bg);
    border-radius: var(--kf-radius-sm);
}

.kf-comment-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
}

.kf-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kf-comment-content { flex: 1 1 auto; min-width: 0; }

.kf-comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.kf-comment-author { color: var(--kf-primary); font-size: 14px; font-weight: 800; }
.kf-comment-date { color: var(--kf-text-muted); font-size: 12px; }
.kf-comment-text { font-size: 14px; line-height: 2; color: var(--kf-text); }
.kf-comment-text p { margin: 0 0 8px; }
.kf-comment-text p:last-child { margin-bottom: 0; }
.kf-comment-footer { margin-top: 8px; }

.kf-comment-reply a {
    color: var(--kf-accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.kf-comment-reply a:hover { text-decoration: underline; }

.kf-comment-awaiting {
    margin: 8px 0;
    padding: 6px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: var(--kf-radius-sm);
    font-size: 12px;
    font-weight: 700;
}

.comment-notes { margin-bottom: 16px; color: var(--kf-text-muted); font-size: 13px; }
.comment-form p { margin-bottom: 14px; }

.comment-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--kf-primary);
    font-size: 13px;
    font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-sm);
    color: var(--kf-text);
    font-family: inherit;
    font-size: 14px;
}

.comment-form .submit {
    padding: 12px 28px;
    background: var(--kf-accent);
    color: #fff;
    border: 0;
    border-radius: var(--kf-radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.comment-form .submit:hover { background: var(--kf-accent-dark); }

/* ==================================================
   ۲۱. ریسپانسیو — تبلت بزرگ (≤ ۹۹۲px)
   ================================================== */

@media (max-width: 992px) {
    .kf-front-board {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .kf-slider {
        aspect-ratio: 16 / 9;
        min-height: 280px;
        height: auto;
    }

    .kf-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kf-news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .kf-news-thumb { height: 130px; }

    .kf-gallery-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    .kf-single-wrap {
        padding: 24px 16px 36px;
    }

    .kf-single-title { font-size: 26px; }
    .kf-single-content { padding: 22px; }
    .kf-single-content h2 { font-size: 20px; }
    .kf-single-content h3 { font-size: 18px; }
    .kf-single-content h4 { font-size: 16px; }
}

/* ==================================================
   ۲۲. ریسپانسیو — موبایل بزرگ (≤ ۷۶۸px)
   ================================================== */

@media (max-width: 768px) {
    .kf-desktop-nav { display: none; }
    .kf-menu-toggle { display: flex; }

    .kf-header-inner {
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .kf-site-title { font-size: 17px; }

    .kf-front-container {
        padding-top: 20px;
        padding-bottom: 32px;
    }

    .kf-top-pair { grid-template-columns: 1fr 1fr; }

    /* فوتر: وسط‌چین + خط جداکننده */
    .site-footer { text-align: center; }

    .kf-footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 20px;
    }

    .kf-footer-col {
        text-align: center;
        padding: 22px 0;
    }

    .kf-footer-col + .kf-footer-col {
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .kf-footer-title {
        text-align: center;
        margin-bottom: 12px;
    }

    .kf-footer-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 400px;
    }

    .kf-footer-social {
        justify-content: center;
        margin-top: 14px;
    }

    .kf-footer-menu { align-items: center; text-align: center; }
    .kf-footer-menu li, .kf-footer-menu li a { text-align: center; }
    .kf-footer-contact li { text-align: center; }

    .kf-footer-bottom {
        text-align: center;
        justify-content: center;
        align-items: center;
        padding-top: 18px;
        padding-bottom: 18px;
        margin-top: 6px;
        flex-direction: column;
        gap: 8px;
    }

    .kf-copyright,
    .kf-footer-credit {
        text-align: center;
        width: 100%;
    }

    /* نوشته تکی */
    .kf-single-wrap { padding: 20px 14px 28px; }

    .kf-single-header {
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .kf-single-title {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .kf-single-meta { gap: 12px; font-size: 12px; }

    .kf-single-thumb {
        margin-bottom: 18px;
        border-radius: var(--kf-radius-sm);
    }

    .kf-single-content {
        padding: 18px;
        font-size: 15px;
        line-height: 1.9;
    }

    .kf-single-content h2 { font-size: 19px; margin-top: 1.5rem; }
    .kf-single-content h3 { font-size: 17px; margin-top: 1.25rem; }
    .kf-single-content h4 { font-size: 15px; }

    .kf-single-content blockquote {
        padding: 12px 16px;
        margin: 1.25rem 0;
        font-size: 14px;
    }

    .kf-single-content pre,
    .kf-single-content code {
        padding: 10px;
        font-size: 12px;
    }

    .kf-single-footer {
        margin-top: 20px;
        padding-top: 16px;
    }

    .kf-post-navigation {
        margin: 24px 0;
        padding-top: 18px;
    }

    /* آمار */
    .kf-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 16px;
    }

    .kf-stat-card { padding: 14px 10px; }
    .kf-stat-icon { font-size: 24px; }
    .kf-stat-value { font-size: 26px; }
    .kf-stat-label { font-size: 12px; }

    /* اخبار */
    .kf-front-news { padding: 16px; }

    .kf-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .kf-news-thumb { height: 130px; }
    .kf-news-title { font-size: 12px; }
    .kf-news-excerpt { font-size: 11px; -webkit-line-clamp: 3; }
    .kf-news-body { padding: 10px 12px 12px; gap: 5px; }
    .kf-news-cat { font-size: 9px; padding: 2px 7px; }
    .kf-news-meta { font-size: 10px; gap: 8px; }
    .kf-news-more { font-size: 11px; padding: 7px 12px; }

    /* گالری */
    .kf-front-gallery { padding: 16px; }

    .kf-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .kf-lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    /* کامنت‌ها */
    .comments-area {
        margin-top: 24px;
        padding: 18px;
    }

    .comments-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

/* ==================================================
   ۲۳. ریسپانسیو — موبایل (≤ ۴۸۰px)
   ================================================== */

@media (max-width: 480px) {
    .kf-container { padding: 0 12px; }

    .kf-header-inner {
        min-height: 60px;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 10px;
    }

    .kf-site-title { font-size: 16px; }
    .kf-site-description { font-size: 11px; }

    .kf-menu-toggle {
        width: 40px;
        height: 40px;
        padding: 9px;
    }

    .kf-content-wrap,
    .kf-page-wrap,
    .kf-single-wrap,
    .kf-index-wrap {
        padding: 16px 12px 24px;
    }

    .kf-front-container {
        padding-top: 16px;
        padding-bottom: 24px;
    }

    .kf-front-board {
        padding: 12px;
        gap: 12px;
    }

    .kf-slider {
        min-height: 180px;
        aspect-ratio: 4 / 3;
    }

    .kf-slide-overlay { padding: 12px; gap: 6px; }
    .kf-slide-title { font-size: 14px; }
    .kf-slide-meta { font-size: 11px; gap: 8px; }

    .kf-slider-nav {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .kf-slider-prev { right: 8px; }
    .kf-slider-next { left: 8px; }

    .kf-top-pair { grid-template-columns: 1fr; gap: 10px; }

    .kf-top-box,
    .kf-upcoming-box {
        padding: 12px;
    }

    .kf-top-box-title { font-size: 12px; }

    .kf-top-item {
        padding: 5px 7px;
        font-size: 11px;
        gap: 6px;
    }

    .kf-top-item-name { font-size: 11px; }

    .kf-upcoming-compact {
        grid-template-columns: 64px 1fr;
        gap: 10px;
    }

    .kf-upcoming-thumb {
        width: 64px;
        height: 64px;
    }

    .kf-upcoming-event-title { font-size: 12px; }
    .kf-upcoming-meta { font-size: 10px; gap: 6px; }

    .kf-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* نوشته تکی */
    .kf-single-wrap { padding: 16px 10px 24px; }

    .kf-single-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .kf-single-title {
        font-size: 19px;
        line-height: 1.5;
    }

    .kf-single-meta { gap: 10px; font-size: 11px; }

    .kf-single-thumb {
        margin-bottom: 14px;
        border-radius: 8px;
    }

    .kf-single-content {
        padding: 14px;
        font-size: 14px;
        line-height: 1.9;
        border-radius: var(--kf-radius-sm);
        margin-bottom: 16px;
    }

    .kf-single-content h2 { font-size: 17px; margin-top: 1.25rem; }
    .kf-single-content h3 { font-size: 16px; margin-top: 1rem; }
    .kf-single-content h4 { font-size: 14px; }

    .kf-single-content p { margin-bottom: 0.75rem; }

    .kf-single-content blockquote {
        padding: 10px 14px;
        margin: 1rem 0;
        font-size: 13px;
        border-right-width: 3px;
    }

    .kf-single-content img,
    .kf-single-content video,
    .kf-single-content iframe {
        margin: 0.6rem 0;
        border-radius: 6px;
    }

    .kf-single-content ul,
    .kf-single-content ol {
        padding-right: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .kf-single-content table th,
    .kf-single-content table td {
        padding: 6px 8px;
        font-size: 12px;
    }

    .kf-single-footer {
        margin-top: 16px;
        padding-top: 12px;
    }

    .kf-single-tags { gap: 5px; font-size: 12px; }
    .kf-single-tags a { padding: 2px 8px; font-size: 11px; }

    .kf-post-navigation {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 20px 0;
        padding-top: 14px;
        font-size: 12px;
    }

    .kf-post-nav-next { text-align: right; }

    /* آمار */
    .kf-stats-grid {
        padding: 12px;
        gap: 10px;
    }

    .kf-stat-card { padding: 12px 8px; }
    .kf-stat-icon { font-size: 20px; }
    .kf-stat-value { font-size: 22px; }
    .kf-stat-label { font-size: 11px; }

    /* اخبار */
    .kf-front-news {
        padding: 12px;
        margin-top: 14px;
    }

    .kf-front-news .kf-section-head { margin-bottom: 14px; }
    .kf-front-news .kf-section-title { font-size: 16px; }

    .kf-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .kf-news-thumb { height: 110px; }
    .kf-news-thumb-placeholder { font-size: 30px; }

    .kf-news-body { padding: 10px; gap: 5px; }
    .kf-news-title { font-size: 11px; line-height: 1.5; }

    .kf-news-excerpt {
        font-size: 10px;
        line-height: 1.7;
        -webkit-line-clamp: 3;
    }

    .kf-news-meta { font-size: 10px; gap: 6px; }
    .kf-news-more { font-size: 11px; padding: 6px 10px; }

    /* گالری */
    .kf-front-gallery { padding: 12px; }

    .kf-gallery-grid { gap: 8px; }

    .kf-gallery-more-link {
        padding: 9px 18px;
        font-size: 13px;
    }

    .kf-lightbox-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    /* صفحه‌بندی */
    .nav-links a,
    .nav-links span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .kf-page-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 12px;
    }

    /* ۴۰۴ */
    .kf-404-inner { padding: 28px 16px; }
    .kf-404-code { font-size: 70px; }

    /* کامنت‌ها */
    .comments-area {
        margin-top: 20px;
        padding: 14px;
        border-radius: var(--kf-radius-sm);
    }

    .comments-title {
        font-size: 15px;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }

    .kf-comment-body { padding: 12px; gap: 10px; }

    .kf-comment-avatar {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .kf-comment-author { font-size: 13px; }
    .kf-comment-date { font-size: 11px; }
    .kf-comment-text { font-size: 13px; line-height: 1.9; }

    .comment-form input,
    .comment-form textarea {
        padding: 8px 12px;
        font-size: 13px;
    }

    .comment-form .submit {
        padding: 10px 20px;
        font-size: 13px;
    }

    .kf-search-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .kf-search-submit { width: 42px; }

    /* فوتر */
    .kf-footer-grid { gap: 0; }
    .kf-footer-col { padding: 18px 0; }
    .kf-footer-title { font-size: 14px; }

    .kf-footer-desc,
    .kf-footer-menu li a,
    .kf-footer-contact li {
        font-size: 12px;
    }

    .kf-footer-bottom {
        padding: 16px 0;
        font-size: 10px;
        gap: 6px;
    }

    .kf-social-icon { width: 36px; height: 36px; }
    .kf-footer-social { gap: 8px; }

    /* وبلاگ */
    .kf-post-thumb { height: 170px; }
}

/* ==================================================
   ۲۴. ریسپانسیو — گوشی کوچک (≤ ۳۷۵px)
   ================================================== */

@media (max-width: 375px) {
    .kf-container { padding: 0 10px; }

    .kf-site-title { font-size: 15px; }
    .kf-site-description { display: none; }

    .kf-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .kf-content-wrap,
    .kf-page-wrap,
    .kf-single-wrap,
    .kf-index-wrap {
        padding: 14px 8px 20px;
    }

    .kf-front-board {
        padding: 10px;
        gap: 10px;
    }

    .kf-slider {
        min-height: 160px;
        aspect-ratio: 1 / 1;
    }

    .kf-slide-overlay { padding: 10px; gap: 5px; }
    .kf-slide-title { font-size: 13px; line-height: 1.4; }
    .kf-slide-status { font-size: 10px; padding: 3px 8px; }
    .kf-slide-meta { font-size: 10px; gap: 6px; }

    .kf-slider-nav {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .kf-slider-prev { right: 6px; }
    .kf-slider-next { left: 6px; }

    .kf-slider-dot { width: 6px; height: 6px; }

    .kf-top-box,
    .kf-upcoming-box {
        padding: 10px;
    }

    .kf-top-box-title { font-size: 11px; }
    .kf-top-box-icon { font-size: 15px; }

    .kf-top-item {
        padding: 4px 6px;
        gap: 5px;
    }

    .kf-top-item-rank,
    .kf-top-item-name {
        font-size: 10px;
    }

    .kf-top-item-medal { font-size: 13px; }

    .kf-upcoming-compact {
        grid-template-columns: 54px 1fr;
        gap: 8px;
    }

    .kf-upcoming-thumb {
        width: 54px;
        height: 54px;
    }

    .kf-upcoming-event-title { font-size: 11px; }
    .kf-upcoming-meta { font-size: 9px; gap: 5px; }
    .kf-upcoming-btn { font-size: 11px; }

    .kf-btn {
        padding: 9px 16px;
        font-size: 12px;
    }

    /* نوشته تکی */
    .kf-single-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .kf-single-title {
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .kf-single-meta { gap: 8px; font-size: 10px; }

    .kf-single-thumb {
        margin-bottom: 12px;
        border-radius: 6px;
    }

    .kf-single-content {
        padding: 12px;
        font-size: 13px;
        line-height: 1.85;
        margin-bottom: 14px;
    }

    .kf-single-content h2 { font-size: 15px; margin-top: 1rem; }
    .kf-single-content h3 { font-size: 14px; margin-top: 0.9rem; }
    .kf-single-content h4 { font-size: 13px; }

    .kf-single-content p { margin-bottom: 0.6rem; }

    .kf-single-content blockquote {
        padding: 8px 12px;
        font-size: 12px;
        margin: 0.8rem 0;
        border-right-width: 3px;
    }

    .kf-single-content img,
    .kf-single-content video,
    .kf-single-content iframe {
        margin: 0.5rem 0;
        border-radius: 4px;
    }

    .kf-single-content ul,
    .kf-single-content ol {
        padding-right: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .kf-single-content pre,
    .kf-single-content code {
        padding: 8px;
        font-size: 11px;
    }

    .kf-single-content table th,
    .kf-single-content table td {
        padding: 5px 6px;
        font-size: 11px;
    }

    .kf-single-tags { gap: 4px; font-size: 11px; }
    .kf-single-tags a { padding: 2px 6px; font-size: 10px; }
    .kf-tags-label { font-size: 11px; }

    .kf-post-navigation {
        margin: 16px 0;
        padding-top: 12px;
        font-size: 11px;
        gap: 10px;
    }

    /* اخبار */
    .kf-front-news { padding: 10px; }

    .kf-news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kf-news-card {
        flex-direction: row;
        align-items: stretch;
    }

    .kf-news-thumb {
        flex: 0 0 110px;
        width: 110px;
        height: auto;
        min-height: 120px;
    }

    .kf-news-body { padding: 10px 12px; gap: 4px; }

    .kf-news-title { font-size: 12px; }
    .kf-news-title a { -webkit-line-clamp: 2; }
    .kf-news-excerpt { font-size: 11px; -webkit-line-clamp: 2; }
    .kf-news-meta { font-size: 10px; gap: 6px; }
    .kf-news-more { font-size: 11px; padding: 6px 10px; }

    /* گالری */
    .kf-front-gallery { padding: 10px; }
    .kf-gallery-grid { gap: 6px; }

    /* ۴۰۴ */
    .kf-404-inner { padding: 24px 14px; }
    .kf-404-code { font-size: 60px; }
    .kf-404-title { font-size: 18px; }

    /* صفحه‌بندی */
    .nav-links a,
    .nav-links span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }

    .kf-page-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 11px;
    }

    .kf-search-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .kf-search-submit { width: 42px; }

    /* فوتر */
    .kf-footer-grid { gap: 0; }
    .kf-footer-col { padding: 18px 0; }
    .kf-footer-title { font-size: 14px; }

    .kf-footer-desc,
    .kf-footer-menu li a,
    .kf-footer-contact li {
        font-size: 12px;
    }

    .kf-footer-bottom {
        padding: 16px 0;
        font-size: 10px;
        gap: 6px;
    }

    .kf-social-icon { width: 36px; height: 36px; }
    .kf-footer-social { gap: 8px; }

    /* کامنت‌ها */
    .comments-area { padding: 12px; }

    .kf-comment-body {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .kf-comment-avatar {
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
    }

    .kf-comment-text { font-size: 12px; }

    /* وبلاگ */
    .kf-post-thumb { height: 150px; }
    .kf-post-body { padding: 14px; }
    .kf-post-title { font-size: 15px; }
}

/* ==================================================
   ۲۵. ریسپانسیو — گوشی خیلی کوچک (≤ ۳۲۰px)
   ================================================== */

@media (max-width: 320px) {
    .kf-container { padding: 0 8px; }

    .kf-slider { min-height: 140px; }
    .kf-slide-title { font-size: 12px; }

    .kf-top-pair { gap: 8px; }

    .kf-top-box,
    .kf-upcoming-box {
        padding: 8px;
    }

    .kf-top-item-rank,
    .kf-top-item-name {
        font-size: 9px;
    }

    /* نوشته تکی */
    .kf-single-title { font-size: 16px; }
    .kf-single-meta { gap: 6px; font-size: 10px; }

    .kf-single-content {
        padding: 10px;
        font-size: 12px;
        line-height: 1.8;
    }

    .kf-single-content h2 { font-size: 14px; }
    .kf-single-content h3 { font-size: 13px; }
    .kf-single-content h4 { font-size: 12px; }

    .kf-single-content blockquote {
        padding: 6px 10px;
        font-size: 11px;
    }

    .kf-single-content ul,
    .kf-single-content ol {
        padding-right: 1rem;
    }

    .kf-single-content pre,
    .kf-single-content code {
        padding: 6px;
        font-size: 10px;
    }

    .kf-single-content table th,
    .kf-single-content table td {
        padding: 4px 5px;
        font-size: 10px;
    }

    .kf-post-navigation { font-size: 10px; }

    /* اخبار */
    .kf-news-thumb {
        flex: 0 0 90px;
        width: 90px;
        min-height: 100px;
    }

    .kf-news-title { font-size: 11px; }
    .kf-news-excerpt { font-size: 10px; -webkit-line-clamp: 2; }
    .kf-news-meta { font-size: 9px; }
    .kf-news-more { font-size: 10px; }

    /* ۴۰۴ */
    .kf-404-code { font-size: 50px; }

    /* کامنت‌ها */
    .comments-area { padding: 10px; }
    .kf-comment-body { padding: 8px; }
}

/* ==================================================
   برگه سوالات متداول (FAQ) — طراحی مینیمال
   ================================================== */

/* مقدمه */
.kf-faq-intro {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--kf-primary), var(--kf-primary-light));
    border-radius: var(--kf-radius);
    color: #fff;
    box-shadow: var(--kf-shadow);
}

.kf-faq-intro p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    line-height: 2;
}

.kf-faq-intro strong {
    color: #ffd884;
}

/* هر سوال */
.kf-faq-item {
    margin-bottom: 20px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow);
    transition: box-shadow .2s, transform .2s;
}

.kf-faq-item:hover {
    box-shadow: var(--kf-shadow-hover);
    transform: translateY(-2px);
}

.kf-faq-item h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0 0 14px;
    border-bottom: 2px solid var(--kf-bg);
    color: var(--kf-primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    background: none;
    border-radius: 0;
}

.kf-faq-num {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--kf-accent), var(--kf-accent-dark));
    color: #fff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(233, 69, 96, .3);
}

.kf-faq-item p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 2;
    color: var(--kf-text);
}

.kf-faq-item p:last-child {
    margin-bottom: 0;
}

.kf-faq-item ul {
    margin: 8px 0 16px;
    padding-right: 1.5rem;
    list-style: none;
}

.kf-faq-item ul li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 2;
    color: var(--kf-text);
}

.kf-faq-item ul li::before {
    content: "•";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--kf-accent);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.5;
}

.kf-faq-item strong {
    color: var(--kf-primary);
    font-weight: 800;
}

/* فرمول */
.kf-faq-formula {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 16px 0;
    padding: 16px 20px;
    background: #fffbf0;
    border: 1px dashed var(--kf-accent);
    border-radius: var(--kf-radius-sm);
    text-align: center;
}

.kf-faq-formula-label {
    color: var(--kf-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.kf-faq-formula-text {
    color: var(--kf-primary);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
    direction: ltr;
    unicode-bidi: embed;
}

/* جدول */
.kf-faq-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0 20px;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 52, 96, .04);
    font-size: 14px;
}

.kf-faq-table thead th {
    padding: 12px 16px;
    background: var(--kf-primary);
    color: #fff;
    text-align: right;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.6;
}

.kf-faq-table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--kf-border);
    text-align: right;
    color: var(--kf-text);
    line-height: 1.9;
}

.kf-faq-table tbody tr:last-child td {
    border-bottom: 0;
}

.kf-faq-table tbody tr:nth-child(even) {
    background: var(--kf-bg);
}

.kf-faq-table tbody tr:hover {
    background: #f0f4f9;
}

.kf-faq-table tbody td strong {
    color: var(--kf-accent);
    font-weight: 800;
}

/* جدول فشرده (مثال) */
.kf-faq-table-compact {
    max-width: 500px;
}

/* نکته مهم */
.kf-faq-note {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    padding: 14px 18px;
    background: #fef9e7;
    border-right: 4px solid #f59e0b;
    border-radius: var(--kf-radius-sm);
}

.kf-faq-note-icon {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1.4;
}

.kf-faq-note-body {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.9;
    color: #78350f;
}

.kf-faq-note-body strong {
    color: #92400e;
    font-weight: 800;
}

/* CTA پایانی */
.kf-faq-cta {
    margin-top: 32px;
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--kf-accent), var(--kf-accent-dark));
    border-radius: var(--kf-radius);
    color: #fff;
    text-align: center;
    box-shadow: var(--kf-shadow-hover);
}

.kf-faq-cta h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.kf-faq-cta p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    line-height: 1.9;
}

/* ریسپانسیو FAQ */
@media (max-width: 768px) {
    .kf-faq-intro {
        padding: 16px 18px;
        margin-bottom: 20px;
    }

    .kf-faq-intro p {
        font-size: 14px;
    }

    .kf-faq-item {
        padding: 18px 20px;
        margin-bottom: 16px;
    }

    .kf-faq-item h2 {
        font-size: 16px;
        gap: 10px;
        padding-bottom: 10px;
        margin-bottom: 12px;
    }

    .kf-faq-num {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .kf-faq-item p,
    .kf-faq-item ul li {
        font-size: 14px;
    }

    .kf-faq-formula {
        padding: 12px 16px;
    }

    .kf-faq-formula-text {
        font-size: 14px;
    }

    .kf-faq-table {
        font-size: 13px;
    }

    .kf-faq-table thead th,
    .kf-faq-table tbody td {
        padding: 9px 12px;
    }

    .kf-faq-note {
        padding: 12px 14px;
    }

    .kf-faq-note-icon {
        font-size: 18px;
    }

    .kf-faq-note-body {
        font-size: 13px;
    }

    .kf-faq-cta {
        padding: 24px 18px;
        margin-top: 24px;
    }

    .kf-faq-cta h3 {
        font-size: 18px;
    }

    .kf-faq-cta p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .kf-faq-item {
        padding: 14px 16px;
        border-radius: var(--kf-radius-sm);
    }

    .kf-faq-item h2 {
        font-size: 15px;
        padding-bottom: 8px;
        margin-bottom: 10px;
    }

    .kf-faq-num {
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .kf-faq-item p,
    .kf-faq-item ul li {
        font-size: 13px;
        line-height: 1.9;
    }

    .kf-faq-formula-text {
        font-size: 13px;
    }

    .kf-faq-table {
        font-size: 12px;
    }

    .kf-faq-table thead th,
    .kf-faq-table tbody td {
        padding: 7px 9px;
    }

    .kf-faq-note {
        flex-direction: column;
        gap: 6px;
        padding: 10px 12px;
    }

    .kf-faq-note-body {
        font-size: 12px;
    }

    .kf-faq-cta {
        padding: 20px 14px;
    }

}

