/*

Theme Name: Educate (tutorials)

*/


/************default cskc-css start**************/


/* LEVEL 1 */
.sidebar .parent-item > a,
.sidebar .parent-item > .menu-text {
    color: #000 !important;
}

/* LEVEL 2 */
.sidebar .parent-item > .child-list > .child-item > a,
.sidebar .parent-item > .child-list > .direct-topic > a {
    color: #000 !important;
	font-weight: 700;
    font-size: 17px;
}

/* LEVEL 3 */
.sidebar .subchild-list > .subchild-item > a,
.sidebar .subchild-list > li > a {
    color: blue !important;
	font-weight: 700;
    font-size: 17px;
}

/* LEVEL 4 */
.sidebar .subsubchild-list > li > a {
    color: black !important;
	font-weight: 500;
    font-size: 17px;
}




.index-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#expand-all-index {
    border: 1px solid #ddd;
    background: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

#expand-all-index:hover {
    background: #f5f5f5;
}

/*next/privous */
.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 35px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.tutorial-nav-button {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 48%;
    box-sizing: border-box;

    padding: 14px 18px;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;

    text-decoration: none;
    color: #222;

    cursor: pointer;
    transition: .2s;
}

.tutorial-nav-button:hover {
    border-color: #0073aa;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.previous-button {
    justify-content: flex-start;
}

.next-button {
    justify-content: flex-end;
    text-align: right;
}

.nav-arrow {
    font-size: 25px;
    font-weight: bold;
}

.nav-content {
    display: flex;
    flex-direction: column;
}

.nav-content small {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.nav-content strong {
    font-size: 14px;
    line-height: 1.4;
}

.tutorial-nav-button.disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 600px) {

    .tutorial-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .tutorial-nav-button {
        width: 100%;
    }
	.index-expand-control {
        width: 242px;
    position: fixed;
    /* text-align: right; */
    margin-top: 1px;
    Z-INDEX: 99999;
    Z-INDEX: 99999;
}

}



.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.subchild-link{
    display: grid;
    grid-template-columns: 1fr 20px;
    align-items: start;
    column-gap: 8px;
}

.menu-text{
    overflow-wrap: anywhere;
}

.menu-arrow{
    justify-self: end;
}
.parent-item > .parent-link,
.child-item > .child-link,
.subchild-item > .subchild-link{
    font-weight:700;
}

.child-item.open{
    background-color: #f5f9ff;
}

.header-top {height:50px;}
.view-toggle-btn{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 18px;
    background:#fff;
    border:1px solid #ccc;
    border-radius:6px;
    cursor:pointer;
    color:#333;
    font-weight:600;
}



/* Active */
.view-toggle-btn.active{
    background:#fff;
    color:#000;
}


@media(max-width:768px){

.view-toggle-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
}

.view-toggle-btn::before{
    width:12px;
    height:12px;
}
.index-expand-control {
        width: 242px;
    position: fixed;
    /* text-align: right; */
    margin-top: 1px;
    Z-INDEX: 99999;
    Z-INDEX: 99999;
}

}



.view-toggle-btn.active {
    background: #0073aa;
    color: #fff;
}



/*-------*/
.python-sidebar{
    display: flex;
    flex-direction: column;
    
}

.sidebar-header{
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    flex-shrink: 0;
    border-bottom: 2px solid #ddd;
}

#python-index-results_postload{
    flex: 1;
    overflow-y: auto;
}
#parent-title-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    width:100%;
    font-size:22px;
    font-weight:700;
}

.mobile-menu-btn-index{
    flex-shrink:0;
    width:35px;
    height:35px;
	margin-right: -16px;
    border:none;
    background:none;
    color:#000;
    font-size:20px;
    cursor:pointer;
    border-radius:6px;
}
.mobile-menu-btn{
    flex-shrink:0;
    width:35px;
    height:35px;
	margin-right: -16px;
    border:none;
    background:none;
    color:#000;
    font-size:20px;
    cursor:pointer;
    border-radius:6px;
}
.table-wrapper{
   
}

.header-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    /*gap:15px;*/
    
    width:100%;
}

#parent-title-bar{
    flex:1;
    font-size:24px;
    font-weight:700;
    line-height:1.3;
    word-break:break-word;
}

.topic-btn{
    flex-shrink:0;
    white-space:nowrap;
   
}

/* Mobile */
@media (max-width:768px){

    .header-top{
        /*gap:10px;*/
        padding:3px;
    }

    #parent-title-bar{
        font-size:18px;
    }

    .topic-btn{
        font-size:14px;
        padding:7px 12px;
    }
	.index-expand-control {
        width: 242px;
    position: fixed;
    /* text-align: right; */
    margin-top: 1px;
    Z-INDEX: 99999;
    Z-INDEX: 99999;
}

}


/*----------*/

.topic-btn{float:right;}
/* =========================
Desktop
========================= */

.view-toggle-wrap{
    display:flex;
    gap:10px;
    justify-content:flex-end;
    margin:15px 0;
}

.view-toggle-btn{
    writing-mode:horizontal-tb;
    rotate:0deg;
    position:static;
    width:auto;
    padding:10px 18px;
    background:#9da2a4;
    color:#fff;
    border:none;
    border-radius:6px;
    font-weight:bold;
    cursor:pointer;
}

.view-toggle-btn.active{
    background:#003f5c;
}
/* =========================
Mobile
========================= */

/*@media (max-width:768px){

.view-toggle-wrap{
    position:fixed;
    right:0;
    top:220px;
    transform:translateY(-50%);
    z-index:9999;
    display:flex;
    flex-direction:column;
}

.view-toggle-btn{
    writing-mode:vertical-rl;
    rotate:180deg;
    width:30px;
    padding:12px 6px;
    border-radius:0 10px 10px 0;
}

.view-toggle-btn:first-child{
    border-radius:0 10px 10px 0;
}

.view-toggle-btn:last-child{
    border-radius:0 10px 10px 0;
}

}*/

.setting-btn{
    width:30px;
    height:30px;
    border:0px solid #ddd;
    border-radius:50%;
    
    cursor:pointer;
    font-size:18px;
}

.setting-btn img {
    display: inline-block;
    transition: transform .35s ease;
    width: 30px;
    
}

.setting-btn.active img{
    transform:rotate(180deg);
	display: inline-block;
    transition: transform .35s ease;
    width: 30px;
   
}
.setting-btn {    border: none;
    background: #fff;}

.setting-btn:hover{
    background:#f5f5f5;
}

.setting-popup{
    position:absolute;
    
    right:0;
    background:#fff;
    border:1px solid #ddd;
    border-radius:10px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
    padding:12px;
    display:none;
    z-index:9999;
    min-width:180px;
}
.setting-icon {float:right; width:40px;    margin-left: -16px;
    margin-right: -20px;
    transform: translateY(50px);}
.setting-popup.show{
    display:block;
}
.card-view iframe{max-width: 100%;
    width: 100%;
    height: 230px;
	    border-radius: 15px;
    border: 1px solid;
	
	
	}
.view-toggle-wrap{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.view-toggle-btn{
    padding:10px;
    border:1px solid #ddd;
    border-radius:6px;
    background:#fff;
	color: #000;
    cursor:pointer;
}

.view-toggle-btn.active{
    background:#fff;
    color:#e53935;
    border-color:#e53935;
}


.filter-popup{
    display:none;
    position:fixed;
    inset:0;
	margin-top: 100px;
    background:rgba(0,0,0,.6);
    z-index:99999;
}

.filter-popup-content{
    background: #fff;
    top: 80px;
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 50px;
    border-radius: 0px;
}

.close-popup{
    float:right;
    cursor:pointer;
    font-size:28px;
}

.popup-list{
    list-style:none;
	text-align:center;
    margin:20px 0 0;
    padding:0;
}

.popup-list li{
    margin-bottom:10px;
	font-size:20px;
}

.popup-list li a{
    display:block;
    padding:12px 15px;
    background:#f5f5f5;
    border-radius:6px;
    text-decoration:none;
    color:#222;
    transition:.2s;
}

.popup-list li a:hover{
    background:#0073aa;
    color:#fff;
}

#modal-ready iframe {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 9;
    height: auto;
}

.youtube-thumb-wrap {
    position: relative;
    width: 100%;
}

.youtube-thumbnail {
    width: 100%;
    display: block;
}
.videos-grid img[src*="mqdefault.jpg"] {
    width: 100%;
    height: auto;
    border-radius: 10px;
object-fit: cover;}
.youtube-play {
   position: absolute;
    top: 87%;
    left: 86%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9);
    color: #fff;
    width: 32px;
    height: 21px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.video-hidden {
    display: none;
}

/* =========================================
   CODE WRAPPER
========================================= */

.code-wrapper {
    position: relative;
    width: 100%;
}


/* =========================================
   CODE BLOCK
========================================= */

.code-wrapper .code-block {
    height: auto;
    margin-top: 10px;

    overflow-x: auto;

    padding: 18px 45px 18px 18px;

    box-sizing: border-box;

    border-radius: 10px;
}


/* =========================================
   COPY BUTTON
========================================= */

.copy-code-btn {
    position: absolute;

    top: 9px;
    right: 9px;

    width: 30px;
    height: 30px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0px solid #d5dbe3;
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.90);

    color: #555;

    cursor: pointer;

    z-index: 10;

    transition: all 0.2s ease;
}


/* Hover */

.copy-code-btn:hover {
    background: #ffffff;

    color: #1677e8;

    border-color: #1677e8;

    transform: translateY(-1px);
}


/* Icon */

.copy-icon {
    font-size: 18px;

    line-height: 1;
}


/* Copied state */

.copy-code-btn.copied {
    color: #168a45;

    border-color: #168a45;

    background: #effaf3;
}


/* =========================================
   EXPAND / COLLAPSE BUTTON
   SIDEBAR TOP - FIXED
========================================= */

.index-expand-control {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
}

/* Button */
.index-expand-btn {
    width: 40px;
    height: 30px;
	float:right;
	    margin-top: -39px;
		    margin-right: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 0 10px;

    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;

    color: #000;
    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
    white-space: nowrap;

    transition: all 0.2s ease;
}

.index-expand-btn:hover {
    background: #075bd8;
    color: #ffffff;
    border-color: #075bd8;
}

.index-expand-btn .expand-icon {
    font-size: 15px;
    line-height: 1;
}

.index-expand-btn .expand-text {
    line-height: 1;
}


.index-expand-btn {
    background: #ffffff;
    border: none;
    padding: 5px;
    border-radius: 5px;
	border: 1px solid;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-icon-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.index-expand-btn:hover {
    background: #ffffff;
}