/*
 * Tinkerbell v5 — tb-v5.css
 * Fixes: header gap, white space, safetiness block, widget modernization,
 * WhatsApp tab, calculator merge, responsive issues, font standardization.
 * Design reference: saseni.com, essayservice.com, paperwritings.com
 */

/* =============================================
   1. GAP / SPACING FIXES
   ============================================= */

/* Fix: header is position:fixed (60px tall), page_holder has padding-top:60px
   Trust bar moved inside page_holder, so we need to reset the page_holder 
   padding and let header+trustbar stack naturally via sticky positioning */
.page_holder {
    padding-top: 0 !important;
}

/* Make header sticky instead of fixed — eliminates the white gap entirely */
header {
    position: sticky !important;
    top: 0 !important;
    z-index: 500;
    box-shadow: 0 2px 12px rgba(104,87,208,.18);
}

/* Trust strip is now the very first element inside page_holder */
.tb-trust-strip {
    position: sticky;
    top: 0;
    z-index: 501; /* above header */
    background: linear-gradient(90deg, #160647 0%, #2d1b69 100%);
    color: #fff;
    font-size: .79rem;
    font-weight: 500;
    padding: .4rem 0;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.4;
}

/* Actually reverse: trust bar then header — trust bar z-index lower */
header {
    z-index: 499;
}
.tb-trust-strip {
    z-index: 500;
}

/* Remove any top-margin from main_content children that caused visual gap */
.main_content > *:first-child {
    margin-top: 0 !important;
}

.main_content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix for homepage gradient bg bleeding into white gap */
.main_calculator {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.main_calculator .violet_gradient_bg,
.main_calculator section:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* tb-post-hero: remove top margin/padding that creates gap */
.tb-post-hero {
    margin-top: 0 !important;
    padding-top: 2.5rem !important;
}

/* Service/country hero: no top gap */
.tb-service-hero {
    margin-top: 0 !important;
}

/* Archive/category/tag page title gap fix */
.page_title {
    margin-top: 0 !important;
    padding-top: 2rem !important;
}

/* =============================================
   2. HOMEPAGE CALCULATOR — UNIFIED BOX
   ============================================= */
/* Merge slogan+calculator into one hero container */
.main_calculator .width {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    align-items: center;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.main_calculator .slogan {
    text-align: left;
    margin: 0;
    padding: 0;
}

.main_calculator .slogan .h1,
.main_calculator .slogan h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    font-weight: 800;
    text-align: left;
}

.main_calculator .slogan p.t22px {
    font-size: 1.05rem;
    text-align: left;
    max-width: 500px;
    opacity: .9;
}

.main_calculator .calculator.home-calculator {
    position: static !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
}

/* Remove the visual gap within the slogan area */
.main_calculator .slogan .violet_gradient_bg {
    display: none !important; /* redundant, parent already has gradient */
}

.main_calculator .violet_decor:before,
.main_calculator .violet_decor:after {
    display: none !important;
}

.main_calculator .trustpilot {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.main_calculator .trustpilot_rating_wrapper,
.main_calculator .trustpilot_review_wrapper {
    display: flex;
    align-items: center;
}

.main_calculator .discount_chip {
    display: inline-flex;
    margin-bottom: 1rem;
    align-items: center;
}

.main_calculator .buttons_wrapper {
    justify-content: flex-start !important;
    padding-top: 1.25rem;
}

/* Responsive: stack on mobile */
@media (max-width: 1209px) {
    .main_calculator .width {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }
    .main_calculator .slogan {
        text-align: center;
    }
    .main_calculator .slogan .h1,
    .main_calculator .slogan h2 {
        text-align: center;
    }
    .main_calculator .slogan p.t22px {
        margin: 0 auto;
    }
    .main_calculator .buttons_wrapper {
        justify-content: center !important;
    }
}

/* =============================================
   3. WHATSAPP BUTTON STYLES
   ============================================= */
.tb-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #25d366;
    color: #fff !important;
    padding: .4rem .9rem;
    border-radius: 30px;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.tb-whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff !important;
}
.tb-whatsapp-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Floating WhatsApp button (bottom-right) */
.tb-whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #25d366;
    color: #fff !important;
    padding: .7rem 1.2rem;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    text-decoration: none;
    transition: all .25s ease;
    animation: tb-float-pulse 2.5s ease-in-out infinite;
}
.tb-whatsapp-float:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37,211,102,.5);
    text-decoration: none;
    color: #fff !important;
}
.tb-whatsapp-float svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
@keyframes tb-float-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
    50% { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* Header WhatsApp link */
header .tb-whatsapp-btn {
    font-size: .78rem;
    padding: .32rem .8rem;
}

/* Sidebar WhatsApp box */
.tb-sidebar-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1.25rem;
}
.tb-sidebar-whatsapp h3 {
    color: #fff !important;
    border-color: rgba(255,255,255,.2) !important;
    margin-bottom: .5rem !important;
}
.tb-sidebar-whatsapp p {
    color: rgba(255,255,255,.88);
    font-size: .85rem;
    margin: 0 0 .85rem;
}
.tb-sidebar-whatsapp .tb-whatsapp-btn {
    background: rgba(255,255,255,.2);
    border: 1.5px solid rgba(255,255,255,.4);
    width: 100%;
    justify-content: center;
    font-size: .9rem;
    padding: .6rem;
}
.tb-sidebar-whatsapp .tb-whatsapp-btn:hover {
    background: rgba(255,255,255,.35);
}

/* =============================================
   4. MODERN WIDGETS — HOW IT WORKS
   ============================================= */
.how_it_works {
    background: linear-gradient(135deg, #6857d0 0%, #160647 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.how_it_works::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,.04) 0%, transparent 70%);
    pointer-events: none;
}
.how_it_works .width {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.how_it_works h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: .5rem;
}
.how_it_works .block_description {
    color: rgba(255,255,255,.75);
    text-align: center;
    font-size: 1rem;
    max-width: 560px;
    margin-bottom: 1.5rem;
}
.how_it_works .buttons_wrapper {
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Modern steps grid — 4 columns desktop */
.how_it_works_steps {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-direction: unset !important;
    align-items: unset !important;
}
.how_it_works_steps .item {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex !important;
    flex-direction: column;
    gap: .75rem;
    position: relative;
    transition: background .2s ease, transform .2s ease;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 1.5rem !important;
}
.how_it_works_steps .item:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-3px);
}
.how_it_works_steps .item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    top: -14px;
    left: 1.25rem;
    width: 32px; height: 32px;
    background: #f5a623;
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.how_it_works_steps {
    counter-reset: step-counter;
}
.how_it_works_steps .item h3 {
    font-size: 1rem !important;
    font-weight: 700;
    color: #fff !important;
    margin: .5rem 0 .25rem !important;
    line-height: 1.3;
}
.how_it_works_steps .item p {
    font-size: .88rem;
    color: rgba(255,255,255,.78);
    line-height: 1.55;
    margin: 0;
}

/* Hide old slider on desktop */
.how_it_works_slider { display: none !important; }

@media (max-width: 1024px) {
    .how_it_works_steps { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .how_it_works_steps { grid-template-columns: 1fr !important; }
    .how_it_works { padding: 2.5rem 0; }
}

/* =============================================
   5. MODERN WIDGETS — WHY CHOOSE US
   ============================================= */
.why_choose_us {
    padding: 4.5rem 0;
    background: #fff;
}
.why_choose_us .width {
    max-width: 1200px;
    margin: 0 auto;
}
.why_choose_us h3.h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    text-align: center;
    color: #1e293b;
    margin-bottom: .5rem;
}
.why_choose_us .block_description {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}
.why_choose_us .items_wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    padding: 0 !important;
}
.why_choose_us .item {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow .22s ease, transform .22s ease;
    width: auto !important;
    margin: 0 !important;
    flex-nowrap: unset !important;
}
.why_choose_us .item:hover {
    box-shadow: 0 8px 30px rgba(104,87,208,.12);
    transform: translateY(-4px);
    border-color: rgba(104,87,208,.2);
}
.why_choose_us .item .icon {
    width: 52px !important;
    height: 52px !important;
    background: linear-gradient(135deg, #6857d0, #160647);
    border-radius: 12px;
    margin: 0 !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.why_choose_us .item .description {
    flex: 1;
}
.why_choose_us .item h3 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: .4rem !important;
    margin-top: 0 !important;
}
.why_choose_us .item p {
    font-size: .9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}
.why_choose_us .security_icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding: 0 !important;
}
@media (max-width: 900px) {
    .why_choose_us .items_wrapper { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
    .why_choose_us .items_wrapper { grid-template-columns: 1fr !important; }
    .why_choose_us { padding: 2.5rem 0; }
}

/* =============================================
   6. MODERN WIDGETS — TESTIMONIALS
   ============================================= */
.testimonials_block {
    background: #f8faff;
    padding: 4.5rem 0;
}
.testimonials_block h3.h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}
.testimonials_block .trustpilot {
    background: linear-gradient(135deg, #6857d0, #160647) !important;
    border-radius: 16px;
    padding: 2rem !important;
    margin: 0 0 2rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.testimonials_block .mar-auto-rl-large {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}
.testimonials_block .trustpilot p {
    color: rgba(255,255,255,.8) !important;
    font-size: .88rem;
    margin: .4rem 0 0;
}
.testimonials_block .trustpilot .content_button {
    flex-shrink: 0;
    margin: 0 !important;
}
.testimonials_block .testimonial_slide {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    padding: 1.5rem !important;
    transition: transform .22s ease, box-shadow .22s ease;
}
.testimonials_block .testimonial_slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(104,87,208,.12);
}
.testimonials_block .testimonial_slide p {
    font-size: .92rem;
    line-height: 1.6;
    color: #475569;
    font-style: italic;
}
.testimonials_block .rating_wrapper {
    background: #f0eeff !important;
    border-radius: 30px;
    padding: .4rem .9rem !important;
}
.testimonials_block .rating_count {
    color: #f5a623 !important;
    font-size: 1rem !important;
}
@media (max-width: 900px) {
    .testimonials_block .mar-auto-rl-large {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   7. MODERN WIDGETS — SAMPLES
   ============================================= */
.samples_block {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #6857d0 0%, #160647 100%);
    position: relative;
}
.samples_block .width {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
    align-items: center !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
}
.samples_block .w50-large {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.samples_block h3.h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 800 !important;
    text-align: left !important;
    color: #fff !important;
    margin-bottom: 1rem !important;
}
.samples_block .block_description {
    text-align: left !important;
    color: rgba(255,255,255,.82) !important;
    font-size: .95rem;
    margin-bottom: 1.5rem;
}
.samples_block .buttons_wrapper {
    justify-content: flex-start !important;
}

/* Sample cards modern */
.sample {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.12) !important;
    transition: transform .22s ease !important;
}
.sample:hover { transform: translateY(-3px) !important; }
.sample h3 { font-size: 1rem !important; font-weight: 700 !important; color: #1e293b !important; }
.sample .sample_feature {
    font-size: .75rem !important;
    font-weight: 600 !important;
    padding: .25rem .5rem !important;
    background: #f0eeff !important;
    border-color: rgba(104,87,208,.2) !important;
    color: #6857d0 !important;
}
.samples_slider_wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    .samples_block .width {
        grid-template-columns: 1fr !important;
    }
    .samples_block h3.h2 { text-align: center !important; }
    .samples_block .block_description { text-align: center !important; }
    .samples_block .buttons_wrapper { justify-content: center !important; }
}

/* =============================================
   8. MODERN WIDGETS — CTA BLOCK
   ============================================= */
.action_block {
    background: transparent;
    padding: 4rem 0;
}
.action_block .width.dark_violet_bg,
.action_block > .width > .dark_violet_bg {
    background: linear-gradient(135deg, #6857d0 0%, #160647 100%) !important;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    padding: 3.5rem 2.5rem !important;
    text-align: center;
}
.action_block h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: .75rem !important;
    margin-top: 0 !important;
    padding: 0 !important;
}
.action_block p {
    color: rgba(255,255,255,.85) !important;
    font-size: 1rem !important;
    margin-bottom: 1.75rem !important;
    padding: 0 !important;
}
.action_block .flex.flex-jc-center {
    gap: 1rem;
    flex-wrap: wrap;
}
.action_block .flex.flex-jc-center a {
    min-width: 160px;
    text-align: center;
    margin: 0 !important;
}
@media (max-width: 600px) {
    .action_block > * { padding: 0 1rem !important; }
    .action_block .width.dark_violet_bg,
    .action_block > .width > .dark_violet_bg {
        border-radius: 16px;
        padding: 2rem 1.5rem !important;
    }
}

/* =============================================
   9. SAFETINESS BLOCK FIX
   ============================================= */
.safetiness_block {
    padding: 4rem 0;
    background: #fff;
}
.safetiness_block .width {
    padding: 0 1.5rem !important;
}
.safetiness_block .h3.decorated_block_title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}
.safetiness_block .flex.flex-nowrap-tablet {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 2.5rem !important;
    align-items: center !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
}
.safetiness_block .illustration_wrapper {
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}
.safetiness_block .illustration {
    width: 240px;
    height: 240px;
    border-radius: 16px;
    background: #f0eeff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.safetiness_block .description {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}
.safetiness_block .description h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem !important;
}
.safetiness_block .description p {
    font-size: .97rem;
    line-height: 1.75;
    color: #475569;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
    max-width: 560px;
    width: 100% !important;
}
.safetiness_block .description p a {
    color: #6857d0;
    text-decoration: underline;
}

/* Security badges row */
.safetiness_services {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}
.safetiness_services::before {
    content: "🔒 SSL Encrypted · 🛡️ GDPR Compliant · 🔐 256-bit Security · ✅ No Data Sharing";
    display: block;
    width: 100%;
    font-size: .82rem;
    font-weight: 600;
    color: #6857d0;
    background: #f0eeff;
    padding: .6rem 1rem;
    border-radius: 8px;
    letter-spacing: .01em;
}

@media (max-width: 768px) {
    .safetiness_block .flex.flex-nowrap-tablet {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    .safetiness_block .illustration {
        width: 160px !important;
        height: 160px !important;
        margin: 0 auto !important;
    }
    .safetiness_block .description p {
        max-width: 100%;
    }
    .safetiness_block { padding: 2.5rem 0; }
}

/* =============================================
   10. GLOBAL FONT & SPACING STANDARDIZATION
   ============================================= */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: #1e293b !important;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
}

/* Standard section spacing */
section {
    padding: 4rem 0;
}
@media (max-width: 768px) {
    section { padding: 2.5rem 0; }
}

/* Width container */
.width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =============================================
   11. POSTS / PAGES / ARCHIVES HERO — NO GAP
   ============================================= */
.tb-post-hero,
.tb-service-hero,
.tb-service-hero-inner {
    padding-top: 2.5rem;
}

/* Category / tag archive page title */
.page_title {
    background: linear-gradient(135deg, #6857d0 0%, #160647 100%);
    padding: 2.5rem 1.5rem 2rem !important;
    color: #fff;
    margin: 0 !important;
}
.page_title h1 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
}
.page_title .page_description {
    color: rgba(255,255,255,.82);
    font-size: 1rem;
    margin-top: .5rem;
}

/* =============================================
   12. CALCULATOR / ORDER FORM LINK FIX
   ============================================= */
/* Make all calculator form actions point to essaybishops.com/order */
.calculator form,
.uvocalc--wrapper form,
[data-calculator-form] {
    /* JS handles this; CSS class for targeting */
}

/* CTA-calc widget */
.uvocalc {
    border-top: 3px solid #6857d0;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 24px rgba(104,87,208,.1);
}
.uvocalc--title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.25rem;
}
.uvocalc--submit__container a,
.uvocalc--submit__container button[type="submit"] {
    background: linear-gradient(135deg, #f5a623 0%, #e8920e 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: .8rem 1.5rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all .22s ease !important;
    text-align: center;
    display: block;
}
.uvocalc--submit__container a:hover,
.uvocalc--submit__container button[type="submit"]:hover {
    background: linear-gradient(135deg, #f5b23a 0%, #d4850c 100%) !important;
    transform: translateY(-1px) !important;
}

/* =============================================
   13. MODERN PAGE / POST LAYOUT
   ============================================= */
/* Featured image in posts */
.tb-featured-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.tb-featured-img img,
.tb-thumb {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
}

/* Article content typography */
.tb-post-content,
.text_holder_block {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #334155;
}
.tb-post-content h2, .text_holder_block h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 2.5rem 0 .75rem;
    color: #1e293b;
    padding-bottom: .4rem;
    border-bottom: 2px solid #f0eeff;
}
.tb-post-content h3, .text_holder_block h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 .6rem;
    color: #1e293b;
}
.tb-post-content p, .text_holder_block p {
    margin-bottom: 1.25rem;
}
.tb-post-content ul, .text_holder_block ul {
    padding-left: 1.5rem;
    margin: .75rem 0 1.25rem;
}
.tb-post-content ul li, .text_holder_block ul li {
    margin-bottom: .45rem;
    line-height: 1.65;
}

/* =============================================
   14. READ-MORE / EXCERPT SECTION
   ============================================= */
.read_more_text {
    background: #f8faff;
    padding: 3rem 0;
}
.read_more_text .width {
    max-width: 900px;
}
.read_more_text .text_holder_block {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

/* =============================================
   15. HEADER MODERNIZATION
   ============================================= */
header .width {
    min-height: 64px;
    display: flex;
    align-items: center;
}

/* =============================================
   16. FOOTER MODERNIZATION
   ============================================= */
footer {
    font-size: .92rem;
}
footer .footer_links {
    border-bottom: 1px solid rgba(255,255,255,.1);
}
footer .footer_links a {
    color: #94a3b8;
    transition: color .2s ease;
}
footer .footer_links a:hover {
    color: #f5a623;
    text-decoration: none;
}
footer .copy {
    color: #94a3b8;
}

/* =============================================
   17. MOBILE FIXES — GENERAL
   ============================================= */
@media (max-width: 767px) {
    /* Header compact */
    header .contacts_group {
        display: none;
    }
    
    /* Fix overflow issues */
    .page_holder,
    .main_content {
        overflow-x: hidden;
    }
    
    /* Reduce heading sizes on mobile */
    .h1, h1 { font-size: 1.6rem !important; }
    .h2, h2 { font-size: 1.35rem !important; }
    .h3, h3 { font-size: 1.15rem !important; }
    
    /* Padding adjustments */
    .width { padding: 0 1rem; }
    
    /* CTA buttons full width */
    .flex.flex-jc-center .content_button {
        min-width: 140px;
        text-align: center;
    }
}

/* =============================================
   18. SAMPLES PAGE TEMPLATE
   ============================================= */
.tb-samples-page {
    background: #f8faff;
    min-height: 60vh;
}
.tb-samples-hero {
    background: linear-gradient(135deg, #6857d0 0%, #160647 100%);
    padding: 3.5rem 1.5rem 3rem;
    color: #fff;
    text-align: center;
}
.tb-samples-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .75rem;
}
.tb-samples-hero p {
    color: rgba(255,255,255,.85);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 1.5rem;
}
.tb-samples-filters {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    position: sticky;
    top: 60px;
    z-index: 100;
}
.tb-samples-filters .width {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}
.tb-samples-filter-label {
    font-size: .82rem;
    font-weight: 700;
    color: #64748b;
    margin-right: .25rem;
}
.tb-samples-filter-btn {
    padding: .3rem .85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    display: inline-block;
}
.tb-samples-filter-btn:hover,
.tb-samples-filter-btn.active {
    border-color: #6857d0;
    color: #6857d0;
    background: #f0eeff;
    text-decoration: none;
}
.tb-samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.tb-sample-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: box-shadow .22s ease, transform .22s ease;
}
.tb-sample-card:hover {
    box-shadow: 0 8px 30px rgba(104,87,208,.12);
    transform: translateY(-3px);
}
.tb-sample-card-type {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6857d0;
    background: #f0eeff;
    padding: .2rem .65rem;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}
.tb-sample-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.35;
}
.tb-sample-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.tb-sample-meta-tag {
    font-size: .74rem;
    font-weight: 600;
    padding: .2rem .55rem;
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
}
.tb-sample-card-footer {
    display: flex;
    gap: .6rem;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid #e2e8f0;
}
.tb-sample-card-btn {
    flex: 1;
    text-align: center;
    padding: .5rem .75rem;
    background: linear-gradient(135deg, #6857d0, #160647);
    color: #fff !important;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 700;
    transition: opacity .2s ease;
    text-decoration: none;
    display: block;
}
.tb-sample-card-btn:hover {
    opacity: .88;
    text-decoration: none;
    color: #fff !important;
}
.tb-sample-order-btn {
    flex: 1;
    text-align: center;
    padding: .5rem .75rem;
    background: #f5a623;
    color: #fff !important;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 700;
    transition: background .2s ease;
    text-decoration: none;
    display: block;
}
.tb-sample-order-btn:hover {
    background: #d4890e;
    text-decoration: none;
    color: #fff !important;
}

/* =============================================
   19. WRITERS / REVIEWS PAGE
   ============================================= */
.tb-writers-page .tb-writers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem 0;
}
.tb-writer-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: all .22s ease;
}
.tb-writer-card:hover {
    box-shadow: 0 8px 30px rgba(104,87,208,.12);
    transform: translateY(-4px);
}
.tb-writer-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6857d0, #160647);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    font-weight: 800;
}
.tb-writer-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: .25rem;
}
.tb-writer-subject {
    font-size: .83rem;
    color: #6857d0;
    font-weight: 600;
    margin-bottom: .75rem;
}
.tb-writer-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.tb-writer-stat {
    text-align: center;
}
.tb-writer-stat-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
}
.tb-writer-stat-lbl {
    font-size: .72rem;
    color: #64748b;
    display: block;
}
.tb-writer-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    font-size: .85rem;
    font-weight: 700;
    color: #f5a623;
    margin-bottom: 1rem;
}
.tb-writer-card .tb-whatsapp-btn {
    width: 100%;
    justify-content: center;
    font-size: .84rem;
}

/* =============================================
   20. POLICY PAGES
   ============================================= */
.tb-policy-page {
    background: #fff;
}
.tb-policy-hero {
    background: linear-gradient(135deg, #6857d0 0%, #160647 100%);
    padding: 3.5rem 1.5rem 3rem;
    color: #fff;
    text-align: center;
}
.tb-policy-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .5rem;
}
.tb-policy-hero .tb-policy-updated {
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    margin: 0;
}
.tb-policy-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}
.tb-policy-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin: 2.5rem 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid #f0eeff;
}
.tb-policy-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.75rem 0 .5rem;
}
.tb-policy-body p {
    font-size: .97rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 1rem;
}
.tb-policy-body ul, .tb-policy-body ol {
    padding-left: 1.5rem;
    margin: .75rem 0 1.25rem;
}
.tb-policy-body li {
    font-size: .97rem;
    color: #475569;
    margin-bottom: .5rem;
    line-height: 1.65;
}
.tb-policy-body a {
    color: #6857d0;
    text-decoration: underline;
}
.tb-policy-nav {
    background: #f8faff;
    border-right: 1px solid #e2e8f0;
    padding: 2rem 1.5rem;
    position: sticky;
    top: 100px;
    border-radius: 12px;
}
.tb-policy-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tb-policy-nav li {
    margin-bottom: .5rem;
}
.tb-policy-nav a {
    font-size: .88rem;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    padding: .3rem .5rem;
    display: block;
    border-radius: 6px;
    transition: all .2s ease;
}
.tb-policy-nav a:hover {
    background: #f0eeff;
    color: #6857d0;
}
.tb-policy-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}
@media (max-width: 768px) {
    .tb-policy-layout { grid-template-columns: 1fr; }
    .tb-policy-nav { position: static; }
}

/* =============================================
   21. CONTACT PAGE
   ============================================= */
.tb-contact-page {
    background: #f8faff;
}
.tb-contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .tb-contact-grid { grid-template-columns: 1fr; }
}
.tb-contact-info-box {
    background: linear-gradient(135deg, #6857d0, #160647);
    border-radius: 20px;
    padding: 2rem;
    color: #fff;
}
.tb-contact-info-box h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}
.tb-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.25rem;
    font-size: .95rem;
    color: rgba(255,255,255,.88);
}
.tb-contact-info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: .1rem;
}
.tb-contact-form-box {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    border: 1px solid #e2e8f0;
}
.tb-contact-form-box h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

/* =============================================
   22. PRIVACY / SAFETINESS BLOCK MOBILE FIX
   ============================================= */
@media (max-width: 480px) {
    .safetiness_block .flex {
        flex-direction: column !important;
    }
    .safetiness_block .illustration_wrapper {
        width: 100% !important;
        text-align: center;
    }
    .safetiness_block .description p {
        font-size: .93rem;
        padding: 0 !important;
        margin: 0 0 1rem !important;
        width: 100% !important;
    }
}

/* =============================================
   23. AI / SGE OPTIMIZATION VISIBILITY
   ============================================= */
/* FAQ schema rendering */
.tb-faq-section[itemtype*="FAQPage"],
.shelby-faq-section[itemtype*="FAQPage"] {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin: 2.5rem 0;
}

/* Answer-first content boxes (for AI snippets) */
.tb-answer-box {
    background: #f0eeff;
    border-left: 4px solid #6857d0;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-size: .97rem;
    line-height: 1.7;
    color: #334155;
}
.tb-answer-box strong {
    color: #1e293b;
    display: block;
    margin-bottom: .4rem;
    font-size: 1rem;
}

/* Table of contents (topical authority signal) */
.tb-toc {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-size: .9rem;
}
.tb-toc-title {
    font-weight: 800;
    color: #1e293b;
    margin-bottom: .6rem;
}
.tb-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}
.tb-toc li {
    counter-increment: toc-counter;
    padding: .25rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.tb-toc li:last-child { border-bottom: none; }
.tb-toc a {
    color: #6857d0;
    text-decoration: none;
    font-weight: 600;
}
.tb-toc a:hover { text-decoration: underline; }
