/* =============================================================
   IRF Theme — Success Stories Page Stylesheet
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   HERO — Cinematic Full-Screen
   ───────────────────────────────────────────────────────────── */
.ss-hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #07071a;
}

.ss-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    animation: ssKenBurns 18s ease-in-out infinite alternate;
}

.ss-hero-bg-fallback {
    background: radial-gradient(ellipse at 60% 40%, #2a0a12 0%, #07071a 70%);
    animation: none;
}

@keyframes ssKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

.ss-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(7,7,26,0.88) 0%,
        rgba(22,4,10,0.75) 50%,
        rgba(7,7,26,0.82) 100%
    );
    z-index: 1;
}

.ss-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 140px;
    padding-bottom: 100px;
    max-width: 780px;
}

.ss-breadcrumb {
    margin-bottom: 28px;
}

.ss-breadcrumb a,
.ss-breadcrumb span {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}

.ss-breadcrumb a:hover { color: #fff; }

.ss-hero-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.ss-hero-headline {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 5.5vw, 62px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.ss-typed-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.ss-typed-label {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.ss-typed-word {
    color: var(--red);
    font-size: 16px;
    font-weight: 700;
    min-width: 2px;
    border-right: 2px solid var(--red);
    padding-right: 3px;
    animation: ssBlink 0.75s step-end infinite;
}

@keyframes ssBlink {
    0%, 100% { border-color: var(--red); }
    50%       { border-color: transparent; }
}

.ss-hero-btn { align-self: flex-start; }

.ss-hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ss-hero-scroll-hint span {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.35));
    animation: ssScrollHint 2s ease-in-out infinite;
}

@keyframes ssScrollHint {
    0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
    50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}


/* ─────────────────────────────────────────────────────────────
   FEATURED SPOTLIGHT
   ───────────────────────────────────────────────────────────── */
.ss-spotlight-section {
    background: #fff;
    overflow: hidden;
}

.ss-spotlight-inner {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 72px;
    align-items: center;
}

/* Photo column */
.ss-spot-photo-col { position: relative; }

.ss-spot-photo-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 24px 72px rgba(0,0,0,0.18);
}

.ss-spot-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.ss-spot-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0810 0%, #2d0f1c 100%);
}

.ss-spot-photo-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 60px;
    background: var(--red);
    filter: blur(40px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
}

.ss-spot-rank-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(238,44,60,0.4);
}

.ss-spot-exam-chip {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(7,7,26,0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.12);
}

.ss-spot-batch-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--gray);
}

/* Content column */
.ss-spot-content { padding: 8px 0; }

.ss-spot-name {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--navy);
    margin: 14px 0 24px;
    line-height: 1.15;
}

.ss-spot-quote {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.45;
    margin: 0 0 24px;
    padding-left: 20px;
    border-left: 3px solid var(--red);
}

.ss-quote-mark {
    color: var(--red);
    opacity: 0.5;
}

.ss-quote-close { opacity: 0.5; }

.ss-spot-story-text {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.ss-spot-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    padding: 0;
    transition: color 0.3s;
}

.ss-spot-video-btn:hover { color: var(--red); }

.ss-play-circle {
    width: 52px;
    height: 52px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(238,44,60,0.35);
}

.ss-spot-video-btn:hover .ss-play-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(238,44,60,0.5);
}


/* ─────────────────────────────────────────────────────────────
   STUDENT REELS — scrolling track (portrait Shorts)
   ───────────────────────────────────────────────────────────── */
.ss-reels-section {
    background: #fcf1f5;
    overflow: hidden;
}

.ss-reels-section .section-title { color: var(--navy); }
.ss-reels-section .section-header { margin-bottom: 40px; }

/* Inherit .reels-track-wrapper + .reels-track animation from main.css */
.ss-reels-section .reels-track-wrapper { padding: 4px 0 16px; }
.ss-reels-section .reels-track { gap: 16px; }
.ss-reels-section .reel-item  { width: 200px; }

.ss-reel-card-inner {
    position: relative;
    width: 200px;
    height: 356px;
    border-radius: 14px;
    overflow: hidden;
    background: #1a0810;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ss-reel-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(238,44,60,0.22);
}

.ss-reel-scroll-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.ss-reel-card-inner:hover .ss-reel-scroll-thumb { transform: scale(1.04); }

.ss-reel-scroll-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,7,26,0.82) 0%, rgba(7,7,26,0.08) 55%, transparent 100%);
}

.ss-reel-scroll-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.88);
    width: 52px;
    height: 52px;
    background: rgba(238,44,60,0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s, background 0.25s;
    box-shadow: 0 4px 18px rgba(238,44,60,0.45);
    opacity: 0;
    z-index: 2;
}

.ss-reel-card-inner:hover .ss-reel-scroll-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: #ee2c3c;
}

.ss-reel-scroll-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 2;
}

.ss-reel-scroll-info strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
}

.ss-reel-scroll-info span {
    color: #ee2c3c;
    font-size: 11px;
    font-weight: 600;
}


/* ─────────────────────────────────────────────────────────────
   STORY EXPLORER
   ───────────────────────────────────────────────────────────── */
.ss-explorer-section {
    background: #fff;
}

.ss-exam-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}

.ss-filter-btn {
    background: #fff;
    color: var(--navy);
    border: 1.5px solid var(--border);
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Inter', sans-serif;
}

.ss-filter-btn:hover,
.ss-filter-btn.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(238,44,60,0.25);
}

.ss-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ss-story-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ss-story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ss-story-card.hidden { display: none; }

.ss-story-photo-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0dde2;
}

.ss-story-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s;
}

.ss-story-card:hover .ss-story-photo { transform: scale(1.04); }

.ss-story-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fcf1f5 0%, #f0dde2 100%);
}

.ss-story-play-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--red);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(238,44,60,0.4);
    transition: transform 0.2s;
}

.ss-story-play-btn:hover { transform: scale(1.12); }

.ss-story-body {
    padding: 20px;
}

.ss-story-name {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.ss-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ss-story-exam-badge {
    background: var(--light);
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--border);
    letter-spacing: 0.5px;
}

.ss-story-rank-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff8f1;
    color: #c47a00;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid #ffe5b4;
}

.ss-story-info {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.ss-story-quote {
    font-size: 13px;
    color: #4a4a4a;
    line-height: 1.6;
    font-style: italic;
    border-left: 2px solid var(--border);
    padding-left: 12px;
}

.ss-no-stories {
    text-align: center;
    padding: 60px 0;
    color: var(--gray);
    font-size: 16px;
}


/* ─────────────────────────────────────────────────────────────
   STUDENT VOICES — Testimonial Cards
   ───────────────────────────────────────────────────────────── */
.ss-voices-section {
    background: #fcf1f5;
}

.ss-voices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.ss-voice-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    border: 1px solid #f0dde2;
    box-shadow: 0 4px 24px rgba(238,44,60,0.07);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ss-voice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 44px rgba(238,44,60,0.14);
}

.ss-voice-card:nth-child(2) { margin-top: 32px; }

.ss-voice-qmark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 80px;
    font-weight: 400;
    color: #ee2c3c;
    line-height: 0.65;
    opacity: 0.18;
    display: block;
    margin-bottom: 2px;
}

.ss-voice-stars {
    display: flex;
    gap: 3px;
    color: #ee2c3c;
}

.ss-voice-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.75;
    font-style: italic;
    flex: 1;
}

.ss-voice-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #f0dde2;
    margin-top: 6px;
}

.ss-voice-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ee2c3c 0%, #c01828 100%);
    padding: 2px;
    flex-shrink: 0;
}

.ss-voice-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid #fff;
    display: block;
}

.ss-voice-avatar-default {
    width: 100%;
    height: 100%;
    background: #fcf1f5;
    border-radius: 50%;
    border: 2px solid #fff;
}

.ss-voice-name {
    display: block;
    font-size: 14px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.ss-voice-exam {
    display: inline-block;
    font-size: 11px;
    color: #ee2c3c;
    font-weight: 700;
    background: #fcf1f5;
    padding: 2px 10px;
    border-radius: 50px;
    border: 1px solid #f0dde2;
    letter-spacing: 0.3px;
}


/* ─────────────────────────────────────────────────────────────
   CTA — Be the Next Story
   ───────────────────────────────────────────────────────────── */
.ss-cta-section {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
    background: #181A17;
}

.ss-cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.ss-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(192,24,40,0.8) 0%, rgba(18,18,18,0.96) 100%);
}

/* Decorative concentric rings */
.ss-cta-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(238,44,60,0.18);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: ssRingPulse 6s ease-in-out infinite;
}

.ss-cta-ring-1 { width: 320px; height: 320px; animation-delay: 0s; }
.ss-cta-ring-2 { width: 560px; height: 560px; border-color: rgba(238,44,60,0.1); animation-delay: 1s; }
.ss-cta-ring-3 { width: 820px; height: 820px; border-color: rgba(238,44,60,0.05); animation-delay: 2s; }

@keyframes ssRingPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.ss-cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ss-cta-proof {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.ss-cta-proof-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.ss-cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 5vw, 54px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.12;
}

.ss-cta-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    margin: 0 auto 42px;
    line-height: 1.65;
}

.ss-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.ss-cta-btn-primary {
    font-size: 15px;
    font-weight: 700;
    padding: 14px 36px;
    box-shadow: 0 8px 32px rgba(238,44,60,0.35);
    transition: transform 0.25s, box-shadow 0.25s;
}

.ss-cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(238,44,60,0.5);
}

.ss-cta-link {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s;
    letter-spacing: 0.2px;
}

.ss-cta-link:hover { color: #fff; }


/* ─────────────────────────────────────────────────────────────
   VIDEO LIGHTBOX MODAL
   ───────────────────────────────────────────────────────────── */
.ss-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ss-lightbox[hidden] { display: none; }

.ss-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7,7,26,0.92);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.ss-lightbox-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.ss-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}

.ss-lightbox-close:hover { background: var(--red); }

.ss-lightbox-embed {
    aspect-ratio: 16/9;
}

.ss-lightbox-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.ss-lightbox-embed.is-shorts {
    aspect-ratio: 9/16;
    max-width: 400px;
    margin: 0 auto;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ss-spotlight-inner {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .ss-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ss-voices-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ss-voice-card:nth-child(2) { margin-top: 0; }
    .ss-voice-card:nth-child(3) { display: none; }
}

@media (max-width: 768px) {
    .ss-hero { min-height: 60vh; }
    .ss-hero-inner { padding-top: 110px; padding-bottom: 80px; }

    .ss-spotlight-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ss-spot-photo-wrap { max-width: 320px; margin: 0 auto; }

    .ss-reel-scroll-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

    .ss-stories-grid {
        grid-template-columns: 1fr;
    }

    .ss-voices-grid {
        grid-template-columns: 1fr;
    }

    .ss-voice-card:nth-child(2) { margin-top: 0; }
    .ss-voice-card:nth-child(3) { display: flex; }

    .ss-cta-actions { flex-direction: column; gap: 18px; }
    .ss-cta-ring-3  { display: none; }

}

