/* ============================================================
   Landing page overrides — shared across all *_landing blades
   ============================================================ */

/* --- Admin user dropdown (auth) --- */
.admin-user-holder{position:relative;display:inline-block;cursor:pointer;}
.admin-dropdown-name{background-color:#0087e2;color:#fff;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;font-weight:600;font-size:14px;}
span.arrow-bottom{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #fff;margin-left:0;transition:border-color .3s;}
.site-nav.scrolled span.arrow-bottom{border-top-color:var(--heading,#1a1a2e);}
[data-theme="dark"] span.arrow-bottom{border-top-color:#fff !important;}
.admin-user-holder .dropdown-holder{display:none;position:absolute;right:0;top:calc(100% + 12px);width:250px;background:var(--card-bg,#fff);border:1px solid var(--border,#e5e5e5);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);z-index:1050;padding:12px 16px;}
.admin-user-holder .dropdown-holder.show{display:block;}
.admin-user-holder .dropdown-holder:after{content:'';position:absolute;top:-9px;right:30px;display:inline-block;border-right:9px solid transparent;border-bottom:9px solid var(--card-bg,#fff);border-left:9px solid transparent;}
.admin-user-holder .dropdown-holder .dropdown-item{padding:4px 0;line-height:32px;color:var(--text,#333);text-decoration:none;display:block;font-size:14px;}
.admin-user-holder .dropdown-holder .dropdown-item:hover{color:#0087e2;}
.admin-user-holder .dropdown-holder .dropdown-item:active{background:transparent;}
.user-name-adm{font-weight:600;font-size:15px;color:var(--heading,#25313c);cursor:default;}
.dropdown-item-email{display:block;font-size:12px;color:var(--muted,#666);line-height:18px;}
.dropdown-divider{border-top:1px solid var(--border,#e5e5e5);margin:6px 0;}

/* --- Navbar spacing & nowrap --- */
.site-nav .navbar-nav{flex-wrap:nowrap;}
.site-nav .nav-link{white-space:nowrap;padding:.5rem .65rem;font-size:.875rem;position:relative;}
.site-nav .navbar-collapse > .d-flex{flex-wrap:nowrap;gap:.6rem !important;}
.site-nav .btn-outline-navy{white-space:nowrap;padding:.5rem 1rem;font-size:.85rem;}

/* --- Active nav link indicator (visible on light + dark) --- */
.site-nav .nav-link.active{color:#0087e2 !important;font-weight:700 !important;}
[data-theme="dark"] .site-nav .nav-link.active{color:#4fb3f0 !important;}

/* --- Desktop (lg+): tighter fit + breathing room between nav and auth --- */
@media(min-width:992px){
    .site-nav{padding-top:.5rem !important;padding-bottom:.5rem !important;}
    .site-nav .navbar-nav{gap:0;}
    .site-nav .nav-link{padding:.5rem .55rem;font-size:.8rem;}
    .site-nav .navbar-collapse > .d-flex{margin-left:1.5rem;padding-left:1.5rem;}
}
@media(min-width:1200px){
    .site-nav .nav-link{padding:.5rem .75rem;font-size:.875rem;}
}

/* --- "More" dropdown: only show at 992-1399 where the full menu doesn't fit --- */
.site-nav .nav-overflow-more{display:none;}
@media(min-width:992px) and (max-width:1399.98px){
    .site-nav .nav-overflow{display:none;}
    .site-nav .nav-overflow-more{display:list-item;}
}

.site-nav .nav-overflow-more .dropdown-toggle::after{vertical-align:.15em;margin-left:.3em;}
.site-nav .nav-overflow-more .dropdown-menu{background:#fff;border:1px solid rgba(24,83,124,.12);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:.4rem 0;margin-top:.35rem;min-width:180px;}
.site-nav .nav-overflow-more .dropdown-item{color:#18537c;font-weight:500;font-size:.875rem;padding:.5rem 1rem;}
.site-nav .nav-overflow-more .dropdown-item:hover,
.site-nav .nav-overflow-more .dropdown-item:focus{background:#f3f7fa;color:#0087e2;}
.site-nav .nav-overflow-more .dropdown-item.active{background:transparent;color:#0087e2;font-weight:700;}
[data-theme="dark"] .site-nav .nav-overflow-more .dropdown-menu{background:#1a2533;border-color:#2c3a4a;}
[data-theme="dark"] .site-nav .nav-overflow-more .dropdown-item{color:#d6dee8;}
[data-theme="dark"] .site-nav .nav-overflow-more .dropdown-item:hover,
[data-theme="dark"] .site-nav .nav-overflow-more .dropdown-item:focus{background:#22303f;color:#4fb3f0;}
[data-theme="dark"] .site-nav .nav-overflow-more .dropdown-item.active{color:#4fb3f0;}

/* --- Mobile (below lg): stack nav properly --- */
@media(max-width:991.98px){
    .site-nav .navbar-collapse{padding:1rem 0;}
    .site-nav .navbar-nav{flex-direction:column;gap:.25rem;}
    .site-nav .nav-link{padding:.6rem 0;font-size:1rem;}
    .site-nav .navbar-collapse > .d-flex{flex-wrap:wrap;justify-content:flex-start;margin:.75rem 0 0;padding:.75rem 0 0;}
    .admin-user-holder .dropdown-holder{position:fixed;right:1rem;left:1rem;width:auto;top:auto;margin-top:8px;}
    .admin-user-holder .dropdown-holder:after{right:auto;left:30px;}
    .site-nav .image-name-holder{margin:0 !important;padding:0 !important;}
}

/* --- Prevent horizontal overflow --- */
html,body{overflow-x:hidden;max-width:100vw;}
@media(max-width:1199.98px){
    .call-logs-card{right:-4% !important;width:min(320px,36%) !important;}
}
@media(max-width:991.98px){
    .call-logs-card{display:none !important;}
}

/* --- Non-interactive elements in showcase mocks (no pointer cursor) --- */
.cc-channels .cc-ch,
.cd-edit,
.cd-link,
.cd-chip,
.cth-btn,
.wpt{cursor:default !important;}

/* --- SweetAlert text color --- */
.swal2-popup{background:#fff !important;}
.swal2-title,.swal2-html-container{color:#1a1a2e !important;}

/* ============================================================
   Blog pages — shared across blog listing & article detail
   ============================================================ */
.blog-intro{padding-top:6rem;padding-bottom:2rem;}
.section-title-sm{font-size:1.7rem;font-weight:800;color:var(--heading,#18537c);margin:.35rem 0 0;}
[data-theme="dark"] .section-title-sm{color:#fff;}
.blog-section-head{margin-bottom:2rem;}

/* Search bar in hero */
.blog-search{display:flex;align-items:stretch;max-width:950px;margin:1.5rem auto 1.25rem;background:#fff;border:1px solid #eaeff4;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(24,83,124,.06);}
.blog-search-input{flex:1;border:0;outline:none;background:transparent;padding:.7rem 1rem;font:inherit;color:var(--text,#25313c);}
.blog-search-input::placeholder{color:var(--muted,#9aa6b3);}
.blog-search-btn{background:#0087e2;color:#fff;border:0;padding:0 1.1rem;cursor:pointer;font-size:1rem;display:inline-flex;align-items:center;justify-content:center;transition:background .2s;}
.blog-search-btn:hover{background:#006bb5;}
[data-theme="dark"] .blog-search{background:#1a2533;border-color:#253242;}
[data-theme="dark"] .blog-search-input{color:#fff;}

/* Category chips (used in hero) */
.blog-topic-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin:.5rem auto 0;max-width:950px;}
.topic-chip{display:inline-flex;align-items:center;padding:.5rem 1rem;background:#fff;border:1px solid #eaeff4;border-radius:8px;color:var(--text,#25313c);font-size:.85rem;font-weight:600;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,border-color .2s;}
.topic-chip:hover{background:#f3f7fa;color:#0087e2;border-color:rgba(0,135,226,.3);}
.topic-chip.active{background:#0087e2;color:#fff;border-color:#0087e2;}
[data-theme="dark"] .topic-chip{background:#1a2533;border-color:#253242;color:#d6dee8;}
[data-theme="dark"] .topic-chip:hover{background:#22303f;}
[data-theme="dark"] .topic-chip.active{background:#0087e2;color:#fff;border-color:#0087e2;}

/* Tag pill (sits in top-left corner of card image) */
.blog-tag{display:inline-flex;align-items:center;background:#fff;color:#18537c;font-size:.7rem;font-weight:700;padding:.35rem .7rem;border-radius:6px;box-shadow:0 2px 6px rgba(24,83,124,.15);}
[data-theme="dark"] .blog-tag{background:#0d1520;color:#fff;}

/* Article card — clean image-on-top look */
.blog-card{background:transparent;border:0;box-shadow:none;display:flex;flex-direction:column;transition:transform .25s ease;}
.blog-card:hover{transform:translateY(-3px);}
.blog-card .bc-image{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:#f3f7fa;border-radius:4px;}
.blog-card .bc-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.blog-card:hover .bc-image img{transform:scale(1.04);}
.blog-card .bc-image .blog-tag{position:absolute;top:.65rem;left:.65rem;}
.blog-card .bc-body{padding:.85rem .15rem 0;display:flex;flex-direction:column;flex:1;}
.blog-card .bc-meta{display:flex;align-items:center;gap:.4rem;color:var(--muted,#8694a2);font-size:.78rem;font-weight:500;margin-bottom:.4rem;}
.blog-card .bc-meta .bc-dot{opacity:.6;}
.blog-card .bc-title{font-size:1rem;font-weight:700;line-height:1.35;margin:0 0 .55rem;}
.blog-card .bc-title a{color:var(--heading,#18537c);text-decoration:none;}
.blog-card .bc-title a:hover{color:#0087e2;}
.blog-card .bc-more{color:#0087e2;font-weight:600;font-size:.85rem;text-decoration:none;display:inline-flex;align-items:center;gap:.35rem;align-self:flex-start;}
.blog-card .bc-more i{transition:transform .2s ease;}
.blog-card .bc-more:hover i{transform:translateX(3px);}
[data-theme="dark"] .blog-card .bc-title a{color:#fff;}
[data-theme="dark"] .blog-card .bc-meta{color:#8694a2;}

/* Grid of cards */
.blog-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:2rem 1.5rem;}
@media(max-width:991.98px){.blog-grid{grid-template-columns:repeat(2, 1fr);}}
@media(max-width:575.98px){.blog-grid{grid-template-columns:1fr;}}

/* Sections */
.blog-grid-section{padding-top:1rem;}
.blog-recent{padding-top:3rem;padding-bottom:3rem;}

/* Load more button */
.load-more-posts{padding:1rem 0;}

/* ============================================================
   Blog article detail
   ============================================================ */
.blog-article{padding-top:6rem;}
.blog-back-link{display:inline-flex;align-items:center;gap:.4rem;color:var(--muted,#6a7a88);font-weight:600;font-size:.88rem;text-decoration:none;margin-bottom:1.5rem;transition:color .15s ease;}
.blog-back-link:hover{color:#0087e2;}
.blog-back-link i{transition:transform .2s ease;}
.blog-back-link:hover i{transform:translateX(-3px);}

.blog-article-head{max-width:820px;margin:0 auto 2rem;text-align:center;}
.blog-article-meta{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap;justify-content:center;margin-bottom:1rem;color:var(--muted,#8694a2);font-size:.85rem;font-weight:500;}
.blog-article-meta .bc-dot{opacity:.6;}
.blog-article-meta .blog-tag{margin-bottom:0;}
[data-theme="dark"] .blog-article-meta{color:#8694a2;}
.blog-date{color:var(--muted,#6a7a88);font-size:.85rem;display:inline-flex;align-items:center;gap:.35rem;}
.blog-article-title{font-size:2.4rem;font-weight:800;line-height:1.2;color:var(--heading,#18537c);margin:0 0 1rem;}
[data-theme="dark"] .blog-article-title{color:#fff;}
.blog-article-lead{font-size:1.1rem;color:var(--muted,#6a7a88);line-height:1.55;margin:0;}
[data-theme="dark"] .blog-article-lead{color:#a8b4c1;}
@media(max-width:767.98px){.blog-article-title{font-size:1.6rem;}.blog-article-lead{font-size:1rem;}}

.blog-article-cover{max-width:960px;margin:0 auto 2.5rem;border-radius:16px;overflow:hidden;box-shadow:0 12px 40px rgba(24,83,124,.15);}
.blog-article-cover img{width:100%;height:auto;display:block;}

.blog-article-body,
.blog-article-body *{font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif !important;}
.blog-article-body{max-width:720px;margin:0 auto;color:var(--text,#25313c);font-size:1.05rem;line-height:1.8;}
.blog-article-body h1,.blog-article-body h2,.blog-article-body h3,.blog-article-body h4,.blog-article-body h5,.blog-article-body h6{color:var(--heading,#18537c);font-weight:800;margin:2rem 0 1rem;line-height:1.3;}
.blog-article-body h2{font-size:1.6rem;}
.blog-article-body h3{font-size:1.3rem;}
.blog-article-body p{margin:0 0 1.1rem;}
.blog-article-body a{color:#0087e2;text-decoration:underline;text-underline-offset:3px;}
.blog-article-body a:hover{color:#006bb5;}
.blog-article-body ul,.blog-article-body ol{margin:0 0 1.1rem;padding-left:1.5rem;}
.blog-article-body li{margin-bottom:.4rem;}
.blog-article-body img{max-width:100%;height:auto;border-radius:10px;margin:1.5rem 0;display:block;}
.blog-article-body blockquote{border-left:3px solid #0087e2;background:rgba(0,135,226,.06);padding:1rem 1.25rem;margin:1.5rem 0;border-radius:0 8px 8px 0;color:var(--heading,#18537c);font-style:italic;}
.blog-article-body code{background:rgba(0,135,226,.1);color:#0087e2;padding:.1rem .4rem;border-radius:4px;font-size:.92em;}
[data-theme="dark"] .blog-article-body,
[data-theme="dark"] .blog-article-body p,
[data-theme="dark"] .blog-article-body li,
[data-theme="dark"] .blog-article-body span,
[data-theme="dark"] .blog-article-body div,
[data-theme="dark"] .blog-article-body strong,
[data-theme="dark"] .blog-article-body em{color:#d6dee8 !important;}
[data-theme="dark"] .blog-article-body h1,
[data-theme="dark"] .blog-article-body h2,
[data-theme="dark"] .blog-article-body h3,
[data-theme="dark"] .blog-article-body h4,
[data-theme="dark"] .blog-article-body h5,
[data-theme="dark"] .blog-article-body h6{color:#fff !important;}
[data-theme="dark"] .blog-article-body a{color:#4fb3f0 !important;}
[data-theme="dark"] .blog-article-body blockquote{background:rgba(0,135,226,.12);color:#fff !important;border-left-color:#4fb3f0;}
[data-theme="dark"] .blog-article-body code{background:rgba(0,135,226,.18);color:#4fb3f0 !important;}

/* Strip any inline white/light backgrounds from backend-rendered article HTML in dark mode */
[data-theme="dark"] .blog-article-body p,
[data-theme="dark"] .blog-article-body span,
[data-theme="dark"] .blog-article-body div,
[data-theme="dark"] .blog-article-body li,
[data-theme="dark"] .blog-article-body strong,
[data-theme="dark"] .blog-article-body em,
[data-theme="dark"] .blog-article-body h1,
[data-theme="dark"] .blog-article-body h2,
[data-theme="dark"] .blog-article-body h3,
[data-theme="dark"] .blog-article-body h4,
[data-theme="dark"] .blog-article-body h5,
[data-theme="dark"] .blog-article-body h6{background:transparent !important;background-color:transparent !important;}

.blog-article-share{max-width:720px;margin:2.5rem auto 0;padding:1.5rem 0 0;border-top:1px solid var(--border,#eaeff4);display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;}
.blog-article-share .share-label{color:var(--muted,#6a7a88);font-weight:600;font-size:.9rem;}
.blog-article-share .share-icons{display:inline-flex;gap:.5rem;}
.blog-article-share .share-ico{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--card-bg,#fff);border:1px solid var(--border,#eaeff4);color:var(--muted,#6a7a88);text-decoration:none;transition:background .2s,color .2s,border-color .2s,transform .2s;}
.blog-article-share .share-ico:hover{background:#0087e2;border-color:#0087e2;color:#fff;transform:translateY(-2px);}
[data-theme="dark"] .blog-article-share{border-top-color:#253242;}
[data-theme="dark"] .blog-article-share .share-ico{background:#0d1520;border-color:#253242;color:#a8b4c1;}

/* --- Newsletter CTA — soft blue panel like the Figma --- */
.blog-newsletter{padding-top:2rem;padding-bottom:4rem;}
.newsletter-card{background:#eef4f9;border:1px solid #d8e3ec;border-radius:8px;padding:1.5rem 1.75rem;display:grid;grid-template-columns:auto 1fr auto;gap:1.25rem;align-items:center;position:relative;}
.newsletter-icon{width:46px;height:46px;border-radius:8px;background:#0087e2;color:#fff;font-size:1.15rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.newsletter-body h3{margin:0 0 .15rem;font-size:1.05rem;font-weight:800;color:var(--heading,#18537c);}
.newsletter-body p{margin:0;color:var(--muted,#6a7a88);font-size:.85rem;line-height:1.45;}
.newsletter-form{display:flex;gap:.5rem;align-items:center;position:relative;}
.newsletter-form .nl-input-wrap{display:inline-flex;align-items:center;}
.newsletter-form input{padding:.6rem .9rem;border:1px solid #d8e3ec;border-radius:6px;background:#fff;color:var(--text,#25313c);font:inherit;font-size:.88rem;min-width:220px;outline:none;transition:border-color .2s,box-shadow .2s;}
.newsletter-form input::placeholder{color:#9aa6b3;}
.newsletter-form input:focus{border-color:#0087e2;box-shadow:0 0 0 3px rgba(0,135,226,.18);}
.newsletter-form .btn-accent{padding:.55rem 1.35rem;font-size:.88rem;}
.newsletter-form .nl-success{position:absolute;top:calc(100% + 6px);left:0;color:#16a34a;font-weight:600;font-size:.8rem;}
[data-theme="dark"] .newsletter-card{background:#15202b;border-color:#253242;}
[data-theme="dark"] .newsletter-body h3{color:#fff;}
[data-theme="dark"] .newsletter-body p{color:#a8b4c1;}
[data-theme="dark"] .newsletter-form input{background:#0d1520;border-color:#253242;color:#fff;}
@media(max-width:767.98px){
    .newsletter-card{grid-template-columns:1fr;text-align:center;gap:1rem;}
    .newsletter-icon{margin:0 auto;}
    .newsletter-form{flex-direction:column;width:100%;}
    .newsletter-form .nl-input-wrap{width:100%;}
    .newsletter-form input{width:100%;min-width:0;}
    .newsletter-form .btn{width:100%;justify-content:center;}
}

/* --- Per-plan AI toggle switch (inline on the AI line item) --- */
.plan-ai-item{display:flex;align-items:center;gap:.55rem;font-weight:600;transition:color .2s,opacity .2s;}
.plan-ai-item .ai-label i{margin-right:.25rem;}
.plan-ai-item.is-on{color:#0087e2;}
.plan-ai-item.is-on .ai-label i{color:#0087e2;}
.plan-ai-item.is-off{color:var(--muted,#6a7a88);}
.plan-ai-item.is-off .ai-label{text-decoration:line-through;text-decoration-thickness:1px;opacity:.7;}
.plan-ai-item.is-off .ai-label i{color:var(--muted,#6a7a88);}
[data-theme="dark"] .plan-ai-item.is-on{color:#4fb3f0;}
[data-theme="dark"] .plan-ai-item.is-on .ai-label i{color:#4fb3f0;}
[data-theme="dark"] .plan-ai-item.is-off{color:#8694a2;}

/* The switch itself */
.ai-switch{position:relative;display:inline-block;width:34px;height:20px;flex-shrink:0;cursor:pointer;}

/* Hover tooltip explaining the toggle */
.ai-switch::after{content:attr(data-tooltip);position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%) translateY(4px);background:#18537c;color:#fff;font-size:.72rem;font-weight:600;line-height:1.35;padding:.45rem .65rem;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;z-index:20;box-shadow:0 4px 12px rgba(24,83,124,.25);}
.ai-switch::before{content:"";position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%) translateY(4px);border:6px solid transparent;border-top-color:#18537c;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;z-index:20;}
.ai-switch:hover::after,
.ai-switch:hover::before{opacity:1;transform:translateX(-50%) translateY(0);}
[data-theme="dark"] .ai-switch::after{background:#0d1520;color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.5);}
[data-theme="dark"] .ai-switch::before{border-top-color:#0d1520;}
@media(max-width:575.98px){
    .ai-switch::after{white-space:normal;width:max-content;max-width:200px;}
}
.ai-switch-input{opacity:0;width:0;height:0;position:absolute;}
.ai-switch-slider{position:absolute;inset:0;background:#cdd6df;border-radius:999px;transition:background .25s ease;}
.ai-switch-slider::before{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;background:#fff;border-radius:50%;transition:transform .25s ease;box-shadow:0 1px 3px rgba(0,0,0,.2);}
.ai-switch-input:checked + .ai-switch-slider{background:#0087e2;}
.ai-switch-input:checked + .ai-switch-slider::before{transform:translateX(14px);}
.ai-switch-input:focus-visible + .ai-switch-slider{box-shadow:0 0 0 3px rgba(0,135,226,.25);}
[data-theme="dark"] .ai-switch-slider{background:#3a4a5c;}
[data-theme="dark"] .ai-switch-input:checked + .ai-switch-slider{background:#4fb3f0;}

/* --- Reading progress bar (article detail) — sits just under the navbar --- */
.reading-progress{position:fixed;top:60px;left:0;height:4px;width:0;background:linear-gradient(90deg,#0087e2,#18537c);z-index:1030;transition:width .1s ease-out;box-shadow:0 2px 6px rgba(0,135,226,.35);}
@media(max-width:991.98px){.reading-progress{top:66px;}}

/* --- Staggered scroll-reveal for cards in grids/scrolls --- */
.blog-grid > .reveal:nth-child(1){transition-delay:.00s;}
.blog-grid > .reveal:nth-child(2){transition-delay:.08s;}
.blog-grid > .reveal:nth-child(3){transition-delay:.16s;}
.blog-grid > .reveal:nth-child(4){transition-delay:.24s;}
.blog-grid > .reveal:nth-child(5){transition-delay:.32s;}
.blog-grid > .reveal:nth-child(6){transition-delay:.40s;}
.blog-grid > .reveal:nth-child(7){transition-delay:.48s;}
.blog-grid > .reveal:nth-child(8){transition-delay:.56s;}
.blog-grid > .reveal:nth-child(9){transition-delay:.64s;}

.blog-scroll-track > .reveal:nth-child(1){transition-delay:.00s;}
.blog-scroll-track > .reveal:nth-child(2){transition-delay:.10s;}
.blog-scroll-track > .reveal:nth-child(3){transition-delay:.20s;}
.blog-scroll-track > .reveal:nth-child(4){transition-delay:.30s;}
.blog-scroll-track > .reveal:nth-child(5){transition-delay:.40s;}

/* A stronger lift for reveal — makes the motion more noticeable */
.blog-card.reveal{transform:translateY(28px) scale(.98);}
.blog-card.reveal.is-visible{transform:translateY(0) scale(1);}

/* Topic chips fade in with a gentle cascade */
.blog-topic-chips.reveal{transition:opacity .5s ease,transform .5s ease;}
.blog-topic-chips.reveal .topic-chip{opacity:0;transform:translateY(8px);transition:opacity .4s ease,transform .4s ease;}
.blog-topic-chips.reveal.is-visible .topic-chip{opacity:1;transform:none;}
.blog-topic-chips.reveal.is-visible .topic-chip:nth-child(1){transition-delay:.00s;}
.blog-topic-chips.reveal.is-visible .topic-chip:nth-child(2){transition-delay:.05s;}
.blog-topic-chips.reveal.is-visible .topic-chip:nth-child(3){transition-delay:.10s;}
.blog-topic-chips.reveal.is-visible .topic-chip:nth-child(4){transition-delay:.15s;}
.blog-topic-chips.reveal.is-visible .topic-chip:nth-child(5){transition-delay:.20s;}
.blog-topic-chips.reveal.is-visible .topic-chip:nth-child(6){transition-delay:.25s;}
.blog-topic-chips.reveal.is-visible .topic-chip:nth-child(7){transition-delay:.30s;}
.blog-topic-chips.reveal.is-visible .topic-chip:nth-child(8){transition-delay:.35s;}
.blog-topic-chips.reveal.is-visible .topic-chip:nth-child(9){transition-delay:.40s;}
.blog-topic-chips.reveal.is-visible .topic-chip:nth-child(n+10){transition-delay:.45s;}

/* Floating icons: fade in on first load */
.blog-hero-floats .bh-float{opacity:0;animation:bh-float 9s ease-in-out infinite, bh-fade-in .8s ease forwards;}
@keyframes bh-fade-in{to{opacity:1;}}

/* Newsletter card: subtle glow + larger lift on reveal */
.newsletter-card.reveal{transform:translateY(24px);}
.newsletter-card.reveal.is-visible{transform:none;}

/* Featured card: slide + fade on reveal */
.blog-featured.reveal{transform:translateY(32px);}
.blog-featured.reveal.is-visible{transform:none;}

/* --- AI libraries mock: mobile-friendly table --- */
@media(max-width:767.98px){
    .alib-mock{overflow:hidden;}
    .alib-mock .rm-main{padding:.75rem;overflow-x:auto;-webkit-overflow-scrolling:touch;}
    /* Tabs + toolbar wrap cleanly */
    .alib-mock .alib-tabs{flex-wrap:wrap;gap:.35rem;}
    .alib-mock .alib-toolbar-row{flex-wrap:wrap;gap:.5rem;}
    .alib-mock .alib-toolbar-left{flex-wrap:wrap;gap:.35rem;width:100%;}
    .alib-mock .rm-actions{flex-wrap:wrap;gap:.35rem;}
    .alib-mock .rm-actions .rm-btn{font-size:.65rem;padding:.35rem .6rem;}
    /* Keep the table readable — horizontal scroll inside the card */
    .alib-mock .rm-table,
    .alib-mock .alib-rm-table{min-width:640px;font-size:.68rem;}
    .alib-mock .rm-table thead th,
    .alib-mock .alib-rm-table thead th{font-size:.58rem;padding:.35rem .4rem;}
    .alib-mock .rm-table tbody td,
    .alib-mock .alib-rm-table tbody td{padding:.4rem;font-size:.66rem;}
}

/* --- Appointments mock: mobile-friendly calendar --- */
@media(max-width:767.98px){
    /* Let the card itself contain the overflow */
    .appt-mock{overflow:hidden;}
    .appt-mock .rm-main{padding:.75rem;overflow-x:auto;-webkit-overflow-scrolling:touch;}
    /* Ensure the calendar keeps readable widths by scrolling horizontally */
    .appt-mock .appt-cal{min-width:560px;font-size:.6rem;}
    .appt-mock .appt-cal-header span{padding:.3rem;font-size:.55rem;}
    /* Toolbar stacks so search/actions don't crush together */
    .appt-mock .rm-top{flex-wrap:wrap;gap:.5rem;}
    .appt-mock .appt-toolbar{flex-wrap:wrap;width:100%;gap:.35rem;}
    .appt-mock .rm-actions{flex-wrap:wrap;gap:.35rem;}
    .appt-mock .rm-actions .rm-btn{font-size:.65rem;padding:.35rem .6rem;}
    .appt-mock .appt-cal-nav{flex-wrap:wrap;gap:.5rem;}
    .appt-mock .appt-page-title h3{font-size:.95rem;}
}

/* ============================================================
   Convosio landing — page-scoped styles (.cv-*)
   ============================================================ */
/* Enable smooth height transitions to/from `auto` in supporting browsers */
.cv-page{interpolate-size:allow-keywords;}
/* --- Hero --- */
.cv-hero{position:relative;background:#18537c;color:#fff;padding:6rem 0;overflow:hidden;}
.cv-hero-row{position:relative;z-index:3;}
[data-theme="dark"] .cv-hero{background:#0b1824;}
.cv-hero::before{content:"";position:absolute;inset:0 0 auto 0;height:180px;background:linear-gradient(to bottom,rgba(0,0,0,.65) 0%,rgba(0,0,0,.35) 45%,rgba(0,0,0,0) 100%);pointer-events:none;z-index:2;}
.cv-hero .container{position:relative;z-index:3;}
.cv-hero .cv-eyebrow{display:inline-block;font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#9bb8d9;margin-bottom:1rem;}
.cv-hero h1{font-size:clamp(2rem,4.2vw,3.4rem);font-weight:800;line-height:1.08;color:#fff;margin-bottom:1.5rem;letter-spacing:-.01em;}
.cv-hero h1 .cv-accent{color:#f5b400;display:block;}
.cv-hero p.cv-lead{color:rgba(255,255,255,.78);font-size:1.05rem;line-height:1.65;max-width:520px;}
.cv-hero-text{max-width:610px;}
.cv-page .section-lead.mx-auto{max-width:50rem;}

/* --- Web Chat dashboard visual column --- */
/* Desktop (lg+): image is absolutely positioned inside its col-lg-6 so it can bleed off the right */
@media(min-width:992px){
    .cv-hero-visual-col{position:relative;min-height:600px;}
    .cv-mock{position:absolute;left:0;top:8%;transform:translateY(-50%);pointer-events:none;}
    .cv-mock img{display:block;width:1100px;max-width:none;height:auto;}
}
/* Mobile: image sits naturally below the text at full width */
@media(max-width:991.98px){
    .cv-hero{padding:5rem 0 0;}
    .cv-hero-text{max-width:none;}
    .cv-mock{margin-top:2.5rem;}
    .cv-mock img{display:block;width:100%;height:auto;}
}

/* --- Partners strip — Convosio shows full-colour logos, no hover state --- */
.cv-page .partners-strip .partner{filter:none;opacity:0.6;}
.cv-page .partners-strip .partner:hover{filter:none;opacity:1;}
[data-theme="dark"] .cv-page .partners-strip .partner,
[data-theme="dark"] .cv-page .partners-strip .partner:hover{filter:none;opacity:1;}

/* Yealink logo is white-on-transparent — needs page-specific tinting to be visible on the white strip */
/* Home: grayscale + dimmed (matches the other logos), turns green (#128954) on hover */
.partners-strip .partner[src*="yealink"]{filter:invert(1) grayscale(100%);opacity:0.65;}
.partners-strip .partner[src*="yealink"]:hover{filter:brightness(0) saturate(100%) invert(40%) sepia(72%) saturate(550%) hue-rotate(120deg) brightness(89%) contrast(90%);opacity:1;}
/* Convosio: always green */
.cv-page .partners-strip .partner[src*="yealink"],
.cv-page .partners-strip .partner[src*="yealink"]:hover{filter:brightness(0) saturate(100%) invert(40%) sepia(72%) saturate(550%) hue-rotate(120deg) brightness(89%) contrast(90%);}
/* Dark mode — Home: white default, green on hover (matches other logos' default→color pattern) */
[data-theme="dark"] .partners-strip .partner[src*="yealink"]{filter:none;}
[data-theme="dark"] .partners-strip .partner[src*="yealink"]:hover{filter:brightness(0) saturate(100%) invert(40%) sepia(72%) saturate(550%) hue-rotate(120deg) brightness(89%) contrast(90%);}
/* Dark mode — Convosio: stays white, no hover swap */
[data-theme="dark"] .cv-page .partners-strip .partner[src*="yealink"],
[data-theme="dark"] .cv-page .partners-strip .partner[src*="yealink"]:hover{filter:none;}

/* --- How it works --- */
.cv-hiw-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e5ecf2;padding-top:2.5rem;}
.cv-hiw-item{padding:0 2rem;}
.cv-hiw-item:first-child{border-left:none;padding-left:0;}
.cv-hiw-item:last-child{padding-right:0;}
.cv-hiw-icon{width:48px;height:48px;border-radius:8px;background:#18537C;display:grid;place-items:center;margin-bottom:1.1rem;}
.cv-hiw-icon img{width:28px;height:28px;display:block;object-fit:contain;}
.cv-hiw-item h3{font-size:1.1rem;font-weight:700;color:#0e2f5a;margin:0 0 .65rem;}
.cv-hiw-item p{color:#6c7a93;font-size:.95rem;line-height:1.6;margin:0;}
[data-theme="dark"] .cv-hiw-grid{border-top-color:#22303f;}
[data-theme="dark"] .cv-hiw-item{border-left-color:#22303f;}
[data-theme="dark"] .cv-hiw-item h3{color:#fff;}
[data-theme="dark"] .cv-hiw-icon{background:#0087e2;}
@media(max-width:991.98px){
    .cv-hiw-grid{grid-template-columns:1fr;gap:1.5rem;}
    .cv-hiw-item{border-left:none;border-top:1px solid #e5ecf2;padding:1.75rem 0 0;}
    .cv-hiw-item:first-child{border-top:none;padding-top:0;}
    [data-theme="dark"] .cv-hiw-item{border-top-color:#22303f;}
}

/* --- Features (accordion + image) --- */
.cv-features{background:#F6FAFD;}
[data-theme="dark"] .cv-features{background:#131D29;}
.cv-features-grid{display:flex;align-items:flex-start;gap:3rem;}
.cv-features-list{flex:5;min-width:0;}
.cv-features-image{flex:7;min-width:0;position:relative;}
.cv-feat{border-bottom:2px solid #d9e3ee;padding:1.4rem 0;}
.cv-feat:first-child{border-top:2px solid #d9e3ee;}
.cv-feat > summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;gap:1rem;}
.cv-feat > summary::-webkit-details-marker{display:none;}
.cv-feat > summary > h3{font-size:1.5rem;font-weight:700;color:#18537C;margin:0;}
.cv-feat-toggle{position:relative;width:20px;height:20px;flex-shrink:0;}
.cv-feat-toggle::before,
.cv-feat-toggle::after{content:"";position:absolute;left:50%;top:50%;background:#18537C;border-radius:1px;transform:translate(-50%,-50%);}
.cv-feat-toggle::before{width:18px;height:2px;}
.cv-feat-toggle::after{width:2px;height:18px;transition:transform .3s ease,opacity .3s ease;}
.cv-feat[open] .cv-feat-toggle::after{transform:translate(-50%,-50%) rotate(90deg);opacity:0;}
.cv-feat-body{height:0;overflow:hidden;opacity:0;margin:0;color:#6c7a93;font-size:.95rem;line-height:1.6;transition:height .35s ease,margin .35s ease,opacity .25s ease;}
.cv-feat[open] .cv-feat-body{height:auto;opacity:1;margin:1rem 0 0;}
.cv-features-image img{width:100%;height:auto;display:block;transition:opacity .4s ease;}
.cv-features-image .cv-img--customization,
.cv-features-image .cv-img--encryption{position:absolute;top:0;left:0;opacity:0;}
.cv-features-image .cv-img--dashboard{position:relative;opacity:1;}
.cv-features-grid:has(.cv-feat--customization[open]) .cv-features-image .cv-img--dashboard{opacity:0;}
.cv-features-grid:has(.cv-feat--customization[open]) .cv-features-image .cv-img--customization{opacity:1;}
.cv-features-grid:has(.cv-feat--encryption[open]) .cv-features-image .cv-img--dashboard{opacity:0;}
.cv-features-grid:has(.cv-feat--encryption[open]) .cv-features-image .cv-img--encryption{opacity:1;}
[data-theme="dark"] .cv-feat{border-color:#22303f;}
[data-theme="dark"] .cv-feat > summary > h3{color:#fff;}
[data-theme="dark"] .cv-feat-toggle::before,
[data-theme="dark"] .cv-feat-toggle::after{background:#fff;}
[data-theme="dark"] .cv-feat-body{color:#a8b6c7;}
@media(max-width:991.98px){
    .cv-features-grid{flex-direction:column;gap:2rem;}
}

/* --- Everything you need in one place --- */
.cv-everything-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;}
.cv-everything-text .eyebrow{text-align:left;}
.cv-everything-text .section-title{text-align:left;margin-bottom:1.2rem;}
.cv-everything-text > p{color:#6c7a93;font-size:.98rem;line-height:1.65;margin:0 0 1.6rem;max-width:480px;}
.cv-checklist{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem;}
.cv-checklist li{display:flex;align-items:center;gap:.7rem;font-size:.98rem;font-weight:600;color:#6c7a93;}
.cv-checklist .cv-tick{width:22px;height:22px;border-radius:50%;background:#18537C;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
.cv-checklist .cv-tick i{font-size:16px;color:#fff;line-height:1;}
.cv-everything-image img{width:100%;height:auto;display:block;}
[data-theme="dark"] .cv-checklist li{color:#6c7a93;}
@media(max-width:991.98px){
    .cv-everything-grid{grid-template-columns:1fr;gap:2rem;}
    .cv-everything-text > p{max-width:none;}
}

/* --- FAQ --- */
.cv-faq{background:#F6FAFD;}
[data-theme="dark"] .cv-faq{background:#131D29;}
.cv-faq-grid{display:flex;align-items:flex-start;gap:3rem;}
.cv-faq-image{flex:0 0 42%;}
.cv-faq-image img{width:100%;height:auto;display:block;}
.cv-faq-image .cv-faq-img--dark{display:none;}
[data-theme="dark"] .cv-faq-image .cv-faq-img--light{display:none;}
[data-theme="dark"] .cv-faq-image .cv-faq-img--dark{display:block;}
.cv-faq-list{flex:1;display:flex;flex-direction:column;gap:.85rem;}
.cv-faq-item{background:#fff;border-radius:8px;padding:1.1rem 1.4rem;}
.cv-faq-item > summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;gap:1rem;}
.cv-faq-item > summary::-webkit-details-marker{display:none;}
.cv-faq-item > summary > h3{font-size:1.02rem;font-weight:700;color:#0e2f5a;margin:0;}
.cv-faq-item[open] .cv-feat-toggle::after{transform:translate(-50%,-50%) rotate(90deg);opacity:0;}
.cv-faq-body{height:0;overflow:hidden;opacity:0;margin:0;color:#6c7a93;font-size:.92rem;line-height:1.6;transition:height .35s ease,margin .35s ease,opacity .25s ease;}
.cv-faq-item[open] .cv-faq-body{height:auto;opacity:1;margin:.85rem 0 0;}
.cv-faq-body p{margin:0 0 .85rem;}
.cv-faq-body p:last-child{margin-bottom:0;}
.cv-faq-body strong{color:#0e2f5a;font-weight:700;}
[data-theme="dark"] .cv-faq-item{background:#141d2b;}
[data-theme="dark"] .cv-faq-item > summary > h3{color:#fff;}
[data-theme="dark"] .cv-faq-body{color:#a8b6c7;}
[data-theme="dark"] .cv-faq-body strong{color:#fff;}
@media(max-width:991.98px){
    .cv-faq-grid{flex-direction:column;gap:2rem;}
    .cv-faq-image{flex:0 0 auto;}
}
