.ml-course-single {
    width: 100%;              /* ✅ Fill full available width */
    max-width: 100%;          /* ✅ Avoid being narrower than parent */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 0 20px;
    box-sizing: border-box;
}

.ml-course-inner {
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;

    /* ✅ Instead: */
    align-items: center; /* center child blocks */

    text-align: left;    /* keep text aligned right if needed */
}
#active-module {

    z-index: 10; /* upewnij się, że jest nad innymi warstwami */
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(160, 32, 240, 0.6);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(160, 32, 240, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(160, 32, 240, 0);
    }
}
.module-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 60px 0 20px;
    width: 100%;
    color: #888;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.module-separator::before,
.module-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px dashed #ccc;
    margin: 0 12px;
}

.module-separator-text {
    white-space: nowrap;
    background: #fff; /* Zakładamy białe tło strony */
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

/* Title */
.course-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    width: 100%;
}
.tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #555;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: max-content;
    max-width: 300px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%; /* Position above the word */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.neuron-wrapper {
    background-image: url('https://mldenizen.com/wp-content/uploads/2025/05/neuron_no_background.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 600px auto;
    position: relative;
    overflow: visible;
    z-index: 0;

    min-height: 630px;         /* adjust if needed */
    padding-bottom: 100px;     /* 👈 ensures space below lesson circles */
    margin: 40px auto;         /* 👈 center horizontally */
    max-width: 600px;         /* 👈 restrict width */
    width: 100%;               /* occupy container width */
    box-sizing: border-box;
}
.ml-module {
    position: relative;
    width: 420px;
    height: 380px;
    margin: 60px auto;
    overflow: visible; /* allow background to overflow */
}

.module-node-wrapper {
    position: absolute;
    top: 345px;
    left: 49%;
    transform: translateX(-50%);
    z-index: 2;
}

.lesson-circle {
    position: absolute;
    top: 400px;
    left: 0;
    width: 100%;
    height: 220px;
}

.lesson-positioned {
    position: absolute;
    transform: translate(-50%, -50%);
}

.ml-module .lesson-cluster:not(:first-child) {
    margin-top: 20px;           /* reduce spacing between lessons */
}
.lesson-cluster {
    position: relative;
    width: 100px;       /* optional: slightly tighter width */
    height: 100px;      /* reduced height */
    margin: 30px auto;  /* reduced top/bottom margin */
}

.lesson-image-link {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.lesson-image-link:hover {
    transform: scale(1.05);
}

.lesson-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lesson-image-link.completed {
    box-shadow: 0 0 8px #4CAF50;
}

.lesson-image-link.enabled {
    box-shadow: 0 0 6px #87CEEB;
}

.lesson-image-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}


.module-node {
    width: 80px;
    height: 80px;
    background: #6a1b9a;
    color: white;
    font-size: 14px;
    line-height: 80px;
}

.exercise-group {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.exercise-circle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #aaa;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.exercise-circle.completed {
    background: #4CAF50; /* Green for completed lessons */
}
.module-icon-link {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    
    border-radius: 50%; /* make it round */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.module-icon-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.module-icon {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ensures image fills the circular container */
    border-radius: 50%;
    display: block;
    background: transparent !important;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.module-icon-link:hover .module-icon {
    transform: scale(1.05);
}

/* ✅ Purple glow when completed */
.module-icon-link.completed .module-icon {
    box-shadow: 0 0 10px 3px #a020f0;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: rgba(160, 160, 255, 0.5); /* soft blue line */
    transform-origin: left center;
    z-index: 1;
}
.ml-course-visual,
.ml-learning-path-content,
.ml-course-inner,
.ml-course-single {
    display: block;
    padding: 40px 20px;
    min-height: 100vh;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(160, 32, 240, 0.6);
    }
    50% {
        box-shadow: 0 0 16px 8px rgba(160, 32, 240, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(160, 32, 240, 0);
    }
}

.glowing-icon {
    animation: glow-pulse 1.5s infinite;
    z-index: 5;
    position: relative;
}

.ml-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.ml-course-card {
    position: relative;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: 0.2s;
    text-decoration: none;
    color: inherit;
}
.ml-course-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ml-course-card.selected {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40,167,69,0.2);
}
.ml-course-flag img {
    width: 48px;
    height: auto;
    margin-bottom: 12px;
}
.ml-course-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}
.checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #28a745;
}
