/* تنسيق نمط الأبعاد الملمومة المستقرة - SNB Corporate Compact Design Mapped */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  color: #333333;
  background: #f7f9f6; 
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* وعاء عرض محكوم وملموم لمنع تضخم العناصر */
.container {
  max-width: 1000px;
  margin: auto;
  width: 92%;
}

.snb-section {
  padding: 65px 0; 
  scroll-margin-top: 70px;
}

/* ==========================================================================
   شريط الملاحة العلوي
   ========================================================================== */
.snb-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2.5px solid #115E33;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

.nav-container {
  max-width: 1000px;
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.title-primary {
  font-weight: 900;
  color: #115E33;
  font-size: 17px;
}

.title-secondary {
  font-size: 10.5px;
  color: #718096;
  font-weight: 700;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  font-weight: 700;
  color: #4a5568;
}

.nav-menu a {
  position: relative;
  transition: color 0.25s ease;
  padding: 6px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: #115E33;
  transition: width 0.25s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active { color: #115E33; }

.menu-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-burger span {
  width: 100%;
  height: 2.5px;
  background-color: #115E33;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-burger.active span:nth-child(2) { opacity: 0; }
.menu-burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   بنير الهيرو الممركز
   ========================================================================== */
.snb-hero {
  position: relative;
  min-height: 60vh;
  background: url('6.jpeg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 94, 51, 0.96) 20%, rgba(7, 44, 23, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-text-block {
  max-width: 750px;
  margin: auto;
  text-align: center;
}

.hero-text-block h1 {
  font-size: clamp(28px, 4vw, 44px);
  color: #ffffff;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero-text-block h1 span { color: #F0C215; }
.hero-text-block p { color: #f1f5f9; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.75; max-width: 650px; margin: 0 auto; }

/* ==========================================================================
   العناوين والكبسولات العامة التوضيحية
   ========================================================================== */
.snb-center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.custom-badge-capsule {
  display: inline-block;
  background-color: rgba(17, 94, 51, 0.06);
  color: #115E33;
  padding: 4px 18px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 50px;
  margin: 0 auto 12px auto;
}

.bg-dark-strip .custom-badge-capsule {
  background-color: rgba(255, 255, 255, 0.12);
  color: #F0C215;
}

.snb-title { font-size: 28px; color: #115E33; font-weight: 900; text-align: center; }
.snb-title-white { font-size: 30px; color: #ffffff; font-weight: 900; margin-bottom: 10px; text-align: center; }
.snb-line-decorator { width: 45px; height: 2.5px; background: #115E33; margin: 10px auto 16px auto; border-radius: 2px; }
.snb-desc { font-size: 16px; color: #64748b; max-width: 600px; margin: 0 auto; text-align: center; }
.snb-desc-light { font-size: 15px; color: rgba(255, 255, 255, 0.75); max-width: 600px; margin: 0 auto; text-align: center; }

/* ==========================================================================
   كروت الاستراتيجية الرؤية والرسالة
   ========================================================================== */
.snb-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.snb-card {
  background: #ffffff; padding: 40px 30px; border-radius: 20px;
  border: 1px solid #eef2f6; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  transition: all 0.3s ease;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.snb-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(17, 94, 51, 0.04); }
.card-icon-slot { font-size: 34px; margin-bottom: 18px; }
.snb-card h3 { color: #115E33; font-size: 21px; margin-bottom: 12px; font-weight: 800; }
.snb-card p { color: #555555; font-size: 15px; line-height: 1.7; }

/* ==========================================================================
   قسم الإحصائيات (أرقام تحكي قصتنا - أبعاد ملمومة تماماً)
   ========================================================================== */
.bg-dark-strip { background-color: #0b4123; padding: 75px 24px; }
.snb-stats-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 16px; 
  margin-top: 40px; 
}
.stat-item-block {
  background: rgba(255, 255, 255, 0.06); 
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 15px; 
  border-radius: 20px; 
  text-align: center;
  transition: all 0.3s ease;
}
.stat-item-block:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); border-color: #F0C215; }
.stat-number { font-size: 34px; font-weight: 900; color: #F0C215; margin-bottom: 6px; }
.stat-label { font-size: 14px; color: #ffffff; font-weight: 600; line-height: 1.4; }

/* ==========================================================================
   قسم الإنجازات الشرفية مصلح وموزون 100% بدون أي تداخل للأيقونات
   ========================================================================== */
.container-gray-bg { 
  background-color: #f3f6f4; 
  padding: 75px 24px; 
}

.snb-achievement-panel {
  background: #ffffff; 
  border-radius: 24px; 
  padding: 40px 45px;
  max-width: 850px; 
  margin: 35px auto 0 auto; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.01);
}

.achievement-content-box { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
}

.panel-inner-title { 
  font-size: 22px; 
  color: #115E33; 
  font-weight: 900; 
  margin-bottom: 24px; 
}

.achievement-bullets-list { 
  list-style: none; 
  padding: 0; 
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.achievement-bullets-list li {
  display: flex;
  align-items: center; /* موازاة هندسية للأيقونة مع النص عمودياً */
  gap: 14px; /* مسافة أمان ثابتة تمنع التداخل */
  margin-bottom: 16px; 
  text-align: right;
  background: #f8fafc;
  padding: 14px 20px;
  border-radius: 16px;
}

.medal-icon {
  font-size: 20px;
  flex-shrink: 0; /* حماية الأيقونة من الانضغاط */
}

.achievement-bullets-list li p {
  font-size: 15.5px; 
  color: #334155; 
  line-height: 1.7; 
  margin: 0;
}

/* ==========================================================================
   معرض الصور والألبوم (ذاكرة العام في صور)
   ========================================================================== */
.bg-light-strip { background-color: #ffffff; padding: 75px 24px; }
.snb-gallery-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 16px; 
  margin-top: 35px; 
}
.gallery-card-block {
  background: #ffffff; 
  border-radius: 20px; 
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02); 
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}
.gallery-card-block:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(17, 94, 51, 0.06); }
.img-container { width: 100%; height: 215px; overflow: hidden; position: relative; }
.gallery-card-block img { width: 100%; height: 100%; object-fit: cover; }

.card-caption-overlay {
  position: absolute; bottom: 0; right: 0; left: 0; padding: 14px 10px; font-size: 13px; color: #ffffff; font-weight: 700;
  background: linear-gradient(to top, rgba(11, 94, 51, 0.95) 0%, rgba(11, 94, 51, 0.4) 70%, transparent 100%); text-align: center; line-height: 1.4;
}
.full-width-card { grid-column: span 3; }
.full-width-card .img-container { height: 310px; }

/* نافذة المعاينة الكبرى المنبثقة السينمائية (Lightbox) */
.lightbox {
  position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(7, 18, 11, 0.97); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: 90%; max-height: 70vh; border-radius: 12px; object-fit: contain; }
.lightbox-close { position: absolute; top: 24px; left: 30px; color: #ffffff; font-size: 44px; background: transparent; border: none; cursor: pointer; }
.lightbox-close:hover { color: #F0C215; }
.lightbox-caption { margin-top: 16px; color: #ffffff; font-size: 15px; text-align: center; max-width: 80%; font-weight: 600; }

/* ==========================================================================
   قسم الشكر والتقدير المستقل الفاخر
   ========================================================================== */
.appreciation-section-gray { background-color: #eaeee6; padding: 80px 24px; display: flex; justify-content: center; align-items: center; }
.appreciation-card { background-color: #ffffff; max-width: 800px; width: 100%; padding: 50px 40px; border-radius: 32px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); text-align: center; }
.appreciation-logo-container { margin-bottom: 24px; }
.appreciation-logo-container img { width: 190px; height: auto; object-fit: contain; }
.appreciation-card h2 { color: #115E33; font-size: 28px; font-weight: 900; margin-bottom: 18px; }
.appreciation-text-content { max-width: 740px; margin: 0 auto 25px auto; }
.appreciation-text-content p { color: #555555; font-size: 15.5px; line-height: 1.75; margin-bottom: 14px; text-align: justify; }
.appreciation-action-slot { margin-top: 10px; }
.btn-appreciation-pill { display: inline-block; background-color: #115E33; color: #ffffff !important; padding: 12px 36px; font-size: 15px; font-weight: 700; border-radius: 10px; box-shadow: 0 4px 15px rgba(17, 94, 51, 0.1); transition: all 0.25s ease; }
.btn-appreciation-pill:hover { background-color: #0b4123; transform: translateY(-2px); }

/* ==========================================================================
   الفوتر وسطر الحقوق للمطور المهندس زياد
   ========================================================================== */
.snb-footer { background: #051e11; padding: 40px 0; color: #cbd5e1; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.05); }
.snb-footer-content { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; }
.developer-credits { font-size: 12.5px; color: #F0C215; font-weight: 600; opacity: 0.95; }

/* تأثيرات حركات السكرول الحية */
.fade-up {
  opacity: 0; transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.back-top {
  position: fixed; bottom: 20px; left: 20px; width: 40px; height: 40px; border-radius: 4px;
  border: none; background: #115E33; color: white; font-size: 18px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 50;
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   تجاوب واستقرار الهواتف الذكية بنسبة 100% وبأبعاد ملمومة ومرتبة
   ========================================================================== */
@media (max-width: 950px) {
  .snb-section { padding: 50px 0; }
  .menu-burger { display: flex; }
  .nav-menu {
    position: fixed; top: 70px; right: -100%; width: 230px; height: calc(100vh - 70px);
    background: #ffffff; flex-direction: column; align-items: flex-start; padding: 35px 25px; gap: 24px;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -10px 10px 25px rgba(0,0,0,0.04);
  }
  .nav-menu.active { right: 0; }

  /* بنر الهيدر الممركز علوياً للجوال */
  .snb-hero { min-height: 42vh; padding: 90px 0 40px 0; }
  .hero-text-block h1 { font-size: 24px; line-height: 1.35; margin-bottom: 12px; }
  .hero-text-block p { font-size: 14px; padding: 0; }

  .snb-title, .snb-title-white { font-size: 22px; }
  .snb-desc, .snb-desc-light { font-size: 14px; }

  /* تحويل كافة تصنيفات الشبكات لتصطف عمودياً بنظام البطاقة المحكومة الملمومة */
  .snb-grid-two, .snb-stats-grid, .snb-gallery-grid { 
    grid-template-columns: 1fr !important; 
    gap: 16px; 
    margin-top: 25px;
  }

  /* بطاقات الإحصائيات بالجوال */
  .stat-item-block { padding: 25px 15px; border-radius: 16px; }
  .stat-number { font-size: 28px; margin-bottom: 6px; }
  .stat-label { font-size: 13px; }

  /* لوحة الشرف والتميز بالجوال ومحاذاة اليمين المتناسقة */
  .snb-achievement-panel { padding: 25px 15px; border-radius: 16px; margin-top: 25px; }
  .panel-inner-title { font-size: 19px; margin-bottom: 16px; }
  .achievement-bullets-list li { padding: 12px 14px; gap: 10px; }
  .achievement-bullets-list li p { font-size: 14px; text-align: right; }
  .medal-icon { font-size: 18px; }

  /* كروت معرض الصور بالأبعاد الملمومة المستقرة بالجوال */
  .gallery-card-block { border-radius: 16px; }
  .img-container { height: 195px; }
  .card-caption-overlay { font-size: 12.5px; padding: 12px 8px; }
  .full-width-card .img-container { height: 195px; }

  /* بطاقة الشكر والتقدير بالجوال */
  .appreciation-section-gray { padding: 40px 10px; }
  .appreciation-card { padding: 30px 15px; border-radius: 20px; }
  .appreciation-logo-container img { width: 140px; }
  .appreciation-card h2 { font-size: 21px; margin-bottom: 16px; }
  .appreciation-text-content p { font-size: 14px; line-height: 1.6; }
  .btn-appreciation-pill { padding: 10px 30px; font-size: 14px; border-radius: 8px; }
  
  .lightbox-close { top: 15px; left: 15px; font-size: 34px; }
}