/* Page hero styles live in blog_hero.css (shared with blog + other pages) */

/* Circular student photo on colored card panel */
.student-photo-circle {
    --photo-size: 168px;
    width: var(--photo-size);
    height: var(--photo-size);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid #fff;
    box-sizing: border-box;
}

.student-photo-circle--lg {
    --photo-size: 156px;
}

.student-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.success-story-card .blog-image,
.success-story-card__photo {
    min-height: 220px;
    position: relative;
}

.success-story-card__photo--green {
    background: #30bd9b;
    background: var(--base-color, #30bd9b);
}

.success-story-card__photo--purple {
    background: #F5EDFC;
}

.success-story-card__photo--blue {
    background: #ECF7FC;
}

/* Legacy panel names from earlier versions */
.success-story-card__photo--grey {
    background: #F5EDFC;
}

.success-story-card__photo--red {
    background: #ECF7FC;
}

.success-stories-consult-cta__heading,
.success-stories-consult-cta__phone,
.success-stories-consult-cta__phone a {
    color: #fff;
}

.success-stories-consult-cta__phone a:hover {
    color: #fff;
    opacity: 0.9;
}

/* Bottom-of-page spacing — theme sections/footers default to 110px padding each */
.success-stories-page section.success-stories-grid {
    padding-bottom: 50px;
}

.success-stories-page .success-stories-consult-cta {
    padding: 40px 0;
}

.success-stories-page section.success-stories-updates {
    padding-top: 0;
    padding-bottom: 20px;
}

.success-stories-page footer {
    padding-top: 40px;
}

.success-story-detail-page section.big-section {
    padding-bottom: 50px;
}

.success-story-detail-page .country-bmc-form-wrap {
    padding-bottom: 20px;
}

.success-story-detail-page footer {
    padding-top: 70px;
}

.success-story-body-text p {
    margin-bottom: 20px;
}

.success-story-body-text p:last-child {
    margin-bottom: 0;
}

.success-story-card .story-program {
    color: #717580;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.success-story-profile-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.success-story-uni-logo-wrap {
    flex-shrink: 0;
    line-height: 0;
}

.success-story-uni-logo {
    width: 216px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {
    .success-story-profile-row {
        gap: 24px;
    }

    .student-photo-circle--lg {
        --photo-size: 128px;
    }

    .success-story-card__photo .student-photo-circle {
        --photo-size: 140px;
    }

    .success-story-uni-logo {
        width: 156px;
        max-height: 86px;
    }
}

.success-story-quote-card {
    position: relative;
}

.success-story-back:hover {
    color: var(--base-color, #30bd9b) !important;
}

.success-story-body h3 {
    font-size: 1.75rem;
}

.success-story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fafafa;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    overflow: hidden;
}

.success-story-stat {
    padding: 28px 16px;
    text-align: center;
    border-right: 1px solid #e4e4e4;
}

.success-story-stat:last-child {
    border-right: none;
}

.success-story-stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: #353642;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.success-story-stat-label {
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #717580;
    line-height: 1.35;
}

@media (max-width: 575px) {
    .success-story-stats {
        grid-template-columns: 1fr;
    }

    .success-story-stat {
        border-right: none;
        border-bottom: 1px solid #e4e4e4;
        padding: 22px 16px;
    }

    .success-story-stat:last-child {
        border-bottom: none;
    }

    .success-story-stat-value {
        font-size: 1.65rem;
    }
}

/* Full-width video testimonial trigger */
.success-story-video-trigger {
    position: relative;
    display: block;
    width: 100%;
    border: 1px solid rgba(48, 189, 155, 0.16);
    border-radius: 15px;
    padding: 36px 28px;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(145deg, #f9fcfb 0%, #eef8f4 55%, #e8f5f0 100%);
    box-shadow:
        0 14px 40px rgba(48, 189, 155, 0.08),
        0 2px 10px rgba(53, 54, 66, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.success-story-video-trigger::before,
.success-story-video-trigger::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.success-story-video-trigger::before {
    top: -55%;
    right: -8%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(48, 189, 155, 0.14) 0%, rgba(48, 189, 155, 0) 72%);
}

.success-story-video-trigger::after {
    bottom: -70%;
    left: -6%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(53, 54, 66, 0.06) 0%, rgba(53, 54, 66, 0) 70%);
}

.success-story-video-trigger:hover {
    border-color: rgba(48, 189, 155, 0.32);
    box-shadow:
        0 18px 48px rgba(48, 189, 155, 0.12),
        0 4px 14px rgba(53, 54, 66, 0.06);
    transform: translateY(-2px);
}

.success-story-video-trigger__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.success-story-video-play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #35c9a5 0%, #30bd9b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    padding-left: 4px;
    border: 4px solid #fff;
    box-shadow: 0 10px 28px rgba(48, 189, 155, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.success-story-video-trigger:hover .success-story-video-play {
    transform: scale(1.05);
    box-shadow: 0 14px 32px rgba(48, 189, 155, 0.42);
}

.success-story-video-label {
    font-size: 1rem;
    font-weight: 600;
    color: #353642;
    letter-spacing: -0.01em;
}

.success-story-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.success-story-video-modal[hidden] {
    display: none;
}

.success-story-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
}

.success-story-video-modal__panel {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.success-story-video-modal__video {
    display: block;
    width: 100%;
    max-height: 80vh;
    height: auto;
}

.success-story-video-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #353642;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.success-story-video-modal__close:hover {
    transform: scale(1.08);
}

@media (max-width: 767px) {
    .success-story-video-trigger {
        padding: 28px 20px;
    }

    .success-story-video-play {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .success-story-video-label {
        font-size: 0.95rem;
    }
}
