/* ===========================================================================
   INKWELL LMS - Premium UI Override
   Version: 1.0
   File: inkwell-lms-ui.css
   Upload to: wp-content/plugins/inkwell-lms/inkwell-lms-ui.css
   Matches the Inkwell Digital Academy master stylesheet design language.
   Playfair Display for headings | Source Sans 3 for body
   Navy #1a1a2e | Gold #c9a84c | Teal #008080
   =========================================================================== */

/* ===========================================================================
   SHARED LMS TYPOGRAPHY & BASE
   =========================================================================== */

.ikw-lesson-topbar,
.ikw-dashboard-wrap,
.ikw-courses-grid,
.ikw-quiz-wrap,
.ikw-cert-showcase,
.ikw-profile-wrap,
.ikw-curriculum-section,
.ikw-course-complete-wrap,
.ikw-activity-feed,
.ikw-quiz-summary-widget {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Playfair Display for all LMS display headings */
.ikw-course-complete-title,
.ikw-curriculum-title,
.ikw-profile-name,
.ikw-card-title,
.ikw-drawer-module-title,
.ikw-instructor-name,
.ikw-next-courses-title,
.ikw-empty-state-title,
.ikw-motivational-bar {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===========================================================================
   LESSON PAGE - TOPBAR
   =========================================================================== */

.ikw-lesson-topbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-bottom: 3px solid #c9a84c;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.ikw-lesson-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ikw-lesson-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.22s ease;
}

.ikw-lesson-breadcrumb a:hover { color: #c9a84c; }

.ikw-lesson-breadcrumb .sep {
    color: rgba(255,255,255,0.25);
    font-size: 11px;
}

.ikw-lesson-breadcrumb .current {
    color: #c9a84c;
    font-weight: 700;
}

.ikw-lesson-type-badge {
    background: linear-gradient(145deg, #c9a84c, #b8942f);
    color: #1a1a2e;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(201,168,76,0.35);
}

/* ===========================================================================
   LESSON PAGE - MARK COMPLETE BUTTON
   =========================================================================== */

.ikw-complete-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #008080;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 13px 32px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 4px 16px rgba(0,128,128,0.3);
    position: relative;
    overflow: hidden;
}

.ikw-complete-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,0.12), transparent);
    pointer-events: none;
}

.ikw-complete-btn:hover {
    background: #006666;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,128,128,0.4);
}

.ikw-complete-btn.ikw-completing {
    background: #2ecc71;
    box-shadow: 0 4px 16px rgba(46,204,113,0.35);
}

/* ===========================================================================
   LESSON PAGE - NAVIGATION BUTTONS
   =========================================================================== */

.ikw-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a2e;
    color: #c9a84c;
    border: none;
    border-radius: 4px;
    padding: 11px 24px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ikw-nav-btn:hover {
    background: #2d2d4e;
    transform: translateY(-1px);
    color: #c9a84c;
    text-decoration: none;
}

/* ===========================================================================
   LESSON PAGE - RESOURCE DOWNLOAD CARDS
   =========================================================================== */

.ikw-resource-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px 18px;
    text-decoration: none;
    color: #1a1a2e;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.ikw-resource-card:hover {
    border-color: #c9a84c;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: #1a1a2e;
}

.ikw-resource-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ikw-resource-icon svg { width: 20px; height: 20px; fill: #c9a84c; }

.ikw-resource-label {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
}

.ikw-resource-meta {
    font-size: 12px;
    color: #888888;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* ===========================================================================
   LESSON PAGE - NOTES PANEL
   =========================================================================== */

.ikw-notes-panel {
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    border: 1px solid #e8e8e8;
}

.ikw-notes-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-bottom: 2px solid #c9a84c;
    padding: 14px 18px;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: #c9a84c;
}

.ikw-notes-save-btn {
    background: #c9a84c;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    letter-spacing: 0.5px;
    transition: background 0.22s ease, transform 0.22s ease;
}

.ikw-notes-save-btn:hover { background: #b8942f; transform: translateY(-1px); }

/* ===========================================================================
   COURSE OUTLINE DRAWER
   =========================================================================== */

.ikw-outline-drawer {
    background: #ffffff;
    box-shadow: 4px 0 32px rgba(0,0,0,0.18);
    border-right: 1px solid #e8e8e8;
}

.ikw-outline-drawer-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-bottom: 3px solid #c9a84c;
    padding: 18px 20px;
}

.ikw-outline-drawer-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #c9a84c;
    margin: 0;
    letter-spacing: 0.3px;
}

.ikw-drawer-module-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a2e;
    background: #f7f7f5;
    border-left: 4px solid #c9a84c;
    padding: 10px 16px;
    cursor: pointer;
}

.ikw-drawer-module-title.ikw-module-open {
    background: #1a1a2e;
    color: #c9a84c;
    border-left-color: #c9a84c;
}

.ikw-drawer-lesson {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    padding: 10px 18px 10px 28px;
    border-left: 3px solid transparent;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ikw-drawer-lesson:hover {
    background: rgba(0,128,128,0.06);
    color: #1a1a2e;
    text-decoration: none;
}

.ikw-drawer-lesson.ikw-drawer-current {
    background: rgba(201,168,76,0.10);
    border-left-color: #c9a84c;
    color: #1a1a2e;
    font-weight: 700;
}

.ikw-drawer-lesson.ikw-drawer-done {
    border-left-color: #008080;
    color: #555;
}

.ikw-outline-toggle {
    background: linear-gradient(145deg, #1a1a2e, #2d2d4e);
    color: #c9a84c;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    box-shadow: 3px 0 16px rgba(0,0,0,0.25);
}

/* ===========================================================================
   COURSE CATALOG - COURSE CARDS
   =========================================================================== */

.ikw-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
}

.ikw-card:hover {
    border-color: #c9a84c;
    box-shadow: 0 8px 32px rgba(201,168,76,0.2), 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.ikw-card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
}

.ikw-card-thumb img,
.ikw-card-thumb picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ikw-card:hover .ikw-card-thumb img,
.ikw-card:hover .ikw-card-thumb picture img {
    transform: scale(1.04);
}

.ikw-difficulty-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ikw-diff-beginner     { background: #2ecc71; color: #ffffff; }
.ikw-diff-intermediate { background: #c9a84c; color: #1a1a2e; }
.ikw-diff-advanced     { background: #1a1a2e; color: #c9a84c; border: 1px solid #c9a84c; }

.ikw-card-body { padding: 20px 22px; }

.ikw-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.35;
}

.ikw-card-title a { color: #1a1a2e; text-decoration: none; }
.ikw-card-title a:hover { color: #008080; }

.ikw-card-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #888;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}

.ikw-card-instructor {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #008080;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}

.ikw-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ikw-card-enroll-btn {
    display: inline-block;
    background: #1a1a2e;
    color: #c9a84c;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ikw-card-enroll-btn:hover {
    background: #c9a84c;
    color: #1a1a2e;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ===========================================================================
   COURSE SINGLE - CURRICULUM ACCORDION
   =========================================================================== */

.ikw-curriculum-section { margin: 48px 0; }

.ikw-curriculum-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ikw-curriculum-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #c9a84c, transparent);
    border-radius: 2px;
}

.ikw-curr-module {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: box-shadow 0.22s ease;
}

.ikw-curr-module:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.10); }

.ikw-curr-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    cursor: pointer;
    gap: 14px;
    transition: background 0.22s ease;
    border-left: 4px solid #e8e8e8;
}

.ikw-curr-module-header:hover { background: #f7f7f5; }

.ikw-curr-module-header.ikw-curr-open {
    background: #1a1a2e;
    border-left-color: #c9a84c;
}

.ikw-curr-module-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.3px;
}

.ikw-curr-module-header.ikw-curr-open .ikw-curr-module-name { color: #c9a84c; }

.ikw-curr-module-meta {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #888;
    font-weight: 600;
    white-space: nowrap;
}

.ikw-curr-module-header.ikw-curr-open .ikw-curr-module-meta { color: rgba(255,255,255,0.5); }

.ikw-curr-caret { color: #c9a84c; }

.ikw-curr-lessons { background: #faf9f5; }

.ikw-curr-lesson-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 28px;
    border-bottom: 1px solid #efefef;
    font-size: 14px;
    color: #444;
    font-family: 'Source Sans 3', sans-serif;
    transition: background 0.22s ease;
}

.ikw-curr-lesson-row:last-child { border-bottom: none; }
.ikw-curr-lesson-row:hover { background: rgba(0,128,128,0.04); }

.ikw-curr-type-badge {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.ikw-curr-type-video   { background: rgba(0,128,128,0.12);   color: #006666; }
.ikw-curr-type-reading { background: rgba(26,26,46,0.08);    color: #2d2d4e; }
.ikw-curr-type-audio   { background: rgba(201,168,76,0.15);  color: #7a5c1a; }
.ikw-curr-type-quiz    { background: rgba(26,26,46,0.08);    color: #2d2d4e; }

/* ===========================================================================
   COURSE SINGLE - INSTRUCTOR BIO
   =========================================================================== */

.ikw-instructor-bio {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 24px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.ikw-instructor-bio::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, #1a1a2e, #c9a84c);
}

.ikw-instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #c9a84c;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
    flex-shrink: 0;
    object-fit: cover;
}

.ikw-instructor-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #008080;
    margin-bottom: 6px;
}

.ikw-instructor-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.ikw-instructor-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.75;
    margin: 0;
}

/* ===========================================================================
   COURSE SINGLE - STICKY SIDEBAR
   =========================================================================== */

.ikw-course-sidebar {
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    overflow: hidden;
}

.ikw-sidebar-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-bottom: 3px solid #c9a84c;
    padding: 16px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #c9a84c;
}

.ikw-sidebar-enroll-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(145deg, #c9a84c, #b8942f);
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    padding: 14px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
    box-sizing: border-box;
}

.ikw-sidebar-enroll-btn:hover {
    background: linear-gradient(145deg, #e0c070, #c9a84c);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.4);
    text-decoration: none;
    color: #1a1a2e;
}

.ikw-outline-module-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a2e;
    background: #f7f7f5;
    border-left: 3px solid #c9a84c;
    padding: 8px 12px;
    margin-bottom: 4px;
}

/* ===========================================================================
   STUDENT DASHBOARD
   =========================================================================== */

.ikw-motivational-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-left: 5px solid #c9a84c;
    border-radius: 0 8px 8px 0;
    padding: 16px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-style: italic;
    color: #c9a84c;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    animation: inkwell-fadein 0.4s ease;
}

/* Activity feed */
.ikw-activity-feed {
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.ikw-activity-feed-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-bottom: 2px solid #c9a84c;
    padding: 14px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #c9a84c;
    letter-spacing: 0.3px;
}

.ikw-activity-item {
    border-bottom: 1px solid #f7f7f5;
    padding: 13px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Source Sans 3', sans-serif;
}

.ikw-activity-text { font-size: 14px; color: #444; font-weight: 500; }
.ikw-activity-time { font-size: 12px; color: #888; white-space: nowrap; }

/* Empty states */
.ikw-empty-state {
    text-align: center;
    padding: 56px 24px;
    color: #888;
}

.ikw-empty-state-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.ikw-empty-state-sub {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 24px;
}

.ikw-empty-state-cta {
    display: inline-block;
    background: #1a1a2e;
    color: #c9a84c;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ikw-empty-state-cta:hover {
    background: #2d2d4e;
    transform: translateY(-1px);
    color: #c9a84c;
    text-decoration: none;
}

/* Streak badge */
.ikw-streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(145deg, #c9a84c, #b8942f);
    color: #1a1a2e;
    border-radius: 20px;
    padding: 5px 16px 5px 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(201,168,76,0.35);
}

/* ===========================================================================
   QUIZ UI
   =========================================================================== */

.ikw-quiz-wrap {
    font-family: 'Source Sans 3', sans-serif;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin: 32px 0;
}

.ikw-quiz-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-bottom: 3px solid #c9a84c;
    padding: 20px 24px;
}

.ikw-quiz-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #c9a84c;
    margin: 0;
}

.ikw-question-card {
    padding: 28px 24px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.ikw-question-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* Quiz submit button */
.ikw-quiz-submit-btn,
.ikw-quiz button[type="submit"],
.ikw-quiz .ikw-submit-btn {
    background: linear-gradient(145deg, #c9a84c, #b8942f);
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    padding: 14px 36px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.ikw-quiz-submit-btn:hover {
    background: linear-gradient(145deg, #e0c070, #c9a84c);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}

/* Answer chips - pass / fail */
.ikw-chip-pass {
    background: rgba(0,128,128,0.10);
    color: #005f5f;
    border: 1px solid rgba(0,128,128,0.25);
    border-radius: 20px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ikw-chip-fail {
    background: rgba(192,57,43,0.10);
    color: #7b241c;
    border: 1px solid rgba(192,57,43,0.2);
    border-radius: 20px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ikw-chip-pending {
    background: rgba(201,168,76,0.12);
    color: #7a5c1a;
    border: 1px solid rgba(201,168,76,0.28);
    border-radius: 20px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===========================================================================
   QUIZ SUMMARY WIDGET (DASHBOARD)
   =========================================================================== */

.ikw-quiz-summary-widget {
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    margin-bottom: 28px;
}

.ikw-quiz-summary-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-bottom: 2px solid #c9a84c;
    padding: 14px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #c9a84c;
}

.ikw-quiz-summary-row {
    font-family: 'Source Sans 3', sans-serif;
    border-bottom: 1px solid #f7f7f5;
    padding: 12px 20px;
}

.ikw-quiz-sum-name {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 14px;
}

/* ===========================================================================
   CERTIFICATE SHOWCASE (DASHBOARD)
   =========================================================================== */

.ikw-cert-showcase {
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    margin-bottom: 28px;
}

.ikw-cert-showcase-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-bottom: 2px solid #c9a84c;
    padding: 14px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #c9a84c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ikw-cert-card {
    background: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: background 0.22s ease;
}

.ikw-cert-card:hover { background: #faf9f5; }

.ikw-cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, #1a1a2e, #c9a84c);
}

.ikw-cert-card-course {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
}

.ikw-cert-card-date {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ikw-cert-action-link {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #008080;
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid rgba(0,128,128,0.3);
    border-radius: 4px;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.ikw-cert-action-link:hover {
    background: #008080;
    color: #ffffff;
    border-color: #008080;
    text-decoration: none;
}

/* ===========================================================================
   COURSE COMPLETE PAGE
   =========================================================================== */

.ikw-course-complete-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-radius: 8px;
    padding: 60px 40px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    border: 2px solid rgba(201,168,76,0.3);
    position: relative;
    overflow: hidden;
}

.ikw-course-complete-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, #c9a84c, #008080, #c9a84c);
}

.ikw-course-complete-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #c9a84c;
    margin: 0 0 12px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ikw-course-complete-course {
    font-family: 'Source Sans 3', sans-serif;
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin: 0 0 28px;
    font-weight: 500;
}

.ikw-complete-action-btn {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 13px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ikw-btn-cert {
    background: linear-gradient(145deg, #c9a84c, #b8942f);
    color: #1a1a2e;
    box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}

.ikw-btn-cert:hover {
    background: linear-gradient(145deg, #e0c070, #c9a84c);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.45);
    text-decoration: none;
    color: #1a1a2e;
}

.ikw-btn-share {
    background: #0077b5;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,119,181,0.3);
}

.ikw-btn-share:hover {
    background: #005e8c;
    transform: translateY(-2px);
    text-decoration: none;
    color: #ffffff;
}

.ikw-btn-dashboard {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}

.ikw-btn-dashboard:hover {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    text-decoration: none;
}

/* ===========================================================================
   STUDENT PROFILE PAGE
   =========================================================================== */

.ikw-profile-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #c9a84c;
}

.ikw-profile-avatar {
    border: 3px solid #c9a84c;
    box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.ikw-profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.ikw-profile-email {
    font-family: 'Source Sans 3', sans-serif;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    margin: 0 0 16px;
}

.ikw-profile-badge {
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.3);
    color: #c9a84c;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.ikw-profile-stat {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ikw-profile-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}

.ikw-profile-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}

.ikw-profile-stat-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===========================================================================
   RECOMMENDATION BLOCK
   =========================================================================== */

.ikw-rec-section { margin: 48px 0; }

.ikw-rec-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ikw-rec-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #c9a84c, transparent);
    border-radius: 2px;
}

.ikw-rec-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    text-decoration: none;
    color: #1a1a2e;
    display: block;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ikw-rec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    border-color: #c9a84c;
    text-decoration: none;
    color: #1a1a2e;
}

.ikw-rec-name {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e;
}

.ikw-rec-meta {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===========================================================================
   LOCKED LESSON INTERSTITIAL
   =========================================================================== */

/* The interstitial renders as a full standalone page - styles are inline.
   These selectors are for any future shortcode-based usage. */

/* ===========================================================================
   ADMIN UI - HEALTH CHECK & BULK ENROLL PAGES
   =========================================================================== */

.ikw-admin-stat-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px 24px;
    display: inline-block;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
}

.ikw-admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, #1a1a2e, #c9a84c);
}

.ikw-admin-stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}

.ikw-admin-stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    display: block;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===========================================================================
   GLOBAL ANIMATIONS - match inkwell-styles.css
   =========================================================================== */

@keyframes inkwell-fadein {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ikw-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */

@media (max-width: 768px) {
    .ikw-course-complete-hero { padding: 40px 24px; }
    .ikw-course-complete-title { font-size: 1.8rem; }
    .ikw-profile-hero { flex-direction: column; text-align: center; padding: 28px 20px; }
    .ikw-profile-badges { justify-content: center; }
    .ikw-instructor-bio { flex-direction: column; }
    .ikw-curriculum-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .ikw-lesson-topbar { padding: 12px 16px; }
    .ikw-card-body { padding: 16px; }
    .ikw-complete-action-btn { width: 100%; justify-content: center; }
    .ikw-course-complete-title { font-size: 1.5rem; }
}

/* ===========================================================================
   END INKWELL LMS PREMIUM UI OVERRIDE v1.0
   =========================================================================== */

/* ===========================================================================
   COURSE CATALOG OVERRIDES -- loaded at priority 9999 to beat Kadence
   Scoped to body.page-id-3049
   =========================================================================== */

body.page-id-3049 .entry-header,
body.page-id-3049 .page-hero-section,
body.page-id-3049 .kadence-page-header {
    display: none !important;
}

body.page-id-3049 .ikw-catalog-hero {
    background: #1a1a2e !important;
    padding: 60px 40px 50px !important;
    text-align: center !important;
    margin: 0 !important;
    width: 100% !important;
}

body.page-id-3049 .ikw-catalog-hero h1 {
    color: #c9a84c !important;
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    margin: 0 0 12px !important;
}

body.page-id-3049 .ikw-catalog-hero p {
    color: rgba(255,255,255,0.75) !important;
    font-size: 1.05rem !important;
    margin: 0 auto !important;
    max-width: 540px !important;
}

body.page-id-3049 .courses-section {
    background: #f4f4f4 !important;
    padding: 50px 40px !important;
}

body.page-id-3049 .courses-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    justify-content: unset !important;
    align-items: stretch !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    flex-wrap: unset !important;
}

body.page-id-3049 .course-card {
    min-width: unset !important;
    max-width: unset !important;
    flex: unset !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
    align-items: flex-start !important;
    gap: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 2px solid #c9a84c !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
}

body.page-id-3049 .course-card > img {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px 12px 0 0 !important;
    height: auto !important;
}

body.page-id-3049 .course-card-title {
    border-top: 3px solid #c9a84c !important;
    padding: 18px 20px 8px !important;
    font-size: 1rem !important;
    color: #1a1a2e !important;
    text-align: left !important;
    margin: 0 !important;
}

body.page-id-3049 .course-card-description {
    padding: 0 20px 16px !important;
    text-align: left !important;
    color: #444 !important;
    font-size: 0.88rem !important;
    margin: 0 !important;
}

body.page-id-3049 .course-card-btn {
    margin: auto 20px 20px 20px !important;
    align-self: flex-start !important;
}

body.page-id-3049 .course-card-badge {
    top: 12px !important;
    left: 12px !important;
    transform: none !important;
}

@media (max-width: 900px) {
    body.page-id-3049 .courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    body.page-id-3049 .courses-section {
        padding: 40px 24px !important;
    }
}

@media (max-width: 560px) {
    body.page-id-3049 .courses-grid {
        grid-template-columns: 1fr !important;
    }
    body.page-id-3049 .ikw-catalog-hero {
        padding: 40px 20px 36px !important;
    }
    body.page-id-3049 .ikw-catalog-hero h1 {
        font-size: 1.8rem !important;
    }
}

/* ===========================================================================
   GLOBAL HEADER REFINEMENT -- Gold top bar + navy/gold accents
   Interior pages: white header, navy links
   Homepage: transparent header, white links (preserves hero)
   =========================================================================== */

/* Gold top bar -- all pages */
body::before {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: #c9a84c;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
}

#wrapper, .site { padding-top: 4px !important; }

.admin-bar body::before { top: 32px !important; }
@media (max-width: 782px) { .admin-bar body::before { top: 46px !important; } }

/* Interior pages -- white header */
body:not(.home) #masthead,
body:not(.home) .site-header,
body:not(.home) #main-header {
    background: #ffffff !important;
}

body:not(.home) .site-title,
body:not(.home) .site-title a,
body:not(.home) .site-branding .site-title {
    color: #1a1a2e !important;
    font-weight: 700 !important;
}

body:not(.home) .site-description {
    color: #c9a84c !important;
    font-weight: 500 !important;
}

body:not(.home) #site-navigation .menu a,
body:not(.home) .main-navigation .menu a,
body:not(.home) #primary-menu a {
    color: #1a1a2e !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

body:not(.home) #site-navigation .menu a:hover,
body:not(.home) .main-navigation .menu a:hover,
body:not(.home) #primary-menu a:hover {
    color: #c9a84c !important;
}

body:not(.home) #site-navigation .current-menu-item > a,
body:not(.home) .main-navigation .current-menu-item > a {
    color: #c9a84c !important;
}

/* Student Login button -- all pages */
.header-button-wrap .button,
.header-button-inner-wrap .button,
a.header-button {
    background: #1a1a2e !important;
    color: #c9a84c !important;
    border-color: #1a1a2e !important;
    font-weight: 700 !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.header-button-wrap .button:hover,
.header-button-inner-wrap .button:hover,
a.header-button:hover {
    background: #c9a84c !important;
    color: #1a1a2e !important;
    border-color: #c9a84c !important;
}

/* Sub-navigation dropdown -- white links on navy background */
body:not(.home) .sub-menu,
body:not(.home) .sub-menu a,
body:not(.home) #primary-menu .sub-menu li a {
    color: #ffffff !important;
    background: #1a1a2e !important;
}
body:not(.home) #primary-menu .sub-menu li a:hover {
    color: #c9a84c !important;
    background: #1a1a2e !important;
}

/* ===========================================================================
   INKWELL BRANDED FOOTER
   =========================================================================== */

#ikw-footer {
    background: #1a1a2e;
    border-top: 4px solid #c9a84c;
    padding: 60px 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.ikw-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

.ikw-footer-logo {
    color: #c9a84c;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ikw-footer-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ikw-footer-email {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s;
}

.ikw-footer-email:hover {
    color: #c9a84c;
}

.ikw-footer-heading {
    color: #c9a84c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ikw-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ikw-footer-links li {
    margin-bottom: 10px;
}

.ikw-footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.ikw-footer-links a:hover {
    color: #c9a84c;
}

.ikw-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ikw-footer-bottom span {
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    #ikw-footer {
        padding: 40px 24px 0;
    }
    .ikw-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Featured courses empty state */
.ikw-featured-empty {
    background: #1a1a2e;
    border: 2px solid #c9a84c;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    margin: 20px 0;
}
.ikw-featured-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.ikw-featured-empty-title {
    color: #c9a84c;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.ikw-featured-empty-text {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.ikw-featured-empty-btn {
    display: inline-block;
    background: #c9a84c;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.ikw-featured-empty-btn:hover {
    background: #e0bf6a;
    color: #1a1a2e;
    text-decoration: none;
}

/* ===========================================================================
   LESSON HEADER + INSTRUCTIONS PANEL
   =========================================================================== */

.ikw-lesson-header {
    background: #1a1a2e;
    padding: 20px 28px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    border-bottom: 3px solid #c9a84c;
}

.ikw-lesson-header-title {
    color: #c9a84c !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    font-family: 'Playfair Display', serif !important;
}

.ikw-lesson-instructions {
    background: #f8f6f0;
    border-left: 4px solid #c9a84c;
    border-radius: 0 0 6px 6px;
    padding: 16px 20px 18px;
    margin-bottom: 24px;
}

.ikw-lesson-instructions-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 8px;
}

.ikw-lesson-instructions-text {
    font-size: 0.95rem;
    color: #1a1a2e;
    line-height: 1.7;
}

.ikw-lesson-instructions-text p {
    margin: 0 0 8px;
}

.ikw-lesson-instructions-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .ikw-lesson-header {
        padding: 16px 18px;
    }
    .ikw-lesson-header-title {
        font-size: 1.15rem !important;
    }
    .ikw-lesson-instructions {
        padding: 14px 16px;
    }
}

/* Strengthen lesson header specificity to beat Kadence */
body.single-ikw_lesson .ikw-lesson-header {
    background: #1a1a2e !important;
    padding: 20px 28px !important;
    border-radius: 8px 8px 0 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 3px solid #c9a84c !important;
    display: block !important;
}

body.single-ikw_lesson .ikw-lesson-header-title {
    color: #c9a84c !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    font-family: 'Playfair Display', serif !important;
    background: none !important;
    border: none !important;
    text-shadow: none !important;
}

body.single-ikw_lesson .ikw-lesson-instructions {
    background: #f8f6f0 !important;
    border-left: 4px solid #c9a84c !important;
    border-radius: 0 0 6px 6px !important;
    padding: 16px 20px 18px !important;
    margin-bottom: 24px !important;
    display: block !important;
}

body.single-ikw_lesson .ikw-lesson-instructions-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #c9a84c !important;
    margin-bottom: 8px !important;
}

body.single-ikw_lesson .ikw-lesson-instructions-text {
    font-size: 0.95rem !important;
    color: #1a1a2e !important;
    line-height: 1.7 !important;
}

/* Lesson header redesign -- white with gold left border */
body.single-ikw_lesson .ikw-lesson-header {
    background: #ffffff !important;
    border-left: 5px solid #c9a84c !important;
    border-bottom: 1px solid #e8e4dc !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-right: none !important;
    padding: 16px 20px !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

body.single-ikw_lesson .ikw-lesson-header-title {
    color: #1a1a2e !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    font-family: 'Playfair Display', serif !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    background: none !important;
    text-shadow: none !important;
}

/* Hide H5P built-in task description -- replaced by Lesson Instructions panel */
body.single-ikw_lesson .h5p-question-introduction,
body.single-ikw_lesson .h5p-task-description,
body.single-ikw_lesson .h5p-word-search-task-description {
    display: none !important;
}

/* H5P viewport scaling -- fit content within screen */
body.single-ikw_lesson .h5p-iframe-wrapper {
    overflow: hidden !important;
}

body.single-ikw_lesson .ikw-h5p-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 1200px) {
    body.single-ikw_lesson .h5p-iframe-wrapper iframe {
        transform-origin: top left !important;
        transform: scale(0.85) !important;
        width: 117.6% !important;
    }
}

@media (max-width: 900px) {
    body.single-ikw_lesson .h5p-iframe-wrapper iframe {
        transform-origin: top left !important;
        transform: scale(0.7) !important;
        width: 142.8% !important;
    }
}

@media (max-width: 600px) {
    body.single-ikw_lesson .h5p-iframe-wrapper iframe {
        transform-origin: top left !important;
        transform: scale(0.55) !important;
        width: 181.8% !important;
    }
}

/* ===========================================================================
   VIDEO TIP PANEL
   =========================================================================== */

.ikw-video-tip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8f6f0;
    border-left: 4px solid #c9a84c;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.ikw-video-tip-icon {
    color: #c9a84c;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.ikw-video-tip-text {
    font-size: 0.92rem;
    color: #1a1a2e;
    line-height: 1.7;
}

.ikw-video-tip-text strong {
    color: #1a1a2e;
    font-weight: 700;
}

@media (max-width: 600px) {
    .ikw-video-tip {
        padding: 14px 16px;
        gap: 10px;
    }
    .ikw-video-tip-icon {
        font-size: 1.1rem;
    }
}

/* Video tip panel refinement */
body.single-ikw_lesson .ikw-video-tip {
    background: #f8f6f0 !important;
    border-left: 4px solid #c9a84c !important;
    border-bottom: 1px solid #c9a84c !important;
    border-radius: 0 6px 0 0 !important;
    padding: 18px 24px !important;
    margin-bottom: 0 !important;
    margin-top: 16px !important;
}

body.single-ikw_lesson .ikw-video-tip + .ikw-player-wrap {
    border-top: none !important;
    margin-top: 0 !important;
}

/* Add spacing between video tip and player */
body.single-ikw_lesson .ikw-video-tip {
    margin-bottom: 20px !important;
    border-radius: 6px !important;
    border-bottom: 1px solid #c9a84c !important;
}

/* Completed module -- collapsed with checkmark indicator */
.ikw-drawer-module-title.ikw-module-complete {
    opacity: 0.75;
}

.ikw-drawer-module-title.ikw-module-complete::after {
    content: ' \2713';
    color: #008080;
    font-weight: 700;
    font-size: 14px;
    margin-left: 6px;
}

.ikw-drawer-module-title.ikw-module-complete .ikw-module-caret {
    color: #008080;
}

/* Course page -- completed module styling */
.ikw-curr-module-done .ikw-curr-module-header {
    opacity: 0.7;
}

.ikw-curr-module-done .ikw-curr-module-header::after {
    content: '\2713';
    color: #008080;
    font-weight: 700;
    font-size: 14px;
    margin-left: 8px;
}

.ikw-curr-module-done .ikw-curr-module-meta {
    color: #008080 !important;
}

/* Course page -- completed module collapsed state */
.ikw-module-block.ikw-module-done .ikw-module-header {
    opacity: 0.75;
}

.ikw-module-block.ikw-module-done .ikw-module-header h3::after {
    content: ' \2713';
    color: #008080;
    font-weight: 700;
    font-size: 14px;
    margin-left: 8px;
}

.ikw-module-block.ikw-module-done .ikw-mod-count {
    color: #008080 !important;
}

/* Continue Learning button -- improved contrast */
body.single-ikw_course .ikw-btn-continue,
body.single-ikw_course a.ikw-btn-continue {
    color: #c9a84c !important;
    background: #1a1a2e !important;
    border: 2px solid #c9a84c !important;
    font-weight: 700 !important;
}

body.single-ikw_course .ikw-btn-continue:hover,
body.single-ikw_course a.ikw-btn-continue:hover {
    background: #c9a84c !important;
    color: #1a1a2e !important;
}

/* Enrollment button text fix */
.ikw-enroll-btn.teal {
    color: #c9a84c !important;
}

/* Module Badges - Phase 9D */

.ikw-module-badges-section {
    margin: 40px 0;
    padding: 0;
}

.ikw-badges-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    padding: 0;
}

.ikw-module-badges-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    margin-bottom: 30px;
    scrollbar-width: none;
}

.ikw-module-badges-container::-webkit-scrollbar {
    display: none;
}

.ikw-badge {
    flex: 0 0 140px;
    padding: 14px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-family: "Source Sans 3", sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100px;
}

.ikw-badge:focus {
    outline: 3px solid #c9a84c;
    outline-offset: 2px;
}

.ikw-badge-number {
    font-size: 18px;
    font-weight: 700;
}

.ikw-badge-title {
    font-size: 12px;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
}

.ikw-badge-lesson-count {
    font-size: 10px;
    opacity: 0.8;
}

.ikw-badge-icon {
    font-size: 20px;
    margin-top: 4px;
}

/* Badge States */

.ikw-badge-completed {
    background-color: #c9a84c;
    color: #ffffff;
}

.ikw-badge-completed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(201, 168, 76, 0.3);
}

.ikw-badge-current {
    background-color: #1a1a2e;
    color: #ffffff;
    border-bottom: 3px solid #c9a84c;
    padding-bottom: 11px;
}

.ikw-badge-current:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 26, 46, 0.3);
}

.ikw-badge-locked {
    background-color: #e8e8e8;
    color: #999999;
    cursor: not-allowed;
}

.ikw-badge-locked:hover {
    transform: none;
    box-shadow: none;
}

/* Progress Section */

.ikw-module-progress-section {
    margin-top: 30px;
    padding: 20px 0;
}

.ikw-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ikw-progress-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}

.ikw-progress-percent {
    font-size: 14px;
    font-weight: 700;
    color: #c9a84c;
}

.ikw-progress-bar-track {
    width: 100%;
    height: 8px;
    background-color: #e5e5e5;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

.ikw-progress-bar-fill {
    height: 100%;
    background-color: #c9a84c;
    transition: width 0.4s ease;
}

.ikw-progress-text {
    font-size: 12px;
    color: #666666;
}

/* Mobile Responsive */

@media (max-width: 768px) {
    .ikw-badge {
        flex: 0 0 120px;
        padding: 12px 10px;
        min-height: 90px;
        font-size: 11px;
    }
    
    .ikw-badge-number {
        font-size: 16px;
    }
    
    .ikw-badges-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .ikw-badge {
        flex: 0 0 100px;
        padding: 10px 8px;
        min-height: 80px;
        gap: 6px;
    }
    
    .ikw-badge-number {
        font-size: 14px;
    }
    
    .ikw-badge-title {
        font-size: 10px;
    }
    
    .ikw-badge-lesson-count {
        font-size: 9px;
    }
    
    .ikw-progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
