.tarek-toc{
background:#fff;
padding:20px;
border-radius:15px;
box-shadow:0 10px 30px rgba(0,0,0,.1);
margin:20px 0;
}

.toc-header{
cursor:pointer;
font-weight:bold;
display:flex;
justify-content:space-between;
}

.tarek-toc ul{
display:none;
}

.tarek-toc.active ul{
display:block;
}

.tarek-heading{
padding:12px;
border-radius:12px;
margin:20px 0;
}

.tarek-cta{
background:linear-gradient(45deg,#0072ff,#00c6ff);
color:#fff;
padding:25px;
border-radius:15px;
margin-top:40px;
text-align:center;
}

.tarek-scroll{
position:fixed;
bottom:20px;
left:50%;
transform:translateX(-50%);
background:#000;
color:#fff;
padding:12px;
border-radius:50%;
cursor:pointer;
}
/* ===== Heading Styles ===== */

.s1{background:linear-gradient(45deg,#00c6ff,#0072ff);color:#fff;}
.s2{border-right:5px solid #0072ff;background:#f9f9f9;}
.s3{box-shadow:0 5px 15px rgba(0,0,0,.1);}
.s4{border-bottom:3px solid #0072ff;}
.s5{background:#222;color:#fff;}
.s6{box-shadow:0 0 10px #00c6ff;}

.tarek-heading{
padding:12px;
border-radius:12px;
margin:20px 0;
transition:.3s;
}

.tarek-heading:hover{
transform:translateY(-2px);
}

/* CTA تحسين */
.tarek-cta h3{
margin-bottom:10px;
font-size:22px;
}
/* ===== TOC CONTAINER ===== */
.tarek-toc{
background:#ffffff;
padding:20px;
border-radius:15px;
box-shadow:0 10px 30px rgba(0,0,0,.08);
margin:25px 0;
border:1px solid #eee;
transition:.3s;
}

/* HEADER */
.toc-header{
display:flex;
justify-content:space-between;
align-items:center;
cursor:pointer;
font-weight:bold;
font-size:18px;
}

.toc-header .toggle{
color:#0072ff;
font-size:14px;
}

/* LIST */
.tarek-toc ul{
display:none;
margin-top:15px;
padding:0;
}

/* عند الفتح */
.tarek-toc.active ul{
display:block;
}

/* العناصر */
.tarek-toc li{
list-style:none;
margin-bottom:8px;
}

/* الروابط */
.tarek-toc a{
display:block;
padding:10px;
border-radius:8px;
background:#f7f9fc;
text-decoration:none;
transition:.3s;
font-size:15px;
}

/* hover */
.tarek-toc a:hover{
background:#0072ff;
color:#fff;
transform:translateX(-5px);
}

/* ACTIVE SECTION 🔥 */
.tarek-toc a.active{
background:#00c6ff;
color:#fff;
font-weight:bold;
}

/* LEVEL COLORS (اختياري جميل) */
.tarek-toc li:nth-child(odd) a{
border-right:4px solid #0072ff;
}

.tarek-toc li:nth-child(even) a{
border-right:4px solid #00c6ff;
}

/* ===== Sticky TOC ===== */
.tarek-toc{
position:relative;
}

@media(min-width:992px){
.tarek-toc.sticky{
position:sticky;
top:100px;
}
}

/* ===== Active Link ===== */
.tarek-toc a.active{
background:#0072ff;
color:#fff;
font-weight:bold;
}

/* ===== Progress Bar ===== */
.tarek-progress{
position:fixed;
top:0;
left:0;
height:4px;
background:linear-gradient(90deg,#00c6ff,#0072ff);
width:0%;
z-index:9999;
transition:width .2s;
}

/* إجبار الروابط داخل العناوين على أخذ لون العنوان */
.entry-content h2.tarek-heading a,
.entry-content h3.tarek-heading a,
.entry-content h4.tarek-heading a,
.entry-content h5.tarek-heading a,
.entry-content h6.tarek-heading a{
color:inherit !important;
text-decoration:none !important;
}

/* جميع الحالات */
.entry-content h2.tarek-heading a:visited,
.entry-content h3.tarek-heading a:visited,
.entry-content h4.tarek-heading a:visited,
.entry-content h5.tarek-heading a:visited,
.entry-content h6.tarek-heading a:visited,

.entry-content h2.tarek-heading a:hover,
.entry-content h3.tarek-heading a:hover,
.entry-content h4.tarek-heading a:hover,
.entry-content h5.tarek-heading a:hover,
.entry-content h6.tarek-heading a:hover{
color:inherit !important;
}