/* ReDiscover Television case study â€” page-specific styles.
   Works on top of Bootstrap 4 (loaded by the navbar file). Everything is scoped to .cs-page. */

.cs-page {
    --cs-bg: #03060d;
    --cs-card: #071426;
    --cs-card2: #0a1d36;
    --cs-blue: #0B77C3;
    --cs-blue-hi: #2a9ae6;
    --cs-cyan: #3fd0ff;
    --cs-line: rgba(11, 119, 195, .32);
    --cs-line-soft: rgba(11, 119, 195, .18);
    --cs-muted: #b9c6d8;
    --cs-r: 16px;
    display: block;
    position: relative;
    overflow: hidden;
    background-color: var(--cs-bg);
    color: #fff;
    line-height: 1.65;
    background-image:
        radial-gradient(900px 500px at 85% -5%, rgba(11, 119, 195, .22), transparent 60%),
        radial-gradient(700px 500px at -10% 40%, rgba(11, 119, 195, .12), transparent 60%),
        radial-gradient(800px 500px at 100% 75%, rgba(63, 208, 255, .07), transparent 60%);
    padding-bottom: 56px;
}

.cs-page :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
    margin: 0;
    padding: 0
}

.cs-page :where(ul, ol) {
    list-style: none
}

.cs-page img {
    max-width: 100%;
    height: auto;
    display: block
}

.cs-page a,
.cs-page a:hover,
.cs-page a:focus {
    text-decoration: none
}

/* ---------- buttons ---------- */
.cs-page .cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.5;
    padding: 13px 26px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s, border-color .25s
}

.cs-page .cs-btn:hover {
    color: #fff;
    transform: translateY(-2px)
}

.cs-page .cs-btn--primary {
    background: linear-gradient(135deg, var(--cs-blue), #0a5f9e);
    box-shadow: 0 8px 28px -8px rgba(11, 119, 195, .8)
}

.cs-page .cs-btn--primary:hover {
    background: linear-gradient(135deg, var(--cs-blue-hi), var(--cs-blue));
    box-shadow: 0 12px 34px -8px rgba(42, 154, 230, .9)
}

.cs-page .cs-btn--ghost {
    border-color: var(--cs-line);
    background: rgba(11, 119, 195, .08)
}

.cs-page .cs-btn--ghost:hover {
    border-color: var(--cs-blue-hi);
    background: rgba(11, 119, 195, .2)
}

.cs-page .cs-btn--white,
.cs-page .cs-btn--white:hover {
    background: #fff;
    color: #08233f;
    padding: 15px 30px;
    white-space: nowrap
}

.cs-page .cs-btn--white:hover {
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5)
}

/* ---------- hero ---------- */
.cs-hero {
    padding: 64px 0 44px
}

.cs-eyebrow {
    color: var(--cs-cyan);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px
}

.cs-page h1 {
    font-size: clamp(2rem, 3.9vw, 3.1rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff
}

.cs-hl {
    background: linear-gradient(90deg, var(--cs-blue-hi), var(--cs-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.cs-lead {
    color: var(--cs-muted);
    font-size: 1.02rem;
    margin-top: 20px;
    max-width: 56ch
}

.cs-pills {
    gap: 10px;
    margin-top: 24px
}

.cs-pills li {
    font-size: .78rem;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--cs-line);
    background: rgba(11, 119, 195, .1);
    color: #d7e9f8
}

.cs-btnrow {
    gap: 14px;
    margin-top: 30px
}

/* ---------- framed images ---------- */
.cs-frame {
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r);
    overflow: hidden;
    background: linear-gradient(160deg, #071a31, #040b17);
    box-shadow: 0 0 0 1px rgba(63, 208, 255, .04), 0 30px 80px -30px rgba(11, 119, 195, .7)
}

.cs-frame img {
    width: 100%;
    height: auto
}

.cs-frame--soft {
    background: radial-gradient(70% 70% at 50% 60%, rgba(11, 119, 195, .28), transparent 70%), linear-gradient(160deg, #071a31, #040b17)
}

.cs-logo-box {
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r);
    padding: 28px;
    background: radial-gradient(80% 80% at 50% 50%, rgba(11, 119, 195, .2), transparent 75%), linear-gradient(160deg, #08182d, #040b17);
    box-shadow: 0 24px 60px -30px rgba(11, 119, 195, .6)
}

/* ---------- details strip ---------- */
.cs-meta {
    margin-bottom: 0;
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r);
    background: linear-gradient(180deg, rgba(10, 29, 54, .8), rgba(5, 14, 28, .8));
    overflow: hidden
}

.cs-meta .cs-meta__item {
    padding: 20px 22px;
    border-bottom: 1px solid var(--cs-line-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px
}

.cs-meta__item:last-child {
    border-bottom: 0
}

.cs-meta dt {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cs-blue-hi)
}

.cs-meta dd {
    font-size: .88rem;
    color: #e8f1fa;
    font-weight: 500;
    line-height: 1.45
}

.cs-meta__cta {
    align-items: stretch
}

@media (min-width:992px) {
    .cs-meta .cs-meta__item {
        border-bottom: 0;
        border-right: 1px solid var(--cs-line-soft)
    }

    .cs-meta__item:last-child {
        border-right: 0;
        align-items: center
    }
}

/* ---------- sections & headings ---------- */
.cs-sec {
    padding: 44px 0
}

.cs-head {
    max-width: 880px;
    margin-bottom: 34px
}

.cs-page .cs-h2 {
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1.25;
    font-weight: 700;
    position: relative;
    padding-top: 18px;
    color: #fff
}

.cs-page .cs-h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cs-blue), var(--cs-cyan))
}

.cs-p {
    color: var(--cs-muted);
    font-size: 1rem;
    margin-top: 14px
}

/* row spacing (vertical gutter between Bootstrap columns) */
.cs-row {
    margin-bottom: -18px
}

.cs-row>[class*="col"] {
    margin-bottom: 18px
}

.cs-row+.cs-row {
    margin-top: 18px
}

/* ---------- cards ---------- */
.cs-card {
    background: linear-gradient(165deg, var(--cs-card2), var(--cs-card));
    border: 1px solid var(--cs-line-soft);
    border-radius: var(--cs-r);
    padding: 24px 24px 26px;
    position: relative;
    transition: transform .3s, border-color .3s, box-shadow .3s
}

.cs-card:hover {
    transform: translateY(-4px);
    border-color: var(--cs-blue);
    box-shadow: 0 18px 44px -22px rgba(11, 119, 195, .85)
}

.cs-page .cs-card h3 {
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 10px 0 8px;
    color: #fff
}

.cs-card p {
    color: var(--cs-muted);
    font-size: .9rem
}

.cs-num {
    display: inline-block;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .1em;
    color: var(--cs-cyan)
}

.cs-num--dot {
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cs-blue), #0a5f9e);
    color: #fff;
    letter-spacing: 0;
    box-shadow: 0 6px 18px -4px rgba(11, 119, 195, .8)
}

/* ---------- stats ---------- */
.cs-stat {
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r);
    padding: 26px 24px;
    background: radial-gradient(120% 140% at 0% 0%, rgba(11, 119, 195, .28), transparent 60%), linear-gradient(165deg, var(--cs-card2), var(--cs-card));
    transition: transform .3s, box-shadow .3s
}

.cs-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px -22px rgba(11, 119, 195, .9)
}

.cs-stat strong {
    display: block;
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    line-height: 1.1;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, var(--cs-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.cs-stat span {
    display: block;
    margin-top: 8px;
    color: var(--cs-muted);
    font-size: .92rem
}

/* ---------- solution rows (image | text | image) ---------- */
.cs-sol-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px
}

.cs-page .cs-sol-text h3 {
    font-size: 1.2rem
}

.cs-shot {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--cs-r);
    min-width: 0
}

.cs-shot--phone {
    border: 1px solid var(--cs-line-soft);
    background: radial-gradient(70% 60% at 50% 55%, rgba(11, 119, 195, .3), transparent 72%), linear-gradient(165deg, #08182d, #040b17);
    padding: 22px 20px
}

.cs-shot--phone img {
    width: auto;
    max-width: 100%;
    max-height: 380px
}

.cs-shot.cs-frame {
    align-items: center
}

/* ---------- process connector ---------- */
@media (min-width:992px) {
    .cs-step::after {
        content: "";
        position: absolute;
        top: 41px;
        right: -31px;
        width: 30px;
        height: 2px;
        background: linear-gradient(90deg, var(--cs-blue), transparent)
    }

    .cs-step--last::after {
        display: none
    }
}

/* ---------- technology stack ---------- */
.cs-page .cs-tech-section {
    position: relative;
}

.cs-page .cs-tech-panel {
    background: linear-gradient(180deg, #071527 0%, #040c18 100%);
    border: 1px solid rgba(11, 119, 195, 0.28);
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.cs-page .cs-tech-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(63, 208, 255, 0.45), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.cs-page .cs-tech-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(63, 208, 255, 0.6);
    box-shadow: 0 16px 36px rgba(11, 119, 195, 0.24), 0 0 24px rgba(63, 208, 255, 0.12);
}

.cs-page .cs-tech-panel:hover::before {
    opacity: 1;
}

.cs-page .cs-tech-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(11, 119, 195, 0.2);
}

.cs-page .cs-tech-cat-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: rgba(11, 119, 195, 0.14);
    border: 1px solid rgba(11, 119, 195, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-cyan);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.cs-page .cs-tech-panel:hover .cs-tech-cat-icon {
    background: rgba(11, 119, 195, 0.28);
    border-color: var(--cs-cyan);
    transform: scale(1.06);
}

.cs-page .cs-tech-cat-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.cs-page .cs-tech-cat-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.cs-page .cs-tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-top: auto;
}

.cs-page .cs-tech-grid--1 {
    display: flex;
    justify-content: center;
}

.cs-page .cs-tech-grid--1 .cs-tech-card {
    width: 100%;
    max-width: 170px;
}

.cs-page .cs-tech-card {
    background: #ffffff;
    border: 1px solid rgba(11, 119, 195, 0.18);
    border-radius: 14px;
    padding: 16px 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 112px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    cursor: default;
}

.cs-page .cs-tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--cs-blue);
    box-shadow: 0 10px 24px rgba(11, 119, 195, 0.28);
}

.cs-page .cs-tech-card--span2 {
    grid-column: span 2;
    max-width: 200px;
    margin: 0 auto;
    width: 100%;
}

.cs-page .cs-tech-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.cs-page .cs-tech-card-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.cs-page .cs-tech-card:hover .cs-tech-card-icon img {
    transform: scale(1.1);
}

.cs-page .cs-tech-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0b1a2e;
    line-height: 1.25;
    text-align: center;
    display: block;
}

@media (max-width: 991.98px) {
    .cs-page .cs-tech-panel {
        padding: 20px 18px;
    }
}

@media (max-width: 575.98px) {
    .cs-page .cs-tech-cat-title {
        font-size: 1rem;
    }
    .cs-page .cs-tech-card {
        padding: 14px 8px 12px;
        min-height: 104px;
    }
    .cs-page .cs-tech-card-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 6px;
    }
    .cs-page .cs-tech-card-name {
        font-size: 0.78rem;
    }
}
/* ---------- results ---------- */
.cs-outcome {
    padding: 44px 16px
}

.cs-phones {
    display: flex;
    align-items: center;
    justify-content: center
}

.cs-page .cs-phones img {
    height: auto;
    flex: 0 0 auto
}

.cs-page .cs-phones__side {
    width: 25%;
    position: relative;
    z-index: 1
}

.cs-page .cs-phones__center {
    width: 30%;
    position: relative;
    z-index: 2;
    margin: 0 -2.5%
}

/* ---------- CTA ---------- */
.cs-cta {
    gap: 32px;
    padding: 44px 48px;
    border-radius: 22px;
    border: 1px solid rgba(63, 208, 255, .35);
    background: radial-gradient(60% 140% at 100% 0%, rgba(63, 208, 255, .28), transparent 60%), linear-gradient(120deg, #0a5f9e, var(--cs-blue) 55%, #0a4d85);
    box-shadow: 0 30px 80px -30px rgba(11, 119, 195, .9)
}

.cs-page .cs-cta h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff
}

.cs-cta p {
    margin-top: 10px;
    max-width: 62ch;
    color: #e6f2fc
}

/* ---------- scroll reveal (only active once JS adds .cs-js) ---------- */
.cs-js .cs-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease
}

.cs-js .cs-reveal.cs-in {
    opacity: 1;
    transform: none
}

@media (prefers-reduced-motion:reduce) {
    .cs-js .cs-reveal {
        opacity: 1;
        transform: none;
        transition: none
    }

    .cs-page * {
        transition: none !important
    }
}

/* ---------- responsive ---------- */
@media (max-width:991.98px) {
    .cs-hero {
        padding-top: 40px
    }

    .cs-cta {
        padding: 34px 28px
    }
}

@media (max-width:575.98px) {
    .cs-sec {
        padding: 30px 0
    }

    .cs-shot--phone {
        padding: 18px
    }

    .cs-shot--phone img {
        max-height: 380px
    }

    .cs-page .cs-btn {
        width: 100%
    }

    .cs-btnrow {
        flex-direction: column
    }

    .cs-page .cs-btn--white {
        white-space: normal
    }
}
