/* =========================================================
   SUCCESS STORY DETAILS
   ChildVision Foundation
   ========================================================= */


/* =========================================================
   ROOT
   ========================================================= */

:root {

    --cv-purple: #6f2c91;
    --cv-purple-dark: #54206f;
    --cv-magenta: #c21875;

    --cv-text: #292929;
    --cv-muted: #6f6f6f;

    --cv-light: #f8f7fa;
    --cv-white: #ffffff;

    --cv-border: #e8e5eb;

    --cv-success: #27864b;

    --cv-shadow:
        0 12px 35px rgba(40, 20, 55, 0.08);

    --cv-shadow-hover:
        0 18px 45px rgba(40, 20, 55, 0.13);

}


/* =========================================================
   PAGE
   ========================================================= */

.success-detail-page {

    background: var(--cv-white);

    color: var(--cv-text);

    overflow: hidden;

}


/* =========================================================
   TOP BAR
   ========================================================= */

.story-topbar {

    padding: 20px 0;

    background: #fff;

    border-bottom: 1px solid var(--cv-border);

}


.back-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--cv-purple);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.2s ease;

}


.back-link i {

    font-size: 17px;

    transition: transform 0.2s ease;

}


.back-link:hover {

    color: var(--cv-purple-dark);

}


.back-link:hover i {

    transform: translateX(-4px);

}


/* =========================================================
   HERO
   ========================================================= */

.story-hero {

    padding: 70px 0 80px;

    background:
        linear-gradient(
            180deg,
            #fbf9fc 0%,
            #ffffff 100%
        );

}


.story-hero-image {

    position: relative;

    width: 100%;

    max-width: 500px;

    margin: 0 auto;

    background: #fff;

    border-radius: 22px;

    overflow: hidden;

    box-shadow: var(--cv-shadow);

}


.story-main-image {

    display: block;

    width: 100%;

    height: 480px;

    object-fit: contain;

}


.story-image-placeholder {

    width: 100%;

    height: 480px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background: #f3f0f5;

    color: #999;

}


.story-image-placeholder i {

    font-size: 60px;

}


.story-image-placeholder span {

    font-size: 14px;

}


/* =========================================================
   SUCCESS BADGE
   ========================================================= */

.success-badge {

    position: absolute;

    left: 20px;

    bottom: 20px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 9px 15px;

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.95);

    color: var(--cv-success);

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.12);

}


.success-badge i {

    font-size: 16px;

}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.story-hero-content {

    max-width: 650px;

}


.story-label {

    display: inline-block;

    margin-bottom: 14px;

    color: var(--cv-purple);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.8px;

}


.story-hero-content h1 {

    margin: 0 0 18px;

    color: var(--cv-text);

    font-size: clamp(38px, 5vw, 58px);

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -1.5px;

}


.story-intro {

    max-width: 600px;

    margin-bottom: 30px;

    color: var(--cv-muted);

    font-size: 18px;

    line-height: 1.75;

}


/* =========================================================
   INFORMATION GRID
   ========================================================= */

.story-info-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 25px;

}


.story-info-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    background: #fff;

    border: 1px solid var(--cv-border);

    border-radius: 12px;

}


.info-icon {

    width: 40px;

    height: 40px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: #f4edf8;

    color: var(--cv-purple);

}


.info-icon i {

    font-size: 18px;

}


.info-label {

    display: block;

    margin-bottom: 3px;

    color: #858585;

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.6px;

}


.story-info-item strong {

    display: block;

    color: var(--cv-text);

    font-size: 14px;

    line-height: 1.35;

}


/* =========================================================
   FINANCIAL
   ========================================================= */

.story-financial {

    display: flex;

    align-items: center;

    gap: 25px;

    margin: 25px 0;

    padding: 20px;

    background: #faf7fc;

    border: 1px solid #eee5f3;

    border-radius: 14px;

}


.financial-item {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.financial-item span {

    color: var(--cv-muted);

    font-size: 12px;

    font-weight: 600;

}


.financial-item strong {

    color: var(--cv-purple);

    font-size: 23px;

    font-weight: 800;

}


.financial-divider {

    width: 1px;

    height: 45px;

    background: var(--cv-border);

}


/* =========================================================
   BUTTONS
   ========================================================= */

.story-actions {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 12px;

    margin-top: 30px;

}


.btn-story-primary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 48px;

    padding: 12px 22px;

    border-radius: 8px;

    background: var(--cv-purple);

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    border: 1px solid var(--cv-purple);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.btn-story-primary:hover {

    background: var(--cv-purple-dark);

    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(111, 44, 145, 0.22);

}


.btn-story-primary i {

    transition: transform 0.2s ease;

}


.btn-story-primary:hover i {

    transform: translateX(3px);

}


.btn-story-secondary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 12px 22px;

    border-radius: 8px;

    background: #fff;

    color: var(--cv-purple);

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    border: 1px solid var(--cv-border);

    transition: all 0.2s ease;

}


.btn-story-secondary:hover {

    color: var(--cv-purple-dark);

    border-color: var(--cv-purple);

    background: #faf7fc;

}


/* =========================================================
   BEFORE / AFTER SECTION
   ========================================================= */

.story-before-after-section {

    padding: 85px 0;

    background: var(--cv-light);

}


.section-heading {

    max-width: 680px;

    margin: 0 auto 45px;

}


.section-small-title {

    display: inline-block;

    margin-bottom: 10px;

    color: var(--cv-purple);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.7px;

    text-transform: uppercase;

}


.section-heading h2 {

    margin: 0 0 12px;

    color: var(--cv-text);

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.6px;

}


.section-heading p {

    margin: 0;

    color: var(--cv-muted);

    font-size: 16px;

    line-height: 1.7;

}


/* =========================================================
   JOURNEY IMAGE CARD
   ========================================================= */

.journey-image-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--cv-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(40, 20, 55, 0.06);
}


.journey-image-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--cv-shadow-hover);

}


.journey-image-wrapper {
    width: 100%;
    height: 300px;
    background: #f5f3f6;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


.journey-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    padding: 12px;

    transition: transform 0.3s ease;
}


.journey-image-card:hover .journey-image {
    transform: scale(1.02);
}


/* =========================================================
   JOURNEY CAPTION
   ========================================================= */

.journey-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 20px;
}


.journey-caption span {
    display: block;

    margin-bottom: 3px;

    color: var(--cv-purple);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.journey-caption h3 {
    margin: 0;

    color: var(--cv-text);

    font-size: 17px;
    font-weight: 700;
}


.journey-caption > i {
    font-size: 20px;
    color: var(--cv-purple);
}


.after-card .journey-caption > i {
    color: var(--cv-success);
}


/* =========================================================
   STORY DETAILS
   ========================================================= */

.story-details-section {

    padding: 85px 0;

    background: #fff;

}


.description-card {

    padding: 35px 38px;

    background: #fff;

    border: 1px solid var(--cv-border);

    border-radius: 18px;

    box-shadow: 0 8px 30px rgba(40, 20, 55, 0.04);

}


.description-card h2 {

    margin: 0 0 25px;

    color: var(--cv-text);

    font-size: 30px;

    line-height: 1.3;

    font-weight: 800;

}


.story-description {

    color: #5f5f5f;

    font-size: 16px;

    line-height: 1.9;

}


.story-description p {

    margin: 0;

}


/* =========================================================
   PERSONAL DETAILS CARD
   ========================================================= */

.personal-details-card {

    padding: 30px;

    background: #faf8fb;

    border: 1px solid #eee7f1;

    border-radius: 18px;

}


.personal-details-card h3 {

    margin: 0 0 25px;

    color: var(--cv-text);

    font-size: 22px;

    line-height: 1.3;

    font-weight: 750;

}


/* =========================================================
   DETAIL ROW
   ========================================================= */

.detail-row {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 15px 0;

    border-bottom: 1px solid var(--cv-border);

}


.detail-row:first-of-type {

    padding-top: 0;

}


.detail-row:last-child {

    padding-bottom: 0;

    border-bottom: 0;

}


.detail-icon {

    width: 38px;

    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: #eee5f3;

    color: var(--cv-purple);

}


.detail-row span {

    display: block;

    margin-bottom: 4px;

    color: #8a8a8a;

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}


.detail-row strong {

    display: block;

    color: var(--cv-text);

    font-size: 14px;

    line-height: 1.45;

}


/* =========================================================
   VIDEO
   ========================================================= */

.story-video-section {

    padding: 85px 0;

    background: var(--cv-light);

}


.video-wrapper {

    position: relative;

    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: #151515;

    border-radius: 18px;

    box-shadow: var(--cv-shadow);

}


.video-wrapper iframe {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    border: 0;

}


/* =========================================================
   CTA
   ========================================================= */

.story-cta-section {

    padding: 70px 0;

    background: #fff;

}


.story-cta {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 45px 50px;

    background:
        linear-gradient(
            135deg,
            #f7f0fa 0%,
            #fcf8fd 100%
        );

    border: 1px solid #eadff0;

    border-radius: 20px;

}


.cta-content {

    max-width: 650px;

}


.cta-content h2 {

    margin: 0 0 10px;

    color: var(--cv-text);

    font-size: clamp(28px, 4vw, 38px);

    line-height: 1.2;

    font-weight: 800;

}


.cta-content p {

    margin: 0;

    color: var(--cv-muted);

    font-size: 16px;

    line-height: 1.7;

}


.cta-action {

    flex-shrink: 0;

}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 991.98px) {


    .story-hero {

        padding: 55px 0 65px;

    }


    .story-main-image,
    .story-image-placeholder {

        height: 420px;

    }


    .story-hero-content {

        max-width: 100%;

    }


    .story-hero-content h1 {

        font-size: 46px;

    }


    .journey-image-wrapper {

        height: 360px;

    }


    .story-cta {

        padding: 38px;

    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767.98px) {


    .story-topbar {

        padding: 16px 0;

    }


    .story-hero {

        padding: 35px 0 50px;

    }


    .story-hero-image {

        max-width: 100%;

        border-radius: 16px;

    }


    .story-main-image,
    .story-image-placeholder {

        height: 350px;

    }


    .success-badge {

        left: 14px;

        bottom: 14px;

        padding: 8px 12px;

        font-size: 12px;

    }


    .story-hero-content {

        margin-top: 10px;

    }


    .story-hero-content h1 {

        font-size: 38px;

        letter-spacing: -0.8px;

    }


    .story-intro {

        font-size: 16px;

        line-height: 1.7;

    }


    .story-info-grid {

        grid-template-columns: 1fr;

        gap: 10px;

    }


    .story-info-item {

        padding: 13px;

    }


    .story-financial {

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

    }


    .financial-divider {

        width: 100%;

        height: 1px;

    }


    .story-actions {

        flex-direction: column;

        align-items: stretch;

    }


    .btn-story-primary,
    .btn-story-secondary {

        width: 100%;

    }


    .story-before-after-section,
    .story-details-section,
    .story-video-section {

        padding: 60px 0;

    }


    .section-heading {

        margin-bottom: 30px;

    }


    .section-heading h2 {

        font-size: 30px;

    }


   .journey-image-wrapper {
        height: 260px;
    }

    .journey-image {
        padding: 10px;
    }


    .journey-caption {

        padding: 17px;

    }


    .journey-caption h3 {

        font-size: 16px;

    }


    .description-card {

        padding: 25px 22px;

    }


    .description-card h2 {

        font-size: 26px;

    }


    .story-description {

        font-size: 15px;

        line-height: 1.8;

    }


    .personal-details-card {

        padding: 25px 22px;

    }


    .video-wrapper {

        border-radius: 12px;

    }


    .story-cta-section {

        padding: 50px 0;

    }


    .story-cta {

        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

        padding: 30px 24px;

        border-radius: 16px;

    }


    .cta-action {

        width: 100%;

    }


    .cta-action .btn-story-primary {

        width: 100%;

    }

}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {


    .story-hero-content h1 {

        font-size: 34px;

    }


    .story-main-image,
    .story-image-placeholder {

        height: 300px;

    }


    .journey-image-wrapper {

        height: 280px;

    }


    .story-financial {

        padding: 16px;

    }


    .financial-item strong {

        font-size: 20px;

    }

}