@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --accent: #00d9ff;
  --bg: #000;
  --white: #fff;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; outline: none; }
ul { list-style: none; padding: 0; margin: 0; }
html { overflow-x: hidden; overflow-y: scroll; }
html::-webkit-scrollbar { width: 6px; background: transparent; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }
html::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.35); }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--white); margin: 0; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; transition: all .3s ease; }
p { margin: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0; }

/* ── Container ── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* ══════════════════ HEADER ══════════════════ */
.header-bg-v2 { background: linear-gradient(360deg, rgba(0,0,0,0), rgba(0,0,0,0.88) 59%); border-bottom: none; }

.site-header-desktop {
  display: flex; align-items: center; justify-content: center;
  height: 120px; width: 100%; position: fixed; top: 0; z-index: 2000;
}
.site-header-desktop nav { display: flex; align-items: center; justify-content: space-between; }

.nav-menu-v2 {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 20px; height: 48px;
  background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}
.nav-menu-v2 li a {
  padding: 6px 20px; color: #fff; font-weight: 600; font-size: 14px;
  border-radius: 24px; display: inline-block; line-height: 20px;
  transition: .15s cubic-bezier(.4,0,.2,1);
}
.nav-menu-v2 li a:hover { background: rgba(255,255,255,.2); }
.nav-menu-v2 li a.active { background: #fff; color: #000; }

.btn-contact-v2 {
  background: #fff; color: #000; font-weight: 400; font-size: 16px;
  border-radius: 32px; padding: 8px 16px; display: inline-block;
}
.btn-contact-v2:hover { background: rgba(255,255,255,.85); }

.site-header-mobile {
  display: none; align-items: center; justify-content: center;
  height: 88px; width: 100%; position: fixed; top: 0; z-index: 2100;
}
.site-header-mobile nav { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; }
.navbar-toggler { background: transparent; border: none; cursor: pointer; padding: 0; }

#mobile-drawer {
  position: fixed; top: 88px; right: 0; height: 100vh; width: 100vw;
  background: #000; z-index: 999;
  transform: translateX(100%); transition: transform .3s ease-in-out;
  visibility: hidden; pointer-events: none;
}
#mobile-drawer.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.mobile-menu-item {
  display: block; padding: 1.1rem 1.5rem; font-size: 16px;
  font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
}

main { padding-top: 120px; }

/* ══════════════════ FOOTER ══════════════════ */
#footer { position: relative; overflow: hidden; padding-top: 5rem; background: #000; }

.footer-patternLeft {
  position: absolute; left: 0; top: 0; width: 500px; height: 500px;
  background-repeat: no-repeat; opacity: .3;
}
.footer-patternRight {
  position: absolute; right: 0; bottom: 0; width: 800px; height: 800px;
  background-repeat: no-repeat; background-position: bottom right; opacity: .3;
}

/* CTA row */
.footer-cta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3rem; margin-bottom: 4rem; position: relative; }
.footer-cta-row h2 { font-size: clamp(2rem,4vw,3.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: #fff; }
.footer-cta-row h2 span { font-weight: 200; font-size: .8em; opacity: .8; display: block; margin-top: 1rem; }
.form-block { width: 450px; max-width: 100%; }
.form-block p { font-size: 1.125rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-control {
  height: 40px; padding: 10px 15px; background: #323250;
  color: #fff; font-size: 14px; font-family: 'Inter',sans-serif;
  width: 100%; border-radius: 8px; border: none;
}
.form-control::placeholder { color: rgba(255,255,255,.5); }
textarea.form-control { height: auto; min-height: 80px; resize: vertical; }
.phone-row { display: flex; align-items: center; gap: .5rem; }
.country-select {
  height: 40px; padding: 0 12px; background: #323250; border-radius: 8px; color: #fff; font-size: 14px; white-space: nowrap; flex-shrink: 0;
  position: relative; cursor: pointer; user-select: none; display: flex; align-items: center;
}
.selected-country { display: flex; align-items: center; gap: 6px; }
.selected-country .arrow { font-size: 10px; opacity: 0.7; transition: transform 0.3s; }
.country-select.open .arrow { transform: rotate(180deg); }

.country-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; width: 240px; max-height: 250px;
  background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow-y: auto; z-index: 2100;
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.country-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }

.country-search {
  width: calc(100% - 20px); margin: 10px; padding: 8px 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; color: #fff; font-size: 13px; font-family: inherit;
  position: sticky; top: 0; z-index: 10;
}
.country-search:focus { border-color: var(--accent); outline: none; background: rgba(255,255,255,0.08); }

.country-option {
  padding: 10px 15px; font-size: 14px; color: rgba(255,255,255,0.8);
  display: flex; align-items: center; gap: 12px; transition: all 0.2s;
}
.country-option:hover { background: rgba(255,255,255,0.08); color: #fff; }
.country-option span { font-size: 18px; }

.country-dropdown::-webkit-scrollbar { width: 4px; }
.country-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 10px; }
.btn-submit-v2 {
  background: #000; border: 1px solid #fff; color: #fff;
  font-family: 'Inter',sans-serif; font-size: 14px; font-weight: 600;
  border-radius: 8px; padding: 8px 32px; height: 40px; cursor: pointer; transition: background .3s, color .3s;
}
.btn-submit-v2:hover { background: #fff; color: #000; }

.footer-divider { background: rgba(255,255,255,.2); height: 1px; margin-bottom: 4rem; position: relative; }

/* Info row */
.footer-info-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 4rem; position: relative; }
.footer-card {
  background: rgba(255,255,255,.05); border-radius: 1rem; padding: 2.5rem;
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 2rem; flex: 1;
}
.footer-logo img { width: 200px; }

.tab-container-v2 { display: flex; align-items: flex-start; gap: 0; flex: 1; }
.nav-v2 { display: flex; flex-direction: column; gap: 12px; position: relative; }
.nav-v2::before {
  content: ''; position: absolute; right: 0; top: 0;
  width: 1px; height: 100%; background: rgba(255,255,255,.12);
}
.nav-v2 li button {
  font-size: 16px; font-weight: 600; color: #fff; background: transparent; border: none;
  cursor: pointer; padding: 5px 0; padding-right: 36px; position: relative;
  text-align: left; display: inline-block; width: 100%;
}
.nav-v2 li button.active { color: var(--accent); }
.nav-v2 li button.active::before {
  content: ''; position: absolute; right: 0; top: 0;
  width: 2px; height: 100%; background: var(--accent);
}
.tab-content-v2 { border-left: none; padding-left: 2.5rem; }
.tab-panel { display: none; flex-direction: column; gap: .5rem; }
.tab-panel.active { display: flex; }
.tab-panel a { font-size: 14px; font-weight: 500; color: var(--accent); }
.tab-panel .phone { color: #fff; font-size: 14px; }
.tab-panel .address { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.6; max-width: 260px; }

.quick-links { color: #fff; margin-left: auto; }
.quick-links h3 { font-size: 1.125rem; margin-bottom: 1rem; font-weight: 700; }
.quick-links-grid { display: grid; grid-template-columns: repeat(2,1fr); column-gap: 2rem; row-gap: .5rem; font-size: 14px; opacity: .8; }
.quick-links-grid a:hover { opacity: 1; }

.footer-side-col { color: #fff; padding-left: 2.5rem; }
.footer-side-col img { width: 130px; margin-bottom: 1rem; }
.footer-side-col ul { margin-bottom: 1.5rem; }
.footer-side-col ul li { margin-bottom: .5rem; }
.footer-side-col ul li a { font-size: 12px; opacity: .7; }
.footer-side-col ul li a:hover { opacity: 1; }
.footer-side-col h3 { font-size: 14px; font-weight: 700; margin-bottom: .75rem; }

/* Social row */
.footer-social-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; position: relative; }
.social-icons { display: flex; align-items: center; justify-content: center; gap: 3rem; list-style: none; padding: 0; margin: 0; }
.social-icons li { display: flex; }
.social-icons a { opacity: .8; display: flex; }
.social-icons a:hover { opacity: 1; }
.social-icons img { width: 24px; }

/* Copyright bar */
.footer-copyright-bar {
  display: flex; flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); gap: 16px 24px; padding: 12px 16px;
  background: #000; position: relative;
}
.copyright { font-size: 16px; color: rgb(255,255,255); font-weight: 300; text-align: center; }
.copyright a { color: rgb(255,255,255); }
.copyright a:hover { text-decoration: underline; }
.copyright span { display: inline-block; padding-right: 6px; }

/* ══════════════════ BLOG LISTING ══════════════════ */
.blog-hero { padding: 5rem 0 3rem; text-align: center; }
.blog-hero .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.blog-hero h1 { font-size: clamp(2.5rem,5vw,4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1.25rem; }
.blog-hero p { font-size: 1.125rem; color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.7; }

/* Segmented Control Filter */
.segmented-control {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 100px;
  margin-bottom: 3.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
}

.segmented-control .segment {
  padding: 10px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.segmented-control .segment:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.segmented-control .segment.active {
  background: #fff;
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Featured post */
.featured-post {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 1.25rem;
  overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 4rem; transition: border-color .3s;
}
.featured-post:hover { border-color: rgba(255,255,255,.2); }
.featured-post .fp-img { position: relative; min-height: 380px; }
.featured-post .fp-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .fp-body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.post-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.featured-post .fp-body h2 { font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 1rem; }
.featured-post .fp-body p { font-size: .95rem; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 3.4em; }
.post-meta { display: flex; align-items: center; gap: 1rem; font-size: 13px; color: rgba(255,255,255,.45); flex-wrap: wrap; }
.post-meta .author { color: rgba(255,255,255,.7); font-weight: 500; }
.read-more { color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.read-more svg { transition: transform .2s; }
.read-more:hover svg { transform: translateX(4px); }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; margin-bottom: 4rem; }
.blog-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem; overflow: hidden; transition: border-color .3s, transform .3s;
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: rgba(255,255,255,.2); transform: translateY(-4px); }
.blog-card .bc-img { width: 100%; height: 200px; object-fit: cover; }
.bc-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.bc-body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: .75rem; letter-spacing: -.01em; }
.bc-body p { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.65; margin-bottom: 1.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 3.3em; }
.bc-body .post-meta { margin-top: auto; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 0 0 5rem; }
.page-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid rgba(255,255,255,.15);
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.6);
  background: transparent; cursor: pointer; transition: all .2s;
}
.page-btn:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.page-btn.active { background: #fff; color: #000; border-color: #fff; }
.page-btn.arrow { color: rgba(255,255,255,.5); }
.page-btn.arrow:hover { color: #fff; }

/* ══════════════════ BLOG DETAIL ══════════════════ */
.article-hero { padding: 4rem 0 3rem; }
.reading-progress-container {
  position: fixed;
  top: 120px;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 2001;
  pointer-events: none;
}

.reading-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #00d9ff, #0055ff);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.4);
  transition: width 0.2s ease-out;
  border-radius: 0 2px 2px 0;
}

.reading-progress-label {
  position: absolute;
  top: 12px;
  right: 2rem;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reading-progress-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.reading-progress-label .percent {
  color: #00d9ff;
  font-family: var(--font-heading);
  min-width: 32px;
  text-align: right;
}


body.admin-bar .reading-progress-container { top: calc(120px + 32px); }
@media (max-width: 1024px) {
  body.admin-bar .reading-progress-container { top: calc(72px + 32px); }
}
@media (max-width: 782px) {
  body.admin-bar .reading-progress-container { top: calc(72px + 46px); }
}
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 2rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,.25); }

.article-header { max-width: 820px; }
.article-header .post-tag { margin-bottom: 1.25rem; }
.article-header h1 { font-size: clamp(2rem,4vw,3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 1.5rem; }
.article-header .post-meta { margin-bottom: 2rem; }
.article-header .excerpt { font-size: 1.125rem; color: rgba(255,255,255,.65); line-height: 1.75; max-width: 760px; }

.article-cover { width: 100%; height: 480px; object-fit: cover; border-radius: 1.25rem; margin: 3rem 0; border: 1px solid rgba(255,255,255,.08); }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: start; }
.article-body { font-size: 1.0625rem; line-height: 1.8; color: rgba(255,255,255,.85); overflow-wrap: anywhere; }
.article-body h2 { font-size: 1.6rem; font-weight: 700; color: #fff; margin: 2.5rem 0 1rem; letter-spacing: -.02em; }
.article-body h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 2rem 0 .75rem; }
.article-body p { margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: .5rem; }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 1rem 1.5rem; margin: 2rem 0;
  background: rgba(0,217,255,.05); border-radius: 0 .5rem .5rem 0;
  font-style: italic; color: rgba(255,255,255,.75);
}
.article-body img { border-radius: .75rem; margin: 2rem 0; border: 1px solid rgba(255,255,255,.08); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body hr { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 2.5rem 0; }

/* Sidebar */
.sidebar { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 2rem; }
.sidebar-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 1rem; padding: 1.5rem; }
.sidebar-card h4 { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); margin-bottom: 1.25rem; }
.toc-list { display: flex; flex-direction: column; gap: .75rem; }
.toc-list a { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.5; }
.toc-list a:hover, .toc-list a.active { color: var(--accent); }
.author-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.1); }
.author-name { font-size: .9375rem; font-weight: 700; }
.author-job-title { font-size: 11px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.author-bio { font-size: .8125rem; color: rgba(255,255,255,.5); line-height: 1.6; }
.author-socials { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 4px; }
.author-socials a { color: rgba(255,255,255,.4); transition: color .2s; display: flex; }
.author-socials a:hover { color: #fff; }

/* Related posts */
.related-section { padding: 5rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.section-heading { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 2.5rem; }

/* ── AUTHOR PAGE ── */
.author-hero { padding: 4rem 0 5rem; background: linear-gradient(180deg, rgba(0,217,255,0.03) 0%, rgba(0,0,0,0) 100%); }
.author-profile-header { display: flex; align-items: center; gap: 3.5rem; margin-top: 3rem; }
.author-profile-avatar { flex-shrink: 0; }
.author-profile-avatar img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.1); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.author-profile-info { flex: 1; max-width: 720px; }
.author-profile-info .eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: .75rem; display: block; }
.author-profile-info h1 { font-size: clamp(2.5rem,5vw,3.5rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .5rem; }
.author-profile-job-title { font-size: 1.25rem; font-weight: 600; color: var(--accent); margin-bottom: 1.5rem; }
.author-bio-large { font-size: 1.125rem; line-height: 1.7; color: rgba(255,255,255,.7); margin-bottom: 2rem; }
.author-profile-socials { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.author-profile-socials a { color: rgba(255,255,255,.6); transition: all .3s ease; display: flex; }
.author-profile-socials a:hover { color: #fff; transform: translateY(-2px); }
.author-stats { display: flex; gap: 2rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem; }
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.4); }

.section-divider { display: flex; align-items: center; gap: 1.5rem; margin: 4rem 0 3rem; }
.section-divider span { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); white-space: nowrap; }
.section-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1); }

.no-results { padding: 4rem 0; text-align: center; color: rgba(255,255,255,.5); font-style: italic; }

.author-link { display: block; text-decoration: none; }
.author-link:hover .author-name { color: var(--accent); }
.author-link:hover .author-avatar { border-color: var(--accent); }

/* Share bar */
.share-bar { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); margin: 3rem 0; flex-wrap: wrap; }
.share-bar span { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.6); margin-right: .5rem; }
.share-btn { padding: .5rem 1.25rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,.15); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); background: transparent; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.share-btn:hover { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.05); }
.share-btn.copied { border-color: var(--accent); color: var(--accent); background: rgba(0, 217, 255, 0.05); }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 1.25rem; }
  .site-header-desktop { display: none !important; visibility: hidden !important; pointer-events: none !important; }
  .site-header-mobile  { display: flex; height: 72px; }
  main { padding-top: 88px; }
  .reading-progress-container { 
    top: 68px; 
    height: 3px;
    z-index: 2200;
  }
  .reading-progress-label { 
    right: 4.2rem; 
    top: -42px; 
    padding: 3px 8px; 
    font-size: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .reading-progress-label .label-text { display: none; }
  .reading-progress-label .percent { min-width: auto; }
  
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-img { min-height: 240px; }
  .featured-post .fp-body { padding: 2rem; }
  .blog-grid { grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
  
  .article-hero { padding: 3rem 0 2rem; }
  .article-header h1 { font-size: 2.25rem; }
  .article-layout { grid-template-columns: 1fr; gap: 4rem; }
  .sidebar { position: static; gap: 4rem; }
  .article-cover { height: 240px; margin: 2rem 0; }

  /* Tablet Footer Tweaks */
  .footer-info-row { gap: 2rem; flex-wrap: wrap; }
  .footer-card { padding: 2rem; gap: 2rem; flex: 1 1 100%; max-width: 100%; }
  .quick-links { flex: 1 1 200px; margin-left: 0; }
  .footer-side-col { flex: 1 1 200px; padding-left: 0; }
}

@media (max-width: 767px) {
  .footer-cta-row { flex-direction: column; gap: 2rem; text-align: center; justify-content: center; }
  .footer-cta-row h2 { font-size: 2rem; text-align: center; }
  .form-block { width: 100%; text-align: center; }
  .footer-info-row { flex-direction: column; gap: 3rem; align-items: center; text-align: center; justify-content: center; }
  .footer-card { flex-direction: column; padding: 2rem 1.5rem; align-items: center; width: 100%; text-align: center; gap: 1.5rem; }
  .footer-logo { margin-right: 0 !important; margin-bottom: 0.5rem; display: flex; justify-content: center; width: 100%; }
  .footer-logo img { margin: 0 auto; }
  .tab-container-v2 { flex-direction: column; gap: 1.5rem; align-items: center; width: 100%; text-align: center; }
  .nav-v2 { flex-direction: row; gap: 1.25rem; flex-wrap: wrap; justify-content: center; width: 100%; }
  .nav-v2 li button { text-align: center; }
  .tab-content-v2 { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; width: 100%; text-align: center; }
  .tab-panel { align-items: center; text-align: center; }
  .tab-panel .address { max-width: 100%; text-align: center; }
  .quick-links { margin-left: 0; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .quick-links h3 { text-align: center; width: 100%; }
  .quick-links-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; width: 100%; }
  .footer-side-col { padding-left: 0; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer-side-col ul { width: 100%; text-align: center; }
  .footer-side-col h3 { text-align: center; width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
}
  
  .author-profile-header { flex-direction: column; text-align: center; gap: 2rem; }
  .author-profile-avatar img { width: 140px; height: 140px; }
  .author-profile-socials { justify-content: center; }
  .author-stats { justify-content: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.5rem; }
  .article-body { font-size: 1.125rem; line-height: 1.75; }
  .article-header .excerpt { font-size: 1.05rem; }
  .blog-hero { padding: 3rem 0 2rem; }
  .blog-hero h1 { font-size: 2.25rem; }
  .blog-hero p { font-size: 1rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .segmented-control { margin-bottom: 2.5rem; }
  .segmented-control .segment { padding: 8px 20px; font-size: 13px; }
  .share-btn { padding: 0.75rem 1.5rem; width: 100%; justify-content: center; }
  .pagination .page-numbers { width: 44px; height: 44px; }
  
  .author-profile-info h1 { font-size: 2rem; }
  .author-profile-job-title { font-size: 1.1rem; }
  .author-bio-large { font-size: 1rem; }
  .author-stats { gap: 1rem; flex-wrap: wrap; }
  .author-profile-avatar img { width: 120px; height: 120px; }

  /* Touch Targets */
  .nav-menu-v2 li a { padding: 10px 20px; }
  .mobile-menu-item { padding: 1.25rem 1.5rem; }
}

body.admin-bar .site-header-desktop { top: 32px; }
body.admin-bar .site-header-mobile { top: 32px; }
body.admin-bar #mobile-drawer { top: 120px; }


.theme-card-link {
  display: block;
}

.theme-post-link {
  color: inherit;
}

.theme-placeholder-image {
  background:
    radial-gradient(circle at top left, rgba(0, 217, 255, .24), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}

.fp-img .theme-placeholder-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.bc-img.theme-placeholder-image {
  width: 100%;
  height: 200px;
}

.article-cover.theme-placeholder-image {
  width: 100%;
  height: 480px;
}

.pagination .page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.15);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  background: transparent;
  transition: all .2s;
}

.pagination a.page-numbers:hover {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

.pagination .page-numbers.current {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.pagination .page-numbers.dots {
  border-color: transparent;
  width: auto;
  padding: 0 .25rem;
}

.page-btn.disabled {
  opacity: .35;
  pointer-events: none;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body figure,
.article-body .wp-block-image {
  margin: 2rem 0;
}

.article-body .wp-block-image img,
.article-body figure img {
  width: 100%;
  height: auto;
}

.article-body pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: .75rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.article-body code {
  font-size: .95em;
}

@media (max-width: 782px) {
  body.admin-bar .site-header-desktop,
  body.admin-bar .site-header-mobile {
    top: 46px;
  }

  body.admin-bar #mobile-drawer {
    top: 134px;
  }
}

.form-status {
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 15px;
  text-align: left;
  transition: all 0.3s ease;
}

.form-status.success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4CAF50;
}

.form-status.error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
}

/* ── MOBILE STICKY CTA ── */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-sticky-cta.visible {
  transform: translateY(0);
}

.mcta-text {
  flex: 1;
}

.mcta-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.mcta-text p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.mcta-btn {
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .mobile-sticky-cta { display: none !important; }
}

/* WP Blocks Fixes */
.article-body .wp-block-image,
.article-body figure {
  max-width: 100%;
  overflow: hidden;
}

.article-body .wp-block-image img {
  height: auto;
  object-fit: cover;
}

.article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

