/*
Theme Name: Matsh - Kadence Child
Theme URI: https://matsh.co
Description: Custom child theme for Matsh website based on Kadence. Includes course scheduling, registration system, and conversion-optimized homepage design.
Author: Matsh Development Team
Author URI: https://matsh.co
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matsh-kadence-child
*/

/* ==========================================================================
   Matsh Custom Styles - Kadence Child Theme
   ========================================================================== */

/* ===== CSS Variables ===== */
:root {
    --matsh-primary: #00a8a8;
    --matsh-primary-dark: #008b8b;
    --matsh-secondary: #f5a623;
    --matsh-text: #333333;
    --matsh-text-light: #666666;
    --matsh-bg-light: #f8f9fa;
    --matsh-border: #dee2e6;
    --matsh-white: #ffffff;
    --matsh-success: #28a745;
    --matsh-danger: #dc3545;
    --matsh-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --matsh-shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --matsh-radius: 8px;
    --matsh-transition: all 0.3s ease;
}

/* ===== Course Featured Image ===== */
.matsh-course-image-wrapper {
    margin-bottom: 30px;
}

.matsh-course-featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--matsh-radius);
    box-shadow: var(--matsh-shadow);
}

/* ===== Homepage Hero Section ===== */
.matsh-hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--matsh-primary) 0%, var(--matsh-primary-dark) 100%);
    background-size: cover;
    background-position: center;
    padding: 100px 20px 60px;
    text-align: center;
    color: var(--matsh-white);
}

.matsh-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.matsh-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.matsh-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--matsh-white);
    line-height: 1.2;
}

.matsh-hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.matsh-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.matsh-hero-search {
    max-width: 500px;
    margin: 0 auto;
}

.matsh-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.matsh-hero-stat-item {
    text-align: center;
}

.matsh-hero-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
}

.matsh-hero-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== Buttons ===== */
.matsh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--matsh-transition);
    gap: 8px;
}

.matsh-btn-primary {
    background: var(--matsh-secondary);
    color: var(--matsh-white);
}

.matsh-btn-primary:hover {
    background: #e09000;
    color: var(--matsh-white);
    transform: translateY(-2px);
    box-shadow: var(--matsh-shadow);
}

.matsh-btn-outline {
    background: transparent;
    color: var(--matsh-white);
    border: 2px solid var(--matsh-white);
}

.matsh-btn-outline:hover {
    background: var(--matsh-white);
    color: var(--matsh-primary);
}

.matsh-btn-white {
    background: var(--matsh-white);
    color: var(--matsh-primary);
}

.matsh-btn-white:hover {
    background: #f0f0f0;
    color: var(--matsh-primary-dark);
}

.matsh-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.matsh-btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.matsh-btn-block {
    width: 100%;
}

/* ===== Form Elements ===== */
.matsh-input,
.matsh-select,
.matsh-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--matsh-border);
    border-radius: 4px;
    background: var(--matsh-white);
    transition: var(--matsh-transition);
}

.matsh-input:focus,
.matsh-select:focus,
.matsh-textarea:focus {
    outline: none;
    border-color: var(--matsh-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.1);
}

/* ===== Featured Courses Section ===== */
.matsh-featured-courses {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.matsh-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.matsh-section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--matsh-text);
}

.matsh-section-subtitle {
    font-size: 18px;
    color: var(--matsh-text-light);
}

.matsh-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.matsh-course-card {
    background: var(--matsh-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--matsh-shadow);
    transition: var(--matsh-transition);
}

.matsh-course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--matsh-shadow-hover);
}

.matsh-course-image {
    height: 200px;
    overflow: hidden;
}

.matsh-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.matsh-course-card:hover .matsh-course-image img {
    transform: scale(1.05);
}

.matsh-course-content {
    padding: 24px;
}

.matsh-course-content .matsh-course-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.matsh-course-content .matsh-course-title a {
    color: var(--matsh-text);
    text-decoration: none;
}

.matsh-course-content .matsh-course-title a:hover {
    color: var(--matsh-primary);
}

.matsh-course-excerpt {
    color: var(--matsh-text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.matsh-course-meta {
    margin-bottom: 16px;
}

.matsh-course-schedules {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--matsh-primary);
    font-size: 14px;
}

.matsh-section-footer {
    text-align: center;
    margin-top: 50px;
}

/* ===== Categories Section ===== */
.matsh-categories-section {
    padding: 80px 20px;
    background: var(--matsh-bg-light);
}

.matsh-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.matsh-category-card {
    background: var(--matsh-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--matsh-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--matsh-transition);
}

.matsh-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--matsh-shadow-hover);
    color: var(--matsh-primary);
}

.matsh-category-icon {
    font-size: 40px;
    color: var(--matsh-primary);
    margin-bottom: 16px;
}

.matsh-category-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.matsh-category-count {
    font-size: 14px;
    color: var(--matsh-text-light);
}

/* ===== CTA Section ===== */
.matsh-cta-section {
    padding: 80px 20px;
    text-align: center;
    color: var(--matsh-white);
}

.matsh-cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--matsh-white);
}

.matsh-cta-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* ===== Testimonials Section ===== */
.matsh-testimonials-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.matsh-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.matsh-testimonial-card {
    background: var(--matsh-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--matsh-shadow);
}

.matsh-testimonial-rating {
    color: #ffc107;
    margin-bottom: 16px;
}

.matsh-testimonial-content {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.matsh-testimonial-author strong {
    display: block;
    color: var(--matsh-text);
}

.matsh-testimonial-author span {
    font-size: 14px;
    color: var(--matsh-text-light);
}

/* ===== Upcoming Schedules ===== */
.matsh-upcoming-schedules {
    margin: 40px 0;
    padding: 30px;
    background: var(--matsh-bg-light);
    border-radius: var(--matsh-radius);
}

.matsh-upcoming-schedules .matsh-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
    color: var(--matsh-text);
}

.matsh-schedules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.matsh-schedule-card {
    background: var(--matsh-white);
    border-radius: var(--matsh-radius);
    box-shadow: var(--matsh-shadow);
    overflow: hidden;
    transition: var(--matsh-transition);
}

.matsh-schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--matsh-shadow-hover);
}

.matsh-schedule-full {
    opacity: 0.7;
}

.matsh-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--matsh-primary) 0%, var(--matsh-primary-dark) 100%);
    color: var(--matsh-white);
}

.matsh-schedule-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.matsh-spots-warning {
    padding: 4px 10px;
    background: #ffc107;
    color: var(--matsh-text);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.matsh-schedule-body {
    padding: 20px;
}

.matsh-schedule-body .matsh-course-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--matsh-text);
}

.matsh-schedule-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.matsh-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.matsh-detail-label {
    font-size: 12px;
    color: var(--matsh-text-light);
}

.matsh-detail-value {
    font-size: 14px;
    color: var(--matsh-text);
}

.matsh-detail-sub {
    font-size: 12px;
    color: var(--matsh-text-light);
}

.matsh-price-item {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--matsh-border);
}

.matsh-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--matsh-primary);
}

.matsh-schedule-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--matsh-border);
}

.matsh-schedule-footer .matsh-btn {
    width: 100%;
}

.matsh-search-more {
    margin-top: 24px;
    text-align: center;
}

.matsh-no-schedules {
    text-align: center;
    padding: 40px 20px;
}

.matsh-no-schedules-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ===== Courses Calendar ===== */
.matsh-courses-calendar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.matsh-calendar-header {
    text-align: center;
    margin-bottom: 40px;
}

.matsh-calendar-header .matsh-page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--matsh-text);
    margin-bottom: 8px;
}

.matsh-calendar-header .matsh-page-subtitle {
    font-size: 16px;
    color: var(--matsh-text-light);
}

.matsh-filter-section {
    background: var(--matsh-bg-light);
    padding: 24px;
    border-radius: var(--matsh-radius);
    margin-bottom: 24px;
}

.matsh-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.matsh-filter-row:last-child {
    margin-bottom: 0;
}

.matsh-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.matsh-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--matsh-text);
}

.matsh-filter-search {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
}

.matsh-filter-search .matsh-input {
    flex: 1;
}

.matsh-results-info {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--matsh-text-light);
}

.matsh-schedules-table-wrapper {
    background: var(--matsh-white);
    border-radius: var(--matsh-radius);
    box-shadow: var(--matsh-shadow);
    overflow: hidden;
}

.matsh-schedules-table {
    width: 100%;
    border-collapse: collapse;
}

.matsh-schedules-table th {
    padding: 16px;
    background: var(--matsh-primary);
    color: var(--matsh-white);
    font-weight: 600;
    text-align: left;
    font-size: 14px;
}

.matsh-schedules-table td {
    padding: 16px;
    border-bottom: 1px solid var(--matsh-border);
    font-size: 14px;
}

.matsh-schedules-table tr:hover {
    background: var(--matsh-bg-light);
}

.matsh-col-date {
    white-space: nowrap;
}

.matsh-date-main {
    font-weight: 600;
    color: var(--matsh-text);
}

.matsh-date-end {
    font-size: 12px;
    color: var(--matsh-text-light);
}

.matsh-course-link {
    color: var(--matsh-primary);
    font-weight: 600;
    text-decoration: none;
}

.matsh-course-link:hover {
    text-decoration: underline;
}

.matsh-venue-main {
    font-weight: 500;
}

.matsh-venue-sub {
    font-size: 12px;
    color: var(--matsh-text-light);
}

.matsh-col-price .matsh-price {
    font-weight: 700;
    color: var(--matsh-primary);
}

.matsh-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.matsh-badge-full {
    background: #6c757d;
    color: var(--matsh-white);
}

.matsh-spots-tag {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--matsh-danger);
}

.matsh-no-results {
    text-align: center;
    padding: 40px;
    color: var(--matsh-text-light);
}

.matsh-load-more {
    text-align: center;
    margin-top: 24px;
}

/* ===== Registration Form ===== */
.matsh-registration-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.matsh-registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.matsh-registration-header .matsh-page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--matsh-text);
    margin-bottom: 8px;
}

.matsh-registration-header .matsh-page-subtitle {
    font-size: 16px;
    color: var(--matsh-text-light);
}

.matsh-registration-wrapper {
    display: grid;
    gap: 30px;
}

.matsh-course-summary {
    margin-bottom: 20px;
}

.matsh-summary-card {
    background: linear-gradient(135deg, var(--matsh-primary) 0%, var(--matsh-primary-dark) 100%);
    color: var(--matsh-white);
    padding: 24px;
    border-radius: var(--matsh-radius);
}

.matsh-summary-card h4 {
    margin: 0 0 16px;
    font-size: 18px;
}

.matsh-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.matsh-summary-item:last-child {
    border-bottom: none;
}

.matsh-summary-label {
    opacity: 0.9;
}

.matsh-summary-value {
    font-weight: 600;
}

.matsh-summary-price {
    font-size: 18px;
}

.matsh-form {
    background: var(--matsh-white);
    padding: 30px;
    border-radius: var(--matsh-radius);
    box-shadow: var(--matsh-shadow);
}

.matsh-form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--matsh-border);
}

.matsh-form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.matsh-form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--matsh-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--matsh-primary);
}

.matsh-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.matsh-form-row:last-child {
    margin-bottom: 0;
}

.matsh-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.matsh-form-group-full {
    grid-column: 1 / -1;
}

.matsh-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--matsh-text);
}

.matsh-schedule-preview {
    margin-top: 16px;
    padding: 16px;
    background: var(--matsh-bg-light);
    border-radius: var(--matsh-radius);
    border-left: 4px solid var(--matsh-primary);
}

.matsh-form-terms {
    margin-bottom: 20px;
}

.matsh-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.matsh-checkbox-label input {
    margin-top: 3px;
}

.matsh-form-submit {
    text-align: center;
}

.matsh-form-message {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--matsh-radius);
}

.matsh-form-message.success {
    background: #d4edda;
    color: #155724;
}

.matsh-form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* ===== Course Search Widget ===== */
.matsh-course-search {
    background: rgba(255,255,255,0.1);
    padding: 24px;
    border-radius: var(--matsh-radius);
}

.matsh-search-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--matsh-white);
}

.matsh-search-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Related Courses Widget ===== */
.matsh-related-courses-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.matsh-related-course-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.matsh-related-course-item:last-child {
    border-bottom: none;
}

.matsh-related-course-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.matsh-related-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matsh-related-course-content {
    flex: 1;
}

.matsh-related-course-title {
    display: block;
    font-weight: 600;
    color: var(--matsh-text);
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.4;
}

.matsh-related-course-title:hover {
    color: var(--matsh-primary);
}

.matsh-related-course-schedules {
    font-size: 12px;
    color: var(--matsh-primary);
}

/* ===== Modal ===== */
.matsh-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.matsh-modal-content {
    background: var(--matsh-white);
    padding: 32px;
    border-radius: var(--matsh-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.matsh-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: var(--matsh-text-light);
}

.matsh-modal-close:hover {
    color: var(--matsh-text);
}

.matsh-success-modal .matsh-modal-content {
    text-align: center;
}

.matsh-success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--matsh-success);
    color: var(--matsh-white);
    font-size: 32px;
    line-height: 60px;
    border-radius: 50%;
}

.matsh-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .matsh-hero-title {
        font-size: 32px;
    }
    
    .matsh-hero-stats {
        gap: 30px;
    }
    
    .matsh-courses-grid,
    .matsh-categories-grid,
    .matsh-testimonials-grid,
    .matsh-schedules-grid {
        grid-template-columns: 1fr;
    }
    
    .matsh-hero-buttons {
        flex-direction: column;
    }
    
    .matsh-filter-row {
        grid-template-columns: 1fr;
    }
    
    .matsh-filter-search {
        flex-direction: column;
    }
    
    .matsh-schedules-table {
        font-size: 12px;
    }
    
    .matsh-schedules-table th,
    .matsh-schedules-table td {
        padding: 10px;
    }
    
    .matsh-form-row {
        grid-template-columns: 1fr;
    }
    
    .matsh-section-title {
        font-size: 28px;
    }
    
    .matsh-modal-actions {
        flex-direction: column;
    }
}

/* ===== Animation ===== */
@keyframes matsh-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.matsh-schedule-card,
.matsh-course-card,
.matsh-testimonial-card {
    animation: matsh-fade-in 0.3s ease;
}

/* ==========================================================================
   SINGLE COURSE PAGE
   ========================================================================== */

.matsh-single-course {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.course-header {
    margin-bottom: 40px;
    text-align: center;
}

.course-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.course-code {
    display: inline-block;
    padding: 4px 12px;
    background: var(--matsh-primary);
    color: var(--matsh-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.course-categories {
    font-size: 14px;
    color: var(--matsh-text-light);
}

.course-categories a {
    color: var(--matsh-primary);
    text-decoration: none;
}

.course-categories a:hover {
    text-decoration: underline;
}

.course-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--matsh-text);
    margin-bottom: 24px;
    line-height: 1.2;
}

.course-details-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--matsh-bg-light);
    border-radius: var(--matsh-radius);
}

.course-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-icon {
    font-size: 18px;
}

.detail-label {
    font-size: 14px;
    color: var(--matsh-text-light);
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--matsh-text);
}

.course-price {
    color: var(--matsh-primary);
    font-size: 18px;
}

.course-featured-image {
    margin-bottom: 40px;
}

.course-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--matsh-radius);
    box-shadow: var(--matsh-shadow);
}

.course-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--matsh-text);
}

.course-content h2,
.course-content h3,
.course-content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.course-content p {
    margin-bottom: 20px;
}

.course-content ul,
.course-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.course-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--matsh-border);
}

.tags-label {
    font-weight: 600;
    margin-right: 8px;
}

.course-tags a {
    display: inline-block;
    padding: 4px 12px;
    margin: 4px;
    background: var(--matsh-bg-light);
    color: var(--matsh-text);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
}

.course-tags a:hover {
    background: var(--matsh-primary);
    color: var(--matsh-white);
}

.course-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--matsh-border);
}

.course-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.course-navigation .nav-previous,
.course-navigation .nav-next {
    max-width: 45%;
}

.course-navigation .nav-subtitle {
    display: block;
    font-size: 12px;
    color: var(--matsh-text-light);
    margin-bottom: 4px;
}

.course-navigation .nav-title {
    font-weight: 600;
    color: var(--matsh-primary);
}

.back-to-courses {
    margin-top: 40px;
    text-align: center;
}

/* ==========================================================================
   COURSE ARCHIVE PAGE
   ========================================================================== */

.course-archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: var(--matsh-bg-light);
    border-radius: var(--matsh-radius);
}

.course-archive-header .page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--matsh-text);
    margin-bottom: 16px;
}

.course-archive-header .archive-description {
    font-size: 18px;
    color: var(--matsh-text-light);
    max-width: 700px;
    margin: 0 auto 30px;
}

.course-category-filter {
    margin-top: 30px;
}

.course-category-filter h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--matsh-text);
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--matsh-white);
    color: var(--matsh-text);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--matsh-border);
    transition: var(--matsh-transition);
}

.category-link:hover,
.category-link.active {
    background: var(--matsh-primary);
    color: var(--matsh-white);
    border-color: var(--matsh-primary);
}

.category-link .count {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 4px;
}

.course-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Course Card (Archive) */
.course-card {
    background: var(--matsh-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--matsh-shadow);
    transition: var(--matsh-transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--matsh-shadow-hover);
}

.course-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.05);
}

.course-card-code {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--matsh-primary);
    color: var(--matsh-white);
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.course-card-content {
    padding: 24px;
}

.course-card-category {
    font-size: 13px;
    margin-bottom: 8px;
}

.course-card-category a {
    color: var(--matsh-primary);
    text-decoration: none;
}

.course-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-card-title a {
    color: var(--matsh-text);
    text-decoration: none;
}

.course-card-title a:hover {
    color: var(--matsh-primary);
}

.course-card-excerpt {
    font-size: 14px;
    color: var(--matsh-text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.course-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--matsh-text-light);
}

.course-card-meta .meta-price {
    color: var(--matsh-primary);
    font-weight: 600;
}

.course-card-meta .meta-schedules {
    color: var(--matsh-primary);
}

.course-pagination {
    margin-top: 50px;
    text-align: center;
}

.course-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.course-pagination a,
.course-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--matsh-white);
    color: var(--matsh-text);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--matsh-border);
    font-size: 14px;
}

.course-pagination a:hover {
    background: var(--matsh-primary);
    color: var(--matsh-white);
    border-color: var(--matsh-primary);
}

.course-pagination .current {
    background: var(--matsh-primary);
    color: var(--matsh-white);
    border-color: var(--matsh-primary);
}

.no-courses-found {
    text-align: center;
    padding: 60px 20px;
}

.no-courses-found p {
    font-size: 18px;
    color: var(--matsh-text-light);
    margin-bottom: 20px;
}

/* ==========================================================================
   COURSE CATEGORY PAGE
   ========================================================================== */

.course-category-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: var(--matsh-bg-light);
    border-radius: var(--matsh-radius);
}

.course-category-header .page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--matsh-text);
    margin-bottom: 16px;
}

.course-breadcrumb {
    margin-top: 20px;
    font-size: 14px;
    color: var(--matsh-text-light);
}

.course-breadcrumb a {
    color: var(--matsh-primary);
    text-decoration: none;
}

.course-breadcrumb a:hover {
    text-decoration: underline;
}

.course-breadcrumb .separator {
    margin: 0 8px;
    color: var(--matsh-border);
}

.course-breadcrumb .current {
    color: var(--matsh-text);
}

.other-categories {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--matsh-border);
}

.other-categories h3 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE FOR COURSE PAGES
   ========================================================================== */

@media (max-width: 768px) {
    .matsh-single-course {
        padding: 20px 15px;
    }
    
    .course-title {
        font-size: 28px;
    }
    
    .course-details-bar {
        flex-direction: column;
        gap: 16px;
    }
    
    .course-navigation .nav-links {
        flex-direction: column;
    }
    
    .course-navigation .nav-previous,
    .course-navigation .nav-next {
        max-width: 100%;
    }
    
    .course-archive-header .page-title {
        font-size: 28px;
    }
    
    .course-archive-grid {
        grid-template-columns: 1fr;
    }
    
    .category-links {
        justify-content: flex-start;
    }
}
