.materials-section {
            background: #f7f2ea;
            padding: 80px 20px;
            text-align: center;
            font-family: 'Roboto', sans-serif;
        }

        /* TITLE ROW */
        .materials-title-row {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            margin-bottom: 20px;
        }

        .materials-title {
            background: #c9a889;
            color: #ff2b2b;
            padding: 14px 30px;
            border-radius: 12px;
            font-size: 28px;
            font-weight: 700;
        }

        .materials-tagline {
            font-size: 26px;
            font-weight: 700;
            color: #6f90cb;
            text-shadow: 0 0 6px rgba(0, 0, 0, .25);
        }

        /* SUBTEXT */
        .materials-subtext {
            max-width: 900px;
            margin: 20px auto 30px;
            font-size: 18px;
            font-weight: 600;
        }

        /* FEATURES */
        .materials-features {
            background: #c9a889;
            display: inline-block;
            padding: 20px 30px;
            border-radius: 12px;
            text-align: left;
            margin-bottom: 40px;
        }

        .materials-features ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .materials-features li {
            font-size: 18px;
            margin-bottom: 10px;
            position: relative;
            padding-left: 26px;
        }

 .materials-features li::before {
            content: "✔";
            position: absolute;
            left: 0;
            color: #4CAF50;
            font-weight: 700;
        }

        /* Materials catalog (course → chapter → unit cards) */
        .materials-catalog-wrap {
            max-width: 1160px;
            margin: 0 auto;
            text-align: left;
        }

        /* Sidebar + main panel */
        .materials-page-layout {
            display: grid;
            grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
            gap: 1.5rem;
            align-items: start;
        }

        .materials-sidebar {
            position: sticky;
            top: 100px;
            align-self: start;
            max-height: calc(100vh - 120px);
            overflow-y: auto;
            background: #fff;
            border-radius: 14px;
            border: 1px solid rgba(201, 168, 137, 0.5);
            box-shadow: 0 6px 22px rgba(44, 62, 80, 0.08);
        }

        .materials-sidebar-header {
            padding: 0.85rem 1rem;
            border-bottom: 1px solid rgba(44, 62, 80, 0.1);
            background: linear-gradient(135deg, #efe6dc 0%, #e8dfd3 100%);
            border-radius: 14px 14px 0 0;
        }

        .materials-sidebar-title {
            font-weight: 700;
            font-size: 0.95rem;
            color: #2c3e50;
        }

        .materials-nav-tree {
            padding: 0.5rem 0.35rem 1rem;
        }

        .materials-nav-course,
        .materials-nav-chapter {
            border: none;
            margin: 0 0 0.35rem;
        }

        .materials-nav-course > summary,
        .materials-nav-chapter > summary {
            list-style: none;
            cursor: pointer;
            padding: 0.5rem 0.5rem 0.5rem 0.65rem;
            border-radius: 8px;
            font-size: 0.92rem;
            font-weight: 650;
            color: #2c3e50;
            user-select: none;
        }

        .materials-nav-course > summary::-webkit-details-marker,
        .materials-nav-chapter > summary::-webkit-details-marker {
            display: none;
        }

        .materials-nav-summary-sub {
            font-weight: 600;
            font-size: 0.86rem;
            color: #34495e;
            padding-left: 1rem;
        }

        .materials-nav-course > summary::before {
            content: "\f07c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            margin-right: 0.45rem;
            font-size: 0.75rem;
            opacity: 0.75;
        }

        .materials-nav-chapter > summary::before {
            content: "\f07b";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            margin-right: 0.35rem;
            font-size: 0.7rem;
            opacity: 0.65;
        }

        .materials-nav-children {
            padding: 0.15rem 0 0.35rem 0.35rem;
        }

        .materials-nav-chapter {
            margin-left: 0.25rem;
            border-left: 2px solid rgba(201, 168, 137, 0.45);
        }

        .materials-nav-units {
            list-style: none;
            margin: 0;
            padding: 0.15rem 0 0.35rem 0;
        }

        .materials-nav-units li {
            margin: 0;
        }

        .materials-nav-unit {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 0.45rem 0.6rem 0.45rem 1.15rem;
            margin: 2px 0;
            border-radius: 8px;
            font-size: 0.84rem;
            color: #34495e;
            text-decoration: none;
            line-height: 1.35;
        }

        .materials-nav-unit:hover {
            background: rgba(201, 168, 137, 0.25);
            color: #1a252f;
        }

        .materials-nav-unit.active {
            background: rgba(211, 84, 0, 0.15);
            color: #a04000;
            font-weight: 650;
            border: 1px solid rgba(211, 84, 0, 0.35);
        }

        .materials-nav-count {
            flex-shrink: 0;
            font-size: 0.7rem;
            font-weight: 700;
            background: rgba(44, 62, 80, 0.1);
            color: #5d4e41;
            padding: 0.15rem 0.45rem;
            border-radius: 999px;
        }

        .materials-nav-unit.active .materials-nav-count {
            background: rgba(211, 84, 0, 0.25);
            color: #7d3c00;
        }

        .materials-main {
            min-width: 0;
        }

        .materials-main-card {
            background: #fff;
            border-radius: 16px;
            border: 1px solid rgba(201, 168, 137, 0.45);
            box-shadow: 0 8px 28px rgba(44, 62, 80, 0.1);
            padding: 1.35rem 1.4rem 1.5rem;
            text-align: left;
        }

        .materials-main-breadcrumb {
            font-size: 0.82rem;
            color: #7f8c8d;
            margin-bottom: 1rem;
            line-height: 1.5;
        }

        .materials-main-breadcrumb .sep {
            margin: 0 0.4rem;
            opacity: 0.65;
        }

        .materials-main-breadcrumb .breadcrumb-current {
            font-weight: 700;
            color: #2c3e50;
        }

        .materials-main-context {
            font-size: 0.88rem;
            color: #636e72;
            margin: 0 0 0.35rem;
        }

        .materials-main-chapter-label {
            display: inline-block;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #95a5a6;
            margin-right: 0.35rem;
        }

        .materials-main-chapter-desc {
            font-size: 0.92rem;
            color: #5c534a;
            margin: 0 0 1rem;
            line-height: 1.5;
        }

        .materials-main-chapter-rich,
        .materials-unit-panel-rich {
            font-size: 0.92rem;
            color: #2c3e50;
            line-height: 1.55;
            margin: 0 0 1rem;
        }

        .materials-unit-panel {
            margin-top: 0.5rem;
            padding-top: 1rem;
            border-top: 1px dashed rgba(201, 168, 137, 0.55);
        }

        .materials-unit-panel-title {
            font-size: 1.35rem;
            font-weight: 700;
            color: #2c3e50;
            margin: 0 0 0.65rem;
        }

        .materials-unit-panel-desc {
            font-size: 0.92rem;
            color: #636e72;
            margin: 0 0 1rem;
            line-height: 1.5;
        }

        .materials-empty-inline {
            margin: 0;
            max-width: none;
        }

        .materials-catalog-alert {
            max-width: 720px;
            margin: 0 auto 2rem;
        }

        .materials-catalog-intro {
            text-align: center;
            font-size: 1.05rem;
            color: #4a4036;
            margin-bottom: 1.75rem;
            font-weight: 500;
        }

        .materials-empty {
            text-align: center;
            color: #5c534a;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 6px 24px rgba(44, 62, 80, 0.08);
            padding: 2.5rem 1.5rem;
            max-width: 640px;
            margin: 0 auto;
        }

        .materials-catalog {
            display: flex;
            flex-direction: column;
            gap: 1.75rem;
        }

        .materials-course-card {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 8px 28px rgba(44, 62, 80, 0.1);
            overflow: hidden;
            border: 1px solid rgba(201, 168, 137, 0.45);
        }

        .materials-course-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            padding: 1.15rem 1.35rem;
            background: linear-gradient(135deg, #efe6dc 0%, #e8dfd3 100%);
            border-bottom: 1px solid rgba(201, 168, 137, 0.5);
        }

        .materials-course-title {
            font-size: 1.35rem;
            font-weight: 700;
            color: #2c3e50;
            margin: 0;
        }

        .materials-count-badge {
            font-size: 0.8rem;
            font-weight: 600;
            color: #5d4e41;
            background: rgba(255, 255, 255, 0.85);
            padding: 0.35rem 0.75rem;
            border-radius: 999px;
            border: 1px solid rgba(201, 168, 137, 0.6);
        }

        .materials-course-body {
            padding: 1.25rem 1.35rem 1.5rem;
        }

        .materials-chapter-block + .materials-chapter-block {
            margin-top: 1.75rem;
            padding-top: 1.5rem;
            border-top: 1px dashed rgba(201, 168, 137, 0.55);
        }

        .materials-chapter-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #34495e;
            margin: 0 0 0.5rem;
        }

        .materials-chapter-desc {
            font-size: 0.95rem;
            color: #636e72;
            margin: 0 0 1rem;
            line-height: 1.45;
        }

        .materials-unit-block {
            margin-bottom: 1.25rem;
        }

        .materials-unit-block:last-child {
            margin-bottom: 0;
        }

        .materials-unit-head {
            margin-bottom: 0.65rem;
        }

        .materials-unit-title {
            display: block;
            font-size: 1rem;
            font-weight: 650;
            color: #2c3e50;
        }

        .materials-unit-desc {
            display: block;
            font-size: 0.88rem;
            color: #7f8c8d;
            margin-top: 0.25rem;
            line-height: 1.4;
        }

        .materials-card-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .material-card {
            display: flex;
            align-items: stretch;
            gap: 0;
            background: #fbf9f5;
            border: 1px solid rgba(44, 62, 80, 0.12);
            border-radius: 12px;
            overflow: hidden;
            transition: box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .material-card:hover {
            border-color: rgba(211, 84, 0, 0.35);
            box-shadow: 0 4px 14px rgba(44, 62, 80, 0.07);
        }

        .material-card-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 52px;
            flex-shrink: 0;
            background: rgba(201, 168, 137, 0.35);
            color: #5d4e41;
            font-size: 1.25rem;
        }

        .material-card-main {
            flex: 1;
            min-width: 0;
            padding: 0.85rem 1rem;
        }

        .material-card-title {
            font-weight: 650;
            font-size: 1rem;
            color: #2c3e50;
            line-height: 1.35;
        }

        .material-card-teaser {
            font-size: 0.88rem;
            color: #636e72;
            margin: 0.45rem 0 0;
            line-height: 1.45;
        }

        .material-card-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem 0.75rem;
            margin-top: 0.55rem;
        }

        .material-kind-pill {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            color: #6f5d4c;
            background: rgba(201, 168, 137, 0.4);
            padding: 0.2rem 0.55rem;
            border-radius: 6px;
        }

        .material-breadcrumb {
            font-size: 0.78rem;
        }

        .material-breadcrumb .sep {
            opacity: 0.55;
            margin: 0 0.35rem;
        }

        .material-breadcrumb.muted {
            color: #95a5a6;
        }

        .material-card-action {
            display: flex;
            align-items: center;
            padding: 0.65rem 0.85rem;
            flex-shrink: 0;
        }

        .material-cta {
            font-size: 0.88rem;
            font-weight: 650;
            border-radius: 10px;
            padding: 0.45rem 0.95rem;
            white-space: nowrap;
            border: none;
        }

        .material-cta-file {
            background: #c9a889;
            color: #1e1e1e !important;
        }

        .material-cta-file:hover {
            background: #b89572;
            color: #111 !important;
        }

        .material-cta-link {
            background: #2c3e50;
            color: #fff !important;
        }

        .material-cta-link:hover {
            background: #34495e;
            color: #fff !important;
        }

        /* Legacy table (if reused elsewhere) */
        .materials-table-wrap {
            display: flex;
            justify-content: center;
        }

        .materials-table {
            border-collapse: collapse;
            width: 760px;
            max-width: 100%;
            background: #f7f2ea;
        }

        .materials-table td {
            border: 3px solid #000;
            padding: 26px;
            font-size: 18px;
            text-align: left;
        }

        .materials-table td:last-child {
            text-align: center;
            width: 200px;
        }

        /* DOWNLOAD BUTTON */
        .download-btn {
            background: #c9a889;
            color: #000;
            padding: 10px 26px;
            border-radius: 14px;
            text-decoration: none;
            font-weight: 700;
            transition: .3s;
        }

        .download-btn:hover {
            background: #6f6a60;
            color: #fff;
        }

        /* Fastrack / unit notes: ensure readable text on cream cards without stripping editor formatting */
        .unit-fastrack-body,
        .unit-note-body {
            color: #1a202c;
        }

        /* Rich content from TinyMCE editor — preserve formatting faithfully */
        .unit-rich-content {
            font-size: 0.95rem;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .unit-rich-content h1,
        .unit-rich-content h2,
        .unit-rich-content h3,
        .unit-rich-content h4,
        .unit-rich-content h5,
        .unit-rich-content h6 {
            margin-top: 1em;
            margin-bottom: 0.5em;
            font-weight: 700;
            line-height: 1.3;
        }

        .unit-rich-content h1 { font-size: 1.6rem; }
        .unit-rich-content h2 { font-size: 1.35rem; }
        .unit-rich-content h3 { font-size: 1.15rem; }
        .unit-rich-content h4 { font-size: 1.05rem; }
        .unit-rich-content h5 { font-size: 0.95rem; }
        .unit-rich-content h6 { font-size: 0.85rem; }

        .unit-rich-content p {
            margin-bottom: 0.75em;
        }

        .unit-rich-content ul,
        .unit-rich-content ol {
            margin-bottom: 0.75em;
            padding-left: 1.5em;
        }

        .unit-rich-content li {
            margin-bottom: 0.35em;
        }

        .unit-rich-content blockquote {
            border-left: 3px solid #d97706;
            margin: 0.75em 0;
            padding: 0.5em 1em;
            background: rgba(217, 119, 6, 0.06);
            font-style: italic;
        }

        .unit-rich-content table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 1em;
            font-size: 0.9rem;
        }

        .unit-rich-content table th,
        .unit-rich-content table td {
            border: 1px solid #d1d5db;
            padding: 0.5em 0.75em;
            text-align: left;
            vertical-align: top;
        }

        .unit-rich-content table th {
            font-weight: 700;
            background: #f3f4f6;
        }

        .unit-rich-content img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            margin: 0.5em 0;
        }

        .unit-rich-content a {
            color: #2563eb;
            text-decoration: underline;
        }

        .unit-rich-content a:hover {
            color: #1d4ed8;
        }

        /* RESPONSIVE */
        @media(max-width:768px) {

            .materials-title-row {
                flex-direction: column;
            }

            .materials-title {
                font-size: 22px;
            }

            .materials-tagline {
                font-size: 20px;
            }

            .materials-table td {
                font-size: 16px;
                padding: 18px;
            }

            .material-card {
                flex-direction: column;
            }

            .material-card-icon {
                width: 100%;
                height: 44px;
            }

            .material-card-action {
                justify-content: stretch;
                border-top: 1px solid rgba(44, 62, 80, 0.08);
                padding: 0.75rem 1rem;
            }

            .material-cta {
                width: 100%;
                text-align: center;
            }

            .materials-course-head {
                flex-direction: column;
                align-items: flex-start;
            }

            .materials-page-layout {
                grid-template-columns: 1fr;
            }

            .materials-sidebar {
                position: relative;
                top: auto;
                max-height: none;
                order: 0;
            }

            .materials-main {
                order: 1;
            }
        }