/* ============================================================
   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;}
}

/* --- 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:2.5rem;position:relative;overflow:hidden;}
.blog-intro-inner{position:relative;z-index:2;}

/* Floating hero icons (like homepage hero-floats) */
.blog-hero-floats{position:absolute;inset:0;pointer-events:none;z-index:1;}
.blog-hero-floats .bh-float{position:absolute;color:rgba(0,135,226,.12);font-size:2.2rem;animation:bh-float 9s ease-in-out infinite;}
.blog-hero-floats .bh-float.f1{top:12%;left:6%;font-size:2.6rem;animation-delay:0s;}
.blog-hero-floats .bh-float.f2{top:28%;right:8%;font-size:2.2rem;animation-delay:1s;}
.blog-hero-floats .bh-float.f3{top:55%;left:12%;font-size:2.4rem;animation-delay:2s;}
.blog-hero-floats .bh-float.f4{top:72%;right:14%;font-size:2rem;animation-delay:.5s;}
.blog-hero-floats .bh-float.f5{top:18%;left:38%;font-size:1.8rem;animation-delay:3s;}
.blog-hero-floats .bh-float.f6{top:65%;right:32%;font-size:2rem;animation-delay:1.5s;}
.blog-hero-floats .bh-float.f7{top:40%;left:2%;font-size:2.1rem;animation-delay:2.5s;}
.blog-hero-floats .bh-float.f8{top:8%;right:24%;font-size:1.9rem;animation-delay:4s;}
@keyframes bh-float{
    0%,100%{transform:translateY(0) rotate(0);opacity:.6;}
    50%{transform:translateY(-14px) rotate(5deg);opacity:1;}
}
[data-theme="dark"] .blog-hero-floats .bh-float{color:rgba(0,135,226,.18);}
@media(max-width:767.98px){
    .blog-hero-floats .bh-float{font-size:1.6rem !important;}
    .blog-hero-floats .bh-float.f5,.blog-hero-floats .bh-float.f7,.blog-hero-floats .bh-float.f8{display:none;}
}
.section-title-sm{font-size:1.6rem;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;}

/* Tag/pill */
.blog-tag{display:inline-flex;align-items:center;gap:.35rem;background:rgba(0,135,226,.1);color:#0087e2;font-size:.7rem;font-weight:700;padding:.35rem .7rem;border-radius:999px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.75rem;}
[data-theme="dark"] .blog-tag{background:rgba(0,135,226,.18);}

/* Featured card */
.blog-featured{display:grid;grid-template-columns:1.1fr 1fr;gap:0;background:#fff;border:1px solid #eaeff4;border-radius:5px;overflow:hidden;box-shadow:0 2px 8px rgba(24,83,124,.06);transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;}
.blog-featured:hover{border-color:rgba(0,135,226,.5);transform:translateY(-2px);box-shadow:0 8px 20px rgba(24,83,124,.1);}
.blog-featured .bf-media{display:block;overflow:hidden;}
.blog-featured .bf-media img{width:100%;height:100%;object-fit:cover;min-height:320px;transition:transform .5s ease;}
.blog-featured .bf-media:hover img{transform:scale(1.04);}
.blog-featured .bf-body{padding:2rem;display:flex;flex-direction:column;justify-content:center;}
.blog-featured .bf-title{font-size:1.8rem;font-weight:800;line-height:1.25;margin:.25rem 0 .85rem;}
.blog-featured .bf-title a{color:var(--heading,#18537c);text-decoration:none;}
.blog-featured .bf-title a:hover{color:#0087e2;}
.blog-featured .bf-excerpt{color:var(--muted,#6a7a88);margin-bottom:1.25rem;line-height:1.6;}
[data-theme="dark"] .blog-featured{background:#1a2533;border-color:#253242;box-shadow:0 2px 8px rgba(0,0,0,.2);}
[data-theme="dark"] .blog-featured:hover{box-shadow:0 8px 20px rgba(0,0,0,.35);}
[data-theme="dark"] .blog-featured .bf-title a{color:#fff;}
[data-theme="dark"] .blog-featured .bf-excerpt{color:#a8b4c1;}
@media(max-width:767.98px){
    .blog-featured{grid-template-columns:1fr;gap:0;}
    .blog-featured .bf-media img{min-height:220px;}
    .blog-featured .bf-body{padding:1.5rem;}
    .blog-featured .bf-title{font-size:1.4rem;}
}

/* Article cards — match the .plan-card / .info-card look used across landing */
.blog-card{background:#fff;border:1px solid #eaeff4;border-radius:5px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 2px 8px rgba(24,83,124,.06);transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;}
.blog-card:hover{border-color:rgba(0,135,226,.5);transform:translateY(-2px);box-shadow:0 8px 20px rgba(24,83,124,.1);}
.blog-card .bc-image{display:block;aspect-ratio:16/10;overflow:hidden;background:#f3f7fa;}
.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.05);}
.blog-card .bc-body{padding:1.25rem 1.25rem 1.4rem;display:flex;flex-direction:column;flex:1;}
.blog-card .bc-title{font-size:1.05rem;font-weight:700;line-height:1.3;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-excerpt{color:var(--muted,#6a7a88);font-size:.88rem;line-height:1.55;margin:0 0 1rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.blog-card .bc-more{margin-top:auto;color:#0087e2;font-weight:600;font-size:.85rem;text-decoration:none;display:inline-flex;align-items:center;gap:.35rem;}
.blog-card .bc-more i{transition:transform .2s ease;}
.blog-card .bc-more:hover i{transform:translateX(3px);}
[data-theme="dark"] .blog-card{background:#1a2533;border-color:#253242;box-shadow:0 2px 8px rgba(0,0,0,.2);}
[data-theme="dark"] .blog-card:hover{border-color:rgba(0,135,226,.6);box-shadow:0 8px 20px rgba(0,0,0,.35);}
[data-theme="dark"] .blog-card .bc-title a{color:#fff;}
[data-theme="dark"] .blog-card .bc-excerpt{color:#a8b4c1;}

/* Grid of cards */
.blog-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap: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;}}

/* Horizontal scroll row for recent articles */
.blog-scroll{overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;margin:0 -1rem;padding:.5rem 1rem 1.5rem;scrollbar-width:thin;}
.blog-scroll-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px, 1fr);gap:1.5rem;scroll-snap-type:x mandatory;}
.blog-scroll-track > .blog-card{scroll-snap-align:start;}
@media(min-width:992px){.blog-scroll-track{grid-auto-columns:minmax(300px, 1fr);}}

/* Two-column layout: sidebar + grid */
.blog-layout{display:grid;grid-template-columns:260px 1fr;gap:2.5rem;align-items:start;}
@media(max-width:991.98px){.blog-layout{grid-template-columns:1fr;gap:1.5rem;}}

/* Sidebar */
.blog-sidebar{position:sticky;top:90px;}
.blog-sidebar-inner{background:#fff;border:1px solid #eaeff4;border-radius:5px;padding:1.25rem;box-shadow:0 2px 8px rgba(24,83,124,.06);}
.blog-cat-title{font-size:.75rem;font-weight:800;color:var(--muted,#6a7a88);text-transform:uppercase;letter-spacing:.08em;margin:0 0 .85rem;}
.blog-cat-list{list-style:none;padding:0;margin:0;}
.blog-cat-list li + li{margin-top:.15rem;}
.blog-cat-list a{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.55rem .75rem;color:var(--text,#25313c);font-size:.88rem;font-weight:500;border-radius:8px;text-decoration:none;transition:background .15s ease,color .15s ease;}
.blog-cat-list a i{font-size:.75rem;opacity:0;transform:translateX(-4px);transition:opacity .2s,transform .2s,color .2s;}
.blog-cat-list a:hover{background:rgba(0,135,226,.06);color:#0087e2;}
.blog-cat-list a:hover i{opacity:.6;transform:translateX(0);}
.blog-cat-list a.active{background:rgba(0,135,226,.12);color:#0087e2;font-weight:700;}
.blog-cat-list a.active i{opacity:1;transform:translateX(0);color:#0087e2;}
[data-theme="dark"] .blog-sidebar-inner{background:#1a2533;border-color:#253242;box-shadow:0 2px 8px rgba(0,0,0,.2);}
[data-theme="dark"] .blog-cat-list a{color:#d6dee8;}
[data-theme="dark"] .blog-cat-list a:hover{background:rgba(0,135,226,.15);}
[data-theme="dark"] .blog-cat-list a.active{background:rgba(0,135,226,.2);}
@media(max-width:991.98px){.blog-sidebar{position:static;}}

/* 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:.75rem;flex-wrap:wrap;justify-content:center;margin-bottom:1rem;}
.blog-article-meta .blog-tag{margin-bottom:0;}
.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;}

/* --- Popular topics chip row --- */
.blog-topics-section{padding-top:2rem;padding-bottom:2rem;}
.blog-topic-chips{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center;max-width:900px;margin:0 auto;}
.topic-chip{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem 1.1rem;background:var(--card-bg,#fff);border:1px solid var(--border,#eaeff4);border-radius:999px;color:var(--text,#25313c);font-size:.85rem;font-weight:600;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,border-color .2s,transform .2s,box-shadow .2s;}
.topic-chip i{font-size:.78rem;opacity:.7;}
.topic-chip:hover{background:#0087e2;color:#fff;border-color:#0087e2;transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,135,226,.25);}
.topic-chip:hover i{opacity:1;}
.topic-chip.active{background:#0087e2;color:#fff;border-color:#0087e2;box-shadow:0 6px 16px rgba(0,135,226,.2);}
.topic-chip.active i{opacity:1;}
[data-theme="dark"] .topic-chip{background:#0d1520;border-color:#253242;color:#d6dee8;}

/* --- Newsletter CTA --- */
.blog-newsletter{padding-top:2rem;padding-bottom:4rem;}
.newsletter-card{background:#fff;border:1px solid #eaeff4;border-radius:5px;padding:2.5rem;display:grid;grid-template-columns:auto 1fr auto;gap:2rem;align-items:center;position:relative;overflow:hidden;box-shadow:0 2px 8px rgba(24,83,124,.06);}
.newsletter-card::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg, rgba(0,135,226,.06), rgba(24,83,124,.03));pointer-events:none;}
.newsletter-card > *{position:relative;z-index:1;}
.newsletter-icon{width:64px;height:64px;border-radius:16px;background:linear-gradient(135deg,#0087e2,#18537c);color:#fff;font-size:1.8rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 8px 24px rgba(0,135,226,.3);}
.newsletter-body h3{margin:0 0 .35rem;font-size:1.35rem;font-weight:800;color:var(--heading,#18537c);}
.newsletter-body p{margin:0;color:var(--muted,#6a7a88);font-size:.92rem;}
.newsletter-form{display:flex;gap:.6rem;align-items:center;position:relative;}
.newsletter-form .nl-input-wrap{position:relative;display:inline-flex;align-items:center;}
.newsletter-form .nl-input-wrap i{position:absolute;left:14px;color:var(--muted,#6a7a88);pointer-events:none;}
.newsletter-form input{padding:.7rem 1rem .7rem 2.4rem;border:1px solid var(--border,#eaeff4);border-radius:10px;background:var(--card-bg,#fff);color:var(--text,#25313c);font:inherit;min-width:240px;outline:none;transition:border-color .2s,box-shadow .2s;}
.newsletter-form input:focus{border-color:#0087e2;box-shadow:0 0 0 3px rgba(0,135,226,.18);}
.newsletter-form .nl-success{position:absolute;top:calc(100% + 8px);left:0;color:#16a34a;font-weight:600;font-size:.85rem;}
[data-theme="dark"] .newsletter-card{background:#1a2533;border-color:#253242;box-shadow:0 2px 8px rgba(0,0,0,.2);}
[data-theme="dark"] .newsletter-card::before{background:linear-gradient(135deg, rgba(0,135,226,.12), rgba(0,0,0,.1));}
[data-theme="dark"] .newsletter-body h3{color:#fff;}
[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;padding:1.75rem;gap:1.25rem;}
    .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;}
}

/* --- 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;}
}
