/* idro-learning.css — IDRO Education shared design tokens
   Phase 4: Section spacing, cards, badges, course/product grids, component panel, CTAs.
   All classes prefixed .idro- or .ilc- to avoid collision with existing styles.
   Uses CSS custom properties defined in :root — does not override global vars.
   No font-face declarations. No color variable overrides. Mobile-first. */

/* ─────────────────────────────────────────────────────────────────────────────
   DESIGN TOKENS (scoped to .idro-learning context)
   ───────────────────────────────────────────────────────────────────────────── */
.idro-learning {
    --ilc-orange: #f97316;
    --ilc-orange-dark: #ea580c;
    --ilc-blue: #0ea5e9;
    --ilc-green: #22c55e;
    --ilc-purple: #8b5cf6;
    --ilc-text: #0f172a;
    --ilc-muted: #64748b;
    --ilc-border: #e2e8f0;
    --ilc-surface: #ffffff;
    --ilc-surface-soft: #f8fafc;
    --ilc-radius-sm: 8px;
    --ilc-radius-md: 12px;
    --ilc-radius-lg: 16px;
    --ilc-radius-xl: 24px;
    --ilc-shadow-sm: 0 2px 8px rgba(0,0,0,.05);
    --ilc-shadow-md: 0 4px 20px rgba(0,0,0,.08);
    --ilc-shadow-lg: 0 12px 40px rgba(0,0,0,.12);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION SPACING
   ───────────────────────────────────────────────────────────────────────────── */
.ilc-section {
    padding: 56px 0;
}

.ilc-section-sm {
    padding: 32px 0;
}

.ilc-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.ilc-section-head {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.ilc-section-head h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -.025em;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
}

.ilc-section-head p {
    margin: 0;
    color: #64748b;
    font-size: .97rem;
    line-height: 1.75;
}

/* ─────────────────────────────────────────────────────────────────────────────
   EYEBROW LABELS
   ───────────────────────────────────────────────────────────────────────────── */
.ilc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #ea580c;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BADGES
   ───────────────────────────────────────────────────────────────────────────── */
.ilc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ilc-badge-orange  { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.ilc-badge-green   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ilc-badge-blue    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.ilc-badge-red     { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.ilc-badge-purple  { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.ilc-badge-gray    { background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; }

/* ─────────────────────────────────────────────────────────────────────────────
   COURSE CARD GRID
   ───────────────────────────────────────────────────────────────────────────── */
.ilc-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 480px) {
    .ilc-course-grid { grid-template-columns: 1fr; }
}

.ilc-course-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ilc-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.1);
    border-color: #f97316;
}

.ilc-course-card__thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
}

.ilc-course-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.ilc-course-card__title {
    font-size: .97rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ilc-course-card__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: #64748b;
    font-weight: 600;
}

.ilc-course-card__price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f97316;
    margin-top: auto;
    padding-top: .5rem;
}

.ilc-course-card__cta {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    background: #f97316;
    padding: .45rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: .5rem;
    transition: background .15s;
}

.ilc-course-card__cta:hover { background: #ea580c; }

/* ─────────────────────────────────────────────────────────────────────────────
   PRODUCT CARD GRID
   ───────────────────────────────────────────────────────────────────────────── */
.ilc-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}

@media (max-width: 480px) {
    .ilc-product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   COMPONENT PANEL (course-details context)
   ───────────────────────────────────────────────────────────────────────────── */
.course-components-panel {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fffbf5;
    border: 1px solid #fed7aa;
    border-radius: 14px;
}

.course-components-panel h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #fde68a;
    display: flex;
    align-items: center;
    gap: .4em;
}

.ccm-group {
    margin-bottom: 1.5rem;
}

.ccm-group:last-child {
    margin-bottom: 0;
}

.ccm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
}

@media (max-width: 480px) {
    .ccm-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
}

.ccm-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.ccm-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    border-color: #f97316;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */
.ilc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    padding: .75rem 1.5rem;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .15s, box-shadow .15s;
}

.ilc-btn:hover { transform: translateY(-1px); }

.ilc-btn-primary {
    background: #f97316;
    color: #fff;
    box-shadow: 0 4px 12px rgba(249,115,22,.28);
}

.ilc-btn-primary:hover { background: #ea580c; }

.ilc-btn-secondary {
    background: #fff;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
}

.ilc-btn-secondary:hover { border-color: #0f172a; }

.ilc-btn-sm {
    padding: .45rem .9rem;
    font-size: .82rem;
    border-radius: 6px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   EMPTY STATES
   ───────────────────────────────────────────────────────────────────────────── */
.ilc-empty {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
}

.ilc-empty-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    opacity: .5;
}

.ilc-empty h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
    margin: 0 0 .4rem;
}

.ilc-empty p {
    font-size: .9rem;
    margin: 0;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE GRID UTILITY
   ───────────────────────────────────────────────────────────────────────────── */
.ilc-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.ilc-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.ilc-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }

@media (max-width: 960px) {
    .ilc-grid-4 { grid-template-columns: repeat(2,1fr); }
    .ilc-grid-3 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
    .ilc-grid-4,
    .ilc-grid-3,
    .ilc-grid-2 { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   COURSE LISTING — "Course Included" + "Components Available" indicator chips
   ───────────────────────────────────────────────────────────────────────────── */
.ilc-course-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.ilc-course-indicator-kit   { background: #dbeafe; color: #1e40af; }
.ilc-course-indicator-comp  { background: #fef9c3; color: #854d0e; }
.ilc-course-indicator-enrol { background: #dcfce7; color: #15803d; }

/* ─────────────────────────────────────────────────────────────────────────────
   PRODUCT TYPE BADGE (shop cards)
   ───────────────────────────────────────────────────────────────────────────── */
.ilc-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.ilc-type-kit       { background: rgba(59,130,246,.85);  color: #fff; }
.ilc-type-component { background: rgba(249,115,22,.85);  color: #fff; }
.ilc-type-bundle    { background: rgba(139,92,246,.85);  color: #fff; }
.ilc-type-course    { background: rgba(16,185,129,.85);  color: #fff; }

/* ─────────────────────────────────────────────────────────────────────────────
   LEARNING PATH CHIPS
   ───────────────────────────────────────────────────────────────────────────── */
.ilc-path-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.ilc-path-chip {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #374151;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}

.ilc-path-chip:hover {
    border-color: #f97316;
    background: #fff7ed;
    color: #ea580c;
}

/* ═════════════════════════════════════════════════════════════════════════════
   PHASE 6 DESIGN SYSTEM ADDITIONS
   All classes prefixed .ph6- to avoid any collision with Phase 4/5 classes.
   ═════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   CATEGORY CARDS SECTION (homepage)
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-category-section {
    padding: 56px 0;
    background: #f8fafc;
}

.ph6-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.ph6-section-head {
    max-width: 680px;
    margin: 0 auto 36px;
    text-align: center;
}

.ph6-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #ea580c;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ph6-section-head h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -.025em;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

.ph6-section-head p {
    margin: 0;
    color: #64748b;
    font-size: .97rem;
    line-height: 1.75;
}

.ph6-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}

@media (max-width: 900px) {
    .ph6-category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ph6-category-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}

.ph6-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 2rem 1.25rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    color: #1e293b;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    min-height: 140px;
}

.ph6-category-card:hover {
    transform: translateY(-4px);
    border-color: #f97316;
    box-shadow: 0 12px 32px rgba(249,115,22,.14);
}

.ph6-category-card:focus-visible {
    outline: 3px solid #f97316;
    outline-offset: 3px;
}

.ph6-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff;
    flex-shrink: 0;
}

.ph6-cat-icon.orange { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 6px 16px rgba(249,115,22,.28); }
.ph6-cat-icon.blue   { background: linear-gradient(135deg, #0ea5e9, #0284c7); box-shadow: 0 6px 16px rgba(14,165,233,.28); }
.ph6-cat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 6px 16px rgba(139,92,246,.28); }
.ph6-cat-icon.green  { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 6px 16px rgba(34,197,94,.28); }

.ph6-category-card h3 {
    margin: 0;
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
}

.ph6-category-card span {
    font-size: .78rem;
    color: #64748b;
    line-height: 1.4;
}

.ph6-cat-arrow {
    font-size: .7rem;
    color: #f97316;
    margin-top: .25rem;
    opacity: 0;
    transition: opacity .15s, transform .15s;
}

.ph6-category-card:hover .ph6-cat-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   KIT + COURSE ECOSYSTEM SECTION (homepage)
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-ecosystem-section {
    padding: 64px 0;
    background: #ffffff;
}

.ph6-ecosystem-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 800px) {
    .ph6-ecosystem-inner { grid-template-columns: 1fr; }
}

.ph6-ecosystem-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -.025em;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin: 12px 0 14px;
}

.ph6-ecosystem-copy p {
    color: #64748b;
    line-height: 1.75;
    margin: 0 0 20px;
}

.ph6-ecosystem-steps {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-bottom: 1.5rem;
}

.ph6-eco-step {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.ph6-eco-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(249,115,22,.28);
}

.ph6-eco-step-text strong {
    display: block;
    font-size: .92rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.ph6-eco-step-text span {
    font-size: .83rem;
    color: #64748b;
    line-height: 1.5;
}

.ph6-ecosystem-visual {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff, #fef9ee);
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    padding: 2rem;
    display: grid;
    gap: 1rem;
}

.ph6-eco-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.ph6-eco-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ph6-eco-card-icon.kit  { background: #eff6ff; color: #2563eb; }
.ph6-eco-card-icon.lock { background: #fff7ed; color: #ea580c; }
.ph6-eco-card-icon.play { background: #f0fdf4; color: #16a34a; }

.ph6-eco-card-text strong {
    display: block;
    font-size: .88rem;
    color: #0f172a;
    font-weight: 700;
}

.ph6-eco-card-text span {
    font-size: .78rem;
    color: #64748b;
}

.ph6-eco-arrow {
    text-align: center;
    color: #cbd5e1;
    font-size: .9rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   WHY IDRO EDUCATION — extended feature grid
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-why-section {
    padding: 64px 0;
    background: #f8fafc;
}

.ph6-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-top: 2rem;
}

@media (max-width: 900px) { .ph6-why-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .ph6-why-grid { grid-template-columns: 1fr; } }

.ph6-why-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.ph6-why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 4px 10px rgba(249,115,22,.22);
}

.ph6-why-card h3 {
    margin: 0;
    font-size: .96rem;
    font-weight: 700;
    color: #0f172a;
}

.ph6-why-card p {
    margin: 0;
    font-size: .83rem;
    color: #64748b;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SCHOOL / BULK ORDER CTA SECTION (homepage)
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-school-section {
    padding: 64px 0;
    background: #ffffff;
}

.ph6-school-box {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ph6-school-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(249,115,22,.12);
    pointer-events: none;
}

@media (max-width: 720px) {
    .ph6-school-box { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; }
    .ph6-school-actions { justify-content: center; }
}

.ph6-school-copy h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: #fff;
    margin: 0 0 .6rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ph6-school-copy p {
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin: 0 0 1rem;
    font-size: .93rem;
}

.ph6-school-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ph6-school-badge {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: rgba(255,255,255,.88);
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .75rem;
}

.ph6-school-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex-shrink: 0;
}

.ph6-school-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    padding: .9rem 1.6rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s;
}

.ph6-school-btn.primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 6px 18px rgba(249,115,22,.32);
}

.ph6-school-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(249,115,22,.42);
}

.ph6-school-btn.secondary {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    border: 1.5px solid rgba(255,255,255,.25);
}

.ph6-school-btn.secondary:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SHOP PAGE — PRODUCT TYPE FILTER TABS
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-type-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.ph6-type-tab {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #374151;
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.ph6-type-tab:hover {
    border-color: #f97316;
    color: #f97316;
}

.ph6-type-tab.active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SHOP PAGE — COURSE INCLUDED BADGE
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-course-included-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(90deg, #dcfce7, #d1fae5);
    border: 1px solid #86efac;
    border-radius: 5px;
    font-size: .68rem;
    font-weight: 700;
    color: #15803d;
    letter-spacing: .02em;
    margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   STUDENT DASHBOARD — "My Kits" section
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .ph6-kits-grid { grid-template-columns: 1fr; }
}

.ph6-kit-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: box-shadow .2s, border-color .2s;
}

.ph6-kit-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
    border-color: #f97316;
}

.ph6-kit-card-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    background: #f1f5f9;
    display: block;
}

.ph6-kit-card-img-placeholder {
    width: 100%;
    height: 130px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #93c5fd;
}

.ph6-kit-card-body {
    padding: .85rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.ph6-kit-card-title {
    font-size: .9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph6-kit-card-status {
    font-size: .72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    align-self: flex-start;
}

.ph6-kit-card-status.delivered  { background: #dcfce7; color: #15803d; }
.ph6-kit-card-status.processing { background: #dbeafe; color: #1e40af; }
.ph6-kit-card-status.pending    { background: #fff7ed; color: #92400e; }
.ph6-kit-card-status.shipped    { background: #f5f3ff; color: #7c3aed; }
.ph6-kit-card-status.cancelled  { background: #fee2e2; color: #dc2626; }

.ph6-kit-card-course {
    margin-top: .4rem;
    font-size: .75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: .3em;
}

.ph6-kit-card-footer {
    padding: .65rem 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}

.ph6-kit-card-date {
    font-size: .72rem;
    color: #94a3b8;
}

.ph6-kit-view-btn {
    font-size: .75rem;
    font-weight: 700;
    color: #f97316;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .25em;
}

.ph6-kit-view-btn:hover { color: #ea580c; }

/* ─────────────────────────────────────────────────────────────────────────────
   LEARNING PAGE — Mobile sidebar toggle
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-curriculum-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 500;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(249,115,22,.4);
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s;
}

.ph6-curriculum-toggle:hover {
    background: #ea580c;
    transform: scale(1.06);
}

@media (max-width: 900px) {
    .ph6-curriculum-toggle { display: flex; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROGRESS BARS — enhanced
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-progress-wrap {
    background: #f1f5f9;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin: .4rem 0 .2rem;
}

.ph6-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    transition: width .4s ease;
}

.ph6-progress-fill.complete {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.ph6-progress-label {
    font-size: .72rem;
    color: #64748b;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   COURSE DETAIL — Required Components Panel
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-comp-section {
    margin: 1.75rem 0;
    padding: 1.5rem;
    background: #fffbf5;
    border: 1.5px solid #fed7aa;
    border-radius: 14px;
}

.ph6-comp-title {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: .4em;
    padding-bottom: .6rem;
    border-bottom: 1px solid #fde68a;
}

.ph6-comp-group-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin: .75rem 0 .4rem;
}

.ph6-comp-list {
    display: grid;
    gap: .5rem;
}

.ph6-comp-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-size: .85rem;
    transition: border-color .15s;
}

.ph6-comp-item:hover {
    border-color: #f97316;
    color: #1e293b;
}

.ph6-comp-item-name {
    flex: 1;
    font-weight: 600;
    line-height: 1.3;
}

.ph6-comp-item-price {
    font-weight: 700;
    color: #f97316;
    white-space: nowrap;
    font-size: .82rem;
}

.ph6-comp-item-badge {
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.ph6-comp-item-badge.required    { background: #fee2e2; color: #dc2626; }
.ph6-comp-item-badge.recommended { background: #fff7ed; color: #c2410c; }
.ph6-comp-item-badge.optional    { background: #f0fdf4; color: #15803d; }

/* ─────────────────────────────────────────────────────────────────────────────
   COURSE DETAIL — Kits that unlock this course
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-kit-unlock-section {
    margin: 1.75rem 0;
    padding: 1.5rem;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
}

.ph6-kit-unlock-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 .9rem;
    display: flex;
    align-items: center;
    gap: .4em;
    padding-bottom: .6rem;
    border-bottom: 1px solid #bfdbfe;
}

.ph6-kit-unlock-list {
    display: grid;
    gap: .5rem;
}

.ph6-kit-unlock-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    font-size: .86rem;
    transition: border-color .15s, box-shadow .15s;
}

.ph6-kit-unlock-item:hover {
    border-color: #2563eb;
    box-shadow: 0 3px 10px rgba(37,99,235,.1);
}

.ph6-kit-unlock-item-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #dbeafe;
    flex-shrink: 0;
}

.ph6-kit-unlock-item-name {
    flex: 1;
    font-weight: 700;
    line-height: 1.3;
}

.ph6-kit-unlock-item-price {
    font-weight: 800;
    color: #1d4ed8;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PRODUCT PAGE — LMS section wrapper (full-width page section)
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-product-lms-section {
    padding: 48px 0 56px;
    background: #f8fafc;
}

/* header row inside kit-unlock / comp boxes */
.ph6-kit-unlock-hdr,
.ph6-comp-hdr {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.25rem;
}

.ph6-kit-unlock-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ph6-comp-hdr-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ph6-kit-unlock-sub,
.ph6-comp-sub {
    font-size: .86rem;
    color: #64748b;
    margin: .2rem 0 0;
}

/* Card grid for linked courses on product page */
.ph6-kit-unlock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: .5rem;
}

.ph6-kit-unlock-card {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .15s, border-color .15s;
}

.ph6-kit-unlock-card:hover {
    box-shadow: 0 6px 20px rgba(37,99,235,.12);
    border-color: #93c5fd;
}

.ph6-kit-unlock-thumb {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.ph6-kit-unlock-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform .2s;
}

.ph6-kit-unlock-card:hover .ph6-kit-unlock-thumb img {
    transform: scale(1.03);
}

.ph6-kit-unlock-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.ph6-kit-unlock-name {
    margin: .2rem 0 0;
    font-size: .97rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.ph6-kit-unlock-name a {
    color: inherit;
    text-decoration: none;
}

.ph6-kit-unlock-name a:hover { color: #1d4ed8; }

.ph6-kit-unlock-desc {
    margin: 0;
    font-size: .83rem;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph6-kit-unlock-meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: #64748b;
    font-weight: 600;
    margin-top: .25rem;
}

.ph6-kit-unlock-foot {
    margin-top: auto;
    padding-top: .5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
}

.ph6-kit-unlock-price {
    font-weight: 800;
    font-size: .95rem;
    color: #1d4ed8;
}

.ph6-kit-unlock-cta {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    padding: .4rem .9rem;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity .15s;
}

.ph6-kit-unlock-cta:hover { opacity: .88; }

/* Component section grid (product page "used-in" variant) */
.ph6-comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
    margin-top: .5rem;
}

.ph6-comp-item-title {
    font-weight: 700;
    font-size: .92rem;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph6-comp-item-cta {
    font-size: .8rem;
    font-weight: 700;
    color: #f97316;
    margin-top: auto;
}

/* Type filter tabs — shop page */
.ph6-type-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}

/* My Kits grid — my-learning.php */
.ph6-kit-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.ph6-kit-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: box-shadow .15s, border-color .15s;
}

.ph6-kit-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.09);
    border-color: #f97316;
}

.ph6-kit-card-img-wrap {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.ph6-kit-card-img-wrap img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: transform .2s;
}

.ph6-kit-card:hover .ph6-kit-card-img-wrap img {
    transform: scale(1.04);
}

.ph6-kit-card-img-placeholder {
    width: 100%;
    height: 130px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #94a3b8;
}

.ph6-kit-card-body {
    padding: .85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.ph6-kit-card-name {
    font-size: .9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph6-kit-card-name a {
    color: inherit;
    text-decoration: none;
}

.ph6-kit-card-name a:hover { color: #f97316; }

.ph6-kit-card-order {
    font-size: .73rem;
    color: #94a3b8;
    font-weight: 600;
}

.ph6-kit-card-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    padding-top: .4rem;
}

.ph6-kit-card-status {
    display: inline-flex;
    align-items: center;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .2rem .55rem;
    border-radius: 4px;
}

.ph6-kit-card-status.delivered,
.ph6-kit-card-status.completed  { background: #dcfce7; color: #15803d; }
.ph6-kit-card-status.processing { background: #dbeafe; color: #1e40af; }
.ph6-kit-card-status.pending    { background: #fff7ed; color: #92400e; }
.ph6-kit-card-status.shipped    { background: #f5f3ff; color: #7c3aed; }
.ph6-kit-card-status.cancelled  { background: #fee2e2; color: #dc2626; }

/* Enrolled chip and CTA — courses page */
.ph6-enrolled-chip {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    font-size: .78rem;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 999px;
    padding: .25rem .65rem;
}

.course-cta.ph6-cta-start {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: .35em;
}

/* learn.php — off-canvas curriculum sidebar for mobile */
@media (max-width: 900px) {
    .lms-curriculum {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        height: 100vh !important;
        width: min(320px, 88vw) !important;
        max-height: none !important;
        z-index: 450;
        transform: translateX(100%);
        transition: transform .25s ease;
        border-left: 1px solid #e2e8f0 !important;
        border-top: none !important;
        background: #fff;
        overflow-y: auto !important;
    }

    .lms-curriculum.ph6-sidebar-open {
        transform: translateX(0);
        box-shadow: -4px 0 32px rgba(0,0,0,.18);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE RESPONSIVENESS — global utilities
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ph6-section-head h2 { font-size: 1.45rem; }
    .ph6-school-box     { padding: 1.75rem 1.25rem; }
    .ph6-school-copy h2 { font-size: 1.3rem; }
    .ph6-ecosystem-inner { gap: 1.5rem; }
    .ph6-kit-unlock-grid { grid-template-columns: 1fr; }
    .ph6-comp-grid       { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ACCESSIBILITY — focus styles
   ───────────────────────────────────────────────────────────────────────────── */
.ph6-category-card:focus-visible,
.ph6-kit-view-btn:focus-visible,
.ph6-school-btn:focus-visible,
.ph6-type-tab:focus-visible,
.ph6-comp-item:focus-visible,
.ph6-kit-unlock-item:focus-visible {
    outline: 3px solid #f97316;
    outline-offset: 3px;
}

