/* Kaptan VIP — shared design tokens, buttons, header and footer */
:root {
    --kh-navy: #0b1a2e;
    --kh-navy-2: #12243d;
    --kh-gold: #e8b45a;
    --kh-gold-dark: #d49c3c;
    --kh-blue: #2f80c9;
    --kh-text: #0f1b2d;
    --kh-muted: #5b6b80;
    --kh-line: #e6ecf2;
    --kh-tint: #f2f7fc;
}

/* Buttons */
.kh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; transition: all .2s ease; border: 1.5px solid transparent; line-height: 1.2; white-space: nowrap; }
.kh-btn:hover { text-decoration: none; transform: translateY(-2px); }
.kh-btn-gold { background: var(--kh-gold); color: var(--kh-navy); }
.kh-btn-gold:hover { background: var(--kh-gold-dark); color: var(--kh-navy); }
.kh-btn-outline { border-color: rgba(255,255,255,.75); color: #fff; }
.kh-btn-outline:hover { background: #fff; color: var(--kh-navy); }
.kh-btn-navy { background: var(--kh-navy); color: #fff; padding: 11px 22px; font-size: 14px; }
.kh-btn-navy:hover { background: var(--kh-blue); color: #fff; }
.kh-arrow { display: inline-block; transition: transform .2s ease; }
[dir="rtl"] .kh-arrow { transform: scaleX(-1); }

/* Logo */
.kh-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; direction: ltr; }
.kh-logo:hover { text-decoration: none; }
.kh-logo-mark { font-size: 34px; font-weight: 900; line-height: 1; color: var(--kh-gold); font-style: italic; letter-spacing: -1px; }
.kh-logo-text { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.kh-logo-text b { color: var(--kh-gold); font-weight: 700; margin-left: 4px; }

/* Header */
.kh-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: var(--kh-navy); border-bottom: 1px solid rgba(255,255,255,.08); transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease; }
.kh-header.is-transparent { background: transparent; border-bottom-color: rgba(255,255,255,.1); }
.kh-header.is-scrolled { background: rgba(11,26,46,.97); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: rgba(255,255,255,.06); box-shadow: 0 10px 30px rgba(5,12,22,.28); }
.kh-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; transition: height .3s ease; }
.kh-header.is-scrolled .kh-header-inner { height: 72px; }

/* Desktop navigation */
.kh-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.kh-nav a { position: relative; display: block; padding: 10px 16px; color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s ease; }
.kh-nav a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--kh-gold); transform: scaleX(0); transition: transform .25s ease; }
.kh-nav a:hover, .kh-nav a:focus-visible { color: #fff; text-decoration: none; }
.kh-nav a:hover::after { transform: scaleX(.5); }
.kh-nav a.is-active { color: var(--kh-gold); }
.kh-nav a.is-active::after { transform: scaleX(1); }

/* Header actions: language switcher + mobile menu button */
.kh-header-actions { display: flex; align-items: center; gap: 12px; }
.kh-lang { position: relative; }
.kh-lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.05); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .5px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.kh-lang-btn:hover, .kh-lang.show .kh-lang-btn { border-color: var(--kh-gold); background: rgba(232,180,90,.1); }
.kh-lang-btn:focus { outline: none; }
.kh-lang-btn:focus-visible { box-shadow: 0 0 0 3px rgba(232,180,90,.35); }
.kh-lang-btn .fa-globe { color: var(--kh-gold); font-size: 14px; }
.kh-lang-caret { font-size: 9px; opacity: .75; transition: transform .2s ease; }
.kh-lang.show .kh-lang-caret { transform: rotate(180deg); }
.kh-lang .kh-lang-menu { top: 100%; right: 0; left: auto; min-width: 180px; margin-top: 10px; border: 0; border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(5,12,22,.25); }
[dir="rtl"] .kh-lang .kh-lang-menu { right: auto; left: 0; text-align: right; }
.kh-lang-menu .dropdown-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 8px; padding: 9px 12px; font-size: 14px; color: var(--kh-text); }
.kh-lang-menu .dropdown-item:hover { background: var(--kh-tint); color: var(--kh-text); }
.kh-lang-menu .dropdown-item.active, .kh-lang-menu .dropdown-item:active { background: var(--kh-tint); color: var(--kh-navy); font-weight: 600; }
.kh-lang-menu .dropdown-item small { color: var(--kh-muted); font-size: 11px; font-weight: 600; letter-spacing: .5px; }
.kh-lang-menu .dropdown-item .fa-check { color: var(--kh-gold-dark); font-size: 12px; }
.kh-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.05); cursor: pointer; transition: border-color .2s ease; }
.kh-burger:hover { border-color: var(--kh-gold); }
.kh-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; }
.kh-burger span:nth-child(2) { width: 12px; margin-inline-start: 6px; }
.kh-burger:focus { outline: none; }
.kh-burger:focus-visible { box-shadow: 0 0 0 3px rgba(232,180,90,.35); }

/* Mobile menu (reuses the theme's .mobile-menu open/close script, restyled as a navy drawer) */
.kh-mobile-menu { width: 340px; padding: 0; }
[dir="rtl"].kh-mobile-menu { right: auto; left: 0; }
.kh-mobile-menu .menu-backdrop { background: rgba(5,12,22,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transform: none; opacity: 0; transition: opacity .3s ease; }
.mobile-menu-visible .kh-mobile-menu .menu-backdrop { transition: opacity .3s ease; }
.kh-mobile-menu .menu-box { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--kh-navy) 0%, var(--kh-navy-2) 100%); box-shadow: -20px 0 50px rgba(5,12,22,.35); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.mobile-menu-visible .kh-mobile-menu .menu-box { transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
[dir="rtl"].kh-mobile-menu .menu-box { transform: translateX(-101%); box-shadow: 20px 0 50px rgba(5,12,22,.35); }
.mobile-menu-visible [dir="rtl"].kh-mobile-menu .menu-box, .mobile-menu-visible .kh-mobile-menu[dir="rtl"] .menu-box { transform: translateX(0); }
.kh-mobile-menu .nav-logo { display: flex; align-items: center; padding: 0 24px; height: 72px; border-bottom: 1px solid rgba(255,255,255,.08); }
.kh-mobile-menu .close-btn { top: 15px; right: 18px; width: 42px; height: 42px; padding: 0; line-height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.05); color: #fff; font-size: 16px; transform: none; transition: border-color .2s ease, color .2s ease; }
.kh-mobile-menu .close-btn:focus { outline: none; }
.kh-mobile-menu .close-btn:focus-visible { box-shadow: 0 0 0 3px rgba(232,180,90,.35); }
.kh-mobile-menu .close-btn:hover { opacity: 1; border-color: var(--kh-gold); color: var(--kh-gold); }
[dir="rtl"].kh-mobile-menu .close-btn { right: auto; left: 18px; }
.kh-mobile-menu .menu-outer { flex: 1; padding: 16px 0; }
.kh-mobile-menu .navigation { border-top: 0; }
.kh-mobile-menu .navigation li { border-bottom: 0; }
.kh-mobile-menu .navigation li > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-inline-start: 3px solid transparent; color: rgba(255,255,255,.85); font-size: 17px; font-weight: 500; line-height: 1.4; text-transform: none; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.kh-mobile-menu .navigation li > a::after { content: '\f105'; font-family: 'Font Awesome 5 Free', 'FontAwesome'; font-weight: 900; font-size: 13px; opacity: .35; }
[dir="rtl"].kh-mobile-menu .navigation li > a::after { content: '\f104'; }
.kh-mobile-menu .navigation li > a:hover { color: #fff; background: rgba(255,255,255,.04); }
.kh-mobile-menu .navigation li.current > a { color: var(--kh-gold); font-weight: 600; border-inline-start-color: var(--kh-gold); background: rgba(232,180,90,.08); }
.kh-mobile-menu .navigation li.current > a::after { opacity: 1; }
.kh-mobile-langs-wrap { padding: 20px 24px 28px; border-top: 1px solid rgba(255,255,255,.08); }
.kh-mobile-langs-title { display: block; margin-bottom: 12px; color: rgba(255,255,255,.5); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
[dir="rtl"] .kh-mobile-langs-title { letter-spacing: 0; }
.kh-mobile-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kh-mobile-langs a { padding: 10px 6px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.85); font-size: 14px; text-align: center; text-decoration: none; transition: all .2s ease; }
.kh-mobile-langs a:hover { border-color: var(--kh-gold); color: #fff; text-decoration: none; }
.kh-mobile-langs a.is-active { background: var(--kh-gold); border-color: var(--kh-gold); color: var(--kh-navy); font-weight: 600; }

/* Footer */
.kh-footer { position: relative; background: radial-gradient(circle at 100% 0%, rgba(47,128,201,.14), transparent 40%), linear-gradient(180deg, var(--kh-navy) 0%, #081424 100%); color: rgba(255,255,255,.72); padding: 72px 0 0; }
.kh-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent 0%, var(--kh-gold) 50%, transparent 100%); opacity: .8; }
.kh-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.2fr); gap: 48px; padding-bottom: 56px; }
.kh-footer-brand p { margin: 16px 0 24px; max-width: 300px; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.7); }
.kh-footer-cta { padding: 12px 22px; font-size: 14px; }
.kh-footer-social { display: flex; gap: 10px; margin-top: 24px; }
.kh-footer-social a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.08); font-size: 15px; transition: all .2s ease; }
.kh-footer-social a:hover { background: var(--kh-gold); color: var(--kh-navy); text-decoration: none; }
.kh-footer .kh-footer-title { position: relative; margin: 6px 0 22px; padding-bottom: 12px; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.kh-footer-title::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--kh-gold); }
.kh-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kh-footer-links a { position: relative; display: inline-block; color: rgba(255,255,255,.72); font-size: 14.5px; line-height: 1.5; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.kh-footer-links a:hover { color: #fff; text-decoration: none; transform: translateX(4px); }
[dir="rtl"] .kh-footer-links a:hover { transform: translateX(-4px); }
.kh-footer-links a.is-active { color: var(--kh-gold); }
.kh-footer-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.kh-footer-contacts a { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.kh-footer-contacts a:hover { text-decoration: none; }
.kh-footer-contact-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--kh-gold); font-size: 15px; transition: all .2s ease; }
.kh-footer-contacts a:hover .kh-footer-contact-icon { background: var(--kh-gold); border-color: var(--kh-gold); color: var(--kh-navy); }
.kh-footer-contacts small { display: block; color: rgba(255,255,255,.5); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
[dir="rtl"] .kh-footer-contacts small { letter-spacing: 0; }
.kh-footer-contacts span[dir="ltr"] { display: block; font-size: 14.5px; font-weight: 500; transition: color .2s ease; }
[dir="rtl"] .kh-footer-contacts span[dir="ltr"] { text-align: right; }
.kh-footer-contacts a:hover span[dir="ltr"] { color: var(--kh-gold); }
.kh-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(255,255,255,.55); }
.kh-footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.kh-footer-legal a { color: rgba(255,255,255,.7); font-size: 13px; text-decoration: none; transition: color .2s ease; }
.kh-footer-legal a:hover { color: var(--kh-gold); text-decoration: none; }

/* Back to top */
.kh-to-top { position: fixed; bottom: 24px; right: 24px; z-index: 998; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--kh-navy); color: var(--kh-gold); font-size: 15px; box-shadow: 0 10px 25px rgba(5,12,22,.3); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background-color .2s ease, color .2s ease; }
.kh-to-top[dir="rtl"] { right: auto; left: 24px; }
.kh-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.kh-to-top:hover { background: var(--kh-gold); color: var(--kh-navy); }
.kh-to-top:focus { outline: none; }
.kh-to-top:focus-visible { box-shadow: 0 0 0 3px rgba(232,180,90,.45), 0 10px 25px rgba(5,12,22,.3); }
.kh-to-top i { position: relative; transition: transform .2s ease; }
.kh-to-top:hover i { transform: translateY(-2px); }
.kh-to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.kh-to-top-ring circle { fill: none; stroke: var(--kh-gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: calc(138.2 * (1 - var(--kh-progress, 0))); transition: stroke-dashoffset .1s linear; }
.kh-to-top:hover .kh-to-top-ring circle { stroke: var(--kh-navy); }

@media (max-width: 1439px) {
    /* Keep the footer's bottom row clear of the fixed back-to-top button */
    .kh-footer-bottom { padding-inline-end: 64px; }
}
@media (max-width: 1199px) {
    .kh-nav a { padding: 10px 11px; }
    .kh-nav a::after { left: 11px; right: 11px; }
}
@media (max-width: 991px) {
    .kh-nav { display: none; }
    .kh-burger { display: flex; }
    .kh-header-inner, .kh-header.is-scrolled .kh-header-inner { height: 72px; }
    .kh-footer { padding-top: 56px; }
    .kh-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; padding-bottom: 40px; }
}
@media (max-width: 575px) {
    .kh-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .kh-footer-bottom { flex-direction: column; align-items: flex-start; }
    .kh-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }
    .kh-to-top[dir="rtl"] { right: auto; left: 16px; }
    .kh-header-actions { gap: 10px; }
    .kh-lang-btn { padding: 0 12px; }
    .kh-lang-btn .kh-lang-caret { display: none; }
    .kh-mobile-menu { width: 100%; }
    .kh-logo-mark { font-size: 28px; }
    .kh-logo-text { font-size: 19px; }
}

/* Preloader */
.preloader { background: var(--kh-navy); background: linear-gradient(135deg, var(--kh-navy) 0%, var(--kh-navy-2) 100%); }
.preloader .box:after { background: var(--kh-gold); }
.preloader .box:before { background: #000; opacity: .35; }
