/* Banner styles */
.mb-banner-img{
    display: none;
}
.rt-reading-time{
    display: none !important;
}
.header-wrapper{
    border-bottom: 0px !important;
}
.video-wistia div{
    border-radius: 8px;
}
.video-wistia {
    margin-bottom: 40px;
}
.mobile-lesson-nav {
    display: none;
}
.ai-courses-banner {
    background-color: #F4F9E7;
    padding: 40px 0 0px;
    margin-top: 72px;
    text-align: center;
}
.ai-banner-right{
    width: 448px;
    max-width: 100%;
}
.ai-courses-banner-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    gap: 128px;
}
 .ai-course-content, .ai-course-sidebar {
    display: block;
    visibility: visible;
    opacity: 1;
}

.ai-courses-banner h1 {
    font-size: 56px;
    line-height: 64px;
    font-weight: normal;
    font-family: 'SourceSerifPro-Bold';
    color: #333;
    margin-bottom: 20px;
    text-align: left;
    margin: 0 0 16px 0;
    width: 448px;
    max-width: 100%;
}

.ai-courses-banner p {
    font-size: 20px;
    line-height: 28px;
    font-weight: normal;
    font-family: 'SourceSerifPro-Regular';
    color: #333;
    max-width: 100%;
    margin: 0 0 40px;
    width: 544px;
    text-align: left;
}
.ai-courses-banner .time-info {
    color: #3E6100;
    font-family: 'SourceSerifPro-Regular';
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    line-height: 24px;
    width: 544px;
    max-width: 100%;
    text-align: left;
}
.ai-courses-banner .banner-cta {
    display: inline-block;
    padding: 12px 24px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'avenir_next_worlddemi', 'Verdana';
    font-size: 16px;
    transition: background-color 0.3s;
}

.ai-courses-banner .banner-cta:hover {
    background-color: #000;
}

/* Container styles */
.ai-course-container {
    display: flex;
    max-width: 1120px;
    gap: 120px;
    margin: 0 auto;
    padding: 80px 0 60px;
    position: relative;
}

.ai-course-sidebar {
    /* width: 256px; */
    width: 275px;
    position: sticky;
    top: 120px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd #fff;
    padding-bottom: 30px;
}

.ai-course-sidebar::-webkit-scrollbar {
    width: 6px;
}

.ai-course-sidebar::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.ai-course-sidebar::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 6px;
}
.course-description {
    display: block;
    font-size: 12px;
    line-height: 18px;
    color: #333;
    margin-top: 4px;
    font-family: 'SourceSerifPro-Regular';
}
.ai-course-content {
    flex: 1;
    /* padding-left: 60px; */
    max-width: 640px;
}

.ai-course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ai-course-content p{
    color: #333;
    font-family: 'SourceSerifPro-Regular';
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    line-height: 28px;
    margin-bottom: 16px;
}
p.no-margin {
    margin-bottom: 0px !important;
}
.ai-course-content strong{
    color: #333;
    font-family: 'SourceSerifPro-SemiBold';
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    line-height: 28px;
}
.ai-course-content a{
    color: #008392;
    font-family: 'SourceSerifPro-Regular';
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    line-height: 28px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}
.ai-course-content ol, .ai-course-content ul{
    margin: 0 auto 24px;
}
.ai-course-content li{
    font-family: 'SourceSerifPro-Regular';
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    line-height: 28px;
    margin: 4px 0 4px 16px;
    color: #333;
}
.ai-course-content h2, .ai-course-content h3{
    color: #333;
    font-family: 'SourceSerifPro-SemiBold';
    font-weight: normal;
    font-style: normal;
}
.ai-course-content h2{
    font-size: 32px;
    line-height: 40px;
    margin: 0 auto 40px;
}
.ai-course-content h3{
    font-size: 18px;
    line-height: 28px; 
    margin: 0 auto 12px;
}

.course-item a {
    display: flex;
    text-decoration: none;
    color: #8F8F8F;
    align-items: flex-start;
    flex-direction: column;
}

.course-item.active > a {
    color: #333;
}
.course-item:hover > a, .course-item:hover .course-title {
    color: #333;
}
.course-item.locked:hover .course-title{
    color: #8F8F8F;
}

.course-number {
    min-width: fit-content;
    font-family: 'SourceSerifPro-SemiBold';
    font-size: 12px;
    font-style: normal;
    font-weight: normal;
    line-height: 18px;
}

.course-sections {
    list-style: none;
    padding-left: 28px;
    margin: 0.5rem 0;
}

.course-sections li {
    margin: 0.5rem 0;
}

.section-link {
    text-decoration: none;
    color: #707070;
    font-size: 14px;
    /* line-height: 28px; */
}

.section-link:hover {
    color: #000;
}

.section-link.active {
    color: #333;
    font-weight: bold;
}

.course-header {
    text-align: center;
    margin-bottom: 3rem;
}
.active .course-title {
    color: #333;
    font-family: 'SourceSerifPro-Bold';
}
.course-title {
    font-size: 18px;
    color: #8F8F8F;
    font-family: 'SourceSerifPro-SemiBold';
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    line-height: 24px;
}

.course-meta {
    opacity: 0.7;
}

.course-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px; /* Adjust based on your header height */
}
table {
    font-family: 'SourceSerifPro-SemiBold';
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
}

td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
    padding: 20px 40px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 28px;
    font-family: 'SourceSerifPro-SemiBold';
    font-weight: normal;
}
/* Course Navigation */
/* Responsive navigation styles */
.ai-course-dropdown {
    display: none;
    width: 100%;
    margin-bottom: 20px;
}

.ai-course-dropdown select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'SourceSerifPro-Regular';
    font-size: 16px;
    background-color: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.ai-course-dropdown select:focus {
    outline: none;
    border-color: #008392;
}

.ai-course-dropdown select option {
    padding: 10px;
}

.ai-course-dropdown select option[disabled] {
    color: #999;
}
.course-pagination {
    padding-top: 48px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

/* When there's only one navigation item, position it at the end */
.nav-links:has(.nav-next:only-child) {
    justify-content: flex-end;
}

.nav-links div a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    /* padding: 10px 0; */
}

/* .nav-previous .meta-nav:before {
    content: "←";
}

.nav-next .meta-nav:after {
    content: "→";
} */

.nav-links .post-title, .nav-links div a {
    color: #008392;
    font-family: 'SourceSerifPro-SemiBold';
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    line-height: 28px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.nav-links div a:hover .post-title {
    text-decoration: underline;
}
.nav-previous, .nav-next{
    margin: 0px;
    display: flex;
    flex-direction: row;
    gap: 4px;
    color: #008392;
    font-family: 'SourceSerifPro-SemiBold';
}
.nav-links .nav-next a{
    text-align: end;
}
/* Form Popup Styles */
.form-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.form-popup {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 98vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    font-size: 24px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #000;
}

.form-popup h3 {
    font-family: 'avenir_next_worldbold', 'Verdana';
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
    text-align: center;
}

.form-popup p {
    font-family: 'avenir_next_worldmedium', 'Verdana';
    font-size: 16px;
    color: #333;
    /* margin-bottom: 30px; */
}

/* HubSpot Form Styling */
.form-popup .hs-form {
    font-family: 'avenir_next_worldmedium', 'Verdana';
}

.form-popup .hs-form-field {
    margin-bottom: 20px;
}

.form-popup .hs-form-field label {
    font-family: 'avenir_next_worldmedium', 'Verdana';
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url(/learn/wp-content/themes/toddle_learn/images/down.png);
    background-repeat: no-repeat;
    /* background-position: 95%; */
    background-size: 25px;
    background-position: right 10px center;
}
.form-popup .hs-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s;
}

.form-popup .hs-input:focus {
    /* border-color: #007bff; */
    outline: none;
    /* box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); */
}

.form-popup .hs-input::placeholder {
    color: #aaa;
}

.form-popup .hs-error-msgs, .form-popup .hs-form-field label.hs-error-msg {
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
    color: #e74c3c;
    font-size: 14px;
}
.hs-error-msgs li{
    margin: 0px;
}
.form-popup .legal-consent-container {
    font-size: 14px;
    color: #777;
    margin: 15px 0;
}

.form-popup .legal-consent-container a {
    color: #008392;
    text-decoration: none;
}

.form-popup .legal-consent-container a:hover {
    text-decoration: underline;
    color: #00616E;
}

.form-popup .hs-button{
    padding: 12px 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: normal;
    font-family: "avenir_next_worldmedium", "Verdana";
    cursor: pointer;
    width: 100%;
    text-transform: none;
}
input[type=submit]:hover, input[type=submit]:focus,.form-popup .hs-button:hover{
    text-decoration: none;
    background-color: #000;
}
.hs-error-msgs, .quiz-form-popup .hs-form-field label.hs-error-msg{
    list-style: none;
    padding: 0;
    margin: 0px auto 20px;
    color: #D63A3F;
    font-size: 14px;
    font-family: "avenir_next_worldmedium", "Verdana";
    /* position: relative; */
    /* top: -10px; */
}
.hs_error_rollup ul li label{
    color: #D63A3F;
    font-family: "avenir_next_worldmedium", "Verdana";
    font-size: 14px;
}
.form-popup .hs-button:active {
    transform: translateY(0);
}
/*******************************************************************/
#lockedCourseModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#hubspot-userinit-form-container {
    background: #fff;
    /* border-radius: 8px; */
    max-width: 600px;
    /* min-height: 433px; */
    /* width: 90%; */
}
#hubspot-userinit-form-container h2{
    margin: 0px auto 20px;
    font-family: 'SourceSerifPro-Medium';
}
.course-item {
    padding: 16px 10px 16px 0px;
    border-bottom: 1px solid #CCC;
    margin: 0px;
}
.course-item:last-child {
    border-bottom: none;
}
.course-item.locked {
    opacity: 0.5;
}

.course-item.locked a {
    color: #999;
}

.course-item.unlocked a {
    color: #333;
}
#hubspot-userinit-form-container-wrapper {
    background: #fff;
    padding: 60px 76px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    position: relative;
}
@media (max-width: 1439px) {
    .ai-courses-banner h1 {
        font-size: 48px;
        line-height: 56px;
    }
}
@media (max-width: 1024px) {
    .ai-courses-banner {
        padding: 60px 40px 0px;
    }
    .ai-courses-banner-inner{
        gap: 28px;
    }
    .ai-course-container{
        padding: 80px 40px 60px;
    }
}
@media (max-width: 991px) {
    .ai-courses-banner-inner{
        flex-direction: column;
        gap: 40px;
    }
    .ai-banner-left{
        max-width: 100%;
    }
    .ai-courses-banner {
        padding: 56px 40px 0px;
    }
    .ai-courses-banner .time-info, .ai-courses-banner p, .ai-courses-banner h1{
        text-align: center;
    }
    .ai-courses-banner h1{
        margin: 0 auto 16px;
    }
    .ai-banner-right {
        width: 348px;
    }
    .ai-course-container{
        gap: 40px;
    }
    .desktop-nav {
        display: none;
    }
    
    .mobile-lesson-nav {
        display: block;
        position: sticky;
        top: 72px;
        z-index: 10;
        width: 100%;
        background: white;
        padding: 16px 40px;
    }
    .mobile-lesson-nav.sticky{
        box-shadow: -1px 4px 8px 0 rgba(0, 0, 0, 0.10);
    }
    .lesson-dropdown-container {
        position: relative;
        width: 100%;
    }
    
    /* Selectize custom styling to match design */
    .selectize-control.single {
        width: 100%;
    }
    
    /* Main input field */
    .selectize-input {
        padding: 16px 20px;
        height: auto;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-family: 'SourceSerifPro-Regular', serif;
        font-size: 16px;
        color: #333;
        background-color: #fff;
        box-shadow: none;
        line-height: 24px;
        cursor: pointer;
    }
    
    .selectize-input.input-active {
        border-color: #ccc;
    }
    
    .selectize-input.dropdown-active {
        border-radius: 8px 8px 0 0;
    }
    
    /* Dropdown arrow */
    .selectize-control.single .selectize-input:after {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        margin-top: -3px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 6px 6px 0 6px;
        border-color: #999 transparent transparent transparent;
    }
    
    .selectize-control.single .selectize-input.dropdown-active:after {
        border-width: 0 6px 6px 6px;
        border-color: transparent transparent #999 transparent;
    }
    
    /* Dropdown menu */
    .selectize-dropdown {
        position: absolute;
        z-index: 10;
        border: 1px solid #e0e0e0;
        border-top: 0;
        background: #fff;
        margin: -1px 0 0 0;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        width: 100% !important;
        left: 0 !important;
    }
    
    .selectize-dropdown-content {
        max-height: 300px;
        overflow-y: auto;
        padding: 0;
    }
    
    /* Dropdown options */
    .selectize-dropdown .option {
        padding: 16px 20px;
        font-family: 'SourceSerifPro-Regular', serif;
        font-size: 16px;
        color: #333;
        line-height: 24px;
        cursor: pointer;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .selectize-dropdown .option:last-child {
        border-bottom: none;
        border-radius: 0 0 8px 8px;
    }
    
    /* Highlighted option */
    .selectize-dropdown .option.active {
        background-color: #f0f7fa;
        color: #333;
    }
    
    /* Option with lock icon */
    .option-item {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 15px 13px;
        font-family: 'SourceSerifPro-SemiBold';
        font-size: 14px;
        line-height: 20px;
        min-height: 24px;
        font-weight: normal;
        word-break: break-all;
        margin-top: 0px;
        color: black !important;
    }
    
    .lock-icon {
        margin-right: 8px;
        font-size: 14px;
    }
    
    /* Hide the original sidebar on mobile */
    .ai-course-sidebar {
        display: none;
    }
    
    /* Adjust content spacing */
    .ai-course-container {
        padding-top: 0;
    }
    
    /* Custom placeholder styling */
    .selectize-input > input::placeholder {
        color: #333;
        opacity: 1;
    }
    .lesson-dropdown-container .selectize-input > * {
        font-family: 'SourceSerifPro-SemiBold' !important;
        font-size: 14px;
        font-weight: normal;
        line-height: 20px;
    }
    /* Fix for placeholder text */
    .selectize-input.has-items > input {
        position: absolute !important;
        left: 0 !important;
        opacity: 0 !important;
    }
    
    /* Make the dropdown look like the design when showing placeholder */
    .selectize-input.not-full {
        color: #333;
    }
    
    /* Make sure the content starts right after the dropdown */
    .ai-course-content {
        padding: 0px 40px 20px;
        margin: 0 auto;
        max-width: 100%;
    }
    .ai-courses-banner h1 {
        font-size: 40px;
        line-height: 48px;
    }
    
    .ai-courses-banner p {
        font-size: 16px;
        line-height: 24px;
    }
    
    .ai-course-container {
        flex-direction: column;
        padding: 48px 0px 40px;
    }
    
    .ai-course-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        max-height: 300px;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .course-navigation {
        margin-top: 40px;
    }
    
    .nav-title {
        font-size: 14px;
    }
    /* popup Form style*/
    .form-popup {
        padding: 30px 20px;
        width: 95%;
    }
    
    .form-popup h3 {
        font-size: 20px;
    }
    
    .form-popup p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .form-popup .hs-input {
        padding: 10px 12px;
    }
    
    .form-popup .hs-button {
        padding: 12px 16px;
    }
    .course-pagination {
        padding-top: 40px;
    }
   
}

@media (min-width: 769px) {
    .desktop-nav {
        display: block;
    }
    .mobile-nav {
        display: none;
    }
   
}
@media (max-width: 767px) {
    .desk-banner-img{
        display: none;
    }
    .mb-banner-img{
        display: block;
    }
    .mobile-lesson-nav {
        padding: 16px;
    }
    .ai-course-content {
        padding: 0px 16px 20px;
    }
    .ai-courses-banner {
        padding: 56px 16px 0px;
    }
    #hubspot-userinit-form-container-wrapper{
        padding: 48px 28px;
    }
    .course-pagination {
        padding-top: 24px;
    }
}