/*
Theme Name: hluli themes
Theme URI: https://wordpress.org/themes/twentytwelve/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device…
Version: 2.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
Text Domain: hluli

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/


/* ========== IMPORTS ========== */
@import url('https://fonts.googleapis.com/css?family=Almarai:400,700&display=fallback&subset=arabic');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700;800&display=swap');

/* ========== 1. GLOBAL RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  font-size: 14px;
  font-family: 'Almarai', Helvetica, serif;
  text-rendering: optimizeLegibility;
  color: #444;
  overflow-x: hidden;
  background-color: #fff;
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color 0.3s ease;
}
body.custom-font-enabled {
  font-family: 'Almarai', "Open Sans", Helvetica, Arial, sans-serif;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0; vertical-align: baseline;
}
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
caption, th, td { font-weight: normal; text-align: left; }
h1, h2, h3, h4, h5, h6 { clear: both; }
html { overflow-y: scroll; }
a:focus { outline: thin dotted; }
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; }
audio:not([controls]) { display: none; }
del { color: #333; }
ins {
  background: #f7fff7; text-decoration: none; border: 1px solid #e0e0e0;
  border-radius: 4px; padding: 5px; margin: 10px 0;
}
hr {
  background-color: #ccc; border: 0; height: 1px; margin: 24px; margin-bottom: 1.714285714rem;
}
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
small { font-size: smaller; }
img { border: 0; -ms-interpolation-mode: bicubic; max-width: 100%; height: auto; }
.clear:after, .wrapper:after, .format-status .entry-header:after { clear: both; }
.clear:before, .clear:after, .wrapper:before, .wrapper:after,
.format-status .entry-header:before, .format-status .entry-header:after { display: table; content: ""; }
.clearfix { clear: both; }

/* ========== 2. TYPOGRAPHY & LINKS ========== */
h1 { font-size: 24px; }
h2 { font-size: 16px; color: #757575; }
.archive-title, .page-title, .widget-title, .entry-content th, .comment-content th {
  font-weight: bold; text-transform: uppercase; color: #636363;
}
a { outline: 0; color: #000000; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #b8860b; } /* ذهبي داكن عند التمرير */
.assistive-text, .site .screen-reader-text {
  position: absolute!important; clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden; height: 1px; width: 1px;
}

/* ========== 3. LAYOUT & SITE STRUCTURE ========== */
#page {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px;
  background: transparent; flex: 1 0 auto; box-sizing: border-box;
}
.site {
  padding: 0 24px; background-color: #fff; margin: 0 auto;
  max-width: 960px; overflow: hidden;
}
.site-content { padding-top: 20px; }
.widget-area { margin: 24px 0 0; }
#main, article, .entry-header {
  background: transparent; width: 100%; max-width: 100%; box-sizing: border-box;
}

/* ========== 4. HEADER ========== */
.site-header { margin: 20px 0; opacity: 1 !important; transform: translateY(0) !important; }
.site-header h1, .site-header h2 { text-align: center; }
.site-header h1 a, .site-header h2 a { color: #515151; display: inline-block; text-decoration: none; }
.site-header h1 a:hover, .site-header h2 a:hover { color: #b8860b; }
.site-header h1 { font-size: 24px; margin-bottom: 14px; }
.site-header h2 { font-weight: normal; font-size: 12px; color: #757575; }
.header-image { width: auto; }
.head-hg { display: block; margin-top: 30px; }
.head-hg img { height: auto; width: 190px; margin-bottom: 5px; }

/* الهيدر الجديد (حاوية) */
.header-container {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 2px 14px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.header-container::before {
  content: ""; position: absolute; top: 0; right: 0; width: 6px; height: 100%;
  background: #f1a417; transition: width 0.3s ease;
}
.site-header.is-hovered .header-container {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 25px -5px rgba(241,164,23,0.2); border-color: #f1a417;
}
.site-header.is-hovered .header-container::before { width: 12px; }
.hululktbi-title {
  font-size: 0.81rem; text-align: right; color: #5d4037; flex: 1; justify-content: flex-start; margin: 0 5px;
}
.hululktbi-title i { width: 14px; height: 14px; background: #f5b700; display: inline-block; margin: 0 0 0 8px; border-radius: 4px; }
.site-header.is-hovered .hululktbi-title { color: #5d4037; transform: scale(1.02); }
.site-header.is-hovered .hululktbi-title i { transform: rotate(180deg); background: #d49f00; }

/* رابط المنصة الرئيسي */
.homepage-link {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: #5d4037; font-size: 20px; font-weight: 800; padding: 5px 10px; border-radius: 12px;
  transition: all 0.3s ease;
}
.homepage-link:hover { background: #fef7e0; transform: translateX(-3px); }
.homepage-link.current-page {
  background: linear-gradient(135deg, #5d4037, #3e2723); color: white;
  box-shadow: 0 3px 10px rgba(93,64,55,0.3);
}
.homepage-link.current-page svg path { stroke: #f5b700; }
.homepage-link.current-page svg circle { fill: white; }

/* القائمة الجانبية للصفوف (زر عائم) */
.grade-float-btn {
  position: fixed; top: 35px; left: 39px; width: 40px; height: 40px;
  background: #5d4037; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 9999; box-shadow: 0 2px 7px rgba(0,0,0,0.2);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.grade-float-btn:hover { transform: scale(1.08); background: #f5b700; box-shadow: 0 6px 16px rgba(245,183,0,0.4); }
.grade-float-btn:hover svg { stroke: #3e2723; }
.grade-float-btn svg { stroke: white; transition: stroke 0.3s ease; }
.grade-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(62,39,35,0.85); z-index: 10000; visibility: hidden; opacity: 0;
  transition: all 0.3s ease;
}
.grade-menu-overlay.active { visibility: visible; opacity: 1; }
.grade-menu-container {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.92);
  width: 88%; max-width: 520px; background: #ffffff; border-radius: 24px; padding: 24px 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3); transition: all 0.3s ease;
  direction: rtl; font-family: 'Almarai', Helvetica, Arial, sans-serif; border-top: 4px solid #f5b700;
}
.grade-menu-overlay.active .grade-menu-container { transform: translate(-50%,-50%) scale(1); }
.grade-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid #e2e8f0; padding-bottom: 14px; margin-bottom: 20px;
}
.grade-menu-header h3 { margin: 0; color: #5d4037; font-size: 20px; font-weight: 800; }
.grade-menu-close {
  background: #f5b700; color: #3e2723; border: none; width: 34px; height: 34px; border-radius: 50%;
  font-size: 18px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.grade-menu-close:hover { background: #3e2723; color: white; transform: rotate(90deg); }
.grade-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; max-height: 490px; overflow-y: auto; padding: 4px; }
.grade-list::-webkit-scrollbar { width: 6px; }
.grade-list::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 10px; }
.grade-list::-webkit-scrollbar-thumb { background: #f5b700; border-radius: 10px; }
.grade-item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #f8fafc; border-radius: 14px; padding: 12px 10px; text-align: center;
  text-decoration: none; color: #334155; font-weight: 700; font-size: 14px; transition: all 0.2s ease;
  border-right: 3px solid transparent;
}
.grade-item:hover { background: #fef7e0; transform: translateX(-3px); border-right-color: #f5b700; }
.grade-item.current-grade {
  background: linear-gradient(135deg, #5d4037, #3e2723); color: white;
  border-right-color: #f5b700; box-shadow: 0 3px 10px rgba(93,64,55,0.3);
}
.grade-item.current-grade svg { stroke: #f5b700; }
.grade-item svg { width: 16px; height: 16px; stroke: #94a3b8; stroke-width: 2; }

/* Breadcrumb - تصميم عصري */
.breadcrumb {
  background: linear-gradient(135deg, #fdf6e3 0%, #fff8e1 100%);
  margin-top: 10px !important;
  font-size: 12px;
  padding: 10px 16px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid #f5b700;
  box-shadow: 0 2px 8px rgba(245,183,0,0.1);
  text-overflow: ellipsis;
  overflow: auto;
  white-space: nowrap;
  display: inherit;
}
.breadcrumb-wrapper { margin: 10px 0 20px 0; padding: 0 5px; direction: rtl; }
.breadcrumb-nav { display: flex; align-items: center; flex-wrap: wrap; }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 4px 0; gap: 4px; }
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #5d4037;
}
.breadcrumb-item a {
  color: #5d4037;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(245,183,0,0.08);
  transition: all 0.2s ease;
}
.breadcrumb-item a:hover {
  color: #3e2723;
  background: #f5b700;
  box-shadow: 0 2px 6px rgba(245,183,0,0.3);
  transform: translateX(-2px);
}
.breadcrumb-item.active {
  color: #3e2723;
  font-weight: 700;
  background: #f5b700;
  padding: 5px 14px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(245,183,0,0.25);
}
.breadcrumb-separator {
  margin: 0 2px;
  color: #d49f00;
  font-size: 14px;
  font-weight: bold;
}
.breadcrumb-home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  vertical-align: middle;
}
.breadcrumb-home-icon svg {
  width: 14px;
  height: 14px;
  stroke: #5d4037;
  stroke-width: 1.8;
  transition: stroke 0.2s ease;
}
.breadcrumb-item a:hover .breadcrumb-home-icon svg {
  stroke: #3e2723;
}


/* ========== 5. MAIN NAVIGATION ========== */
#site-navigation {
  width: 100%; max-width: 100%; display: flex; justify-content: center; box-sizing: border-box;
  background: linear-gradient(135deg, #5d4037 0%, #3e2723 100%) !important;
}
.main-navigation {
  text-align: center; background: transparent; min-height: 1px;
}
.main-navigation .site { background: transparent; border: 0; padding: 0; position: relative; overflow: visible; }
.main-navigation li { font-size: 12px; padding: 2px 10px 10px; position: relative; }
.main-navigation li:last-child:before { display: none; }
.main-navigation li:before {
  content: ''; position: absolute; height: 30%; width: 1px; background: rgba(255,255,255,0.2);
  left: 0; top: 50%; margin-top: -6px;
}
.main-navigation a { color: #ffffff; padding: 0; padding-top: 10px; }
.main-navigation a:hover, .main-navigation a:focus { color: #f5b700; }
.main-navigation ul.nav-menu, .main-navigation div.nav-menu>ul {
  display: none; font-family: 'Almarai', sans-serif; font-size: 16px;
}
.main-navigation ul.nav-menu.toggled-on, .menu-toggle { display: inline-block; margin: 10px; }
.main-navigation li.menu-item-home a { text-indent: 0 !important; width: auto !important; height: auto !important; background: transparent !important; }

/* القائمة العليا (ألوان الهوية) */
#site-navigation ul li a { color: #ffffff !important; font-weight: bold !important; }
#site-navigation ul li a:hover { color: #f5b700 !important; }

#menu-item-39 a { font-size: 0 !important; line-height: 0; display: inline-block; }
#menu-item-39 a:before {
  content: "\f102"; font-family: "Genericons"; font-size: 20px !important; display: inline-block;
  visibility: visible; margin: 0; padding: 5px; color: #fff;
}
#menu-item-39 { min-width: 40px; text-align: center; }

/* زر القائمة (هامبرغر) */
.menu-toggle, input[type="submit"], input[type="button"], input[type="reset"],
article.post-password-required input[type=submit], .bypostauthor cite span {
  background: #5d4037; color: #fff; border: 0; padding: 8px 16px;
}
.menu-toggle, button, input[type="submit"], input[type="button"], input[type="reset"] { cursor: pointer; }
button[disabled], input[disabled] { cursor: default; }
.menu-toggle:hover, .menu-toggle:focus, button:hover,
input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover,
article.post-password-required input[type=submit]:hover { background: #3e2723; color: #f5b700; }
.menu-toggle:active, .menu-toggle.toggled-on, button:active,
input[type="submit"]:active, input[type="button"]:active, input[type="reset"]:active {
  background: #3e2723; color: #f5b700;
}

/* ========== 6. FOOTER ========== */
#colophon {
  background: linear-gradient(135deg, #241612 0%, #3e2b24 100%) !important; 
  color: #fdf6e3 !important; 
  width: 100vw !important;
  position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
  padding: 24px 0 !important; flex-shrink: 0 !important; text-align: center !important;
  border-top: 4px solid #f5b700; 
  box-sizing: border-box; z-index: 9999;
  transition: all 0.4s ease; clear: both;
  font-size: 13px; margin-top: 24px;
}
#colophon a { color: #f5b700 !important; text-decoration: none !important; font-weight: bold; }
#colophon a:hover { color: #ffc933 !important; }
#colophon .site-info { color: #fdf6e3 !important; }
#colophon.is-hovered { background: #5a3e35; box-shadow: 0 -10px 20px -5px rgba(0,0,0,0.1); transform: translateY(-2px); }
#colophon.is-hovered .site-info { color: #f5b700; font-weight: 700; }

footer[role="contentinfo"] {
  clear: both; font-size: 12px; margin-top: 24px; margin-left: auto; margin-right: auto;
  text-align: center; border-top: 1px solid #ddd; padding: 15px; background: #5a3e35;
  color: #fdf6e3; padding-top: 10px;
}
footer[role="contentinfo"] a { color: #f5b700; }
footer[role="contentinfo"] a:hover { color: #ffc933; }
.nav-footer { padding: 0; margin: 0 0 10px 0; list-style: none; }
.nav-footer li { display: inline-block; margin: 0 12px; position: relative; }
.nav-footer li:before {
  content: '•'; color: #f5b700; position: absolute; right: -15px; top: 2px;
}
.nav-footer li:first-child:before { display: none; }
.nav-footer li a { text-decoration: none; color: #fdf6e3; font-size: 14px; }
.nav-footer li a:hover { color: #f5b700; }


/* ========== 8. HOME PAGE SPECIFIC SECTIONS ========== */
.solutions-section { display: block !important; animation: fadeSlideUp 0.4s ease forwards; }
.solutions-section.hidden { display: none !important; }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-heading {
  font-size: 1.15rem; font-weight: 800; color: #3e2723; margin: 30px 0 15px 0;
  padding-right: 12px; border-right: 6px solid #f5b700; display: inline-block; transition: all 0.2s ease; cursor: pointer;
}
.section-heading:hover { opacity: 0.9; transform: translateX(-4px); }

.education-card {
  background: #ffffff; border: 1px solid #f5b700; border-radius: 16px;
  padding: 24px; margin: 20px 0; box-shadow: 0 4px 12px rgba(245,183,0,0.08);
  position: relative; transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.education-card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 6px; height: 100%;
  background: linear-gradient(180deg, #f5b700 0%, #d49f00 100%); transition: width 0.3s ease;
}
.education-card.is-hovered { transform: translateY(-6px) scale(1.015); box-shadow: 0 20px 30px -5px rgba(245,183,0,0.15); border-color: #d49f00; z-index: 5; }
.education-card.is-hovered::before { width: 12px; }
.education-card h2, .education-card h3 { color: #3e2723; font-size: 1.02rem; margin-bottom: 12px; font-weight: 700; }
.education-card h2 i { width: 10px; height: 10px; background: #f5b700; display: inline-block; border-radius: 50%; flex-shrink: 0; transition: all 0.4s ease; }
.education-card.is-hovered h2 i { transform: scale(1.5) rotate(45deg); border-radius: 4px; background: #d49f00; }
.education-card p { color: #475569; line-height: 1.38; font-size: 0.85rem; }
.btn-visit {
  display: inline-block; margin-top: 15px; background-color: #f5b700; color: #3e2723;
  font-weight: bold; padding: 8px 20px; border-radius: 40px; font-size: 14px; transition: all 0.3s;
}
.btn-visit:hover { background-color: #3e2723; color: #f5b700; transform: translateY(-2px); }

.reveal-item {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.25,1,0.5,1), transform 0.6s cubic-bezier(0.25,1,0.5,1);
}
.reveal-item.active { opacity: 1; transform: translateY(0); }
.site-header { opacity: 1 !important; transform: translateY(0) !important; }

/* ========== 9. CATEGORY ARCHIVE PAGE ========== */
.archive-header, .page-header { margin-bottom: 48px; padding-bottom: 22px; border-bottom: 1px solid #ededed; }
.archive-meta { color: #757575; font-size: 14px; margin-top: -5px; margin-bottom: 20px; }
.archive-meta p { text-align: right !important; }
.custom-cat-desc { margin: 15px 0; }
#load-more-container button {
  background: #f5b700; color: #3e2723; border: none; padding: 10px 20px; cursor: pointer;
  border-radius: 4px; font-weight: bold;
}
#load-more-container button:hover { background: #d49f00; }

/* ========== 10. SINGLE POST / BOOK PAGE ========== */
.entry-content, .entry-summary, .mu_register { }
.entry-content h1, .comment-content h1 { font-size: 21px; }
.entry-content h2, .comment-content h2, .mu_register h2 { font-size: 16px; color: #5d4037; }
.entry-content h3, .comment-content h3 { font-size: 16px; color: #5d4037; }
.entry-content h4, .comment-content h4 { font-size: 14px; color: #5d4037; }
.entry-content h5, .comment-content h5 { font-size: 14px; }
.entry-content h6, .comment-content h6 { font-size: 12px; }
.entry-content h1, .comment-content h1, .entry-content h2, .comment-content h2,
.entry-content h3, .comment-content h3, .entry-content h4, .comment-content h4,
.entry-content h5, .comment-content h5, .entry-content h6, .comment-content h6 {
  margin: 24px 0;
}
.entry-content p, .entry-summary p, .comment-content p, .mu_register p { margin: 0 0 24px; }
.entry-content a:visited, .comment-content a:visited { color: #9f9f9f; }
.entry-content a:hover { color: #f5b700; }
.entry-content ol, .comment-content ol, .entry-content ul, .comment-content ul, .mu_register ul { margin: 0 0 24px; }
.entry-content ul ul, .comment-content ul ul, .entry-content ol ol, .comment-content ol ol,
.entry-content ul ol, .comment-content ul ol, .entry-content ol ul, .comment-content ol ul { margin-bottom: 0; }
.entry-content ul, .comment-content ul, .mu_register ul { list-style: disc outside; }
.entry-content ol, .comment-content ol { list-style: decimal outside; }
.entry-content li, .comment-content li, .mu_register li { margin: 0 0 0 36px; }
.entry-content blockquote, .comment-content blockquote { margin-bottom: 24px; padding: 24px; font-style: italic; border-right: 4px solid #f5b700; background: #fdf6e3; }
.entry-content blockquote p:last-child, .comment-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table, .comment-content table { border-bottom: 1px solid #ededed; color: #757575; font-size: 12px; margin: 0 0 24px; width: 100%; }
.entry-content td, .comment-content td { border-top: 1px solid #ededed; padding: 6px 10px 6px 0; }
.entry-content img, .comment-content img, .widget img { max-width: 100%; border-radius: 3px; }
.alignleft { float: left; }
.alignright { float: right; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; padding: 4px; }
.wp-caption .wp-caption-text, .gallery-caption, .entry-caption { font-style: italic; font-size: 12px; color: #757575; }
.entry-content .twitter-tweet-rendered { max-width: 100%!important; }
.entry-content .more-link { white-space: nowrap; }

/* Flex container for book page */
.wj-flex-container { display: flex !important; flex-direction: column !important; box-sizing: border-box !important; width: 100% !important; }
.wj-flex-container > * { box-sizing: border-box !important; max-width: 100% !important; width: 100% !important; float: none !important; clear: both !important; }

/* iframe container (pdf) */
.iframe-container iframe { margin: 0; }
.entry-content .iframe-container { margin-top: -25px; }

/* Download & Contents box */
.wj-unified-container {
  background: #fdf6e3; border: 1px solid #f5b700; padding: 20px; border-radius: 12px;
  margin: 25px 0; box-shadow: 0 4px 12px rgba(245,183,0,0.08); display: flex; flex-direction: column; gap: 20px;
  box-sizing: border-box;
}
.wj-download-list { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.wj-btn-item { flex: 1; min-width: 140px; }
.wj-btn-item a {
  display: flex; align-items: center; justify-content: center; padding: 12px 20px;
  text-align: center; color: #fff !important; text-decoration: none !important;
  font-size: 14px; font-weight: 700; border-radius: 8px; transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.wj-btn-item a:hover { transform: translateY(-2px); opacity: 0.9; }
.wj-pdf a { background-color: #8B0000 !important; } /* عنابي غامق */
.wj-pdf a:hover { background-color: #a00000 !important; }
.wj-word a { background-color: #1e3a5f !important; } /* أزرق غامق */
.wj-word a:hover { background-color: #2a4d7a !important; }
.wj-contents a { background-color: #f5b700 !important; color: #3e2723 !important; }
.wj-contents a:hover { background-color: #d49f00 !important; }
.wj-contents-wrapper { width: 100%; border: 1px solid #f5b700; border-radius: 12px; overflow: hidden; background: #fff; }
.content_box_title_trigger {
  padding: 16px; background: linear-gradient(135deg, #f5b700 0%, #d49f00 100%);
  text-align: center; font-size: 14px; font-weight: bold; color: #3e2723; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 2px solid #b8860b;
}
.content_box_title_trigger:hover { opacity: 0.95; }
.content_box_title_trigger .arrow-icon { font-size: 12px; transition: transform 0.2s ease; }
.content_box_list { display: flex; flex-wrap: wrap; padding: 10px; background: #fff; }
.content_box_list a {
  display: flex; align-items: center; flex: 1 1 48%; padding: 14px 18px; color: #3e2723;
  text-decoration: none; font-size: 15px; font-weight: 600; background: #fdf6e3;
  border: 1px solid #f5b700; margin: 4px; border-radius: 8px; transition: all 0.25s ease; box-sizing: border-box;
}
.content_number {
  order: -1; color: #fff; background: #5d4037; padding: 4px 12px; border-radius: 6px;
  font-size: 12px; margin-left: 15px; font-weight: bold; min-width: 55px; text-align: center;
}
.content_box_list a:hover { background: #f5b700; color: #3e2723; border-color: #d49f00; padding-right: 25px; }
.wj-internal-sharer { width: 100%; box-sizing: border-box; }
.wj-sharer-title { color: #3e2723 !important; }

/* ========== 11. VIDEO POST TYPE ========== */
.video-wrapper { width: 720px; border: 1px solid #ddd; margin: auto; margin-bottom: 40px; }
.video-container { height: 415px; background: #222; }
.video-container iframe { width: 100%; height: 100%; margin: 0; }
.video-control { padding: 10px; text-align: center; }
.video-control select { margin-right: 10px; min-width: 200px; }
.no-videos { padding: 10px; text-align: center; margin: 10px 0; background: #f8f8f8; border: 1px solid #ddd; }
.kv-box.video .kv-box-img { background-color: #000; background-size: cover; position: relative; }
.kv-box.video .kv-box-icon { position: absolute; top: 50%; right: 50%; margin-top: -15px; margin-right: -15px; z-index: 111; }
.kv-box.video .kv-box-icon svg { width: 30px; height: 30px; fill: white; }




/* ========== 12. SHARING & SOCIAL BUTTONS ========== */
.wj-sharer {
  background: #fdf6e3; border: 1px solid #f5b700; padding: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 8px;
}
.wj-sharer-title { font-weight: bold; font-size: 16px; color: #3e2723; white-space: nowrap; }
.wj-sharer-list, .wj-h-btns {
  list-style: none !important; padding: 0 !important; margin: 10px 0 !important;
  display: flex; gap: clamp(4px, 2vw, 9px); flex-wrap: nowrap; flex-shrink: 0;
  width: 100%; overflow: visible;
}
.wj-sharer-list li, .wj-h-btns li {
  flex: 1 1 auto; list-style: none !important; min-width: 0;
  border-radius: 100vmax !important; overflow: hidden !important;
}
.wj-sharer-list li a, .wj-h-btns li a {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: clamp(6px, 2vw, 10px) clamp(8px, 3vw, 14px);
  text-align: center; color: #ffffff !important; text-decoration: none !important;
  font-size: clamp(10px, 2.5vw, 13px); font-weight: bold;
  border-radius: 10vmax !important; transition: all 0.3s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); line-height: 1.2; box-sizing: border-box;
}
.wj-sharer-list li a:hover, .wj-h-btns li a:hover {
  opacity: 0.9; transform: translateY(-2px); color: #fff !important;
}
.btn-fb, .wj-facebook a { background: #1877f2 !important; }
.btn-tw, .wj-twitter a { background: #1da1f2 !important; }
.btn-wa, .wj-whatsapp a { background: #075e54 !important; }
.btn-tg, .wj-telegram a { background: #0088cc !important; }
.wj-standalone-sharer {
  background: #fdf6e3; border: 1px solid #f5b700; padding: 20px; border-radius: 6px;
  margin: 30px auto; max-width: 900px; box-shadow: 0 10px 25px rgba(245,183,0,0.1);
  box-sizing: border-box; width: 100%;
}
.wj-standalone-sharer .wj-sharer-title { color: #3e2723; }
#telegram { transition: all 0.4s ease; position: fixed; bottom: 50px; right: 0; left: 0; margin: 0 auto; width: 180px; z-index: 1000; }
#telegram.hidden { opacity: 0; transform: translateY(100px); pointer-events: none; }
#telegramLink {
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold;
  border-radius: 10vmax; padding: 12px; background: #f5b700; color: #3e2723; text-decoration: none;
  box-shadow: 0 5px 15px rgba(245,183,0,0.4); transition: 0.3s; animation: tele-pulse 2s infinite;
}
#telegramLink:hover { background: #d49f00; transform: scale(1.05); }
@keyframes tele-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,183,0,0.7); }
  70% { box-shadow: 0 0 0 12px rgba(245,183,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,183,0,0); }
}


/* ========== 13. CONTACT PAGE (messaging) ========== */
#messaging { position: relative; }
#messaging input, #messaging textarea {
  resize: vertical; background: #f8f8f8; display: block; width: 100%; box-sizing: border-box;
  border: 1px solid #ddd;
}
#messaging textarea { min-height: 100px; }
#messaging .form-group { margin-bottom: 20px; }
#messaging input:focus, #messaging textarea:focus { background: #fff; border-color: #f5b700; }
.form-group button[type=submit] { background: #f5b700; border-color: #d49f00; color: #3e2723; padding: 6px 20px; font-size: 16px; }
.form-group button[type=submit]:hover { color: #f5b700; background: #3e2723; }
.alert { background: #f8f8f8; border: 1px solid #ccc; padding: 5px 19px; border-radius: 5px; margin-bottom: 20px; }
.alert.alert-success { color: #3e2723; background: #f4fbf4; border-color: #c0d6c0; }
.alert.alert-danger { background: #fff1f0; color: #b13f37; border-color: #f3cecc; }
.overlay { position: absolute; width: 100%; height: 100%; background: rgba(255,255,255,.8); padding-top: 40px; text-align: center; font-size: 18px; display: none; }
.overlay.active { display: block; }

/* ========== 14. COMMENTS (wpDiscuz) ========== */
#wpcomm { border-top: 0; margin-bottom: 0; }
#wpcomm .wc_comm_form.wc_main_comm_form .wc-field-textarea .wpdiscuz-textarea-wrap textarea { background: #f9f9f9; }
#wpcomm .wc_comm_form.wc_main_comm_form .wc-field-textarea .wpdiscuz-textarea-wrap textarea:focus { background: #fff; }
#wpcomm .wpdiscuz-front-actions { display: none; }
.wpdiscuz-form-top-bar { display: none; }
#wpcomm .wc-form-footer { border: 0; margin: 0; padding: 0; }
#wpcomm .wc_comm_form.wc_main_comm_form .wc-field-comment .wc-field-avatararea { display: none !important; }
#wpcomm button, #wpcomm button:hover, #wpcomm button:focus,
#wpcomm input[type="button"], #wpcomm input[type="reset"], #wpcomm input[type="submit"],
#wpcomm .wpdiscuz-subscribe-form-button input[type="submit"], #wpcomm .wc-field-submit .wc_comm_submit {
  background: #5d4037!important;
}

/* ========== 15. SPECIAL SECTIONS / MISC ========== */
.madti-grid-container { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; padding: 20px; direction: rtl; }
.madti-btn-item { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 10px 15px; background: linear-gradient(135deg,#f5b700 0%,#d49f00 100%); color: #3e2723; font-weight: 700; font-size: 15px; border-radius: 12px; border-bottom: 4px solid #b8860b; transition: all 0.3s; box-shadow: 0 4px 15px rgba(245,183,0,0.2); }
.madti-btn-item:hover { transform: translateY(-5px); background: linear-gradient(135deg,#d49f00 0%,#f5b700 100%); }
.madati-hub-container { direction: rtl; max-width: 1100px; margin: 100px auto 40px; padding: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.madati-topic-card { background: #fff; border: 1px solid #f5b700; border-radius: 12px; padding: 25px; display: flex; flex-direction: column; box-shadow: 0 10px 20px rgba(245,183,0,0.05); transition: .3s; }
.madati-topic-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(245,183,0,0.12); }
.madati-topic-card::after { content: ""; position: absolute; top: 0; right: 0; width: 5px; height: 100%; background: #f5b700; }
.madati-topic-card h2 { color: #3e2723; font-size: 1.1rem; margin: 0 0 15px; display: flex; align-items: center; font-weight: 800; }
.madati-icon-bullet { width: 8px; height: 24px; background: #f5b700; display: inline-block; margin-left: 12px; border-radius: 50px; }
.madti-disclaimer-box { direction: rtl; text-align: center; padding: 10px; font-size: 13px; border: 1px solid #f5b700; border-right: 5px solid #d49f00; border-radius: 12px; margin: 30px 10px; max-width: 900px; }
.kv-boxess { display: flex; flex-wrap: wrap; justify-content: center; background: #fdf6e3; border: 1px solid #f5b700; border-radius: 10px; margin: 10px -10px 30px; }
.kv-boxess h2 { width: 100%; padding: 6px; text-align: center; margin: 1px 1px 25px; background: #f5b700; border-radius: 8px 8px 0 0; color: #3e2723; font-size: 15px; }
.entry-content [data-something-id] { margin-bottom: 20px; }
.post > [data-something-id] { margin-bottom: 30px; }

/* ========== 16. RESPONSIVE MEDIA QUERIES ========== */
/* (تبقى كما هي دون تغيير جوهري، فقط تم تعديل بعض الألوان في الهوامش لتتناسب) */
@media(max-width:768px) {
  .kv-list-img { margin: auto; height: 100px; width: 80px; display: block; }
  .kv-list-title { text-align: center; }
  .kv-list-ul li { border: 1px solid #eee; padding: 20px 0; }
  .kv-list-desc { display: block; text-align: center; margin-top: 15px; }
  .kv-listing .kv-single-list:nth-child(2n+2) { padding-left: 0; }
  .main-navigation { background: transparent; text-align: inherit; }
  .main-navigation ul { display: block; margin: 0!important; width: auto; background: #5d4037; position: fixed; top: 0; right: 0; height: 100%; z-index: 111; }
  .main-navigation.toggled:after { content: ''; position: fixed; width: 100%; height: 100%; background: rgba(0,0,0,.5); top: 0; left: 0; z-index: 1; }
  .logged-in .main-navigation ul { padding-top: 46px; }
  .main-navigation li { padding: 0; margin: 0; display: block; }
  .main-navigation li a { text-indent: inherit; color: #eee; font-size: 12px; padding: 10px 15px; display: block; }
  .main-navigation li a:hover, .main-navigation li a:focus { background: #f5b700; color: #3e2723; }
  .main-navigation li:before { display: none; }
  .main-navigation .menu-toggle { position: absolute; top: 0; left: 0; margin-top: -30px; z-index: 11; border-radius: 0; margin: 0; background: #f5b700; color: #3e2723; display: block; }
  .logged-in .main-navigation .menu-toggle { top: 0; left: 15px; }
  .head-hg { text-align: center; margin-top: 0; }
  .head-hg img { width: 170px; margin-bottom: -5px; }
  .kv-boxes { margin: 0 -10px; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; }
  .kv-box { width: 190px; margin-bottom: 0; height: 180px; }
  .kv-box-img { height: 90px; }
  .site-content { padding-top: 0; }
  .breadcrumb { margin: -25px; margin-bottom: 0; padding: 8px 20px; }
  .entry-header { margin-bottom: 10px; margin-top: 10px; }
  .iframe-container { margin: 0 -25px; margin-bottom: 10px; }
  .education-card { display: none; }
  .kv-related-wrapper { margin: 15px 0; border-radius: 12px; }
  .kv-related-header { padding: 5px 15px; }
  .kv-related-title { font-size: 15px; }
  .kv-related-content { padding: 15px 8px; }
  .kv-related-content .kv-boxes > * { flex: 1 1 calc(50% - 7px); max-width: calc(50% - 7px); min-width: calc(50% - 7px); }
  .video-wrapper { width: auto; }
  .wj-h-wrap { flex-direction: column; text-align: center; padding: 10px; }
  .wj-h-title { white-space: normal; text-overflow: clip; margin-bottom: 8px; }
  .wj-h-btns, .wj-sharer-list { width: 100%; gap: 8px; flex-wrap: wrap; }
  .content_box_list a { flex: 1 1 100%; margin: 4px 0; }
  .madti-grid-container { grid-template-columns: repeat(2,1fr); }

.wj-flex-container .iframe-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
    overflow: visible !important;  
    position: relative;
    left: 0;
}


  .entry-header .entry-title,
  #wc-comment-header {
    background: url(css/header_bg.png) repeat-x bottom;
    font-size: 16px;
    padding: 13px 0;
  }
}

/* باقي الاستعلامات كما هي مع تغييرات طفيفة في الألوان */
@media(max-width:600px) {
  #site-navigation ul.nav-menu { display: none !important; }
  #site-navigation.toggled ul.nav-menu { display: block !important; }
}

@media(min-width:600px) {
  .author-avatar { float: left; margin-top: 8px; }
  .author-description { float: right; width: 80%; }
  .site { margin: 0 auto; max-width: 960px; overflow: hidden; }
  .site-content { float: left; width: 65.104166667%; }
  body.template-front-page .site-content, body.attachment .site-content, body.full-width .site-content { width: 100%; }
  .widget-area { float: right; width: 26.041666667%; }
  .site-header h1, .site-header h2 { text-align: left; }
  .site-header h1 { font-size: 20px; margin-bottom: 0; }
  .main-navigation ul.nav-menu, .main-navigation div.nav-menu>ul { display: inline-block; text-align: left; width: 100%; }
  .main-navigation ul { margin: 0; text-indent: 0; }
  .main-navigation li a, .main-navigation li { display: inline-block; text-decoration: none; }
  .main-navigation li a { border-bottom: 0; color: #fff; text-transform: uppercase; white-space: nowrap; }
  .main-navigation li a:hover, .main-navigation li a:focus { color: #f5b700; }
  .main-navigation li ul { margin: 0; padding: 0; position: absolute; top: 100%; z-index: 1; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
  .main-navigation li ul ul { top: 0; left: 100%; }
  .main-navigation ul li:hover>ul, .main-navigation ul li:focus>ul, .main-navigation .focus>ul { border-left: 0; clip: inherit; overflow: inherit; height: inherit; width: inherit; }
  .main-navigation li ul li a { background: #efefef; border-bottom: 1px solid #ededed; display: block; font-size: 11px; padding: 8px 10px; width: 180px; white-space: normal; color: #5d4037; }
  .main-navigation li ul li a:hover, .main-navigation li ul li a:focus { background: #f5b700; color: #3e2723; }
  .main-navigation .current-menu-item>a, .main-navigation .current-menu-ancestor>a,
  .main-navigation .current_page_item>a, .main-navigation .current_page_ancestor>a { color: #f5b700; font-weight: bold; }
  .menu-toggle { display: none; }
  .entry-header .entry-title { font-size: 18px; color: #3e2723; }
  #respond form input[type="text"] { width: 46.333333333%; }
  #respond form textarea.blog-textarea { width: 79.666666667%; }
  .template-front-page .site-content, .template-front-page article { overflow: hidden; }
  .template-front-page.has-post-thumbnail article { float: left; width: 47.916666667%; }
  .entry-page-image { float: right; margin-bottom: 0; width: 47.916666667%; }
  .template-front-page .widget-area .widget, .template-front-page.two-sidebars .widget-area .front-widgets { float: left; width: 51.875%; margin-bottom: 24px; }
  .template-front-page .widget-area .widget:nth-child(odd) { clear: right; }
  .template-front-page .widget-area .widget:nth-child(even),
  .template-front-page.two-sidebars .widget-area .front-widgets+.front-widgets { float: right; width: 39.0625%; }
  .commentlist .children { margin-left: 48px; }
  .head-hg { display: flex !important; justify-content: center !important; width: 100% !important; }
}

@media(min-width:960px) {
  body { background-color: #fff; }
  body .site { padding: 0 40px; }
  body.custom-background-empty { background-color: #fff; }
  body.custom-background-empty .site, body.custom-background-white .site { padding: 0; margin-top: 0; margin-bottom: 0; box-shadow: none; }
}

@media(max-width:450px) {
  .wj-h-btns li a { font-size: 10px; padding: 6px 4px; }
}

@media(max-width:360px) {
  .wj-h-btns li a { font-size: 9px; padding: 5px 2px; }
}

@media(max-width:480px) {
  .kv-boxes { grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); }
  .kv-box { width: 160px; }
  .kv-box-img { height: 75px; }
  .kv-box-title { font-size: 0.75rem; }
  .education-card { padding: 16px; }
  .education-card h2 { font-size: 0.78rem; }
  .education-card p { font-size: 0.65rem; }
  .madti-grid-container { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .madti-btn-item { font-size: 14px; min-height: 55px; }
}

@media(max-width:400px) {
  .desktop-only { display: none !important; }
  .madati-hub-container { display: none !important; }
}

@media(max-width:550px) {
  .grade-menu-container { width: 92%; padding: 18px; }
  .grade-list { grid-template-columns: 1fr; gap: 10px; }
  .grade-float-btn { width: 35px; height: 35px; top: 35px; left: 33px; }
  .grade-item { padding: 10px 8px; font-size: 13px; }
  .grade-menu-header h3 { font-size: 18px; }
  .homepage-link { font-size: 16px; gap: 6px; }
  .homepage-link svg { width: 18px; height: 18px; }
  .breadcrumb-item { font-size: 11px; }
  .breadcrumb-item a { padding: 3px 6px; }
  .breadcrumb-item.active { padding: 3px 10px; }
  .breadcrumb-separator { margin: 0 2px; font-size: 12px; }
}




/* ========== 17. PRINT STYLES ========== */
@media print {
  body { background: none!important; color: #000; font-size: 10pt; }
  footer a[rel=bookmark]:link:after, footer a[rel=bookmark]:visited:after { content: " [" attr(href) "] "; }
  a { text-decoration: none; }
  .entry-content img, .comment-content img, .author-avatar img, img.wp-post-image { border-radius: 0; box-shadow: none; }
  .site { clear: both!important; display: block!important; float: none!important; max-width: 100%; position: relative!important; }
  .site-header { margin-bottom: 72px; text-align: left; }
  .site-header h1 { font-size: 18pt; text-align: left; }
  .site-header h2 { color: #000; font-size: 14pt; }
  .site-header h1 a, .site-header h2 a { color: #000; }
  .author-avatar, #colophon, #respond, .commentlist .comment-edit-link, .commentlist .reply,
  .entry-header .comments-link, .entry-meta .edit-link a, .page-link, .site-content nav,
  .widget-area, img.header-image, .main-navigation { display: none; }
  .wrapper { border-top: 0; box-shadow: none; }
  .site-content { margin: 0; width: auto; }
  .entry-header .entry-title, .entry-title { font-size: 18px; }
  footer.entry-meta, footer.entry-meta a { color: #444; font-size: 10pt; }
  .author-description { float: none; width: auto; }
  .commentlist>li.comment { background: 0; position: relative; width: auto; }
  .commentlist .avatar { height: 39px; left: 2.2em; top: 2.2em; width: 39px; }
  .comments-area article header cite, .comments-area article header time { margin-left: 50px; }
}









/* ========== 7. CARD GRID & BOXES (kv-box) - Main, Archive, Related ========== */
.kv-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding: 5px;
  margin: 0 -5px 30px;
  justify-items: center;
}

.kv-box {
  width: 100%;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.kv-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 3px 18px 5px rgba(220, 183, 0, 0.4);
}

.kv-box-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 14px;
  border: 3px solid #ffffff;
  overflow: hidden;
}

.kv-box-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.kv-box-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f8f8f8;
}

.kv-box-title {
  position: absolute;
  bottom: 1px;
  left: 2px;
  right: 2px;
  z-index: 2;
  background: rgba(245, 245, 230, 0.6);
  backdrop-filter: blur(5px);
  padding: 5px 5px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.77rem;
  color: #5d4037;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 126, 102, 0.35);
}

.kv-box:hover .kv-box-title {
  background: rgba(255, 255, 255, 0.5);
  color: #3e2723;
font-size: 0.8rem;
border: 1px solid rgba(139, 126, 102, 0.2);
}

.kv-box .badge {
  transform: rotate(-45deg);
  position: absolute;
  top: 8px;
  left: -20px;
  z-index: 3;
  width: 90px;
  height: 25px;
  line-height: 25px;
  font-size: 11px;
  color: #fff;
  text-align: center;
  background: #f5b700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ========== Media Queries ========== */
@media (max-width: 700px) {
  .kv-box {
    aspect-ratio: auto;
    height: 170px;
  }
}

@media (max-width: 460px) {
  .kv-boxes {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .kv-box {
    height: 100px;
    margin-bottom: 15px;
  }
  .kv-box-title {
    font-size: 0.75rem;
    bottom: 2px;
  }
}



