html{
  min-height:100%;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.site-main{
  flex:1 0 auto;
}

.site-footer{
  flex-shrink:0;
}
:root{
  --lf-primary:#2563eb;
  --lf-primary-dark:#1d4ed8;
  --lf-secondary:#7c3aed;
  --lf-accent:#eff6ff;
  --lf-text:#0f172a;
  --lf-muted:#64748b;
  --lf-bg:#ffffff;
  --lf-soft:#f8fbff;
  --lf-border:#e2e8f0;
  --lf-shadow-sm:0 4px 14px rgba(15,23,42,.04);
  --lf-shadow-md:0 10px 26px rgba(15,23,42,.06);
  --lf-shadow-lg:0 18px 40px rgba(15,23,42,.08);
  --lf-radius:22px;
  --lf-container:1200px;
  --lf-header-height:68px;
  --lf-sidebar-top:24px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.7;
  color:var(--lf-text);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.08) 0%, transparent 26%),
    radial-gradient(circle at top right, rgba(124,58,237,.08) 0%, transparent 20%),
    linear-gradient(180deg,#f8fbff 0%,#ffffff 260px,#ffffff 100%);
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:var(--lf-primary);
  text-decoration:none;
  transition:color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

a:hover{
  color:var(--lf-primary-dark);
}

h1,h2,h3,h4,h5,h6{
  margin:0 0 14px;
  line-height:1.12;
  letter-spacing:-.02em;
  color:var(--lf-text);
}

p{
  margin:0 0 16px;
}

.lf-container{
  width:min(100% - 40px, var(--lf-container));
  margin-inline:auto;
}

.lf-section{
  padding:64px 0;
}

.site-main{
  flex:1 0 auto;
  min-height:auto;
}

/* =========================================================
   HEADER — Fixed, premium and responsive
   - Header always stays above page content
   - The first ad inside <main> starts below the header
   - 1600px+ = one-row desktop navigation
   - 1200–1599px = professional two-row desktop navigation
   - <=1199px = hamburger navigation
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--lf-header-height, 68px);
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
  transform: translate3d(0, 0, 0);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.2s ease,
              background 0.2s ease;
  overflow: visible;
}

.site-header.lf-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  background: #0f172a;
}

body.lf-header-hidden .site-header {
  transform: translate3d(0, -100%, 0);
  box-shadow: none;
}

body.lf-header-visible .site-header,
body.lf-menu-open .site-header,
body.lf-search-open .site-header {
  transform: translate3d(0, 0, 0);
}

/*
 * One offset system only.
 * Because the header is fixed, body reserves exactly the same height.
 * The first element in <main> — including the header ad — therefore begins
 * below the header instead of underneath it.
 */
body {
  padding-top: var(--lf-header-height, 68px);
}

main.site-main {
  padding-top: 0;
  margin-top: 0;
}

/* Header gets more width than normal page content without changing articles. */
.site-header .lf-container {
  width: min(100% - 24px, 1600px);
}

.lf-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  height: var(--lf-header-height, 68px);
  min-width: 0;
}

/* ── LOGO ── */
.site-branding {
  flex-shrink: 0;
  min-width: 0;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.site-title:hover { color: #93c5fd; }

.lf-logo-icon {
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(124, 58, 237, 0.3) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.lf-logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo img {
  display: block;
  max-height: 46px;
  width: auto;
}

/* ── DESKTOP NAV ── */
.primary-nav {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.primary-menu > li {
  position: relative;
  list-style: none;
  margin: 0;
  flex: 0 0 auto;
}

.primary-menu > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 11px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  letter-spacing: -0.01em;
}

.primary-menu > li:hover > a,
.primary-menu > .current-menu-item > a,
.primary-menu > .current_page_item > a,
.primary-menu > .current-menu-ancestor > a {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.primary-menu .menu-item-has-children > a::after {
  content: "▾";
  font-size: 10px;
  margin-left: 5px;
  opacity: 0.65;
}

/* Desktop dropdown */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 16px 8px 8px;
  list-style: none;
  background: transparent;
  border: none;
  display: none;
  z-index: 1200;
}

.primary-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
  z-index: -1;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  display: block;
}

.primary-menu .sub-menu li {
  list-style: none;
  margin: 0;
}

.primary-menu .sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lf-text);
  white-space: nowrap;
  text-decoration: none;
}

.primary-menu .sub-menu a:hover {
  background: var(--lf-accent);
  color: var(--lf-primary-dark);
}

/* ── HEADER ACTIONS ── */
.lf-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── SEARCH ── */
.lf-header-search {
  position: relative;
}

.lf-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.lf-search-toggle:hover,
.lf-search-toggle.is-open {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.lf-search-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  transform: translateY(-6px);
  z-index: 1300;
}

.lf-search-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lf-search-dropdown .search-form {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.lf-search-dropdown .search-field {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border: 1.5px solid var(--lf-border) !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  background: #f8fafc !important;
  color: var(--lf-text) !important;
  box-shadow: none !important;
  outline: none;
  transition: border-color 0.15s ease !important;
}

.lf-search-dropdown .search-field:focus {
  border-color: var(--lf-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08) !important;
}

.lf-search-dropdown .search-submit {
  min-height: 46px;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--lf-primary) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 0 16px !important;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px !important;
  transition: background 0.15s ease !important;
}

.lf-search-dropdown .search-submit:hover {
  background: var(--lf-primary-dark) !important;
}

/* ── HAMBURGER ── */
.lf-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lf-menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

.lf-burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

.lf-menu-toggle.is-open .lf-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.lf-menu-toggle.is-open .lf-burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.lf-menu-toggle.is-open .lf-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   TOP ADSENSE DISPLAY AD — CLEAN
   - Direct AdSense only
   - No GAM/GPT selectors
   - No forced ad width/height
   - No 100vw mobile hack
   - Google controls the creative size
   ========================================================= */

#lf-header-display-ad {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  box-sizing: border-box;
  clear: both;

  margin: 0 auto 24px;
  padding: 12px 0 0;

  text-align: center;
  overflow: visible;
}

#lf-header-display-ad > .adsbygoogle {
  display: block;
}

/* =========================================================
   GENERIC CARDS / POSTS
   ========================================================= */

.lf-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow-sm);
}

.lf-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lf-post-card {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.lf-post-card:hover {
  box-shadow: var(--lf-shadow-lg);
  border-color: #d7e6ff;
}

.lf-post-thumb {
  display: block;
  overflow: hidden;
  background: #eef2ff;
}

.lf-post-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.lf-post-body { padding: 22px; }

.lf-post-cat {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--lf-primary-dark);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.lf-post-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.24;
  font-weight: 900;
}

.lf-post-title a { color: var(--lf-text); }
.lf-post-card:hover .lf-post-title a { color: var(--lf-primary-dark); }

.lf-post-excerpt {
  color: var(--lf-muted);
  font-size: 15px;
  line-height: 1.82;
  margin: 0 0 14px;
}

.lf-readmore { font-weight: 800; color: var(--lf-secondary); }
.lf-readmore:hover { color: var(--lf-primary-dark); }

/* PAGINATION */
.lf-pagination { margin-top: 34px; }

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--lf-border);
  background: #fff;
  color: var(--lf-text);
  border-radius: 14px;
  font-weight: 700;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background: var(--lf-primary);
  color: #fff;
  border-color: var(--lf-primary);
}

/* EMPTY STATE */
.lf-empty {
  max-width: 700px;
  margin: 0 auto;
  padding: 38px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 24px;
  box-shadow: var(--lf-shadow-sm);
}

.lf-empty h2 { font-size: 34px; }
.lf-empty p { margin-bottom: 0; color: var(--lf-muted); }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  margin-top: 0;
  background: #0f172a;
  color: #e2e8f0;
}

.lf-footer-top-bar {
  background: linear-gradient(135deg, var(--lf-primary), var(--lf-secondary));
  padding: 14px 0;
}

.lf-footer-tagline {
  text-align: center;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.lf-footer-body {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 60px;
  padding: 56px 0 40px;
  align-items: start;
}

.lf-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.lf-footer-logo:hover { color: #a5b4fc; }
.lf-footer-logo-icon { font-size: 26px; }

.lf-footer-desc {
  font-size: 14px;
  line-height: 1.85;
  color: #94a3b8;
  margin: 0 0 24px;
}

.lf-footer-founder {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lf-footer-founder img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
}

.lf-footer-founder-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lf-footer-founder strong {
  font-size: 14px;
  color: #e2e8f0;
}

.lf-footer-links-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.lf-footer-col-title {
  font-size: 12px;
  font-weight: 800;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.lf-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lf-footer-list li { margin-bottom: 10px; }

.lf-footer-list a {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.lf-footer-list a:hover { color: #e2e8f0; }

.lf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}

.lf-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.lf-footer-bottom p {
  font-size: 13px;
  color: #475569;
  margin: 0;
}

.lf-footer-bottom-links {
  display: flex;
  gap: 20px;
}

.lf-footer-bottom-links a {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
}

.lf-footer-bottom-links a:hover { color: #94a3b8; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---------------------------------------------------------
   MEDIUM DESKTOP: 1200px–1599px
   Professional two-row navigation with enough header height.
   --------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1599px) {
  :root {
    --lf-header-height: 104px;
  }

  .lf-header-inner {
    height: var(--lf-header-height);
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 14px;
  }

  .primary-nav {
    align-self: stretch;
    min-width: 0;
    overflow: visible;
  }

  .primary-menu {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    column-gap: 2px;
    row-gap: 4px;
    overflow: visible;
  }

  .primary-menu > li > a {
    height: 34px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 13px;
  }

  .site-logo img {
    max-height: 44px;
  }
}

/* ---------------------------------------------------------
   TABLET / SMALL LAPTOP / MOBILE: <=1199px
   Use the hamburger before the desktop menu becomes cramped.
   --------------------------------------------------------- */
@media (max-width: 1199px) {
  :root {
    --lf-header-height: 68px;
  }

  .site-header,
  body.lf-header-hidden .site-header,
  body.lf-header-visible .site-header,
  body.lf-menu-open .site-header,
  body.lf-search-open .site-header {
    transform: none !important;
  }

  .site-header {
    transition: box-shadow .2s ease, background .2s ease !important;
  }

  .lf-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--lf-header-height);
  }

  .site-branding {
    margin-right: auto;
  }

  .lf-menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: fixed;
    top: var(--lf-header-height);
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--lf-border);
    padding: 12px 20px 16px;
    box-shadow: 0 16px 40px rgba(15,23,42,.12);
    z-index: 998;
    max-height: calc(100vh - var(--lf-header-height));
    max-height: calc(100dvh - var(--lf-header-height));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-menu {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
  }

  .primary-menu > li {
    width: 100%;
    max-width: 100%;
  }

  .primary-menu > li > a {
    width: 100%;
    height: 48px;
    justify-content: space-between;
    border-radius: 12px;
    font-size: 15px;
    padding: 0 14px;
    color: var(--lf-text);
    white-space: normal;
  }

  .primary-menu > li:hover > a,
  .primary-menu > .current-menu-item > a,
  .primary-menu > .current_page_item > a,
  .primary-menu > .current-menu-ancestor > a {
    background: var(--lf-accent);
    color: var(--lf-primary-dark);
  }

  .primary-menu .sub-menu {
    position: static;
    display: block !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: var(--lf-accent);
    border: 0;
    box-shadow: none;
    border-radius: 10px;
    padding: 4px 4px 4px 12px;
    margin-top: 2px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-menu .sub-menu::before {
    display: none !important;
    content: none !important;
  }

  .primary-menu .sub-menu a {
    font-size: 14px;
    padding: 8px 12px;
    color: var(--lf-text);
    white-space: normal;
  }

  body.lf-menu-open {
    overflow: hidden;
  }

  .lf-search-dropdown {
    right: 0;
    left: auto;
    width: min(88vw, 310px);
  }
}

@media (max-width: 1100px) {
  .lf-post-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 200px, #ffffff 100%);
  }

  .lf-section { padding: 40px 0; }
  .lf-post-grid { grid-template-columns: 1fr; }
  .lf-post-title { font-size: 20px; }
  .lf-empty h2 { font-size: 28px; }

  .lf-footer-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0 28px;
  }

  .lf-footer-links-cols {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .lf-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .lf-search-dropdown {
    position: fixed;
    top: var(--lf-header-height);
    left: 16px;
    right: 16px;
    width: auto;
    border-radius: 16px;
  }

  .lf-search-dropdown .search-form {
    flex-direction: column;
  }

  .lf-search-dropdown .search-submit {
    width: 100%;
  }

}

@media (max-width: 480px) {
  .lf-footer-links-cols { grid-template-columns: 1fr; }
  .lf-logo-text { font-size: 18px; }
  .site-logo img { max-height: 42px; }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
  .lf-cat-card, .lf-post-card, .lf-search-toggle,
  .lf-menu-toggle, a, button {
    transition-duration: 0.05s !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .site-header {
    transition: none !important;
  }
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */

.lf-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--lf-primary) 0%, var(--lf-secondary) 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.25s ease, visibility 0.25s ease,
              transform 0.25s ease, box-shadow 0.2s ease,
              background 0.2s ease;
}

/* Visible state — added by JS after scrolling down */
.lf-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lf-back-to-top:hover {
  background: linear-gradient(135deg, var(--lf-primary-dark) 0%, var(--lf-secondary) 100%);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px) scale(1.04);
}

.lf-back-to-top:active {
  transform: translateY(0) scale(0.97);
}

@media (max-width: 767px) {
  .lf-back-to-top {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
}

/* =========================================================
   FOOTER READABILITY FIX v1.1.1
   - Stronger contrast and readable type sizes
   - Clearer bottom copyright and policy links
   ========================================================= */

.site-footer {
  background: linear-gradient(180deg, #0b1528 0%, #081120 100%);
  color: #e5edf8;
}

.lf-footer-body {
  padding-top: 52px;
  padding-bottom: 38px;
}

.lf-footer-logo {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.2;
}

.lf-footer-desc {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.8;
}

.lf-footer-founder-label {
  color: #94a3b8;
  font-size: 12px;
}

.lf-footer-founder strong {
  color: #f8fafc;
  font-size: 15px;
}

.lf-footer-col-title {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .045em;
}

.lf-footer-list li {
  margin-bottom: 11px;
}

.lf-footer-list a {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.lf-footer-list a:hover,
.lf-footer-list a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lf-footer-bottom {
  background: rgba(2, 8, 23, .35);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
}

.lf-footer-bottom p {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.lf-footer-bottom-links {
  gap: 22px;
  flex-wrap: wrap;
}

.lf-footer-bottom-links a {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.lf-footer-bottom-links a:hover,
.lf-footer-bottom-links a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .lf-footer-body {
    padding-top: 38px;
    padding-bottom: 30px;
  }

  .lf-footer-bottom {
    padding: 20px 0;
  }

  .lf-footer-bottom-inner {
    align-items: flex-start;
  }

  .lf-footer-bottom-links {
    gap: 16px;
  }
}