/* =========================================================
   CHILDVISION SUCCESS STORIES
========================================================= */

:root {
    --cv-purple: #6a1b9a;
    --cv-purple-dark: #4a126d;
    --cv-purple-light: #f6effa;
    --cv-magenta: #c2185b;
    --cv-text: #292929;
    --cv-muted: #6d6d6d;
    --cv-border: #e8e1eb;
    --cv-white: #ffffff;
}


/* =========================================================
   COMMON
========================================================= */

.success-page {
    background: #ffffff;
    color: var(--cv-text);
}

.success-page .container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.success-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;

    /* Replace with your actual success-story image */
    background-image: url("../img/photo-gallery/Happy%20Holi/IMG_3797.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Dark + purple overlay */
.success-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(48, 12, 73, 0.92) 0%,
            rgba(65, 17, 91, 0.82) 38%,
            rgba(65, 17, 91, 0.48) 68%,
            rgba(65, 17, 91, 0.20) 100%
        );
}

/* Content */
.success-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 70px;
    padding-bottom: 70px;
    max-width: 900px;
}

/* Small label */
.success-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;

    color: #f6c7ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

/* Small line before label */
.success-hero-label::before {
    content: "";
    width: 38px;
    height: 2px;
    background: #e6a8ff;
    border-radius: 20px;
}

/* Main heading */
.success-hero h1 {
    margin: 0 0 22px;

    max-width: 800px;

    color: #ffffff;

    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.5px;
}

/* Description */
.success-hero p {
    max-width: 680px;

    margin: 0 0 34px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 18px;
    line-height: 1.75;
    font-weight: 400;
}

/* CTA button */
.success-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    min-height: 54px;
    padding: 0 25px;

    border-radius: 50px;

    background: #ffffff;
    color: #632080;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.success-hero-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #632080;
    color: #ffffff;

    font-size: 16px;
    line-height: 1;

    transition: transform 0.25s ease;
}

.success-hero-btn:hover {
    color: #632080;
    background: #ffffff;

    transform: translateY(-3px);

    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.24);
}

.success-hero-btn:hover span {
    transform: translateY(3px);
}

/* =========================================================
   DECORATIVE SHAPE
========================================================= */

.success-hero::after {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    right: -100px;
    bottom: -150px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.12);

    z-index: 2;
}


/* =========================================================
   INTRO
========================================================= */

.success-intro {
    padding: 90px 0 50px;
}

.success-section-heading {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.success-section-heading .section-label {
    color: var(--cv-magenta);
    margin-bottom: 12px;
}

.success-section-heading h2 {
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.2;
    color: var(--cv-purple-dark);
}

.success-section-heading p {
    margin: 0;
    color: var(--cv-muted);
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   STORIES SECTION
========================================================= */

.success-stories-section {
    padding: 40px 0 100px;
    background: var(--cv-purple-light);
}

.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* =========================================================
   STORY CARD
========================================================= */

.success-card {
    overflow: hidden;
    background: var(--cv-white);
    border: 1px solid var(--cv-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(50, 20, 70, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.success-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(50, 20, 70, 0.13);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.success-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #eee;
}

.success-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.success-card:hover .success-card-image img {
    transform: scale(1.05);
}


/* =========================================================
   BADGE
========================================================= */

.success-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 13px;

    border-radius: 30px;

    background: var(--cv-white);
    color: var(--cv-magenta);

    font-size: 13px;
    font-weight: 700;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.success-heart {
    font-size: 15px;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.success-card-content {
    padding: 24px;
}

.success-card-content h3 {
    margin: 0 0 12px;
    font-size: 23px;
    color: var(--cv-purple-dark);
}

.success-meta {
    margin-bottom: 7px;
    color: var(--cv-muted);
    font-size: 14px;
}

.success-meta span {
    font-weight: 700;
    color: var(--cv-text);
}

.success-description {
    margin: 18px 0 22px;
    color: var(--cv-muted);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   READ STORY
========================================================= */

.success-card-footer {
    padding-top: 18px;
    border-top: 1px solid var(--cv-border);
}

.read-story-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--cv-purple);
    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    transition: 0.2s ease;
}

.read-story-btn:hover {
    color: var(--cv-magenta);
    gap: 13px;
}


/* =========================================================
   NO STORIES
========================================================= */

.no-success-stories {
    max-width: 650px;
    margin: 20px auto 0;
    padding: 70px 30px;

    text-align: center;

    background: var(--cv-white);
    border: 1px solid var(--cv-border);
    border-radius: 18px;
}

.no-success-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: var(--cv-purple-light);
    color: var(--cv-magenta);

    font-size: 28px;
}

.no-success-stories h3 {
    margin: 0 0 10px;
    color: var(--cv-purple-dark);
}

.no-success-stories p {
    margin: 0;
    color: var(--cv-muted);
    line-height: 1.7;
}


/* =========================================================
   CTA
========================================================= */

.success-cta {
    padding: 90px 0;
    background: var(--cv-purple-dark);
    color: var(--cv-white);
}

.success-cta-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.success-cta .section-label {
    margin-bottom: 15px;
    opacity: 0.8;
}

.success-cta h2 {
    margin: 0 0 18px;
    font-size: 40px;
    line-height: 1.2;
}

.success-cta p {
    margin: 0 auto 30px;
    max-width: 600px;
    font-size: 17px;
    line-height: 1.8;
    opacity: 0.9;
}

.success-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 26px;

    border-radius: 50px;

    background: var(--cv-white);
    color: var(--cv-purple-dark);

    text-decoration: none;
    font-weight: 700;

    transition: 0.25s ease;
}

.success-cta-btn:hover {
    transform: translateY(-3px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .success-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .success-hero {
        min-height: 450px;
    }
    .success-hero {
        min-height: 560px;
        background-position: center;
    }

    .success-hero-content {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .success-hero h1 {
        font-size: clamp(40px, 7vw, 58px);
    }

    .success-hero p {
        font-size: 17px;
        max-width: 600px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .success-page .container {
        width: min(100% - 28px, 600px);
    }

  .success-hero {
        min-height: 560px;

        align-items: center;

        background-position: 60% center;
    }
     .success-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(48, 12, 73, 0.94),
                rgba(65, 17, 91, 0.72)
            );
    }
     .success-hero-label {
        margin-bottom: 18px;

        font-size: 11px;
        letter-spacing: 1.7px;
    }
     .success-hero-label::before {
        width: 25px;
    }

    .success-hero-content {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
 .success-hero h1 {
        margin-bottom: 18px;

        font-size: 42px;
        line-height: 1.12;
        letter-spacing: -0.8px;
    }
    
    .success-hero p {
        margin-bottom: 28px;

        font-size: 16px;
        line-height: 1.65;
    }

 .success-hero-btn {
        min-height: 51px;
        padding: 0 21px;

        font-size: 14px;
    }
    .success-intro {
        padding: 65px 0 35px;
    }

    .success-section-heading h2 {
        font-size: 31px;
    }

    .success-stories-section {
        padding: 30px 0 70px;
    }

    .success-stories-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .success-card-image {
        height: 300px;
    }

    .success-cta {
        padding: 70px 0;
    }

    .success-cta h2 {
        font-size: 31px;
    }
    

}
/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .success-hero {
        min-height: 540px;
    }

    .success-hero-content {
        padding-left: 22px;
        padding-right: 22px;
    }

    .success-hero h1 {
        font-size: 37px;
    }

    .success-hero p {
        font-size: 15px;
    }

    .success-hero-btn {
        width: 100%;
        max-width: 290px;
    }
}
