/* Public NimatooZ Insights & Case Studies. Scoped to avoid changing any CMS page. */
.nmt-cms-posts{--nmt-orange:#f04b23;--nmt-blue:#122d54;--nmt-ink:#24354b;--nmt-muted:#687c90;--nmt-border:#e7eaf0;color:var(--nmt-ink);font-family:var(--base-bodyfont,'Saira Semi Condensed',sans-serif);background:#fff}
.nmt-cms-posts *{box-sizing:border-box}
.nmt-cms-posts h1,.nmt-cms-posts h2,.nmt-cms-posts h3,.nmt-cms-posts h4{font-family:var(--base-headingfont,'Saira Semi Condensed',sans-serif);color:var(--nmt-blue);margin-top:0}
.nmt-cms-posts a{text-decoration:none;transition:color .2s ease}
.nmt-cms-posts a:hover{color:var(--nmt-orange)}
.nmt-cms-posts img{max-width:100%}
.nmt-cms-posts .nmt-overline{color:var(--nmt-orange);font-size:13px;letter-spacing:1.4px;font-weight:700;text-transform:uppercase;display:inline-block;margin-bottom:6px}
.nmt-list-head{padding:60px 0 31px;background:#fff}
.nmt-list-head h1{font-size:38px;font-weight:700;line-height:1.24;margin-bottom:9px}
.nmt-list-head p{font-size:16px;color:var(--nmt-muted);margin:0;line-height:1.7}
.nmt-list-head-case{padding:68px 0 37px}
.nmt-case-heading{display:flex;justify-content:space-between;align-items:center;gap:30px}
.nmt-case-heading h1{margin-bottom:0}
.nmt-case-heading p{width:330px;max-width:100%;font-size:15px}
.nmt-list-content{padding:5px 0 95px}
.nmt-post-grid{display:grid;gap:26px 24px}
.nmt-blog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.nmt-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.nmt-post-card{background:#fff;min-width:0;overflow:hidden}
.nmt-blog-card{border:1px solid #e9edf2;box-shadow:0 9px 22px rgba(16,35,65,.035)}
.nmt-card-cover{display:block;position:relative;overflow:hidden;background:#edf3f8}
.nmt-blog-card .nmt-card-cover{aspect-ratio:1.53}
.nmt-case-card .nmt-card-cover{aspect-ratio:1.8;border-radius:4px}
.nmt-card-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.nmt-card-cover:hover img{transform:scale(1.035)}
.nmt-empty-cover{display:flex;width:100%;height:100%;background:linear-gradient(135deg,#eaf1f7,#cbdbe8);align-items:center;justify-content:center;color:#829bb1;font-size:44px}
.nmt-blog-card .nmt-card-copy{padding:22px 22px 23px;min-height:229px;display:flex;flex-direction:column}
.nmt-blog-card time{color:#8294ac;font-size:13px;letter-spacing:.2px;margin-bottom:8px}
.nmt-blog-card h3{font-size:20px;line-height:1.33;font-weight:700;margin:0 0 10px}
.nmt-post-card h3 a{color:var(--nmt-blue)}
.nmt-post-card h3 a:hover{color:var(--nmt-orange)}
.nmt-blog-card p{font-size:15px;color:var(--nmt-muted);line-height:1.58;margin-bottom:16px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nmt-card-more{color:var(--nmt-orange);font-weight:700;font-size:14px;text-align:center;display:block;margin-top:auto}
.nmt-card-more span{margin-left:4px}
.nmt-case-card{box-shadow:none;border:0}
.nmt-case-card .nmt-card-copy{position:relative;padding:20px 52px 8px 3px}
.nmt-case-card .nmt-overline{font-size:11px;color:var(--nmt-orange);margin-bottom:4px}
.nmt-case-card h3{font-size:21px;line-height:1.32;margin-bottom:9px;font-weight:700}
.nmt-case-card p{margin:0;color:var(--nmt-muted);font-size:14px;line-height:1.55}
.nmt-case-more{position:absolute;top:24px;right:0;display:inline-flex;justify-content:center;align-items:center;background:var(--nmt-blue);color:#fff!important;width:39px;height:39px;font-size:0;border-radius:4px}
.nmt-case-more span{font-size:20px}
.nmt-case-more:hover{background:var(--nmt-orange)}
.nmt-list-search{display:flex;margin:0 0 26px auto;max-width:340px;border:1px solid var(--nmt-border);height:43px}
.nmt-list-search input{flex:1;min-width:0;border:0;padding:0 14px;outline:0}
.nmt-list-search button{background:var(--nmt-blue);color:#fff;border:0;padding:0 15px;cursor:pointer}
.nmt-list-search button:hover{background:var(--nmt-orange)}
.nmt-empty-state{text-align:center;padding:68px 20px;background:#f7f9fc}
.nmt-empty-state h2{font-size:26px}
.nmt-empty-state p{color:var(--nmt-muted)}
.nmt-empty-state a{color:var(--nmt-orange)}
.nmt-pagination{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin-top:42px}
.nmt-pagination a{min-width:39px;padding:8px 12px;text-align:center;color:var(--nmt-blue);border:1px solid var(--nmt-border);font-weight:600}
.nmt-pagination a.is-current,.nmt-pagination a:hover{color:#fff;background:var(--nmt-orange);border-color:var(--nmt-orange)}
.nmt-article-hero{background:#fff8f8;padding:34px 0 36px;margin:0 0 36px}
.nmt-article-hero h1{font-size:32px;line-height:1.28;font-weight:700;max-width:960px;margin:12px 0 0}
.nmt-breadcrumb{display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:var(--nmt-muted);font-size:13px;line-height:1.5}
.nmt-breadcrumb a{color:var(--nmt-orange)}
.nmt-breadcrumb span:last-child{min-width:0;overflow-wrap:anywhere}
.nmt-blog-detail{padding-top:0;padding-bottom:90px}
.nmt-article-columns{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:38px;align-items:start}
.nmt-blog-main,.nmt-case-article{min-width:0}
.nmt-main-image{margin:0 0 25px;overflow:hidden;border-radius:4px}
.nmt-main-image img{display:block;width:100%;height:auto;max-height:610px;object-fit:cover}
.nmt-post-meta{display:flex;flex-wrap:wrap;gap:12px 24px;color:var(--nmt-orange);font-size:13px;margin:12px 0 15px}
.nmt-post-meta i{margin-right:5px}
.nmt-article-inner-title{font-size:28px;line-height:1.29;margin:0 0 18px}
.nmt-article-body{font-size:16px;line-height:1.8;color:#617085;overflow-wrap:anywhere}
.nmt-article-body p{font-size:inherit;line-height:inherit;color:inherit;margin:0 0 19px}
.nmt-article-body h2{font-size:24px;line-height:1.3;margin:26px 0 12px;font-weight:700}
.nmt-article-body h3{font-size:20px;line-height:1.38;margin:23px 0 10px;font-weight:700}
.nmt-article-body h4{font-size:18px;line-height:1.4;margin:19px 0 8px}
.nmt-article-body ul,.nmt-article-body ol{margin:0 0 21px;padding-left:25px;list-style:revert}
.nmt-article-body li{padding:0;margin:0 0 8px;list-style:inherit}
.nmt-article-body blockquote{border-left:4px solid var(--nmt-orange);padding:12px 20px;margin:25px 0;background:#fff9f6;font-size:18px;color:var(--nmt-blue)}
.nmt-article-body a{color:var(--nmt-orange)}
.nmt-article-body img{max-width:100%;height:auto}
.nmt-article-body .ntz-article-segment,.nmt-article-body .ntz-article-block{margin:0 0 22px}
.nmt-article-body .ntz-article-media,.nmt-article-body .ntz-article-gallery{margin:20px 0}
.nmt-article-body .ntz-article-media img{width:100%;height:auto;border-radius:5px}
.nmt-article-body figcaption{color:#789;font-size:13px;margin-top:8px}
.nmt-article-body .ntz-article-gallery,.nmt-article-body .ntz-article-card-grid,.nmt-article-body .ntz-segment-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.nmt-article-body .ntz-article-gallery img{height:200px;width:100%;object-fit:cover}
.nmt-article-body .ntz-article-mini-card,.nmt-article-body .ntz-segment-stat,.nmt-article-body .ntz-case-story-grid article{padding:20px;border:1px solid var(--nmt-border);background:#fff}
.nmt-article-body .ntz-segment-stat{display:flex;flex-direction:column;text-align:center}
.nmt-article-body .ntz-segment-stat strong{color:var(--nmt-orange);font-size:28px}
.nmt-article-body .ntz-check-list{list-style:none;padding-left:0}
.nmt-article-body .ntz-check-list li{list-style:none;padding-left:27px;position:relative}
.nmt-article-body .ntz-check-list li:before{content:'✓';position:absolute;top:0;left:0;color:#18a343;font-weight:700}
.nmt-article-body .ntz-segment-eyebrow{color:var(--nmt-orange);font-size:13px;text-transform:uppercase;font-weight:700}
.nmt-article-body .ntz-article-cta{padding:28px;background:#fff5ef;border-left:4px solid var(--nmt-orange)}
.nmt-article-body .ntz-article-cta a{display:inline-block;padding:10px 20px;background:var(--nmt-orange);color:#fff;border-radius:4px}
.nmt-article-body details{border:1px solid var(--nmt-border);padding:15px 19px;margin:0 0 9px}
.nmt-article-body summary{font-weight:700;cursor:pointer;color:var(--nmt-blue)}
.nmt-article-body details p{margin:12px 0 0}
.nmt-article-body .ntz-case-overview{display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:25px}
.nmt-article-body .ntz-case-overview>img{width:100%;height:auto}
.nmt-article-body .ntz-case-story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.nmt-article-body .ntz-case-story-grid article span{color:var(--nmt-orange);font-weight:700;text-transform:uppercase}
.nmt-article-body dl{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}
.nmt-article-body dl div{display:flex;gap:5px}
.nmt-article-body dt{color:var(--nmt-orange)}
.nmt-article-body dd{margin:0}
.nmt-blog-sidebar{position:relative;min-width:0}
.nmt-side-panel{border:1px solid var(--nmt-border);padding:21px 22px;margin-bottom:21px;background:#fff}
.nmt-side-panel h3{font-size:20px;line-height:1.35;margin:0 0 17px;padding-bottom:10px;border-bottom:1px solid var(--nmt-border)}
.nmt-search-panel{padding:10px}
.nmt-search-panel form{display:flex;align-items:center;gap:0}
.nmt-search-panel input{border:0;outline:0;min-width:0;flex:1;padding:10px 8px;font-size:14px}
.nmt-search-panel button{border:0;background:var(--nmt-blue);color:#fff;width:39px;height:39px;cursor:pointer}
.nmt-search-panel button:hover{background:var(--nmt-orange)}
.nmt-side-categories{margin:0;padding:0;list-style:none!important}
.nmt-side-categories li{list-style:none;border-bottom:1px solid var(--nmt-border);padding:0}
.nmt-side-categories li:last-child{border:0}
.nmt-side-categories a{display:flex;justify-content:space-between;gap:14px;color:var(--nmt-blue);font-size:14px;padding:10px 0}
.nmt-side-categories a span{font-size:12px;color:var(--nmt-muted)}
.nmt-recent-post{display:block;border-bottom:1px solid var(--nmt-border);padding:10px 0}
.nmt-recent-post:last-child{border:0}
.nmt-recent-post span{display:block;color:var(--nmt-blue);font-size:14px;line-height:1.42;font-weight:700}
.nmt-recent-post small{display:block;font-size:12px;color:var(--nmt-orange);margin-top:5px}
.nmt-tag-list{display:flex;gap:7px;flex-wrap:wrap}
.nmt-tag-list span{display:inline-block;padding:5px 10px;border:1px solid var(--nmt-border);color:var(--nmt-muted);font-size:12px}
.nmt-sidebar-cta{padding:25px;background:var(--nmt-orange);color:#fff}
.nmt-sidebar-cta>span{font-size:13px;text-transform:uppercase}
.nmt-sidebar-cta h3{color:#fff;font-size:21px;line-height:1.3;margin:7px 0 15px}
.nmt-sidebar-cta a{color:#fff!important;border:1px solid #fff;padding:8px 12px;display:inline-block}
.nmt-sidebar-cta a:hover{background:#fff;color:var(--nmt-orange)!important}
.nmt-back-link{margin-top:32px;border-top:1px solid var(--nmt-border);padding-top:18px}
.nmt-back-link a{color:var(--nmt-orange);font-weight:700}
.nmt-case-article{padding-top:4px;padding-bottom:66px}
.nmt-case-article .nmt-main-image img{max-height:650px;object-fit:contain;object-position:center}
.nmt-case-main-title{font-size:29px;line-height:1.35;margin:0 0 16px}
.nmt-project-facts{display:flex;flex-wrap:wrap;gap:12px 22px;margin:0 0 22px;padding-bottom:18px;border-bottom:1px solid var(--nmt-border)}
.nmt-project-facts div{display:flex;gap:4px;align-items:baseline;flex-wrap:wrap}
.nmt-project-facts dt{font-size:14px;color:var(--nmt-orange);font-weight:700}
.nmt-project-facts dd{font-size:14px;color:var(--nmt-muted);margin:0}
.nmt-project-facts a{color:var(--nmt-blue)}
.nmt-article-summary{font-size:17px;color:var(--nmt-muted);line-height:1.7;margin:0 0 26px}
.nmt-case-body h2{font-size:25px}
.nmt-related-projects{background:#f8f9fc;padding:54px 0 75px}
.nmt-related-projects h2{font-size:30px;margin:0 0 25px}
.nmt-cms-posts .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:991px){.nmt-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nmt-article-columns{grid-template-columns:minmax(0,1fr) 260px;gap:24px}.nmt-article-body .ntz-case-story-grid{grid-template-columns:1fr}.nmt-case-heading{align-items:start}}
@media(max-width:767px){.nmt-list-head{padding:40px 0 22px}.nmt-list-head h1{font-size:30px}.nmt-case-heading{display:block}.nmt-case-heading p{width:auto;margin-top:10px}.nmt-list-content{padding-bottom:60px}.nmt-blog-grid,.nmt-case-grid{grid-template-columns:1fr;gap:25px}.nmt-blog-card .nmt-card-copy{min-height:0}.nmt-article-hero{padding:26px 0;margin-bottom:24px}.nmt-article-hero h1{font-size:25px}.nmt-article-columns{grid-template-columns:1fr}.nmt-blog-detail,.nmt-case-article{padding-bottom:58px}.nmt-main-image img{max-height:none}.nmt-blog-sidebar{margin-top:30px}.nmt-article-body .ntz-case-overview{grid-template-columns:1fr}.nmt-article-body h2{font-size:22px}.nmt-article-inner-title,.nmt-case-main-title{font-size:24px}.nmt-project-facts{gap:10px}}
@media(max-width:480px){.nmt-article-body .ntz-article-gallery,.nmt-article-body .ntz-article-card-grid,.nmt-article-body .ntz-segment-stat-grid{grid-template-columns:1fr}.nmt-blog-card h3{font-size:19px}.nmt-article-hero h1{font-size:23px}.nmt-list-head h1{font-size:28px}}

/* Original NimatooZ inner-page top area: preserve original header markup.
   Only CMS Blog and Case Study pages use these rules. */
body.nmt-public-post-page > .page > header#masthead.cmt-header-style-01 {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 20;
    background: transparent;
}
body.nmt-public-post-page > .page > main.nmt-cms-posts {
    display: block;
    position: relative;
    clear: both;
    z-index: 1;
}
.nmt-cms-posts .nmt-post-title-row .cmt-page-title-row-inner {
    background: #fff6f6;
    padding: 205px 0 35px;
}
.nmt-cms-posts .nmt-post-title-row .cmt-page-title-row-heading {
    display: table;
    width: 100%;
}
.nmt-cms-posts .nmt-post-title-row .page-title-heading {
    display: table-cell;
    text-align: left;
    vertical-align: middle;
    width: 62%;
}
.nmt-cms-posts .nmt-post-title-row h1.title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    margin: 0;
    text-transform: none;
    overflow-wrap: anywhere;
}
.nmt-cms-posts .nmt-post-title-row .breadcrumb-wrapper {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    margin: 0;
    color: #008cd3;
    overflow-wrap: anywhere;
}
.nmt-cms-posts .nmt-post-title-row .breadcrumb-wrapper span {
    color: #008cd3;
    text-transform: none;
}
.nmt-cms-posts .nmt-post-title-row .breadcrumb-wrapper a { color: #008cd3; }
.nmt-cms-posts .nmt-post-title-row .breadcrumb-wrapper a:hover { color: #f04b23; }
.nmt-cms-posts .nmt-list-content { padding-top: 55px; }
.nmt-cms-posts .nmt-blog-detail { padding-top: 42px; }
.nmt-cms-posts .nmt-case-article { padding-top: 42px; }
@media (max-width: 991px) {
    body.nmt-public-post-page > .page > header#masthead.cmt-header-style-01 {
        position: relative !important;
        background: #fff6f6;
    }
    .nmt-cms-posts .nmt-post-title-row .cmt-page-title-row-inner { padding: 25px 0 26px; }
    .nmt-cms-posts .nmt-post-title-row h1.title { font-size: 31px; }
}
@media (max-width: 767px) {
    .nmt-cms-posts .nmt-post-title-row .cmt-page-title-row-heading { display: block; }
    .nmt-cms-posts .nmt-post-title-row .page-title-heading,
    .nmt-cms-posts .nmt-post-title-row .breadcrumb-wrapper { display: block; width: 100%; text-align: left; }
    .nmt-cms-posts .nmt-post-title-row .breadcrumb-wrapper { margin-top: 9px; }
    .nmt-cms-posts .nmt-post-title-row h1.title { font-size: 27px; }
    .nmt-cms-posts .nmt-list-content { padding-top: 30px; }
    .nmt-cms-posts .nmt-blog-detail,
    .nmt-cms-posts .nmt-case-article { padding-top: 28px; }
}

/* Related Case Studies: center a lone CMS record; preserve a two-column layout
   for two published records. Scoped to the case-study detail section only. */
.nmt-cms-posts .nmt-related-projects .nmt-case-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
}
.nmt-cms-posts .nmt-related-projects .nmt-case-grid > .nmt-case-card {
    flex: 0 1 calc((100% - 32px) / 2);
    min-width: 0;
}
@media (max-width: 767px) {
    .nmt-cms-posts .nmt-related-projects .nmt-case-grid > .nmt-case-card {
        flex-basis: 100%;
    }
}

/* Blog cards: show the assigned CMS category next to the publish date.
   No changes to the existing case study layout or site-wide cards. */
.nmt-cms-posts .nmt-blog-card .nmt-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    margin-bottom: 9px;
}
.nmt-cms-posts .nmt-blog-card .nmt-card-meta time {
    margin: 0;
}
.nmt-cms-posts .nmt-blog-card .nmt-card-category {
    display: inline-block;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 3px;
    background: #fff2ed;
    color: #e84a21;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.nmt-cms-posts .nmt-blog-card a.nmt-card-category:hover {
    background: #f04b23;
    color: #fff;
}
