/* ==========================================================================
   KingFox Full-Width Striped Layout Stylesheet (king-pages.css)
   Full-screen edge-to-edge section coloring (#e9eff3 & #ffffff)
   No boxed card frames - Clean editorial modern design
   ========================================================================== */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/RFVregular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/RFVbold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/RFVextraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/RFVblack.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-alt: #e9eff3;
    --bg-white: #ffffff;
    --primary-deep: #21759b;
    --primary-vivid: #0087be;
    --accent-steel: #668eaa;
    --accent-green: #4ab866;
    --accent-red: #d94f4f;
    --text-title: #21759b;
    --text-body: #243547;
    --text-muted: #668eaa;
    --radius-lg: 16px;
    --radius-md: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.9;
}

/* ==================== NAVBAR ==================== */
.page-navbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1.5px solid #dce6ed;
    box-shadow: 0 2px 10px rgba(33, 117, 155, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-avatar-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #21759b, #0087be);
    padding: 2.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 16px rgba(0, 135, 190, 0.24);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.brand-link:hover .brand-avatar-box {
    transform: scale(1.05) rotate(2deg);
}

.brand-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    color: var(--primary-deep);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.brand-subtitle {
    color: var(--primary-vivid);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4f8fb;
    color: var(--primary-deep);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1.5px solid #cbdde9;
    transition: all 0.25s ease;
}

.nav-back-btn:hover {
    background: var(--primary-vivid);
    color: #ffffff;
    border-color: var(--primary-vivid);
    transform: translateX(-3px);
    box-shadow: 0 4px 14px rgba(0, 135, 190, 0.28);
}

.nav-back-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.nav-back-btn:hover svg {
    transform: translateX(-3px);
}

/* ==================== FULL-WIDTH SECTIONS LAYOUT ==================== */
.page-main-wrap {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Base Full-Width Section */
.page-section {
    width: 100%;
    margin: 0;
    padding: 56px 0;
    box-sizing: border-box;
    position: relative;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Alternating Background Colors */
.page-section.section-alt {
    background-color: var(--bg-alt) !important;
}

.page-section.section-white {
    background-color: var(--bg-white) !important;
}

/* Hero Section Specifics */
.page-section.section-hero {
    padding: 32px 0 52px 0;
}

/* Centered Reading Width Container */
.page-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.text-center {
    text-align: center;
}

/* Reset any legacy card styling */
.page-hero,
.content-card,
.related-pages-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: none !important;
}

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--accent-steel);
    margin-bottom: 22px;
}

.breadcrumb-nav a {
    color: var(--accent-steel);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}

.breadcrumb-nav a:hover {
    color: var(--primary-vivid);
}

.breadcrumb-sep {
    font-size: 11px;
    opacity: 0.6;
}

.breadcrumb-current {
    color: var(--primary-deep);
    font-weight: 800;
}

/* Hero Content */
.hero-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 135, 190, 0.12);
    color: var(--primary-vivid);
    border: 1px solid rgba(0, 135, 190, 0.28);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 800;
}

.hero-date-pill {
    font-size: 12.5px;
    color: var(--accent-steel);
    font-weight: 600;
}

.page-section h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-deep);
    line-height: 1.45;
    margin-bottom: 14px;
}

.page-hero-lead {
    font-size: 16px;
    color: var(--text-body);
    line-height: 2.05;
    max-width: 860px;
}

/* Section Title */
.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 0;
    border: none;
}

.section-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(33, 117, 155, 0.1);
    border: 1px solid rgba(33, 117, 155, 0.2);
    color: var(--primary-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.section-icon-badge.emerald {
    background: rgba(74, 184, 102, 0.12);
    border-color: rgba(74, 184, 102, 0.3);
    color: var(--accent-green);
}

.section-icon-badge.indigo {
    background: rgba(0, 135, 190, 0.12);
    border-color: rgba(0, 135, 190, 0.3);
    color: var(--primary-vivid);
}

.section-icon-badge.amber {
    background: rgba(33, 117, 155, 0.12);
    border-color: rgba(33, 117, 155, 0.3);
    color: var(--primary-deep);
}

.section-icon-badge.rose {
    background: rgba(217, 79, 79, 0.12);
    border-color: rgba(217, 79, 79, 0.3);
    color: var(--accent-red);
}

.page-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-deep);
    margin: 0;
    line-height: 1.4;
}

.page-section h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-deep);
    margin: 24px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-section h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary-vivid);
    border-radius: 4px;
    display: inline-block;
}

.page-section p {
    font-size: 15.5px;
    color: var(--text-body);
    margin-bottom: 18px;
    line-height: 2.05;
    text-align: justify;
}

.page-section p:last-child {
    margin-bottom: 0;
}

/* ==================== CALLOUT BOXES ==================== */
.callout-box {
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 14.5px;
    line-height: 1.95;
    border: none !important;
}

/* On White Sections: Callouts use soft #e9eff3 */
.page-section.section-white .callout-box.info {
    background: #e9eff3;
    border-right: 5px solid var(--primary-deep) !important;
    color: var(--primary-deep);
}

.page-section.section-white .callout-box.tip {
    background: #edf7f0;
    border-right: 5px solid var(--accent-green) !important;
    color: #1e6435;
}

.page-section.section-white .callout-box.warning {
    background: #fdf1f1;
    border-right: 5px solid var(--accent-red) !important;
    color: #991b1b;
}

/* On Alt (#e9eff3) Sections: Callouts use White with subtle lift */
.page-section.section-alt .callout-box.info {
    background: #ffffff;
    border-right: 5px solid var(--primary-deep) !important;
    color: var(--primary-deep);
    box-shadow: 0 2px 10px rgba(33, 117, 155, 0.05);
}

.page-section.section-alt .callout-box.tip {
    background: #ffffff;
    border-right: 5px solid var(--accent-green) !important;
    color: #1e6435;
    box-shadow: 0 2px 10px rgba(74, 184, 102, 0.08);
}

.page-section.section-alt .callout-box.warning {
    background: #ffffff;
    border-right: 5px solid var(--accent-red) !important;
    color: #991b1b;
    box-shadow: 0 2px 10px rgba(217, 79, 79, 0.08);
}

.callout-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==================== FEATURE GRID ==================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 26px 0;
}

.feature-box {
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    transition: all 0.3s ease;
    border: none;
}

/* When in Alt Section: White boxes */
.page-section.section-alt .feature-box {
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(33, 117, 155, 0.06);
}

/* When in White Section: Alt boxes */
.page-section.section-white .feature-box {
    background: #e9eff3;
    box-shadow: none;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 135, 190, 0.14);
}

.feature-box-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: inline-block;
}

.feature-box-title {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--primary-deep);
    margin-bottom: 8px;
}

.feature-box-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.85;
}

/* ==================== STYLED LISTS ==================== */
.styled-list {
    list-style: none;
    margin: 18px 0;
}

.styled-list li {
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: 14px;
    position: relative;
    padding-right: 28px;
    line-height: 1.95;
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--accent-green);
    font-weight: 900;
    font-size: 16px;
}

/* ==================== CONTACT BOX (FOR ADS & SUPPORT) ==================== */
.contact-highlight-box {
    background: #e9eff3;
    border-radius: 20px;
    padding: 26px 24px;
    margin: 24px 0;
    border: none !important;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 18px;
    width: 100%;
    box-sizing: border-box;
}

.contact-channel-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1.5px solid rgba(203, 221, 233, 0.6) !important;
    box-shadow: 0 2px 10px rgba(33, 117, 155, 0.06);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.contact-channel-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-vivid) !important;
    box-shadow: 0 8px 24px rgba(0, 135, 190, 0.16);
}

.contact-channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.contact-channel-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    overflow: hidden;
}

.contact-channel-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    flex-shrink: 0;
}

.contact-channel-icon.telegram {
    background: rgba(0, 136, 204, 0.12);
    color: #0088cc;
}

.contact-channel-icon.email {
    background: rgba(235, 131, 38, 0.12);
    color: #eb8326;
}

.contact-channel-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-deep);
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-channel-id {
    font-size: 13.5px;
    color: var(--primary-vivid);
    direction: ltr;
    font-weight: 700;
    word-break: break-all;
    overflow-wrap: break-word;
}

.contact-channel-btn {
    background: var(--primary-vivid);
    color: #ffffff;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-channel-card:hover .contact-channel-btn {
    background: var(--primary-deep);
    transform: translateX(-2px);
}

.id-copy-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    border: 1.5px dashed #0087be;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
}

.id-copy-text {
    font-size: 13.5px;
    color: var(--primary-deep);
    font-weight: 700;
}

.id-copy-code {
    font-family: monospace;
    font-size: 14px;
    background: #edf6fb;
    color: var(--primary-deep);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    direction: ltr;
    word-break: break-all;
}

.btn-copy-id {
    background: var(--primary-deep);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-copy-id:hover {
    background: var(--primary-vivid);
}

/* ==================== RELATED PAGES SECTION ==================== */
.related-pages-section {
    padding: 44px 0;
}

.related-pages-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-deep);
    margin-bottom: 18px;
    text-align: center;
}

.related-pages-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.related-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid rgba(168, 190, 206, 0.45);
    color: var(--primary-deep);
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.page-section.section-white .related-link-chip {
    background: #e9eff3;
    border: 1px solid rgba(168, 190, 206, 0.35);
}

.related-link-chip:hover {
    background: var(--primary-vivid);
    color: #ffffff;
    border-color: var(--primary-vivid);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 135, 190, 0.25);
}

.related-link-chip.active {
    background: var(--primary-deep) !important;
    color: #ffffff !important;
    border-color: var(--primary-deep) !important;
    pointer-events: none;
}

/* ==================== FOOTER ==================== */
.page-footer {
    padding: 28px 0;
    text-align: center;
    font-size: 13px;
    color: var(--accent-steel);
    border-top: 1px solid rgba(168, 190, 206, 0.35);
}

.page-footer a {
    color: var(--primary-deep);
    font-weight: 700;
    text-decoration: none;
}

.page-footer a:hover {
    color: var(--primary-vivid);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .page-section {
        padding: 34px 0;
    }
    
    .page-section.section-hero {
        padding: 20px 0 32px 0;
    }
    
    .page-container {
        padding: 0 16px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .page-section h1 {
        font-size: 20px;
        line-height: 1.45;
        word-break: break-word;
    }
    
    .page-hero-lead {
        font-size: 14px;
        line-height: 1.85;
        word-break: break-word;
    }
    
    .page-section h2 {
        font-size: 17px;
        line-height: 1.45;
        word-break: break-word;
    }

    .page-section h3 {
        font-size: 15.5px;
        line-height: 1.45;
        word-break: break-word;
    }

    p, li {
        font-size: 14px;
        line-height: 1.85;
        word-break: break-word;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-box {
        padding: 20px 16px;
    }
    
    .contact-highlight-box {
        padding: 18px 14px;
        border-radius: 16px;
        margin: 20px 0;
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }

    .contact-channels-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-channel-card {
        padding: 14px 14px;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-channel-info {
        gap: 10px;
        min-width: 0;
    }

    .contact-channel-name {
        font-size: 14px;
    }

    .contact-channel-id {
        font-size: 13px;
    }

    .contact-channel-btn {
        padding: 7px 14px;
        font-size: 12.5px;
    }

    .id-copy-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 8px;
        padding: 12px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .id-copy-text {
        text-align: center;
        width: 100%;
    }

    .id-copy-code {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .btn-copy-id {
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
        text-align: center;
        justify-content: center;
    }

    .callout-box {
        padding: 14px 14px;
        gap: 10px;
        font-size: 13.5px;
        border-radius: 12px;
    }

    .related-pages-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .related-link-chip {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        box-sizing: border-box;
    }
    
    .nav-container {
        padding: 10px 14px;
        gap: 8px;
    }
    
    .brand-avatar-box {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .brand-title {
        font-size: 16px;
    }

    .brand-subtitle {
        font-size: 11px;
    }
    
    .nav-back-btn {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
        flex-shrink: 0;
    }

    .nav-back-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 0 12px;
    }

    .page-section h1 {
        font-size: 18px;
    }

    .page-hero-lead {
        font-size: 13px;
    }

    .page-section h2 {
        font-size: 16px;
    }

    .contact-channel-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
        padding: 14px 12px;
    }

    .contact-channel-info {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        gap: 8px;
    }

    .contact-channel-name {
        text-align: center;
        font-size: 14px;
    }

    .contact-channel-id {
        text-align: center;
        font-size: 13px;
    }

    .contact-channel-btn {
        width: 100%;
        padding: 9px 12px;
        font-size: 12.5px;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
    }
}
