/*
Theme Name: Kurdistan Capital Official Theme
Theme URI: https://kurdistan.capital
Author: Marouf Aziznejad — KURDLAND - Kurdistan Digital Platforms
Author URI: https://kurd.land
Description: دیزاینی فەرمیی سندوقی سەرمایەی نیشتمانیی کوردستان - وەشانی ٥.٦: ڕەنگی قووڵتر، مێنۆی زمانی ناوخۆیی و ڕێکخستنی تەواوی ئاراستەی هەرسێ زمان.
Version: 5.6.0
Text Domain: kurdistan-capital-theme
*/

/* Self-Hosted Fonts: Noto Sans Arabic (Sorani) + Noto Sans (Kurmanji & English) */
@font-face {
    font-family: 'Noto Sans Arabic';
    src: url('assets/fonts/NotoSansArabic-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Sans Arabic';
    src: url('assets/fonts/NotoSansArabic-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Sans Arabic';
    src: url('assets/fonts/NotoSansArabic-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Sans Arabic';
    src: url('assets/fonts/NotoSansArabic-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Sans Arabic';
    src: url('assets/fonts/NotoSansArabic-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('assets/fonts/NotoSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F, U+20A0-20CF, U+2116, U+2122;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('assets/fonts/NotoSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F, U+20A0-20CF, U+2116, U+2122;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('assets/fonts/NotoSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F, U+20A0-20CF, U+2116, U+2122;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('assets/fonts/NotoSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F, U+20A0-20CF, U+2116, U+2122;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('assets/fonts/NotoSans-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F, U+20A0-20CF, U+2116, U+2122;
}

:root {
    /* Deeper Sovereign Color Palette */
    --kc-primary: #06291e;
    --kc-primary-mid: #0c3e2e;
    --kc-primary-dark: #031711;
    --kc-primary-deepest: #010d09;
    --kc-gold: #b58b28;
    --kc-gold-light: #d4af4f;
    --kc-gold-hover: #96711c;
    --kc-gold-soft: #f3e7c8;

    /* Richer Gray Neutrals & Surfaces */
    --kc-bg: #cfd6d3;
    --kc-surface: #e6ebe9;
    --kc-surface-subtle: #dce2df;
    --kc-surface-tint: #ced6d2;
    --kc-text: #0e1815;
    --kc-text-muted: #384943;
    --kc-border: #b4c0ba;
    --kc-border-strong: #8fa098;

    /* Status Tones */
    --kc-success: #0a5c35;
    --kc-success-bg: #dcf3e7;
    --kc-success-border: #9fd8ba;
    --kc-warning: #7a4e00;
    --kc-warning-bg: #fcefc9;
    --kc-warning-border: #e5c372;
    --kc-danger: #911616;
    --kc-danger-bg: #fadede;
    --kc-danger-border: #eca8a8;

    /* Typography */
    --kc-font-sans: 'Noto Sans Arabic', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Tahoma, Arial, sans-serif;
    --kc-font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, 'Courier New', monospace;

    /* Layout & Depth */
    --kc-max-width: 1440px;
    --kc-gutter: clamp(14px, 3vw, 38px);
    --kc-radius-sm: 8px;
    --kc-radius-md: 14px;
    --kc-radius-lg: 20px;
    --kc-radius-pill: 999px;
    --kc-shadow-xs: 0 1px 3px rgba(3, 23, 17, 0.06);
    --kc-shadow-sm: 0 4px 14px rgba(3, 23, 17, 0.08);
    --kc-shadow-md: 0 10px 28px rgba(3, 23, 17, 0.12);
    --kc-shadow-lg: 0 18px 42px rgba(1, 13, 9, 0.22);
    --kc-transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--kc-bg);
    color: var(--kc-text);
    font-family: var(--kc-font-sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Strict Directionality: Sorani (RTL) vs Kurmanji & English (LTR) */
html[dir="rtl"],
html[dir="rtl"] body,
body.kct-rtl {
    direction: rtl !important;
    text-align: right;
    line-height: 1.78;
}

html[dir="ltr"],
html[dir="ltr"] body,
body.kct-ltr {
    direction: ltr !important;
    text-align: left;
    line-height: 1.65;
}

body.kct-rtl .kct-header,
body.kct-rtl .kct-nav-wrap,
body.kct-rtl .kct-nav,
body.kct-rtl .kct-logo,
body.kct-rtl .kct-footer {
    direction: rtl !important;
    text-align: right;
}

body.kct-ltr .kct-header,
body.kct-ltr .kct-nav-wrap,
body.kct-ltr .kct-nav,
body.kct-ltr .kct-logo,
body.kct-ltr .kct-footer {
    direction: ltr !important;
    text-align: left;
}

/* Enforce Noto Sans Arabic + Noto Sans globally across menus, header, footer, headings & form controls */
html,
body,
h1, h2, h3, h4, h5, h6,
p, a, li, ul, ol, span, strong, small, label,
table, th, td,
button, input, select, textarea, optgroup,
.kct-header,
.kct-header *,
.kct-nav,
.kct-nav a,
.kct-nav button,
.kct-mobile-toggle,
.kct-main,
.kct-footer,
.kct-footer *,
.kct-footer-links a,
.kct-404-wrap,
.kct-404-wrap * {
    font-family: var(--kc-font-sans);
}

html[lang="ckb"],
html[lang="ckb"] body,
body.kct-rtl,
body.kct-rtl *:not(code):not(pre):not(.kc-secret-code-display):not(.kc-account-details):not(.kct-404-code) {
    font-family: var(--kc-font-sans);
}

code, pre, .kct-404-code {
    font-family: var(--kc-font-mono);
}

a {
    color: var(--kc-primary);
    transition: color var(--kc-transition), background-color var(--kc-transition), border-color var(--kc-transition), transform var(--kc-transition), box-shadow var(--kc-transition);
}

a:hover {
    color: var(--kc-gold-hover);
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* Container */
.kct-container {
    width: 100%;
    max-width: var(--kc-max-width);
    margin: 0 auto;
    padding-inline: var(--kc-gutter);
}

/* Prevent double horizontal padding when plugin shortcode runs inside index.php */
.kct-container > .kc-wrapper {
    padding-inline: 0;
}

/* ==========================================================================
   Sticky Sovereign Header, Brand Name & Navigation
   ========================================================================== */
.kct-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--kc-header-bg, rgba(3, 23, 17, 0.97));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #ffffff;
    border-bottom: 2px solid var(--kc-gold);
    box-shadow: 0 8px 26px rgba(1, 13, 9, 0.28);
}

.kct-nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding-block: 10px;
}

.kct-logo {
    display: inline-flex;
    align-items: center;
    font-size: clamp(1.02rem, 1.55vw, 1.24rem);
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.35;
    flex-shrink: 0;
    letter-spacing: 0;
}

.kct-logo:hover {
    color: var(--kc-gold-light);
}

.kct-logo-text {
    color: inherit;
}

/* Navigation Links — neutral by default, ONLY active item gets gold highlight */
.kct-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.kct-nav > a {
    color: #dce9e3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 13px;
    border-radius: var(--kc-radius-sm);
    white-space: nowrap;
}

.kct-nav > a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.kct-nav > a.kct-nav-active {
    background: linear-gradient(135deg, var(--kc-gold) 0%, var(--kc-gold-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(181, 139, 40, 0.34);
}

.kct-nav > a.kct-nav-active:hover {
    background: linear-gradient(135deg, #c79c35 0%, var(--kc-gold-hover) 100%);
    color: #ffffff;
}

/* In-Menu Language Switcher Dropdown */
.kct-lang-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-inline-start: 4px;
}

.kct-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #e6f0ec;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 7px 12px;
    border-radius: var(--kc-radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--kc-transition), border-color var(--kc-transition), color var(--kc-transition);
}

.kct-lang-btn:hover,
.kct-lang-menu.open .kct-lang-btn {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--kc-gold-light);
    color: #ffffff;
}

.kct-lang-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.kct-lang-menu.open .kct-lang-chevron {
    transform: rotate(180deg);
}

.kct-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 170px;
    background: var(--kc-primary-dark);
    border: 1px solid rgba(181, 139, 40, 0.45);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 14px 32px rgba(1, 13, 9, 0.42);
    z-index: 1200;
    flex-direction: column;
    gap: 4px;
}

.kct-lang-menu.open .kct-lang-dropdown {
    display: flex;
    animation: kctSlideDown 0.16s ease-out;
}

.kct-lang-dropdown a {
    display: block;
    color: #ddeae4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.kct-lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.kct-lang-dropdown a.active {
    background: linear-gradient(135deg, var(--kc-gold) 0%, var(--kc-gold-hover) 100%);
    color: #ffffff;
}

/* Mobile Hamburger Toggle */
.kct-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background-color var(--kc-transition), border-color var(--kc-transition);
}

.kct-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--kc-gold);
}

.kct-mobile-toggle .kct-icon-close {
    display: none;
}

.kct-mobile-toggle[aria-expanded="true"] .kct-icon-menu {
    display: none;
}

.kct-mobile-toggle[aria-expanded="true"] .kct-icon-close {
    display: block;
}

@media (max-width: 1120px) {
    .kct-nav-wrap {
        flex-wrap: wrap;
        min-height: 64px;
    }

    .kct-logo {
        max-width: calc(100% - 60px);
    }

    .kct-mobile-toggle {
        display: inline-flex;
    }

    .kct-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px 0 10px;
        margin-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .kct-nav.open {
        display: flex;
        animation: kctSlideDown 0.2s ease-out;
    }

    .kct-nav > a {
        padding: 11px 14px;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .kct-lang-menu {
        margin-inline-start: 0;
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .kct-lang-btn {
        justify-content: space-between;
        width: 100%;
        padding: 10px 14px;
        font-size: 0.93rem;
    }

    .kct-lang-dropdown {
        position: static;
        margin-top: 6px;
        width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
    }
}

@keyframes kctSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.kct-main {
    width: 100%;
    flex: 1 0 auto;
    padding: clamp(12px, 2vw, 24px) 0 clamp(36px, 5vw, 64px);
}

/* ==========================================================================
   404 Not Found Page
   ========================================================================== */
.kct-404-wrap {
    max-width: 620px;
    margin: clamp(32px, 8vw, 72px) auto;
    background: var(--kc-surface);
    border: 1px solid var(--kc-border);
    border-radius: var(--kc-radius-lg);
    padding: clamp(28px, 5vw, 48px);
    text-align: center;
    box-shadow: var(--kc-shadow-md);
}

.kct-404-code {
    font-family: var(--kc-font-mono);
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 800;
    color: var(--kc-gold);
    line-height: 1;
    margin-bottom: 12px;
}

.kct-404-wrap h1 {
    margin: 0 0 12px;
    color: var(--kc-primary-dark);
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
}

.kct-404-wrap p {
    margin: 0 0 24px;
    color: var(--kc-text-muted);
}

.kct-404-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--kc-primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 10px;
}

.kct-404-btn:hover {
    background: var(--kc-primary-dark);
    color: #ffffff;
}

/* ==========================================================================
   Institutional Footer
   ========================================================================== */
.kct-footer {
    width: 100%;
    background: linear-gradient(180deg, var(--kc-primary-dark) 0%, var(--kc-primary-deepest) 100%);
    color: #b7cac2;
    border-top: 3px solid var(--kc-gold);
    margin-top: auto;
    padding: clamp(28px, 4vw, 44px) 0 24px;
    font-size: 0.9rem;
}

.kct-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.kct-footer-brand {
    max-width: 480px;
}

.kct-footer-tagline {
    margin: 10px 0 0;
    color: #9fb7ad;
    font-size: 0.88rem;
    line-height: 1.65;
}

.kct-footer-links {
    display: flex;
    gap: 10px 22px;
    flex-wrap: wrap;
    align-items: center;
}

.kct-footer-links a {
    color: #d7e5df;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 4px 0;
}

.kct-footer-links a:hover {
    color: var(--kc-gold-light);
}

.kct-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 18px;
    font-size: 0.84rem;
    color: #8ea79d;
}

.kct-footer-site {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 640px) {
    .kct-footer-top,
    .kct-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
