/* ═══════════════════════════════════════
   Blog
   ═══════════════════════════════════════ */

.blog-post-header {
	background: linear-gradient(135deg, var(--sky-primary-light) 0%, #fff 50%, var(--sun-secondary-light) 100%);
	padding: 64px 0;
	border-bottom: 1px solid var(--slate-100);
}

@media (min-width: 1024px) { .blog-post-header { padding: 96px 0; } }

.blog-post-header h1 {
	font-family: var(--font-display);
	font-size: 2.25rem;
	font-weight: 600;
	color: var(--slate-800);
	margin: 0;
}

@media (min-width: 1024px) { .blog-post-header h1 { font-size: 3rem; } }

.blog-meta {
	font-size: 0.75rem;
	color: var(--slate-400);
	margin-top: 8px;
}

.blog-cat-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 9999px;
	background: var(--sky-primary-light);
	color: var(--sky-primary-dark);
	font-size: 0.5625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

@media (min-width: 640px) { .blog-cat-badge { font-size: 0.625rem; } }

/* ═══════════════════════════════════════
   Blog Archive & Single
   ═══════════════════════════════════════ */

.blog-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 32px;
}

.blog-tab {
	display: inline-flex;
	align-items: center;
	padding: 7px 18px;
	border-radius: 9999px;
	background: #fff;
	border: 1.5px solid var(--slate-200);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--slate-600);
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
	line-height: 1.4;
}

.blog-tab:hover {
	border-color: var(--sky-primary);
	color: var(--sky-primary-dark);
	background: var(--sky-primary-light);
}

.blog-tab.is-active {
	background: var(--sky-primary);
	border-color: var(--sky-primary);
	color: #fff;
}

.blog-tab:focus-visible {
	outline: 2px solid var(--sky-primary);
	outline-offset: 2px;
}

.blog-tabs ~ .blog-grid .blog-full-card.is-hidden {
	display: none;
}

.blog-grid {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }

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

.blog-full-card {
	background: #fff;
	border: 1px solid var(--slate-100);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	transition: all 0.3s;
	text-decoration: none;
	color: inherit;
	display: block;
}

.blog-full-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	opacity: 1;
}

.blog-full-card__img {
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
}

.blog-full-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.blog-full-card:hover .blog-full-card__img img { transform: scale(1.05); }

.blog-full-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.95);
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--sky-primary-dark);
}

.blog-full-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
}

.blog-full-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--slate-400);
	margin-bottom: 12px;
}

.blog-full-card h3 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--slate-800);
	line-height: 1.2;
	margin: 0;
}

.blog-full-card:hover h3 { color: var(--sky-primary-dark); }

.blog-full-card p {
	font-size: 0.875rem;
	color: var(--slate-600);
	margin: 8px 0 0;
	line-height: 1.6;
	flex: 1;
}

.blog-full-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--slate-100);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--sky-primary-dark);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: gap 0.3s;
}

.blog-full-card:hover .blog-full-card__link { gap: 10px; }

.blog-full-card__link svg { transition: transform 0.3s; }

.blog-full-card:hover .blog-full-card__link svg { transform: translateX(2px); }

.blog-article {
	margin: 0 auto;
	padding: 0 16px 32px;
	max-width: 720px;
}

@media (min-width: 1024px) { .blog-article { padding: 0 0 56px; } }

.blog-article__featured {
	margin: 0 auto 32px;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0,155,219,0.10), 0 4px 12px rgba(15,23,42,0.06);
	aspect-ratio: 1 / 1;
	background: var(--soft-gray);
	max-width: 100%;
}

.blog-article__featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Author card */
.blog-author-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 24px;
	background: linear-gradient(135deg, var(--sky-primary-light) 0%, #fff 50%, var(--sun-secondary-light) 100%);
	border-radius: 20px;
	border: 1px solid rgba(0,155,219,0.10);
	margin: 0 auto 40px;
	max-width: 100%;
	box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}

.blog-author-card__primary {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

.blog-author-card__avatar-col {
	flex-shrink: 0;
}

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

.blog-author-card__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
	flex: 1;
	min-width: 0;
}

.blog-author-card__name {
	font-weight: 700;
	font-size: 1rem;
	color: var(--slate-800);
	font-family: var(--font-display);
}

.blog-author-card__role {
	font-size: 0.8125rem;
	color: var(--slate-500);
}

.blog-author-card__meta {
	width: 100%;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: var(--slate-500);
	font-weight: 500;
}

.blog-author-card__dot { color: var(--slate-300); }

@media (min-width: 640px) {
	.blog-author-card {
		flex-direction: row;
		align-items: center;
	}
	.blog-author-card__primary {
		gap: 12px;
	}
	.blog-author-card__info {
		text-align: left;
	}
	.blog-author-card__meta {
		width: auto;
		justify-content: flex-end;
		margin-left: auto;
	}
}


/* Content body */
.blog-body {
	font-size: 1rem;
	color: var(--slate-700);
	line-height: 1.8;
	max-width: 720px;
	margin: 0 auto;
	padding: 0 4px;
}

.blog-body p {
	margin-bottom: 24px;
	font-size: 1.0625rem;
	line-height: 1.85;
	color: var(--slate-700);
}

.blog-body h2,
.blog-body h3,
.blog-body h4 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--sky-primary-dark);
	margin-top: 56px;
	margin-bottom: 20px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	scroll-margin-top: 80px;
}

.blog-body h2 {
	font-size: 1.625rem;
	padding-bottom: 14px;
	padding-left: 0;
	border-bottom: 3px solid transparent;
	border-image: linear-gradient(90deg, var(--sky-primary) 0%, #fff 50%, var(--sun-secondary) 100%) 1;
	position: relative;
}

.blog-body h2::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sun-secondary);
	margin-right: 12px;
	vertical-align: middle;
	transform: translateY(-1px);
}

.blog-body h3 {
	font-size: 1.375rem;
	color: var(--sky-primary-dark);
	padding-left: 16px;
	border-left: 4px solid var(--sky-primary);
}

.blog-body h4 {
	font-size: 1.125rem;
	color: var(--slate-800);
}

.blog-body p:first-of-type {
	font-size: 1.1875rem;
	color: var(--slate-700);
	line-height: 1.85;
	font-weight: 400;
}

.blog-body p:first-of-type::first-letter {
	font-family: var(--font-display);
	font-size: 3.25rem;
	font-weight: 700;
	color: var(--sky-primary);
	float: left;
	line-height: 0.9;
	margin: 6px 10px 0 0;
	padding-top: 4px;
}

@media (min-width: 768px) {
	.blog-body p:first-of-type::first-letter {
		font-size: 4rem;
		margin: 8px 12px 0 0;
	}
}

.blog-body ul,
.blog-body ol {
	margin: 8px 0 32px;
	padding-left: 0;
	list-style: none;
}

.blog-body ul li {
	padding: 16px 20px 16px 56px;
	position: relative;
	margin-bottom: 14px;
	background: var(--sky-primary-light);
	border-radius: 14px;
	border: 1px solid rgba(0,155,219,0.08);
	line-height: 1.65;
	font-size: 1rem;
	color: var(--slate-700);
}

.blog-body ul li::before {
	content: "✓";
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--sky-primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.blog-body ol {
	counter-reset: blog-ol;
}

.blog-body ol li {
	padding: 14px 18px 14px 56px;
	position: relative;
	margin-bottom: 12px;
	background: var(--sun-secondary-light);
	border-radius: 14px;
	border: 1px solid rgba(237,207,86,0.20);
	line-height: 1.7;
	font-size: 1rem;
	color: var(--slate-700);
	counter-increment: blog-ol;
}

.blog-body ol li::before {
	content: counter(blog-ol);
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--sun-secondary);
	color: var(--slate-800);
	font-size: 0.875rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-family: var(--font-display);
}

.blog-body li strong { color: var(--sky-primary-dark); }

.blog-body blockquote {
	margin: 40px 0;
	padding: 24px 28px;
	background: var(--sun-secondary-light);
	border-radius: 16px;
	font-family: var(--font-display);
	font-size: 1.0625rem;
	color: var(--slate-800);
	font-style: italic;
	line-height: 1.7;
	position: relative;
	border-left: 5px solid var(--sun-secondary);
}

.blog-body blockquote::before {
	content: "“";
	position: absolute;
	top: -8px;
	left: 16px;
	font-size: 3rem;
	color: var(--sun-secondary);
	font-family: var(--font-display);
	line-height: 1;
	opacity: 0.4;
}

.blog-body img {
	border-radius: 16px;
	margin: 32px auto;
	box-shadow: 0 6px 24px rgba(15,23,42,0.08);
	display: block;
	max-width: 100%;
	height: auto;
}

.blog-body figcaption {
	font-size: 0.8125rem;
	color: var(--slate-500);
	text-align: center;
	margin-top: -16px;
	margin-bottom: 32px;
	font-style: italic;
}

.blog-body hr {
	margin: 48px auto;
	border: none;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, var(--sky-primary-light) 50%, transparent 100%);
	max-width: 200px;
}

.blog-body em {
	font-style: italic;
	color: var(--slate-600);
}

.blog-body strong {
	font-weight: 700;
	color: var(--slate-800);
}

/* FAQ Accordion */
.faq-accordion {
	margin: 32px 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.faq-item {
	background: #fff;
	border-radius: 16px;
	border: 1px solid rgba(0,155,219,0.10);
	overflow: hidden;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.faq-item[open] {
	box-shadow: 0 8px 24px rgba(0,155,219,0.08);
	border-color: rgba(0,155,219,0.20);
}

.faq-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--sky-primary-dark);
	background: linear-gradient(135deg, var(--sky-primary-light) 0%, #fff 50%, var(--sun-secondary-light) 100%);
	transition: background 0.2s;
}

.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::marker { display: none; content: ''; }

.faq-summary > h3 {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	background-image: none !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	color: inherit !important;
	line-height: 1.35 !important;
	letter-spacing: -0.01em !important;
	flex: 1;
}

.faq-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--sky-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s, background 0.25s;
	position: relative;
}

.faq-icon::before {
	content: "";
	width: 9px;
	height: 9px;
	border-right: 2.5px solid #fff;
	border-bottom: 2.5px solid #fff;
	transform: rotate(-45deg) translate(-1px, -1px);
	transition: transform 0.25s;
	display: block;
}

.faq-item[open] .faq-icon {
	background: var(--sun-secondary);
}

.faq-item[open] .faq-icon::before {
	border-right-color: var(--slate-800);
	border-bottom-color: var(--slate-800);
	transform: rotate(45deg) translate(-1px, -1px);
}

.faq-item:hover .faq-summary { background: linear-gradient(135deg, rgba(0,155,219,0.15) 0%, #fff 50%, rgba(237,207,86,0.25) 100%); }

.faq-body {
	padding: 8px 22px 22px;
	color: var(--slate-700);
	font-size: 1rem;
	line-height: 1.75;
}

.faq-body > p { margin: 0 0 12px; }
.faq-body > p:last-child { margin-bottom: 0; }

.blog-body a {
	color: var(--sky-primary-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.blog-body a:hover { color: var(--sky-primary); }

.blog-body .wp-block-image { margin: 32px 0; }
.blog-body .aligncenter { text-align: center; }
.blog-body .alignleft { float: left; margin: 8px 24px 16px 0; }
.blog-body .alignright { float: right; margin: 8px 0 16px 24px; }

@media (min-width: 768px) {
	.blog-body { font-size: 1.0625rem; }
}

/* Tags */
.blog-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 32px;
	border-top: 1px solid var(--slate-100);
	margin: 48px auto 0;
	max-width: 720px;
}

.blog-tags__item {
	display: inline-flex;
	padding: 6px 14px;
	background: var(--soft-gray);
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--slate-600);
	text-decoration: none;
	transition: all 0.2s;
}

.blog-tags__item:hover {
	background: var(--sky-primary-light);
	color: var(--sky-primary-dark);
	opacity: 1;
}

/* CTA */
.blog-cta {
	text-align: center;
	padding: 40px 32px;
	margin: 48px auto 0;
	max-width: 720px;
	background: linear-gradient(135deg, var(--sky-primary-light) 0%, #fff 50%, var(--sun-secondary-light) 100%);
	border-radius: 24px;
	border: 1px solid var(--slate-100);
}

.blog-cta__icon {
	font-size: 2.5rem;
	margin-bottom: 12px;
	line-height: 1;
}

.blog-cta__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--slate-800);
	margin: 0 0 8px;
}

.blog-cta__text {
	font-size: 0.875rem;
	color: var(--slate-600);
	max-width: 480px;
	margin: 0 auto 24px;
	line-height: 1.6;
}

.blog-cta .btn--primary {
	font-size: 0.9375rem;
	padding: 14px 32px;
}

/* Related posts header */
.blog-related-header {
	text-align: center;
	margin-bottom: 40px;
}

.blog-related-header .section-eyebrow {
	justify-content: center;
}

.blog-related-title {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--slate-800);
	margin: 8px 0 0;
}

.blog-related-subtitle {
	font-size: 0.9375rem;
	color: var(--slate-500);
	margin: 8px auto 0;
	max-width: 480px;
}

/* Spacing between breadcrumbs and the article's featured image */
.section--white:has(.blog-article) { padding-top: 0; }
@media (min-width: 768px) { .section--white:has(.blog-article) { padding-top: 0; } }

/* ═══════════════════════════════════════
   Article Meta
   ═══════════════════════════════════════ */

.blog-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 0.75rem;
	color: var(--slate-500);
	font-weight: 500;
}

/* ═══════════════════════════════════════
   Table of Contents
   ═══════════════════════════════════════ */

.blog-toc {
	background: #fff;
	border: 1px solid rgba(0,155,219,0.10);
	border-radius: 16px;
	padding: 20px 22px;
	margin-bottom: 24px;
	box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}

/* Desktop: show TOC in sidebar. Mobile: hide it */
@media (max-width: 1023px) {
	.blog-toc--desktop { display: none; }
}

/* Mobile: show TOC below breadcrumbs. Desktop: hide it. */
.blog-toc--mobile { display: none; }
@media (max-width: 1023px) {
	.blog-toc--mobile {
		display: block;
		margin: 0 0 24px;
		padding: 18px 20px;
		border-radius: 12px;
	}
	.blog-toc--mobile h3 { font-size: 0.6875rem; }
	.blog-toc--mobile .blog-toc__nav { max-height: none; }
	.blog-toc--mobile .blog-toc__link { font-size: 0.8125rem; padding: 8px 0 8px 12px; }
}

.blog-toc h3 {
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--sky-primary-dark);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 12px;
}

.blog-toc__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 320px;
	overflow-y: auto;
}

.blog-toc__link {
	font-size: 0.8125rem;
	color: var(--slate-500);
	text-decoration: none;
	padding: 6px 0 6px 12px;
	border-left: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
	line-height: 1.45;
}

.blog-toc__link:hover { color: var(--sky-primary-dark); }

.blog-toc__link--active {
	color: var(--sky-primary-dark);
	font-weight: 600;
	border-left-color: var(--sky-primary);
}

/* ═══════════════════════════════════════
   Share Buttons (sidebar)
   ═══════════════════════════════════════ */

.tp-aside__share h3 {
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--sky-primary-dark);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 14px;
}

.share-buttons {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

@media (max-width: 380px) {
	.share-buttons { grid-template-columns: repeat(2, 1fr); }
}

.share-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 10px 4px;
	border: 1px solid var(--slate-100);
	border-radius: 12px;
	background: #fff;
	color: var(--slate-600);
	font-size: 0.6875rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s;
	min-height: 60px;
}

.share-btn:hover {
	border-color: var(--sky-primary);
	color: var(--sky-primary-dark);
	background: var(--sky-primary-light);
	transform: translateY(-1px);
}

.share-btn--copy { font-family: inherit; }

.share-btn--x:hover { color: #000; }
.share-btn--facebook:hover { color: #1877f2; }
.share-btn--whatsapp:hover { color: #25d366; }

.share-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--slate-800);
	color: #fff;
	padding: 10px 20px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 9999;
	box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.share-toast--visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════
   Tags
   ═══════════════════════════════════════ */

.blog-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 32px;
	border-top: 1px solid var(--slate-100);
	margin: 48px auto 0;
	max-width: 720px;
}

.blog-tags__item {
	display: inline-flex;
	padding: 6px 14px;
	background: var(--soft-gray);
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--slate-600);
	text-decoration: none;
	transition: all 0.2s;
}

.blog-tags__item:hover {
	background: var(--sky-primary-light);
	color: var(--sky-primary-dark);
	opacity: 1;
}

