/*

Theme Name: Educate (index)

*/


/************default CSS start**************/





/* =========================
RESET
========================= */
.code-block {
    min-height: 200px;
    max-height: 300px;
    margin-top: 10px;
    overflow-x: auto;
    overflow-y: auto;
}
img[src*="mqdefault.jpg"] {
   width: 100%;
    height: auto;
    object-fit: cover;
}

#right-panel h2 {font-size:18px;}
.card:hover {
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.videos-grid.card-view{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:20px;
}
@media (max-width: 600px) {
	.card1 h4 {font-size: 20px;}
    .videos-grid.card-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.content-grid.card-view{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:20px;
}
.card {
    background: #f9fbfd; /* 🔥 light background */
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e6ecf1;
    transition: all 0.3s ease;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f5f7fb;
	font-family: "Nunito", sans-serif;
    
}
.section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 30px 0 15px;
  padding: 10px 8px;
  background: #f5f7fa;
  border-radius: 6px;
  border-left: 5px solid #0073aa;
  color: #1d2327;
}

/* =========================
LAYOUT
========================= */

.python-wrapper{
  
    display:flex;
    
    

}

/* =========================
SIDEBAR
========================= */

.python-sidebar{
    width:320px;
    background:#fff;
    border-right:1px solid #ddd;
    padding:10px;
	    margin-top: 10px;
    height: calc(100vh - 203px);
    overflow-y:auto;
    overflow-x:hidden;
    position:fixed;
   
    left:0;
    z-index:100;
}
.python-sidebar ul {
	
	 list-style: none;
	
}
.python-sidebar ul li {
	
	 list-style: none;
}
.parent-item{
   
}
.direct-topic {font-weight:bold;}
.parent-link{
    display:block;
    background:#eef2ff;
    color:#222;
    padding:10px;
    
    text-decoration:none;
    font-weight:600;
}

.child-list,
.subchild-list{
    display:none;
    overflow:hidden;
    padding-left:2px;
    margin-top:8px;
}
.right-panel img{
    display:block;
    margin:0 auto 10px;
}
.child-link{
    display:block;
    padding:8px;
    background:#f4f4f4;
    
    margin-bottom:5px;
    text-decoration:none;
    color:#222;
}
.single-post-code ul li a {background-color: #f2efef;
    padding: 3px 5px;
    border-radius: 5px;}
.python-link{
    display:block;
    padding:8px;
    margin-bottom:5px;
    
    text-decoration:none;
    color:#333;
    transition:0.2s;
}

.python-link:hover{
    background:#eef2ff;
}

.python-link.active-topic{
    background:#2563eb;
    color:#fff;
}

/* =========================
CONTENT
========================= */

.python-content{
    flex:1;
    background:#fff;
    padding:20px;
    min-height: 100vh;
    margin-left:320px;
}

/* =========================
TOP ACTIONS
========================= */

.top-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:10px;
   
}

.view-toggle-btn{
    border:none;
    background:#2563eb;
    color:#fff;
    font-size: 14px;
    padding: 5px;
    border-radius:8px;
    cursor:pointer;
}



/* =========================
BREADCRUMB
========================= */

.python-breadcrumb{
    
    
    background:#f4f7fb;
    border-radius:10px;
    font-size:18px;
    font-weight:600;
    color:#000;
    border:0px solid #e4e7ec;
}

/* =========================
CARD
========================= */

.content-card{
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

/* =========================
MOBILE
========================= */

.mobile-menu-btn{
    display:none;
}

.sidebar-overlay{
    display:none;
}

.sidebar-header{
    display:none;
}

@media(max-width:768px){

    .mobile-menu-btn{
        display:block;
       
        
        left:15px;
        z-index:1001;
        border:none;
        background:#2563eb;
        color:#fff;
        padding:5px 5px;
        border-radius:8px;
    }

    .python-sidebar{
        position:fixed;
        top:76px;
        left:-320px;
        width:300px;
        height:100%;
        z-index:10000;
        transition:0.3s;
    }

    .python-sidebar.active{
        left:0;
    }

    .sidebar-overlay{
        display:block;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,0.5);
        opacity:0;
        visibility:hidden;
        transition:0.3s;
        z-index:1000;
    }

    .sidebar-overlay.active{
        opacity:1;
        visibility:visible;
    }

    .sidebar-header{
        display:flex;
        justify-content:space-between;
        margin-bottom:1px;
    }

    .close-sidebar{
        border:none;
        background:none;
        font-size:22px;
    }

    .python-wrapper{
        display:block;
    }

    .python-content{
    width:100%;
    padding:15px;
    margin-left:0;
}

}
/*color theme css*/
/* =========================
DARK MODE
========================= */



.theme-switch{
    font-size:14px;
}

.theme-switch label{
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
}

.child-list,
.subchild-list{
    display:none;
    overflow:hidden;
}


.table-wrapper{
    position: sticky;
    /*top: 111px;*/
    z-index: 999;
    background: #f4f7fb;
    padding: 5px;
    width: 100%;
}

/* admin bar 
.logged-in .table-wrapper{
    top: 140px;
}*/

/* table */
.table-wrapper table{
    width: 100%;
    border-collapse: collapse;
    background:#f4f7fb;
}

/* cells */
.table-wrapper th,
.table-wrapper td{
    border: 0;
    text-align: left;
    font-size: 18px;
    padding: 2px;
    vertical-align: middle;
}

/* empty th */
th:empty{
    width: 0;
    padding: 0;
    border: none;
}

/* mobile */

.footer-bg{z-index:1001;}

.parent-link,
.child-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.menu-arrow{
    transition:0.3s;
    font-size:14px;
}

.parent-item.open > .parent-link .menu-arrow,
.child-item.open > .child-link .menu-arrow{
    transform:rotate(0deg);
}


.board-settings{
    position:relative;
	    float: right;
}

.board-settings-btn{
    display:flex;
    align-items:center;
    gap:5px;
    border:none;
    background:#2563eb;
    color:#fff;
    padding:8px 14px;
    border-radius:10px;
    cursor:pointer;
    font-size:12px;
    font-weight:600;
}

.board-icon{
    font-size:12px;
    transition:0.3s;
}

.board-settings.active .board-icon{
    transform:rotate(180deg);
}

.board-dropdown{
    display:none;
    position:absolute;
    top:45px;
    right:0;
    min-width:220px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 4px 20px rgba(0,0,0,0.1);
    overflow:hidden;
    z-index:9999;
}

.board-option{
    padding:12px 15px;
    cursor:pointer;
    transition:0.2s;
    font-size:14px;
}

.board-option:hover{
    background:#f3f4f6;
}

.board-option.active-board{
    background:#2563eb;
    color:#fff;
}
@media (min-width: 1441px) {
    .container:not(header .container) {
         margin-top: 85px; 
    }
}
.index-title{
	font-weight: bold;
    font-size: 20px;
}


/* =========================
DESKTOP
========================= */

.top-header-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.left-header{
    display:flex;
    align-items:center;
    gap:10px;
}

.right-header{
    display:flex;
    align-items:center;
    gap:10px;
}

.index-title{
    font-size:20px;
    font-weight:600;
}

/* =========================
MOBILE VIEW
========================= */

@media(max-width:768px){

    .table-wrapper table,
    .table-wrapper tbody,
    .table-wrapper tr,
    .table-wrapper th{
        display:block;
        width:100%;
    }

    .table-wrapper tr{
        padding:5px 0;
    }

    /* TITLE TOP */
    .table-wrapper th:nth-child(2){

        order:1;
        text-align:left;
        width:100%;
        margin-bottom:10px;

    }

    /* ICON ROW BOTTOM */
    .table-wrapper th:nth-child(1),
    .table-wrapper th:nth-child(3){

        display:inline-block;
        width:auto;
        vertical-align:middle;

    }

    .table-wrapper th:nth-child(1){
        order:2;
    }

    .table-wrapper th:nth-child(3){
        order:3;
    }

    /* title */
    .index-title{
        display:block;
        font-size:18px;
        margin-bottom:10px;
    }

    /* board button */
    .board-settings{
        display:inline-block;
        margin-right:10px;
    }

    /* action row */
    .mobile-action-row{
        display:flex;
        align-items:center;
        gap:10px;
        margin-top:5px;
    }

}

/* =========================
STICKY WRAPPER
========================= */

.table-wrapper{

    position:sticky;
    /*top:140px;*/
    z-index:999;
    background:#f4f7fb;

    padding:5px 15px 0px 0px;

    border-radius:12px;

    box-shadow:0 2px 10px rgba(0,0,0,0.05);

}

/* admin bar */
.logged-in .table-wrapper {
    top: <?php echo current_user_can('manage_options') ? '130px' : '0px'; ?>;
}

@media screen and (max-width: 782px) {

    .logged-in .table-wrapper {
        top: <?php echo current_user_can('manage_options') ? '80px' : '0px'; ?>;
    }

}
/*.logged-in .table-wrapper{

    top:130px;

}*/

/* =========================
TITLE
========================= */

.header-top{

    

}

.index-title{

    font-size:24px;
    font-weight:700;
    height:55px;
    color:#111827;

}

/* =========================
BOTTOM ACTIONS
========================= */

.header-bottom{

    display:flex;
    align-items:center;
    gap:10px;

}

/* =========================
MENU BUTTON
========================= */

.mobile-menu-btn{

    border:none;
    background:#f4f7fb;
    color:#fff;

    width:30px;
    height:30px;

    border-radius:10px;

    font-size:16px;
    cursor:pointer;

    flex-shrink:0;

}

/* =========================
BOARD
========================= */

.board-settings{

    position:relative;

    flex:1;

}

.board-settings-btn{

    width:100%;

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

    border:none;

    background:#2563eb;
    color:#fff;

    padding:5px 8px;

    border-radius:10px;

    font-size:14px;
    font-weight:600;

    cursor:pointer;

}

.board-icon{

    font-size:12px;

    transition:0.3s;

}

.board-settings.active .board-icon{

    transform:rotate(180deg);

}

/* =========================
DROPDOWN
========================= */

.board-dropdown{

    display:none;

    position:absolute;

    top:52px;
    left:0;

    width:100%;

    background:#fff;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 4px 20px rgba(0,0,0,0.1);

    z-index:9999;

}

.board-option{

    padding:12px 15px;

    cursor:pointer;

    transition:0.2s;

    font-size:14px;

}

.board-option:hover{

    background:#f3f4f6;

}

.board-option.active-board{

    background:#2563eb;
    color:#fff;

}

/* =========================
VIEW BUTTON
========================= */

.view-toggle-btn{

    border:none;

    background:#111827;
    color:#fff;

    padding:5px 8px;

    border-radius:10px;

    cursor:pointer;

    font-size:14px;
    font-weight:600;

    flex-shrink:0;

}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

    .table-wrapper{

        top:75px;

        padding: 10px 15px 0px 9px;

        border-radius:0;

    }
.card1 h4 {font-size: 20px;}

    .logged-in .table-wrapper{

        top:0px;

    }

    .index-title{

        font-size:18px;

    }

    .header-bottom{

        gap:8px;

    }

    .mobile-menu-btn{

        width:30px;
        height:30px;
 display: inline-block;

    }

    .board-settings-btn{

        padding:5px 8px;

        font-size:13px;

    }

    .view-toggle-btn{

        padding:5px 8px;

        font-size:13px;

        white-space:nowrap;

    }

}
.card1 ul{
	    padding-inline-start: 20px;
}
.index-title{
    display:flex;
    align-items:center;
    gap:10px;
}

.taxonomy-buttons {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.tax-btn{
    padding:8px 16px;
    background:#0073aa;
    color:#fff;
    text-decoration:none;
    border-radius:5px;
    display:inline-block;
}

.tax-btn:hover{
    background:#005177;
}

.card1 h4 {font-size: 24px;

font-weight:bold; padding-left: 8px;
    border-radius: 25px;
    font-weight: bold;
    border-left: 2px solid #0073aa;
    border-bottom: 2px solid #0073aa;

}

.parent-link,
.child-link{
    display:flex ;
    align-items:center !important; 
}

.menu-text{
    flex:1 !important;
}

.menu-arrow{
    margin-left:auto !important;
    flex-shrink:0 !important;
}
#right-panel li {font-size:20px !important;}
#right-panel ol {padding-inline-start: 20px;}

#right-panel h2 {font-size:22px !important;}
#right-panel p {font-size:20px !important; margin-bottom: 14px;}
.fvb button {
    display: inline-block;
    padding: 3px 7px;
    margin: 4px;
    border: 1px solid;
    border-radius: 3px;
    /*background: #0073aa;*/
    color: #000;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fvb button:hover {
    background: #005177;
    transform: translateY(-2px);
}

.fvb button:active {
    transform: translateY(0);
}

.fvb button:focus {
    outline: none;
}
.topic-card-link{
    text-decoration:none;
    display:block;
    color:inherit;
}

.topic-card{

    background:#ffffff;
    border:1px solid #dbe3ea;
    
    border-radius:10px;
    word-break: break-word;
    padding:10px;
    margin-bottom:15px;
	height:100%;
    transition:all .3s ease;
    cursor:pointer;

    box-shadow:0 2px 6px rgba(0,0,0,.08);

}

.topic-card:hover{

    transform:translateY(-3px);

    box-shadow:0 8px 20px rgba(0,0,0,.15);

    

}

.topic-card h4{

    margin:0 0 8px;
    font-size:20px;
    font-weight:600;
    color:#0073aa;
    line-height:1.4;

}

.topic-card p{

    margin:0;
    font-size:16px;
    line-height:1.7;
    color:#555;

}
.topic-btn{
    display:inline-block;
    padding:3px 8px;
    margin:2px;
    background:#f3f4f6;
    color:#111827;
    text-decoration:none;
    border-radius:8px;
	font-size: 18px;
    border:2px solid #ddd;
}

.topic-btn:hover{
    background:#e5e7eb;
}

.topic-btn.active-btn{
    background:#111827;
    color:#fff;
}
.video-layout{

    width:100%;

}

.top-header{

    background:#fff;
    padding:15px;
    border-bottom:1px solid #ddd;
    position:sticky;
    top:0;
    z-index:999;

}
.parent-link,
.child-link,
.topic-link{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:10px;

    background:#fff;

    border:1px solid #ddd;

    margin-bottom:5px;

    text-decoration:none;

}

.menu-arrow{

    font-size:16px;
    float:right;
    transition:0.3s;

}

.menu-arrow{
    display:inline-block;
    transition:transform 0.3s ease;
}

.parent-item.active > .parent-link .menu-arrow,
.child-item.active > .child-link .menu-arrow{
    transform:rotate(180deg);
}
.subject-dropdown-wrap{

    position:relative;
    width:300px;

}

.subject-btn{

    width:100%;
    padding:12px;
    border:none;
    background:#0073aa;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;

}

.subject-dropdown{

    display:none;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    border:1px solid #ddd;
    z-index:9999;

}

.subject-item{

    padding:12px;
    cursor:pointer;
    border-bottom:1px solid #eee;

}

.subject-item:hover{

    background:#f5f5f5;

}

.main-wrapper{

    display:flex;
    min-height:100vh;

}

.sidebar{
 position: relative;
    overflow-y: auto;
    width:285px;
    background:#fff;
    border-right:1px solid #ddd;
    
    padding:1px;
	word-break: break-word;

}
span {
word-break: break-word;}

.content-area{
    flex:1;
    padding:20px;
}

.sidebar-menu{
    list-style:none;
    padding-left:0;
}
.active-topic{
    background: #c8ccce !important;
    color: #000000 !important;
}
.child-list li {background:#ffffff !important;
}
.open .parent-link {background:#c8ccce;}
.parent-link,
.child-link,
.topic-link{

    display:block;
    padding:5px;
    background:#b5898900;
   
	border: 0px;
    border-bottom: 2px solid #fffbfb;
    margin-bottom:5px;
    text-decoration:none;

}

.child-list,
.subchild-list{

    display:none;
    

}
.subchild-list{

    display:none;
    padding-left:10px;

}
.content-card{

    background:#fff;
    border:1px solid #ddd;
    padding:20px;
    margin-bottom:20px;

}
.break-url a {    word-break: break-all;}
.view-toggle-btn11{

    position:fixed;

    right:0;

    top:30%;

    transform:translateY(-50%);

    writing-mode:vertical-rl;

    rotate:180deg;

    background:#0073aa;

    color:#fff;

    border:none;

    padding:12px 6px;

    border-radius: 0 10px 10px 0;

    font-weight:bold;

    z-index:9999;

}
.mobile-menu-btn{

    

    

    
   
    z-index: 9999;

    

    color: #000;

    border: none;
	height:35px;
    padding: 5px;

    border-radius: 0 10px 10px 0;

    cursor: pointer;

    font-size: 20px;

    line-height: 1;
}

.subsubchild-list{
    display:none;
	padding-left:15px;
}

.subchild-item{
	padding-left:15px;
}

/*.menu-arrow.rotate{
    transform:rotate(180deg);
}*/



