/*
 * IIVS Course Manager — Complete Frontend Styles
 * Works with Hello Elementor theme. No Bootstrap dependency.
 *
 * @package IIVS_Course_Manager
 * @since   1.0.0
 */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    --iivs-primary: #0f172a;
    --iivs-accent: #3b82f6;
    --iivs-accent-hover: #2563eb;
    --iivs-success: #10b981;
    --iivs-warning: #f59e0b;
    --iivs-danger: #ef4444;
    --iivs-text: #334155;
    --iivs-text-light: #64748b;
    --iivs-bg: #f8fafc;
    --iivs-white: #ffffff;
    --iivs-border: #e2e8f0;
    --iivs-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --iivs-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --iivs-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --iivs-radius: 16px;
    --iivs-radius-sm: 8px;
    --iivs-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ============================================
   BASE / SECTION WRAPPER
   ============================================ */
.iivs-section {
    font-family: var(--iivs-font);
    color: var(--iivs-text);
    background: var(--iivs-bg);
    padding: 40px 0 60px;
    line-height: 1.6;
}
.iivs-section *,
.iivs-section *::before,
.iivs-section *::after {
    box-sizing: border-box;
}
.iivs-section h1, .iivs-section h2, .iivs-section h3,
.iivs-section h4, .iivs-section h5 {
    color: var(--iivs-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
}
.iivs-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Container */
.iivs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HERO BANNER
   ============================================ */
.iivs-page-banner {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
    overflow: hidden;
}
@keyframes iivsPanPattern {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.iivs-page-banner__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(-45deg, rgba(15,23,42,0.9), rgba(59,130,246,0.5), rgba(15,23,42,0.95));
    background-size: 400% 400%;
    animation: iivsPanPattern 15s ease infinite;
    z-index: 1;
}
.iivs-page-banner__content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 40px 20px;
    max-width: 800px;
}
.iivs-page-banner__title {
    font-family: 'Poppins', sans-serif;
    font-size: 39px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.iivs-page-banner__subtitle {
    font-family: 'Segoe Script', serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.iivs-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 10px 20px;
    margin: 0 0 30px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.iivs-breadcrumb li {
    display: inline-flex;
    align-items: center;
}
.iivs-breadcrumb li + li::before {
    content: '›';
    margin: 0 8px;
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1;
}
.iivs-breadcrumb a {
    color: var(--iivs-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
.iivs-breadcrumb a:hover {
    color: var(--iivs-accent-hover);
    text-decoration: none;
}
.iivs-breadcrumb .current {
    color: #64748b;
    cursor: default;
}

/* ============================================
   BUTTONS
   ============================================ */
.iivs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--iivs-font);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--iivs-radius-sm);
    transition: all 0.2s ease;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}
.iivs-btn--primary,
.iivs-btn-primary {
    background-color: var(--iivs-accent);
    color: #fff !important;
}
.iivs-btn--primary:hover,
.iivs-btn-primary:hover {
    background-color: var(--iivs-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    color: #fff !important;
}
.iivs-btn--outline,
.iivs-btn-outline {
    background: transparent;
    border: 1.5px solid var(--iivs-border);
    color: var(--iivs-text) !important;
}
.iivs-btn--outline:hover,
.iivs-btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--iivs-primary) !important;
}
.iivs-btn--full {
    width: 100%;
}
.iivs-btn--lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}
.iivs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   GRID LAYOUT (COURSES & MODULES)
   ============================================ */
.iivs-courses-grid,
.iivs-modules-grid {
    display: grid;
    gap: 24px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 100px auto;
}
@media (max-width: 768px) {
    .iivs-courses-grid,
    .iivs-modules-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   MINIMAL CARD (Used in course-categories & course-modules)
   ============================================ */
.iivs-minimal-card {
    background: var(--iivs-white);
    border: 1px solid var(--iivs-border);
    border-radius: var(--iivs-radius);
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none !important;
    color: var(--iivs-text) !important;
    transition: all 0.25s ease;
    box-shadow: var(--iivs-shadow-sm);
}
.iivs-minimal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--iivs-shadow-lg);
    border-color: #cbd5e1;
}
.iivs-minimal-card__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--iivs-accent);
}
.iivs-minimal-card__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.iivs-minimal-card__content {
    flex: 1;
}
.iivs-minimal-card__content h3,
.iivs-minimal-card__content h4 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--iivs-primary);
}

/* Course/Module card shared styles */
.iivs-course-card__title,
.iivs-module-card__title {
    margin: 0 0 6px;
    font-size: 1.1rem;
}
.iivs-course-card__excerpt,
.iivs-module-card__excerpt {
    font-size: 0.9rem;
    color: var(--iivs-text-light);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   MODULE DETAIL PAGE (2-column layout, no Bootstrap)
   ============================================ */
.iivs-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
@media (max-width: 992px) {
    .iivs-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Main content area */
.iivs-detail-main h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}
.iivs-detail-main h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.iivs-detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--iivs-text);
}
.iivs-detail-content p {
    margin-bottom: 16px;
}

/* Premium Meta Badges */
.iivs-meta-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--iivs-border);
}
.iivs-badge-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--iivs-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.iivs-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}
.iivs-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: var(--iivs-accent);
    border-radius: 10px;
}
.iivs-badge-text {
    display: flex;
    flex-direction: column;
}
.iivs-badge-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.iivs-badge-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--iivs-primary);
}

/* Module Intro */
.iivs-module-intro {
    margin-bottom: 40px;
}
.iivs-section-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--iivs-primary);
    margin-bottom: 16px !important;
    position: relative;
    padding-bottom: 12px;
}
.iivs-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--iivs-accent);
    border-radius: 4px;
}
.iivs-lead-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #475569;
}

/* Learning Outcomes */
.iivs-outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.iivs-outcomes-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}
.iivs-outcomes-list li::before {
    content: '✓';
    color: var(--iivs-success);
    font-weight: 700;
    min-width: 20px;
}

/* Sidebar Card Premium */
.iivs-sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px;
    border-top: 4px solid var(--iivs-accent);
}
.iivs-price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--iivs-primary);
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--iivs-primary) 0%, var(--iivs-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.iivs-price-label {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}
.iivs-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.iivs-features-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--iivs-text);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f8fafc;
}
.iivs-features-list li::before {
    content: '→';
    color: var(--iivs-accent);
    font-weight: 700;
}

/* Enrollment message */
.iivs-enroll-message {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 12px;
}
.iivs-enrolled-badge {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--iivs-radius-sm);
    padding: 16px;
    text-align: center;
    color: #065f46;
}
.iivs-enrolled-badge strong {
    display: block;
    margin-bottom: 6px;
}
.iivs-enrolled-badge a {
    color: var(--iivs-accent);
    text-decoration: none;
    font-weight: 600;
}

/* Related Modules */
.iivs-related-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--iivs-border);
}
.iivs-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* ============================================
   STUDENT DASHBOARD
   ============================================ */
.iivs-dashboard {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Dashboard Tabs */
.iivs-dashboard-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--iivs-border);
    margin-bottom: 30px;
}
.iivs-dashboard-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-family: var(--iivs-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--iivs-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.iivs-dashboard-tab:hover {
    color: var(--iivs-primary);
}
.iivs-dashboard-tab.active {
    color: var(--iivs-accent);
    border-bottom-color: var(--iivs-accent);
}

/* Dashboard Panels */
.iivs-dashboard-panel {
    display: none;
}
.iivs-dashboard-panel.active {
    display: block;
}

/* Profile Card */
.iivs-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--iivs-white);
    border: 1px solid var(--iivs-border);
    border-radius: var(--iivs-radius);
    padding: 28px;
    box-shadow: var(--iivs-shadow-sm);
}
.iivs-profile-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iivs-accent), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.iivs-profile-info h3 {
    margin: 0 0 4px;
    font-size: 1.3rem;
}
.iivs-profile-info p {
    margin: 0;
    color: var(--iivs-text-light);
    font-size: 0.9rem;
}

/* Dashboard Table */
.iivs-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.iivs-dashboard-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f8fafc;
    color: var(--iivs-text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--iivs-border);
}
.iivs-dashboard-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--iivs-border);
    vertical-align: middle;
}
.iivs-dashboard-table tr:hover td {
    background: #fafbfc;
}

/* ============================================
   AUTH MODAL (Login / Register)
   ============================================ */
.iivs-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.iivs-modal-overlay.active {
    display: flex;
}
.iivs-modal {
    background: var(--iivs-white);
    border-radius: var(--iivs-radius);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--iivs-shadow-lg);
    overflow: hidden;
    animation: iivs-modal-in 0.3s ease;
}
@keyframes iivs-modal-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.iivs-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--iivs-border);
}
.iivs-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--iivs-primary);
}
.iivs-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--iivs-text-light);
    padding: 0;
    line-height: 1;
}
.iivs-modal__close:hover {
    color: var(--iivs-primary);
}
.iivs-modal__body {
    padding: 24px;
}

/* Auth Tabs */
.iivs-auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--iivs-border);
    margin-bottom: 24px;
}
.iivs-auth-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    background: none;
    border: none;
    font-family: var(--iivs-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--iivs-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.iivs-auth-tab.active {
    color: var(--iivs-accent);
    border-bottom-color: var(--iivs-accent);
}

/* Auth Panels */
.iivs-auth-panel {
    display: none;
}
.iivs-auth-panel.active {
    display: block;
}

/* ============================================
   FORM STYLES
   ============================================ */
.iivs-form-group {
    margin-bottom: 16px;
}
.iivs-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--iivs-primary);
    margin-bottom: 6px;
}
.iivs-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--iivs-border);
    border-radius: var(--iivs-radius-sm);
    font-family: var(--iivs-font);
    font-size: 0.95rem;
    color: var(--iivs-text);
    background: var(--iivs-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.iivs-form-input:focus {
    border-color: var(--iivs-accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.iivs-form-help {
    display: block;
    font-size: 0.8rem;
    color: var(--iivs-text-light);
    margin-top: 4px;
}

/* Form Messages */
.iivs-form-message {
    display: none;
    padding: 10px 14px;
    border-radius: var(--iivs-radius-sm);
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.iivs-form-message.iivs-notice--success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.iivs-form-message.iivs-notice--error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================
   NOTICES
   ============================================ */
.iivs-notice {
    text-align: center;
    padding: 20px;
    color: var(--iivs-text-light);
    font-size: 0.95rem;
}

/* Status Badges */
.iivs-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.iivs-badge--active,
.iivs-badge--paid {
    background: #ecfdf5;
    color: #065f46;
}
.iivs-badge--pending,
.iivs-badge--created {
    background: #fffbeb;
    color: #92400e;
}
.iivs-badge--completed {
    background: #f0f9ff;
    color: #075985;
}
.iivs-badge--cancelled,
.iivs-badge--failed,
.iivs-badge--expired {
    background: #fef2f2;
    color: #991b1b;
}

/* ============================================
   SPINNER
   ============================================ */
.iivs-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: iivs-spin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes iivs-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   APPLICATION FORM
   ============================================ */
.iivs-app-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.iivs-app-form-row label {
    width: 200px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}
.iivs-app-input {
    flex: 1;
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #559B2E; /* Green from the screenshot */
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: #333;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.iivs-app-input:focus {
    border-color: #3f7922;
    box-shadow: 0 0 0 3px rgba(85, 155, 46, 0.1);
}
select.iivs-app-input[multiple] {
    height: auto;
    min-height: 80px;
}
.iivs-app-submit-btn {
    background: #bb81b7; /* Purple from the screenshot */
    color: #000;
    font-weight: 600;
    padding: 10px 30px;
    border: 1px solid #9e649a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: opacity 0.2s;
}
.iivs-app-submit-btn:hover {
    opacity: 0.9;
}
.iivs-app-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .iivs-page-banner {
        min-height: 200px;
    }
    .iivs-page-banner__title {
        font-size: 1.75rem;
    }
    .iivs-page-banner__subtitle {
        font-size: 1rem;
    }
    .iivs-section-title {
        font-size: 1.5rem;
    }
    .iivs-detail-layout {
        grid-template-columns: 1fr;
        padding: 20px 16px 40px;
    }
    .iivs-sidebar-card {
        position: static;
    }
    .iivs-dashboard-tabs {
        overflow-x: auto;
    }
    .iivs-dashboard-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .iivs-profile-card {
        flex-direction: column;
        text-align: center;
    }
    .iivs-dashboard-table {
        font-size: 0.8rem;
    }
    .iivs-dashboard-table th,
    .iivs-dashboard-table td {
        padding: 10px 8px;
    }
}

/* ============================================
   INTERACTIVE CARDS (Overhaul)
   ============================================ */
.iivs-interactive-card {
    background: #fff;
    border: 1px solid #cce5ff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-decoration: none;
    color: var(--iivs-text);
}

.iivs-interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.iivs-interactive-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.iivs-interactive-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.iivs-interactive-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iivs-interactive-card__avatar .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #94a3b8;
}

.iivs-interactive-card__meta {
    flex-grow: 1;
}

.iivs-interactive-card__title {
    font-size: 1.15rem;
    color: #3b82f6; /* Blue as per screenshot */
    margin: 0 0 4px 0;
    font-weight: 700;
}

.iivs-interactive-card__subtitle {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
}

.iivs-interactive-card__divider {
    border: 0;
    height: 1px;
    background: #cce5ff;
    margin: 0 0 16px 0;
}

.iivs-interactive-card__body {
    position: relative;
}

.iivs-interactive-card__excerpt {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-bottom: 8px; /* space between text and button */
}

.iivs-interactive-card.is-expanded .iivs-interactive-card__excerpt {
    max-height: 500px; /* Enough to show all text */
}

.iivs-interactive-card__readmore-btn {
    background: none;
    border: none;
    color: var(--iivs-primary);
    font-weight: 700;
    padding: 0;
    margin-top: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    display: inline-block;
    opacity: 1; /* Always visible */
    transition: color 0.3s ease;
}

.iivs-interactive-card__readmore-btn:hover {
    color: var(--iivs-accent);
}

/* ============================================
   CART POPUP
   ============================================ */
.iivs-cart-popup,
.iivs-cart-popup * {
    box-sizing: border-box;
}

.iivs-cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.iivs-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.iivs-cart-popup {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 100%;
    max-width: 420px;
    background: var(--iivs-white);
    box-shadow: 4px 0 25px rgba(0,0,0,0.15);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.iivs-cart-popup.is-open {
    transform: translateX(0);
}

.iivs-cart-popup__header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}
.iivs-cart-popup__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--iivs-primary);
}
.iivs-cart-popup__close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--iivs-text-light);
    line-height: 1;
    transition: all 0.2s ease;
}
.iivs-cart-popup__close:hover {
    color: var(--iivs-primary);
    background: #e2e8f0;
    transform: rotate(90deg);
}

.iivs-cart-popup__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.iivs-cart-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.iivs-cart-loading,
.iivs-cart-empty-msg {
    text-align: center;
    color: var(--iivs-text-light);
}

.iivs-cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--iivs-radius-md);
    position: relative;
    transition: all 0.3s ease;
}
.iivs-cart-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}
.iivs-cart-item:last-child {
    margin-bottom: 0;
}
.iivs-cart-item__thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--iivs-radius-sm);
}
.iivs-cart-item__details {
    flex: 1;
    padding-right: 20px;
}
.iivs-cart-item__title {
    font-size: 0.95rem;
    margin: 0 0 6px;
    font-weight: 600;
    line-height: 1.4;
}
.iivs-cart-item__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--iivs-accent);
}
.iivs-cart-remove {
    position: absolute;
    top: 12px; right: 12px;
    color: var(--iivs-text-light);
    font-size: 1.4rem;
    text-decoration: none;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.iivs-cart-remove:hover {
    color: var(--iivs-danger);
    background: #fee2e2;
}

.iivs-cart-popup__footer {
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.03);
}
.iivs-cart-popup__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--iivs-text);
}
.iivs-cart-popup__total strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--iivs-primary);
}

/* ============================================
   STICKY SIDEBAR BUTTONS
   ============================================ */
.iivs-sticky-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99997;
}
.iivs-sticky-btn {
    background: var(--iivs-primary);
    color: #fff !important;
    border: 2px solid #fff;
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -2px 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 50px;
    height: 50px;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    text-decoration: none;
    padding-top: 11px;
    position: relative;
}
.iivs-sticky-btn:hover {
    height: 150px;
    background: var(--iivs-accent);
}
.iivs-sticky-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.iivs-sticky-text {
    writing-mode: vertical-rl;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.iivs-sticky-btn:hover .iivs-sticky-text {
    opacity: 1;
    transition-delay: 0.15s;
}
.iivs-sticky-btn .iivs-cart-count-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--iivs-danger);
    color: var(--iivs-white);
    font-size: 11px;
    font-weight: bold;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ============================================
   STUDENT DASHBOARD
   ============================================ */
.iivs-dashboard {
    max-width: 900px;
    margin: 40px auto;
    font-family: var(--iivs-font);
}

.iivs-dashboard-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.iivs-dashboard-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.iivs-dashboard-tab:hover {
    color: var(--iivs-primary);
}

.iivs-dashboard-tab.active {
    color: var(--iivs-accent);
    border-bottom-color: var(--iivs-accent);
}

.iivs-dashboard-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.iivs-dashboard-panel.active {
    display: block;
}

.iivs-profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.iivs-profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--iivs-accent);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.iivs-profile-info h3 {
    margin: 0 0 5px;
    color: var(--iivs-primary);
    font-size: 1.5rem;
}

.iivs-profile-info p {
    margin: 0;
    color: #475569;
}

.iivs-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.iivs-dashboard-table th,
.iivs-dashboard-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.iivs-dashboard-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.iivs-dashboard-table tr:last-child td {
    border-bottom: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
