/*
Theme Name: OnBir Finmarket
Theme URI: https://onbir.kg/
Author: OnBir / Devmode
Description: WordPress theme converted from the supplied OnBir Finmarket HTML layouts.
Version: 1.5.4
Text Domain: onbir-finmarket
Requires at least: 6.0
Requires PHP: 7.4
*/

.admin-bar .header { }
.onbir-wp-content { padding-top: 32px; padding-bottom: 48px; }

/* Dynamic marketplace admin content */
.onbir-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.onbir-admin-card,.onbir-offer-admin-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:22px;box-shadow:0 8px 28px rgba(15,23,42,.06)}.onbir-admin-card__head,.onbir-provider-row,.onbir-detail-head{display:flex;align-items:center;gap:14px}.onbir-org-logo{width:58px;height:58px;border-radius:14px;background:#eef2ff;color:#06007c;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto}.onbir-org-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.onbir-org-logo--sm{width:42px;height:42px;border-radius:11px}.onbir-org-logo--lg{width:90px;height:90px;border-radius:20px}.onbir-admin-card h3,.onbir-offer-admin-card h3{margin:0;color:#0f172a;font-size:18px}.onbir-admin-card p{margin:14px 0;color:#64748b;font-size:14px}.onbir-org-rating{display:inline-block;margin-top:5px;font-size:13px;font-weight:700;color:#b7791f}.onbir-org-meta{font-size:12px;color:#64748b;margin:12px 0}.onbir-admin-card__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.onbir-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:10px;background:#06007c;color:#fff!important;font-size:13px;font-weight:700;text-decoration:none}.onbir-btn--soft{background:#eef2ff;color:#06007c!important}.onbir-empty-state{padding:30px;border:1px dashed #cbd5e1;border-radius:16px;background:#fff;color:#64748b;text-align:center}.onbir-managed-offers{padding:48px 0;background:#f8fafc}.onbir-managed-label{font-size:12px;color:#64748b;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:7px 10px}.onbir-offers-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.onbir-offer-admin-card{position:relative}.onbir-offer-badge{position:absolute;top:14px;right:14px;background:#ecfdf5;color:#047857;font-size:11px;font-weight:800;border-radius:999px;padding:5px 9px}.onbir-provider-row{font-size:13px;font-weight:700;color:#475569;margin-bottom:15px}.onbir-offer-params{display:grid;gap:10px;margin:16px 0}.onbir-offer-params>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #f1f5f9;padding-top:10px}.onbir-offer-params small{color:#64748b}.onbir-offer-params strong{color:#0f172a;text-align:right}.onbir-detail-page .section-hero{padding-bottom:32px}.onbir-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px}.onbir-detail-content,.onbir-detail-aside{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:26px}.onbir-detail-aside p{margin:0 0 18px;color:#475569}.onbir-detail-rating{font-weight:800;color:#b7791f}.onbir-detail-content p,.onbir-detail-content li{line-height:1.7;color:#475569}
@media(max-width:980px){.onbir-admin-grid,.onbir-offers-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.onbir-detail-layout{grid-template-columns:1fr}}@media(max-width:640px){.onbir-admin-grid,.onbir-offers-grid{grid-template-columns:1fr}.onbir-admin-card__actions{flex-direction:column}.onbir-btn{width:100%}.onbir-detail-head{align-items:flex-start}.onbir-org-logo--lg{width:70px;height:70px}}

/* Header refinement — v5.1 */
.header__topline-inner { justify-content: space-between; }
.header__logo { min-width: 250px; display:flex; align-items:center; }
.header__logo-image { display:block; width:250px; height:auto; max-height:68px; object-fit:contain; object-position:left center; }
.header__search { max-width: 720px; }
.search-drop-results:empty { display:none; }
.search-drop-empty { padding:14px 12px; color:#64748b; font-size:14px; }
.search-drop-item--result { display:flex !important; align-items:center; justify-content:space-between; gap:18px; }
.search-drop-item--result small { color:#94a3b8; font-size:11px; font-weight:700; white-space:nowrap; }
@media (max-width: 1024px) {
  .header__logo { min-width: 190px; }
  .header__logo-image { width:190px; }
}
@media (max-width: 768px) {
  .header__aux-nav { display:none; }
  .header__topline-inner { justify-content:flex-end; }
  .header__logo { min-width: 150px; }
  .header__logo-image { width:150px; max-height:54px; }
}

/* v5.2 — approved homepage hero redesign */
.section-hero-split--v52{padding:24px 0 34px;background:#f8fafc}
.section-hero-split--v52 .hero-split-grid{grid-template-columns:minmax(0,1.48fr) minmax(350px,.92fr);gap:22px}
.section-hero-split--v52 .hero-split-slider{min-height:520px;border-radius:22px;background:#0b2f57;box-shadow:0 12px 34px rgba(15,23,42,.12)}
.section-hero-split--v52 .split-slide{padding:0;display:block;overflow:hidden}
.section-hero-split--v52 .split-slide__media{position:absolute;inset:0}
.section-hero-split--v52 .split-slide__media img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.01)}
.section-hero-split--v52 .split-slide__overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,35,69,.94) 0%,rgba(5,35,69,.78) 41%,rgba(5,35,69,.36) 67%,rgba(5,35,69,.08) 100%)}
.section-hero-split--v52 .split-slide__content{position:relative;z-index:2;max-width:610px;padding:78px 60px 108px}
.section-hero-split--v52 .split-slide__content .split-badge{font-size:12px;padding:7px 14px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.14)}
.section-hero-split--v52 .split-slide__content .split-title{font-size:42px;line-height:1.16;letter-spacing:-1px;margin:18px 0 16px;text-shadow:0 2px 14px rgba(0,0,0,.16)}
.section-hero-split--v52 .split-slide__content .split-desc{font-size:18px;line-height:1.55;max-width:540px;margin-bottom:30px;color:rgba(255,255,255,.94)}
.section-hero-split--v52 .split-slide__content .btn-split{min-height:54px;padding:0 24px;border-radius:12px;font-size:15px;gap:10px}
.section-hero-split--v52 .split-slider-controls{left:60px;right:42px;bottom:34px}
.section-hero-split--v52 .split-slider-controls .split-arrows{gap:10px}
.section-hero-split--v52 .split-slider-controls .split-arrows .s-arrow{width:48px;height:48px;font-size:20px;background:rgba(255,255,255,.18)}
.section-hero-split--v52 .split-slider-controls .split-dots .s-dot{width:10px;height:10px}
.section-hero-split--v52 .split-slider-controls .split-dots .s-dot.active{width:28px}
.section-hero-split--v52 .hero-split-widgets{gap:20px}
.section-hero-split--v52 .hero-split-widgets .side-widget{border-radius:22px;padding:28px 30px;border-color:#e3e9f2;box-shadow:0 8px 26px rgba(15,23,42,.06)}
.section-hero-split--v52 .hero-split-widgets .side-widget__head{gap:18px;margin-bottom:18px}
.section-hero-split--v52 .hero-split-widgets .side-widget__head .widget-icon--brand{width:58px;height:58px;border-radius:18px;background:#e9f1ff;color:#0755c7}
.section-hero-split--v52 .hero-split-widgets .side-widget__head h3{font-size:20px;margin-bottom:4px}
.section-hero-split--v52 .hero-split-widgets .side-widget__head p{font-size:14px}
.section-hero-split--v52 .hero-split-widgets .side-widget__calc-row{padding:15px 17px;border-radius:12px;margin-bottom:18px}
.section-hero-split--v52 .hero-split-widgets .side-widget__calc-row .sw-input-group span{font-size:12px}
.section-hero-split--v52 .hero-split-widgets .side-widget__calc-row .sw-input-group strong{font-size:15px}
.section-hero-split--v52 .color-brand{color:#0755c7!important}
.section-hero-split--v52 .hero-split-widgets .side-widget .btn-widget{padding:14px 18px;border-radius:10px;font-size:15px;display:flex;align-items:center;justify-content:center;gap:10px}
.section-hero-split--v52 .hero-split-widgets .side-widget .btn-widget--primary{background:linear-gradient(90deg,#0d2ea6,#0755c7)}
.section-hero-split--v52 .hero-split-widgets .side-widget .btn-widget--primary:hover{background:#0b2f8f}
.section-hero-split--v52 .hero-split-widgets .side-widget .btn-widget--outline{border:1px solid #b9ccef;color:#0a47ad;background:#fff}
.section-hero-split--v52 .hero-split-widgets .side-widget .btn-widget--outline:hover{background:#f3f7ff;border-color:#0755c7}
.section-hero-split--v52 .hero-split-widgets .side-widget__features{gap:10px;margin:4px 0 18px}
.section-hero-split--v52 .hero-split-widgets .side-widget__features .sw-tag{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;background:#f3f6fb;color:#34445c;border-radius:8px}
.section-hero-split--v52 .hero-split-widgets .side-widget__features .sw-tag .onbir-icon{color:#0755c7}
.hero-promo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}
.hero-promo-card{position:relative;min-height:250px;border-radius:18px;overflow:hidden;display:block;color:#fff;box-shadow:0 8px 24px rgba(15,23,42,.09);transition:transform .2s ease,box-shadow .2s ease}
.hero-promo-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(15,23,42,.14)}
.hero-promo-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-promo-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,37,70,.92),rgba(6,37,70,.5) 66%,rgba(6,37,70,.14))}
.hero-promo-content{position:relative;z-index:2;padding:28px 30px;max-width:72%}
.hero-promo-content small{display:inline-block;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.16);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.4px}
.hero-promo-content h3{font-size:24px;line-height:1.18;margin:12px 0 8px;color:#fff}
.hero-promo-content p{font-size:13px;line-height:1.45;color:rgba(255,255,255,.9);margin-bottom:16px}
.hero-promo-btn{display:inline-flex;background:#fff;color:#10203b;border-radius:8px;padding:9px 12px;font-size:12px;font-weight:800}
@media (max-width:1100px){.section-hero-split--v52 .hero-split-grid{grid-template-columns:1fr}.section-hero-split--v52 .hero-split-widgets{display:grid;grid-template-columns:1fr 1fr}.hero-promo-grid{grid-template-columns:1fr 1fr}.hero-promo-card:last-child{grid-column:1/-1}.section-hero-split--v52 .hero-split-slider{min-height:480px}}
@media (max-width:768px){.section-hero-split--v52{padding-top:14px}.section-hero-split--v52 .hero-split-slider{min-height:510px;border-radius:16px}.section-hero-split--v52 .split-slide__overlay{background:linear-gradient(0deg,rgba(5,35,69,.95),rgba(5,35,69,.52) 72%,rgba(5,35,69,.2))}.section-hero-split--v52 .split-slide__content{padding:175px 24px 98px;max-width:100%}.section-hero-split--v52 .split-slide__content .split-title{font-size:30px}.section-hero-split--v52 .split-slide__content .split-desc{font-size:15px}.section-hero-split--v52 .split-slider-controls{left:24px;right:24px;bottom:24px}.section-hero-split--v52 .hero-split-widgets{grid-template-columns:1fr}.hero-promo-grid{grid-template-columns:1fr}.hero-promo-card:last-child{grid-column:auto}.hero-promo-content{max-width:82%}}

/* OnBir v5.3 — company logos + production mobile navigation */
.bank-avatar,.b-icon,.bank-logo,.bank-badge,.b-logo,.l-logo,.r-logo,.k-logo,.ins-logo,.mfo-logo,
[class*="bank-avatar--"],[class*="bank-badge--"],[class*="bg-optima"],[class*="bg-mbank"],[class*="bg-bakai"],[class*="bg-demir"],[class*="bg-kicb"],[class*="bg-finca"],[class*="bg-kompanion"],[class*="bg-baitushum"],[class*="bg-jubilee"],[class*="bg-nsk"],[class*="bg-ayugarant"]{
  background:#fff!important; color:#0f172a!important; overflow:hidden; display:flex; align-items:center; justify-content:center;
}
.onbir-company-logo{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;padding:5px;box-sizing:border-box;background:#fff}
.onbir-logo-fallback{font-size:12px;font-weight:900;letter-spacing:-.3px;color:#334155}
.link-view-all{display:inline-flex;align-items:center;gap:8px;position:relative;z-index:2}
.mobile-menu-head{display:none}
.header__mobile-overlay{display:none}
@media(max-width:768px){
  body.mobile-menu-open{overflow:hidden}
  .header{position:sticky;top:0;z-index:3000}
  .header__main{padding:10px 0}
  .header__main-inner{gap:12px}
  .header__mobile-toggle{display:flex;margin-left:auto}
  .header__burger{display:flex!important;width:44px;height:44px;border-radius:12px;background:#f1f5f9;flex-direction:column;justify-content:center;gap:5px;padding:10px;position:relative;z-index:3200}
  .header__burger span{display:block;width:100%;height:2px;background:#0f172a;border-radius:2px;transition:.2s}
  .header__burger.is-active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .header__burger.is-active span:nth-child(2){opacity:0}
  .header__burger.is-active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .header__mobile-overlay{display:block;position:fixed;inset:0;background:rgba(15,23,42,.44);backdrop-filter:blur(3px);z-index:3050;opacity:0;transition:opacity .2s}
  .header__mobile-overlay[hidden]{display:none}
  .header__mobile-overlay.is-visible{opacity:1}
  .header .header__navbar{display:block!important;position:fixed;z-index:3100;top:0;right:0;width:min(92vw,420px);height:100dvh;background:#fff;border:0;box-shadow:-20px 0 50px rgba(15,23,42,.16);padding:0;transform:translateX(105%);transition:transform .25s ease;overflow-y:auto;overscroll-behavior:contain}
  .header .header__navbar.is-open{transform:translateX(0);padding:0}
  .header .header__navbar-inner{padding:0 18px 30px}
  .mobile-menu-head{display:flex;position:sticky;top:0;z-index:5;background:#fff;align-items:center;justify-content:space-between;padding:18px 0 14px;border-bottom:1px solid #e2e8f0;margin-bottom:4px;font-size:18px;color:#0f172a}
  .mobile-menu-close{width:40px;height:40px;border-radius:12px;background:#f1f5f9;color:#0f172a;font-size:28px;line-height:1;display:grid;place-items:center}
  .header .nav-menu{display:flex!important;flex-direction:column;align-items:stretch;gap:0}
  .header .nav-menu__item{width:100%;border-bottom:1px solid #eef2f7}
  .header .nav-menu__link{width:100%;justify-content:space-between;padding:16px 4px;font-size:16px;font-weight:800;color:#0f172a}
  .header .nav-menu__link.active:after{display:none}
  .header .mega-dropdown,.header .header__navbar.is-open .nav-menu .mega-dropdown{position:static!important;width:100%!important;display:none;opacity:1!important;visibility:visible!important;transform:none!important;grid-template-columns:1fr!important;gap:10px!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0 0 16px!important;background:#fff!important}
  .header .mega-dropdown__col,.header .mega-dropdown__col--service{background:#f8fafc!important;border:1px solid #eef2f7!important;border-radius:14px!important;padding:14px!important;height:auto!important}
  .header .mega-dropdown__col--split .col-links-split{grid-template-columns:1fr!important;gap:0!important}
  .header .mega-dropdown__col a{padding:9px 2px!important;font-size:14px!important;display:block}
  .header .mega-dropdown__banner{display:none!important}
  .header__topline{display:none!important}
  .header__search{display:none!important}
}

.onbir-logo-fallback--hidden{display:none!important}.onbir-logo-fallback--hidden[style*="inline-flex"]{display:inline-flex!important}

/* v5.4 — offer card proportions, larger company logos, compact site logo */
.header__logo{min-width:180px!important}
.header__logo-image{width:180px!important;max-height:48px!important}
.section-offers .offer-row{grid-template-columns:minmax(330px,1.55fr) .85fr 1.1fr 1.15fr 1.25fr;gap:24px;padding:28px 32px}
.section-offers .offer-col--bank{display:grid!important;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:20px;min-width:0}
.section-offers .offer-col--bank .bank-avatar{width:112px!important;height:68px!important;border-radius:12px!important;padding:8px!important;border:1px solid #eef2f7;background:#fff!important}
.section-offers .offer-col--bank .bank-avatar .onbir-company-logo{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;padding:0!important}
.section-offers .offer-col--bank .bank-meta{min-width:0}
.section-offers .offer-col--bank .bank-meta h4{font-size:18px;line-height:1.25;margin-bottom:5px}
.section-offers .offer-col--bank .bank-meta p{font-size:13px;line-height:1.35;margin-bottom:7px}
.section-offers .offer-col--bank .bank-meta .bank-rating{font-size:12px}
@media(max-width:1100px){
 .section-offers .offer-row{grid-template-columns:1.35fr 1fr 1fr;}
 .section-offers .offer-col--bank{grid-column:1/-1}
 .section-offers .offer-col--btn{grid-column:auto}
}
@media(max-width:768px){
 .header__logo{min-width:118px!important}
 .header__logo-image{width:118px!important;max-height:38px!important}
 .section-offers .offer-row{grid-template-columns:1fr;padding:20px;gap:16px}
 .section-offers .offer-col--bank,.section-offers .offer-col--btn{grid-column:auto}
 .section-offers .offer-col--bank{grid-template-columns:92px minmax(0,1fr);gap:14px}
 .section-offers .offer-col--bank .bank-avatar{width:92px!important;height:58px!important}
}
.apply-selected-offer{display:flex;align-items:center;gap:18px;padding:18px 20px;margin:22px 0;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px}.apply-selected-logo{width:110px;height:62px;padding:8px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}.apply-selected-logo .onbir-company-logo{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;padding:0}.apply-selected-offer>div:last-child{display:flex;flex-direction:column;gap:2px}.apply-selected-offer small{font-size:12px;color:#64748b}.apply-selected-offer strong{font-size:18px;color:#0f172a}.apply-selected-offer span{font-size:13px;color:#64748b}@media(max-width:640px){.apply-selected-offer{align-items:flex-start}.apply-selected-logo{width:86px;height:52px}.apply-grid-2{grid-template-columns:1fr!important}}
