/* ============================================================
   IPGlobal – Case Study Page Styles
   Extends service-page.css for case study templates
   ============================================================ */

/* ── Case study hero extension ── */
.ipg-cs-hero {
    background: linear-gradient(135deg, #050d1a 0%, #0a1f4e 55%, #0d2860 100%);
    padding: 80px 0 96px;
    position: relative;
    overflow: hidden;
}
.ipg-cs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 75% 40%, rgba(0,212,255,.08) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 15% 80%, rgba(26,79,160,.12) 0%, transparent 60%);
    pointer-events: none;
}
.ipg-cs-hero .ipg-sp-hero-inner {
    grid-template-columns: 1fr 400px;
}

/* ── Industry / client badge in hero ── */
.ipg-cs-client-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,212,255,.12);
    border: 1px solid rgba(0,212,255,.28);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #00d4ff;
    margin-bottom: 18px;
}
.ipg-cs-client-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00d4ff;
    flex-shrink: 0;
}

/* ── Meta row of tags under hero lead ── */
.ipg-cs-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}
.ipg-cs-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    white-space: nowrap;
}
.ipg-cs-meta-tag::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00d4ff;
    flex-shrink: 0;
}

/* ============================================================
   Challenge Section
   ============================================================ */
.ipg-cs-challenge {
    background: #fff;
    padding: 80px 0;
}
.ipg-cs-challenge-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}
.ipg-cs-challenge-text p {
    font-size: 15.5px;
    color: #3d4f67;
    line-height: 1.78;
    margin: 0 0 18px;
}
.ipg-cs-challenge-text p:last-of-type {
    margin-bottom: 0;
}

/* ── Challenge bullet list ── */
.ipg-cs-challenge-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ipg-cs-challenge-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    color: #3d4f67;
    line-height: 1.6;
    padding: 14px 18px;
    background: #f7f9fc;
    border: 1px solid #e4eaf3;
    border-left: 3px solid #1a4fa0;
    border-radius: 0 10px 10px 0;
}
.ipg-cs-challenge-list li::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: #dbeafe url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2v4l2.5 2.5' stroke='%231a4fa0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 10px 10px;
    margin-top: 1px;
    flex-shrink: 0;
}
.ipg-cs-challenge-sidebar {
    padding-top: 4px;
}
.ipg-cs-challenge-sidebar h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #1a4fa0;
    margin: 0 0 20px;
}

/* ============================================================
   Solution Section
   ============================================================ */
.ipg-cs-solution {
    background: #f7f9fc;
    padding: 80px 0;
    border-top: 1px solid #e4eaf3;
    border-bottom: 1px solid #e4eaf3;
}
.ipg-cs-solution-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}
.ipg-cs-solution-text p {
    font-size: 15.5px;
    color: #3d4f67;
    line-height: 1.78;
    margin: 0 0 18px;
}
.ipg-cs-solution-text p:last-of-type {
    margin-bottom: 0;
}

/* ── Service tag pills ── */
.ipg-cs-solution-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.ipg-cs-solution-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #c7d8f5;
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1a4fa0;
}
.ipg-cs-solution-tag::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1a4fa0;
    flex-shrink: 0;
}
.ipg-cs-solution-sidebar h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #1a4fa0;
    margin: 0 0 20px;
}

/* ============================================================
   Results Section
   ============================================================ */
.ipg-cs-results {
    background: #fff;
    padding: 80px 0;
}
.ipg-cs-results-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}
.ipg-cs-results-header p {
    font-size: 16px;
    color: #3d4f67;
    line-height: 1.72;
    margin: 24px 0 0;
}

/* ── 4-col result stat grid ── */
.ipg-cs-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.ipg-cs-result-card {
    background: #f7f9fc;
    border: 1px solid #e4eaf3;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ipg-cs-result-card:hover {
    box-shadow: 0 8px 32px rgba(26,79,160,.1);
    transform: translateY(-2px);
    border-color: #c7d8f5;
}
.ipg-cs-result-num {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: #1a4fa0;
    letter-spacing: -.03em;
    line-height: 1;
    margin: 0 0 10px;
    display: block;
}
.ipg-cs-result-label {
    font-size: 13px;
    font-weight: 600;
    color: #5a6a7e;
    line-height: 1.45;
    display: block;
}

/* ── Summary paragraph below grid ── */
.ipg-cs-results-summary {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 15.5px;
    color: #3d4f67;
    line-height: 1.75;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .ipg-cs-hero .ipg-sp-hero-inner { grid-template-columns: 1fr; }
    .ipg-cs-challenge-inner { grid-template-columns: 1fr; gap: 40px; }
    .ipg-cs-solution-inner  { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
    .ipg-cs-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ipg-cs-hero    { padding: 60px 0 72px; }
    .ipg-cs-challenge { padding: 56px 0; }
    .ipg-cs-solution  { padding: 56px 0; }
    .ipg-cs-results   { padding: 56px 0; }
    .ipg-cs-results-grid { grid-template-columns: repeat(2, 1fr); }
    .ipg-cs-meta-row { gap: 6px; }
}
@media (max-width: 420px) {
    .ipg-cs-results-grid { grid-template-columns: 1fr; }
}
