/* ============================================================
   Blog Post – Shared Styles
   Used by individual blog-post pages (e.g. Fingerprint Technology,
   Handheld Biometric Terminals).
   ============================================================ */

/* ── Hero animation overrides (blog posts sharing data-w-id) ── */
@media (min-width:992px) {
    html.w-mod-js:not(.w-mod-ix) [data-w-id="e37a8c87-4aed-938f-f353-808404099486"] .rt-inner-hero-border { height: 0%; }
    html.w-mod-js:not(.w-mod-ix) [data-w-id="e37a8c87-4aed-938f-f353-808404099486"] .rt-inner-hero-bg-color { height: 100%; }
}

/* ── Banner heading: smaller & refined ── */
.rt-inner-hero-content.rt-blog h1.rt-gap-off {
    font-size: 3rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
/*    max-width: 42rem;*/
}
@media (max-width: 991px) {
    .rt-inner-hero-content.rt-blog h1.rt-gap-off {
        font-size: 1.75rem;
        line-height: 1.3;
    }
}
@media (max-width: 767px) {
    .rt-inner-hero-content.rt-blog h1.rt-gap-off {
        font-size: 1.5rem;
        line-height: 1.35;
    }
}

/* ── Full-width bottom CTA banner ── */
.rt-blog-cta-bottom {
    width: 100%;
    display: block;
    line-height: 0;
    padding: 80px 0px;
}
.rt-blog-cta-bottom a {
    display: block;
    width: 100%;
}
.rt-blog-cta-bottom img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.w-richtext h2{
    font-size: 2.5rem;
}
/* ── Structured subsection lists ── */
.rt-blog-structured-list {
    list-style: none;
    counter-reset: section-counter;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.rt-blog-structured-list > li {
    counter-increment: section-counter;
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.rt-blog-structured-list > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.rt-blog-structured-list > li::before {
    content: counter(section-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.15em;
    font-family: var(--_font---font-family--dm-sans, 'Poppins', sans-serif);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--crimson, #dc143c);
    line-height: 1.6;
}
.rt-blog-structured-list > li h4 {
    font-size: 1.125rem;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.4rem;
    color: var(--prussian-blue, #14213d);
}
.rt-blog-structured-list > li p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.7;
/*    color: var(--cadet-blue-gray, #6c7a89);*/
}
.rt-blog-structured-list > li p a {
    color: var(--crimson, #dc143c);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Bullet list variant (no numbers) ── */
.rt-blog-bullet-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.rt-blog-bullet-list > li {
    position: relative;
    padding-left: 1.75rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.rt-blog-bullet-list > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.rt-blog-bullet-list > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--crimson, #dc143c);
}
.rt-blog-bullet-list > li h4 {
    font-size: 1.125rem;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.4rem;
    color: var(--prussian-blue, #14213d);
}
.rt-blog-bullet-list > li p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.7;
/*    color: var(--cadet-blue-gray, #6c7a89);*/
}
.rt-blog-bullet-list > li p a {
    color: var(--crimson, #dc143c);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Table of Contents ── */
.rt-toc {
    background-color: #f5f6f8;
    border-left: 4px solid var(--crimson, #dc143c);
    border-radius: 0 8px 8px 0;
    padding: 2rem 1.25rem 1rem;
}
.rt-toc-heading {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(20, 33, 61, 0.1);
}
.rt-toc-heading svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}
.rt-toc-heading span {
    font-family: var(--_font---font-family--dm-sans, 'Poppins', sans-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(20, 33, 61, 0.45);
}
.rt-toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    counter-reset: toc-counter;
}
.rt-toc-list li {
    counter-increment: toc-counter;
}
.rt-toc-list li a {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
    padding: 0.6875rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--prussian-blue, #14213d);
    font-family: var(--_font---font-family--dm-sans, 'Poppins', sans-serif);
    font-size: 0.9375rem;
    line-height: 1.5;
    font-weight: 500;
    transition: all 0.2s ease;
}
.rt-toc-list li a:hover {
    background-color: rgba(20, 33, 61, 0.05);
    color: var(--crimson, #dc143c);
}
.rt-toc-list li a::before {
    content: counter(toc-counter, decimal-leading-zero);
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--crimson, #dc143c);
    min-width: 1.25rem;
}
.rt-toc-list li + li {
    border-top: 1px solid rgba(20, 33, 61, 0.06);
}

/* ── Two-Column Blog Layout ── */
.rt-blog-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}
.rt-blog-article {
    flex: 1;
    min-width: 0; /* prevent flex child overflow */
}

/* ── Sidebar (desktop & tablet) ── */
.rt-toc-sidebar {
    flex-shrink: 0;
    width: 350px;
    align-self: stretch; /* must stretch to article height so sticky has room to scroll */
}
.rt-toc-sticky {
    position: sticky;
    top: 100px; /* offset for fixed header */
}
/* Sidebar TOC link sizing */
.rt-toc-sticky .rt-toc-list li a {
    font-size: 0.8125rem;
    padding: 0.5rem 0.625rem;
}

/* Mobile TOC – hidden on desktop by default */
.rt-toc-mobile {
    display: none;
    margin-top: 0;
    margin-bottom: 2rem;
}

/* ── Widen wrapper when sidebar is present ── */
.rt-blog-details-wrapper:has(.rt-blog-layout) {
    max-width: unset;
}

/* ────────────────────────────────────────────
   TABLET (768px – 991px):
   Sidebar stays but allows scrolling within it
   ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .rt-blog-layout {
        gap: 2rem;
    }
    .rt-toc-sidebar {
        width: 240px;
    }
    .rt-toc-sticky {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    .rt-toc-sticky .rt-toc-list li a {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.5rem;
    }
    .rt-blog-details-wrapper:has(.rt-blog-layout) {
        max-width: 850px;
    }
}

/* ────────────────────────────────────────────
   MOBILE (≤767px):
   Stack layout, sidebar hidden, mobile TOC shown
   ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .rt-blog-layout {
        flex-direction: column;
        gap: 0;
    }
    /* Hide only the TOC nav inside the sidebar, keep the form visible */
    .rt-toc-sidebar .rt-toc-sticky {
        display: none;
    }
    /* Make sidebar full-width and push it below the article */
    .rt-toc-sidebar {
        width: 100%;
        order: 2;
        margin-top: 2rem;
    }
    /* Show the inline mobile TOC */
    .rt-toc-mobile {
        display: block;
    }
    .rt-toc {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    .rt-toc-list li a {
        font-size: 0.875rem;
        padding: 0.5625rem 0.5rem;
        margin: 0 -0.5rem;
    }
}

/* ── Blog Sidebar Form ─────────────────────────────────── */
.rt-blog-sidebar-form {
    margin-top: 2rem;
    background-color: #f5f6f8;
    border-left: 4px solid var(--crimson, #dc143c);
    border-radius: 0 8px 8px 0;
    padding: 1.75rem 1.5rem 1.5rem;
}
.rt-blog-form-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(20, 33, 61, 0.1);
}
.rt-blog-form-title {
    font-family: var(--_font---font-family--dm-sans, 'Poppins', sans-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--prussian-blue, #14213d);
    margin-bottom: 0.25rem;
}
.rt-blog-form-subtitle {
    font-size: 0.8125rem;
    color: rgba(20, 33, 61, 0.55);
    margin: 0;
    line-height: 1.5;
}

/* Form field styles (scoped to blog sidebar) */
.rt-blog-sidebar-form .form-group {
    margin-bottom: 10px;
}
.rt-blog-sidebar-form .form-group > label {
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}
.rt-blog-sidebar-form .form-group > .form-control {
    background-color: #fff;
    background-image: none;
    border: 1.5px solid #d1d5db;
    resize: auto;
    height: auto;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    font-size: 13px;
    padding: 8px 12px;
    color: #232323;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rt-blog-sidebar-form .form-group > .form-control:hover {
    border-color: #9ca3af;
}
.rt-blog-sidebar-form .form-group > .form-control:focus,
.rt-blog-sidebar-form .form-group > .form-control:active {
    border-color: #29618c;
    box-shadow: 0 0 0 3px rgba(41, 97, 140, 0.15);
    outline: none;
}
.rt-blog-sidebar-form .form-group > textarea.form-control {
    min-height: 80px;
    resize: vertical;
}
.rt-blog-sidebar-form .form-group > select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636b74' d='M6 8.825L0.375 3.2l0.85-0.85L6 7.125l4.775-4.775 0.85 0.85z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 32px;
    cursor: pointer;
}
.rt-blog-sidebar-form .form-group > .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}
.rt-blog-sidebar-form .required_fild {
    color: #ef4444;
    margin-left: 2px;
}
.rt-blog-sidebar-form .zcwf_col_help {
    display: none;
}
.rt-blog-sidebar-form hr {
    border: none;
    border-top: 1px solid rgba(20, 33, 61, 0.1);
    margin: 0.75rem 0;
}
.rt-blog-sidebar-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.rt-blog-sidebar-form .form-check-input {
    margin-top: 3px;
    flex-shrink: 0;
}
.rt-blog-sidebar-form .form-check-label {
    font-size: 11px;
    line-height: 1.5;
    color: #4b5563;
}
.rt-blog-sidebar-form .form-check-label a {
    color: var(--crimson, #dc143c);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rt-blog-sidebar-form .submit_btn,
.rt-blog-sidebar-form .reset_btn {
    padding: 8px 18px;
    font-size: 13px;
    font-family: var(--_font---font-family--dm-sans, 'Poppins', sans-serif);
    border-radius: 5px;
    cursor: pointer;
    margin-top: 0.5rem;
}
.rt-blog-sidebar-form .submit_btn {
    background-color: #29618c;
    border: 1px solid #29618c;
    color: #fff;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}
.rt-blog-sidebar-form .submit_btn:hover {
    background-color: #1e4f73;
}
.rt-blog-sidebar-form .reset_btn {
    background-color: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
}
.rt-blog-sidebar-form .reset_btn:hover {
    border-color: #9ca3af;
}

/* Show sidebar form on mobile (sidebar is now visible, only TOC is hidden) */
@media (max-width: 767px) {
    .rt-blog-sidebar-form {
        margin-top: 0;
    }
}
/* Smaller padding on tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .rt-blog-sidebar-form {
        padding: 1.25rem 1rem 1rem;
    }
    .rt-blog-sidebar-form .form-group > label {
        font-size: 12px;
    }
    .rt-blog-sidebar-form .form-group > .form-control {
        font-size: 12px;
        padding: 7px 10px;
    }
    .rt-blog-sidebar-form .submit_btn,
    .rt-blog-sidebar-form .reset_btn {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* ── CTA Banner – Scroll-Reveal Animation ─────────────── */
.rt-cta-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.rt-cta-reveal.rt-cta-visible {
    opacity: 1;
    transform: translateY(0);
}
