/* ============================================================
   Tanzania Tech Media - Service detail page (corporate redesign)
   Uses theme variable --tp-theme-primary for accent.
   ============================================================ */
:root{ --ttm-accent: var(--tp-theme-primary, #13DB31); }

.ttm-svc *{ box-sizing:border-box; }
.ttm-svc{ --ttm-ink:#111013; --ttm-muted:#5b605b; --ttm-line:#e7e9e2; --ttm-soft:#f6f8ef; }

/* ---------- Shared ---------- */
.ttm-container{ width:100%; max-width:1230px; margin:0 auto; padding:0 20px; }
.ttm-eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600;
   letter-spacing:1.5px; text-transform:uppercase; color:var(--ttm-ink); }
.ttm-eyebrow::before{ content:""; width:26px; height:2px; background:var(--ttm-accent); display:inline-block; }
.ttm-accent{ color:var(--ttm-accent); }

.ttm-btn{ display:inline-flex; align-items:center; gap:10px; padding:15px 30px; border-radius:50px;
   font-weight:600; font-size:15px; line-height:1; text-decoration:none; transition:.25s ease; border:1.5px solid transparent; cursor:pointer; }
.ttm-btn svg{ width:16px; height:16px; }
.ttm-btn-primary{ background:var(--ttm-accent); color:#0a1f0d; }
.ttm-btn-primary:hover{ filter:brightness(.92); transform:translateY(-2px); color:#0a1f0d; }
.ttm-btn-dark{ background:#111013; color:#fff; }
.ttm-btn-dark:hover{ transform:translateY(-2px); color:#fff; }
.ttm-btn-ghost{ background:transparent; color:#111013; border-color:#d7dacf; }
.ttm-btn-ghost:hover{ border-color:var(--ttm-accent); color:#111013; }
.ttm-btn-light{ background:#fff; color:#111013; }
.ttm-btn-light:hover{ transform:translateY(-2px); color:#111013; }

/* ---------- Hero ---------- */
.ttm-svc-hero{ position:relative; overflow:hidden; background:var(--ttm-soft);
   padding:170px 0 90px; border-bottom:1px solid var(--ttm-line); }
.ttm-svc-hero .ttm-shape{ position:absolute; opacity:.5; pointer-events:none; }
.ttm-svc-hero .ttm-shape-1{ top:120px; right:-40px; color:var(--ttm-accent); opacity:.18; }
.ttm-svc-hero .ttm-shape-2{ bottom:-30px; left:-30px; color:#111013; opacity:.05; }
.ttm-hero-grid{ display:grid; grid-template-columns:1fr 280px; gap:40px; align-items:center; position:relative; z-index:2; }
.ttm-breadcrumb{ font-size:14px; color:var(--ttm-muted); margin-bottom:22px; }
.ttm-breadcrumb a{ color:var(--ttm-muted); text-decoration:none; }
.ttm-breadcrumb a:hover{ color:var(--ttm-accent); }
.ttm-breadcrumb span+span::before{ content:"/"; margin:0 10px; color:#c2c6bb; }
.ttm-badge{ display:inline-block; background:#fff; border:1px solid var(--ttm-line); color:var(--ttm-ink);
   font-size:13px; font-weight:600; letter-spacing:.5px; padding:7px 16px; border-radius:50px; margin-bottom:18px; }
.ttm-svc-hero h1{ font-size:clamp(34px, 5vw, 56px); line-height:1.05; font-weight:700; color:var(--ttm-ink); margin:0 0 20px; letter-spacing:-1px; }
.ttm-svc-hero .ttm-lead{ font-size:19px; line-height:1.6; color:var(--ttm-muted); max-width:620px; margin:0 0 32px; }
.ttm-hero-actions{ display:flex; flex-wrap:wrap; gap:14px; }
.ttm-hero-icon{ justify-self:end; }
.ttm-hero-icon .ttm-orb{ width:200px; height:200px; border-radius:50%; background:#fff; border:1px solid var(--ttm-line);
   display:flex; align-items:center; justify-content:center; box-shadow:0 30px 60px -30px rgba(17,16,19,.25); position:relative; }
.ttm-hero-icon .ttm-orb::after{ content:""; position:absolute; inset:-14px; border-radius:50%; border:2px dashed var(--ttm-accent); opacity:.4; }
.ttm-hero-icon svg{ width:88px; height:88px; color:var(--ttm-accent); }

/* ---------- Highlights ---------- */
.ttm-svc-highlights{ background:#fff; padding:64px 0; }
.ttm-hl-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.ttm-hl-card{ border:1px solid var(--ttm-line); border-radius:18px; padding:30px; transition:.25s ease; background:#fff; }
.ttm-hl-card:hover{ transform:translateY(-6px); box-shadow:0 24px 50px -28px rgba(17,16,19,.28); border-color:transparent; }
.ttm-hl-ico{ width:56px; height:56px; border-radius:14px; background:var(--ttm-soft); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.ttm-hl-ico svg{ width:28px; height:28px; color:var(--ttm-accent); }
.ttm-hl-card h3{ font-size:20px; font-weight:700; color:var(--ttm-ink); margin:0 0 10px; }
.ttm-hl-card p{ font-size:15px; line-height:1.65; color:var(--ttm-muted); margin:0; }

/* ---------- Main: content + sidebar ---------- */
.ttm-svc-main{ background:#fff; padding:30px 0 100px; }
.ttm-main-grid{ display:grid; grid-template-columns:1fr 360px; gap:50px; align-items:start; }

/* prose */
.ttm-content{ font-size:16.5px; line-height:1.8; color:#33372f; }
.ttm-content h2{ font-size:30px; font-weight:700; color:var(--ttm-ink); margin:0 0 18px; letter-spacing:-.5px; }
.ttm-content h3{ font-size:22px; font-weight:700; color:var(--ttm-ink); margin:38px 0 14px; }
.ttm-content h4{ font-size:18px; font-weight:700; color:var(--ttm-ink); margin:28px 0 10px; }
.ttm-content p{ margin:0 0 18px; }
.ttm-content ul, .ttm-content ol{ margin:0 0 22px; padding:0; }
.ttm-content ul{ list-style:none; }
.ttm-content ul li{ position:relative; padding-left:32px; margin-bottom:12px; }
.ttm-content ul li::before{ content:""; position:absolute; left:0; top:9px; width:16px; height:16px; border-radius:50%;
   background:var(--ttm-accent); box-shadow:0 0 0 5px color-mix(in srgb, var(--ttm-accent) 18%, transparent); }
.ttm-content ol{ counter-reset:step; list-style:none; }
.ttm-content ol li{ position:relative; padding-left:46px; margin-bottom:16px; min-height:30px; }
.ttm-content ol li::before{ counter-increment:step; content:counter(step,decimal-leading-zero); position:absolute; left:0; top:0;
   width:32px; height:32px; border-radius:9px; background:var(--ttm-soft); color:var(--ttm-ink); font-weight:700; font-size:13px;
   display:flex; align-items:center; justify-content:center; border:1px solid var(--ttm-line); }
.ttm-content strong{ color:var(--ttm-ink); }
.ttm-content a{ color:var(--ttm-accent); text-decoration:underline; text-underline-offset:3px; }

.ttm-tags{ margin-top:34px; padding-top:26px; border-top:1px solid var(--ttm-line); display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.ttm-tags .ttm-tags-label{ font-weight:700; color:var(--ttm-ink); margin-right:6px; }
.ttm-chip{ font-size:13px; font-weight:500; color:#444; background:var(--ttm-soft); border:1px solid var(--ttm-line); padding:7px 14px; border-radius:50px; }

/* sidebar */
.ttm-side{ position:sticky; top:100px; display:flex; flex-direction:column; gap:26px; }
.ttm-card{ border:1px solid var(--ttm-line); border-radius:18px; padding:26px; background:#fff; }
.ttm-card-title{ font-size:18px; font-weight:700; color:var(--ttm-ink); margin:0 0 18px; padding-bottom:14px; border-bottom:1px solid var(--ttm-line); }
.ttm-svc-list{ list-style:none; margin:0; padding:0; }
.ttm-svc-list li{ margin-bottom:8px; }
.ttm-svc-list a{ display:flex; align-items:center; justify-content:space-between; gap:10px; text-decoration:none;
   padding:13px 16px; border-radius:12px; color:#3b3f37; font-weight:600; font-size:15px; background:var(--ttm-soft); transition:.2s ease; }
.ttm-svc-list a svg{ width:15px; height:15px; opacity:.5; transition:.2s ease; }
.ttm-svc-list a:hover{ background:var(--ttm-accent); color:#0a1f0d; }
.ttm-svc-list a:hover svg{ opacity:1; transform:translateX(3px); }
.ttm-svc-list li.is-active a{ background:var(--ttm-accent); color:#0a1f0d; }
.ttm-svc-list li.is-active a svg{ opacity:1; }

.ttm-cta-card{ position:relative; overflow:hidden; background:#111013; color:#fff; border-radius:18px; padding:34px 28px; }
.ttm-cta-card .ttm-shape{ position:absolute; right:-20px; bottom:-20px; color:var(--ttm-accent); opacity:.18; }
.ttm-cta-card h3{ font-size:22px; font-weight:700; margin:0 0 10px; position:relative; }
.ttm-cta-card p{ font-size:14.5px; line-height:1.6; color:#c4c8be; margin:0 0 22px; position:relative; }
.ttm-cta-meta{ display:flex; flex-direction:column; gap:12px; margin-bottom:24px; position:relative; }
.ttm-cta-meta a{ display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; font-weight:600; font-size:15px; }
.ttm-cta-meta a svg{ width:18px; height:18px; color:var(--ttm-accent); flex:0 0 auto; }
.ttm-cta-card .ttm-btn{ width:100%; justify-content:center; position:relative; }

/* ---------- FAQ (static standout cards) ---------- */
.ttm-svc-faq{ background:var(--ttm-soft); padding:90px 0; border-top:1px solid var(--ttm-line); }
.ttm-faq-head{ text-align:center; max-width:640px; margin:0 auto 46px; }
.ttm-faq-head h2{ font-size:clamp(28px,3.8vw,40px); font-weight:700; color:var(--ttm-ink); margin:14px 0 14px; letter-spacing:-.5px; }
.ttm-faq-head p{ font-size:16px; line-height:1.7; color:var(--ttm-muted); margin:0; }
.ttm-faq-head .ttm-eyebrow{ justify-content:center; }
.ttm-faq-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:start; }
.ttm-faq-card{ position:relative; background:#fff; border:1px solid var(--ttm-line); border-left:4px solid var(--ttm-accent);
   border-radius:14px; padding:26px 28px; transition:.22s ease; }
.ttm-faq-card:hover{ transform:translateY(-4px); box-shadow:0 24px 50px -34px rgba(17,16,19,.3); }
.ttm-faq-card h3{ display:flex; gap:12px; align-items:flex-start; font-size:17.5px; font-weight:700; color:var(--ttm-ink); margin:0 0 12px; }
.ttm-faq-card h3 .ttm-faq-q-badge{ flex:0 0 auto; width:26px; height:26px; border-radius:8px; background:var(--ttm-accent); color:#0a1f0d;
   font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; margin-top:1px; }
.ttm-faq-card p{ font-size:15.5px; line-height:1.75; color:var(--ttm-muted); margin:0; padding-left:38px; }
.ttm-faq-cta{ text-align:center; margin-top:44px; }
.ttm-faq-cta .ttm-btn{ margin:0 auto; }

@media (max-width: 767px){ .ttm-faq-grid{ grid-template-columns:1fr; } }

/* ---------- Related ---------- */
.ttm-svc-related{ background:var(--ttm-soft); padding:90px 0; border-top:1px solid var(--ttm-line); }
.ttm-rel-head{ text-align:center; max-width:620px; margin:0 auto 50px; }
.ttm-rel-head h2{ font-size:clamp(28px,4vw,40px); font-weight:700; color:var(--ttm-ink); margin:14px 0 0; letter-spacing:-.5px; }
.ttm-rel-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.ttm-rel-card{ background:#fff; border:1px solid var(--ttm-line); border-radius:18px; padding:30px; text-decoration:none; display:block; transition:.25s ease; }
.ttm-rel-card:hover{ transform:translateY(-6px); box-shadow:0 26px 50px -30px rgba(17,16,19,.3); border-color:transparent; }
.ttm-rel-ico{ width:54px; height:54px; border-radius:14px; background:var(--ttm-soft); display:flex; align-items:center; justify-content:center; margin-bottom:20px; transition:.25s ease; }
.ttm-rel-ico svg{ width:26px; height:26px; color:var(--ttm-accent); }
.ttm-rel-card:hover .ttm-rel-ico{ background:var(--ttm-accent); }
.ttm-rel-card:hover .ttm-rel-ico svg{ color:#0a1f0d; }
.ttm-rel-card h3{ font-size:19px; font-weight:700; color:var(--ttm-ink); margin:0 0 10px; }
.ttm-rel-card p{ font-size:14.5px; line-height:1.6; color:var(--ttm-muted); margin:0 0 18px; }
.ttm-rel-more{ display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:14px; color:var(--ttm-ink); }
.ttm-rel-more svg{ width:14px; height:14px; color:var(--ttm-accent); transition:.2s ease; }
.ttm-rel-card:hover .ttm-rel-more svg{ transform:translateX(4px); }

/* ---------- Bottom CTA ---------- */
/* CTA is the block right before the footer: boxed (inset + rounded) with clear space */
.ttm-svc-cta{ position:relative; overflow:hidden; background:#111013; padding:90px 0; margin:30px 20px; border-radius:30px; }
@media (max-width:767px){ .ttm-svc-cta{ margin:20px 12px; border-radius:18px; } }
.ttm-svc-cta .ttm-shape{ position:absolute; pointer-events:none; color:var(--ttm-accent); }
.ttm-svc-cta .ttm-shape-1{ top:-40px; right:6%; opacity:.16; }
.ttm-svc-cta .ttm-shape-2{ bottom:-50px; left:4%; opacity:.10; }
.ttm-cta-inner{ position:relative; z-index:2; text-align:center; max-width:760px; margin:0 auto; }
.ttm-cta-inner .ttm-eyebrow{ color:#fff; }
.ttm-cta-inner h2{ font-size:clamp(30px,4.4vw,46px); font-weight:700; color:#fff; margin:16px 0 18px; letter-spacing:-.5px; }
.ttm-cta-inner p{ font-size:18px; line-height:1.6; color:#c4c8be; margin:0 0 30px; }
.ttm-cta-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 991px){
   .ttm-hero-grid{ grid-template-columns:1fr; }
   .ttm-hero-icon{ display:none; }
   .ttm-main-grid{ grid-template-columns:1fr; gap:40px; }
   .ttm-side{ position:static; }
   .ttm-hl-grid, .ttm-rel-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 575px){
   .ttm-svc-hero{ padding:140px 0 70px; }
   .ttm-hl-grid, .ttm-rel-grid{ grid-template-columns:1fr; }
   .ttm-content h2{ font-size:26px; }
}
