/* Single Post Styles */
main.single-post {
	margin-top: 80px !important;
}

.post-template-default .loop {
	gap: 0 !important;
	max-width: calc(100% - 358px - 48px) !important;
	padding: 0.75rem !important;
}

/* Featured Image Hero Section */
.single-post-hero {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	margin-bottom: var(--wp--preset--spacing--32);
	align-items: flex-end !important;
	justify-content: flex-start !important;
	width: 100% !important;
}

.single-post-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	padding: var(--wp--preset--spacing--48) var(--wp--preset--spacing--32);
}

.single-post-hero .featured-image {
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: 16px;
}

/* Title Overlay */
.single-post-title {
	color: var(--wp--preset--color--gray-light);
	font-size: var(--wp--preset--font-size--2xl) !important;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: var(--wp--preset--spacing--24);
	max-width: 60% !important;
	margin-left: 0 !important;
}

/* Breadcrumb Styles */
.single-post-breadcrumb {
	padding: 0 !important;
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin-left: 0 !important;
}

.yoast-breadcrumbs {
	margin-left: 0 !important;
	font-size: var(--wp--preset--font-size--small) !important;
}

/* Fallback styles for manual breadcrumbs */
.single-post-breadcrumb a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.single-post-breadcrumb a:hover {
	text-decoration: underline;
}

.single-post-breadcrumb .separator {
	color: var(--wp--preset--color--gray-dark);
	margin: 0 var(--wp--preset--spacing--8);
}

/* Author and Date Meta */
.single-post-meta {
	padding: 0 !important;
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin-left: 0 !important;
}

.single-post-author {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--gray-dark);
}

.wp-block-post-author__name {
	font-size: var(--wp--preset--font-size--small) !important;
}

.single-post-author a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.single-post-author a:hover {
	text-decoration: underline;
}

.single-post-date {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--dimgray-solid);
	font-weight: 400;
}

.single-post-date::before {
	content: "•";
	margin-right: var(--wp--preset--spacing--8);
	color: var(--wp--preset--color--primary);
}

/* Content Area */
.single-post-content {
	margin-top: var(--wp--preset--spacing--48);
	line-height: 1.7;
	width: 100%;
	max-width: 100%;
}

.single-post-content p img,
.single-post-content div img {
	max-width: 100%;
	height: auto;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
	margin-top: var(--wp--preset--spacing--32);
	margin-bottom: var(--wp--preset--spacing--16);
}

.single-post-content p {
	margin-bottom: var(--wp--preset--spacing--20);
}

.post-template-default .loop .wp-block-image img {
	width: 100% !important;
	height: auto !important;
	border-radius: 16px !important;
}

.post-template-default .loop .kb-gallery-image-contain img {
	border-radius: 16px !important;
}

.post-template-default .loop .single-post-hero img {
	height: 100% !important;
}

.post-template-default .loop iframe {
	max-width: 100% !important;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
	.post-template-default .loop {
		max-width: 100% !important;
	}

	.single-post-hero {
		margin-bottom: var(--wp--preset--spacing--24);
	}

	.single-post-hero .featured-image {
		height: 250px;
	}

	.single-post-title {
		font-size: var(--wp--preset--font-size--2xl);
		max-width: 100% !important;
	}

	.single-post-hero .wp-block-cover__inner-container {
		padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--16);
	}

	.single-post-meta {
		align-items: flex-start;
	}

	.single-post-content {
		margin-top: var(--wp--preset--spacing--32);
		max-width: 100% !important;
	}

	main.single-post {
		margin-top: 10px !important;
	}
}

/* Author Box Styles */
.box-author .vector-icon.vector-icon {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 232.8px !important;
    height: 210.8px !important;
	object-fit: contain;
}

.box-author .image-icon.image-icon {
	position: absolute !important;
    top: 16.62px !important;
    left: 25.64px !important;
	border-radius: 100% !important;
	width: 188px !important;
	height: 188px !important;
	object-fit: cover !important;
}

.box-author .vector-parent.vector-parent {
	width: 265.8px !important;
	position: relative !important;
	height: 257.8px !important;
}

.box-author .img-author.img-author {
	width: 197px !important;
	height: 210px !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.box-author .sara-rodrguez.sara-rodrguez {
	position: relative !important;
	line-height: 20px !important;
}

.box-author .subtract-icon.subtract-icon.subtract-icon {
	width: 32px !important;
	position: relative !important;
	max-height: 100% !important;
}

.box-author .subtract-icon1.subtract-icon1.subtract-icon1 {
	width: 31.8px !important;
	position: relative !important;
	max-height: 100% !important;
}

.box-author .subtract-parent.subtract-parent {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 1.5rem;
	width: auto;
}

.box-author .author-title.author-title {
	align-self: stretch;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0px;
}

.box-author .planificar-tu-prximo.planificar-tu-prximo {
	font-weight: 600;
}

.box-author .viajera-empedernida-con-container.viajera-empedernida-con-container {
	align-self: stretch;
	position: relative;
	line-height: 20px;
}

.box-author .viajera-empedernida-con-container.viajera-empedernida-con-container p {
	font-size: 1rem;
}

.box-author .viajera-empedernida-con-container.viajera-empedernida-con-container p:first-child {
	margin-top: 0 !important;
}

.box-author .en-este-blog.en-este-blog {
	font-family: var(--wp--preset--font-family--poppins);
}

.box-author .span.span {
	color: #369fa1;
}

.box-author .lee-ms-sobre.lee-ms-sobre {
	text-decoration: underline;
}

.box-author .author-description.author-description {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
	font-size: 16px;
}

.box-author .author-information.author-information {
	width: 425px !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 24px;
	max-width: 100% !important;
}

.box-author {
	width: 100%;
	position: relative;
	border-radius: 32px;
	background-color: #d2ecea;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	padding: 24px 32px;
	box-sizing: border-box;
	gap: 22px;
	text-align: left;
	font-size: 24px;
	color: #2c2c2c;
	font-family: var(--wp--preset--font-family--poppins);
}

@media screen and (max-width: 768px) {
	.box-author {
		display: flex;
		flex-direction: column;
		gap: .8rem;
	}
	.box-author .author-title.author-title {
		display: flex;
		flex-direction: column;
		gap: .7rem;
		margin-top: 1rem;
	}
}

/* Related Articles Styles */
.related-articles {
	width: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 32px;
	text-align: left;
	font-size: 24px;
	color: #000;
	font-family: var(--wp--preset--font-family--poppins);
	max-width: 75rem;
	margin: 0 auto;
}

.related-articles .content {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 16px;
}

.related-articles .title {
	align-self: stretch;
	position: relative;
	font-weight: 700;
}

.related-articles .slider-container {
	align-self: stretch;
	overflow: hidden;
	width: 100%;
}

.related-articles .row {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: flex-start;
	gap: 1rem;
	font-size: 20px;
	color: #2c2c2c;
	width: 100%;
	transition: transform 0.3s ease-in-out;
}

.related-articles .post-card-grid {
	flex: 1;
	border-radius: 24px;
	background-color: #fff;
	border: 1px solid #e8e8ea;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: stretch;
	padding: 16px;
	gap: 16px;
	min-width: calc(33% - 2.6rem) ; /* 3 items with gap */
	transition: transform 0.3s ease;
}

.related-articles .featured-icon {
	align-self: stretch;
	position: relative;
	border-radius: 12px;
	max-width: 100%;
	overflow: hidden;
	height: 160px;
	flex-shrink: 0;
	object-fit: cover;
}

.related-articles .content1 {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	padding: 8px;
	gap: 20px;
	height: 100%;
}

.related-articles .heading {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

.related-articles .title1 {
	align-self: stretch;
	position: relative;
	line-height: 28px;
	font-weight: 600;
}

.related-articles .title1 a {
	color: inherit;
	text-decoration: none;
}

.related-articles .title1 a:hover {
	color: var(--wp--preset--color--primary);
}

.related-articles .short-info {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	font-size: 16px;
	color: #6b7280;
	font-family: 'Work Sans';
}

.related-articles .date {
	position: relative;
	line-height: 24px;
}

.related-articles .container-pasador {
	align-self: stretch;
	border-left: 1px solid #000;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 0px 24px 0px 16px;
	gap: 0px;
	font-size: 36px;
	color: #222;
}

.related-articles .numbers {
	position: relative;
}

.related-articles .span {
	font-size: 40px;
	font-weight: 500;
	white-space: pre-wrap;
}

.related-articles .span1 {
	font-size: 20px;
}

.related-articles .pasador {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 24px;
}

.related-articles .icon-left,
.related-articles .icon-right {
	width: 60px;
	height: 60px;
	cursor: pointer;
	transition: opacity 0.3s ease;
	background: none;
	border: none;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.related-articles .icon-left svg,
.related-articles .icon-right svg {
	border: 1px solid;
	border-radius: 100%;
}

.related-articles .icon-left:hover,
.related-articles .icon-right:hover {
	opacity: 0.7;
}

.related-articles .icon-left:disabled,
.related-articles .icon-right:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.related-articles .slider-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.related-articles .slider-dots {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.related-articles .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #d1d5db;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.related-articles .dot:hover {
	background-color: #9ca3af;
	transform: scale(1.2);
}

.related-articles .dot.active {
	background-color: #2c2c2c;
	transform: scale(1.2);
}

:where(.wp-block-post-comments-form) input:not([type=submit]), :where(.wp-block-post-comments-form) textarea {
	border-radius: 30px;
    border-color: #959393;
    border-width: .5px;
    background: transparent;
}

input[type="submit"] {
	background-color: #2c2c2c;
    color: #fff;
    border-radius: 30px;
    border: none;
    font-weight: 300;
    font-size: .9rem;
    padding: .5rem 1.5rem;
}

/* Mobile Responsiveness for Related Articles */
@media screen and (max-width: 768px) {
	.wp-block-group.posts-related {
		padding-left: 1rem;
	}

	.comments-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.related-articles .slider-container {
		max-width: calc(100vw - 1rem);
        overflow-x: auto;
	}

	.related-articles .post-card-grid {
		min-width: 60%;
	}
}

/* Table of Contents List Styles */
#toc_container.toc_white.toc_white {
	padding: 2rem;
    border-radius: 1.5rem 1.5rem 0 0;
    background: transparent;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #369fa1;
	margin-top: 2rem;
}

#toc_container p.toc_title {
	font-size: 1.4rem;
    text-align: left;
    text-transform: uppercase;
}

#toc_container ul ul {
	margin-left: 1rem;
}

#toc_container.no_bullets ul li a {
	min-height: 40px;
}

/* TOC show more/less */
.toc-hidden {
    display: none !important;
}

.toc-toggle {
	background: none;
    border: none;
    color: inherit;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    align-items: center;
    gap: .25rem;
    min-width: 100%;
    display: flex;
    position: relative;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    margin-top: 2rem;
}

.toc-toggle::after {
    content: '';
    width: 16px;
    height: 16px;
    background: url('../images/arrow-drop-down.svg') no-repeat center/contain;
    transition: transform .2s ease;
	background-size: 160%;
	position: absolute;
	right: 0;
}

.toc-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.toc-toggle:hover {
    opacity: .8;
}

/* Number badge styles injected by JS */
.heading-number-bg,
.toc-number-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 43px;
    background-image: url('../images/bg-numbers.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
	background-position-y: -3px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.heading-number-bg {
	position: relative;
	top: -3px;
}

.heading-number-bg {
	background-image: url('../images/bg-numbers-black.svg');
	background-position-y: center;
}

/* Differentiate colors: overlay a tint via filter for TOC */
/* Base SVG is teal (#369FA1). If you need different color for TOC, we can overlay text color only;
   Alternatively, supply a second SVG. For now, subtly darken for TOC to differentiate. */
.toc-number-bg {
    filter: brightness(0.9) saturate(1.1);
}

@media (max-width: 768px) {
    .heading-number-bg,
    .toc-number-bg {
        width: 45px;
        height: 43px;
        font-size: 12px;
    }
}

.single-post-content p,
.single-post-content li,
.single-post-content ul,
.single-post-content ol {
	font-size: 1rem;
}

.single-post-content li {
	list-style-type: disc;
	margin-left: 1rem;
}

/* Single Post Heading Font Sizes */
.single-post h2 {
	font-size: 1.5rem;
	line-height: 1.2;
}

.single-post h3 {
	font-size: 1.25rem;
	line-height: 1.3;
}

.single-post h4 {
	font-size: 1.125rem;
	line-height: 1.4;
}

.single-post h5 {
	font-size: 1.05rem;
	line-height: 1.5;
}

.single-post h6 {
	font-size: 1rem;
	line-height: 1.6;
}
