/* تصميم مجلد نموذج تمكين المدرسة – ألوان الجدول الذكي TimetableNow™ */
body.tk{font-family:'Tajawal',sans-serif;background:#f2f5f9;color:#2b2f36;line-height:1.9}
body.tk *{box-sizing:border-box}
body.tk header{padding:10px 24px;box-shadow:0 2px 12px rgba(0,0,0,.18)}
body.tk header .logo{display:flex;align-items:center;gap:6px}
body.tk header .logo img{border-radius:8px;background:#fff}
body.tk header nav{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
body.tk header nav a{margin:0}

/* ===== المقال ===== */
body.tk main{width:100%;max-width:880px;margin:28px auto 44px;padding:30px 40px;background:#fff;border-radius:18px;box-shadow:0 6px 24px rgba(0,51,102,.08)}
body.tk main > div:first-child{margin:0 0 6px!important}
body.tk main > div:first-child img{max-width:130px!important}
body.tk main > p[style*="0.9rem"]{color:#6b7380;font-size:.9rem!important;margin:6px 0}
body.tk main > p[style*="0.9rem"] a{color:#003366}
body.tk main h1{font-size:1.9rem;color:#003366;line-height:1.5;margin:14px 0 6px;font-weight:800}
body.tk main h2{font-size:1.4rem;color:#003366;line-height:1.55;margin:34px 0 12px;padding-right:12px;border-right:5px solid #FFC107;font-weight:700}
body.tk main > h2:first-of-type{font-size:1.25rem;color:#3a4a5c;border-right:0;padding:0;margin-top:4px;font-weight:500}
body.tk main h3{font-size:1.15rem;color:#003366;margin:20px 0 8px}
body.tk main p,body.tk main li{font-size:1.06rem}
body.tk main a{color:#0b5cad;text-underline-offset:3px}
body.tk main ul,body.tk main ol{padding-right:22px}
body.tk main li{margin-bottom:6px}
body.tk main b{color:#003366}
body.tk main div[style*="overflow-x"]{border:1px solid #e3e8ef;border-radius:12px;margin:16px 0;overflow-x:auto}
body.tk main table{width:100%;border-collapse:collapse;border:0;margin:0;font-size:.98rem;line-height:1.7}
body.tk main th{background:#003366;color:#fff;padding:11px 14px;text-align:right;border:0;font-weight:700}
body.tk main td{padding:10px 14px;border:0;border-bottom:1px solid #e9edf3;vertical-align:top}
body.tk main tr:nth-child(odd) td{background:#f7f9fc}
body.tk main tr:last-child td{border-bottom:0}

/* صندوق الجدول الذكي الفوري */
body.tk .tk-box{background:#fff8e1;border:1px solid #FFC107;border-radius:16px;padding:6px 24px 18px;margin:36px 0}
body.tk .tk-box h2{border-right-color:#003366}
body.tk .tk-box div[style*="overflow-x"]{background:#fff}
body.tk .tk-box a{font-weight:700}

/* الأسئلة الشائعة */
body.tk .tk-faq h3{background:#f2f5f9;border-right:4px solid #003366;border-radius:10px 10px 0 0;padding:12px 16px 4px;margin:14px 0 0;font-size:1.08rem}
body.tk .tk-faq p{background:#f2f5f9;border-right:4px solid #003366;border-radius:0 0 10px 10px;padding:0 16px 12px;margin:0}

/* ===== الفهرس ===== */
body.tk section#hero{min-height:auto;padding:46px 20px 34px;background:linear-gradient(135deg,#003366 0%,#0b4f8f 100%);border:0}
body.tk section#hero::before{display:none}
body.tk section#hero > div{gap:24px;flex-wrap:wrap;max-width:1100px;margin:0 auto}
body.tk section#hero h1{color:#fff;font-size:2rem;line-height:1.5;margin:0;max-width:820px;font-weight:800}
body.tk section#hero img{max-width:110px!important;background:#fff;border-radius:16px;padding:6px}
body.tk section#hero p{color:#dbe6f3;font-size:1.08rem;max-width:860px;margin:14px auto 0}
body.tk section#hero a{color:#FFC107}
body.tk section.tk-group{width:100%;max-width:1200px;margin:0 auto;padding:34px 20px 8px;background:transparent;border:0;text-align:right}
body.tk .tk-gtitle{font-size:1.5rem;color:#003366;margin:0 0 4px;padding-right:12px;border-right:5px solid #FFC107}
body.tk .tk-gsub{color:#6b7380;margin:0 0 16px;padding-right:17px}
body.tk .tk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}
body.tk .tk-card{background:#fff;border-radius:16px;border-top:4px solid #FFC107;box-shadow:0 4px 16px rgba(0,51,102,.08);padding:18px 20px;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
body.tk .tk-card:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(0,51,102,.14)}
body.tk .tk-ic{width:46px;height:46px;border-radius:12px;background:#eaf1f9;display:flex;align-items:center;justify-content:center;font-size:1.5rem}
body.tk .tk-card h3{font-size:1.12rem;line-height:1.6;margin:12px 0 6px}
body.tk .tk-card h3 a{color:#003366;text-decoration:none}
body.tk .tk-card h3 a:hover{color:#0b5cad}
body.tk .tk-card p{color:#4b5563;font-size:.97rem;margin:0 0 14px;flex:1}
body.tk .tk-more{align-self:flex-start;background:#003366;color:#fff;text-decoration:none;padding:7px 16px;border-radius:9px;font-size:.92rem;font-weight:700}
body.tk .tk-more:hover{background:#FFC107;color:#003366}
body.tk section.tk-cta{max-width:1160px;margin:34px auto 44px;width:calc(100% - 40px);border-radius:18px;border:0;padding:34px 24px;background:linear-gradient(135deg,#003366,#0b4f8f);color:#fff}
body.tk section.tk-cta h2{color:#FFC107;font-size:1.6rem;margin:0 0 10px}
body.tk section.tk-cta p{color:#e6eef7;font-size:1.08rem;max-width:760px;margin:0 auto 18px}
body.tk .tk-btn{display:inline-block;background:#FFC107;color:#003366;font-weight:800;text-decoration:none;padding:12px 26px;border-radius:12px}
body.tk .tk-btn:hover{background:#fff}

@media (max-width:768px){
  body.tk header{flex-direction:column;align-items:flex-start;gap:8px;padding:10px 14px}
  body.tk header nav a{padding:6px 10px!important;font-size:.85rem}
  body.tk main{margin:0;border-radius:0;padding:20px 16px;box-shadow:none}
  body.tk main h1{font-size:1.45rem}
  body.tk main h2{font-size:1.2rem}
  body.tk section#hero h1{font-size:1.45rem}
  body.tk .tk-box{padding:4px 14px 14px}
  body.tk .tk-grid{grid-template-columns:1fr}
}

/* الفهرس: بلا صندوق المقال */
body.tk.tk-index main{max-width:none;margin:0;padding:0;background:transparent;border-radius:0;box-shadow:none}
