.edu-course-form-container {
background: var(--pure-white);
padding: 1rem;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
max-width: 1000px;
width: 80%;
font-family: Arial, sans-serif;
margin: 0 auto;
}

.edu-course-row {
display:flex;
align-items: start; /* Vertically centers content within each section */
justify-content: flex-start;
gap:8px;
width: 100%;
}

.edu-course-row .chapter-head {
width: 80%;
}

.edu-course-row .topic-head {
width: 80%;
}

.edu-course-row .checkfill {
width: 5%;
}

.edu-course-row .exp-colap-image {
width: 15%;
}

.edu-course-row .exp-topic-colap-image {
width: 15%;
}


.edu-course-row .topic-video {
width: 80%;
}

.edu-course-row .topic-mins {
padding-top: 4px;
width: 10%
}

.edu-course-row .topic-sec {
padding-top: 4px;
width: 10%
}

.edu-course-row.align-right {
justify-content: flex-end;
gap:16px;
}

.edu-course-row.opp-sides {
justify-content: space-between;
margin-left:6px;
margin-right:6px;
}

.edu-course-form-container h1 {
text-align: center;
color: var(--strong-blue); 
font-size: var(--font-size-h2); 
font-weight:var(--font-weight-semibold); 
font-family: Arial, sans-serif;
margin-bottom:16px;
}


.edu-course-form-container h2 {
color: var(--strong-blue); 
font-family: Arial, sans-serif;
font-size: var(--font-size-h4); 
font-weight:var(--font-weight-semibold);
margin-bottom:8px;
}

.edu-course-form-container h3 {
color: var(--strong-blue); 
font-family: Arial, sans-serif;
font-size: var(--font-size-h5); 
font-weight:var(--font-weight-semibold);
margin-bottom:8px;
}

.edu-course-form-container h4 {
display: block;
margin-bottom: 5px;
color: var(--dark-gray);
font-weight: bold;
}

.exp-colap-image h4 img {
    position: relative;
    top: 5px; /* try 2px–5px as needed */
  }

  .exp-topic-colap-image h4 img {
    position: relative;
    top: 5px; /* try 2px–5px as needed */
  }

.edu-course-form-container .chapter {
border: 1px solid #ddd;
padding: 5px;
margin-bottom: 5px;
border-radius: 4px;
background: #f4f4f4;
cursor: move;
}

.edu-course-form-container .topic {
border: 2px solid #ddd;
padding: 5px;
margin-left: 10px;
margin-right: 10px;
margin-bottom: 10px;
border-radius: 4px;
cursor: move;
background: var(--gmail-light-blue);
}

.edu-course-form-container label {
font-size: 16px;
display: block;
margin-bottom: 5px;
color: var(--dark-gray);
font-weight: 600;
}

.edu-course-form-container input[type="text"],
.edu-course-form-container input[type="number"],
.edu-course-form-container input[type="file"],
.edu-course-form-container input[type="url"],
.edu-course-form-container input[type="tel"],
.edu-course-form-container input[type="email"],
.edu-course-form-container select,
.edu-course-form-container textarea {
	width: 100%;
	padding: 5px;
    font-size: 16px;
    line-height: 1.6; 
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
    background-color: #fff;
	color: #333;
    font-family: Arial, sans-serif;
}

.edu-course-form-container input[type="text"]:focus,
.edu-course-form-container input[type="number"]:focus,
.edu-course-form-container input[type="email"]:focus,
.edu-course-form-container input[type="file"]:focus,
.edu-course-form-container input[type="url"]:focus,
.edu-course-form-container input[type="tel"]:focus,
.edu-course-form-container input[type="password"]:focus,
.edu-course-form-container select:focus,
.edu-course-form-container textarea:focus {
	border-color: #1e6cae;
	outline: none;
	box-shadow: 0 0 4px rgba(30, 108, 174, 0.3);
}


.edu-course-form-container input[type="date"] {
	width: 23%;
	padding: 7px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
    font-size: 16px;
}

.edu-course-form-container .large-textarea {
height: 150px; /* Adjust the height as needed */
font-size: 16px;
padding: 10px;
box-sizing: border-box;
}


.edu-course-form-container .char-count-container {
font-size: 12px;
color: #666;
margin-top: 5px;
}
.edu-course-form-container .min-char-count {
color: #888;
font-size: 12px;
}

.edu-course-form-container button {
background-color: var(--butn-strong-blue);
color: white;
padding: 8px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
max-width: 450px; /* Set a maximum width for the button */
margin-top: 6px;
margin-right: 6px;
}

.edu-course-form-container button:hover {
background-color: var(--hover-butn-for-strong-blue);
}

.edu-course-form-container .chapter-title, .topic-title {
font-weight: bold;
margin-bottom: 10px;
}

.edu-course-form-container .form-group {
margin-bottom: 2px;
}

.edu-course-form-container .checkbox {
margin-bottom: 4px;
}

.edu-course-form-container .form-actions {
text-align: center;
}
	
	
.edu-course-form-container .required::after {
content: " *";
color: red;
}

.edu-course-form-container .chap-custom-checkbox input[type="checkbox"] {
transform: scale(1.8);
vertical-align: bottom;
}

.edu-course-form-container .topic-custom-checkbox input[type="checkbox"] {
transform: scale(1.5);
}

.hidden {
display: none;
}

.progress-bar {
width: 0%;
height: 7px;
background-color: var(--strong-blue);
margin-top: 5px;
margin-bottom: 20px;
color: black; /* Color for visibility */
text-align: center; /* Center-align text */
line-height: 20px; /* Adjusts vertical space for text */
padding-top: 10px; /* Adds extra space above the text */
font-weight: bold; /* Bold text for emphasis */
font-size: 16px; /* Adjust as needed */
box-sizing: border-box; /* Ensures padding doesn’t affect total width */
}


/* adding the topics expand and collapse css */

.topic-details {
    display: none; /* Initially hidden */
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.topic {
    margin-bottom: 1rem;
}

.topic h4 {
    margin-bottom: 5px;
}

.chapter-details {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.edu-course-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edu-course-right {
    display: flex;
    align-items: center;
}

.chapter-title-left {
    flex: 1; /* Let this container take up the available space */
}

/* When a chapter or topic is being dragged */
.dragging {
    opacity: 0.5; /* Make the dragged element semi-transparent */
    background-color: #e0e0e0; /* Optional: Different background during drag */
}


.dropzone {
    border: 2px dashed #4CAF50;
    background-color: #f1f1f1;
    min-height: 40px;
    padding: 10px;
    margin-bottom: 10px;
}

/* Optional: A more subtle visual change when dragging is occurring */
.chapter.dragging, .topic.dragging {
    border-color: #4CAF50;
}


/* Container for the progress circle */
.progress-container {
    position: relative;
    width: 30px;
    height: 30px;
}

/* Progress circle */
.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 8px solid lightgray;
    border-top-color: green; /* Color of the progress */
    animation: rotate 2s linear infinite;
    transition: stroke-dasharray 0.5s ease;
    transform-origin: center;
    clip-path: circle(50%);
	display: none; /* Hide initially */
}

/* Apply this class dynamically to animate the progress circle */
.animate-progress {
    display: block;
    animation: rotate 2s linear infinite;
}

.progress-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.tick-mark {
    display: none;
    font-size: 15px;
    color: green;
}

/* Animation for rotating the progress circle */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ✅ Large Desktops (min-width: 1920px) */
@media (min-width: 1920px) {

    .edu-course-form-container h1 {
        font-size: 24px;
    }

    .edu-course-form-container h2 {
        font-size: 20px;
    }

    .edu-course-form-container h3 {
        font-size: 20px;
    }


    .edu-course-form-container input[type="text"],
    .edu-course-form-container input[type="number"],
    .edu-course-form-container input[type="file"],
    .edu-course-form-container input[type="url"],
    .edu-course-form-container input[type="tel"],
    .edu-course-form-container input[type="email"],
    .edu-course-form-container select,
    .edu-course-form-container textarea {
        font-size: 18px;
        padding: 10px;
        line-height: 1.7;
    }

    .edu-course-form-container input[type="date"] {
        padding: 10px;
        font-size: 20px;
    }

    .edu-course-form-container label {
        font-size: 20px;
        }

    .edu-course-form-container button {
        font-size: 1.1rem; /* Bigger buttons */
        padding: 10px;
    }

    .edu-course-form-container .chap-custom-checkbox input[type="checkbox"] {
        transform: scale(2.0);
        vertical-align: middle;
    }

    .edu-course-form-container .topic-custom-checkbox input[type="checkbox"] {
            transform: scale(1.5);
    }

    .progress-bar {
        height: 8px;             /* thinner bar */
        font-size: 18px;         /* smaller font inside (if any text shown) */
        line-height: 22px;       /* adjust vertical alignment */
        margin-bottom: 22px;     /* reduce spacing */
    } 

}

/* ✅ Standard Laptops (max-width: 1280px) */
@media (max-width: 1280px) {

    .edu-course-form-container h1 {
        font-size: 20px;
    }

    .edu-course-form-container h2 {
        font-size: 16px;
    }

    .edu-course-form-container h3 {
        font-size: 16px;
    }

    .edu-course-form-container input[type="text"],
    .edu-course-form-container input[type="number"],
    .edu-course-form-container input[type="file"],
    .edu-course-form-container input[type="url"],
    .edu-course-form-container input[type="tel"],
    .edu-course-form-container input[type="email"],
    .edu-course-form-container select,
    .edu-course-form-container textarea {
        font-size: 16px;
        padding: 8px;
    }

    .edu-course-form-container input[type="date"] {
        width: 30%;
        padding: 6px;
        font-size: 16px;
    }

    .edu-course-form-container label {
        font-size: 16px;
    }

    .edu-course-form-container button {
        font-size: 1rem;
        padding: 9px;
    }

    .edu-course-form-container .chap-custom-checkbox input[type="checkbox"] {
        transform: scale(1.3);
        vertical-align: middle;
    }

    .edu-course-form-container .topic-custom-checkbox input[type="checkbox"] {
            transform: scale(1.2);
    }

    .progress-bar {
        height: 6px;             /* thinner bar */
        font-size: 15px;         /* smaller font inside (if any text shown) */
        line-height: 16px;       /* adjust vertical alignment */
        margin-bottom: 12px;     /* reduce spacing */
    } 
}

/* ✅ Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {

    .edu-course-form-container h1 {
        font-size: 18px;
    }

    .edu-course-form-container h2 {
        font-size: 15px;
    }

    .edu-course-form-container h3 {
        font-size: 15px;
     }

    .edu-course-form-container input[type="text"],
    .edu-course-form-container input[type="number"],
    .edu-course-form-container input[type="file"],
    .edu-course-form-container input[type="url"],
    .edu-course-form-container input[type="tel"],
    .edu-course-form-container input[type="email"],
    .edu-course-form-container select,
    .edu-course-form-container textarea {
        font-size: 15px;
        padding: 4px;
        line-height: 1.5;
    }

    .edu-course-form-container input[type="date"] {
        width: 30%;
        padding: 4px;
        font-size: 15px;
    }

    .edu-course-form-container label {
        font-size: 15px;
        }

    .edu-course-form-container button {
        font-size: 0.95rem;    
    }

    .edu-course-row .chapter-head {
        width: 75%;
        }
        
        .edu-course-row .topic-head {
        width: 75%;
        }
        
        .edu-course-row .exp-colap-image {
            width: 20%;
        }

        .edu-course-row .exp-topic-colap-image {
            width: 20%;
        }

    .edu-course-form-container .chap-custom-checkbox input[type="checkbox"] {
        transform: scale(1.2);
        vertical-align: middle;
     }

     .edu-course-form-container .topic-custom-checkbox input[type="checkbox"] {
            transform: scale(1.1);
     }

     .progress-bar {
        height: 5px;             /* thinner bar */
        font-size: 14px;         /* smaller font inside (if any text shown) */
        line-height: 16px;       /* adjust vertical alignment */
        margin-bottom: 12px;     /* reduce spacing */
      }                
}
