/* Blog Author Box & Author Page
   Components: components/blog-author-box.twig, single-blog_author.twig */

/* Shared: social icon buttons (square, brand colored) */
.blog-author-box__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-author-box__social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-author-box__social-link:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  color: #fff;
}

/* Screen-reader-only text label */
.blog-author-box__social-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Keep icons white on the brand-colored buttons (overrides .blog-details ul li a green) */
.blog-author-box__social-link svg {
  fill: #fff;
}

.blog-author-box__social-link.social-linkedin { background: #0a66c2; }
.blog-author-box__social-link.social-quora    { background: #b92b27; }
.blog-author-box__social-link.social-medium   { background: #12100e; }

/* Article author box (components/blog-author-box.twig) */
.blog-author-box {
  margin: 10px 0 40px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid #07a752;
  border-radius: 16px;
}

.blog-author-box__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.blog-author-box__avatar {
  flex: 0 0 auto;
}

.blog-author-box__avatar-link {
  display: block;
  line-height: 0;
}

.blog-author-box__img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-author-box__content {
  flex: 1 1 auto;
  min-width: 0;
}

.blog-author-box__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a93a2;
  font-weight: 600;
  margin-bottom: 2px;
}

.blog-author-box__name {
  font-size: 22px;
  font-weight: 700;
  color: #1d3a6f;
  margin: 0 0 2px;
}

.blog-author-box__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-author-box__name a:hover {
  color: #0a66c2;
}

.blog-author-box__designation {
  display: inline-block;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 10px;
}

.blog-author-box__about {
  font-size: 15px;
  line-height: 24px;
  color: #4b5563;
  margin: 0 0 14px;
}

.blog-author-box__about p:last-child {
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .blog-author-box__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .blog-author-box__social {
    justify-content: center;
  }
}

/* Public Blog Author page (single-blog_author.twig) */
.blog-author-details .container {
  max-width: 1600px;
}

.blog-author-details {
  padding-top: 40px;
}

.blog-author-page {
  background: #fff;
  border: 1px solid #07a752;
  border-radius: 16px;
  padding: 36px 30px;
  margin: 0 auto 40px;
  max-width: 880px;
  text-align: center;
}

.blog-author-page__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid #eef2f8;
}

.blog-author-page__avatar {
  flex: 0 0 auto;
}

.blog-author-page__img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f2f6fd;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.blog-author-page__meta {
  text-align: center;
}

.blog-author-page__name {
  font-size: 30px;
  font-weight: 700;
  color: #1d3a6f;
  margin: 0 0 4px;
  line-height: 1.2;
}

.blog-author-page__designation {
  display: block;
  font-size: 16px;
  color: #6b7280;
  font-weight: 500;
}

.blog-author-page__social {
  flex: 0 0 auto;
}

.blog-author-page__about {
  font-size: 16px;
  line-height: 27px;
  color: #4b5563;
  margin: 0 auto;
  max-width: 640px;
  text-align: center;
}

.blog-author-page__about p {
  margin: 0 0 16px;
}

.blog-author-page__about p:last-child {
  margin-bottom: 0;
}

.blog-author-page__articles-title {
  font-size: 24px;
  font-weight: 700;
  color: #1d3a6f;
  margin-bottom: 22px;
  text-align: center;
}

.blog-author-page__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.blog-author-page__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #07a752;
  border: 1px solid #07a752;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.blog-author-page__btn:hover {
  background: #059445;
  color: #fff;
  transform: translateY(-2px);
}

.blog-author-page__btn--secondary {
  background: #fff;
  color: #1d3a6f;
  border-color: #dbe7f7;
}

.blog-author-page__btn--secondary:hover {
  background: #f2f6fd;
  color: #1d3a6f;
}

.blog-author-page__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 992px) {
  .blog-author-page__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .blog-author-page__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.blog-author-page__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6edf6;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-author-page__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(16, 42, 84, 0.1);
  border-color: #c9dcf5;
}

.blog-author-page__card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f2f6fd;
  line-height: 0;
}

.blog-author-page__card-media picture,
.blog-author-page__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-author-page__card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
  text-align: center;
}

.blog-author-page__card-date {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a93a2;
  font-weight: 600;
  margin: 0 0 6px;
}

.blog-author-page__card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #1d3a6f;
  margin: 0 0 14px;
}

.blog-author-page__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-author-page__card-title a:hover {
  color: #0a66c2;
}

.blog-author-page__card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eef2f8;
}

.blog-author-page__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0a66c2;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.blog-author-page__card-link:hover {
  color: #1d3a6f;
  gap: 10px;
}



@media (max-width: 767px) {
  .blog-author-page {
    padding: 28px 24px;
  }

  .blog-author-page__header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .blog-author-page__social {
    margin-left: 0;
  }
}

@media (max-width: 575px) {
  .blog-author-page__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .blog-author-page__social {
    margin-left: 0;
    justify-content: center;
  }

  .blog-author-page__name {
    font-size: 26px;
  }

  .blog-author-page__grid {
    grid-template-columns: 1fr;
  }
}

/* Inline blog author (blog listing cards + near article title) */
.blog-author-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #343a42;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.blog-author-inline__avatar {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.blog-author-inline:hover {
  color: #07a752;
}

.meta-sep {
  color: #c3c9cf;
  font-weight: 600;
}
