<style>
/* =========================================
   SUCCESS STORIES
========================================= */

.success-stories-section {
    padding: 70px 0 80px;
    background: #f5f8f6;
}

.success-stories-section .container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}


/* =========================================
   SECTION HEADING
========================================= */

.success-stories-heading {
    max-width: 780px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;

    color: #1b3a2b;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.success-stories-heading h1 {
    margin: 0 0 14px;

    color: #1b3a2b;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
}

.success-stories-heading p {
    margin: 0;

    color: #68746d;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================
   GRID
========================================= */

.success-story-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================
   CARD
========================================= */

.success-story-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1e8e3;

    border-radius: 12px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.success-story-card:hover {
    transform: translateY(-4px);

    border-color: #b8cbbf;
}


/* =========================================
   IMAGE
========================================= */

.success-story-image {
    position: relative;

    width: 100%;
    height: 215px;

    overflow: hidden;

    background: #e8efeb;
}

.success-story-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.success-story-card:hover .success-story-image img {
    transform: scale(1.04);
}


/* =========================================
   CARD BODY
========================================= */

.success-story-body {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 20px 24px 18px;
}


/* =========================================
   INSTITUTE
========================================= */

.success-story-institute {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 12px;

    color: #6c7c73;

    font-size: 13px;
    font-weight: 600;
}

.success-story-institute i {
    color: #1b3a2b;
    font-size: 13px;
}


/* =========================================
   TITLE
========================================= */

.success-story-body h2 {
    margin: 0 0 12px;

    color: var(--primary-light);

    font-size: 1rem;
    font-weight: 500;

    line-height: 1.4;
}


/* =========================================
   DESCRIPTION
========================================= */

.success-story-body p {
    margin: 0 0 10px;

    color: #66736c;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   FOOTER
========================================= */

.success-story-footer {
    display: flex;
    align-items: center;
    justify-content:right;

    gap: 10px;

    margin-top: auto;

    padding-top: 10px;

    border-top: 1px solid #edf1ee;
}


/* =========================================
   PDF BUTTON
========================================= */

.success-story-pdf {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 13px;

    color: #a62d2d;
    background: #fff5f5;

    border: 1px solid #f0dada;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: 0.2s ease;
}

.success-story-pdf:hover {
    color: #ffffff;
    background: #a62d2d;
    border-color: #a62d2d;
}

.success-story-pdf i {
    font-size: 14px;
}


/* =========================================
   READ STORY BUTTON
========================================= */

.success-story-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 0;

    color: #1b3a2b;

    background: transparent;

    border: 0;

    font-family: inherit;

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;
}

.success-story-read i {
    font-size: 12px;

    transition: transform 0.2s ease;
}

.success-story-read:hover i {
    transform: translateX(4px);
}


/* =========================================
   MODAL
========================================= */

.success-story-modal {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

}

.success-story-modal.active {
    display: flex;
}


/* Overlay */

.success-story-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(13, 30, 23, 0.72);

    backdrop-filter: blur(3px);
}


/* Modal box */

.success-story-modal-content {
    position: relative;

    z-index: 2;

    width: min(900px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 14px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}


/* =========================================
   MODAL IMAGE
========================================= */

.success-story-modal-image {
    width: 100%;
    height: 300px;

    overflow: hidden;
}

.success-story-modal-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================
   MODAL BODY
========================================= */

.success-story-modal-body {
    padding: 35px 40px 40px;
}

.success-story-modal-institute {
    display: block;

    margin-bottom: 8px;

    color: #6b7b72;

    font-size: 14px;
    font-weight: 600;
}

.success-story-modal-body h2 {
    margin: 0 0 12px;
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
}


/* Full description */

.success-story-full-description {
    color: #414a45;

    font-size: 15px;
    line-height: 1.85;
}

.success-story-full-description p {
    margin: 0 0 18px;
}

.success-story-full-description h3,
.success-story-full-description h4 {
    margin-top: 28px;

    color: #1b3a2b;
}

.success-story-full-description ul,
.success-story-full-description ol {
    padding-left: 22px;
}

.success-story-full-description li {
    margin-bottom: 8px;
}


/* =========================================
   CLOSE BUTTON
========================================= */

.success-story-modal-close {
    position: absolute;

    top: 16px;
    right: 16px;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    color: #ffffff;

    background: rgba(27, 58, 43, 0.9);

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    font-size: 17px;
}

.success-story-modal-close:hover {
    background: #1b3a2b;
}


/* =========================================
   MODAL PDF
========================================= */

.success-story-modal-pdf {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 28px;
    padding: 12px 18px;

    color: #ffffff;
    background: #a62d2d;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: 0.2s ease;
}

.success-story-modal-pdf:hover {
    background: #872424;
}

.success-story-modal-pdf i {
    font-size: 16px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .success-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .success-stories-section {
        padding: 50px 0 60px;
    }

    .success-stories-heading {
        margin-bottom: 30px;
    }

    .success-stories-heading h1 {
        font-size: 30px;
    }

    .success-stories-heading p {
        font-size: 14px;
    }

    .success-story-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .success-story-image {
        height: 200px;
    }

    .success-story-body {
        padding: 21px 20px;
    }

    .success-story-body h2 {
        font-size: 1rem;
    }

    .success-story-footer {
        align-items: stretch;
    }

    .success-story-pdf {
        justify-content: center;
    }

    .success-story-read {
        justify-content: center;
    }

    .success-story-modal {
        padding: 12px;
    }

    .success-story-modal-content {
        max-height: 94vh;
        border-radius: 10px;
    }

    .success-story-modal-image {
        height: 200px;
    }

    .success-story-modal-body {
        padding: 28px 22px 30px;
    }

    .success-story-modal-body h2 {
        font-size: 24px;
    }

}

</style>