*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --plyr-color-main: #2A7F78;
}

.nav-tabs .nav-link.active {
    background-color: #fff !important;
    border-color: #dee2e6 #dee2e6 #fff !important;
    color: #2A7F78 !important;
    font-weight: 600 !important;
}

.course-section-title {
    letter-spacing: normal;
    text-transform: none;
}

.accordion-ch {
    border-radius: 5px;
    background-color: #f8f9fa;
}

/* Style for the custom accordion icon */
.accordion-icon {
    position: relative;
    width: 1rem;
    /* Adjust size as needed */
    height: 1rem;
    margin-top: auto;
    margin-bottom: auto;
    transition: transform 0.2s ease-in-out;
}

.accordion-icon::before,
.accordion-icon::after {
    content: "";
    position: absolute;
    background-color: #000;
    /* Adjust color */
}

/* Vertical bar of the plus icon */
.accordion-icon::before {
    height: 1rem;
    width: 2px;
    left: 50%;
    transform: translateX(-50%);
}

/* Horizontal bar of the plus icon */
.accordion-icon::after {
    height: 2px;
    width: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Rotate the icon when the accordion is open */
.accordion-head:not(.collapsed) .accordion-icon::before {
    transform: translateX(-50%) rotate(90deg);
    /* Rotate the vertical bar */
}

/* Keep the horizontal bar */
.accordion-head:not(.collapsed) .accordion-icon::after {
    transform: translateY(-50%) rotate(0deg);
    /* No rotation needed */
}

/* larger-icon*/
.icon-lg {
    transform: scale(1.25);
}

.icon-lg {
    transform: scale(1.25);
    margin-right: 0.1em;
}

.custom-link {
    color: inherit;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.custom-link:hover {
    background-color: #fff;
    /* Changes the background to white on hover */
}




.btn-danger {
    color: #fff;
    /* background-color: #ff3e1d; */
    /* border-color: #ff3e1d; */
    background-color: #24A1DE;
    border-color: #24A1DE;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(36, 161, 222, 0.4);
}

.btn-danger:hover {
    background-color: #2585b4;
    border-color: #2585b4;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(37, 133, 180, 0.4) !important;
}



.telegram-chat .btn-telegram-chat {
    position: fixed;
    bottom: 3rem;
    right: 1.625rem;
    z-index: 1080;
    box-shadow: 0 1px 20px 1px #24A1DE;
}

.course-progress-bar {
    position: fixed;
    top: 0; /* Changed from bottom to top */
    left: 0;
    width: 100%;
    background-color: #f1f1f1;
    z-index: 1040; /* Increased z-index */
    padding: 10px 20px; /* Added padding for better design */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Added shadow */
}

.course-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1040; /* Increased z-index */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* Added shadow */
}

body {
    padding-top: 100px; /* Increased padding for top fixed elements */
    padding-bottom: 100px; /* Increased padding for bottom fixed elements */
    min-height: 150vh; /* Added min-height for scrollable content */
}

.course-navigation .btn {
    flex-grow: 1;
    margin: 0 5px;
}

.course-navigation .form-check {
    margin: 0 15px;
}

.course-navigation .form-check-input {
    margin-top: 0.3em;
}

.section {
    position: relative;
    z-index: 1; /* Ensure content passes under fixed elements */
}
