/* ============================================
   BLOG SINGLE PAGE — TYPOGRAPHY + ANIMATION UPDATE
   flyflightmode.com
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --font-editorial: 'Neue Haas Grotesk Display Pro' , sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --accent: #000;
  --accent-light: #f5f6ff;
  --text-primary: #0d0d0d;
  --text-body: #444;
  --text-muted: #888;
  --text-faint: #bbb;
  --border: rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reading Progress Bar ---------- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.12s linear;
  border-radius: 0 2px 2px 0;
}

/* ---------- Breadcrumb ---------- */
.post__breadcrumb {
  padding: 2rem 0 2.5rem;
  margin-bottom: 0;
}
.post__breadcrumb .breadcrumb {
  gap: 6px;
  align-items: center;
  margin: 0;
}
.post__breadcrumb .breadcrumb-item {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}
.post__breadcrumb .breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  /* UPDATED: pad + radius so hover bg doesn't clip tightly */
  padding: 3px 6px;
  border-radius: 5px;
  margin: -3px -6px;
  transition:
    color 0.15s,
    background 0.15s;
}
.post__breadcrumb .breadcrumb-item a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05); /* ADDED: bg flash on hover */
}
.post__breadcrumb .breadcrumb-item.active {
  color: var(--text-primary);
  max-width: 380px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.post__breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-faint);
    padding-right: 12px;
    width: 16px;
    height: 12px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.datesingle {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Single Post Banner ---------- */
.singlepostbanner {
  padding: 0 0 3rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.1s forwards;
}
.single-post .page-header {
  display: none;
}

.singlepostbannerarea {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  min-height: 380px;
}

/* Left — Featured Image */
.singlepostbannerImg {
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.singlepostbannerImg .entry-media {
  position: absolute;
  inset: 0;
}
.singlepostbannerImg .entry-media img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.singlepostbannerImg:hover .entry-media img {
  transform: scale(1.03);
}

/* Read time badge */
.postReadTime {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgb(0 0 0 / 20%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 7px 16px;
    border-radius: 30px;
    width: fit-content;
}
.postReadTime::before {
  content: "⏱";
  font-size: 14px;
}

/* Right — Title + Author */
.singlepostbannercontent {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}
.singlepostbannertitle {
  flex: 1;
}

.singlepostbannertitle .post-category-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.singlepostbannertitle .post-category-label::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* HERO TITLE — editorial serif | UPDATED: 32px → 36px */
.singlepostbannertitle h1 {
  font-family: var(--font-editorial);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  margin: 0;
}

/* Author row */
.singlepost-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.singlepost-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  /* ADDED: micro lift on hover */
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s;
  cursor: default;
}
.singlepost-avatar:hover {
  transform: scale(1.08); /* ADDED */
  box-shadow: 0 4px 16px rgba(85, 99, 245, 0.3); /* ADDED */
}
.singlepost-author-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1;
  margin-bottom: 3px;
}
.singlepost-author-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ---------- Blog Post Body ---------- */
.singlepostblog {
  padding: 0 0 80px;
  opacity: 0;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.3s forwards;
}

/* ---------- Table of Contents ---------- */
.tableofcontent {
  position: sticky;
  top: 28px;
  height: fit-content;
  padding-right: 32px;
}
.tableofcontent #ez-toc-container {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}
.ez-toc-title-container {
  margin-bottom: 1rem;
}
.ez-toc-title-container .ez-toc-title {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--text-muted) !important;
}
.ez-toc-counter nav ul {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.ez-toc-counter nav ul li {
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}
.ez-toc-counter nav ul li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.2s var(--ease-out);
}
.ez-toc-counter nav ul li.active::before {
  transform: scaleY(1);
}
.ez-toc-counter nav ul li a {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 10px 0 10px 8px !important;
  font-family: var(--font-body) !important;
  color: var(--text-muted) !important;
  font-size: 14px !important; /* was 13.5px */
  font-weight: 400 !important;
  text-decoration: none !important;
  line-height: 1.45 !important;
  border-radius: 0 6px 6px 0 !important; /* ADDED: for bg tint */
  transition:
    color 0.15s,
    background 0.15s !important; /* UPDATED: added bg transition */
}
.ez-toc-counter nav ul li a:hover {
  color: var(--text-primary) !important;
  background: rgba(0, 0, 0, 0.025) !important; /* ADDED: subtle bg on hover */
}
.ez-toc-counter nav ul li.active > a {
  color: var(--accent) !important;
  font-weight: 600 !important;
  background: var(--accent-light) !important; /* ADDED: tint on active */
}
.ez-toc-counter nav ul li a::before {
  display: none !important;
}
#ez-toc-container a:hover {
  text-decoration: none !important;
}

/* ---------- Post Article Content ---------- */

/* Body text | UPDATED: 16.5px → 17px */
.singlepostContent p {
  font-family: var(--font-body);
  font-size: 17px; /* was 16.5px */
  line-height: 1.82;
  color: var(--text-body);
  margin-bottom: 1.4rem;
}

/* Headings — editorial serif for H2, sans for H3+ */
.singlepostContent h2 {
  font-family: var(--font-editorial);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1.28;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}
.singlepostContent h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.1px;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
}
.singlepostContent h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.singlepostContent h5 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}
.singlepostContent h6 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.singlepostContent strong,
.singlepostContent b {
  font-weight: 600;
  color: var(--text-primary);
}

.singlepostContent a {
  color: var(--accent) !important;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition:
    text-decoration-color 0.15s,
    color 0.15s;
}


/* Lists | UPDATED: 16.5px → 17px */
.singlepostContent ul {
  margin: 0 0 1.4rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.singlepostContent ul li {
  list-style: none !important;
  padding: 0.35rem 0 0.35rem 1.375rem;
  position: relative;
  font-family: var(--font-body);
  font-size: 17px; /* was 16.5px */
  line-height: 1.75;
  color: var(--text-body);
}
.singlepostContent ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.singlepostContent ol {
  margin: 0 0 1.4rem 0 !important;
  padding: 0 !important;
  counter-reset: ol-counter;
  list-style: none !important;
}
.singlepostContent ol li {
  list-style: none !important;
  counter-increment: ol-counter;
  padding: 0.35rem 0 0.35rem 2.25rem;
  position: relative;
  font-family: var(--font-body);
  font-size: 17px; /* was 16.5px */
  line-height: 1.75;
  color: var(--text-body);
}
.singlepostContent ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  top: 6px;
  letter-spacing: 0;
}

/* Blockquote */
.singlepostContent blockquote {
  border-left: 3px solid var(--accent);
  margin: 2.25rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--accent-light);
  border-radius: 0 10px 10px 0;
  position: relative;
  overflow: hidden;
}
.singlepostContent blockquote::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 14px;
  font-family: var(--font-editorial);
  font-size: 80px;
  color: rgba(85, 99, 245, 0.1);
  line-height: 1;
  pointer-events: none;
}
.singlepostContent blockquote p {
  font-family: var(--font-editorial);
  font-size: 17.5px;
  font-style: italic;
  color: #2a2a2a;
  line-height: 1.65;
  margin: 0;
  position: relative;
}

/* HR divider */
.singlepostContent hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 3rem 0;
}

/* Images */
.singlepostContent img {
  width: 100%;
  border-radius: 10px;
  margin: 1.5rem 0;
  display: block;
}
.singlepostContent .entry-media {
  display: none;
}

/* Tables */
.singlepostContent table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--font-body);
  font-size: 14.5px;
}
.singlepostContent th {
  text-align: left;
  padding: 11px 16px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.singlepostContent td {
  text-align: left;
  padding: 11px 16px;
  border: 1px solid #ededed;
  color: var(--text-body);
  vertical-align: top;
  line-height: 1.6;
}
.singlepostContent tr:nth-child(even) td {
  background: #fafafa;
}
.singlepostContent td b {
  font-weight: 600;
  color: var(--text-primary);
}
.singlepostContent .tags-links {
  display: none !important;
}
.singlepostContent #ez-toc-container {
  display: none;
}

/* ---------- Fade-in animations on content load ---------- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger headings + paragraphs */
.singlepostContent h2,
.singlepostContent h3,
.singlepostContent p,
.singlepostContent blockquote,
.singlepostContent ul,
.singlepostContent ol {
  opacity: 0;
  animation: fadeSlideUp 0.5s var(--ease-out) forwards;
}
.singlepostContent > * + * {
  animation-delay: 0.05s;
}

/* Use JS class to trigger — see single.php script */
.content-revealed .singlepostContent h2,
.content-revealed .singlepostContent h3,
.content-revealed .singlepostContent p,
.content-revealed .singlepostContent blockquote,
.content-revealed .singlepostContent ul,
.content-revealed .singlepostContent ol {
  opacity: 1;
  animation: none;
}
.content-animated .singlepostContent h2,
.content-animated .singlepostContent h3,
.content-animated .singlepostContent p,
.content-animated .singlepostContent blockquote,
.content-animated .singlepostContent ul,
.content-animated .singlepostContent ol {
  animation: fadeSlideUp 0.5s var(--ease-out) forwards;
  opacity: 0;
}

/* ---------- Author Box ---------- */
.entry-author_area {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f8f8;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.entry-author_area .author-avatar {
  display: none;
}
.entry-author_area .author-info {
  margin-left: 0;
}
.entry-author_area .author-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.entry-author_area .author-bio {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}
.entry-author_area .post__date {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* ---------- Share Bar ---------- */
.post-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 3rem;
  margin-bottom: 2rem;
  background: #fff;
  opacity: 0;
  animation: fadeSlideUp 0.5s var(--ease-out) 0.5s forwards;
}
.post-share-bar .share-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}
.post-share-bar .share-btns {
  display: flex;
  gap: 8px;
}
.post-share-bar .share-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease-out),
    box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.post-share-bar .share-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(85, 99, 245, 0.25); /* ADDED */
}
/* ADDED: press/active state — was missing entirely */
.post-share-bar .share-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}
.post-share-bar .share-btn.copied {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}
.post-share-bar .share-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.post-share-bar .share-btn:hover svg {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
}

/* ============================================
   BLOG LISTING (existing styles preserved)
   ============================================ */
.blogTitlePanel {
  display: flex;
  justify-content: space-between;
  column-gap: 60px;
  align-items: center;
  height: calc(100vh - 157px);
}
.blog-category,
#carouselExampleAutoplaying .carousel-controls {
  display: none;
}
.bg-grey {
  background-color: #eae6df;
}
.blog-highlight {
  border-bottom: 1px solid #898989;
}
.blogpost-items {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
}
.blogpost-items-left {
  width: 36%;
  padding-right: 72px;
  border-right: 1px solid #898989;
  padding-bottom: 40px;
}
.blogpost-items-left h5.entry-title {
  width: 75%;
}
.blogpost-items-right {
  width: 64%;
  padding-left: 72px;
  padding-bottom: 40px;
}
.blogpost-items-right .entry-content:after,
.blogpost-items-right .entry-content:before {
  display: none !important;
}
.blogpost-items-right .entry-content {
  height: 100%;
  padding-bottom: 0 !important;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
.viewMore .roll-link {
  font-size: 20px;
}
.entry-media img {
  border-radius: 12px;
}
.blogpost-items-left .entry-title a {
  font-size: 24px;
  color: #000;
}
.home .blog-posts {
  padding-top: 90px;
}
.blog-posts .blogpost-items {
  border-top: 1px solid #898989;
}
.blog-highlight .post-tags {
  display: none;
}
.post-tags a {
  color: #060100;
}
.blogPhilosophyTitle {
  margin-bottom: 166px;
}
.blogPhilosophy {
  padding: 24px 0 92px 0;
}
.blogPhilosophyContent {
  padding-right: 50px;
}
.blog-category ul {
  display: flex;
  justify-content: center;
  column-gap: 100px;
  padding: 42px 0;
}
.blog-category ul li {
  text-transform: uppercase;
  font-size: 24px;
  line-height: 140%;
}
.no-results.not-found {
  padding: 72px 0;
}
.searchPage .blogpost-items-left,
.searchPage .blogpost-items-right {
  padding-bottom: 0;
}
.blog-highlight .blogpost-items-right {
  padding-bottom: 0;
  height: auto;
}
.blog-highlight .entry-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 0 !important;
}
.blog-highlight .entry-content::after,
.blog-highlight .entry-content::before {
  display: none;
}
.blog-category ul li a,
.blog-category ul li {
  color: rgb(29 29 29 / 70%);
}
body.home .blog-category ul li:first-child a,
body.category-branding .blog-category ul li:nth-child(2) a,
body.category-website .blog-category ul li:nth-child(3) a,
body.category-product .blog-category ul li:nth-child(4) a,
body.category-growth .blog-category ul li:nth-child(5) a {
  color: #1d1d1d;
}
.customFaq .accordion-button {
  padding: 0;
  font-size: 20px;
  font-family: var(--font-h);
  font-weight: 700;
}
.customFaq .accordion-body {
  padding: 0;
  font-size: 16px;
  font-family: var(--font-h);
  font-weight: 400;
}
.customFaq .accordion-button:focus {
  box-shadow: none;
}
.customFaq .accordion-item {
  margin-bottom: 16px;
  border-radius: 0;
  border: none;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(0 0 0 / 30%);
}
.customFaq .accordion-item:last-child {
  margin-bottom: 0;
}
.blogInfos {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgb(137 137 137 / 10%);
  padding: 12px 0;
  margin-bottom: 12px;
}
.blogInfoAuthor {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding-left: 24px;
  margin-left: 24px;
  display: none;
}
span.entry-header__category a,
.blogInfoAuthor a {
  text-transform: capitalize;
  font-size: 16px;
  background: #384cff;
  color: #fff;
  text-decoration: none !important;
  padding: 0 12px;
  height: 28px;
  line-height: 28px;
  display: flex;
  border-radius: 40px;
}
.blogInfoAuthor a {
  background-color: #060100;
  padding-left: 0;
}
.blogInfoAuthor a img {
  height: 24px;
  width: 24px;
  margin: 2px 6px 0 2px;
}
.blogInfosContent {
  margin-bottom: 12px;
  border-bottom: 1px solid rgb(254 90 90 / 10%);
}
.postReadTime {
  font-size: 16px;
}
#carouselExampleAutoplaying .carousel-controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 12px;
  width: 100%;
  display: none !important;
}
#carouselExampleAutoplaying .carousel-indicators {
  bottom: 10px;
  background-color: #000;
  padding: 10px 0;
  margin: 0;
}
#carouselExampleAutoplaying .carousel-indicators button {
  background-color: #fff;
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  opacity: 0.5;
}
#carouselExampleAutoplaying .carousel-indicators .active {
  opacity: 1;
  background-color: #fff;
}
#carouselExampleAutoplaying .entry-media img {
  max-height: 300px;
}
#carouselExampleAutoplaying .carousel-control-next img {
  transform: rotate(180deg);
}
#carouselExampleAutoplaying .carousel-control-next,
#carouselExampleAutoplaying .carousel-control-prev {
  width: 54px;
  height: 54px;
  opacity: 1;
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 991px) {
  .singlepostbanner {
    padding: 0 0 2rem;
  }

  .singlepostbannerarea {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
    min-height: auto;
  }
  .singlepostbannerImg {
    min-height: 230px;
    padding: 1.25rem;
  }
  .singlepostbannerImg:hover .entry-media img {
    transform: none;
  }

  .singlepostbannercontent {
    padding: 1.5rem;
  }

  /* UPDATED: 36px hero scales down to 26px on mobile */
  .singlepostbannertitle h1 {
    font-size: 24px;
  }

  .post__breadcrumb {
    padding: 1.25rem 0 1.75rem;
    flex-direction: row;
    align-items: center;
  }
  .post__breadcrumb nav {
    max-width: 70%;
  }
  .post__breadcrumb .breadcrumb-item.active {
    max-width: 125px;
  }
	
	.entry-author {
    padding: 0 !important;
}

  .tableofcontent {
    position: static !important;
    padding-right: 0;
    display: block !important;
    margin-bottom: 2rem;
  }
  .tableofcontent #ez-toc-container {
    background: #f8f8f8 !important;
    border-radius: 10px !important;
    padding: 1rem 1.25rem !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
  }

  .singlepostblog {
    padding: 0 0 48px;
  }

  /* UPDATED: mobile body stays readable at 16px */
  .singlepostContent p,
  .singlepostContent ul li,
  .singlepostContent ol li {
    font-size: 16px;
  }

  .singlepostContent h2 {
    font-size: 22px;
    margin-top: 2rem;
  }
  .singlepostContent h3 {
    font-size: 17px;
  }
  .singlepostContent blockquote p {
    font-size: 15.5px;
  }
  .singlepostContent hr {
    margin: 2rem 0;
  }

  .post-share-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 1.25rem;
  }
  .post-share-bar .share-btns {
    justify-content: center;
    flex-wrap: wrap;
  }
  .post-share-bar .share-btn:hover {
    transform: none;
    box-shadow: none;
  } /* UPDATED: disable lift on touch */

  /* ADDED: tap feedback for touch devices */
  .post-share-bar .share-btn:active {
    transform: scale(0.96);
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }

  .blogpost-items {
    flex-direction: column;
  }
  .blogpost-items-right {
    width: 100%;
    padding-left: 0;
    padding-bottom: 0;
  }
  .blogpost-items-left {
    width: 100%;
    padding-right: 0;
    border-right: none;
    padding-bottom: 24px;
    height: auto;
    border-bottom: 1px solid rgb(6 1 0 / 50%);
    margin-bottom: 24px;
  }
  .blogpost-items-left h5.entry-title {
    width: 100%;
  }
  .blog-highlight {
    border: none;
  }
  .blogTitlePanel {
    justify-content: space-between;
    align-items: start;
    flex-direction: column-reverse;
    padding: 32px 0;
    min-height: 540px;
    height: auto;
  }
  .customFaq .accordion-button,
  .customFaq .accordion-body {
    font-size: 16px;
  }
  .blogpost-items {
    padding-bottom: 40px;
  }
  .blog-posts,
  .home .blog-posts {
    padding-top: 40px;
  }
  .viewMore .roll-link {
    font-size: 16px;
  }
  .blogPhilosophyTitle h4 {
    font-size: 44px;
  }
  .blogPhilosophyTitle {
    margin-bottom: 16px;
  }
  .blogPhilosophyLogo {
    display: none;
  }
  .blogPhilosophy {
    padding: 10px 0 24px 0;
  }
  .blog-category {
    display: none;
  }
  .blogInfoAuthor {
    margin: 0;
    border: none;
    padding: 0;
  }
  .blogInfos,
  .blogInfoCate {
    gap: 20px;
    align-items: center;
  }
  #carouselExampleAutoplaying .carousel-controls {
    position: static;
    justify-content: center;
    gap: 20px;
  }
  #carouselExampleAutoplaying .carousel-control-next,
  #carouselExampleAutoplaying .carousel-control-prev {
    width: 42px;
    height: 42px;
    opacity: 1;
  }
}
