/*
Theme Name: BattleCM KPI Spacing Fix
Theme URI: https://www.battlecm.com/
Author: OpenAI
Version: 4.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: battlecm
*/

:root{
  --bg:#ffffff;
  --ink:#0f172a;
  --ink-soft:#334155;
  --brand:#17355b;
  --brand-2:#214a7b;
  --brand-dark:#0b1a2d;
  --line:#e2e8f0;
  --muted:#f6f8fb;
  --shadow:0 14px 34px rgba(15,23,42,.08);
  --shadow-lg:0 26px 70px rgba(15,23,42,.16);
  --radius:18px;
  --max:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand)}
.container{max-width:var(--max);margin:0 auto;padding:0 24px}
.section{padding:88px 0}
.section-tight{padding:56px 0}
.surface{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.eyebrow{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#cbd5e1;
  margin-bottom:14px;
}
.section-title{
  font-size:clamp(31px,3vw,46px);
  line-height:1.08;
  margin:0 0 14px;
  color:var(--brand-dark);
}
.lead{
  font-size:18px;
  color:var(--ink-soft);
  max-width:820px;
  margin:0;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  transition:.18s ease;
  border:1px solid transparent;
  background:var(--brand);
  color:#fff !important;
}
.btn:hover{background:var(--brand-2);transform:translateY(-1px)}
.btn-light{
  background:#fff;
  color:var(--brand) !important;
  border-color:#dbe3ec;
}

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(226,232,240,.9);
}
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:80px;
  gap:24px;
}
.site-branding a{
  text-decoration:none;
  color:var(--ink);
  font-size:24px;
  font-weight:900;
  letter-spacing:.02em;
}
.header-right{display:flex;align-items:center;gap:18px}
.primary-nav .menu{
  list-style:none;
  display:flex;
  gap:24px;
  margin:0;
  padding:0;
  align-items:center;
}
.primary-nav .menu a{
  text-decoration:none;
  color:var(--ink);
  font-size:15px;
  font-weight:700;
}

.hero{
  background:linear-gradient(135deg,#0c1727 0%,#143152 40%,#2b5078 100%);
  color:#fff;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:40px;
  align-items:center;
  min-height:78vh;
  padding:92px 0;
}
.hero-copy h1{
  font-size:clamp(42px,5vw,70px);
  line-height:1.02;
  margin:0 0 18px;
  color:#fff;
  max-width:660px;
}
.hero-copy p{
  font-size:19px;
  color:#dbe6f1;
  max-width:670px;
  margin:0 0 28px;
}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.hero-visual{
  position:relative;
  border-radius:26px;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  min-height:520px;
  background:#091320;
}
.hero-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}
.hero-badge{
  position:absolute;
  right:22px;
  bottom:22px;
  max-width:290px;
  background:rgba(8,18,31,.82);
  color:#fff;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
}
.hero-badge strong{display:block;font-size:15px;margin-bottom:4px}

.trustbar{
  background:#0d1828;
  color:#dbe6f1;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  padding:16px 0;
}
.trust-item{
  font-weight:800;
  font-size:14px;
  text-align:center;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  padding:12px 10px;
  border-radius:999px;
}

.grid{display:grid;gap:24px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.service-card,
.market-card,
.project-card,
.detail-box,
.process-step{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}

.service-card{
  overflow:hidden;
}
.service-card .thumb{height:186px}
.service-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.service-card .body{
  padding:24px;
  min-height:224px;
  display:flex;
  flex-direction:column;
}
.service-card h3{
  margin:0 0 10px;
  font-size:24px;
  line-height:1.12;
  min-height:58px;
}
.service-card p{
  color:var(--ink-soft);
  flex:1;
  margin:0 0 14px;
}

.market-card{
  padding:28px 22px;
  text-align:center;
  font-weight:800;
  color:var(--brand-dark);
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.project-card{
  overflow:hidden;
  padding:0;
}
.project-card .thumb{height:220px}
.project-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.project-card .body{
  padding:24px;
  min-height:214px;
}
.project-card h3{
  margin:0 0 10px;
  font-size:24px;
  line-height:1.12;
  min-height:58px;
}
.project-card p{color:var(--ink-soft)}

.split{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:42px;
  align-items:center;
}
.media-card{
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  background:#091320;
  min-height:420px;
}
.media-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.checklist{
  list-style:none;
  padding:0;
  margin:24px 0 0;
}
.checklist li{
  position:relative;
  padding-left:34px;
  margin:16px 0;
  color:var(--ink-soft);
}
.checklist li:before{
  content:"✓";
  position:absolute;
  left:0;
  top:-1px;
  width:22px;
  height:22px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#dbeafe;
  color:var(--brand);
  font-weight:900;
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:28px;
}
.stat{
  background:#0d1828;
  color:#fff;
  border-radius:18px;
  padding:24px;
  min-height:160px;
}
.stat .kicker{
  display:block;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#cbd5e1;
  margin-bottom:10px;
  font-weight:800;
}
.stat strong{
  display:block;
  font-size:24px;
  line-height:1.08;
  margin-bottom:8px;
}
.stat p{
  margin:0;
  color:#e2e8f0;
  font-size:15px;
  line-height:1.5;
}

.process{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.process-step{
  padding:26px;
  min-height:240px;
}
.process-num{
  width:42px;
  height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#dbeafe;
  color:var(--brand);
  font-weight:900;
  margin-bottom:16px;
}

.page-hero{
  background:linear-gradient(180deg,#f7fafc 0%,#fff 100%);
  border-bottom:1px solid var(--line);
  padding:78px 0 36px;
}
.page-hero-grid{
  display:grid;
  grid-template-columns:1fr 440px;
  gap:34px;
  align-items:center;
}
.page-hero h1{
  font-size:clamp(38px,4vw,56px);
  line-height:1.04;
  margin:0 0 14px;
  color:var(--brand-dark);
}
.page-content{padding:0 0 96px}
.rich-content h2{
  font-size:32px;
  margin:42px 0 14px;
  color:var(--brand-dark);
}
.rich-content h3{
  font-size:24px;
  margin:26px 0 10px;
  color:var(--brand-dark);
}
.rich-content p,
.rich-content li{
  color:var(--ink-soft);
  font-size:17px;
}
.detail-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.detail-box{padding:24px}
.icon-tiles{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.icon-tile{
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.icon-tile img{
  width:100%;
  height:150px;
  object-fit:cover;
}
.icon-tile .body{padding:18px}

.contact-panel{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:28px;
}
.form-card,.info-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:28px;
  box-shadow:var(--shadow);
}
.fake-form .field{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}
.fake-form input,.fake-form textarea,.fake-form select{
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:13px 14px;
  font:inherit;
  background:#fff;
}
.fake-form textarea{
  min-height:150px;
  resize:vertical;
}

.cta-band{
  background:linear-gradient(135deg,#0d1828 0%,#17324a 100%);
  color:#fff;
  text-align:center;
  border-radius:32px;
  padding:86px 28px;
  box-shadow:var(--shadow-lg);
}
.cta-band h2{
  color:#fff;
  margin:0 0 12px;
  font-size:clamp(32px,3vw,46px);
}
.cta-band p{
  max-width:780px;
  margin:0 auto 24px;
  color:#d0dbe8;
  font-size:18px;
}

.site-footer{
  background:#0d1828;
  color:#dbe6f1;
  padding:64px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.35fr .8fr .8fr 1fr;
  gap:24px;
}
.site-footer a{
  color:#dbe6f1;
  text-decoration:none;
}
.footer-title{
  font-weight:900;
  margin-bottom:12px;
  color:#fff;
}
.archive-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

@media (max-width:1080px){
  .hero-grid,.page-hero-grid,.split,.footer-grid,.contact-panel{grid-template-columns:1fr}
  .trust-grid,.stats,.process,.icon-tiles,.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-4,.grid-3,.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .header-inner{flex-wrap:wrap;padding:14px 0}
  .header-right{width:100%;flex-wrap:wrap;justify-content:flex-start}
  .primary-nav{width:100%}
  .primary-nav .menu{flex-wrap:wrap;gap:14px}
  .grid-4,.grid-3,.grid-2,.trust-grid,.stats,.process,.icon-tiles,.detail-grid,.archive-grid{grid-template-columns:1fr}
  .hero-visual{min-height:320px}
}

/* Enhanced content/image refinements */
.page-hero .media-card{min-height:360px}
.media-card img,.hero-visual img,.service-card .thumb img,.project-card .thumb img,.icon-tile img{object-position:center center}
.service-card .body h3,.project-card .body h3{min-height:62px}
.rich-content .pillars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}
.rich-content .pillars .surface{padding:22px}
@media (max-width:760px){.rich-content .pillars{grid-template-columns:1fr}}


/* v1.1 refinements */
.service-card .body .btn{align-self:flex-start;margin-top:auto}
.stats{grid-template-columns:repeat(4,minmax(250px,1fr))}
.stat{min-height:190px}
@media (max-width:1200px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.about-hero-band,.services-hero-band{
  background:linear-gradient(135deg,#0d1828 0%,#17324a 100%);
  color:#fff;border-radius:28px;padding:42px;box-shadow:var(--shadow-lg)
}
.about-hero-band h2,.services-hero-band h2{color:#fff;margin-top:0}
.about-feature-grid,.service-highlight-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:24px
}
.about-feature-grid .surface,.service-highlight-grid .surface{padding:24px}
.service-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:28px}
.service-link-card{display:block;text-decoration:none;color:inherit;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.service-link-card .thumb{height:180px}
.service-link-card .thumb img{width:100%;height:100%;object-fit:cover}
.service-link-card .body{padding:22px}
.service-link-card h3{margin:0 0 8px;color:var(--brand-dark)}
.service-link-card:hover{transform:translateY(-2px);transition:.18s ease;box-shadow:var(--shadow-lg)}
@media (max-width:1080px){
  .about-feature-grid,.service-highlight-grid,.service-link-grid{grid-template-columns:1fr}
}


/* v1.2 layout and readability fixes */
.split.why-battlecm-layout{
  grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);
  align-items:stretch;
}
.split.why-battlecm-layout .media-card{
  min-height:100%;
  height:100%;
}
.split.why-battlecm-layout .media-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}
.about-hero-band,.services-hero-band{
  background:linear-gradient(135deg,#17324a 0%,#254d6d 100%) !important;
  color:#ffffff !important;
}
.about-hero-band p,.services-hero-band p,
.about-hero-band li,.services-hero-band li{
  color:#eef4fb !important;
}
@media (max-width:1080px){
  .split.why-battlecm-layout{
    grid-template-columns:1fr;
  }
}


/* v1.3 home layout fix */
.split.why-battlecm-layout{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:36px;
  align-items:start;
}
.split.why-battlecm-layout > div:first-child{
  min-width:0;
}
.split.why-battlecm-layout .media-card{
  align-self:start;
  min-width:0;
  min-height:560px;
  overflow:hidden;
}
.split.why-battlecm-layout .media-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.split.why-battlecm-layout .stats{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.split.why-battlecm-layout .stat{
  min-width:0;
}
@media (max-width:1080px){
  .split.why-battlecm-layout{
    grid-template-columns:1fr;
  }
  .split.why-battlecm-layout .stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:760px){
  .split.why-battlecm-layout .stats{
    grid-template-columns:1fr;
  }
}


/* v1.3 home layout fix */
.split.why-battlecm-layout{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:36px;
  align-items:start;
}
.split.why-battlecm-layout > div:first-child{
  min-width:0;
}
.split.why-battlecm-layout .media-card{
  align-self:start;
  min-width:0;
  min-height:560px;
  overflow:hidden;
}
.split.why-battlecm-layout .media-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.split.why-battlecm-layout .stats{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.split.why-battlecm-layout .stat{
  min-width:0;
}
@media (max-width:1080px){
  .split.why-battlecm-layout{
    grid-template-columns:1fr;
  }
  .split.why-battlecm-layout .stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:760px){
  .split.why-battlecm-layout .stats{
    grid-template-columns:1fr;
  }
}


/* one-fix: align learn more buttons horizontally in Integrated Consulting Services */
.service-card .body{
  display:flex;
  flex-direction:column;
}
.service-card .body .btn{
  margin-top:auto;
  align-self:flex-start;
}


/* one-fix v2: force equal-height service cards and bottom-aligned buttons on home page */
.grid.grid-4{
  align-items:stretch;
}
.service-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.service-card .thumb{
  flex:0 0 auto;
}
.service-card .body{
  display:grid !important;
  grid-template-rows:minmax(72px,auto) 1fr auto;
  min-height:340px;
  height:100%;
}
.service-card .body p{
  margin:0 0 16px;
}
.service-card .body .btn{
  margin-top:0 !important;
  align-self:start;
}


/* Services clean redesign */
.services-overview-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:34px;
  align-items:center;
}
.services-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
}
.services-metric{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px;
  box-shadow:var(--shadow);
}
.services-metric strong{
  display:block;
  font-size:28px;
  line-height:1.05;
  color:var(--brand-dark);
  margin-bottom:8px;
}
.services-section-band{
  background:linear-gradient(135deg,#0d1828 0%,#17324a 100%);
  color:#fff;
  border-radius:28px;
  padding:42px;
  box-shadow:var(--shadow-lg);
}
.services-section-band h2,
.services-section-band h3{
  color:#fff;
  margin-top:0;
}
.services-section-band p,
.services-section-band li{
  color:#eef4fb;
}
.service-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin-top:24px;
}
.service-detail-card{
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
}
.service-detail-card .thumb{
  height:220px;
}
.service-detail-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.service-detail-card .body{
  padding:24px;
}
.service-detail-card h3{
  margin:0 0 10px;
  color:var(--brand-dark);
}
.service-detail-card p{
  color:var(--ink-soft);
}
.service-detail-card .btn{
  margin-top:10px;
}
.services-approach-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:24px;
}
.services-approach-step{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:24px;
}
.services-approach-step .num{
  width:42px;
  height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#dbeafe;
  color:var(--brand);
  font-weight:900;
  margin-bottom:14px;
}
@media (max-width:1080px){
  .services-overview-grid,
  .service-detail-grid,
  .services-approach-grid,
  .services-metrics{
    grid-template-columns:1fr;
  }
}


/* Service library redesign */
.service-hero-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:34px;
  align-items:center;
}
.service-kpi-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
}
.service-kpi{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:22px;
}
.service-kpi strong{
  display:block;
  color:var(--brand-dark);
  font-size:26px;
  line-height:1.05;
  margin-bottom:8px;
}
.service-band{
  background:linear-gradient(135deg,#0d1828 0%,#17324a 100%);
  color:#fff;
  border-radius:28px;
  padding:42px;
  box-shadow:var(--shadow-lg);
}
.service-band h2,.service-band h3{color:#fff;margin-top:0}
.service-band p,.service-band li{color:#eef4fb}
.service-capability-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  margin-top:24px;
}
.service-capability{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:24px;
}
.service-capability h3{
  margin:0 0 10px;
  color:var(--brand-dark);
}
.service-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  align-items:center;
}
.service-approach-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
}
.service-approach-step{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:22px;
}
.service-approach-step .num{
  width:40px;height:40px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#dbeafe;color:var(--brand);font-weight:900;margin-bottom:12px;
}
.service-outcome-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
}
.service-outcome{
  background:#0d1828;
  color:#fff;
  border-radius:18px;
  padding:24px;
}
.service-outcome h3{
  color:#fff;
  margin:0 0 10px;
}
.service-related-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:20px;
}
.service-related-card{
  display:block;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:22px;
}
.service-related-card:hover{
  transform:translateY(-2px);
  transition:.18s ease;
  box-shadow:var(--shadow-lg);
}
@media (max-width:1080px){
  .service-hero-grid,.service-split,
  .service-capability-grid,
  .service-approach-grid,
  .service-outcome-grid,
  .service-related-grid,
  .service-kpi-grid{
    grid-template-columns:1fr;
  }
}


/* service library v2 fixes */
.service-kpi-grid{
  align-items:stretch;
}
.service-kpi{
  min-width:0;
}
.service-kpi strong{
  font-size:22px;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.service-kpi span{
  display:block;
  overflow-wrap:anywhere;
}
.service-outcome,
.service-outcome p,
.service-outcome h3{
  color:#eef4fb !important;
}


/* side-by-side verify fix: services explore button alignment */
.service-detail-grid{align-items:stretch;}
.service-detail-card{display:flex;flex-direction:column;height:100%;}
.service-detail-card .thumb{flex:0 0 auto;}
.service-detail-card .body{display:grid;grid-template-rows:minmax(64px,auto) auto 1fr auto;min-height:320px;height:100%;}
.service-detail-card .btn{align-self:start;margin-top:14px;}


/* Platform expansion: markets + projects */
.market-hero-grid,.project-hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:34px;
  align-items:center;
}
.market-card-grid,.project-card-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin-top:24px;
}
.market-card,.project-card-premium,.market-detail-card,.project-filter-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.market-card,.project-card-premium{
  display:flex;
  flex-direction:column;
  height:100%;
}
.market-card .thumb,.project-card-premium .thumb{
  height:220px;
}
.market-card .thumb img,.project-card-premium .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.market-card .body,.project-card-premium .body{
  padding:24px;
  display:grid;
  grid-template-rows:minmax(60px,auto) auto 1fr auto;
  min-height:280px;
}
.market-card h3,.project-card-premium h3,.market-detail-card h3,.project-filter-card h3{
  margin:0 0 10px;
  color:var(--brand-dark);
}
.market-intro-band,.project-intro-band{
  background:linear-gradient(135deg,#0d1828 0%,#17324a 100%);
  color:#fff;
  border-radius:28px;
  padding:42px;
  box-shadow:var(--shadow-lg);
}
.market-intro-band h2,.project-intro-band h2{color:#fff;margin-top:0}
.market-intro-band p,.project-intro-band p,.market-intro-band li,.project-intro-band li{color:#eef4fb}
.market-detail-grid,.project-filter-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
}
.market-detail-card,.project-filter-card{
  padding:22px;
}
@media (max-width:1080px){
  .market-hero-grid,.project-hero-grid,.market-card-grid,.project-card-grid,.market-detail-grid,.project-filter-grid{
    grid-template-columns:1fr;
  }
}


/* deeper pages styling */
.rich-content ul{
  padding-left:20px;
}
.rich-content li{
  margin-bottom:8px;
}


/* Deloitte-style markets/projects upgrade */
.premium-hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:36px;
  align-items:center;
}
.insight-band{
  background:linear-gradient(135deg,#0d1828 0%,#17324a 100%);
  color:#fff;
  border-radius:28px;
  padding:42px;
  box-shadow:var(--shadow-lg);
}
.insight-band h2,.insight-band h3{color:#fff;margin-top:0}
.insight-band p,.insight-band li{color:#eef4fb}
.kpi-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:26px;
}
.kpi-box{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:22px;
}
.kpi-box strong{
  display:block;
  color:var(--brand-dark);
  font-size:24px;
  line-height:1.05;
  margin-bottom:8px;
  overflow-wrap:anywhere;
}
.icon-grid-3,.icon-grid-4{
  display:grid;
  gap:20px;
  margin-top:24px;
}
.icon-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.icon-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.icon-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:24px;
}
.icon-badge{
  width:46px;height:46px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:#dbeafe;color:var(--brand);
  font-weight:900;font-size:22px;margin-bottom:14px;
}
.feature-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin-top:24px;
}
.feature-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.feature-panel .thumb{height:220px}
.feature-panel .thumb img{width:100%;height:100%;object-fit:cover}
.feature-panel .body{padding:24px}
.timeline-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
}
.timeline-step{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:22px;
}
.timeline-step .num{
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#dbeafe;color:var(--brand);font-weight:900;margin-bottom:12px;
}
.placeholder-note{
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:16px;
  padding:18px 20px;
  color:#9a3412;
  margin-top:20px;
}
.related-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:20px;
}
.related-card{
  display:block;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:22px;
}
.related-card:hover{
  transform:translateY(-2px);
  transition:.18s ease;
  box-shadow:var(--shadow-lg);
}
@media (max-width:1080px){
  .premium-hero-grid,.feature-grid-2,.timeline-grid,.icon-grid-3,.icon-grid-4,.kpi-strip,.related-card-grid{
    grid-template-columns:1fr;
  }
}


/* KPI spacing fix for markets and projects pages */
.kpi-strip{
  grid-template-columns:repeat(2,minmax(280px,1fr));
  align-items:stretch;
}
.kpi-box{
  min-width:0;
  min-height:152px;
}
.kpi-box strong{
  font-size:21px;
  line-height:1.15;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.kpi-box span{
  display:block;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.55;
}
@media (max-width:1080px){
  .kpi-strip{
    grid-template-columns:1fr;
  }
}
