/* Clinical Premium — Video Pembelajaran */

.clinical-video-page {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Hero */
.cv-hero {
    background: linear-gradient(135deg, #0B1426 0%, #0F2847 55%, rgba(13,148,136,0.28) 100%);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 12px 40px rgba(11,20,38,0.15);
    position: relative;
    overflow: hidden;
}

.cv-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 45%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(20,184,166,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cv-hero-text {
    position: relative;
    z-index: 1;
}

.cv-hero-text h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #FFFFFF;
    margin: 0 0 8px;
}

.cv-hero-text p {
    font-size: 1.25rem;
    color: #CBD5E1;
    margin: 0;
    line-height: 1.5;
}

.cv-search-form {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 260px;
    max-width: 400px;
    display: flex;
}

.cv-search-form input[type="hidden"] {
    display: none;
}

.cv-search-wrap {
    position: relative;
    width: 100%;
}

.cv-search-wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 1.0625rem;
    pointer-events: none;
}

.cv-search-wrap input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    font-size: 1.125rem;
    font-family: inherit;
    border: none;
    border-radius: 50px;
    background: rgba(255,255,255,0.95);
    color: #0F172A;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.cv-search-wrap input:focus {
    outline: none;
    box-shadow: 0 4px 24px rgba(13,148,136,0.35);
}

/* Type tabs */
.cv-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.cv-type-tab {
    padding: 13px 24px;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: inherit;
    color: #475569;
    background: #FFFFFF;
    border: 1px solid rgba(15,23,42,0.1);
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.cv-type-tab:hover {
    border-color: rgba(13,148,136,0.35);
    color: #0D9488;
}

.cv-type-tab.active {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(13,148,136,0.35);
}

/* Layout: sidebar filter + main */
.cv-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.cv-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 80px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 4px 20px rgba(11,20,38,0.06);
    overflow: hidden;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.cv-sidebar-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    background: #F8FAFC;
    border-bottom: 1px solid rgba(15,23,42,0.06);
}

.cv-sidebar-head i {
    color: #0D9488;
}

.cv-filter-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.cv-filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 13px 16px;
    font-size: 1.1875rem;
    font-weight: 600;
    font-family: inherit;
    color: #334155;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    line-height: 1.35;
    text-decoration: none !important;
    transition: all 0.2s;
}

.cv-filter-btn:hover {
    color: #0D9488;
    background: rgba(13,148,136,0.08);
}

.cv-filter-btn.active {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(13,148,136,0.3);
}

.cv-main {
    flex: 1;
    min-width: 0;
}

.cv-toolbar {
    margin-bottom: 16px;
    padding: 14px 18px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.06);
}

.cv-list-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.4;
}

.cv-list-sub {
    font-size: 1.0625rem;
    color: #64748B;
    margin: 6px 0 0;
}

/* Video grid */
.cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.cv-grid .video-item {
    display: none;
}

.cv-grid .video-item.cv-item-visible {
    display: flex;
    flex-direction: column;
}

/* Pagination */
.cv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 20px;
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 2px 12px rgba(11,20,38,0.04);
}

.cv-page-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #0F172A;
    background: #F8FAFC;
    border: 1px solid rgba(15,23,42,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.cv-page-btn:hover:not(:disabled) {
    background: rgba(13,148,136,0.1);
    border-color: rgba(13,148,136,0.3);
    color: #0D9488;
}

.cv-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cv-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.cv-page-num {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 1.0625rem;
    font-weight: 600;
    font-family: inherit;
    color: #475569;
    background: #FFFFFF;
    border: 1px solid rgba(15,23,42,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.cv-page-num:hover {
    border-color: rgba(13,148,136,0.35);
    color: #0D9488;
}

.cv-page-num.active {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(13,148,136,0.3);
}

.cv-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 4px 20px rgba(11,20,38,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.cv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(11,20,38,0.12);
}

.cv-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cv-card-title {
    font-size: 1.3125rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.35;
    margin: 0 0 12px;
}

.cv-card-desc {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 12px;
    flex: 1;
}

.cv-card-meta {
    font-size: 1rem;
    color: #64748B;
    margin-top: auto;
}

.cv-card-meta strong {
    color: #0D9488;
}

.cv-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #0B1426;
}

.cv-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.cv-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #FFFFFF !important;
    background: #0D9488;
    border-radius: 10px;
    text-decoration: none !important;
    margin-bottom: 12px;
}

/* Upgrade CTA */
.cv-upgrade {
    margin-top: 28px;
    padding: 28px 32px;
    text-align: center;
    background: linear-gradient(135deg, rgba(13,148,136,0.08) 0%, rgba(201,162,39,0.06) 100%);
    border: 1px solid rgba(13,148,136,0.2);
    border-radius: 16px;
}

.cv-upgrade p {
    font-size: 1.25rem;
    color: #334155;
    margin: 0 0 10px;
    line-height: 1.6;
}

.cv-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 14px 28px;
    font-size: 1.1875rem;
    font-weight: 700;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(13,148,136,0.35);
}

/* Alerts */
.cv-alert {
    padding: 20px 24px;
    border-radius: 14px;
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 16px;
}

.cv-alert--info {
    background: rgba(56,189,248,0.12);
    color: #0369A1;
    border: 1px solid rgba(56,189,248,0.25);
}

.cv-alert--warning {
    background: rgba(251,191,36,0.12);
    color: #92400E;
    border: 1px solid rgba(251,191,36,0.3);
}

.cv-alert--danger {
    background: rgba(248,113,113,0.12);
    color: #B91C1C;
    border: 1px solid rgba(248,113,113,0.25);
}

/* Empty state (live search) */
.cv-empty {
    display: none;
    text-align: center;
    padding: 40px 24px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px dashed rgba(15,23,42,0.12);
    margin-top: 8px;
}

.cv-empty i {
    font-size: 2.5rem;
    color: #CBD5E1;
    margin-bottom: 14px;
}

.cv-empty h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 8px;
}

.cv-empty p {
    font-size: 1.125rem;
    color: #64748B;
    margin: 0;
}

/* Testimoni modal */
#testimonialModal {
    z-index: 10060 !important;
}

#testimonialModal + .modal-backdrop,
body.modal-open .modal-backdrop {
    z-index: 10050 !important;
}

#testimonialModal .cv-modal-dialog {
    margin: 80px auto 30px;
    max-width: 580px;
    width: calc(100% - 32px);
}

#testimonialModal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(11,20,38,0.25);
}

#testimonialModal .modal-header {
    background: linear-gradient(135deg, #0D9488, #0F766E) !important;
    border: none;
    padding: 24px 28px;
}

#testimonialModal .modal-header .close {
    color: #FFFFFF !important;
    opacity: 1 !important;
    font-size: 2rem;
}

#testimonialModal .modal-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #FFFFFF !important;
}

#testimonialModal .modal-body {
    padding: 28px 32px;
    font-size: 1.3125rem;
    line-height: 1.7;
    color: #334155;
}

#testimonialModal .modal-body label {
    font-size: 1.25rem;
    font-weight: 600;
}

#testimonialModal .modal-body textarea {
    font-size: 1.25rem;
    padding: 14px 16px;
    border-radius: 10px;
    margin-top: 10px;
}

#testimonialModal .modal-footer {
    padding: 20px 32px;
    background: #F8FAFC;
}

#testimonialModal .cv-btn-cancel {
    font-size: 1.1875rem;
    padding: 12px 22px;
    border-radius: 10px;
}

#testimonialModal .cv-btn-submit {
    background: #0D9488 !important;
    border-color: #0D9488 !important;
    font-size: 1.1875rem;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 10px;
}

body.clinical-dashboard .content-wrapper {
    background: #EEF2F7 !important;
}

body.clinical-dashboard .content-header {
    display: none !important;
}

body.clinical-dashboard .content {
    padding: 20px 24px 40px !important;
}

@media (max-width: 991px) {
    .cv-layout {
        flex-direction: column;
    }

    .cv-sidebar {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
    }

    .cv-filter-list {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
    }

    .cv-filter-btn {
        width: auto;
        flex-shrink: 0;
        white-space: nowrap;
        padding: 12px 18px;
        font-size: 1.0625rem;
        border-radius: 50px;
        border: 1px solid rgba(15,23,42,0.1);
        background: #FFFFFF;
    }

    .cv-filter-btn.active {
        border-color: transparent;
    }
}

@media (max-width: 767px) {
    .cv-hero {
        padding: 22px 20px;
    }

    .cv-search-form {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .cv-grid {
        grid-template-columns: 1fr;
    }
}
