/* === Blog Styles (don't affect the Home) === */
.blog .blog-article {
  max-width: 980px;
}

/* Breadcrumb Style */
.blog-breadcrumb {
  font-family: Roboto, sans-serif;
  font-size: 0.95rem;
  opacity: 0.85;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}


/* === Article Header Style === */
.blog-post-header {
  margin-bottom: 18px;
}

.blog-kicker {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--color-brand-orange);
}

.blog-title {
  margin: 0 0 10px;
}

.blog-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--muted-text);
  margin-top: .5rem;
  margin-bottom: 1rem;
}

/* Metadata Style */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0.85;
  margin-bottom: 14px;
  color: var(--muted-text);
}

.blog-meta-right{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Share Buttons Style */
.blog-share {
  display: flex;
  align-items:center;
  gap: 14px;
  padding:10px 12px;
  border-radius:14px;
  margin: 10px 0 18px;
}

.share-button{
  width:46px;
  height:46px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--page-text);
  text-decoration:none;
  -webkit-user-select:none;
  user-select:none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform .12s ease, filter .12s ease;
}

.share-button:hover{ transform: translateY(-1px) scale(1.03); }
.share-button:active{ transform: scale(.98); }
.share-button:focus-visible{
  outline: 3px solid rgba(255, 115, 14, .55);
  outline-offset: 3px;
}

.share-icon{
  width:22px;
  height:22px;
}

/* Circle colors */
.share-button--facebook{ background:#3b5998; }
.share-button--twitter{  background:#1da1f2; }
.share-button--linkedin{ background:#0077b5; }
.share-button--whatsapp{ background:#25d366; }

/* === Hero Image Style === */
.blog-hero img {
  width: 100%;
  border-radius: 18px;
}

/* === Media (images/videos) inside article === */
.case-media {
  margin: 1.5rem 0;
}

.case-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

.case-media figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted-text);
  text-align: center;
}

html[data-theme="light"] .case-media .media-shadow {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}


/* === Table of Contents Style === */
.blog-toc {
  border-radius: 16px;
  padding: 16px;
  margin: 18px 0 26px;
  border: 1px solid rgba(255, 115, 14, 0.35);
  border-left: 6px solid var(--color-brand-orange);
  background: var(--page-bg);
  color: var(--page-text);
  text-decoration: none;
  transition: color var(--transition-default), text-decoration-color var(--transition-default);
  text-underline-offset: 3px;
}

.blog-toc a:hover,
.blog-toc a:focus-visible {
  color: var(--color-brand-orange);
  text-decoration: underline;
  text-decoration-color: rgba(255, 115, 14, 0.6);
}

.blog-toc-title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-toc ol {
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.blog-toc li {
  margin: 8px 0;
}


/* ===  Article Body Style === */
.blog-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.blog-content h2 {
  margin: 2rem 0 0.5rem;
}

.blog-content h3 {
  margin: 1rem 0 0.5rem;
}

.blog-content p {
  margin: 0 0 1rem;
}

.blog-content blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--color-brand-orange);
  border-bottom: 2px solid var(--color-brand-orange); 
  background: var(--surface-1);                   
  color: var(--page-text);
  font-style: italic;
  border-radius: 8px;
}

.blog-content blockquote p {
  margin: 0;
}


/* ==== Better emphasis (strong/b) === */

/* LIGHT */
html[data-theme="light"]{
  --blog-strong-weight: 500;
}

/* DARK */
html[data-theme="dark"]{
  --blog-strong-weight: 500;
}

/* Apply to article content */
.blog-content strong,
.blog-content b{
  font-weight: var(--blog-strong-weight);
  color: var(--blog-strong-color);
}

/* Bold inside emphasis: keeps some weight */
.blog-content em strong,
.blog-content i strong{
  font-weight: 500;
}

/* Links with bold inside: keeps link color */
.blog-content a strong,
.blog-content a b{
  color: inherit;
  text-decoration-color: rgba(255, 115, 14, 0.55);
}

/* External Links Style */
.blog-content .external-link {
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.blog-content .external-link::after {
    content: "";  
    position: absolute;
    left: 0;
    bottom: -0.20rem;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-brand-orange), var(--color-brand-blue));
    transition: height 0.32s ease;
}

.blog-content .external-link:hover::after {
    animation: slideUnderline 0.32s ease forwards;
    height: 2px;
}

@keyframes slideUnderline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}


/* ===  Call to Action Style === */
.blog-cta {
  margin: 24px auto 0;
  max-width: 760px;
  border-radius: 16px;
  padding: clamp(14px, 2vw, 18px);
  text-align: center;
}

.blog-cta-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.blog-cta-actions .button-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: clamp(0.95rem, 1.6vw, 1rem);
  font-weight: 600;
  line-height: 1;
  min-height: 42px;
  text-decoration: none;
  white-space: nowrap;
}


/* Feedback Section Style */
.blog-feedback{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.blog-feedback-label{
  font-weight: 500;
}

.blog-feedback-actions{
  display: inline-flex;
  gap: 10px;
}

.feedback-button{
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--ui-border);
  background: var(--surface-1);
  color: var(--page-text);
  cursor: pointer;
  font-weight: 600;
}

.feedback-button:hover,
.feedback-button:focus-visible{
  border-color: var(--color-brand-orange);
}

.feedback-button.is-selected{
  border-color: var(--color-brand-orange);
  color: var(--color-brand-orange);
}

.blog-feedback-msg{
  font-size: 0.95rem;
  opacity: 0.85;
}


/* === Related Articles: grid like index === */
.blog-related{
  margin-top: 32px;
}

.blog-related .related-title{
  margin: 0 0 16px 0;
}

/* grid */
.blog-related .related-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* responsive grid */
@media (max-width: 980px){
  .blog-related .related-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .blog-related .related-grid{ grid-template-columns: 1fr; }
}


/* Mobile */
@media (max-width: 520px){
  .share-button{ width:42px; height:42px; }
  .share-icon{ width:20px; height:20px; }
  .blog-cta-actions .button-secondary{ width: 100%; }
  .blog-feedback{ justify-content: flex-start; }
}

/* Centered image + rounded corners */
.blog-related .post-card-media{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-related .post-card-image{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

