/* ============================================================
   KARTULI NEWS — Community Hub (desktop homepage)
   Ported from the React mockup (hub.css + hub-sections.css).
   ALL rules are scoped under .khub so nothing leaks into the
   shared site chrome, Bootstrap, or the mobile view.
   The hub container class is .khub-container (not .container)
   to avoid colliding with Bootstrap's .container.
   ============================================================ */

/* Georgian serif display font from the mockup (mtavruli letterforms).
   Falls back to Noto Serif Georgian if the .ttf is not uploaded yet. */
@font-face{
  font-family:'BPG Nino Mtavruli';
  src:url('../fonts/bpg_nino_mtavruli_normal.ttf') format('truetype');
  font-weight:400; font-style:normal; font-display:swap;
}

/* ---- tokens + base (scoped to the hub root) ---- */
.khub{
  /* brand red ramp */
  --red-900:#7a0000; --red-800:#9a0000; --red-700:#b40000; --red-600:#c90000;
  --red-500:#e50914; --red-400:#e0544e; --red-100:#ffebeb;
  --primary:var(--red-700); --primary-hover:var(--red-800); --primary-subtle:var(--red-100);
  /* neutrals */
  --n-950:#0f172a; --n-900:#1a202c; --n-800:#2d3748; --n-700:#4a5568; --n-600:#718096;
  --n-500:#a0aec0; --n-400:#cbd5e0; --n-300:#e2e8f0; --n-200:#edf2f7; --n-100:#f7fafc; --n-50:#fff;
  /* semantic */
  --fg-heading:var(--n-900); --fg-body:var(--n-700); --fg-subtle:var(--n-600); --fg-muted:var(--n-500);
  --bg-page:#fff; --bg-section:var(--n-100); --bg-card:#fff; --bg-dark:var(--n-900);
  --border:var(--n-300);
  /* module accents */
  --mod-news:#b40000; --mod-kino:#e50914; --mod-gallery:#caa31f; --mod-library:#19a7c9;
  --mod-tours:#2f8f5b; --mod-kids:#3498db; --mod-jobs:#7a5ea8; --mod-locations:#d2691e; --mod-poland:#667eea;
  /* fonts — Inter + Noto already loaded site-wide (header.php) */
  --font-body:'Inter','Noto Sans Georgian',sans-serif;
  --font-head:'BPG Nino Mtavruli','Noto Serif Georgian',serif;
  --font-serif:'BPG Nino Mtavruli','Noto Serif Georgian',serif;
  /* radii / shadow */
  --r-sm:4px; --r-md:8px; --r-lg:12px; --r-xl:16px; --r-full:9999px;
  --sh-sm:0 4px 6px -1px rgba(0,0,0,.05),0 2px 4px -1px rgba(0,0,0,.03);
  --sh-xs:0 1px 2px rgba(0,0,0,.05);
  --sh-md:0 10px 15px -3px rgba(0,0,0,.07),0 4px 6px -2px rgba(0,0,0,.04);
  --sh-lg:0 20px 25px -5px rgba(0,0,0,.10),0 10px 10px -5px rgba(0,0,0,.04);
  --khub-container:1240px;
  --d:1; /* density multiplier */

  font-family:var(--font-body);
  background:var(--bg-page);
  color:var(--fg-body);
  -webkit-font-smoothing:antialiased;
}
.khub[data-head="sans"]{ --font-head:'Inter','Noto Sans Georgian',sans-serif; }
.khub[data-accent="crimson"]{ --primary:#c90000; --primary-hover:#a30000; --mod-news:#c90000; }
.khub[data-accent="wine"]{ --primary:#8c1d2c; --primary-hover:#6f1622; --mod-news:#8c1d2c; }
.khub[data-density="compact"]{ --d:.82; }
.khub[data-density="airy"]{ --d:1.2; }
.khub[data-tiles="mono"]{
  --mod-news:#b40000; --mod-kino:#b40000; --mod-gallery:#b40000; --mod-library:#b40000;
  --mod-tours:#b40000; --mod-kids:#b40000; --mod-jobs:#b40000; --mod-locations:#b40000; --mod-poland:#b40000;
}

.khub *,.khub *::before,.khub *::after{ box-sizing:border-box; }
.khub-container{ max-width:var(--khub-container); margin:0 auto; padding:0 24px; }
.khub h1,.khub h2,.khub h3,.khub h4,.khub h5{ font-family:var(--font-head); color:var(--fg-heading); line-height:1.18; letter-spacing:-.02em; font-weight:800; margin:0; }
.khub a{ text-decoration:none; color:inherit; }
.khub p{ margin:0; }
.khub img{ max-width:100%; }
.khub button{ font-family:var(--font-body); }
/* anchored sections clear the sticky header (#projects, #blog, #latest-news, #team) */
.khub section[id]{ scroll-margin-top:120px; }

/* kicker + section heading pattern */
.khub .sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:calc(24px*var(--d)); }
.khub .sec-head .titles{ display:flex; flex-direction:column; gap:7px; }
.khub .kicker{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.16em; color:var(--primary); display:inline-flex; align-items:center; gap:8px; }
.khub .kicker::before{ content:''; width:22px; height:2px; background:var(--primary); display:inline-block; }
.khub .sec-head h2{ font-size:clamp(1.6rem,3vw,2.1rem); }
.khub .sec-link{ font-size:13px; font-weight:600; color:var(--fg-subtle); display:inline-flex; align-items:center; gap:7px; white-space:nowrap; transition:.2s; }
.khub .sec-link:hover{ color:var(--primary); gap:11px; }

.khub .badge{ display:inline-block; background:var(--primary); color:#fff; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:4px 10px; border-radius:var(--r-sm); }
.khub .badge.soft{ background:var(--primary-subtle); color:var(--primary); }

/* ============ HEADER ============ */
.khub .hub-header{ position:sticky; top:0; z-index:1030; background:rgba(255,255,255,.9); backdrop-filter:blur(14px); border-bottom:1px solid var(--border); transition:box-shadow .3s; }
.khub .hub-header.scrolled{ box-shadow:var(--sh-md); background:rgba(255,255,255,.97); }
.khub .hub-header-inner{ display:flex; align-items:center; gap:18px; height:68px; }
.khub .hub-logo{ display:flex; align-items:center; gap:11px; flex-shrink:0; }
.khub .hub-logo img{ height:42px; width:auto; }
.khub .hub-logo .wordmark{ display:flex; flex-direction:column; line-height:1; }
.khub .hub-logo .wordmark b{ font-family:var(--font-head); font-size:19px; font-weight:800; color:var(--fg-heading); letter-spacing:-.02em; }
.khub .hub-logo .wordmark b .pt{ color:var(--primary); }
.khub .hub-logo .wordmark small{ font-size:9px; letter-spacing:.22em; text-transform:uppercase; color:var(--fg-muted); margin-top:3px; font-weight:600; }
.khub .hub-nav{ display:flex; gap:2px; margin-left:10px; flex:1; }
.khub .hub-nav a{ padding:9px 14px; font-size:14px; font-weight:500; color:var(--fg-heading); border-radius:var(--r-md); transition:.2s; position:relative; }
.khub .hub-nav a:hover{ color:var(--primary); background:rgba(180,0,0,.05); }
.khub .hub-nav a.active{ color:var(--primary); }
.khub .hub-nav a.active::after{ content:''; position:absolute; left:14px; right:14px; bottom:2px; height:2px; background:var(--primary); border-radius:2px; }
.khub .hub-actions{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.khub .hub-search{ width:38px; height:38px; border-radius:var(--r-full); border:1px solid var(--border); background:#fff; color:var(--fg-subtle); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.2s; }
.khub .hub-search:hover{ border-color:var(--primary); color:var(--primary); }
/* auth icon buttons (messages / notifications / dashboard) — same look as .hub-search */
.khub .hub-icon-btn{ position:relative; width:38px; height:38px; border-radius:var(--r-full); border:1px solid var(--border); background:#fff; color:var(--fg-subtle); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.2s; font-size:14px; text-decoration:none; }
.khub .hub-icon-btn:hover{ border-color:var(--primary); color:var(--primary); }
.khub .hub-notif{ position:relative; }
.khub .hub-notif-badge{ position:absolute; top:-4px; right:-4px; min-width:17px; height:17px; padding:0 4px; border-radius:9999px; background:var(--red-500); color:#fff; font-size:10px; font-weight:700; line-height:17px; text-align:center; box-shadow:0 0 0 2px #fff; }
.khub .hub-notif .dropdown-menu{ width:340px; max-width:92vw; }
.khub .hub-langs{ display:flex; gap:4px; background:var(--n-100); border-radius:var(--r-md); padding:5px; }
.khub .hub-langs a{ width:27px; height:19px; border-radius:3px; border:2px solid transparent; padding:0; cursor:pointer; overflow:hidden; opacity:.5; transition:.2s; background:none; display:block; }
.khub .hub-langs a.on{ opacity:1; border-color:var(--primary); }
.khub .hub-langs img{ width:100%; height:100%; object-fit:cover; display:block; }
.khub .hub-login{ display:inline-flex; align-items:center; gap:7px; background:var(--primary); color:#fff; border:none; border-radius:var(--r-full); padding:9px 20px; font-size:13px; font-weight:600; cursor:pointer; transition:.2s; font-family:var(--font-body); }
.khub .hub-login:hover{ background:var(--primary-hover); transform:translateY(-1px); box-shadow:var(--sh-sm); color:#fff; }

/* ============ TICKER ============ */
.khub .hub-ticker{ background:#121212; color:#fff; display:flex; align-items:stretch; height:44px; overflow:hidden; font-size:13.5px; font-weight:500; }
.khub .hub-ticker .tk-label{ background:var(--red-600); padding:0 18px; display:flex; align-items:center; gap:9px; flex-shrink:0; }
.khub .hub-ticker .tk-label .dot{ width:7px; height:7px; border-radius:50%; background:#fff; animation:khub-tk-blink 1s infinite; }
.khub .hub-ticker .tk-label span{ font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.khub .hub-ticker .tk-track{ flex:1; overflow:hidden; display:flex; align-items:center; }
.khub .hub-ticker .tk-run{ display:flex; align-items:center; white-space:nowrap; padding-left:24px; animation:khub-tk-scroll 168s linear infinite; }
.khub .hub-ticker .tk-run a{ color:#fff; }
.khub .hub-ticker .tk-run a:hover{ text-decoration:underline; }
.khub .hub-ticker .tk-sep{ margin:0 22px; opacity:.28; }
@keyframes khub-tk-blink{ 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes khub-tk-scroll{ 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ============ FOOTER ============ */
.khub .hub-footer{ background:var(--bg-dark); color:var(--n-500); margin-top:calc(80px*var(--d)); }
.khub .hub-footer-top{ display:grid; grid-template-columns:2fr 1fr 1fr 1.6fr; gap:42px; padding:calc(56px*var(--d)) 0 calc(40px*var(--d)); }
.khub .hub-footer h5{ color:#fff; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; margin-bottom:18px; }
.khub .hub-footer .f-brand img{ height:44px; margin-bottom:16px; }
.khub .hub-footer .f-brand p{ font-size:13.5px; line-height:1.7; max-width:300px; }
.khub .hub-footer .f-social{ display:flex; gap:11px; margin-top:20px; }
.khub .hub-footer .f-social a{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.07); display:flex; align-items:center; justify-content:center; color:var(--n-500); transition:.2s; }
.khub .hub-footer .f-social a:hover{ background:var(--primary); color:#fff; transform:translateY(-2px); }
.khub .hub-footer .f-links{ list-style:none; display:flex; flex-direction:column; gap:3px; padding:0; margin:0; }
.khub .hub-footer .f-links a{ display:block; padding:6px 0; font-size:13.5px; transition:.2s; }
.khub .hub-footer .f-links a:hover{ color:#fff; padding-left:6px; }
.khub .hub-footer .f-news p{ font-size:13.5px; line-height:1.6; margin-bottom:14px; }
.khub .hub-footer .f-news-form{ display:flex; }
.khub .hub-footer .f-news-form input{ flex:1; padding:11px 14px; background:#2d3748; border:1px solid #4a5568; border-right:none; border-radius:var(--r-md) 0 0 var(--r-md); color:#fff; font-size:13px; outline:none; font-family:var(--font-body); }
.khub .hub-footer .f-news-form input::placeholder{ color:#718096; }
.khub .hub-footer .f-news-form button{ padding:0 18px; background:var(--primary); color:#fff; border:none; border-radius:0 var(--r-md) var(--r-md) 0; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; cursor:pointer; }
.khub .hub-footer-bottom{ border-top:1px solid #2d3748; padding:20px 0; text-align:center; font-size:12.5px; color:var(--fg-subtle); }
.khub .hub-footer-bottom a{ color:var(--fg-subtle); } .khub .hub-footer-bottom a:hover{ color:#fff; }

/* ============================================================
   SECTION LAYOUTS
   ============================================================ */

/* ---- HERO ---- */
.khub .hub-hero{ padding-top:calc(34px*var(--d)); padding-bottom:calc(20px*var(--d)); }
.khub .hub-hero-grid{ display:grid; grid-template-columns:1.62fr 1fr; gap:calc(24px*var(--d)); align-items:stretch; }

.khub .feat{ position:relative; border-radius:var(--r-xl); overflow:hidden; min-height:480px; display:flex; align-items:flex-end; box-shadow:var(--sh-md); isolation:isolate; }
.khub .feat .feat-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.25,.46,.45,.94); z-index:-2; }
.khub .feat:hover .feat-img{ transform:scale(1.04); }
.khub .feat.brand .feat-img{ z-index:-3; }
.khub .feat-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; opacity:0; transition:opacity .5s ease; }
.khub .feat-video.ready{ opacity:1; }
.khub .feat.brand{ align-items:flex-end; justify-content:center; text-align:center; }
.khub .feat.brand .feat-brand{ align-items:center; text-align:center; padding-bottom:clamp(36px,5vw,64px); }
.khub .feat.brand::after{ background:linear-gradient(to top,rgba(15,12,12,.82) 0%,rgba(15,12,12,.5) 50%,rgba(15,12,12,.6) 100%); }
.khub .feat-brand{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:22px; padding:clamp(28px,4vw,52px); }
.khub .feat-logo-plaque{ display:inline-flex; align-items:center; justify-content:center; background:transparent; border-radius:0; padding:0; box-shadow:none; backdrop-filter:none; }
.khub .feat-logo-plaque img{ height:clamp(40px,4vw,56px); width:auto; display:block; }
.khub .feat.brand h1{ color:#fff; font-size:clamp(2.2rem,4.6vw,3.5rem); line-height:1.08; letter-spacing:-.02em; margin:0; text-shadow:0 4px 22px rgba(0,0,0,.45); }
.khub .feat-tag{ color:rgba(255,255,255,.86); font-size:clamp(13px,1.4vw,16px); font-weight:500; letter-spacing:.02em; }
.khub .feat::after{ content:''; position:absolute; inset:0; background:linear-gradient(to top,rgba(15,12,12,.92) 0%,rgba(15,12,12,.55) 38%,rgba(15,12,12,.05) 70%); z-index:-1; }

/* LIVE / ეთერი panel */
.khub .live{ background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-xl); padding:calc(20px*var(--d)); display:flex; flex-direction:column; box-shadow:var(--sh-sm); }
.khub .live-head{ display:flex; align-items:center; gap:9px; margin-bottom:14px; }
.khub .live-head .live-dot{ width:9px; height:9px; border-radius:50%; background:var(--red-500); box-shadow:0 0 0 4px rgba(229,9,20,.18); animation:khub-tk-blink 1.4s infinite; }
.khub .live-head b{ font-family:var(--font-head); font-size:14px; font-weight:800; letter-spacing:.04em; color:var(--fg-heading); text-transform:uppercase; }
.khub .live-head .yt-link{ margin-left:auto; display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; color:var(--red-500); text-transform:uppercase; letter-spacing:.05em; transition:.2s; }
.khub .live-head .yt-link:hover{ color:var(--primary); }
.khub .live-head .yt-link i{ font-size:14px; }
.khub .live-player{ position:relative; border-radius:var(--r-lg); overflow:hidden; aspect-ratio:16/9; margin-bottom:14px; background:#000; }
.khub .live-player .yt-host, .khub .live-player iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.khub .live-poster{ position:absolute; inset:0; cursor:pointer; z-index:2; }
.khub .live-poster img{ width:100%; height:100%; object-fit:cover; }
.khub .live-poster::after{ content:''; position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.6),transparent 58%); }
.khub .live-poster .play{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:56px; height:56px; border-radius:50%; background:rgba(255,255,255,.94); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:18px; transition:.2s; z-index:1; box-shadow:0 6px 20px rgba(0,0,0,.3); }
.khub .live-poster:hover .play{ transform:translate(-50%,-50%) scale(1.08); background:#fff; }
.khub .live-poster .cap{ position:absolute; left:13px; right:13px; bottom:11px; color:#fff; font-size:13px; font-weight:600; z-index:1; }
.khub .live-mute{ position:absolute; right:10px; bottom:10px; z-index:4; width:36px; height:36px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; border:1px solid rgba(255,255,255,.25); display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:13px; transition:.2s; backdrop-filter:blur(4px); }
.khub .live-mute:hover{ background:var(--primary); border-color:transparent; }
.khub .live-prog-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.khub .live-prog-head b{ font-family:var(--font-head); font-size:12.5px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--fg-heading); }
.khub .live-prog-head .cnt{ font-size:11px; color:var(--fg-muted); font-weight:600; display:inline-flex; align-items:center; gap:6px; }
.khub .live-prog{ display:flex; flex-direction:column; max-height:212px; overflow-y:auto; margin:0 -6px; padding:0 6px; scrollbar-width:thin; }
.khub .live-prog::-webkit-scrollbar{ width:5px; } .khub .live-prog::-webkit-scrollbar-thumb{ background:var(--n-300); border-radius:3px; }
.khub .lp-row{ display:grid; grid-template-columns:24px 1fr; gap:11px; align-items:center; padding:9px 8px; border-radius:var(--r-md); cursor:pointer; transition:background .18s; text-align:left; }
.khub .lp-row:hover{ background:var(--n-100); }
.khub .lp-row.on{ background:color-mix(in srgb, var(--primary) 8%, #fff); }
.khub .lp-idx{ display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:var(--fg-muted); }
.khub .lp-row:hover .lp-idx, .khub .lp-row.on .lp-idx{ color:var(--primary); }
.khub .lp-row:hover .lp-num{ display:none; } .khub .lp-play{ display:none; } .khub .lp-row:hover .lp-play{ display:inline; }
.khub .lp-row.on .lp-num, .khub .lp-row.on:hover .lp-play{ display:none; } .khub .lp-row.on .lp-eq{ display:inline-flex; }
.khub .lp-title{ font-size:13px; font-weight:500; color:var(--fg-heading); line-height:1.38; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.khub .lp-row.on .lp-title{ color:var(--primary); font-weight:600; }
.khub .lp-eq{ display:none; align-items:flex-end; gap:2px; height:13px; }
.khub .lp-eq i{ width:2.5px; background:var(--primary); border-radius:2px; display:block; animation:khub-eqbar 1s ease-in-out infinite; }
.khub .lp-eq i:nth-child(1){ animation-delay:0s; } .khub .lp-eq i:nth-child(2){ animation-delay:.25s; } .khub .lp-eq i:nth-child(3){ animation-delay:.5s; }
@keyframes khub-eqbar{ 0%,100%{ height:4px; } 50%{ height:13px; } }
@media (prefers-reduced-motion:reduce){ .khub .lp-eq i{ animation:none; height:9px; } }

/* ---- PROJECT CARDS (banners, 3×3) ---- */
.khub .hub-modules{ padding-top:calc(46px*var(--d)); }
.khub .mod-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:calc(22px*var(--d)); }
.khub .pcard{ display:flex; flex-direction:column; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; transition:.28s cubic-bezier(.25,.46,.45,.94); }
.khub .pcard:hover{ transform:translateY(-6px); box-shadow:var(--sh-lg); border-color:transparent; }
.khub .pc-banner{ position:relative; height:calc(290px*var(--d)); overflow:hidden; }
.khub .pc-banner img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.25,.46,.45,.94); }
.khub .pcard:hover .pc-banner img{ transform:scale(1.07); }
.khub .pc-banner::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg,color-mix(in srgb,var(--tile) 30%,transparent) 0%,rgba(12,9,9,.08) 40%,rgba(12,9,9,.40) 100%); }
.khub .pc-ico{ position:absolute; left:14px; top:14px; z-index:2; width:42px; height:42px; border-radius:var(--r-md); background:rgba(255,255,255,.94); color:var(--tile); display:flex; align-items:center; justify-content:center; font-size:18px; box-shadow:var(--sh-sm); backdrop-filter:blur(4px); }
/* centered glass panel that holds the title + description over the photo */
.khub .pc-overlay{ position:absolute; left:50%; bottom:10%; transform:translateX(-50%); z-index:2; width:88%; max-width:300px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:7px; padding:15px 18px; border-radius:var(--r-lg); background:rgba(15,12,12,.40); -webkit-backdrop-filter:blur(7px); backdrop-filter:blur(7px); border:1px solid rgba(255,255,255,.15); box-shadow:0 10px 28px rgba(0,0,0,.30); }
.khub .pc-title{ color:#fff; font-family:var(--font-head); font-size:19px; font-weight:800; letter-spacing:-.01em; line-height:1.22; text-shadow:0 2px 10px rgba(0,0,0,.45); }
.khub .pc-desc{ font-size:12.5px; color:rgba(255,255,255,.9); line-height:1.5; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.khub .pc-body{ padding:calc(14px*var(--d)) calc(16px*var(--d)); display:flex; flex-direction:column; }
.khub .pc-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.khub .pc-count{ font-size:11.5px; font-weight:600; color:var(--fg-muted); display:inline-flex; align-items:center; gap:7px; }
.khub .pc-count i{ color:var(--tile); }
.khub .pc-arrow{ width:32px; height:32px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--tile); font-size:12px; transition:.25s; flex-shrink:0; }
.khub .pcard:hover .pc-arrow{ background:var(--tile); color:#fff; border-color:transparent; transform:translateX(2px); }
.khub .mod-news{ --tile:var(--mod-news); } .khub .mod-kino{ --tile:var(--mod-kino); } .khub .mod-gallery{ --tile:var(--mod-gallery); }
.khub .mod-library{ --tile:var(--mod-library); } .khub .mod-tours{ --tile:var(--mod-tours); } .khub .mod-kids{ --tile:var(--mod-kids); }
.khub .mod-jobs{ --tile:var(--mod-jobs); } .khub .mod-locations{ --tile:var(--mod-locations); } .khub .mod-poland{ --tile:var(--mod-poland); }

/* ---- WORDPRESS / BLOG (bento banners) ---- */
.khub .hub-wp{ background:var(--bg-section); border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin-top:calc(56px*var(--d)); padding:calc(52px*var(--d)) 0; }
.khub .wp-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:calc(26px*var(--d)); }
.khub .wp-head .titles{ display:flex; flex-direction:column; gap:9px; }
.khub .wp-kicker{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.14em; color:var(--primary); display:inline-flex; align-items:center; gap:9px; }
.khub .wp-kicker i{ font-size:15px; }
.khub .wp-head h2{ font-size:clamp(1.6rem,3vw,2.1rem); }
.khub .wp-right{ display:flex; align-items:center; gap:16px; }
.khub .wp-status{ display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:600; color:var(--fg-subtle); background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-full); padding:7px 14px; white-space:nowrap; }
.khub .wp-status .sdot{ width:8px; height:8px; border-radius:50%; background:#00875a; box-shadow:0 0 0 3px rgba(0,135,90,.15); }
.khub .wp-status.live .sdot{ background:#00875a; animation:khub-tk-blink 1.6s infinite; }
.khub .wp-status.fallback .sdot{ background:var(--fg-muted); box-shadow:0 0 0 3px rgba(160,174,192,.18); }
.khub .wp-allbtn{ font-size:13px; font-weight:600; color:var(--fg-subtle); display:inline-flex; align-items:center; gap:7px; white-space:nowrap; transition:.2s; }
.khub .wp-allbtn:hover{ color:var(--primary); gap:11px; }
.khub .wp-bento{ display:grid; grid-template-columns:1.7fr 1fr 1fr; grid-template-rows:repeat(2,minmax(0,1fr)); gap:calc(18px*var(--d)); height:calc(500px*var(--d)); }
.khub .wp-card{ position:relative; border-radius:var(--r-lg); overflow:hidden; display:flex; align-items:flex-end; cursor:pointer; box-shadow:var(--sh-sm); isolation:isolate; }
.khub .wp-card.feat2{ grid-row:1 / 3; grid-column:1; }
.khub .wp-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .65s cubic-bezier(.25,.46,.45,.94); z-index:-2; }
.khub .wp-card:hover img{ transform:scale(1.06); }
.khub .wp-card::after{ content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(to top,rgba(12,9,9,.9) 0%,rgba(12,9,9,.45) 40%,rgba(12,9,9,.04) 75%); }
.khub .wp-card-body{ position:relative; z-index:1; padding:clamp(14px,1.6vw,22px); color:#fff; width:100%; }
.khub .wp-cat{ display:inline-block; background:var(--primary); color:#fff; font-size:9.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:4px 9px; border-radius:var(--r-sm); margin-bottom:11px; }
.khub .wp-card .wp-title{ font-family:var(--font-head); font-weight:800; color:#fff; letter-spacing:-.01em; line-height:1.25; text-shadow:0 2px 12px rgba(0,0,0,.4); }
.khub .wp-card.small .wp-title{ font-size:15px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.khub .wp-card.feat2 .wp-title{ font-size:clamp(1.3rem,2vw,1.85rem); }
.khub .wp-card.feat2 .wp-excerpt{ font-size:14px; color:rgba(255,255,255,.82); line-height:1.6; margin-top:11px; max-width:90%; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.khub .wp-meta{ display:flex; align-items:center; gap:10px; margin-top:13px; font-size:11.5px; color:rgba(255,255,255,.72); }
.khub .wp-meta .sep{ opacity:.5; }
.khub .wp-meta .wp-readmore{ margin-left:auto; display:inline-flex; align-items:center; gap:6px; font-weight:600; color:#fff; transition:.2s; }
.khub .wp-card.small .wp-meta .wp-readmore{ display:none; }
.khub .wp-card:hover .wp-readmore{ gap:10px; }
.khub .wp-foot{ margin-top:calc(20px*var(--d)); display:flex; align-items:center; justify-content:center; gap:9px; font-size:12.5px; color:var(--fg-muted); }
.khub .wp-foot i{ color:var(--primary); }
.khub .wp-foot a{ color:var(--primary); font-weight:600; }

/* ---- LATEST + SIDEBAR ---- */
.khub .hub-latest{ padding-top:calc(56px*var(--d)); }
.khub .latest-grid{ display:grid; grid-template-columns:1fr 332px; gap:calc(40px*var(--d)); align-items:start; }
.khub .latest-list{ display:flex; flex-direction:column; }
.khub .lrow{ display:grid; grid-template-columns:200px 1fr; gap:20px; padding:calc(20px*var(--d)) 0; border-top:1px solid var(--border); cursor:pointer; }
.khub .lrow:first-of-type{ border-top:none; padding-top:0; }
.khub .lrow .lthumb{ position:relative; border-radius:var(--r-md); overflow:hidden; aspect-ratio:16/10; background:var(--n-200); }
.khub .lrow .lthumb img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.khub .lrow:hover .lthumb img{ transform:scale(1.05); }
.khub .lrow .lbody{ display:flex; flex-direction:column; }
.khub .lrow .lbody .lmeta{ display:flex; align-items:center; gap:10px; margin-bottom:9px; }
.khub .lrow .lbody h3{ font-size:18px; line-height:1.32; color:var(--fg-heading); transition:color .2s; margin-bottom:8px; font-weight:700; }
.khub .lrow:hover .lbody h3{ color:var(--primary); }
.khub .lrow .lbody p{ font-size:13.5px; color:var(--fg-subtle); line-height:1.6; margin-bottom:auto; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.khub .lrow .lbody .lfoot{ margin-top:11px; font-size:12px; color:var(--fg-muted); display:flex; align-items:center; gap:9px; }
.khub .lrow .lbody .lfoot .sep{ opacity:.4; }

.khub .latest-side{ display:flex; flex-direction:column; gap:calc(22px*var(--d)); position:sticky; top:84px; }
.khub .side-card{ background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-lg); padding:calc(20px*var(--d)); }
.khub .side-card .side-h{ display:flex; align-items:center; gap:9px; font-family:var(--font-head); font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; color:var(--fg-heading); padding-bottom:13px; margin-bottom:5px; border-bottom:2px solid var(--primary); }
.khub .side-card .side-h i{ color:var(--primary); }
/* Facebook follow card */
.khub .fb-card{ padding:0; overflow:hidden; }
.khub .fb-card .fb-head{ display:flex; align-items:center; gap:9px; padding:14px 18px; background:linear-gradient(135deg,#1877f2,#0a52c9); color:#fff; font-family:var(--font-head); font-weight:800; font-size:14px; letter-spacing:.01em; }
.khub .fb-card .fb-head i{ font-size:19px; }
.khub .fb-card .fb-embed{ padding:14px 14px 4px; display:flex; justify-content:center; min-height:120px; }
.khub .fb-card .fb-embed .fb-page,.khub .fb-card .fb-embed .fb-page span,.khub .fb-card .fb-embed iframe{ max-width:100%!important; }
.khub .fb-card .fb-actions{ display:flex; gap:10px; padding:10px 14px 14px; }
.khub .fb-card .fb-actions a{ flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:10px 8px; border-radius:var(--r-md); font-size:13px; font-weight:600; transition:.2s; }
.khub .fb-card .fb-follow{ background:#1877f2; color:#fff; }
.khub .fb-card .fb-follow:hover{ background:#0a52c9; color:#fff; transform:translateY(-1px); box-shadow:0 6px 14px rgba(24,119,242,.3); }
.khub .fb-card .fb-share{ background:var(--n-100); color:var(--fg-heading); border:1px solid var(--border); }
.khub .fb-card .fb-share:hover{ background:var(--n-200); color:var(--primary); }
/* live (Graph API) variant — real cover photo banner + overlapping avatar */
.khub .fb-card--live .fbx-cover{ position:relative; height:120px; background:var(--n-200); }
.khub .fb-card--live .fbx-cover img{ width:100%; height:100%; object-fit:cover; display:block; }
.khub .fb-card--live .fbx-badge{ position:absolute; top:10px; right:10px; width:30px; height:30px; border-radius:50%; background:#1877f2; color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; box-shadow:0 2px 8px rgba(0,0,0,.28); }
.khub .fb-card--live .fbx-body{ padding:0 18px 16px; text-align:center; }
.khub .fb-card--live .fbx-avatar{ display:block; width:72px; height:72px; margin:-36px auto 10px; border-radius:50%; overflow:hidden; border:4px solid #fff; box-shadow:0 4px 12px rgba(0,0,0,.15); background:#fff; position:relative; z-index:1; }
.khub .fb-card--live .fbx-avatar img{ width:100%; height:100%; object-fit:cover; }
.khub .fb-card--live .fbx-name{ font-size:16px; font-weight:800; color:var(--fg-heading); line-height:1.25; }
.khub .fb-card--live .fbx-name a:hover{ color:#1877f2; }
.khub .fb-card--live .fbx-count{ font-size:12.5px; color:var(--fg-subtle); margin-top:4px; }
.khub .fb-card--live .fbx-count b{ color:var(--fg-heading); font-weight:800; }
.khub .fb-card--live .fb-actions{ padding:0; margin-top:14px; }
.khub .mr-row{ display:grid; grid-template-columns:auto 1fr; gap:14px; align-items:center; padding:13px 0; border-bottom:1px solid var(--border); cursor:pointer; }
.khub .mr-row:last-child{ border-bottom:none; }
.khub .mr-row .mr-n{ font-family:var(--font-serif); font-size:26px; font-weight:800; color:var(--primary); opacity:.32; line-height:1; width:26px; text-align:center; transition:.2s; }
.khub .mr-row:hover .mr-n{ opacity:1; }
.khub .mr-row .mr-t{ font-size:13.5px; font-weight:600; line-height:1.42; color:var(--fg-heading); transition:.2s; display:block; }
.khub .mr-row:hover .mr-t{ color:var(--primary); }
.khub .mr-row .mr-c{ font-size:11px; color:var(--fg-muted); margin-top:3px; display:block; }

.khub .nl-card{ background:linear-gradient(150deg,var(--n-900),#2a1518); color:#fff; border:none; position:relative; overflow:hidden; }
.khub .nl-card::before{ content:'\f1ea'; font-family:'Font Awesome 6 Free'; font-weight:900; position:absolute; right:-14px; top:-10px; font-size:96px; color:rgba(255,255,255,.05); }
.khub .nl-card .side-h{ color:#fff; border-color:var(--red-500); }
.khub .nl-card .side-h i{ color:var(--red-400); }
.khub .nl-card p{ font-size:13px; line-height:1.6; color:rgba(255,255,255,.72); margin:12px 0 16px; }
.khub .nl-form{ display:flex; flex-direction:column; gap:9px; }
.khub .nl-form input{ width:100%; padding:11px 14px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); border-radius:var(--r-md); color:#fff; font-size:13px; outline:none; font-family:var(--font-body); }
.khub .nl-form input::placeholder{ color:rgba(255,255,255,.5); }
.khub .nl-form button{ padding:11px; background:var(--primary); color:#fff; border:none; border-radius:var(--r-md); font-size:13px; font-weight:700; cursor:pointer; transition:.2s; font-family:var(--font-body); }
.khub .nl-form button:hover{ background:var(--red-600); }

.khub .comm-faces{ display:flex; margin:13px 0 12px; }
.khub .comm-faces .cf{ width:38px; height:38px; border-radius:50%; border:2px solid #fff; margin-left:-11px; background-size:cover; background-position:center; box-shadow:var(--sh-xs); }
.khub .comm-faces .cf:first-child{ margin-left:0; }
.khub .comm-faces .cf.more{ background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.khub .comm-card p{ font-size:13px; color:var(--fg-subtle); line-height:1.55; }
.khub .comm-card .comm-btn{ margin-top:14px; width:100%; text-align:center; padding:10px; border:1.5px solid var(--primary); color:var(--primary); border-radius:var(--r-md); font-size:13px; font-weight:600; cursor:pointer; transition:.2s; display:block; }
.khub .comm-card .comm-btn:hover{ background:var(--primary); color:#fff; }

/* ---- PROMO STRIP ---- */
.khub .hub-promos{ padding-top:calc(56px*var(--d)); }
.khub .promo-grid{ display:grid; grid-template-columns:1fr 1fr; gap:calc(20px*var(--d)); }
.khub .promo{ position:relative; border-radius:var(--r-xl); overflow:hidden; min-height:230px; display:flex; align-items:center; padding:clamp(24px,3vw,38px); isolation:isolate; }
.khub .promo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transition:transform .6s ease; }
.khub .promo:hover img{ transform:scale(1.05); }
.khub .promo::after{ content:''; position:absolute; inset:0; z-index:-1; }
.khub .promo.poland::after{ background:linear-gradient(120deg,rgba(102,126,234,.94),rgba(118,75,162,.86)); }
.khub .promo.library::after{ background:linear-gradient(120deg,rgba(20,110,140,.94),rgba(25,167,201,.82)); }
.khub .promo-body{ color:#fff; max-width:330px; }
.khub .promo-body .pk{ font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.85); display:flex; align-items:center; gap:8px; margin-bottom:11px; }
.khub .promo-body h3{ color:#fff; font-size:clamp(1.3rem,2.4vw,1.7rem); line-height:1.18; margin-bottom:10px; text-shadow:0 3px 12px rgba(0,0,0,.25); }
.khub .promo-body p{ font-size:13.5px; line-height:1.6; color:rgba(255,255,255,.9); margin-bottom:18px; }
.khub .promo-body .pbtn{ display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.16); border:1.5px solid rgba(255,255,255,.7); color:#fff; padding:10px 20px; border-radius:var(--r-full); font-size:13px; font-weight:600; backdrop-filter:blur(4px); transition:.25s; }
.khub .promo-body .pbtn:hover{ background:#fff; color:var(--n-900); gap:12px; }

/* ---- TEAM (ჩვენი გუნდი) ---- */
.khub .hub-team{ padding-top:calc(64px*var(--d)); }
.khub .team-head{ text-align:center; max-width:620px; margin:0 auto calc(40px*var(--d)); display:flex; flex-direction:column; gap:11px; align-items:center; }
.khub .team-head .kicker{ justify-content:center; }
.khub .team-head h2{ font-size:clamp(1.8rem,3.4vw,2.4rem); }
.khub .team-head p{ font-size:15px; color:var(--fg-subtle); line-height:1.65; }
.khub .team-carousel{ position:relative; }
.khub .team-track{ display:flex; gap:calc(22px*var(--d)); overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; padding:16px 2px 28px; scrollbar-width:none; -ms-overflow-style:none; cursor:grab; }
.khub .team-track::-webkit-scrollbar{ display:none; }
.khub .team-track.dragging{ cursor:grabbing; scroll-snap-type:none; scroll-behavior:auto; user-select:none; }
.khub .team-track.dragging .tcard{ pointer-events:none; }
.khub .team-track .tcard{ flex:0 0 clamp(238px, calc((100% - 3 * 22px) / 4.4), 292px); scroll-snap-align:start; }
.khub .team-carousel::before,.khub .team-carousel::after{ content:''; position:absolute; top:16px; bottom:28px; width:60px; z-index:3; pointer-events:none; opacity:0; transition:opacity .25s; }
.khub .team-carousel::before{ left:0; background:linear-gradient(to right,var(--bg-page),transparent); }
.khub .team-carousel::after{ right:0; background:linear-gradient(to left,var(--bg-page),transparent); }
.khub .team-carousel.can-prev::before{ opacity:1; }
.khub .team-carousel.can-next::after{ opacity:1; }
.khub .team-nav{ position:absolute; top:calc(50% - 8px); transform:translateY(-50%); z-index:4; width:48px; height:48px; border-radius:50%; background:var(--bg-card); border:1px solid var(--border); color:var(--fg-heading); display:flex; align-items:center; justify-content:center; font-size:16px; cursor:pointer; box-shadow:var(--sh-md); transition:.22s; }
.khub .team-nav:hover:not(:disabled){ background:var(--primary); color:#fff; border-color:transparent; transform:translateY(-50%) scale(1.08); }
.khub .team-nav:disabled{ opacity:0; pointer-events:none; transform:translateY(-50%) scale(.85); }
.khub .team-nav.prev{ left:-16px; } .khub .team-nav.next{ right:-16px; }
.khub .team-foot{ display:flex; align-items:center; gap:18px; max-width:360px; margin:8px auto 0; }
.khub .team-progress{ flex:1; height:4px; border-radius:3px; background:var(--n-200); overflow:hidden; }
.khub .team-progress span{ display:block; height:100%; border-radius:3px; background:var(--primary); width:30%; transition:width .25s ease, margin-left .25s ease; }
.khub .team-hint{ display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:600; color:var(--fg-muted); white-space:nowrap; transition:opacity .25s; }
.khub .team-hint i{ color:var(--primary); animation:khub-team-swipe 1.8s ease-in-out infinite; }
@keyframes khub-team-swipe{ 0%,100%{ transform:translateX(0); } 50%{ transform:translateX(5px); } }
.khub .tcard{ position:relative; background:var(--bg-card); border-radius:var(--r-lg); box-shadow:0 4px 25px rgba(0,0,0,.07); text-align:center; padding:calc(32px*var(--d)) calc(22px*var(--d)); display:flex; flex-direction:column; transition:.3s ease-in-out; border:1px solid transparent; }
.khub .tcard:hover{ transform:translateY(-10px); box-shadow:0 16px 38px rgba(180,0,0,.13); }
.khub .tcard .tstar{ position:absolute; top:15px; right:17px; color:#ffc107; font-size:17px; filter:drop-shadow(0 0 4px rgba(0,0,0,.2)); }
.khub .tcard .tav{ width:128px; height:128px; border-radius:50%; margin:0 auto 18px; overflow:hidden; border:4px solid #fff; box-shadow:0 0 0 4px var(--primary); display:flex; align-items:center; justify-content:center; font-family:var(--font-head); font-weight:800; font-size:42px; color:#fff; transition:transform .3s ease; }
.khub .tcard:hover .tav{ transform:scale(1.05); }
.khub .tcard .tav img{ width:100%; height:100%; object-fit:cover; }
.khub .tcard .tname{ font-size:18px; font-weight:700; color:var(--fg-heading); margin-bottom:5px; }
.khub .tcard .tpos{ font-size:11.5px; color:var(--primary); font-weight:600; text-transform:uppercase; letter-spacing:.09em; margin-bottom:15px; }
.khub .tcard .tcontact{ font-size:12.5px; color:var(--fg-subtle); flex-grow:1; display:flex; flex-direction:column; gap:6px; }
.khub .tcard .tcontact a{ color:inherit; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:color .2s; word-break:break-word; }
.khub .tcard .tcontact a:hover{ color:var(--primary); }
.khub .tcard .tcontact i{ color:var(--primary); opacity:.7; }
.khub .tcard .tfoot{ margin-top:18px; padding-top:16px; border-top:1px solid var(--border); display:flex; justify-content:center; gap:10px; }
.khub .tcard .tfoot a{ width:38px; height:38px; border-radius:50%; background:var(--n-100); color:var(--fg-subtle); display:flex; align-items:center; justify-content:center; font-size:14px; transition:.25s; }
.khub .tcard .tfoot a:hover{ background:var(--primary); color:#fff; transform:scale(1.1); }
.khub .team-cta{ text-align:center; margin-top:calc(40px*var(--d)); }
.khub .team-cta a{ display:inline-flex; align-items:center; gap:9px; background:var(--primary); color:#fff; font-size:14px; font-weight:600; padding:13px 30px; border-radius:var(--r-full); transition:.2s; box-shadow:var(--sh-sm); }
.khub .team-cta a:hover{ background:var(--primary-hover); transform:translateY(-2px); box-shadow:var(--sh-md); color:#fff; }

/* ---- ad zone wrapper (homepage_middle) ---- */
.khub .hub-ad{ padding-top:calc(40px*var(--d)); }
.khub .hub-ad:empty{ display:none; }

/* ---- responsive guards ---- */
@media (max-width:1080px){
  .khub .hub-hero-grid{ grid-template-columns:1fr; }
  .khub .latest-grid{ grid-template-columns:1fr; }
  .khub .latest-side{ position:static; }
  .khub .mod-grid{ grid-template-columns:repeat(2,1fr); }
  .khub .promo-grid{ grid-template-columns:1fr; }
  .khub .hub-nav{ display:none; }
  .khub .wp-bento{ grid-template-columns:1fr 1fr; grid-template-rows:auto; height:auto; }
  .khub .wp-card{ min-height:230px; }
  .khub .wp-card.feat2{ grid-row:auto; grid-column:1 / -1; min-height:320px; }
  .khub .team-nav{ display:none; }
  .khub .hub-footer-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .khub .lrow{ grid-template-columns:1fr; } .khub .mod-grid{ grid-template-columns:1fr; }
  .khub .wp-bento{ grid-template-columns:1fr; }
  .khub .hub-footer-top{ grid-template-columns:1fr; }
}
