/* ══════════════════════════════════════════════════════════
   KBF Pro — Main Stylesheet v3.1 — Stunning Edition
   ══════════════════════════════════════════════════════════ */

:root {
    --bg-deep: #14635e;
    --bg-dark: #0f4e4a;
    --bg-card: rgba(214, 175, 102, 0.07);
    --primary: #0d6b66;
    --primary-light: #148f88;
    --gold: #d6af66;
    --gold-light: #e8c98a;
    --gold-hover: #c4a05a;
    --gold-glow: rgba(214, 175, 102, 0.3);
    --gold-10: rgba(214, 175, 102, 0.1);
    --gold-20: rgba(214, 175, 102, 0.2);
    --white: #ffffff;
    --white-90: rgba(255,255,255,0.9);
    --white-80: rgba(255,255,255,0.8);
    --white-60: rgba(255,255,255,0.6);
    --white-40: rgba(255,255,255,0.4);
    --white-20: rgba(255,255,255,0.2);
    --white-10: rgba(255,255,255,0.1);
    --white-05: rgba(255,255,255,0.05);
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Poppins', sans-serif;
    --nav-h: 70px;
    --radius: 12px;
    --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-ar);
    background: var(--bg-deep);
    color: var(--white);
    overflow-x: clip;
    line-height: 1.6;
}
body.lang-en { font-family: var(--font-en); direction: ltr; }
body.lang-ar { font-family: var(--font-ar); direction: rtl; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: all 0.3s; }

/* ══════════════════════════════════════════════════════════
   GLOBAL GOLD ACCENTS & PATTERNS
   ══════════════════════════════════════════════════════════ */

.kbf-site {
    position: relative;
}

/* Floating gold particles background */
.kbf-site::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(2px 2px at 10% 20%, var(--gold-20), transparent),
        radial-gradient(2px 2px at 80% 10%, var(--gold-10), transparent),
        radial-gradient(1px 1px at 30% 70%, var(--gold-20), transparent),
        radial-gradient(1px 1px at 90% 60%, var(--gold-10), transparent),
        radial-gradient(2px 2px at 50% 90%, var(--gold-20), transparent),
        radial-gradient(1px 1px at 70% 40%, var(--gold-10), transparent);
    pointer-events: none;
    z-index: 0;
    animation: floatParticles 20s linear infinite;
}

@keyframes floatParticles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

/* Section divider with gold line */
.kbf-section + .kbf-section::before {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION — Fixed & Glassy
   ══════════════════════════════════════════════════════════ */

.kbf-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(15, 79, 75, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid var(--gold-10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.kbf-nav.scrolled {
    background: rgba(15, 79, 75, 0.97);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 1px 0 var(--gold-20);
    height: 60px;
}
.kbf-nav__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kbf-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}
.kbf-nav__brand:hover { transform: scale(1.05); }
.kbf-nav__logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--gold-glow);
    animation: logoPulse 3s ease-in-out infinite;
}
.kbf-nav__logo.has-img {
    width: auto;
    height: 50px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 4px 15px var(--gold-glow); }
    50% { box-shadow: 0 4px 25px var(--gold-glow), 0 0 40px var(--gold-10); }
}
.kbf-nav__logo svg { width: 24px; height: 24px; fill: var(--bg-deep); }
.kbf-nav__brand-text {
    font-size: 1.1rem;
    font-weight: 500;
}
.kbf-nav__brand-text span { color: var(--gold); }

.kbf-nav__links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.kbf-nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--white-60);
    padding: 8px 0;
    position: relative;
    transition: all 0.3s;
}
.kbf-nav__links a:hover, .kbf-nav__links a.active { color: var(--gold); }
.kbf-nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--gold-glow);
}
.kbf-nav__links a:hover::after { transform: scaleX(1); }

.kbf-nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.kbf-nav__lang {
    border: 1px solid var(--gold);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gold);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}
.kbf-nav__lang:hover { 
    background: var(--gold); 
    color: var(--bg-deep); 
    box-shadow: 0 4px 20px var(--gold-glow);
    transform: translateY(-2px);
}
.kbf-nav__cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-deep);
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 13px;
    box-shadow: 0 4px 15px var(--gold-glow);
    transition: all 0.3s;
}
.kbf-nav__cta:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 30px var(--gold-glow);
    background: var(--white); 
}

.kbf-nav__hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

/* ══════════════════════════════════════════════════════════
   LOADING SCREEN
   ══════════════════════════════════════════════════════════ */
.kbf-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.kbf-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.kbf-loader__logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: loaderPulse 1.5s ease-in-out infinite;
}
.kbf-loader__logo-svg {
    width: 80px;
    height: 80px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}
.kbf-loader__spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(214,175,102,0.15);
    border-top-color: var(--gold);
    animation: loaderSpin 0.8s linear infinite;
}
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 10px rgba(214,175,102,0.2)); }
    50% { transform: scale(1.08); opacity: 0.85; filter: drop-shadow(0 0 25px rgba(214,175,102,0.5)); }
}
@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

/* Responsive visibility */
.kbf-mobile-only { display: none; }
.kbf-desktop-only { display: block; }
video.kbf-desktop-only { display: block; }
video.kbf-mobile-only { display: none; }

/* ══════════════════════════════════════════════════════════
   HERO 3D — Scroll Animation
   ══════════════════════════════════════════════════════════ */

.kbf-hero-3d {
    position: relative;
    width: 100%;
    height: 250vh;
    background: #000;
}

.kbf-hero-3d__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.kbf-hero-3d__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    transform: translateZ(0);
}

/* Initial frames before canvas takes over */
.kbf-hero-3d__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: hidden;
}
.kbf-hero-3d__frame.active { visibility: visible; }

/* Canvas element — GPU accelerated */
.kbf-hero-3d__canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    will-change: contents;
}

/* Video Hero */
.kbf-hero-3d__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Mobile video: hidden on desktop, shown on mobile */
.kbf-hero-3d__video--mobile { display: none; }
.kbf-hero-3d__video--desktop { display: block; }
.kbf-hero-3d__desktop-only { display: block; }
.kbf-hero-3d__frame--mobile { display: none; }

@media (max-width: 768px) {
    .kbf-hero-3d__video--mobile { display: block; }
    .kbf-hero-3d__video--desktop { display: none; }
    .kbf-hero-3d__desktop-only { display: none !important; }
    .kbf-hero-3d__frame--mobile { display: block; }
}
.kbf-hero-3d[data-mode="video"] { height: 300vh; }

.kbf-hero-3d__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(15,79,75,0.7) 0%, 
        rgba(15,79,75,0.15) 40%, 
        rgba(15,79,75,0.1) 60%, 
        rgba(15,79,75,0.2) 100%
    );
    z-index: 10;
}

/* Gold shimmer on hero overlay */
.kbf-hero-3d__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        transparent 40%, 
        var(--gold-10) 50%, 
        transparent 60%
    );
    animation: heroShimmer 5s ease-in-out infinite;
}
@keyframes heroShimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.kbf-hero-3d__content {
    position: absolute;
    bottom: 12%;
    right: 5%;
    left: 15%;
    z-index: 50;
    text-align: right;
}
[dir="ltr"] .kbf-hero-3d__content { text-align: left; right: 15%; left: 5%; }

/* Split Layout — Text Left + Logo Right */
.kbf-hero-3d__split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
}
.kbf-hero-3d__text-side { flex: 1; max-width: 60%; }
.kbf-hero-3d__logo-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.kbf-hero-3d__big-logo {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 10px 40px rgba(214, 175, 102, 0.3));
}
.kbf-hero-3d__big-logo svg {
    width: 120px;
    height: 120px;
    fill: var(--gold);
}
.kbf-hero-3d__big-logo img { 
    width: 120px; 
    height: 120px; 
    object-fit: contain; 
}
.kbf-hero-3d__logo-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white-60);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.kbf-hero-3d__logo-label span { color: var(--gold); }

/* Hero Description */
.kbf-hero-3d__desc {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--white-60);
    margin-top: 25px;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Hero CTA Button */
.kbf-hero-3d__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 14px 40px;
    border: 2px solid var(--white-60);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.05);
}
.kbf-hero-3d__cta:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-deep);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--gold-glow);
}

.kbf-hero-3d__text {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 0 60px var(--gold-10);
    position: relative;
    min-height: 120px;
}

.kbf-hero-3d__phase {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.kbf-hero-3d__phase.active { 
    opacity: 1;
    pointer-events: auto;
}

.kbf-hero-3d__word {
    display: inline-block;
    margin: 0 0.15em;
    transition: all 0.4s ease-out;
    will-change: transform, opacity, filter;
    background: linear-gradient(135deg, var(--white) 60%, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero description */
.kbf-hero__desc{font-size:0.88rem;line-height:1.9;color:rgba(255,255,255,0.6);margin-top:25px;max-width:600px;text-shadow:0 2px 10px rgba(0,0,0,0.5)}
/* Hero CTA Button */
.kbf-hero__cta{display:inline-flex;align-items:center;gap:10px;margin-top:30px;padding:10px 26px;background:transparent;color:#D6AF66;font-size:.8rem;font-weight:600;letter-spacing:.08em;border:1.5px solid rgba(214,175,102,0.5);border-radius:50px;text-decoration:none;transition:all .4s;position:relative;overflow:hidden}
.kbf-hero__cta::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,#D6AF66,#c49a4a);opacity:0;transition:opacity .4s;border-radius:50px}
.kbf-hero__cta span{position:relative;z-index:1}
.kbf-hero__cta:hover{border-color:#D6AF66;color:#0a3a37;transform:translateY(-2px);box-shadow:0 10px 30px rgba(214,175,102,0.2)}
.kbf-hero__cta:hover::before{opacity:1}

/* Hero CTAs container */
.kbf-hero__ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.kbf-hero__ctas .kbf-hero__cta{margin-top:0}

/* Outline CTA variant */
.kbf-hero__cta--outline{border-color:rgba(255,255,255,0.25);color:rgba(255,255,255,0.8)}
.kbf-hero__cta--outline::before{background:rgba(255,255,255,0.1)!important}
.kbf-hero__cta--outline:hover{border-color:rgba(255,255,255,0.6);color:#fff;box-shadow:0 10px 30px rgba(255,255,255,0.08)}

/* Hero Tagline / Trust Line */
.kbf-hero__tagline{display:flex;align-items:center;gap:12px;margin-top:28px;color:rgba(214,175,102,0.7);font-size:0.75rem;font-weight:600;letter-spacing:0.12em;text-transform:uppercase}
.kbf-hero__tagline-line{display:block;width:30px;height:1.5px;background:linear-gradient(90deg,var(--gold),transparent)}

.kbf-hero-3d__scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 14px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ══════════════════════════════════════════════════════════
   SECTIONS — Base Styles
   ══════════════════════════════════════════════════════════ */

/* Content container with side margins */
.kbf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 80px);
    padding-right: clamp(20px, 4vw, 80px);
    overflow-x: hidden;
}

.kbf-section {
    padding: clamp(30px, 4vw, 50px) 0;
    position: relative;
    z-index: 1;
}

.kbf-section__tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}
.kbf-section__tag::before {
    content: '';
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    box-shadow: 0 0 10px var(--gold-glow);
}
/* Shimmer on tag */
.kbf-section__tag::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--gold-20), transparent);
    animation: tagShimmer 3s ease-in-out infinite;
}
@keyframes tagShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.kbf-section__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 25px;
}
.kbf-section__title span { 
    color: var(--gold); 
    position: relative;
}
.kbf-section__title span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════════════ */

.kbf-about__narrative {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 50px;
}
.kbf-about__narrative .gold { 
    color: var(--gold); 
    text-shadow: 0 0 30px var(--gold-glow);
}

.kbf-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.kbf-stats--6 {
    grid-template-columns: repeat(3, 1fr);
}
.kbf-stat {
    padding: 30px 20px;
    border-right: 3px solid var(--gold);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.kbf-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-10), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.kbf-stat:hover::before { opacity: 1; }
.kbf-stat:hover {
    background: var(--bg-card);
    border-radius: var(--radius);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 20px var(--gold-10);
}
[dir="ltr"] .kbf-stat {
    border-right: none;
    border-left: 3px solid var(--gold);
}
.kbf-stat__number {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-en);
    line-height: 1;
    position: relative;
}
.kbf-stat__label {
    font-size: 0.82rem;
    color: var(--white-60);
    margin-top: 10px;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   SUBSIDIARIES — Cards with Glow
   ══════════════════════════════════════════════════════════ */

.kbf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.kbf-card {
    background: var(--bg-card);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
/* Gold glow on hover */
.kbf-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--gold-10) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.kbf-card:hover::before { opacity: 1; }
.kbf-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px var(--gold-10);
}
.kbf-card__icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--gold-10), var(--gold-20));
    border: 1px solid var(--gold-20);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gold);
    font-size: 28px;
    transition: all 0.4s;
}
.kbf-card:hover .kbf-card__icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-deep);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px var(--gold-glow);
}
.kbf-card__title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.kbf-card:hover .kbf-card__title { color: var(--gold); }
.kbf-card__desc {
    font-size: 0.82rem;
    color: var(--white-40);
    line-height: 1.6;
}
.kbf-card__sector {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gold);
    background: var(--gold-10);
    border: 1px solid var(--gold-20);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.kbf-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: 15px;
    padding: 6px 14px;
    border: 1px solid var(--gold-20);
    border-radius: 999px;
    transition: all 0.3s;
}
.kbf-card__link .material-symbols-outlined { font-size: 16px; }
.kbf-card__link:hover {
    background: var(--gold);
    color: var(--bg-deep);
    border-color: var(--gold);
    box-shadow: 0 4px 15px var(--gold-glow);
}

/* ══════════════════════════════════════════════════════════
   SUBSIDIARIES — Logo Grid with Hover Overlay
   ══════════════════════════════════════════════════════════ */

.kbf-subs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.kbf-sub-card {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* force square */
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--gold-10);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Logo Face — default */
.kbf-sub-card__logo {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    gap: 15px;
    transition: all 0.4s;
}
.kbf-sub-card__logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: all 0.4s;
}
.kbf-sub-card__logo > .material-symbols-outlined {
    font-size: 48px;
    color: var(--gold);
    opacity: 0.7;
    transition: all 0.4s;
}
.kbf-sub-card__logo h3 {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: var(--white-60);
    line-height: 1.4;
    margin: 0;
}

/* Hover Overlay — hidden by default */
.kbf-sub-card__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(20, 99, 94, 0.97), rgba(10, 58, 55, 0.97));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 15px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.kbf-sub-card__overlay h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    margin: 0 0 8px;
}
.kbf-sub-card__overlay p {
    font-size: 0.78rem;
    color: var(--white-60);
    line-height: 1.7;
    margin: 0 0 12px;
}
.kbf-sub-card__sector {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gold);
    background: var(--gold-10);
    border: 1px solid var(--gold-20);
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.kbf-sub-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bg-deep);
    background: var(--gold);
    padding: 7px 18px;
    border-radius: 999px;
    transition: all 0.3s;
    text-decoration: none;
}
.kbf-sub-card__btn .material-symbols-outlined { font-size: 14px; }
.kbf-sub-card__btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--gold-glow);
}

/* Hover State */
.kbf-sub-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3), 0 0 20px var(--gold-10);
}
.kbf-sub-card:hover .kbf-sub-card__logo {
    opacity: 0;
    transform: scale(0.9);
}
.kbf-sub-card:hover .kbf-sub-card__overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ══════════════════════════════════════════════════════════
   VISION — Glassmorphic Cards
   ══════════════════════════════════════════════════════════ */

.kbf-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.kbf-vision-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(214,175,102,0.03) 100%);
    border: 1px solid var(--gold-20);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.kbf-vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 100%;
    animation: goldFlow 3s ease-in-out infinite;
}
@keyframes goldFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.kbf-vision-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2), 0 0 40px var(--gold-10);
}
.kbf-vision-card__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--bg-deep);
    font-size: 24px;
    box-shadow: 0 5px 25px var(--gold-glow);
    transition: all 0.4s;
}
.kbf-vision-card:hover .kbf-vision-card__icon {
    transform: scale(1.15) rotate(-10deg);
    box-shadow: 0 8px 30px var(--gold-glow);
}
.kbf-vision-card__title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--gold-light);
}
.kbf-vision-card__text {
    color: var(--white-60);
    line-height: 1.8;
}

/* ══════════════════════════════════════════════════════════
   NEWS SLIDER — Glowing Cards
   ══════════════════════════════════════════════════════════ */

.kbf-news-slider {
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    padding: 0 20px;
}

.kbf-news-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0 20px;
}
.kbf-news-track::-webkit-scrollbar { display: none; }

.kbf-news-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.kbf-news-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px var(--gold-10);
}
.kbf-news-card__img {
    height: 180px;
    overflow: hidden;
    position: relative;
}
.kbf-news-card__img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
}
.kbf-news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.kbf-news-card:hover .kbf-news-card__img img { transform: scale(1.15); }
.kbf-news-card__body { padding: 20px; }
.kbf-news-card__date {
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 600;
}
.kbf-news-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s;
}
.kbf-news-card:hover .kbf-news-card__title { color: var(--gold-light); }
.kbf-news-card__excerpt {
    font-size: 0.85rem;
    color: var(--white-40);
    line-height: 1.6;
}

/* Slider Navigation */
.kbf-slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.kbf-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--white-20);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.kbf-slider-dot.active,
.kbf-slider-dot:hover { 
    background: var(--gold); 
    box-shadow: 0 0 10px var(--gold-glow);
}

/* ══════════════════════════════════════════════════════════
   CONTACT — Gold Accented Form
   ══════════════════════════════════════════════════════════ */

.kbf-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.kbf-contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.kbf-contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    border-radius: var(--radius);
    transition: all 0.3s;
}
.kbf-contact-item:hover {
    background: var(--bg-card);
    transform: translateX(5px);
}
[dir="ltr"] .kbf-contact-item:hover { transform: translateX(-5px); }
.kbf-contact-item__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-deep);
    flex-shrink: 0;
    box-shadow: 0 5px 20px var(--gold-glow);
    transition: all 0.3s;
}
.kbf-contact-item:hover .kbf-contact-item__icon {
    transform: scale(1.1);
}
.kbf-contact-item__label {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 4px;
    font-weight: 600;
}
.kbf-contact-item__value {
    font-size: 1rem;
    font-weight: 600;
}

.kbf-contact-form {
    background: var(--bg-card);
    border: 1px solid var(--gold-20);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
}
.kbf-contact-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 100%;
    animation: goldFlow 4s ease-in-out infinite;
}
.kbf-contact-form input,
.kbf-contact-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--white-10);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s;
}
.kbf-contact-form input:focus,
.kbf-contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-10), 0 0 20px var(--gold-10);
    background: rgba(214,175,102,0.03);
}
.kbf-contact-form button {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.kbf-contact-form button::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
.kbf-contact-form button:hover::after { opacity: 1; }
.kbf-contact-form button:hover { 
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--gold-glow); 
}

/* ══════════════════════════════════════════════════════════
   FOOTER — Slim 2-Column
   ══════════════════════════════════════════════════════════ */

.kbf-ft{background:var(--bg-dark,#021a19);position:relative;z-index:1;overflow:hidden}
.kbf-ft__line{height:2px;background:linear-gradient(90deg,transparent,rgba(214,175,102,0.4),transparent);position:relative;overflow:hidden}.kbf-ft__line::after{content:'';position:absolute;top:0;left:-100%;width:50%;height:100%;background:linear-gradient(90deg,transparent,#D6AF66,transparent);animation:ftLineScan 3s linear infinite}@keyframes ftLineScan{0%{left:-50%}100%{left:100%}}
.kbf-ft__inner{max-width:1100px;margin:0 auto;padding:45px 24px 0}
.kbf-ft__grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.kbf-ft__brand{}
.kbf-ft__logo-row{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.kbf-ft__logo{width:44px;height:44px;object-fit:contain}
.kbf-ft__logo-fb{width:44px;height:44px}
.kbf-ft__logo-fb svg{width:100%;height:100%}
.kbf-ft__name{font-size:1.2rem;font-weight:400;color:rgba(255,255,255,0.85);letter-spacing:.01em}
.kbf-ft__name b{color:var(--gold,#D6AF66);font-weight:500}
.kbf-ft__desc{font-size:.82rem;color:rgba(255,255,255,0.38);line-height:1.85;margin-bottom:18px;max-width:380px}
.kbf-ft__socials{display:flex;gap:8px}
.kbf-ft__soc{width:36px;height:36px;border-radius:50%;border:1px solid rgba(214,175,102,0.12);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.4);transition:all .3s;text-decoration:none}
.kbf-ft__soc .material-symbols-outlined{font-size:17px}
.kbf-ft__soc:hover{border-color:rgba(214,175,102,0.5);color:var(--gold,#D6AF66);background:rgba(214,175,102,0.06);transform:translateY(-2px)}
.kbf-ft__contact{display:flex;flex-direction:column;gap:12px;padding-top:8px}
.kbf-ft__row{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:10px;color:rgba(255,255,255,0.55);font-size:.85rem;text-decoration:none;transition:all .3s;border:1px solid transparent}
a.kbf-ft__row:hover{background:rgba(214,175,102,0.04);border-color:rgba(214,175,102,0.1);color:rgba(255,255,255,0.8)}
.kbf-ft__ico{font-size:20px;color:var(--gold,#D6AF66);opacity:.5;flex-shrink:0;transition:opacity .3s}
a.kbf-ft__row:hover .kbf-ft__ico{opacity:.85}
.kbf-ft__bottom{display:flex;justify-content:center;align-items:center;padding:22px 0;margin-top:35px;border-top:1px solid rgba(214,175,102,0.06);font-size:.75rem;color:rgba(255,255,255,0.25)}
@media(max-width:768px){
    .kbf-ft__grid{grid-template-columns:1fr;gap:28px}
    .kbf-ft__inner{padding:30px 20px 0}
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS — Reveal System
   Elements are visible by default. JS adds 'kbf-animate' to body 
   to enable animations. Safety: auto-reveals after 2.5s.
   ══════════════════════════════════════════════════════════ */

body.kbf-animate .reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
body.kbf-animate .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

body.kbf-animate .reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
body.kbf-animate .reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

body.kbf-animate .reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
body.kbf-animate .reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

body.kbf-animate .reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
body.kbf-animate .reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

body.kbf-animate .reveal-rotate {
    opacity: 0;
    transform: translateY(30px) rotate(3deg);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
body.kbf-animate .reveal-rotate.visible {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

/* Staggered children animation */
body.kbf-animate .stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
body.kbf-animate .stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
body.kbf-animate .stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
body.kbf-animate .stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
body.kbf-animate .stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
body.kbf-animate .stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
body.kbf-animate .stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
body.kbf-animate .stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
body.kbf-animate .stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
body.kbf-animate .stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════════════════════════════ */

.kbf-mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 79, 75, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 30px 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
[dir="ltr"] .kbf-mobile-menu { transform: translateX(-100%); }
.kbf-mobile-menu.open { transform: translateX(0) !important; }

.kbf-mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.kbf-mobile-menu a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white-80);
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--gold-10);
    transition: all 0.3s;
}
.kbf-mobile-menu a:hover { 
    color: var(--gold); 
    padding-right: 15px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .kbf-nav__links { display: none; }
    .kbf-nav__cta { display: none; }
    .kbf-nav__hamburger { display: block; }
    
    .kbf-stats { grid-template-columns: repeat(2, 1fr); }
    .kbf-vision-grid { grid-template-columns: 1fr; }
    .kbf-contact-grid { grid-template-columns: 1fr; }
    .kbf-subs-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .kbf-hero-3d { height: 180vh; }
    .kbf-hero-3d[data-mode="video"] { height: 220vh; }
    .kbf-hero-3d__sticky {
        background: #000;
    }
    .kbf-hero-3d__canvas {
        /* Full bleed on mobile */
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    .kbf-hero-3d__canvas canvas {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
    .kbf-hero-3d__video {
        object-fit: cover;
        object-position: center center;
    }
    .kbf-hero-3d__overlay {
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.4) 35%,
            rgba(0,0,0,0.1) 60%,
            transparent 100%
        ) !important;
    }
    .kbf-hero-3d__content {
        bottom: 6%;
        right: 16px;
        left: 16px;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: flex-end !important;
        gap: 12px !important;
        text-align: right;
    }
    .kbf-hero-3d__content > div:first-child {
        max-width: 100% !important;
        width: 100% !important;
        flex: none !important;
    }
    .kbf-hero-3d__content > div:last-child {
        display: none !important;
    }
    .kbf-hero-3d__split {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .kbf-hero-3d__text-side { max-width: 100%; }
    .kbf-hero-3d__logo-side { display: none; }
    .kbf-hero-3d__desc { font-size: 0.82rem; margin-top: 12px; line-height: 1.7; }
    .kbf-hero-3d__cta { padding: 11px 26px; font-size: 0.82rem; }
    .kbf-hero-3d__text {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        min-height: 70px;
    }
    .kbf-hero__desc { font-size: 0.78rem !important; margin-top: 10px !important; line-height: 1.7 !important; }
    .kbf-hero__cta { padding: 10px 24px !important; font-size: 0.78rem !important; border-radius: 40px !important; }
    .kbf-hero__ctas { gap: 8px !important; margin-top: 14px !important; }
    .kbf-hero__tagline { margin-top: 12px !important; font-size: 0.7rem !important; }
    .kbf-hero-3d__scroll-hint { font-size: 11px; bottom: 12px; }
    
    .kbf-section { padding: 25px 0; }
    
    .kbf-stats { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    .kbf-stat { padding: 20px 15px; }
    .kbf-stat__number { font-size: 2rem; }
    .kbf-stat__label { font-size: 0.8rem; }
    
    .kbf-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
    }
    .kbf-card { padding: 20px 15px; }
    .kbf-card__icon { width: 50px; height: 50px; margin-bottom: 15px; }
    .kbf-card__title { font-size: 0.95rem; }
    .kbf-card__desc { font-size: 0.8rem; }
    
    .kbf-subs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .kbf-sub-card__logo > .material-symbols-outlined { font-size: 36px; }
    .kbf-sub-card__logo h3 { font-size: 0.75rem; }
    .kbf-sub-card__overlay { padding: 12px 10px; }
    .kbf-sub-card__overlay p { font-size: 0.68rem; line-height: 1.5; margin-bottom: 8px; }
    .kbf-sub-card__overlay h3 { font-size: 0.75rem; }
    .kbf-sub-card__sector { font-size: 0.6rem; }
    .kbf-sub-card__btn { font-size: 0.68rem; padding: 5px 12px; }
    
    .kbf-vision-grid { grid-template-columns: 1fr; }
    .kbf-news-card { flex: 0 0 280px; }
}

@media (max-width: 480px) {
    .kbf-nav__inner { padding: 0 15px; }
    .kbf-nav__brand-text { font-size: 1rem; }
    .kbf-nav__logo { width: 35px; height: 35px; }
    .kbf-nav__logo.has-img { width: auto; height: 40px; }
    
    .kbf-about__narrative { font-size: 1.25rem; }
    .kbf-stat__number { font-size: 1.5rem; }
    .kbf-stat__label { font-size: 0.75rem; }
    .kbf-hero__ctas { flex-direction: column !important; }
    .kbf-hero__cta { width: 100% !important; justify-content: center !important; }
    
    .kbf-card { padding: 25px 20px; }
    .kbf-vision-card { padding: 25px 20px; }
    .kbf-contact-form { padding: 20px; }
}

/* ══════════════════════════════════════════════════════════
   SINGLE ARTICLE PAGE
   ══════════════════════════════════════════════════════════ */

.kbf-single {
    background: var(--bg-deep);
    min-height: 100vh;
}

.kbf-article__hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--nav-h) + 40px) 20px 40px;
    margin-bottom: 40px;
}
.kbf-article__hero-bg {
    position: absolute;
    inset: 0;
}
.kbf-article__hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.kbf-article__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-deep) 0%, rgba(15,79,75,0.5) 100%);
}
.kbf-article__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.kbf-article__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--white-60);
}
.kbf-article__date {
    display: flex;
    align-items: center;
    gap: 6px;
}
.kbf-article__date .material-symbols-outlined { font-size: 18px; }
.kbf-article__cat a { color: var(--gold); }
.kbf-article__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.3;
}

.kbf-article__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.kbf-article__sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    height: fit-content;
}
.kbf-toc {
    background: var(--bg-card);
    border: 1px solid var(--gold-20);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}
.kbf-toc__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-10);
}
.kbf-toc__title .material-symbols-outlined { font-size: 20px; }
.kbf-toc__nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kbf-toc__nav li.sub { padding-right: 15px; }
[dir="ltr"] .kbf-toc__nav li.sub { padding-right: 0; padding-left: 15px; }
.kbf-toc__nav a {
    display: block;
    font-size: 0.9rem;
    color: var(--white-60);
    padding: 6px 0;
    border-right: 2px solid transparent;
    padding-right: 10px;
    transition: all 0.3s;
}
[dir="ltr"] .kbf-toc__nav a {
    border-right: none;
    border-left: 2px solid transparent;
    padding-right: 0;
    padding-left: 10px;
}
.kbf-toc__nav a:hover,
.kbf-toc__nav a.active {
    color: var(--gold);
    border-color: var(--gold);
}

.kbf-share {
    background: var(--bg-card);
    border: 1px solid var(--gold-20);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.kbf-share h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--gold);
}
.kbf-share__buttons {
    display: flex;
    gap: 10px;
}
.kbf-share__btn {
    width: 40px;
    height: 40px;
    background: var(--gold-10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all 0.3s;
}
.kbf-share__btn:hover {
    background: var(--gold);
    color: var(--bg-deep);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--gold-glow);
}

.kbf-article__content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--white-80);
}
.kbf-article__content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gold-light);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}
.kbf-article__content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    margin: 30px 0 15px;
}
.kbf-article__content p { margin-bottom: 20px; }
.kbf-article__content ul, 
.kbf-article__content ol {
    margin: 20px 0;
    padding-right: 25px;
}
[dir="ltr"] .kbf-article__content ul,
[dir="ltr"] .kbf-article__content ol {
    padding-right: 0;
    padding-left: 25px;
}
.kbf-article__content li { margin-bottom: 10px; }
.kbf-article__content blockquote {
    background: var(--bg-card);
    border-right: 4px solid var(--gold);
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    border-radius: var(--radius);
}
[dir="ltr"] .kbf-article__content blockquote {
    border-right: none;
    border-left: 4px solid var(--gold);
}
.kbf-article__content img {
    border-radius: var(--radius-lg);
    margin: 25px 0;
}
.kbf-article__content a { color: var(--gold); }
.kbf-article__content a:hover { text-decoration: underline; }

.kbf-related {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    border-top: 1px solid var(--gold-10);
}
.kbf-related__title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--gold-light);
}
.kbf-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.kbf-related__card {
    background: var(--bg-card);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.kbf-related__card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.kbf-related__img img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.kbf-related__card h3 {
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 15px 8px;
    line-height: 1.4;
}
.kbf-related__card span {
    display: block;
    font-size: 0.8rem;
    color: var(--gold);
    padding: 0 15px 15px;
}

@media (max-width: 1024px) {
    .kbf-article__layout {
        grid-template-columns: 1fr;
    }
    .kbf-article__sidebar {
        position: static;
        display: flex;
        gap: 20px;
    }
    .kbf-toc, .kbf-share { flex: 1; margin-bottom: 0; }
}

@media (max-width: 768px) {
    .kbf-article__hero { height: 40vh; min-height: 280px; }
    .kbf-article__sidebar { flex-direction: column; }
    .kbf-related__grid { grid-template-columns: 1fr; }
}

/* Full-width sections that break out of body padding */
}

/* ═══════════════════════════════════════════
   TESTIMONIALS SLIDER
   ═══════════════════════════════════════════ */
.kbf-ts{position:relative;max-width:100%;margin:0 auto}
.kbf-ts__viewport{overflow:hidden}
.kbf-ts__track{display:flex;transition:transform .5s cubic-bezier(.4,0,.2,1)}
.kbf-ts__slide{flex:0 0 50%;padding:0 10px;box-sizing:border-box}
.kbf-ts__card{background:rgba(255,255,255,.03);border:1px solid var(--gold-10,rgba(214,175,102,.1));border-radius:var(--radius-lg,16px);padding:35px 30px;position:relative;min-height:260px;display:flex;flex-direction:column;justify-content:space-between}
.kbf-ts__quote{font-size:4rem;line-height:1;color:var(--gold,#D6AF66);opacity:.25;font-family:serif;position:absolute;top:12px;right:25px}
.lang-en .kbf-ts__quote{right:auto;left:25px}
.kbf-ts__text{font-size:.95rem;line-height:1.9;color:rgba(255,255,255,.7);margin-bottom:18px;position:relative;z-index:1}
.kbf-ts__stars{display:flex;gap:2px;margin-bottom:18px}.kbf-ts__stars .material-symbols-outlined{font-size:16px;color:var(--gold,#D6AF66)}
.kbf-ts__author{display:flex;align-items:center;gap:14px;border-top:1px solid rgba(214,175,102,.1);padding-top:16px}
.kbf-ts__avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,var(--gold,#D6AF66),#c49a4a);display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:600;color:var(--bg,#0F4E4A);flex-shrink:0}
.kbf-ts__name{font-weight:500;font-size:.95rem}
.kbf-ts__role{font-size:.78rem;color:var(--gold,#D6AF66);opacity:.7}
.kbf-ts__arr{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:rgba(214,175,102,.15);border:1px solid rgba(214,175,102,.3);color:var(--gold,#D6AF66);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s;z-index:5}
.kbf-ts__arr:hover{background:var(--gold,#D6AF66);color:#0F4E4A}
.kbf-ts__arr--l{left:-24px}.kbf-ts__arr--r{right:-24px}
.kbf-ts__arr .material-symbols-outlined{font-size:20px}
.kbf-ts__dots{display:flex;justify-content:center;gap:8px;margin-top:30px}
.kbf-ts__dots .dot{width:10px;height:10px;border-radius:50%;background:rgba(214,175,102,.2);cursor:pointer;transition:all .3s}
.kbf-ts__dots .dot.on{background:var(--gold,#D6AF66);width:28px;border-radius:5px}
@media(max-width:768px){.kbf-ts__slide{flex:0 0 100%}.kbf-ts__arr--l{left:5px}.kbf-ts__arr--r{right:5px}}

/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */
.kbf-faq-list{max-width:800px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.kbf-faq-item{background:rgba(255,255,255,0.03);border:1px solid var(--gold-10,rgba(214,175,102,0.1));border-radius:var(--radius-lg,16px);overflow:hidden;transition:all 0.3s}
.kbf-faq-item:hover,.kbf-faq-item.active{border-color:var(--gold-30,rgba(214,175,102,0.3))}
.kbf-faq-item__q{width:100%;display:flex;align-items:center;justify-content:space-between;padding:22px 28px;background:none;border:none;color:#fff;font-size:1rem;font-weight:500;cursor:pointer;text-align:right;font-family:inherit;gap:15px}
.lang-en .kbf-faq-item__q{text-align:left}
.kbf-faq-item__icon{color:var(--gold,#D6AF66);transition:transform 0.3s;flex-shrink:0}
.kbf-faq-item.active .kbf-faq-item__icon{transform:rotate(180deg)}
.kbf-faq-item__a{max-height:0;overflow:hidden;transition:max-height 0.4s ease,padding 0.3s}
.kbf-faq-item.active .kbf-faq-item__a{max-height:300px;padding:0 28px 22px}
.kbf-faq-item__a p{font-size:0.9rem;line-height:1.9;color:rgba(255,255,255,0.55)}

/* ═══════════════════════════════════════════
   ABOUT PAGE — TEAM
   ═══════════════════════════════════════════ */
.ab-team{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ab-member{position:relative;border-radius:14px;overflow:hidden;cursor:pointer;transform:translateY(0);transition:transform .4s}
.ab-member:hover{transform:translateY(-5px)}
.ab-member__img{aspect-ratio:3/4;overflow:hidden;position:relative;background:linear-gradient(135deg,rgba(0,97,94,0.15),rgba(0,97,94,0.05))}
.ab-member__img img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) brightness(0.9);transition:all .7s cubic-bezier(.4,0,.2,1)}
.ab-member:hover img{filter:grayscale(0) brightness(1);transform:scale(1.08)}
.ab-member__ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.ab-member__ph .material-symbols-outlined{font-size:48px;color:rgba(214,175,102,0.18)}
.ab-member__grad{position:absolute;inset:0;background:linear-gradient(0deg,rgba(2,26,25,0.95) 0%,rgba(2,26,25,0.3) 40%,transparent 60%)}
.ab-member__info{position:absolute;bottom:0;padding:16px;width:100%;transform:translateY(5px);transition:transform .4s}
.ab-member:hover .ab-member__info{transform:translateY(0)}
.ab-member__name{font-size:.95rem;font-weight:500;color:var(--gold,#D6AF66);margin-bottom:2px}
.ab-member__role{font-size:.7rem;color:rgba(255,255,255,0.42)}
@media(max-width:1024px){.ab-team{grid-template-columns:repeat(3,1fr)}}
@media(max-width:768px){.ab-team{grid-template-columns:repeat(2,1fr)}}

/* ══════════════════════════════════════════════════════════
   SCROLL TEXT REVEAL — Word-by-word, dim white → white/gold gradient
   ══════════════════════════════════════════════════════════ */
.kbf-reveal-text .kbf-rw {
    display: inline;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.6s ease;
}
.kbf-reveal-text .kbf-rw.lit {
    color: #D6AF66;
}

/* ═══ PREMIUM MAP ═══ */
.kbf-map-wrap {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.kbf-map-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0a2e2b;
    border: 1px solid rgba(214,175,102,0.12);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(214,175,102,0.05);
    transition: all 0.5s cubic-bezier(.4,0,.2,1);
}
.kbf-map-frame:hover {
    border-color: rgba(214,175,102,0.25);
    box-shadow: 0 30px 70px rgba(0,0,0,0.35), 0 0 40px rgba(214,175,102,0.08);
    transform: translateY(-4px);
}
.kbf-map-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 3;
    pointer-events: none;
}
.kbf-map-corner--tl { top: -1px; left: -1px; border-top: 2px solid var(--gold, #D6AF66); border-left: 2px solid var(--gold, #D6AF66); border-radius: 20px 0 0 0; }
.kbf-map-corner--tr { top: -1px; right: -1px; border-top: 2px solid var(--gold, #D6AF66); border-right: 2px solid var(--gold, #D6AF66); border-radius: 0 20px 0 0; }
.kbf-map-corner--bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--gold, #D6AF66); border-left: 2px solid var(--gold, #D6AF66); border-radius: 0 0 0 20px; }
.kbf-map-corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold, #D6AF66); border-right: 2px solid var(--gold, #D6AF66); border-radius: 0 0 20px 0; }
@keyframes cornerGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.kbf-map-corner { animation: cornerGlow 3s ease-in-out infinite; }
.kbf-map-corner--tr { animation-delay: 0.75s; }
.kbf-map-corner--bl { animation-delay: 1.5s; }
.kbf-map-corner--br { animation-delay: 2.25s; }
.kbf-map-inner { position: relative; }
.kbf-map-inner iframe {
    filter: brightness(0.75) contrast(1.1) saturate(0.3) hue-rotate(140deg);
    transition: filter 0.6s ease;
}
.kbf-map-frame:hover .kbf-map-inner iframe {
    filter: brightness(0.85) contrast(1.05) saturate(0.5) hue-rotate(140deg);
}
.kbf-map-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,46,43,0.4) 0%, transparent 30%, transparent 70%, rgba(10,46,43,0.6) 100%);
    pointer-events: none;
    z-index: 1;
}
.kbf-map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    z-index: 4;
    pointer-events: none;
}
.kbf-map-pin .material-symbols-outlined {
    font-size: 36px;
    color: var(--gold, #D6AF66);
    filter: drop-shadow(0 2px 8px rgba(214,175,102,0.5));
    animation: pinBounce 2s ease-in-out infinite;
}
@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.kbf-map-pin__pulse {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(214,175,102,0.25);
    animation: pinPulse 2s ease-out infinite;
}
@keyframes pinPulse {
    0% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    100% { transform: translateX(-50%) scale(3); opacity: 0; }
}
.kbf-map-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    background: rgba(10,46,43,0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(214,175,102,0.1);
}
.kbf-map-bar__left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}
.kbf-map-bar__left .material-symbols-outlined {
    font-size: 18px;
    color: var(--gold, #D6AF66);
    opacity: 0.6;
}
.kbf-map-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(214,175,102,0.1);
    border: 1px solid rgba(214,175,102,0.2);
    border-radius: 50px;
    color: var(--gold, #D6AF66);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.kbf-map-bar__btn:hover {
    background: rgba(214,175,102,0.18);
    border-color: rgba(214,175,102,0.35);
    transform: translateY(-1px);
}
.kbf-map-bar__btn .material-symbols-outlined { font-size: 15px; }
@media (max-width: 768px) {
    .kbf-map-inner iframe { height: 300px; }
    .kbf-map-bar { flex-direction: column; text-align: center; gap: 10px; padding: 12px 16px; }
    .kbf-map-bar__left { font-size: 0.75rem; }
    .kbf-map-pin .material-symbols-outlined { font-size: 28px; }
}
