/* ========================= */
/* 🔥 BASE FIX */
/* ========================= */

html, body{
max-width:100% !important;
overflow-x:clip !important;
}

/* ========================= */
/* 🔥 TOC (FINAL CLEAN) */
/* ========================= */

.tarek-toc{
width:100%;
max-width:100%;
background:#fff;
border:1px solid #eee;
border-radius:12px;
box-shadow:0 5px 20px rgba(0,0,0,.08);
margin:25px 0;
overflow:hidden;
position:relative;
}

/* HEADER */
.toc-header{
display:flex;
justify-content:space-between;
align-items:center;
cursor:pointer;
font-weight:bold;
font-size:16px;
padding:12px;
background:#f7f9fc;
user-select:none;
touch-action:manipulation;
}

.toc-header .toggle{
color:#0072ff;
font-size:14px;
}

/* LIST */
.tarek-toc ul{
display:none;
padding:10px;
margin:0;
}

/* ACTIVE */
.tarek-toc.active ul{
display:block;
}

/* ITEMS */
.tarek-toc li{
list-style:none;
margin-bottom:6px;
}

/* LINKS */
.tarek-toc a{
display:block;
padding:8px;
border-radius:6px;
background:#f7f9fc;
text-decoration:none;
font-size:14px;
transition:.2s;
}

.tarek-toc a:hover{
background:#0072ff;
color:#fff;
}

.tarek-toc a.active{
background:#0072ff;
color:#fff;
font-weight:bold;
}

/* منع أي sticky أو fixed */
.tarek-toc.sticky{
position:relative !important;
top:auto !important;
right:auto !important;
max-height:none !important;
overflow:visible !important;
}

/* ========================= */
/* 🔥 HEADINGS */
/* ========================= */

.tarek-heading{
padding:12px;
border-radius:12px;
margin:20px 0;
transition:.3s;
}

.tarek-heading:hover{
transform:translateY(-2px);
}

/* 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;}

/* ========================= */
/* 🔥 CTA */
/* ========================= */

.tarek-cta{
background:linear-gradient(45deg,#0072ff,#00c6ff);
color:#fff;
padding:25px;
border-radius:15px;
margin-top:40px;
text-align:center;
}

.tarek-cta h3{
margin-bottom:10px;
font-size:22px;
}

/* ========================= */
/* 🔥 SCROLL BUTTON */
/* ========================= */

.tarek-scroll{
position:fixed;
bottom:20px;
left:50%;
transform:translateX(-50%);
background:#000;
color:#fff;
padding:12px;
border-radius:50%;
cursor:pointer;
z-index:999;
}

/* ========================= */
/* 🔥 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;
}

/* ========================= */
/* 🔥 HEADINGS LINKS FIX */
/* ========================= */

.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;
}

/* ========================= */
/* 🔥 TABLE (FINAL FIX) */
/* ========================= */

.tarek-main-box{
width:100%;
max-width:100%;
margin:20px 0;
border:1px solid #ff9800;
border-radius:10px;
overflow:hidden;
background:#fff;
display:block;
}

.tarek-scroll-area{
width:100%;
overflow-x:auto;
display:block;
-webkit-overflow-scrolling:touch;
}

.tarek-pro-table{
width:100%;
min-width:600px;
border-collapse:collapse;
table-layout:auto;
}

.tarek-pro-table th,
.tarek-pro-table td{
padding:12px 10px;
text-align:center;
border:1px solid #eee;
white-space:nowrap;
}

.tarek-pro-table th{
background:#ff9800;
color:#fff;
}

.tarek-main-box::after{
content:"⬅ اسحب الجدول لليمين أو اليسار لمشاهدة التفاصيل ➡";
display:block;
padding:8px;
background:#fff8f0;
color:#ff9800;
font-size:12px;
text-align:center;
border-top:1px solid #eee;
}