@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700;800&display=swap');


/* ---------- تأثير البلور الذكي عند تمرير الماوس ---------- */
body.has-hovered-item .reveal-item:not(.is-hovered) {
  filter: blur(4px);
  opacity: 0.4;
  transform: scale(0.98);
}

/* ---------- تحديثات البطاقات (kv-box) ---------- */
.kv-box {
  height: 150px;
  position: relative;
}

.kv-box-link {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
}

.kv-box-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- تحديثات الهيدر ---------- */
.header-container {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  will-change: transform, box-shadow;
}

.header-container::before {
  background: #0056b3;
}

.site-header.is-hovered .header-container {
  box-shadow: 0 20px 25px -5px rgba(0, 86, 179, 0.1), 0 10px 10px -5px rgba(0, 86, 179, 0.04);
  border-color: #0056b3;
}

.site-header.is-hovered .header-container::before {
  width: 12px;
}

.site-header.is-hovered .hululktbi-title {
  color: #0056b3;
  transform: scale(1.02);
}

.site-header.is-hovered .hululktbi-title i {
  transform: rotate(180deg);
  background: #0056b3;
}

.hululktbi-title {
  font-size: 1.3rem;
}

.hululktbi-title i {
  width: 12px;
  height: 12px;
  transition: all 0.4s ease;
}

/* ---------- تحديثات البطاقات التعليمية (education-card) ---------- */
.hululktbi-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.education-card {
  will-change: transform, opacity;
}

.education-card::before {
  background: #0056b3;
}

.mobile-section::before { background: #f1a417; }
.old-data-section::before { background: #28a745; }
.notice-card::before { background: #94a3b8; }

.education-card.is-hovered {
  border-color: #cbd5e1;
  z-index: 5;
}

.education-card.is-hovered::before {
  width: 12px;
}

.education-card h2 {
  color: #1e3a8a;
  font-size: 1.1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
  transform-origin: right;
}

.education-card.is-hovered h2 {
  color: #0056b3;
  transform: translateX(-8px);
}

.education-card h2 i {
  width: 10px;
  height: 10px;
  background: #0056b3;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 0.3s ease, background-color 0.3s ease;
}

.education-card.is-hovered h2 i {
  transform: scale(1.5) rotate(45deg);
  border-radius: 4px;
}

.mobile-section.is-hovered h2 i { background: #f1a417; }
.old-data-section.is-hovered h2 i { background: #28a745; }

.education-card p {
  line-height: 1.8;
  text-align: justify;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
  will-change: transform;
}

.education-card.is-hovered p {
  color: #1e293b;
  transform: translateY(-3px);
}

.education-card p:not(:last-child) {
  margin-bottom: 14px;
}

.platform-brand {
  color: #0056b3;
  font-weight: 700;
}

/* ---------- تحديثات الفوتر ---------- */
#colophon {
  transition: all 0.4s ease;
  border-radius: 12px;
}

#colophon.is-hovered {
  background: #ffffff;
  box-shadow: 0 -10px 20px -5px rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}

#colophon .site-info {
  color: #64748b;
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

#colophon.is-hovered .site-info {
  color: #0f3f63;
  font-weight: 700;
  word-spacing: 2px;
}

/* ---------- تحديثات الاستجابة للشاشات ---------- */
@media (max-width: 768px) {
  .kv-box {
    width: 160px;
    height: 150px;
  }
  .kv-box-link {
    border-radius: 10px;
    padding: 5px;
  }
  .header-container {
    padding: 14px;
  }
  .hululktbi-title {
    font-size: 1.2rem;
    text-align: right;
  }
  body.has-hovered-item .reveal-item:not(.is-hovered) {
    filter: none;
    opacity: 1;
    transform: none;
  }
  .education-card.reveal-item {
    display: none;
  }
}

@media (max-width: 480px) {
  .education-card {
    padding: 16px;
  }
  .education-card h2 {
    font-size: 0.78rem;
  }
  .education-card p {
    font-size: 0.65rem;
  }
  .kv-boxes {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .kv-box {
    width: 100%;
    height: auto;
  }
}






* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: 'Almarai', Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: #334155;
  background-color: #f8fafc;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color 0.3s ease;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
#page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  transition: all 0.4s ease;
}
.site-header {
  margin: 20px 0;
}
.header-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 24px;
  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 i {
  width: 14px;
  height: 14px;
  background: #175785;
  display: inline-block;
  margin: 0 0 0 8px;
  border-radius: 4px;
}

.hululktbi-title {
  flex: 1;
  justify-content: flex-start;
  margin: 0 5px;
  font-size: 1.2rem;
  text-align: right;
  color: #175785;
  
}



.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: #1e3a8a;
  margin: 30px 0 15px 0;
  padding-right: 12px;
  border-right: 6px solid #f1a417;
  display: inline-block;
  transition: all 0.2s ease;
}
.section-heading:hover {
  opacity: 0.8;
  transform: translateX(-4px);
}
.kv-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 5px;
  justify-items: center;
}
.kv-box {
  width: 200px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.kv-box-inner {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.4s ease;
  padding: 8px;
  text-align: center;
}
.kv-box-img {
  display: block;
  width: 100%;
  height: 110px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
}
.kv-box-title {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #0f3f63;
  background: white;
  padding: 6px 4px;
  border-radius: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
}
.kv-box:hover .kv-box-title {
  overflow: visible;
  white-space: normal;
  background: #fef7e0;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.kv-box.is-hovered {
  transform: translateY(-8px) scale(1.05);
  z-index: 10;
}
.kv-box.is-hovered .kv-box-inner {
  box-shadow: 0 20px 25px -5px rgba(0, 86, 179, 0.2);
  border-color: #0056b3;
}
.education-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  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: #f1a417;
  transition: width 0.3s ease;
}
.education-card.is-hovered {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}
.education-card h3 {
  color: #1e3a8a;
  font-size: 1.02rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.education-card p {
  color: #475569;
  line-height: 1.38;
  font-size: 0.85rem;
}
.btn-visit {
  display: inline-block;
  margin-top: 15px;
  background-color: #f1a417;
  color: #0f3f63;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 14px;
  transition: all 0.3s;
}
.btn-visit:hover {
  background-color: #0056b3;
  color: white;
  transform: translateY(-2px);
}
#colophon {
  margin-top: 40px;
  padding: 25px 0;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}
.site-info a {
  color: #0f3f63;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s;
  font-size: 12px ;
}
.site-info a:hover {
  color: #f1a417;
}
.reveal-item {
  opacity: 0;
  transform: translateY(25px);
  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);
}
@media (max-width: 768px) {

    .education-card {
        display: none;
    }
  .kv-boxes {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  .kv-box { width: 190px; }
  .kv-box-img { height: 90px; }
}
@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; }
}
.clearfix { clear: both; }





  .grade-float-btn {
    position: fixed;
    top: 35px;
    left: 39px;
    width: 40px;
    height: 40px;
    background:  #175785;
    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: #f1a417;
    box-shadow: 0 6px 16px rgba(241, 164, 23, 0.4);
  }
  
  .grade-float-btn:hover svg {
    stroke: #0f3f63;
  }
  
  .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(15, 63, 99, 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 #f1a417;
  }
  
  .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: #0f3f63;
    font-size: 20px;
    font-weight: 800;
    font-family: 'Almarai', Helvetica, Arial, sans-serif;
  }
  
  .grade-menu-header h3 svg {
    vertical-align: middle;
    margin-left: 8px;
  }
  
  .grade-menu-header h3 svg path {
    stroke: #f1a417;
  }
  
  .grade-menu-close {
    background: #f1a417;
    color: #0f3f63;
    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: #0f3f63;
    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: #f1a417;
    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;
    font-family: 'Almarai', Helvetica, Arial, sans-serif;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
  }
  
  .grade-item:hover {
    background: #fef7e0;
    transform: translateX(-3px);
    border-right-color: #f1a417;
  }
  
  /* الصف الحالي مميز بالكامل */
  .grade-item.current-grade {
    background: linear-gradient(135deg, #0f3f63, #0056b3);
    color: white;
    border-right-color: #f1a417;
    box-shadow: 0 3px 10px rgba(15, 63, 99, 0.3);
  }
  
  .grade-item.current-grade svg {
    stroke: #f1a417;
  }
  
  .grade-item svg {
    width: 16px;
    height: 16px;
    stroke: #94a3b8;
    stroke-width: 2;
  }
  
  .grade-item.current-grade svg {
    stroke: #f1a417;
  }
  
  @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;
    }
  }
  
  
  
  
  /* تعديل: إزالة تأثير الاختفاء من عنصر header فقط */
.reveal-item:not(.site-header) {
  opacity: 0;
  transform: translateY(25px);
  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:not(.site-header) {
  opacity: 1;
  transform: translateY(0);
}

/* إبقاء الهيدر ظاهراً طوال الوقت */
.site-header {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
  
  
  
  
  
  
  
  /* تنسيق رابط منصة حلول التعليمية */
.homepage-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f3f63;
  font-size: 20px;
  font-weight: 800;
  font-family: 'Almarai', Helvetica, Arial, sans-serif;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 12px;
}

.homepage-link:hover {
  background: #fef7e0;
  transform: translateX(-3px);
}

/* تنسيق الرابط عندما يكون الزائر في الصفحة الرئيسية */
.homepage-link.current-page {
  background: linear-gradient(135deg, #0f3f63, #0056b3);
  color: white;
  box-shadow: 0 3px 10px rgba(15, 63, 99, 0.3);
}

.homepage-link.current-page svg path {
  stroke: #f1a417;
}

.homepage-link.current-page svg circle {
  fill: white;
}

/* للشاشات الصغيرة */
@media (max-width: 550px) {
  .homepage-link {
    font-size: 16px;
    gap: 6px;
  }
  
  .homepage-link svg {
    width: 18px;
    height: 18px;
  }
}



/* ---------- مسار التنقل (Breadcrumb) - إضافة جديدة ---------- */
.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: 8px 0;
  gap: 6px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-family: 'Almarai', Helvetica, Arial, sans-serif;
  color: #64748b;
}

.breadcrumb-item a {
  color: #175785;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 20px;
  background: transparent;
}

.breadcrumb-item a:hover {
  color: #f1a417;
  background: #fef7e0;
  transform: translateX(-2px);
}

/* الصفحة الحالية (غير قابلة للنقر) */
.breadcrumb-item.active {
  color: #0f3f63;
  font-weight: 700;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 24px;
  border-right: 3px solid #f1a417;
}

/* الفاصل بين الأقسام */
.breadcrumb-separator {
  margin: 0 4px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: normal;
}

/* أيقونة المنزل (SVG صغير) */
.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: #175785;
  stroke-width: 1.8;
  transition: stroke 0.2s ease;
}

.breadcrumb-item a:hover .breadcrumb-home-icon svg {
  stroke: #f1a417;
}

/* للشاشات الصغيرة */
@media (max-width: 550px) {
  .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;
  }
}




