/**
 * Imparthub LMS Public Styles
 * 
 * Uses CSS custom properties for consistent theming
 * Colors are based on the Elementor Global Colors palette
 */

:root {
    /* ==============================================
       BRAND COLORS - Change these to update globally
       ============================================== */

    /* Primary Brand Colors */
    --ih-primary: #6C5CE7;
    /* Purple - main accent */
    --ih-primary-hover: #5B4BD5;
    /* Darker purple for hover */
    --ih-primary-light: rgba(108, 92, 231, 0.15);
    /* Purple tint for backgrounds */

    --ih-secondary: #E84C8A;
    /* Pink - secondary accent */
    --ih-secondary-hover: #D43B79;

    /* Background Colors */
    --ih-bg-dark: #1A1A2E;
    /* Main dark background */
    --ih-bg-card: #25253A;
    /* Card/elevated background */
    --ih-bg-elevated: #2D2D44;
    /* Higher elevated elements */
    --ih-bg-input: #25253A;
    /* Input fields */

    /* Text Colors */
    --ih-text-primary: #FFFFFF;
    /* Main text - white */
    --ih-text-secondary: #A0A0B8;
    /* Muted text - grey */
    --ih-text-muted: #6B6B80;
    /* Very muted text */

    /* Accent Colors */
    --ih-accent-yellow: #F5C000;
    /* Yellow highlight/badge */
    --ih-accent-green: #10B981;
    /* Success/enrolled green */

    /* Status Colors */
    --ih-status-open: #10B981;
    /* Green - enrolling */
    --ih-status-upcoming: #F5C000;
    /* Yellow - upcoming */
    --ih-status-live: #EF4444;
    /* Red - live now */
    --ih-status-archived: #6B7280;
    /* Grey - archived */
    --ih-status-complete: #10B981;
    /* Green - completed */

    /* Border Colors */
    --ih-border: rgba(160, 160, 177, 0.1);
    /* Subtle borders */
    --ih-border-strong: #A0A0B1A;
    /* Visible borders */
    --ih-border-hover: #6C5CE7;
    /* Purple border on hover */
    --ih-border-input: rgba(160, 160, 177, 0.2);

    /* ==============================================
       SPACING, RADIUS, SHADOWS - Design tokens
       ============================================== */

    /* Spacing */
    --ih-space-1: 0.25rem;
    --ih-space-2: 0.5rem;
    --ih-space-3: 0.75rem;
    --ih-space-4: 1rem;
    --ih-space-5: 1.25rem;
    --ih-space-6: 1.5rem;
    --ih-space-8: 2rem;
    --ih-space-10: 2.5rem;
    --ih-space-12: 3rem;

    /* Border Radius */
    --ih-radius-sm: 4px;
    --ih-radius-md: 8px;
    --ih-radius-lg: 12px;
    --ih-radius-xl: 16px;
    --ih-radius-full: 9999px;

    /* Shadows */
    --ih-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --ih-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --ih-shadow-hover: 0 15px 40px rgba(108, 92, 231, 0.15);

    /* Transitions */
    --ih-transition-fast: 0.15s ease;
    --ih-transition-base: 0.2s ease;
    --ih-transition-slow: 0.3s ease;

    /* Typography */
    --ih-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ============================================
   BASE COMPONENTS
   ============================================ */

/* Buttons */
.ih-btn {
    display: inline-block;
    padding: var(--ih-space-3) var(--ih-space-6);
    border-radius: var(--ih-radius-md);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all var(--ih-transition-base);
}

.ih-btn--primary {
    background: var(--ih-primary);
    color: var(--ih-text-primary);
}

.ih-btn--primary:hover {
    background: var(--ih-primary-hover);
    color: var(--ih-text-primary);
    transform: translateY(-2px);
}

.ih-btn--secondary {
    background: var(--ih-bg-elevated);
    color: var(--ih-text-primary);
}

.ih-btn--secondary:hover {
    background: var(--ih-primary-light);
    color: var(--ih-text-primary);
}

/* Cards */
.ih-card {
    background: var(--ih-bg-card);
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius-xl);
    overflow: hidden;
    transition: all var(--ih-transition-slow);
}

.ih-card:hover {
    transform: translateY(-7px);
    border-color: var(--ih-border-hover);
    box-shadow: var(--ih-shadow-hover);
}

.ih-card__header {
    padding: var(--ih-space-6);
    border-bottom: 1px solid var(--ih-border);
}

.ih-card__body {
    padding: var(--ih-space-6);
}

.ih-card__footer {
    padding: var(--ih-space-6);
    border-top: 1px solid var(--ih-border);
}

/* Status Badges */
.ih-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ih-space-1);
    padding: var(--ih-space-1) var(--ih-space-3);
    border-radius: var(--ih-radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ih-badge--open,
.ih-badge--enrolling {
    background: rgba(16, 185, 129, 0.15);
    color: var(--ih-status-open);
}

.ih-badge--upcoming,
.ih-badge--coming_soon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--ih-status-upcoming);
}

.ih-badge--live {
    background: rgba(239, 68, 68, 0.15);
    color: var(--ih-status-live);
    animation: ih-pulse 2s infinite;
}

.ih-badge--archived,
.ih-badge--completed {
    background: rgba(107, 114, 128, 0.15);
    color: var(--ih-status-archived);
}

@keyframes ih-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Grid */
.ih-grid {
    display: grid;
    gap: var(--ih-space-8);
}

.ih-grid--2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ih-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ============================================
   CHECKOUT STYLES (Split Layout Pivot)
   ============================================ */
.ih-checkout-auth-wrapper,
.ih-checkout-guest-wrapper {
    max-width: 1100px;
    margin: 60px auto;
    font-family: var(--ih-font-primary);
    padding: 0 20px;
}

/* Main Split Container with Glow Border */
.ih-checkout-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ih-bg-card);
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius-xl);
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.3), 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Gradient Border Effect */
.ih-checkout-split-container::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--ih-radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, var(--ih-primary), var(--ih-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

/* LEFT COLUMN: Product Info */
.ih-col-product {
    padding: 60px;
    border-right: 1px solid var(--ih-border);
    position: relative;
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.05) 0%, rgba(26, 26, 46, 0) 100%);
}

.ih-product-title {
    font-size: 1.3rem;
    /* Reduced further */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.ih-product-price-large {
    font-size: 2.5rem;
    /* Reduced from 4rem */
    font-weight: 800;
    color: var(--ih-text-primary);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.ih-product-currency {
    font-size: 1em;
    /* Inherit size from parent */
    font-weight: 800;
    color: inherit;
    /* Inherit color from parent */
    vertical-align: baseline;
    /* Align with text */
}

.ih-product-meta {
    font-size: 0.95rem;
    /* Reduced slightly */
    color: var(--ih-text-secondary);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ih-product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ih-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    /* Reduced slightly */
    color: var(--ih-text-secondary);
}

.ih-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--ih-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* RIGHT COLUMN: Auth Form */
.ih-col-auth {
    padding: 60px;
    background: var(--ih-bg-elevated);
}

.ih-auth-title-large {
    font-size: 1.3rem;
    /* Matched with left column */
    font-weight: 800;
    margin-bottom: 10px;
}

.ih-auth-subtitle {
    font-size: 1rem;
    color: var(--ih-text-secondary);
    margin-bottom: 40px;
}

/* Toggle Link */
.ih-auth-toggle-link {
    text-align: center;
    margin-top: 20px;
    color: var(--ih-text-secondary);
    font-size: 0.95rem;
}

.ih-auth-toggle-link a {
    color: var(--ih-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.ih-auth-toggle-link a:hover {
    text-decoration: underline;
}

/* Hide legacy styles */
.ih-checkout-grid,
.ih-checkout-auth-card {
    display: none;
    /* Just in case */
}

.ih-auth-header {
    padding: 25px 30px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--ih-border);
}

.ih-auth-header h2 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--ih-text-primary);
}

.ih-auth-header p {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: var(--ih-text-secondary);
}

/* Tabs */
.ih-auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--ih-border);
    background: transparent;
}

.ih-tab-btn {
    flex: 1;
    padding: 18px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--ih-text-secondary);
    border-bottom: 3px solid transparent;
    transition: all var(--ih-transition-base);
}

.ih-tab-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--ih-text-primary);
}

.ih-tab-btn.active {
    color: var(--ih-primary);
    border-bottom-color: var(--ih-primary);
    background: rgba(108, 92, 231, 0.05);
}

/* Auth Content */
.ih-auth-content {
    padding: 30px;
}

.ih-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ih-form-group {
    margin-bottom: 20px;
}

.ih-form-group:last-child {
    margin-bottom: 25px;
}

.ih-form-group label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--ih-text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ih-form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1em;
    border: 1px solid var(--ih-border-input);
    border-radius: var(--ih-radius-md);
    background: var(--ih-bg-input);
    color: var(--ih-text-primary);
    transition: var(--ih-transition-base);
}

.ih-form-group input:focus {
    border-color: var(--ih-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.ih-checkout-btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: var(--ih-radius-md);
    background: var(--ih-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--ih-shadow-md);
    transition: var(--ih-transition-base);
}

.ih-checkout-btn-primary:hover {
    background: var(--ih-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--ih-shadow-hover);
}

/* User Confirmation (Logged In) */
.ih-user-details {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: var(--ih-radius-md);
    margin-bottom: 30px;
    border: 1px solid var(--ih-border);
}

.ih-user-label {
    margin: 0 0 10px;
    font-weight: 600;
    color: var(--ih-text-secondary);
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.ih-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ih-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--ih-primary);
}

.ih-user-name h4 {
    margin: 0;
    font-size: 1.1em;
    color: var(--ih-text-primary);
}

.ih-user-name span {
    font-size: 0.9em;
    color: var(--ih-text-secondary);
}

/* Order Summary (Right) */
.ih-checkout-sidebar {
    position: sticky;
    top: 20px;
}

.ih-order-summary-card {
    background: var(--ih-bg-elevated);
    border-radius: var(--ih-radius-xl);
    border: 1px solid var(--ih-border);
    overflow: hidden;
    box-shadow: var(--ih-shadow-lg);
}

.ih-os-header {
    background: rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    border-bottom: 1px solid var(--ih-border);
}

.ih-os-header h3 {
    margin: 0;
    font-size: 1em;
    font-weight: 700;
    color: var(--ih-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ih-os-content {
    padding: 20px;
}

.ih-os-item {
    display: flex;
    gap: 15px;
    align-items: start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--ih-border);
}

.ih-os-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--ih-radius-md);
    overflow: hidden;
    /* background: var(--ih-bg-input); // redundant if image covers */
}

.ih-os-details h4 {
    margin: 0 0 5px;
    font-size: 1em;
    line-height: 1.4;
    color: var(--ih-text-primary);
}

.ih-os-meta {
    font-size: 0.85em;
    color: var(--ih-text-secondary);
}

.ih-os-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ih-os-total-label {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--ih-text-secondary);
}

.ih-os-total-price {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--ih-primary);
}

.ih-os-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--ih-border);
    text-align: center;
}

.ih-os-footer p {
    margin: 0;
    font-size: 0.85em;
    color: var(--ih-text-muted);
}

.ih-secure-notice {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85em;
    color: var(--ih-text-muted);
}

/* RESPONSIVE CHECKOUT */
@media (max-width: 850px) {
    .ih-checkout-grid {
        grid-template-columns: 1fr !important;
    }

    .ih-form-row {
        grid-template-columns: 1fr !important;
    }

    .ih-checkout-sidebar {
        position: static !important;
        order: -1;
        margin-bottom: 30px;
    }

    .ih-order-summary-card {
        border-left: 4px solid var(--ih-primary);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.ih-text-primary {
    color: var(--ih-text-primary);
}

.ih-text-secondary {
    color: var(--ih-text-secondary);
}

.ih-text-muted {
    color: var(--ih-text-muted);
}

.ih-text-center {
    text-align: center;
}

.ih-text-right {
    text-align: right;
}

.ih-mt-4 {
    margin-top: var(--ih-space-4);
}

.ih-mt-6 {
    margin-top: var(--ih-space-6);
}

.ih-mb-4 {
    margin-bottom: var(--ih-space-4);
}

.ih-mb-6 {
    margin-bottom: var(--ih-space-6);
}

/* ============================================
   CATALOG STYLES
   ============================================ */

.ih-catalog {
    padding: var(--ih-space-8) 0;
}

.ih-catalog__header {
    margin-bottom: var(--ih-space-8);
}

.ih-catalog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ih-space-4);
    margin-bottom: var(--ih-space-6);
}

.ih-catalog__search {
    flex: 1;
    min-width: 250px;
}

.ih-catalog__search input {
    width: 100%;
    padding: var(--ih-space-3) var(--ih-space-4);
    background: var(--ih-bg-input);
    border: 1px solid var(--ih-border-input);
    border-radius: var(--ih-radius-md);
    color: var(--ih-text-primary);
    font-size: 16px;
}

.ih-catalog__search input:focus {
    outline: none;
    border-color: var(--ih-primary);
}

.ih-catalog__empty {
    text-align: center;
    padding: var(--ih-space-12);
    color: var(--ih-text-secondary);
}

/* Course Card */
.ih-course-card {
    display: flex;
    flex-direction: column;
}

.ih-course-card__image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ih-course-card__badge {
    position: absolute;
    top: var(--ih-space-3);
    left: var(--ih-space-3);
}

.ih-course-card__body {
    padding: var(--ih-space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ih-course-card__title {
    color: var(--ih-text-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 var(--ih-space-2) 0;
    line-height: 1.3;
}

.ih-course-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ih-space-3);
    margin-bottom: var(--ih-space-4);
    color: var(--ih-text-secondary);
    font-size: 12px;
}

.ih-course-card__price {
    color: var(--ih-primary);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: var(--ih-space-4);
}

.ih-course-card__cta {
    margin-top: auto;
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

.ih-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--ih-space-6);
}

.ih-dashboard__header {
    display: flex;
    align-items: center;
    gap: var(--ih-space-5);
    margin-bottom: var(--ih-space-8);
    padding: var(--ih-space-6);
    background: linear-gradient(135deg, var(--ih-bg-elevated) 0%, var(--ih-bg-dark) 100%);
    border-radius: var(--ih-radius-xl);
}

.ih-dashboard__avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--ih-radius-full);
    object-fit: cover;
    border: 3px solid var(--ih-primary);
}

.ih-dashboard__welcome h2 {
    color: var(--ih-text-primary);
    margin: 0 0 var(--ih-space-1) 0;
    font-size: 24px;
}

.ih-dashboard__welcome p {
    color: var(--ih-text-secondary);
    margin: 0;
}

.ih-dashboard__section {
    margin-bottom: var(--ih-space-10);
}

.ih-dashboard__section h3 {
    color: var(--ih-text-primary);
    margin-bottom: var(--ih-space-6);
    font-size: 20px;
}

.ih-dashboard__empty {
    text-align: center;
    padding: var(--ih-space-12);
    background: var(--ih-bg-card);
    border-radius: var(--ih-radius-lg);
    color: var(--ih-text-secondary);
}

/* ============================================
   USER MENU
   ============================================ */

.ih-user-menu {
    display: flex;
    align-items: center;
    gap: var(--ih-space-3);
}

.ih-user-menu img {
    width: 32px;
    height: 32px;
    border-radius: var(--ih-radius-full);
    border: 2px solid var(--ih-primary);
}

.ih-user-menu a {
    color: var(--ih-text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--ih-transition-fast);
}

.ih-user-menu a:hover {
    color: var(--ih-secondary);
}

/* ============================================
   SINGLE COURSE PAGE
   ============================================ */

.ih-single-course {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--ih-space-8) var(--ih-space-4);
}

/* Hero Section */
.ih-course-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--ih-space-8);
    padding: var(--ih-space-10);
    background: linear-gradient(135deg, var(--ih-bg-elevated) 0%, var(--ih-bg-dark) 100%);
    border-radius: var(--ih-radius-xl);
    margin-bottom: var(--ih-space-10);
}

.ih-course-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ih-course-hero__title {
    color: var(--ih-text-primary);
    font-size: 36px;
    font-weight: 800;
    margin: var(--ih-space-4) 0;
    line-height: 1.2;
}

.ih-course-hero__subtitle {
    color: var(--ih-text-secondary);
    font-size: 18px;
    margin: 0 0 var(--ih-space-6) 0;
}

.ih-course-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ih-space-4);
}

.ih-meta-item {
    color: var(--ih-text-secondary);
    font-size: 14px;
}

.ih-course-hero__image {
    border-radius: var(--ih-radius-lg);
    overflow: hidden;
}

.ih-course-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Course Layout */
.ih-course-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--ih-space-10);
}

.ih-course-main {
    min-width: 0;
}

.ih-course-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--ih-space-6);
}

/* Course Sections */
.ih-course-section {
    margin-bottom: var(--ih-space-10);
}

.ih-course-section h2 {
    color: var(--ih-text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 var(--ih-space-6) 0;
}

.ih-course-description {
    color: var(--ih-text-secondary);
    line-height: 1.7;
}

.ih-course-description p {
    margin-bottom: var(--ih-space-4);
}

/* Outcomes List */
.ih-outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ih-outcomes-list li {
    color: var(--ih-text-primary);
    padding: var(--ih-space-3) 0;
    border-bottom: 1px solid var(--ih-border);
}

.ih-outcomes-list li:last-child {
    border-bottom: none;
}

/* Pricing Card */
.ih-pricing-card {
    background: var(--ih-bg-card);
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius-xl);
    padding: var(--ih-space-8);
    position: sticky;
    top: var(--ih-space-6);
}

.ih-pricing-card__price {
    font-size: 42px;
    font-weight: 800;
    color: var(--ih-primary);
    margin-bottom: var(--ih-space-6);
}

.ih-pricing-card__ondemand {
    color: var(--ih-text-secondary);
    font-size: 14px;
    margin-bottom: var(--ih-space-4);
}

.ih-btn--full {
    width: 100%;
    padding: var(--ih-space-4);
    font-size: 16px;
}

.ih-btn--small {
    padding: var(--ih-space-2) var(--ih-space-4);
    font-size: 12px;
}

.ih-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: var(--ih-space-6) 0 0 0;
}

.ih-pricing-card__features li {
    color: var(--ih-text-secondary);
    padding: var(--ih-space-2) 0;
    font-size: 14px;
}

/* Instructor Card */
.ih-instructor-card {
    background: var(--ih-bg-card);
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius-xl);
    padding: var(--ih-space-6);
}

.ih-instructor-card h3 {
    color: var(--ih-text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 var(--ih-space-4) 0;
}

.ih-instructor-card__content {
    display: flex;
    align-items: center;
    gap: var(--ih-space-4);
    margin-bottom: var(--ih-space-4);
}

.ih-instructor-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--ih-radius-full);
    object-fit: cover;
    border: 2px solid var(--ih-primary);
}

.ih-instructor-card__info h4 {
    color: var(--ih-text-primary);
    margin: 0 0 var(--ih-space-1) 0;
    font-size: 16px;
}

.ih-instructor-card__title {
    color: var(--ih-text-secondary);
    font-size: 14px;
    margin: 0;
}

.ih-instructor-card__bio {
    color: var(--ih-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 var(--ih-space-4) 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .ih-course-hero {
        grid-template-columns: 1fr;
    }

    .ih-course-hero__image {
        order: -1;
        max-height: 300px;
    }

    .ih-course-layout {
        grid-template-columns: 1fr;
    }

    .ih-course-sidebar {
        order: -1;
    }

    .ih-pricing-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .ih-dashboard__header {
        flex-direction: column;
        text-align: center;
    }

    .ih-grid--3 {
        grid-template-columns: 1fr;
    }

    .ih-catalog__filters {
        flex-direction: column;
    }

    .ih-course-hero {
        padding: var(--ih-space-6);
    }

    .ih-course-hero__title {
        font-size: 28px;
    }

    .ih-single-course {
        padding: var(--ih-space-4);
    }
}

/* ==============================================
   CURRICULUM / SYLLABUS STYLES
   ============================================== */

.ih-syllabus-wrapper {
    margin-top: var(--ih-space-6);
}

.ih-syllabus-list {
    display: flex;
    flex-direction: column;
    gap: var(--ih-space-3);
}

/* Session Item */
.ih-session-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--ih-radius-lg);
    border: 1px solid var(--ih-border);
    overflow: hidden;
    transition: var(--ih-transition-base);
}

.ih-session-item:hover,
.ih-session-item.active {
    border-color: var(--ih-border-hover);
}

/* Header (Toggle) */
.ih-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--ih-space-5);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.ih-session-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ih-session-left {
    display: flex;
    gap: var(--ih-space-5);
    align-items: center;
}

.ih-session-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--ih-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ih-session-main {
    display: flex;
    flex-direction: column;
    gap: var(--ih-space-1);
}

/* Dashboard Grid Wrapper */
.ih-course-progress-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: var(--ih-space-4);
}

.ih-session-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ih-text-primary);
}

.ih-session-meta {
    display: flex;
    gap: var(--ih-space-4);
    font-size: 0.85rem;
    color: var(--ih-text-secondary);
}

.ih-session-meta span {
    display: flex;
    align-items: center;
    gap: var(--ih-space-2);
}

.ih-session-meta i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.ih-session-right {
    display: flex;
    align-items: center;
    gap: var(--ih-space-4);
}

/* Badges */
.ih-badge {
    padding: 4px 10px;
    border-radius: var(--ih-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ih-badge-live {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
    animation: ih-pulse 2s infinite;
}

.ih-badge-upcoming {
    background: rgba(245, 192, 0, 0.15);
    color: #F5C000;
}

.ih-badge-recorded {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.ih-badge-past {
    background: rgba(107, 114, 128, 0.15);
    color: #9CA3AF;
}

.ih-toggle-icon {
    font-size: 0.9rem;
    color: var(--ih-text-muted);
    transition: transform 0.3s ease;
}

/* Active State */
.ih-session-item.active .ih-toggle-icon {
    transform: rotate(180deg);
}

.ih-session-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.1);
}

.ih-session-item.active .ih-session-body {
    max-height: 1000px;
    /* Arbitrary large height */
    transition: max-height 0.5s ease-in;
    border-top: 1px solid var(--ih-border);
}

/* Video Embed */
.ih-video-container {
    padding: var(--ih-space-5);
    padding-bottom: 0;
}

.ih-video-container iframe,
.ih-video-container video {
    width: 100%;
    border-radius: var(--ih-radius-md);
    aspect-ratio: 16/9;
    border: none;
    background: #000;
}

.ih-session-desc {
    padding: var(--ih-space-5);
    color: var(--ih-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ih-session-desc p:last-child {
    margin-bottom: 0;
}

/* Actions */
.ih-session-actions {
    padding: 0 var(--ih-space-5) var(--ih-space-5);
    display: flex;
    gap: var(--ih-space-3);
    flex-wrap: wrap;
}

.ih-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ih-space-2);
    padding: 10px 20px;
    border-radius: var(--ih-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--ih-transition-base);
    text-decoration: none !important;
}

.ih-btn-join {
    background: var(--ih-primary);
    color: white;
}

.ih-btn-join:hover {
    background: var(--ih-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.ih-btn-watch {
    background: var(--ih-bg-dark);
    color: var(--ih-text-primary);
    border: 1px solid var(--ih-border);
}

.ih-btn-watch:hover {
    border-color: var(--ih-primary);
    color: var(--ih-primary);
}

/* Resources */
.ih-session-resources {
    padding: var(--ih-space-5);
    border-top: 1px solid var(--ih-border);
    background: rgba(0, 0, 0, 0.1);
}

.ih-session-resources h5 {
    display: flex;
    align-items: center;
    gap: var(--ih-space-2);
    font-size: 0.9rem;
    color: var(--ih-text-primary);
    margin: 0 0 var(--ih-space-3) 0;
}

.ih-resource-list {
    display: grid;
    gap: var(--ih-space-2);
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.ih-resource-link {
    display: flex;
    align-items: center;
    gap: var(--ih-space-3);
    padding: var(--ih-space-3);
    background: var(--ih-bg-elevated);
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius-md);
    color: var(--ih-text-secondary);
    text-decoration: none;
    transition: var(--ih-transition-base);
    font-size: 0.85rem;
}

.ih-resource-link:hover {
    border-color: var(--ih-primary);
    color: var(--ih-primary);
    transform: translateY(-2px);
}

.ih-res-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ih-res-size {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Locked State */
.ih-locked .ih-session-header {
    opacity: 0.7;
}

.ih-locked .ih-session-title {
    color: var(--ih-text-secondary);
}

.ih-locked-overlay {
    padding: var(--ih-space-6);
    text-align: center;
    color: var(--ih-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ih-space-2);
}

.ih-locked-overlay i {
    font-size: 1.5rem;
    margin-bottom: var(--ih-space-2);
    opacity: 0.5;
}

/* Animations */
@keyframes ih-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .ih-session-left {
        gap: var(--ih-space-3);
    }

    .ih-session-num {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .ih-session-meta {
        flex-direction: column;
        gap: var(--ih-space-1);
    }

    .ih-actions {
        flex-direction: column;
    }

    .ih-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==============================================
   CUSTOM VIDEO PLAYER
   ============================================== */
.ih-video-player {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    border-radius: var(--ih-radius-lg);
}

.ih-video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
}

.ih-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Disable interaction with iframe */
}

/* Security Overlays */
.ih-overlay-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 5;
}

.ih-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Controls */
.ih-video-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    pointer-events: auto;
    /* Enable interaction with controls */
}

.ih-video-player:hover .ih-video-controls,
.ih-video-player.is-playing .ih-video-controls {
    opacity: 1;
}

.ih-video-controls button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.ih-video-controls button:hover {
    color: var(--ih-primary);
}

/* Interactive Progress Bar */
.ih-control-progress {
    flex-grow: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: height 0.1s;
}

.ih-control-progress:hover {
    height: 8px;
    /* Expand on hover for easier clicking */
}

.ih-progress-filled {
    height: 100%;
    background: var(--ih-primary);
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
    position: relative;
}

/* Volume Slider */
.ih-volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.ih-volume-slider {
    width: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: width 0.2s ease;
    overflow: hidden;
    position: relative;
}

.ih-volume-container:hover .ih-volume-slider,
.ih-volume-slider:hover {
    width: 60px;
    /* Reveal on hover */
}

.ih-volume-level {
    height: 100%;
    background: #fff;
    width: 100%;
    /* Default to 100% */
}

.ih-control-time {
    font-size: 12px;
    font-family: monospace;
    min-width: 80px;
    text-align: center;
}

/* ==============================================
   REVIEW MODAL & WIDGETS
   ============================================== */

/* Modal Backdrop */
.ih-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ih-modal.open {
    opacity: 1;
    visibility: visible;
}

.ih-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(8px);
}

/* Modal Content */
.ih-modal-content {
    position: relative;
    background: var(--ih-bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: var(--ih-radius-xl);
    border: 1px solid var(--ih-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 30px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10001;
}

.ih-modal.open .ih-modal-content {
    transform: translateY(0);
}

.ih-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--ih-text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}

.ih-modal-close:hover {
    color: var(--ih-text-primary);
}

.ih-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.ih-modal-header h3 {
    color: var(--ih-text-primary);
    margin: 0 0 5px 0;
    font-size: 22px;
}

.ih-modal-header p {
    color: var(--ih-text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Form Styles */
.ih-form-group {
    margin-bottom: 20px;
}

.ih-form-group label {
    display: block;
    color: var(--ih-text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#ih-review-form .ih-form-control,
.ih-form-control {
    width: 100%;
    background-color: var(--ih-bg-input) !important;
    border: 1px solid var(--ih-border-input) !important;
    border-radius: var(--ih-radius-md) !important;
    padding: 12px 15px !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

#ih-review-form .ih-form-control::placeholder,
.ih-form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

#ih-review-form .ih-form-control:hover,
.ih-form-control:hover {
    border-color: var(--ih-primary) !important;
    box-shadow: 0 0 0 1px var(--ih-primary-light) !important;
}

#ih-review-form .ih-form-control:focus,
.ih-form-control:focus {
    outline: none !important;
    border-color: var(--ih-primary) !important;
    background-color: var(--ih-bg-input) !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.25) !important;
    color: #ffffff !important;
}

textarea.ih-form-control {
    resize: vertical;
    min-height: 100px;
}

/* Star Rating Widget */
.ih-rating-input {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.ih-stars-widget {
    display: inline-flex;
    justify-content: center;
    gap: 5px;
    flex-direction: row-reverse;
    /* Allows hover visual logic */
}

.ih-stars-widget input {
    display: none;
}

.ih-stars-widget label {
    font-size: 32px;
    color: var(--ih-bg-elevated);
    /* Empty star color */
    cursor: pointer;
    transition: color 0.2s;
}

.ih-stars-widget label:hover,
.ih-stars-widget label:hover~label,
.ih-stars-widget input:checked~label {
    color: var(--ih-accent-yellow);
}

.ih-stars-widget label:hover {
    transform: scale(1.1);
}

.ih-rating-label {
    font-size: 13px;
    color: var(--ih-text-muted);
    font-weight: 500;
}

/* Review Button - Dark Theme Style */
#ih-open-review-modal {
    background-color: var(--ih-primary);
    color: #ffffff;
    border: none;
    transition: all var(--ih-transition-base);
    box-shadow: var(--ih-shadow-md);
    font-weight: 600;
    padding: 8px 16px;
    height: auto;
    font-size: 14px;
}

#ih-open-review-modal:hover {
    background-color: var(--ih-secondary);
    transform: translateY(-2px);
    box-shadow: var(--ih-shadow-hover);
    color: #ffffff;
}

#ih-open-review-modal i {
    margin-right: 6px;
}

/* Secondary Button (Show More) */
.ih-btn--secondary {
    background: transparent;
    border: 1px solid var(--ih-border);
    color: var(--ih-text-secondary);
    padding: 8px 20px;
    border-radius: var(--ih-radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 14px;
}

.ih-btn--secondary:hover {
    background: var(--ih-bg-elevated);
    border-color: var(--ih-text-secondary);
    color: var(--ih-text-primary);
}

/* Reviews List Layout */
.ih-rev-grid {
    display: grid;
    grid-template-columns: 100% !important;
    /* Force 1 column with 100% width */
    gap: 20px;
    margin-top: 20px;
}

.ih-rev-card {
    background: var(--ih-bg-elevated);
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius-lg);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ih-rev-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ih-shadow-md);
    border-color: var(--ih-primary-light);
}

.ih-rev-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.ih-rev-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ih-bg-app);
}

.ih-rev-meta {
    flex: 1;
}

.ih-rev-author {
    font-weight: 600;
    color: var(--ih-text-primary);
    font-size: 15px;
}

.ih-rev-date {
    font-size: 13px;
    color: var(--ih-text-muted);
}

.ih-rev-stars {
    display: flex;
    gap: 2px;
}

.ih-card-star {
    font-size: 14px;
    color: var(--ih-border-input);
}

.ih-card-star.filled {
    color: var(--ih-secondary);
}

.ih-rev-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ih-text-secondary);
    margin: 0;
}

/* Instructor Profile Page */
.ih-instructor-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.ih-inst-header {
    background: var(--ih-bg-elevated);
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--ih-shadow-sm);
}

.ih-inst-profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ih-bg-app);
    margin-bottom: 20px;
    box-shadow: var(--ih-shadow-md);
}

.ih-inst-profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--ih-primary);
    color: #fff;
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid var(--ih-bg-app);
}

.ih-inst-name {
    margin: 0 0 10px;
    font-size: 28px;
    color: var(--ih-text-primary);
    font-weight: 700;
}

.ih-inst-job {
    color: var(--ih-text-secondary);
    font-size: 16px;
    margin: 0 0 20px;
}

.ih-inst-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.ih-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ih-bg-input);
    color: var(--ih-text-muted);
    font-size: 18px;
    transition: all 0.2s;
}

.ih-social-link:hover {
    background: var(--ih-primary);
    color: #fff;
    transform: translateY(-2px);
}

.ih-inst-content-grid {
    width: 100%;
}

.ih-inst-bio-full {
    color: var(--ih-text-secondary);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 25px;
}

.ih-inst-expertise h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--ih-text-primary);
}

/* Course Card specific overrides for profile if needed */
.ih-instructor-profile .ih-card {
    height: 100%;
}

/* =====================================================
   GLOBAL PAGE OVERRIDES FOR INSTRUCTOR PROFILE
   ===================================================== */
/* Force dark background on the instructor profile page body */
body.single-imparthub_instructor {
    background-color: var(--ih-bg-dark) !important;
    color: var(--ih-text-secondary);
}

/* Hide default theme headers/titles (Title, Breadcrumbs, Meta) */
body.single-imparthub_instructor .entry-header,
body.single-imparthub_instructor .entry-title,
body.single-imparthub_instructor .post-header,
body.single-imparthub_instructor .page-header,
body.single-imparthub_instructor .entry-meta,
body.single-imparthub_instructor .site-breadcrumb,
body.single-imparthub_instructor .breadcrumbs,
body.single-imparthub_instructor #crumbs {
    display: none !important;
}

/* Ensure inner containers are transparent so body color shows through */
body.single-imparthub_instructor .site-content,
body.single-imparthub_instructor .entry-content,
body.single-imparthub_instructor #page,
body.single-imparthub_instructor .site-inner,
body.single-imparthub_instructor .wrap,
body.single-imparthub_instructor .container {
    background-color: transparent !important;
}

/* Force headings to be white/light */
body.single-imparthub_instructor h1,
body.single-imparthub_instructor h2,
body.single-imparthub_instructor h3,
body.single-imparthub_instructor h4,
body.single-imparthub_instructor h5,
body.single-imparthub_instructor h6 {
    color: var(--ih-text-primary) !important;
}

/* Fix links if they are dark by default */
body.single-imparthub_instructor a:not(.ih-btn):not(.ih-card-link) {
    color: var(--ih-primary);
}

body.single-imparthub_instructor a:not(.ih-btn):not(.ih-card-link):hover {
    color: var(--ih-primary-hover);
}

/* =====================================================
   NEW INSTRUCTOR PROFILE LAYOUT (V2)
   Matches "Old Snippet" Design
   ===================================================== */

.ih-profile-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 150px 20px;
}

.ih-profile-header {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.ih-profile-left {
    flex-shrink: 0;
    width: 280px;
    text-align: center;
}

.ih-profile-avatar {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 5px solid var(--ih-primary);
    margin: 0 auto 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ih-profile-socials-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ih-profile-socials-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--ih-text-secondary);
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.ih-profile-socials-row a:hover {
    background: var(--ih-primary);
    color: white;
    transform: translateY(-3px);
}

.ih-profile-right {
    flex-grow: 1;
}

.ih-profile-name {
    font-size: 32px;
    color: var(--ih-text-primary);
    margin: 0 0 10px 0;
    font-weight: 800;
    line-height: 1.1;
}

.ih-profile-job {
    color: var(--ih-primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    display: inline-block;
    background: rgba(108, 92, 231, 0.1);
    padding: 5px 15px;
    border-radius: 4px;
}

.ih-profile-bio {
    color: var(--ih-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.ih-profile-bio p {
    margin-bottom: 20px;
}

.ih-pc-heading {
    font-size: 24px;
    color: var(--ih-text-primary);
    margin-bottom: 40px;
    border-left: 5px solid var(--ih-primary);
    padding-left: 20px;
}

@media (max-width: 800px) {
    .ih-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .ih-profile-left,
    .ih-profile-right {
        width: 100%;
    }

    .ih-pc-heading {
        border-left: none;
        padding-left: 0;
        text-align: center;
        border-bottom: 3px solid var(--ih-primary);
        padding-bottom: 10px;
        display: inline-block;
    }

    .ih-profile-courses-section {
        text-align: center;
    }
}

/* =====================================================
   INSTRUCTOR GRID SHORTCODE
   [imparthub_instructors]
   ===================================================== */

.ih-instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.ih-instructor-card {
    background: var(--ih-bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--ih-border);
    text-align: center;
    padding: 40px 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ih-instructor-card:hover {
    transform: translateY(-5px);
    border-color: var(--ih-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ih-inst-card-avatar {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 20px;
    border: 3px solid var(--ih-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ih-inst-card-body {
    width: 100%;
}

.ih-inst-card-name {
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 700;
}

.ih-inst-card-name a {
    color: var(--ih-text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.ih-inst-card-name a:hover {
    color: var(--ih-primary);
}

.ih-inst-card-job {
    color: var(--ih-primary);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    background: transparent;
    padding: 0;
}

.ih-inst-card-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--ih-text-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.ih-inst-card-bio {
    color: var(--ih-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.ih-inst-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-bottom: 25px;
}

.ih-inst-card-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.ih-inst-card-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ih-text-secondary);
    transition: 0.2s;
    font-size: 18px;
    text-decoration: none;
}

.ih-inst-card-socials a:hover {
    background: var(--ih-primary);
    color: white;
    transform: translateY(-2px);
}

/* =====================================================
   COURSE SCHEDULE TIMELINE SHORTCODE
   [imparthub_schedule]
   ===================================================== */

.ih-timeline-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

/* Vertical Line */
.ih-timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 80px;
    /* Adjust based on date width */
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.ih-timeline-section {
    margin-bottom: 50px;
}

.ih-timeline-month-label {
    position: relative;
    padding-left: 100px;
    margin-bottom: 30px;
    z-index: 1;
}

.ih-timeline-month-label span {
    display: inline-block;
    background: var(--ih-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.ih-timeline-item {
    display: flex;
    position: relative;
    margin-bottom: 30px;
    align-items: center;
}

/* Date Bubble (Left) */
.ih-tl-date {
    width: 60px;
    text-align: right;
    margin-right: 40px;
    flex-shrink: 0;
    color: var(--ih-text-primary);
}

.ih-tl-day {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.ih-tl-dow {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--ih-text-secondary);
    margin-top: 4px;
}

/* The Dot */
.ih-tl-dot {
    position: absolute;
    left: 74px;
    /* 80px center - 6px radius */
    width: 14px;
    height: 14px;
    background: var(--ih-bg-dark);
    border: 3px solid var(--ih-primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
}

.ih-timeline-item:hover .ih-tl-dot {
    background: var(--ih-primary);
    transform: scale(1.2);
    transition: 0.2s;
}

/* The Card (Right) */
.ih-tl-card {
    flex-grow: 1;
    background: var(--ih-bg-card);
    border: 1px solid var(--ih-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ih-tl-card:hover {
    transform: translateX(5px);
    border-color: var(--ih-primary);
    background: rgba(255, 255, 255, 0.03);
}

.ih-tl-title {
    margin: 0 0 8px 0;
    color: var(--ih-text-primary);
    font-size: 18px;
    font-weight: 700;
}

.ih-tl-meta {
    font-size: 14px;
    color: var(--ih-text-secondary);
}

.ih-tl-time i {
    margin-right: 6px;
    color: var(--ih-primary);
}

/* Responsive */
@media (max-width: 600px) {
    .ih-timeline-wrapper::before {
        left: 20px;
    }

    .ih-timeline-month-label {
        padding-left: 45px;
    }

    .ih-tl-date {
        display: none;
        /* Hide date on very small screens, simpler layout */
    }

    .ih-tl-dot {
        left: 14px;
    }

    .ih-tl-card {
        margin-left: 45px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ==============================================
   CERTIFICATE SECTION
   ============================================== */

.ih-cert-section {
    padding: var(--ih-space-6);
    background: var(--ih-bg-elevated);
    border-radius: var(--ih-radius-lg);
    border: 1px solid var(--ih-border);
}

.ih-cert-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ih-space-4);
    text-align: center;
    padding: var(--ih-space-6);
    border-radius: var(--ih-radius-md);
    background: var(--ih-bg-card);
    border: 1px solid var(--ih-border);
}

@media (min-width: 768px) {
    .ih-cert-status {
        flex-direction: row;
        text-align: left;
    }

    .ih-cert-status .ih-btn {
        margin-left: auto;
    }
}

.ih-cert-status>i {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.ih-cert-info h4 {
    margin: 0 0 var(--ih-space-1) 0;
    color: var(--ih-text-primary);
    font-size: 1.1rem;
}

.ih-cert-info p {
    margin: 0;
    color: var(--ih-text-secondary);
    font-size: 0.95rem;
}

/* Status Variants */
.ih-cert-status--locked {
    opacity: 0.7;
}

.ih-cert-status--locked>i {
    color: var(--ih-text-muted);
}

.ih-cert-status--available>i {
    color: var(--ih-accent-yellow);
    animation: ih-bounce 2s infinite;
}

.ih-cert-status--earned>i {
    color: var(--ih-accent-green);
}

/* Animations */
@keyframes ih-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.ih-claim-trigger.loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}

/* Disabled Button State */
.ih-sc-button.ih-btn-disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}