/* Version 4 global shell, builders, layouts and responsive behavior. */
:root {
  --bt-container: 1380px;
  --bt-content: 820px;
  --bt-sidebar: 320px;
  --bt-primary: #ff7700;
  --bt-secondary: #ffa6cc;
  --bt-violet: #713ae8;
  --bt-night: #0d0f22;
  --bt-ink: #0a0b1b;
  --bt-text: #fff2d5;
  --bt-light: #fff6e9;
  --bt-coral: #ff709e;
  --bt-animation-duration: 900ms;
  --bt-animation-distance: 120px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus, .bt-skip-link:focus {
  z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; margin: 0; padding: 12px 18px;
  clip: auto; color: var(--bt-ink); background: var(--bt-primary); font-weight: 800;
}
:focus-visible { outline: 3px solid var(--bt-primary); outline-offset: 4px; }

.bt-site-header {
  z-index: 1000;
  width: 100%;
  color: var(--bt-text);
  transition: transform .25s ease, background .25s ease;
}
.bt-header-normal { position: relative; }
.bt-header-normal.bt-header-transparent { position: absolute; inset: 0 0 auto; }
.bt-header-sticky, .bt-header-reveal { position: fixed; inset: 0 0 auto; }
.bt-header-reveal.is-hidden { transform: translateY(-110%); }
.bt-header-transparent:not(.is-scrolled) .bt-builder-row { background: transparent; }
.bt-site-header.is-scrolled .bt-builder-row { backdrop-filter: blur(16px); }
.bt-site-header.is-scrolled .bt-builder-row-main { background: var(--bt-header-scrolled-bg, var(--bt-ink)); }
.bt-site-header.bt-header-shrink.is-scrolled .bt-builder-row-main { --bt-row-height: 70px; }
body.admin-bar .bt-header-sticky, body.admin-bar .bt-header-reveal { top: 32px; }

.bt-builder-row {
  min-height: var(--bt-row-height, 70px);
  display: flex;
  align-items: stretch;
  background: var(--bt-row-bg, var(--bt-night));
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: min-height .25s ease, background .25s ease;
}
.bt-builder-row-inner {
  width: min(calc(100% - 48px), var(--bt-container));
  min-height: inherit;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.bt-builder-zone { display: flex; align-items: center; gap: 22px; min-width: 0; }
.bt-builder-zone-center { justify-content: center; }
.bt-builder-zone-right { justify-content: flex-end; }
.bt-builder-element { min-width: 0; }
.bt-builder-logo { width: min(var(--bt-logo-width), 30vw); display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.bt-builder-logo .custom-logo { width: 100%; max-height: 68px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.bt-builder-logo .brand-mark { display: grid; width: 52px; height: 52px; place-items: center; border: 2px solid currentColor; font: 400 25px/1 var(--font-display, Impact); }
.bt-builder-logo .brand-name { display: flex; flex-direction: column; color: inherit; font-weight: 850; line-height: 1.05; }
.bt-builder-logo .brand-name small { margin-top: 4px; opacity: .65; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.bt-primary-menu-list, .bt-secondary-menu-list, .bt-footer-menu-list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); margin: 0; padding: 0; list-style: none; }
.bt-primary-menu a, .bt-secondary-menu a, .bt-footer-menu a { color: inherit; opacity: .82; }
.bt-primary-menu a:hover, .bt-secondary-menu a:hover, .bt-footer-menu a:hover, .current-menu-item > a { color: var(--bt-primary); opacity: 1; }
.bt-primary-menu .sub-menu, .bt-secondary-menu .sub-menu { position: absolute; min-width: 220px; margin: 12px 0 0; padding: 12px; list-style: none; visibility: hidden; opacity: 0; background: var(--bt-ink); box-shadow: 0 20px 50px rgba(0,0,0,.3); transform: translateY(8px); transition: .2s; }
.bt-primary-menu li, .bt-secondary-menu li { position: relative; }
.bt-primary-menu li:hover > .sub-menu, .bt-primary-menu li:focus-within > .sub-menu, .bt-secondary-menu li:hover > .sub-menu, .bt-secondary-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.bt-primary-menu .sub-menu a, .bt-secondary-menu .sub-menu a { display: block; padding: 9px 12px; }
.bt-contact-links { display: flex; gap: 18px; font-size: 11px; letter-spacing: .08em; }
.bt-contact-links a { color: inherit; opacity: .75; }
.bt-social-links { display: flex; gap: 9px; }
.bt-social-links a { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: inherit; font-size: 12px; font-weight: 800; }
.bt-social-links a:hover { border-color: var(--bt-primary); color: var(--bt-ink); background: var(--bt-primary); }
.bt-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; white-space: nowrap; text-decoration: none; transition: transform .2s, color .2s, background .2s, box-shadow .2s; }
.bt-button:hover { transform: translateY(-2px); }
.bt-builder-text, .bt-copyright { font-size: 11px; letter-spacing: .08em; opacity: .7; }

.bt-search { position: relative; }
.bt-search form { display: flex; align-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; overflow: hidden; }
.bt-search input { width: 140px; padding: 9px 3px 9px 13px; border: 0; outline: 0; color: inherit; background: transparent; font: inherit; }
.bt-search input::placeholder { color: rgba(255,255,255,.55); }
.bt-search button { width: 36px; height: 36px; border: 0; color: inherit; background: transparent; cursor: pointer; font-size: 20px; }
.bt-search-results { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; width: min(360px, 86vw); max-height: 430px; overflow: auto; display: none; padding: 8px; color: var(--bt-text); background: var(--bt-ink); box-shadow: 0 24px 65px rgba(0,0,0,.42); }
.bt-search-results.is-open { display: block; }
.bt-search-results a { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; color: inherit; border-bottom: 1px solid rgba(255,255,255,.1); }
.bt-search-results a:hover { color: var(--bt-primary); background: rgba(255,255,255,.05); }
.bt-search-results small { opacity: .55; text-transform: uppercase; letter-spacing: .08em; }
.bt-search-results p { margin: 0; padding: 12px; }

.bt-header-mobile, .bt-footer-mobile { display: none; }
.bt-menu-toggle { display: grid; width: 46px; height: 46px; place-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.5); color: inherit; background: transparent; cursor: pointer; }
.bt-menu-toggle span { width: 22px; height: 2px; background: currentColor; }
.bt-mobile-panel { position: fixed; z-index: 1001; inset: 0; padding: 90px 26px 36px; overflow: auto; color: var(--bt-text); background: linear-gradient(145deg, var(--bt-ink), #35185f 60%, #942e80); opacity: 0; transform: translateX(100%); transition: opacity .22s, transform .22s; }
.bt-mobile-panel.is-open { opacity: 1; transform: translateX(0); }
.bt-mobile-close { position: absolute; right: 22px; top: 20px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.45); color: inherit; background: transparent; font-size: 34px; cursor: pointer; }
.bt-mobile-menu, .bt-mobile-menu-list { display: flex; flex-direction: column; gap: 4px; margin: 0 0 35px; padding: 0; list-style: none; }
.bt-mobile-menu a { display: block; padding: 12px 0; color: inherit; font-family: var(--font-display, Impact); font-size: clamp(38px, 12vw, 72px); line-height: .95; text-transform: uppercase; }
.bt-mobile-panel .sub-menu { margin: 4px 0 12px 18px; padding: 0; list-style: none; }
.bt-mobile-panel .sub-menu a { font-family: inherit; font-size: 18px; }
.bt-mobile-panel .bt-search { margin-bottom: 24px; }
.bt-mobile-panel .bt-search input { width: 100%; }
.bt-mobile-panel .bt-contact-links { flex-direction: column; margin: 25px 0; font-size: 14px; }
body.bt-menu-open { overflow: hidden; }

.bt-site-footer { position: relative; z-index: 2; color: var(--bt-text); }
.bt-site-footer .bt-builder-row-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.bt-site-footer .bt-builder-logo { width: min(var(--bt-logo-width), 230px); }
.bt-footer-menu-list { flex-wrap: wrap; justify-content: center; }

.bt-page-hero {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 150px 5vw 65px;
  color: var(--bt-text); background: linear-gradient(130deg, var(--bt-night), #3d1b68 55%, #c7448f);
}
.bt-page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,27,.92), rgba(10,11,27,.28)), var(--bt-page-hero-image, none) center/cover no-repeat; }
.bt-page-hero-simple::before { background: linear-gradient(130deg, var(--bt-night), #241643); }
.bt-page-hero-gradient::before { background: linear-gradient(120deg, var(--bt-night), var(--bt-violet) 55%, var(--bt-coral)); }
.bt-page-hero-parallax::before { background-attachment: fixed; }
.bt-page-hero-inner { position: relative; z-index: 1; width: min(100%, var(--bt-container)); margin: 0 auto; }
.bt-page-hero h1 { max-width: 1200px; margin: 18px 0 0; color: inherit; }
.bt-page-hero[style*="center"] .bt-page-hero-inner { margin-inline: auto; }
.bt-breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; color: rgba(255,255,255,.65); font-size: 12px; }
.bt-breadcrumbs a { color: inherit; }

.bt-content-layout { width: min(calc(100% - 44px), var(--bt-container)); margin: 0 auto; padding: clamp(70px, 8vw, 120px) 0; }
.bt-content-layout-full { width: 100%; max-width: none; padding-inline: 0; }
.bt-content-layout-wide .bt-entry-column { width: 100%; }
.bt-content-layout-narrow .bt-entry-column { width: min(100%, var(--bt-content)); margin-inline: auto; }
.bt-content-layout-boxed .bt-entry-column { width: min(100%, var(--bt-content)); margin-inline: auto; padding: clamp(28px, 5vw, 70px); border-radius: 28px; background: rgba(255,255,255,.055); box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.bt-content-layout-sidebar-left, .bt-content-layout-sidebar-right { display: grid; grid-template-columns: minmax(0,1fr) var(--bt-sidebar); gap: clamp(34px, 5vw, 80px); align-items: start; }
.bt-content-layout-sidebar-left { grid-template-columns: var(--bt-sidebar) minmax(0,1fr); }
.bt-content-layout-sidebar-left .bt-entry-column { grid-column: 2; }
.bt-content-layout-sidebar-left .bt-sidebar { grid-column: 1; grid-row: 1; }
.bt-sidebar { position: sticky; top: 110px; display: grid; gap: 20px; }
.bt-sidebar .widget { padding: 25px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.045); }
.bt-sidebar .widget-title { margin-top: 0; font-size: 26px; }

.bt-archive-shell { color: var(--bt-text); background: var(--bt-night); }
.bt-archive-content { width: min(calc(100% - 44px), var(--bt-container)); margin: 0 auto; padding: clamp(70px, 8vw, 120px) 0; }
.bt-archive-grid { display: grid; grid-template-columns: repeat(var(--bt-blog-columns), minmax(0,1fr)); gap: clamp(20px, 3vw, 38px); }
.bt-archive-grid.layout-list { grid-template-columns: 1fr; }
.bt-archive-grid.layout-list .bt-post-card { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); }
.bt-archive-grid.layout-masonry { display: block; columns: var(--bt-blog-columns); column-gap: 28px; }
.bt-archive-grid.layout-masonry .bt-post-card { break-inside: avoid; margin-bottom: 28px; }
.bt-post-card { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.045); transition: transform .25s, border-color .25s; }
.bt-post-card:hover { transform: translateY(-5px); border-color: var(--bt-primary); }
.bt-post-card-image { display: block; overflow: hidden; }
.bt-post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bt-post-card:hover .bt-post-card-image img { transform: scale(1.035); }
.bt-image-ratio-16-9 .bt-post-card-image { aspect-ratio: 16/9; }
.bt-image-ratio-4-3 .bt-post-card-image { aspect-ratio: 4/3; }
.bt-image-ratio-1-1 .bt-post-card-image { aspect-ratio: 1; }
.bt-image-ratio-3-4 .bt-post-card-image { aspect-ratio: 3/4; }
.bt-post-card-content { padding: clamp(22px, 3vw, 36px); }
.bt-post-card h2 { margin: 15px 0 18px; font-size: clamp(33px, 4vw, 54px); }
.bt-post-card h2 a { color: inherit; }
.bt-post-card p { color: rgba(255,255,255,.68); line-height: 1.7; }
.bt-post-meta, .bt-single-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--bt-secondary); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.bt-read-more { display: inline-flex; gap: 20px; margin-top: 8px; padding-bottom: 5px; border-bottom: 1px solid currentColor; color: var(--bt-primary); font-weight: 800; text-transform: uppercase; }
.navigation.pagination, .posts-navigation { margin-top: 60px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav-links .page-numbers, .posts-navigation a { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid rgba(255,255,255,.18); color: inherit; }
.nav-links .current, .nav-links a:hover { color: var(--bt-ink); background: var(--bt-primary); }

.bt-single-featured { margin: 0 0 45px; overflow: hidden; border-radius: 24px; }
.bt-single-featured img { width: 100%; height: auto; }
.bt-single-meta { margin-bottom: 35px; }
.bt-share { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.bt-share span { margin-right: 8px; font-weight: 800; }
.bt-share a { padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }
.bt-related-posts { width: min(calc(100% - 44px), var(--bt-container)); margin: 0 auto; padding: 20px 0 110px; }
.bt-related-posts > h2 { color: var(--bt-secondary); }
.bt-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.bt-related-grid article { padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; }
.bt-related-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.bt-related-grid p { margin: 15px 0 6px; color: var(--bt-secondary); font-size: 11px; }
.bt-related-grid h3 { margin: 0; font-size: 28px; }

.bt-scroll-top { position: fixed; z-index: 900; right: 22px; bottom: 22px; width: 48px; height: 48px; border: 1px solid var(--bt-primary); border-radius: 50%; color: var(--bt-ink); background: var(--bt-primary); box-shadow: 0 12px 35px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transform: translateY(15px); transition: .25s; cursor: pointer; font-size: 22px; }
.bt-scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.slide-in-left, .slide-in-right, .slide-in-up, .fade-in { opacity: 0; transition: transform var(--bt-animation-duration) cubic-bezier(.22,1,.36,1), opacity calc(var(--bt-animation-duration) * .85) ease; will-change: transform, opacity; }
.slide-in-left { transform: translateX(calc(var(--bt-animation-distance) * -1)); }
.slide-in-right { transform: translateX(var(--bt-animation-distance)); }
.slide-in-up { transform: translateY(var(--bt-animation-distance)); }
.slide-in-left.is-visible, .slide-in-right.is-visible, .slide-in-up.is-visible, .fade-in.is-visible { opacity: 1; transform: none; }
.bt-hide-desktop, .bt-hide-tablet, .bt-hide-mobile { display: initial; }

@media (max-width: 1024px) {
  .bt-header-desktop, .bt-footer-desktop { display: none; }
  .bt-header-mobile, .bt-footer-mobile { display: block; }
  .bt-header-mobile .bt-builder-row-inner, .bt-footer-mobile .bt-builder-row-inner { width: min(calc(100% - 32px), var(--bt-container)); grid-template-columns: 1fr auto 1fr; gap: 10px; }
  .bt-builder-logo { width: min(var(--bt-logo-width), 48vw); }
  .bt-content-layout-sidebar-left, .bt-content-layout-sidebar-right { grid-template-columns: 1fr; }
  .bt-content-layout-sidebar-left .bt-entry-column, .bt-content-layout-sidebar-left .bt-sidebar { grid-column: 1; }
  .bt-content-layout-sidebar-left .bt-entry-column { grid-row: 1; }
  .bt-content-layout-sidebar-left .bt-sidebar { grid-row: 2; }
  .bt-sidebar { position: static; }
  .bt-archive-grid.layout-masonry { columns: var(--bt-blog-columns); }
  .bt-hide-tablet { display: none !important; }
  body.admin-bar .bt-header-sticky, body.admin-bar .bt-header-reveal { top: 32px; }
}

@media (max-width: 782px) {
  body.admin-bar .bt-header-sticky, body.admin-bar .bt-header-reveal { top: 46px; }
}

@media (max-width: 767px) {
  .bt-builder-row-inner { width: calc(100% - 28px); }
  .bt-builder-zone { gap: 10px; }
  .bt-builder-logo .brand-mark { width: 44px; height: 44px; font-size: 21px; }
  .bt-builder-logo .brand-name { font-size: 13px; }
  .bt-page-hero { min-height: 330px; padding: 120px 22px 45px; }
  .bt-page-hero-parallax::before { background-attachment: scroll; }
  .bt-content-layout, .bt-archive-content, .bt-related-posts { width: min(calc(100% - 30px), var(--bt-container)); }
  .bt-content-layout-boxed .bt-entry-column { padding: 24px 18px; }
  .bt-archive-grid.layout-list .bt-post-card { grid-template-columns: 1fr; }
  .bt-related-grid { grid-template-columns: 1fr; }
  .bt-scroll-top-desktop { display: none; }
  .bt-hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .bt-scroll-top-mobile { display: none; }
  .bt-hide-desktop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .slide-in-left, .slide-in-right, .slide-in-up, .fade-in { opacity: 1; transform: none; }
}

