/* ==========================================================================
   PROCODE LEARNING SOLUTIONS - COMPLETED STUDENTS & TESTIMONIALS (PHOTOS & VIDEOS)
   ========================================================================== */

.testimonials-hub-section {
    background: linear-gradient(180deg, #f6faf8 0%, #ffffff 35%, #f4f7fb 100%);
    padding: 76px 0 84px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.testimonials-hub-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 34px;
}

.testimonials-hub-header h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    font-weight: 800;
    color: var(--navy);
    margin: 10px 0 12px;
    line-height: 1.2;
}

.testimonials-hub-header p {
    font-size: 1.02rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

/* Summary Stats Bar */
.th-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.th-stat-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 18px rgba(27, 21, 100, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.th-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 146, 69, 0.1);
}

.th-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.th-stat-text strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
}

.th-stat-text span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

/* Controls & Split Switcher Toolbar */
.th-controls-bar {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 18px 22px;
    margin-bottom: 32px;
    box-shadow: 0 10px 28px rgba(27, 21, 100, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.th-controls-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* Media Split Tabs */
.th-media-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.th-tab-btn {
    border: 1.5px solid var(--border);
    background: #f8faf9;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.22s ease;
}

.th-tab-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: #eef9f2;
}

.th-tab-btn.active {
    background: linear-gradient(135deg, var(--navy) 0%, #25206f 100%);
    color: #ffffff;
    border-color: var(--navy);
    box-shadow: 0 6px 16px rgba(27, 21, 100, 0.22);
}

.th-tab-count {
    background: rgba(0, 146, 69, 0.14);
    color: var(--teal);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 800;
}

.th-tab-btn.active .th-tab-count {
    background: var(--teal);
    color: #ffffff;
}

/* Right side Search + Split Direction Toggle */
.th-controls-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.th-search-box {
    position: relative;
    min-width: 250px;
}

.th-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.th-search-input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    font-size: 0.88rem;
    color: var(--ink);
    background: #f9fbfa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.th-search-input:focus {
    outline: none;
    border-color: var(--teal);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 146, 69, 0.14);
}

.th-layout-toggle {
    display: inline-flex;
    background: #f3f6f4;
    padding: 4px;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.th-layout-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.th-layout-btn.active {
    background: var(--teal);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 146, 69, 0.25);
}

/* Split Container (Images & Videos Split View) */
.th-split-workspace {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.th-split-workspace.side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

/* Individual Panel (Photos Panel / Videos Panel / Reviews Panel) */
.th-media-panel {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 34px rgba(27, 21, 100, 0.05);
}

.th-media-panel.is-hidden {
    display: none !important;
}

.th-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f5f2;
}

.th-panel-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.th-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    flex-shrink: 0;
}

.th-panel-icon.photos-icon {
    background: linear-gradient(135deg, var(--teal), #00b857);
}

.th-panel-icon.videos-icon {
    background: linear-gradient(135deg, var(--navy), #3a3299);
}

.th-panel-icon.reviews-icon {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.th-panel-title-group h3 {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 3px;
}

.th-panel-title-group p {
    font-size: 0.86rem;
    color: var(--muted);
    margin: 0;
}

.th-panel-badge {
    background: var(--soft);
    color: var(--teal);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.th-panel-badge.navy-badge {
    background: #eef0fa;
    color: var(--navy);
    border-color: #d5daf2;
}

/* Completed Student Photo Grid */
.th-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 22px;
}

.th-split-workspace.side-by-side .th-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 18px;
}

.th-photo-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.th-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(27, 21, 100, 0.12);
    border-color: var(--teal);
}

.th-photo-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.2;
    background: #0d233a;
    overflow: hidden;
    cursor: pointer;
}

.th-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.th-photo-card:hover .th-photo-thumb img {
    transform: scale(1.05);
}

.th-photo-top-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.th-cert-pill {
    background: rgba(0, 146, 69, 0.92);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.th-score-pill {
    background: rgba(27, 21, 100, 0.92);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.th-photo-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 21, 100, 0.82) 0%, rgba(27, 21, 100, 0.2) 55%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.th-photo-card:hover .th-photo-hover-overlay {
    opacity: 1;
}

.th-zoom-btn {
    background: #ffffff;
    color: var(--navy);
    border: none;
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transform: translateY(8px);
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.th-photo-card:hover .th-zoom-btn {
    transform: translateY(0);
}

.th-zoom-btn:hover {
    background: var(--teal);
    color: #ffffff;
}

.th-photo-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.th-student-course {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.th-student-name {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 6px;
}

.th-student-caption {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.48;
    margin: 0 0 12px;
    flex: 1;
}

.th-student-meta {
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 600;
}

.th-student-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Student Video Testimonials Grid */
.th-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.th-split-workspace.side-by-side .th-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 18px;
}

.th-video-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.th-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(27, 21, 100, 0.14);
    border-color: var(--navy);
}

.th-video-Stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #12103b 0%, #1b1564 55%, #006837 100%);
    overflow: hidden;
    cursor: pointer;
}

.th-video-Stage img.th-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0.86;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.th-video-card:hover .th-video-Stage img.th-video-poster {
    transform: scale(1.05);
    opacity: 0.95;
}

.th-video-Stage-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 12, 43, 0.88) 0%, rgba(13, 12, 43, 0.32) 55%, rgba(13, 12, 43, 0.15) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
}

.th-video-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.th-video-tag {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.th-video-duration {
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

.th-play-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--teal);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 0 8px rgba(0, 146, 69, 0.28), 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.th-video-card:hover .th-play-center {
    transform: translate(-50%, -50%) scale(1.1);
    background: #00b052;
    box-shadow: 0 0 0 11px rgba(0, 146, 69, 0.36), 0 10px 24px rgba(0, 0, 0, 0.45);
}

.th-video-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
}

.th-video-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.th-video-student {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.th-video-student h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
}

.th-video-stars {
    color: #f59e0b;
    font-size: 0.82rem;
    letter-spacing: 1px;
}

.th-video-role {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 8px;
}

.th-video-quote {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.52;
    margin: 0 0 14px;
    flex: 1;
    font-style: italic;
}

.th-video-actions {
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.th-watch-btn {
    border: none;
    background: var(--navy);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.th-watch-btn:hover {
    background: var(--teal);
}

.th-yt-ext-link {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.th-yt-ext-link:hover {
    color: #dc2626;
}

/* Google Reviews Grid inside Testimonials Hub */
.th-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

/* Empty Filter State */
.th-empty-state {
    display: none;
    text-align: center;
    padding: 48px 20px;
    background: #ffffff;
    border: 1.5px dashed var(--border);
    border-radius: 20px;
    margin-top: 16px;
}

.th-empty-state.active {
    display: block;
}

/* Photo Lightbox Modal */
.th-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 10, 32, 0.92);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.th-modal-backdrop.open {
    display: flex;
}

.th-modal-box {
    background: #ffffff;
    border-radius: 22px;
    max-width: 880px;
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    position: relative;
}

.th-modal-box.video-modal-box {
    max-width: 460px;
}

.th-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f7faf8;
    border-bottom: 1px solid var(--border);
}

.th-modal-top h4 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--navy);
}

.th-modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--navy);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.th-modal-close-btn:hover {
    background: #e11d48;
    transform: rotate(90deg);
}

.th-modal-media-stage {
    position: relative;
    background: #090b1a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    max-height: 66vh;
    overflow: hidden;
}

.th-modal-media-stage img {
    max-width: 100%;
    max-height: 66vh;
    object-fit: contain;
}

.th-modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.th-modal-nav-btn:hover {
    background: var(--teal);
}

.th-modal-nav-btn.prev {
    left: 14px;
}

.th-modal-nav-btn.next {
    right: 14px;
}

.th-modal-info {
    padding: 18px 22px;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.th-modal-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.th-video-embed-container {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 64vh;
    background: #000000;
    position: relative;
}

.th-video-embed-container iframe,
.th-video-embed-container video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 1080px) {
    .th-split-workspace.side-by-side {
        grid-template-columns: 1fr;
    }
    .th-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .th-stats-bar {
        grid-template-columns: 1fr;
    }
    .th-media-panel {
        padding: 18px;
    }
    .th-controls-top {
        flex-direction: column;
        align-items: stretch;
    }
    .th-controls-right {
        flex-direction: column;
        align-items: stretch;
    }
    .th-search-box {
        width: 100%;
    }
}
