/* ==========================================================================
   SISGAIN | Dr. Salah Alzait Case Study
   Scoped CSS: sab rules .sg-case-study ke andar hain, isliye site ke baaki
   styles ko affect nahi karenge. Bootstrap 4 ke saath use karein.
   (Isme koi font property set nahi ki gayi - site ka default font hi lagega.)
   ========================================================================== */

/* ---------- Wrapper + variables ---------- */
.sg-case-study {
    --sg-bg: #080D19;
    --sg-card: #111A2E;
    --sg-card-hi: #16223B;
    --sg-card-border: #1D2A45;
    --sg-line: #2A3654;
    --sg-accent: #4C9BFF;
    --sg-text: #E6ECF5;
    --sg-muted: #9AA8C2;
    --sg-amber: #F5B942;

    padding: 30px 0;
    background: var(--sg-bg);
    color: var(--sg-text);
    line-height: 1.7;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.sg-case-study *,
.sg-case-study *::before,
.sg-case-study *::after {
    box-sizing: border-box;
}

/* Bootstrap defaults ka scoped reset */
.sg-case-study h1,
.sg-case-study h2,
.sg-case-study h3,
.sg-case-study p,
.sg-case-study ul,
.sg-case-study dl,
.sg-case-study dt,
.sg-case-study dd {
    margin: 0;
    padding: 0;
}

.sg-case-study img {
    max-width: 100%;
}

.sg-case-study a:focus-visible,
.sg-case-study .sg-btn:focus-visible {
    outline: 2px solid var(--sg-accent);
    outline-offset: 3px;
    box-shadow: none;
}

.sg-case-study .sg-wrap {
    max-width: 1100px;
    padding-left: 24px;
    padding-right: 24px;
}

.sg-case-study .sg-section {
    padding: 15px 0;
}

/* ---------- Typography ---------- */
.sg-case-study .sg-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--sg-accent);
    font-weight: 600;
    margin-bottom: 14px;
}

.sg-case-study h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    color: var(--sg-text);
}

.sg-case-study h2 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    color: var(--sg-text);
}

.sg-case-study h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
    color: var(--sg-text);
}

.sg-case-study h3.sg-h3-big {
    font-size: 26px;
    margin-bottom: 6px;
}

.sg-case-study h3.sg-h3-spaced {
    margin-bottom: 16px;
}

.sg-case-study p {
    color: var(--sg-muted);
    margin-bottom: 14px;
}

.sg-case-study p.sg-lead {
    font-size: 18px;
    color: var(--sg-text);
}

.sg-case-study .sg-sub {
    font-size: 16px;
    color: var(--sg-muted);
    margin-bottom: 36px;
    max-width: 760px;
}

.sg-case-study .sg-solves {
    font-size: 14px;
    color: var(--sg-accent);
    margin-bottom: 10px;
    font-weight: 600;
}

/* ---------- Spacing helpers ---------- */
.sg-case-study .sg-mt-18 {
    margin-top: 18px;
}

.sg-case-study .sg-mt-28 {
    margin-top: 28px;
}

.sg-case-study .sg-mb-36 {
    margin-bottom: 36px;
}

.sg-case-study .sg-block {
    margin-bottom: 72px;
}

/* ---------- Card ---------- */
.sg-case-study .sg-card {
    background: var(--sg-card);
    border: 1px solid var(--sg-card-border);
    border-radius: 14px;
    padding: 26px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.sg-case-study .sg-card:hover {
    transform: translateY(-4px);
    border-color: rgba(76, 155, 255, .45);
    background: var(--sg-card-hi);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

.sg-case-study .sg-num {
    color: var(--sg-accent);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.sg-case-study .sg-benefit {
    font-size: 14px;
    color: var(--sg-text);
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--sg-card-border);
    margin-bottom: 0;
}

.sg-case-study .sg-benefit strong {
    color: var(--sg-amber);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* ---------- Buttons ---------- */
.sg-case-study .sg-btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin: 6px 10px 6px 0;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.sg-case-study .sg-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.sg-case-study .sg-btn-primary {
    background: var(--sg-accent);
    color: #05101F;
    border: 2px solid var(--sg-accent);
}

.sg-case-study .sg-btn-primary:hover {
    background: var(--sg-accent);
    color: #05101F;
    box-shadow: 0 10px 26px rgba(76, 155, 255, .35);
}

/* View Our Services (a tag) - border ke saath */
.sg-case-study .sg-btn-ghost {
    background: transparent;
    color: var(--sg-accent);
    border: 2px solid var(--sg-accent);
}

.sg-case-study .sg-btn-ghost:hover {
    background: rgba(76, 155, 255, .12);
    color: var(--sg-accent);
}

.sg-case-study .sg-hero-ctas {
    margin-top: 26px;
}

/* ---------- Project meta (dl) ---------- */
.sg-case-study .sg-meta {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px 20px;
}

.sg-case-study .sg-meta dt {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--sg-accent);
    font-weight: 600;
    padding-top: 3px;
}

.sg-case-study .sg-meta dd {
    color: var(--sg-text);
    font-size: 15px;
}

/* ---------- Hero ---------- */
.sg-case-study .sg-hero {
    position: relative;
    overflow: hidden;
    padding: 15px 0;
    background:
        radial-gradient(900px 480px at 85% 30%, rgba(76, 155, 255, .16), transparent 65%),
        radial-gradient(600px 400px at 0% 0%, rgba(76, 155, 255, .07), transparent 70%);
}

.sg-case-study .sg-hero-phone {
    animation: sg-rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes sg-rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Phone / browser mockups ---------- */
.sg-case-study .sg-phone-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sg-case-study .sg-phone {
    width: 300px;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--sg-line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    transition: transform .35s ease, box-shadow .35s ease;
}

.sg-case-study .sg-phone:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(76, 155, 255, .3);
}

.sg-case-study .sg-phone img {
    display: block;
    width: 100%;
    height: auto;
}

.sg-case-study .sg-phone-caption {
    font-size: 13px;
    color: var(--sg-muted);
    text-align: center;
    margin-top: 14px;
    max-width: 300px;
    margin-bottom: 0;
}

.sg-case-study .sg-phone-caption.sg-caption-wide {
    max-width: none;
}

.sg-case-study .sg-browser {
    background: #fff;
    border: 1px solid var(--sg-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    max-width: 860px;
    margin: 0 auto;
}

.sg-case-study .sg-browser img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- About ---------- */
.sg-case-study .sg-about-head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sg-case-study .sg-about-logo {
    flex: 0 0 auto;
    display: block;
    width: 66px;
    height: 84px;
    object-fit: cover;
    object-position: center;
}

.sg-case-study .sg-about-right>.sg-card:hover {
    transform: none;
}

/* ---------- Stats ---------- */
.sg-case-study .sg-stat {
    position: relative;
    overflow: hidden;
}

.sg-case-study .sg-stat-big {
    font-size: 40px;
    font-weight: 700;
    color: var(--sg-accent);
    line-height: 1.1;
    margin-bottom: 8px;
}

.sg-case-study .sg-stat-what {
    color: var(--sg-text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.sg-case-study .sg-stat-src {
    font-size: 12px;
    color: var(--sg-muted);
}

.sg-case-study .sg-stat::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--sg-accent);
    transition: width .35s ease;
}

.sg-case-study .sg-stat:hover::after {
    width: 100%;
}

/* ---------- Process ---------- */
.sg-case-study .sg-steps {
    position: relative;
}

.sg-case-study .sg-steps::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sg-line) 12%, var(--sg-line) 88%, transparent);
}

.sg-case-study .sg-steps .sg-card {
    position: relative;
    z-index: 1;
}

.sg-case-study .sg-step-no {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(76, 155, 255, .12);
    border: 1px solid rgba(76, 155, 255, .5);
    color: var(--sg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.sg-case-study ul.sg-bul {
    list-style: none;
    margin-top: 10px;
}

.sg-case-study ul.sg-bul.sg-bul-flush {
    margin-top: 0;
}

.sg-case-study ul.sg-bul li {
    color: var(--sg-muted);
    font-size: 15px;
    padding: 4px 0 4px 18px;
    position: relative;
}

.sg-case-study ul.sg-bul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sg-accent);
}

/* ---------- Technology ---------- */
.sg-case-study .sg-tech-ico {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(76, 155, 255, .1);
    border: 1px solid rgba(76, 155, 255, .28);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.sg-case-study .sg-tech-ico svg {
    width: 24px;
    height: 24px;
    stroke: var(--sg-accent);
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sg-case-study .sg-tech-cat {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--sg-accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.sg-case-study .sg-tech-val {
    color: var(--sg-text);
    font-size: 15px;
}

/* ---------- Outcomes ---------- */
.sg-case-study ul.sg-outcomes {
    list-style: none;
}

.sg-case-study .sg-outcomes li {
    color: var(--sg-text);
    font-size: 15px;
    padding: 6px 0 6px 26px;
    position: relative;
    list-style: none;
}

.sg-case-study .sg-outcomes li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--sg-accent);
    font-weight: 700;
}

/* ---------- CTA box ---------- */
.sg-case-study .sg-cta-box {
    background: linear-gradient(135deg, #14233F, #0D1629);
    border: 1px solid var(--sg-card-border);
    border-radius: 18px;
    padding: 56px 48px;
    text-align: center;
    margin-top: 56px;
    position: relative;
    overflow: hidden;
}

.sg-case-study .sg-cta-box::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(76, 155, 255, .22), transparent 65%);
    pointer-events: none;
}

.sg-case-study .sg-cta-box>* {
    position: relative;
}

.sg-case-study .sg-cta-box p {
    max-width: 640px;
    margin: 0 auto 22px;
}

.sg-case-study .sg-cta-box .sg-btn {
    margin: 6px;
}

/* ---------- Reveal on scroll (JS wrapper pe sg-js lagata hai) ---------- */
.sg-case-study.sg-js .sg-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.sg-case-study.sg-js .sg-reveal.sg-in {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
    .sg-case-study .sg-steps::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .sg-case-study h1 {
        font-size: 34px;
    }

    .sg-case-study h2 {
        font-size: 27px;
    }
}

@media (max-width: 767.98px) {
    .sg-case-study .sg-block {
        margin-bottom: 48px;
    }
}

@media (max-width: 560px) {
    .sg-case-study h1 {
        font-size: 28px;
    }

    .sg-case-study h3.sg-h3-big {
        font-size: 22px;
    }

    .sg-case-study .sg-meta {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .sg-case-study .sg-meta dd {
        margin-bottom: 12px;
    }

    .sg-case-study .sg-cta-box {
        padding: 36px 22px;
    }

    .sg-case-study .sg-phone {
        width: 260px;
    }

    .sg-case-study .sg-about-head {
        gap: 14px;
    }

    .sg-case-study .sg-about-logo {
        width: 50px;
        height: 64px;
    }

    .sg-case-study .sg-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    .sg-case-study .sg-cta-box .sg-btn {
        margin: 8px 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sg-case-study *,
    .sg-case-study *::before,
    .sg-case-study *::after {
        animation: none !important;
        transition: none !important;
    }

    .sg-case-study.sg-js .sg-reveal {
        opacity: 1;
        transform: none;
    }
}