/* =========================================================
   ملف تنسيقات موقع شركة التيسير للملاحة (FULL) - UPDATED
   - خط: Droid Arabic Kufi
   - خلفية: تدرّج أزرق
   - هيدر: NavBar واحد (Logo + Name + Lang + Links) داخل Container
   - موبايل: (Logo + Lang) يسار، Hamburger يمين، واللغة داخل القائمة أيضاً
   - إصلاح فراغ يسار/Scroll أفقي على الشاشات الصغيرة
   ========================================================= */

/* إعدادات عامة */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* يمنع أي تمدد أفقي */
}

body {
    margin: 0;
    font-family: 'Droid Arabic Kufi', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(to bottom, #013a63, #045a80);
    color: #fff;
    overflow-x: hidden; /* الحل الأساسي لمشكلة الفراغ/التمدد */
}

/* قاعدة عامة للصور تمنع تجاوز العرض */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== خلفية العلامة المائية العامة (world-bg.png) ===== */
.bg-watermark {
    position: fixed;
    inset: 0;
    background: url("img/world-bg.png") no-repeat center center;
    background-size: contain;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* على الشاشات الصغيرة: cover لتجنب أي فراغ بصري */
@media (max-width: 900px) {
    .bg-watermark {
        background-size: cover;
        opacity: 0.25;
    }
}

/* نرفع محتوى الموقع فوق العلامة المائية */
.main-header,
main,
.main-footer {
    position: relative;
    z-index: 1;
}

/* حاوية مركزية عامة لكل السكاشن */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* =========================================================
   HEADER - NavBar واحد
   ========================================================= */

.main-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding-top: 16px;
}

/* NavBar */
.nav-bar {
    /* نثبّت توزيع الأعمدة بصرياً (يسار/وسط/يمين) */
    position: relative;
    direction: ltr; /* حتى يبقى اللوغو يسار والهامبرغر يمين دائماً */

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;

    padding: 10px 12px;
    border-radius: 20px;
/*
    background: rgba(255, 255, 255, 0.334); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
*/

    overflow: hidden;
}

/* Checkbox مخفي ولكن قابل للتبديل عبر label */
.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

/* يسار: لوغو + لغة (موبايل) */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    width: clamp(140px, 18vw, 230px); /* بدون أرقام ثابتة تسبب overflow */
    height: auto;
}

/* وسط: روابط */
.main-nav {
    justify-self: center;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(14px, 2.6vw, 52px);
    min-width: 0;
}

/* نحافظ على اتجاه ترتيب الروابط حسب لغة الصفحة */
html[dir="rtl"] .main-nav { direction: rtl; }
html[dir="ltr"] .main-nav { direction: ltr; }

.main-nav a {
    text-decoration: none;
    color: #013a63; /* أزرق */
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 800;
    white-space: nowrap;
}

.main-nav a:hover {
    opacity: 0.9;
}

/* يمين: اسم الشركة + لغة (ديسكتوب) + هامبرغر */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;

    justify-content: flex-end;
    min-width: 0;

    /* اتجاه النص حسب اللغة */
}

html[dir="rtl"] .nav-right { direction: rtl; }
html[dir="ltr"] .nav-right { direction: ltr; }

.header-company-name {
    text-align: center;
    color: #013a63; /* أزرق */
    font-size: clamp(13px, 1.2vw, 18px);
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;

}

/* زر اللغة */
.lang-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 44px;
    height: 40px;
    padding: 0 12px;

    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;

    color: #013a63; /* أزرق */
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(1, 58, 99, 0.18);
}

.lang-icon:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* إخفاء زر اللغة داخل القائمة على الديسكتوب */
.lang-in-menu {
    display: none;
}

/* هامبرغر */
.nav-toggle-btn {
    display: none; /* يظهر بالموبايل فقط */
    cursor: pointer;
    width: 34px;
    height: 28px;
    position: relative;
}

.nav-toggle-btn span {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 999px;
    background-color: #013a63; /* أزرق */
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-btn span:nth-child(1) { top: 4px; }
.nav-toggle-btn span:nth-child(2) { top: 12px; }
.nav-toggle-btn span:nth-child(3) { top: 20px; }

/* أنيميشن تحويل الهامبرغر لـ X */
.nav-toggle:checked ~ .nav-right .nav-toggle-btn span:nth-child(1) {
    top: 12px;
    transform: rotate(45deg);
}
.nav-toggle:checked ~ .nav-right .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
}
.nav-toggle:checked ~ .nav-right .nav-toggle-btn span:nth-child(3) {
    top: 12px;
    transform: rotate(-45deg);
}

/* المساحة بعد الهيدر */
main {
    padding-top: 0;
}

/* =========================================================
   Responsive (900px) - Mobile Header
   ========================================================= */
@media (max-width: 900px) {
    .main-header {
        padding-top: 12px;
    }

    .nav-bar {
        grid-template-columns: 1fr auto; /* يسار/يمين */
        border-radius: 18px;
        padding: 10px 10px;
    }

    /* نخفي اسم الشركة على الموبايل لتفادي الزحمة */
    .header-company-name {
        display: none;
    }

    /* زر لغة الديسكتوب نخفيه */
    .lang-desktop {
        display: none;
    }

    /* نظهر الهامبرغر */
    .nav-toggle-btn {
        display: block;
    }

    /* نحول الـ nav لقائمة منسدلة */
    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 8px;
        padding: 12px;
        background: rgb(241, 11, 11);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 18px;
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-toggle:checked ~ .main-nav {
        max-height: 520px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        color: #013a63;
        padding: 12px 12px;
        border-radius: 14px;
        text-align: right;
        font-weight: 900;
        background: rgba(1, 58, 99, 0.02);
    }

    .main-nav a:hover {
        background: rgba(1, 58, 99, 0.08);
    }

    /* زر اللغة داخل القائمة يظهر بالموبايل */
    .lang-in-menu {
        display: inline-flex;
        justify-content: center;
        text-align: center;
        margin-top: 6px;
    }

    /* يسار: لوغو + لغة */
    .header-logo img {
        width: 160px;
    }
}

/* =========================================================
   Responsive (600px)
   ========================================================= */
@media (max-width: 600px) {
    .header-logo img {
        width: 150px;
    }

    .nav-bar {
        padding: 9px 9px;
    }
}


/* =========================================================
   HEADER - Full width background + working mobile dropdown
   ========================================================= */

.main-header{
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: 12px;
}

/* الخلفية البيضاء الشفافة بعرض الشاشة كامل */
.nav-shell{
  width: 100%;
  height: 150px;
  background: rgba(255, 255, 255, 0.044);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(21, 0, 0, 0.22);
  /* إذا بدك حواف ناعمة */
  border-radius: 0;
}

/* محتوى الناف داخل الكونتينر */
.nav-bar{
  position: relative;
  direction: ltr; /* لوغو يسار - هامبرغر يمين */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;

  padding: 10px 0;     /* padding عمودي */
  overflow: visible;   /* ✅ أهم سطر: يمنع قص القائمة المنسدلة */
}

/* Checkbox مخفي */
.nav-toggle{
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* يسار: لوغو + لغة موبايل */
.nav-left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img{
  width: clamp(140px, 18vw, 100px);
  height: auto;
}

/* وسط: روابط */
.main-nav{
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 52px);
  min-width: 0;
}

html[dir="rtl"] .main-nav{ direction: rtl; }
html[dir="ltr"] .main-nav{ direction: ltr; }

.main-nav a{
  text-decoration: none;
  color: #013a63;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 800;
  white-space: nowrap;
}

/* يمين: اسم + لغة ديسكتوب + هامبرغر */
.nav-right{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

html[dir="rtl"] .nav-right{ direction: rtl; }
html[dir="ltr"] .nav-right{ direction: ltr; }

.header-company-name{
  color: #013a63;
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

/* زر اللغة */
.lang-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  color: #013a63;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(1, 58, 99, 0.18);
}

.lang-in-menu{ display: none; }

/* هامبرغر */
.nav-toggle-btn{
  display: none;
  cursor: pointer;
  width: 34px;
  height: 28px;
  position: relative;
}

.nav-toggle-btn span{
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  border-radius: 999px;
  background-color: #013a63;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-btn span:nth-child(1){ top: 4px; }
.nav-toggle-btn span:nth-child(2){ top: 12px; }
.nav-toggle-btn span:nth-child(3){ top: 20px; }

/* X */
.nav-toggle:checked ~ .nav-right .nav-toggle-btn span:nth-child(1){
  top: 12px; transform: rotate(45deg);
}
.nav-toggle:checked ~ .nav-right .nav-toggle-btn span:nth-child(2){
  opacity: 0;
}
.nav-toggle:checked ~ .nav-right .nav-toggle-btn span:nth-child(3){
  top: 12px; transform: rotate(-45deg);
}

/* =========================================================
   Mobile dropdown
   ========================================================= */
@media (max-width: 900px){
  .nav-bar{
    grid-template-columns: 1fr auto; /* يسار/يمين */
    padding: 10px 0;
  }

  .header-company-name{ display: none; }
  .lang-desktop{ display: none; }
  .nav-toggle-btn{ display: block; }

  .header-logo img{ width: 160px; }

  /* القائمة المنسدلة */
  .main-nav{
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;

    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    gap: 8px;
    padding: 12px;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;

    z-index: 999; /* ✅ لضمان تظهر فوق الهيرو */
  }

  .nav-toggle:checked ~ .main-nav{
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a{
    color: #013a63;
    padding: 12px 12px;
    border-radius: 14px;
    text-align: right;
    font-weight: 900;
    background: rgba(1, 58, 99, 0.02);
  }

  .main-nav a:hover{
    background: rgba(1, 58, 99, 0.08);
  }

  /* زر اللغة داخل القائمة */
  .lang-in-menu{
    display: inline-flex;
    justify-content: center;
    text-align: center;
    margin-top: 6px;
  }
}

@media (max-width: 600px){
  .header-logo img{ width: 150px; }
}

/* =========================================================
   قسم الهيرو / السلايدر
   ========================================================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: stretch;

    background-color: #01253f;
}

/* حاوية السلايدر */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* كل سلايد */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroSlide 25s infinite; /* 5 صور × 5 ثواني */
    transform: scale(1);
}

.hero-slide.slide-1 { background-image: url("img/hero1.jpg"); animation-delay: 0s; }
.hero-slide.slide-2 { background-image: url("img/hero2.jpg"); animation-delay: 5s; }
.hero-slide.slide-3 { background-image: url("img/hero3.jpg"); animation-delay: 10s; }
.hero-slide.slide-4 { background-image: url("img/hero4.jpg"); animation-delay: 15s; }
.hero-slide.slide-5 { background-image: url("img/hero5.jpg"); animation-delay: 20s; }

@keyframes heroSlide {
    0%   { opacity: 0; transform: scale(1); }
    5%   { opacity: 1; transform: scale(1.02); }
    25%  { opacity: 1; transform: scale(1.05); }
    30%  { opacity: 0; transform: scale(1.07); }
    100% { opacity: 0; transform: scale(1.07); }
}

/* طبقة التعتيم */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4),
        rgba(1, 38, 71, 0.5)
    );
    z-index: 2;
}

/* حاوية الكابشنات */
.hero-captions {
    position: absolute;
    z-index: 3;
    left: 12%;
    right: 12%;
    bottom: 20%;
    text-align: right;
}

.hero-caption {
    position: absolute;
    opacity: 0;
    animation: heroCaption 25s infinite;
}

.hero-caption h1 {
    margin: 0 0 10px;
    font-size: 36px;
}

.hero-caption .hero-subtitle {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
}

@keyframes heroCaption {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    20%  { opacity: 1; }
    25%  { opacity: 0; }
    100% { opacity: 0; }
}

.caption-1 { animation-delay: 0s; }
.caption-2 { animation-delay: 5s; }
.caption-3 { animation-delay: 10s; }
.caption-4 { animation-delay: 15s; }
.caption-5 { animation-delay: 20s; }

/* محتوى هيرو ثابت للصفحات الأخرى */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: right;
    margin-top: auto;
    margin-bottom: 40px;
}

.hero-content h1 {
    margin: 0 0 10px;
    font-size: 32px;
}

.hero-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.85;
}

/* =========================================================
   أقسام عامة
   ========================================================= */

.section {
    padding: 40px 0;
}

.section-bg {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent);
}

.section-title {
    color: #ffd166;
    margin: 0 0 24px;
    font-size: 24px;
}

.section-title.center {
    text-align: center;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* زر "عرض كل الأخبار" */
.link-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
}

.link-more img {
    max-width: 100%; /* كان 200% ويسبب تمدد */
    height: auto;
}

.link-more:hover {
    transform: translateX(-2px);
}

/* =========================================================
   سكشن الكروت التعريفية
   ========================================================= */

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    column-gap: 40px;
    row-gap: 32px;
    justify-content: center;
}

.info-cards-grid .info-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
}

.info-card {
    text-decoration: none;
    color: #ffffff;
}

.info-card-inner {
    width: 260px;
    height: 150px;
    background: #0c3854;
    border-radius: 26px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin: 0 auto;
}

.info-card-icon {
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
}

.info-card-title {
    font-size: 18px;
    font-weight: 700;
}

.info-card:nth-child(5) .info-card-inner {
    width: 280px;
}

.info-card:hover .info-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.55);
    background: #104568;
}

@media (max-width: 700px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card-inner,
    .info-card:nth-child(5) .info-card-inner {
        width: 100%;
        max-width: 280px;
    }
}

/* =========================================================
   شبكة الكروت العامة (آخر الأخبار)
   ========================================================= */

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.news-card {
    background: rgba(2, 55, 95, 0.95);
    border-radius: 16px;
    overflow: hidden;
    flex: 1 1 280px;
    min-width: 260px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
    background: rgba(10, 80, 128, 0.98);
}

.card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.card-content {
    padding: 14px 16px 18px;
}

.card-content h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.card-content p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.8;
}

.btn-secondary {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #ffd166;
    color: #ffd166;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn-secondary:hover {
    background: #ffd166;
    color: #002b4d;
    transform: translateY(-1px);
}

/* =========================================================
   أقسام من نحن / رؤيتنا / لماذا نحن
   ========================================================= */

.split-section {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-image,
.split-text {
    flex: 1 1 50%;
}

.split-image img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.split-text p {
    font-size: 14px;
    line-height: 2;
    margin-top: 0;
}

.split-text p + p {
    margin-top: 10px;
}

.highlight-text {
    font-weight: 700;
    color: #ffd166;
}

/* =========================================================
   سكشن خدماتنا (pills)
   ========================================================= */

.services-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

.service-pill {
    flex: 0 0 calc(50% - 20px);
    max-width: 420px;
    height: 80px;
    border-radius: 999px;
    background: rgba(73, 142, 196, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.service-pill:last-child {
    flex: 0 0 60%;
    max-width: 500px;
}

.service-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.45);
    background: rgba(10, 80, 128, 1);
}

/* =========================================================
   كروت الشركات في الصفحة الرئيسية
   ========================================================= */

.companies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.company-card {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 1 200px;
}

.card-image-wrapper {
    width: 210px;
    height: 210px;
    border-radius: 26px;
    background: rgba(2, 55, 95, 0.95);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.company-card img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10%;
    object-fit: contain;
}

.company-card:hover .card-image-wrapper {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
    background: rgba(10, 80, 128, 0.98);
}

.company-name {
    font-size: 20px;
    text-align: center;
}

/* =========================================================
   صفحة الأخبار
   ========================================================= */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-list-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    background: rgba(2, 55, 95, 0.96);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.news-list-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
    background: rgba(10, 80, 128, 0.98);
}

.news-list-text {
    flex: 1 1 60%;
}

.news-list-text h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.news-list-text p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 2;
}

.news-date {
    font-size: 12px;
    opacity: 0.8;
}

.news-list-image {
    flex: 0 0 160px;
}

.news-list-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
}

/* =========================================================
   صفحة الشركات (التايملاين + الخريطة)
   ========================================================= */

.timeline {
    border-inline-start: 2px solid rgba(255, 255, 255, 0.15);
    margin-inline-start: 20px;
    padding-inline-start: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    padding-inline-start: 18px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    inset-inline-start: -11px;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffd166;
}

.timeline-text {
    flex: 1 1 60%;
    background: rgba(2, 55, 95, 0.96);
    padding: 12px 14px;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.timeline-text h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.timeline-text p {
    margin: 0;
    font-size: 13px;
    line-height: 2;
}

.timeline-logo {
    flex: 0 0 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-logo img {
    max-width: 110px;
    max-height: 110px;
    object-fit: contain;
}

.map-section {
    padding-top: 50px;
}

.map-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.map-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   صفحة الخدمات التفصيلية
   ========================================================= */

.services-page {
    max-width: 900px;
    margin: 0 auto;
}

.service-block {
    margin-bottom: 40px;
    padding-bottom: 16px;
}

.service-block + .service-block {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
}

.service-block-header {
    text-align: center;
    margin-bottom: 16px;
}

.service-block-title {
    margin: 0;
    font-size: 22px;
}

.service-block-separator {
    position: relative;
    height: 24px;
    margin-top: 8px;
}

.service-block-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline: 0;
    height: 2px;
    background-color: rgba(255, 209, 102, 0.8);
}

.service-block-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffd166;
    background-color: #013a63;
}

.service-block-body p {
    font-size: 14px;
    line-height: 2;
    margin: 0 0 8px;
}

.service-block-body ul {
    margin: 0;
    padding-inline-start: 18px;
}

.service-block-body li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 2;
}

/* =========================================================
   الفوتر
   ========================================================= */

.main-footer {
    margin-top: 40px;
    background: linear-gradient(to bottom, #03619a, #2b84c1);
    color: #ffffff;
    font-size: 13px;
}

.footer-top {
    padding-top: 32px;
}

.footer-grid {
    direction: ltr;
    display: grid;
    grid-template-areas: "right center left";
    column-gap: 40px;
    align-items: flex-start;
    min-height: 260px;
}

.footer-block {
    font-size: 13px;
}

.footer-block-right {
    grid-area: right;
    direction: rtl;
    text-align: right;
}

/* (اختياري) تركتها كما هي */
.footer-block-right .footer-contact {
    margin-top: 125%;
    margin-bottom: 0%;
}

.footer-block-center {
    grid-area: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-block-center img {
    max-width: 100%; /* كان 500% ويسبب تمدد أفقي */
    height: auto;
    opacity: 0.25;
}

.footer-block-left {
    grid-area: left;
    direction: rtl;
    text-align: right;
}

.footer-title {
    position: relative;
    display: inline-block;
    margin: 0 0 12px;
    padding-bottom: 6px;
    font-size: 20px;
    color: #ffd166;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 110%;
    height: 2px;
    background-color: #ffffff;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li {
    margin-bottom: 6px;
    line-height: 1.8;
    position: relative;
    padding-inline-start: 12px;
}

.footer-list li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    color: #ffd166;
}

.footer-list a {
    color: #ffffff;
    text-decoration: none;
}

.footer-list a:hover {
    text-decoration: underline;
}

.footer-contact {
    margin-top: 20px;
}

.footer-phone {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}

.footer-contact-text {
    margin: 0;
    font-size: 14px;
}

.footer-contact-word {
    color: #ffd166;
    text-decoration: underline;
}

.footer-domain-row {
    padding: 10px 0 4px;
    text-align: center;
}

.footer-domain {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.footer-bottom {
    padding: 6px 0 16px;
}

.footer-bottom-inner {
    position: relative;
}

.footer-dashed-line {
    position: relative;
    border-bottom: 3px dashed #ffffff;
    margin-top: 0px;
}

.footer-location-pin {
    position: absolute;
    inset-inline-end: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: transparent;
}

.footer-location-text {
    margin: 10px 0 0;
    text-align: right;
    font-size: 13px;
}

.footer-city {
    color: #ffd166;
    font-weight: 700;
}

/* =========================================================
   Responsive (900px) لباقي الصفحة
   ========================================================= */

@media (max-width: 900px) {
    .split-section {
        flex-direction: column;
    }

    .split-section.reverse {
        flex-direction: column;
    }

    .news-list-card {
        flex-direction: column;
    }

    .news-list-image {
        flex: 1 1 auto;
    }

    .timeline {
        border-inline-start: none;
        margin-inline-start: 0;
        padding-inline-start: 0;
    }

    .timeline-item {
        flex-direction: column-reverse;
        padding-inline-start: 0;
    }

    .timeline-item::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "right"
            "center"
            "left";
        row-gap: 24px;
        text-align: center;
        direction: rtl;
    }

    .footer-block-right,
    .footer-block-left {
        text-align: right;
    }

    .footer-location-text {
        text-align: center;
    }

    .hero-captions {
        left: 10%;
        right: 10%;
        bottom: 24%;
    }
}

/* =========================================================
   Responsive (600px)
   ========================================================= */

@media (max-width: 600px) {
    .hero-caption h1 {
        font-size: 24px;
    }

    .hero-caption .hero-subtitle {
        font-size: 13px;
    }

    .services-pills {
        flex-direction: column;
    }

    .service-pill,
    .service-pill:last-child {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .hero-captions {
        left: 8%;
        right: 8%;
        bottom: 28%;
    }
}
