/* Glossary Term Single Page Styles */

/* Fix for sticky positioning - override global overflow-x: hidden */
/* Fix for sticky positioning - override global overflow-x: hidden */
body.single-post,
body.single-post html {
    overflow-x: clip;
    /* Use clip instead of hidden to allow sticky */
}

.single-post-page {
    background-color: #FFFFFF;
}

/* Two-Column Layout behaving as dh-container */
.single-post-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    /* Container Base Styles */
    width: 100%;
    padding: 60px 20px 30px;
    /* Vertical 60/80 + Horizontal 20 */
    margin: 0 auto;
}

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .single-post-layout {
        padding: 60px 40px 30px;
        /* Vertical 60/80 + Horizontal 40 */
    }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .single-post-layout {
        max-width: calc(100vw - (var(--uy-spacing-300) * 2));
        padding: 60px 0 50px;
        /* Vertical 60/80 + Horizontal 0 */
        margin: 0 auto;
    }
}

/* Large Desktop (min-width: 1440px) */
@media (min-width: 1440px) {
    .single-post-layout {
        max-width: 1040px;
        padding: 60px 0px 50px;
        /* Vertical 60/80 + Horizontal 100 */
    }
}

/* Sidebar */
.single-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Sticky Wrapper for CTA + Social Share */
.single-post-sidebar-sticky-wrapper {
    position: sticky;
    top: 80px;
    /* Account for header height */
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* Table of Contents */
.single-post-toc {
    border-radius: 16px;
    background: var(--Secondary-White-red, #FFF8F8);
    display: flex;
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
}

.single-post-toc__title {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #111B29;
    margin: 0;
}

.single-post-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.single-post-toc__item {
    counter-increment: toc-counter;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.single-post-toc__item:last-child {
    margin-bottom: 0;
}

.single-post-toc__item--sub {
    margin-left: 20px;
    font-size: 14px;
}

.single-post-toc__link {
    color: var(--primary-black-100, #111B29);
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
    /* 131.25% */
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

/* Number styling - applied to the item wrapper, not the link */
.single-post-toc__item::before {
    content: counter(toc-counter) ".";
    font-weight: 600;
    color: var(--primary-black-100, #111B29);
    font-family: Lato;
    font-size: 16px;
    line-height: 21px;
    flex-shrink: 0;
    /* Prevents number from shrinking */
}

/* Clear the old counter inside the link */
.single-post-toc__link::before {
    content: none;
}

/* Sub-items specific overrides */
.single-post-toc__item--sub::before {
    content: "";
}

.single-post-toc__link:hover {
    color: #DF002F;
}

/* CTA Banner */
.single-post-cta-banner {
    background: var(--primary-red-5, #FFF3F3);
    border-radius: 20px;
    overflow: hidden;
}

.single-post-cta-banner__image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.single-post-cta-banner__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-cta-banner__content {
    /* Adjusted padding to look good with content */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    display: flex;
    padding: 24px 22px;
}

.single-post-cta-banner__pretitle {
    color: var(--primary-red-100, #DF002F);
    font-family: Lato;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.single-post-cta-banner__title {
    color: var(--primary-red-100, #DF002F);
    font-family: Lato;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 24px 0;
}

.single-post-cta-banner .single-post-cta-banner__button {
    display: flex;
    height: 40px;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 200px;
    background: var(--primary-red-100, #DF002F);
    color: var(--Primary-White, #FFF) !important;
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: auto;
    /* Allow flex to control width or stretch if needed */
}

.single-post-cta-banner .single-post-cta-banner__button:hover {
    background-color: #E53359;
    color: #FFF !important;
}

/* Social Share */
.single-post-social-share {
    /* No sticky here, wrapper handles it */
}

.single-post-social-share__title {
    color: var(--primary-red-100, #DF002F);
    font-family: Lato;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.single-post-social-share__icons {
    display: flex;
    gap: 14px;
}

/* Bubbles Style Restored */
/* Bubbles Style Removed - SVG is the button */
.single-post-social-share__link {
    display: block;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    /*transition: transform 0.2s ease;*/
}

.single-post-social-share__link:hover {
    background-color: transparent;
    /*transform: translateY(-2px);*/
}

.single-post-social-share__link svg,
.single-post-social-share__link img {
    width: 100%;
    height: 100%;
    display: block;
}

.single-post-social-share__link .social-icon--hover {
    display: none;
}

.single-post-social-share__link:hover .social-icon--normal {
    display: none;
}

.single-post-social-share__link:hover .social-icon--hover {
    display: block;
}

/* Main Content */
.single-post-content {
    min-width: 0;
    /* Prevent grid blowout */
}

/* Header Styles */
.single-post-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center alignment requested */
    padding: 40px 20px;
    /* Mobile padding */
    width: 100%;
    background-color: #FFF9F9;
    /* Very light pink background based on the image context */
    text-align: center;
    /* Ensure text is centered */
    box-sizing: border-box;
    /* Include padding in width */
}

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .single-post-header {
        padding: 60px 40px;
    }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .single-post-header {
        padding: 60px 0;
    }

    .single-post-header__content {
        max-width: calc(100vw - (var(--uy-spacing-300) * 2));
    }
}

.single-post-header__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    width: 100%;
}

@media (min-width: 992px) {
    .single-post-header__content {
        grid-template-columns: 1fr 1fr;
    }
}

.single-post-header__image {
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.single-post-header__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Large Desktop (min-width: 1440px) */
@media (min-width: 1440px) {
    .single-post-header__content {
        max-width: 1040px;
    }
}

.single-post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* 6px gap as requested */
    font-family: 'Lato', sans-serif;
    /* Lato font */
    font-size: 13px;
    /* 13px size */
    font-weight: 700;
    /* Bold (700) */
    line-height: normal;
    /* normal line-height */
    color: #DF002F;
    /* Normal State: Brand Red */
    text-decoration: none;
    margin-bottom: 0px;
    transition: color 0.2s ease;
}

.single-post-back-link svg {
    transform: rotate(180deg);
    /* Rotate arrow to point left */
    transition: stroke 0.2s ease;
    /* Smooth color transition for SVG */
}

.single-post-back-link:hover {
    color: #EC6682;
    /* Hover State: Light Red */
    opacity: 1;
    /* Ensure full opacity */
}

.single-post-back-link:hover svg path {
    stroke: #EC6682;
    /* Force SVG stroke change on hover */
}

.single-post-header__title {
    color: var(--primary-black-100, #111B29);
    font-family: 'Lato', sans-serif;
    font-size: 42px;
    /* Desktop H1 */
    font-weight: 700;
    line-height: 116%;
    /* 48.72px */
    margin: 0;
    text-align: left;
}

.single-post-header__excerpt {
    color: var(--primary-black-100, #111B29);
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    /* Body/Base */
    font-weight: 400;
    line-height: 132%;
    /* 21.12px */
    text-align: left;
}

/* Article Body */
.single-post-body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111B29;
}

.single-post-body h2 {
    color: var(--primary-red-100, #DF002F);

    /* Heading/Desktop/H3 - Bold */
    font-family: Lato;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 50px 0 20px 0;
}

.single-post-body h2:first-child {
    margin-top: 0;
}

.single-post-body h3 {
    color: var(--primary-black-100, #111B29);
    font-family: Lato;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 20px 0 6px 0;
}

.single-post-body p {
    margin: 0 0 20px 0;
}

.single-post-body ul,
.single-post-body ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.single-post-body li {
    margin-bottom: 8px;
}

.single-post-body strong {
    font-weight: 700;
    color: #111B29;
}

/* Body Content specific styles for links */
.single-post-body a {
    color: var(--primary-red-100, #DF002F) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-post-body a:hover {
    color: #EC6682 !important;
    text-decoration: none;
}

/* Checkmark list styling (if using custom checkmarks) */
.single-post-body .checkmark-list {
    list-style: none;
    padding-left: 0;
}

.single-post-body .checkmark-list li {
    position: relative;
    padding-left: 32px;
}

.single-post-body .checkmark-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #DF002F;
    font-weight: 700;
    font-size: 18px;
}

/* Highlighted boxes (like the pink boxes in the screenshot) */
.single-post-body .highlight-box {
    background: #FFF3F3;
    border-left: 3px solid #DF002F;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 4px;
}

.single-post-body .highlight-box p:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        /* Padding is handled by the min-width queries above */
    }

    .single-post-sidebar-sticky-wrapper {
        position: static;
    }

    /* Restore natural order (Sidebar first, Content second) */
    .single-post-sidebar {
        order: unset;
    }

    .single-post-content {
        order: unset;
    }

    /* Utility Classes */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* Default Visibility (Desktop) */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {

    /* Font size adjustments remain, padding handled above */
    .single-post-header__title {
        font-size: 30px;
        /* Mobile H1 */
        line-height: 110%;
        /* 33px */
    }

    .single-post-body h2 {
        font-size: 24px;
        margin-top: 40px;
    }

    .single-post-body h3 {
        font-size: 20px;
    }

    .single-post-social-share__buttons {
        justify-content: flex-start;
    }
}

/* Banner Full Width in Grid */
.single-post-layout>.dh-banner,
.single-post-container>.dh-banner {
    margin-left: auto;
    margin-right: auto;
    /* Responsive Padding specific for Glossary */
    padding: 30px 0;
}

@media (min-width: 1024px) {

    .single-post-layout>.dh-banner,
    .single-post-container>.dh-banner {
        padding-top: 40px;
        padding-bottom: 80px;
    }
}

@media (max-width: 1023px) {

    .single-post-layout>.dh-banner,
    .single-post-container>.dh-banner {
        width: 100%;
    }
}

/* Glossary Highlight Box */
.glossary-highlight-box {
    margin: 20px 0;
    display: flex;
    padding: 10px 8px;
    align-items: flex-start;
    gap: 6px;
    align-self: stretch;
    border-radius: 4px;
    background: var(--Secondary-White-red, #FFF8F8);
}

.glossary-highlight-box__icon {
    /*width: 18.667px;
    height: 18.667px;*/
    flex-shrink: 0;
    /* Prevent icon from shrinking */
    margin-top: 1.5px;
    /* Align with text baseline */
}

.glossary-highlight-box__text {
    color: var(--primary-black-100, #111B29);
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    /* 21.12px */
    flex: 1;
}

.glossary-highlight-box__text strong {
    font-weight: 700;
}

/* Sabías Que Box */
.sabias-que-box {
    display: flex;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    border-radius: 10px;
    border: 1px solid var(--primary-red-100, #DF002F);
    background: var(--Secondary-White-red, #FFF8F8);
    margin: 50px 0;
}

.sabias-que-box__header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sabias-que-box__icon {
    width: 16px;
    height: 26px;
    flex-shrink: 0;
}

.sabias-que-box__title {
    color: var(--primary-red-100, #DF002F);
    font-family: Lato;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 142%;
    /* 25.56px */
    margin: 0;
}

.sabias-que-box__content {
    color: var(--primary-black-100, #111B29);
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    /* 21.12px */
}

.sabias-que-box__source {
    color: var(--primary-black-100, #111B29);
    font-family: Lato;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.24px;
}

.sabias-que-box__source a {
    color: var(--primary-black-100, #111B29);
    text-decoration: underline;
}

.sabias-que-box__source a:hover {
    color: #E21A44;
}

/* Glossary Responsive Image */
.single-post-image-container {
    margin: 0px;
    width: 100%;
}

.single-post-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Caso de Uso Box */
.caso-uso-box {
    background: #F7F8FA;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.caso-uso-box__title {
    color: var(--primary-black-100, #111B29);
    font-family: Lato;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 16px 0;
}

.caso-uso-box__content {
    color: var(--primary-black-100, #111B29);
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    margin: 0 0 16px 0;
}

.caso-uso-box__content strong {
    font-weight: 700;
}

.caso-uso-box__list {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.caso-uso-box__list li {
    color: var(--primary-black-100, #111B29);
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    margin-bottom: 8px;
}

.caso-uso-box__list li:last-child {
    margin-bottom: 0;
}

.caso-uso-box__conclusion {
    color: var(--primary-red-100, #DF002F);
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 132%;
    margin: 0;
}

/* Glossary Responsive Table */
.glossary-table,
.single-post-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: separate;
    border-spacing: 0;
}

.glossary-table thead,
.single-post-table thead {
    background: var(--Secondary-Light-Red, #FCE7E8);
}

.glossary-table th,
.single-post-table th {
    color: var(--primary-black-100, #111B29);
    font-family: Lato;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 142%;
    text-align: left;
    padding: 16px;
}

.glossary-table td,
.single-post-table td {
    color: var(--primary-black-100, #111B29);
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    padding: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.glossary-table tbody tr:last-child td,
.single-post-table tbody tr:last-child td {
    border-bottom: none;
}

.glossary-table tbody tr:last-child td:first-child,
.single-post-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.glossary-table tbody tr:last-child td:last-child,
.single-post-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Mobile responsive - stack columns vertically */
@media (max-width: 767px) {

    .glossary-table,
    .single-post-table {
        border: 0;
    }

    .glossary-table thead,
    .single-post-table thead {
        display: none;
    }

    .glossary-table tbody,
    .single-post-table tbody,
    .glossary-table tr,
    .single-post-table tr,
    .glossary-table td,
    .single-post-table td {
        display: block;
        width: 100%;
    }

    .glossary-table tr,
    .single-post-table tr {
        margin-bottom: 20px;
        background: var(--Secondary-Light-Red, #FCE7E8);
        border-radius: 8px;
        overflow: hidden;
    }

    .glossary-table td,
    .single-post-table td {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
    }

    .glossary-table td:last-child,
    .single-post-table td:last-child {
        border-bottom: none;
    }

    .glossary-table td:before,
    .single-post-table td:before {
        content: attr(data-label);
        font-weight: 700;
        display: block;
        margin-bottom: 8px;
        color: var(--primary-black-100, #111B29);
    }
}

/* Glossary FAQs - Override padding for term pages */
.glossary-faqs .dh-faqs__container {
    padding-top: 0px;
}

/* Prevent e-Satellite from breaking across lines */
.nowrap {
    white-space: nowrap;

}

/* Meta Nav (Breadcrumbs style) */
.single-post-meta-nav {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
}

.single-post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red-100, #DF002F);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.single-post-back-link:hover {
    opacity: 0.8;
}

.single-post-nav-separator {
    margin: 0 4px;
    color: var(--primary-red-100, #DF002F);
}

.single-post-category {
    color: var(--primary-red-100, #DF002F) !important;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.single-post-category:hover {
    opacity: 0.8;
    text-decoration: none;
}

.single-post-reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--Red, #E20E18);
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.24px;
}

.single-post-reading-time__icon {
    width: 14px;
    height: 14px;
}

/* Post Tags */
.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    color: var(--primary-red-100, #DF002F);
}

.single-post-tag {
    color: inherit;
}

.single-post-tag-separator {
    margin: 0 10px;
    color: inherit;
}

/* Header Text Container Structure */
.single-post-header__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

@media (max-width: 991px) {
    .single-post-meta-nav {
        margin-bottom: 16px !important;
    }
}