/* ===== Scope, variables, reset (must not leak into Flatsome) ===== */
.blog-author {
  position: relative;
  isolation: isolate;   /* z-index:-1 of the background stays above the page bg */
  overflow: hidden;
  overflow: clip;       /* clips the background above the section and the 100vw overhang */
  padding-bottom: 64px;
  font-family: "Inter", sans-serif;
  font-style: normal;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

.blog-author a[class] { color: inherit; text-decoration: none; }
.blog-author ul[class],
.blog-author ol[class] { margin: 0; padding: 0; list-style: none; }
.blog-author img,
.blog-author svg { display: block; max-width: 100%; height: auto; }
.blog-author h1,
.blog-author h2,
.blog-author p { margin: 0; text-transform: none; }
.blog-author [hidden] { display: none !important; }

.blog-author button {
  margin: 0;
  padding: 0;
  min-height: 0;
  font: inherit;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
  background: none;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}

.blog-author .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-author .container {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 100%;
}
@media (min-width: 768px)  { .blog-author .container { padding: 0 64px; } }
@media (min-width: 1200px) { .blog-author .container { padding: 0 16px; max-width: 1232px !important; } }

/* ===== Hero background =====
   Child of the card: bottom edge = vertical middle of the card (bottom: 50%),
   upwards = half of the card + 400px; the surplus is clipped by .blog-author.
   Independent of page height, so "Load more" does not stretch it. */
.blog-author .blog-author-hero__bg {
  position: absolute;
  z-index: -1;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  bottom: 50%;
  height: calc(50% + 400px);
  overflow: hidden;
  pointer-events: none;
}

.blog-author .blog-author-hero__bg > * { position: absolute; inset: 0; }

/* layer 1: author avatar */
.blog-author .blog-author-hero__bg-image {
  background-size: cover;
  background-position: center;
  transform: scale(1.2);
}

/* layer 2: blur */
.blog-author .blog-author-hero__bg-blur {
  -webkit-backdrop-filter: blur(60px);
  backdrop-filter: blur(60px);
  background: var(--hero-blur-tint);
}

/* layer 3: fade into the page background */
.blog-author .blog-author-hero__bg-gradient {
  background: 	linear-gradient(180deg, transparent 0%, var(--background-gray-to-black1) 100%);
}

/* ===== Breadcrumbs ===== */
.blog-author .blog-author__inner { padding-top: 16px; }
@media (min-width: 768px) { .blog-author .blog-author__inner { padding-top: 24px; } }

.blog-author .blog-breadcrumbs {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}
.blog-author .blog-breadcrumbs .breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-author .blog-breadcrumbs .breadcrumbs__list a { color: var(--text-main); }
.blog-author .blog-breadcrumbs .breadcrumbs__list span { color: var(--text-tetriary); }

/* ===== Author card ===== */
.blog-author .blog-author-hero__card {
  position: relative;
  margin-top: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 96px 16px 16px;   /* 128px avatar: 64px (half) + 32px gap to the title */
  background: var(--background-white-to-black2);
  border-radius: var(--ContentBox-border-radius);
  color: var(--text-main);
}

@media (min-width: 768px) {
  .blog-author .blog-author-hero__card {
    padding-top: 132px;      /* 200px avatar: 100px (half) + 32px gap to the title */
    border-radius: 32px;
    margin-top: 164px;
    padding-bottom: 32px;
  }
}

.blog-author .blog-author-hero__card-wrapper-image {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  outline: 8px solid var(--background-white-to-black2);
  box-shadow: 0 2px 24px 2px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .blog-author .blog-author-hero__card-wrapper-image {
    width: 200px;
    height: 200px;
  }
}
.blog-author .blog-author-hero__card-wrapper-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-author .blog-author-hero__card-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.blog-author .blog-author-hero__card-text {
  text-align: center;
  font-size: 17px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.12px;
}

@media (min-width: 1200px) {
  .blog-author .blog-author-hero__card-text { max-width: 768px; }

 
  .blog-author .blog-author-hero__card-text:not(.is-expanded) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
  }
}


.blog-author .blog-author-hero__bio-toggle {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: var(--text-accent, #FD731A);   
  text-decoration: underline;
  cursor: pointer;
}
.blog-author .blog-author-hero__bio-toggle[hidden] { display: none; }
.blog-author .blog-author-hero__bio-toggle:focus-visible {
  outline: 2px solid var(--text-tetriary);
  outline-offset: 2px;
}



.blog-author .blog-author-hero__socials {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 0 8px;
}
.blog-author a.blog-author-hero__social {
  display: flex;
  color: #ACAEB4;
  transition: color 0.3s ease-in-out;
}
.blog-author a.blog-author-hero__social svg { width: 24px; height: 24px; }

.blog-author a.blog-author-hero__social--facebook:is(:hover, :focus-visible)  { color: #1877F2; }
.blog-author a.blog-author-hero__social--instagram:is(:hover, :focus-visible) { color: #E1306C; }
.blog-author a.blog-author-hero__social--x:is(:hover, :focus-visible)         { color: var(--text-main); }
.blog-author a.blog-author-hero__social--linkedin:is(:hover, :focus-visible)  { color: #0A66C2; }
.blog-author a.blog-author-hero__social--youtube:is(:hover, :focus-visible)   { color: #FF0000; }



/* ===== Recent articles ===== */
.blog-author .recent { margin-top: 48px; }
@media (min-width: 768px) {
  .blog-author .recent { margin-top: 64px; }
}

.blog-author .recent__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: var(--text-main);
}
@media (min-width: 768px) {
  .blog-author .recent__title {
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.5px;
  }
}

.blog-author .recent__categories {
  margin-top: 20px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.blog-author .recent__categories::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .blog-author .recent__categories { margin-top: 32px; overflow: visible; }
}

.blog-author .recent__category {
  flex-shrink: 0;
  overflow: hidden;
  padding: 11px 20px;
  text-align: center;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--segmentedTabs-button-text-default);
  background: transparent;
  border-radius: 20px;
  transition: background 0.3s ease-in-out;
}
.blog-author .recent__category:hover { background: var(--hover-overlay); }
.blog-author .recent__category--active,
.blog-author .recent__category--active:hover {
  background: var(--segmentedTabs-button-fill-active);
  color: var(--text-main);
}

.blog-author .recent-grid {
  margin-top: 16px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .blog-author .recent-grid {
    margin-top: 24px;
    margin-bottom: 40px;
    grid-template-columns: repeat(2, minmax(310px, 1fr));
    gap: 20px;
  }
}
@media (min-width: 1200px) {
  .blog-author .recent-grid {
    margin-bottom: 40px;
    grid-template-columns: repeat(4, minmax(285px, 1fr));
  }
}

.blog-author .recent__empty {
  margin: 24px 0;
  text-align: center;
  color: var(--text-tetriary);
}

.blog-author .recent__view-all {
  width: fit-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: var(--button-secondary-text-default);
  background: var(--button-secondary-fill-default);
  border-radius: 20px;
}
.blog-author .recent__view-all[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
@media (min-width: 1200px) {
  .blog-author .recent__view-all { width: fit-content; }
}
.blog-author .recent__view-all:focus { outline: none; }
.blog-author .recent__view-all:focus-visible {
  outline: 2px solid var(--text-tetriary);
  outline-offset: 2px;
}



