/* ============================================================
   BRAND SYSTEM (مستمدة من ملف styles.css والبروشور)
   ============================================================ */
:root {
  --ibb-blue: #7fabda;
  --ibb-blue-dark: #0a3768;
  --ibb-sky: #1e88c7;
  --ibb-orange: #f26a1f;
  --ibb-orange-soft: #ffb27a;
  --ibb-green: #4fae3e;
  --ibb-teal: #1ab5b0;
  --ibb-sand: #fbf7ef;
  --ibb-ink: #0d1b2a;
  --ibb-muted: #5b6b7d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: #ffffff;
  color: var(--ibb-ink);
  padding-top: 70px;
  /* تعويض المسافة للشريط الثابت */
  overflow-x: hidden;
}

@media (min-width: 992px) {
  body {
    padding-top: 110px;
    /* زيادة المسافة عند وجود الشريط العلوي */
  }
}

/* ---------- الخطوط ---------- */
.font-display {
  font-family: 'Amiri', serif;
}

/* ---------- الشريط العلوي (Topbar) ---------- */
.ibb-topbar {
  background: linear-gradient(90deg, #051629 0%, #08213d 50%, #0a2d54 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1060 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.topbar-info-item {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 0.15rem 0.4rem;
  border-radius: 0.4rem;
}

.topbar-info-item i {
  transition: transform 0.3s ease;
}

a.topbar-info-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

a.topbar-info-item:hover i {
  transform: scale(1.25);
}

.topbar-lang-badge {
  color: #ffffff !important;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.75rem;
  border-radius: 50rem;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.topbar-lang-badge:hover {
  background: var(--ibb-orange);
  border-color: var(--ibb-orange);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(240, 107, 39, 0.4);
  transform: translateY(-1px);
}

.topbar-social-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.ibb-topbar .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ibb-topbar .social-icons a:hover {
  transform: translateY(-2px) scale(1.12);
  color: #ffffff !important;
}

.ibb-topbar .social-icons a.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.ibb-topbar .social-icons a.instagram:hover {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  border-color: #dc2743;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
}

.ibb-topbar .social-icons a.twitter:hover {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ibb-topbar .social-icons a.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* ---------- شريط التنقل (Navbar) والتصاميم الحديثة ---------- */
.ibb-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 25px rgba(15, 76, 140, 0.08);
  transition: all 0.35s ease;
  padding: 0.6rem 0;
  position: fixed;
  top: 38px;
  right: 0;
  left: 0;
  z-index: 1050 !important;
  border-bottom: 1px solid rgba(15, 76, 140, 0.08);
}

@media (max-width: 991.98px) {
  .ibb-nav {
    top: 0;
  }
}

.ibb-nav.scrolled {
  box-shadow: 0 8px 30px rgba(15, 76, 140, 0.15);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.4rem 0;
}

.ibb-nav .navbar-brand .brand-mark {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.ibb-nav .navbar-brand:hover .brand-mark {
  transform: scale(1.04);
}

/* Nav Links Styling */
.ibb-nav .nav-link {
  color: #1a2b3c;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  position: relative;
}

.ibb-nav .nav-link:hover {
  color: var(--ibb-blue);
  background: rgba(30, 136, 199, 0.08);
  transform: translateY(-1px);
}

.ibb-nav .nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--ibb-blue), var(--ibb-blue-dark));
  box-shadow: 0 4px 15px rgba(15, 76, 140, 0.3);
}

.ibb-nav .nav-link.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 76, 140, 0.4);
}

/* Dropdown Submenu Design */
.ibb-nav .dropdown-menu {
  min-width: 260px;
  border: 1px solid rgba(15, 76, 140, 0.1) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(15, 76, 140, 0.15) !important;
  margin-top: 0.5rem !important;
  transition: all 0.25s ease-in-out;
}

@media (min-width: 992px) {
  .ibb-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .ibb-nav .nav-item.dropdown > .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
}

.dropdown-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ibb-nav .dropdown-item {
  transition: all 0.25s ease;
}

.ibb-nav .dropdown-item:hover {
  background: rgba(30, 136, 199, 0.06);
  transform: translateX(-4px);
}

[dir="ltr"] .ibb-nav .dropdown-item:hover {
  transform: translateX(4px);
}

.ibb-nav .dropdown-item:hover .dropdown-icon-box {
  transform: scale(1.1);
}

.extra-small {
  font-size: 0.75rem;
}

/* Offcanvas Mobile Navigation */
.offcanvas-links li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--ibb-ink);
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.offcanvas-links li a:hover,
.offcanvas-links li a.active {
  background: rgba(30, 136, 199, 0.08);
  color: var(--ibb-blue);
  padding-inline-start: 1.25rem;
}

/* ---------- الأزرار ---------- */
.btn-accent {
  background: var(--ibb-orange);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 8px 25px -8px rgba(242, 106, 31, 0.5);
  transition: all 0.25s;
}

.btn-accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -10px rgba(242, 106, 31, 0.6);
}

.btn-outline-light-custom {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-weight: 700;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  transition: all 0.25s;
}

.btn-outline-light-custom:hover {
  background: #fff;
  color: var(--ibb-blue);
  border-color: #fff;
}

.btn-primary-custom {
  background: var(--ibb-blue);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 8px 25px -8px rgba(15, 76, 140, 0.5);
  transition: all 0.25s;
}

.btn-primary-custom:hover {
  background: var(--ibb-blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -10px rgba(15, 76, 140, 0.6);
}

/* ---------- قسم الهيرو (Hero) ---------- */
.ibb-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.ibb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 55, 104, 0.85) 0%, rgba(15, 76, 140, 0.5) 60%, rgba(10, 55, 104, 0.3) 100%),
    url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.ibb-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
}

.ibb-hero h1 {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.2;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.ibb-hero .lead {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  max-width: 600px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  backdrop-filter: blur(10px);
}

.hero-stats .stat strong {
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.hero-stats .stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 575.98px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- الأقسام العامة ---------- */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: var(--ibb-sand);
}

.section-dark {
  background: linear-gradient(135deg, var(--ibb-blue-dark), var(--ibb-blue));
  color: #fff;
}

.section-tag {
  display: inline-block;
  color: var(--ibb-orange);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(242, 106, 31, 0.2);
  padding: 0.2rem 1rem;
  border-radius: 50px;
}

.section-title {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--ibb-ink);
  margin-bottom: 0.5rem;
}

.section-dark .section-title {
  color: #fff;
}

.section-sub {
  color: var(--ibb-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.section-dark .section-sub {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- بطاقات الرؤية والرسالة ---------- */
.pillar-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  height: 100%;
  border: 1px solid rgba(15, 76, 140, 0.06);
  box-shadow: 0 10px 40px -20px rgba(15, 76, 140, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--ibb-orange);
  box-shadow: 0 20px 60px -25px rgba(15, 76, 140, 0.3);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--ibb-blue), var(--ibb-sky));
}

.pillar-icon.orange {
  background: linear-gradient(135deg, var(--ibb-orange), #ffa268);
}

.pillar-icon.green {
  background: linear-gradient(135deg, var(--ibb-green), #86d375);
}

.pillar-icon.teal {
  background: linear-gradient(135deg, var(--ibb-teal), #6bd8d4);
}

.pillar-card h3 {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ibb-ink);
}

.pillar-card p {
  color: var(--ibb-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

/* ---------- بطاقات الخدمات ---------- */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000;
  min-height: 280px;
  color: #fff;
  isolation: isolate;
  transition: transform 0.3s ease;
  box-shadow: 0 15px 40px -20px rgba(0, 0, 0, 0.4);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 30, 60, 0.1) 0%, rgba(10, 30, 60, 0.5) 50%, rgba(10, 30, 60, 0.92) 100%);
}

.service-card .service-body {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 1.5rem 1.25rem;
}

.service-card .service-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ibb-orange-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.service-card h3 {
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
}

.service-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ---------- معرض الصور (شبكي) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
}

.gallery-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.08);
}

.gallery-grid figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 30, 60, 0.7));
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-grid figure:hover::after {
  opacity: 1;
}

.gallery-grid figure figcaption {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  left: 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  z-index: 1;
}

.gallery-grid figure:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid .g-lg {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid .g-tall {
  grid-row: span 2;
}

@media (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }

  .gallery-grid .g-lg {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 120px;
    gap: 0.6rem;
  }

  .gallery-grid .g-lg {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* ---------- بطاقة الحجز (CTA) ---------- */
.cta-card {
  background: linear-gradient(135deg, var(--ibb-blue-dark), var(--ibb-blue) 60%, var(--ibb-sky));
  color: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(242, 106, 31, 0.4), transparent 70%);
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(79, 174, 62, 0.25), transparent 70%);
}

/* ---------- بطاقات الاتصال ---------- */
.contact-tile {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(15, 76, 140, 0.06);
  box-shadow: 0 4px 15px rgba(15, 76, 140, 0.04);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-tile .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(30, 136, 199, 0.1);
  color: var(--ibb-blue);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-tile h4 {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.1rem;
  color: var(--ibb-ink);
}

.contact-tile p,
.contact-tile a {
  margin: 0;
  color: var(--ibb-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

/* ---------- الفوتر ---------- */
.ibb-footer {
  background: linear-gradient(180deg, #08213d 0%, #051530 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 0;
  position: relative;
  overflow: hidden;
}

/* ---------- فاصل أسفل الفوتر (Footer Bottom Shape) ---------- */
.footer-bottom-shape {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  /*margin-top: 1.5rem;*/
}

.footer-bottom-shape img {
  width: 100%;
  height: auto;
  min-height: 60px;
  max-height: 180px;
  display: block;
  object-fit: cover;
}

.newsletter-strip {
  background: linear-gradient(135deg, var(--ibb-blue), var(--ibb-sky));
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 50px -20px rgba(15, 76, 140, 0.5);
  position: relative;
  z-index: 2;
  color: #fff;
}

.newsletter-strip .form-control {
  border: none;
  border-radius: 50px;
  padding: 0.7rem 1.2rem;
}

.ibb-footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.ibb-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--ibb-orange);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  padding: 0.3rem 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

.footer-links a::before {
  content: '\F285';
  font-family: 'bootstrap-icons';
  margin-left: 0.4rem;
  color: var(--ibb-orange);
  font-size: 0.7rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
  color: var(--ibb-orange);
  width: 18px;
  text-align: center;
}

.footer-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
  margin-left: 0.3rem;
}

.footer-social a:hover {
  background: var(--ibb-orange);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- زر واتساب العائم ---------- */
.wa-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1030;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.8s infinite;
  text-decoration: none;
  transition: transform 0.2s;
}

.wa-fab:hover {
  color: #fff;
  transform: scale(1.05);
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ---------- أنيميشن الظهور ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 {
  transition-delay: 0.1s;
}

.fade-up.delay-2 {
  transition-delay: 0.25s;
}

.fade-up.delay-3 {
  transition-delay: 0.4s;
}

.fade-up.delay-4 {
  transition-delay: 0.55s;
}

/* ---------- تصحيح الأوف كانفس ---------- */
.offcanvas.offcanvas-end {
  width: 320px;
  max-width: 85vw;
}

.offcanvas-links {
  list-style: none;
  padding: 0;
}

.offcanvas-links li a {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  color: var(--ibb-ink);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.offcanvas-links li a:hover {
  background: rgba(30, 136, 199, 0.08);
  color: var(--ibb-blue);
  transform: translateX(-4px);
}

.offcanvas-links li a i {
  color: var(--ibb-blue);
  font-size: 1.1rem;
}

/* ---------- تحسينات عامة للموبايل ---------- */
@media (max-width: 767.98px) {
  .section {
    padding: 3rem 0;
  }

  .cta-card {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .ibb-hero {
    min-height: 75vh;
  }

  .newsletter-strip {
    padding: 1.2rem;
    /*margin-top: -2.5rem;*/
    border-radius: 1rem;
  }

  .pillar-card {
    padding: 1.25rem;
  }

  .service-card {
    min-height: 220px;
  }
}

@media (max-width: 400px) {
  .ibb-hero h1 {
    font-size: 1.8rem;
  }

  .hero-stats .stat strong {
    font-size: 1.2rem;
  }

  .btn-accent,
  .btn-primary-custom {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* منع التمرير الجانبي */
.container,
.container-fluid {
  overflow: hidden;
}

/* تنسيق نموذج الحجز */
.form-control,
.form-select {
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(15, 76, 140, 0.12);
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ibb-sky);
  box-shadow: 0 0 0 0.2rem rgba(30, 136, 199, 0.15);
}

.form-label {
  font-weight: 600;
  color: var(--ibb-ink);
  font-size: 0.9rem;
}

/* ===== شعار placeholder (يمكن استبداله بصورة حقيقية) ===== */
.brand-logo-text {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ibb-blue);
}

.brand-logo-text span {
  color: var(--ibb-orange);
}

/* ===== تنسيقات صفحة من نحن (About Us Page Styles) ===== */
.page-hero {
  background: linear-gradient(135deg, rgba(10, 55, 104, 0.9) 0%, rgba(15, 76, 140, 0.75) 100%), url('../images/1.jpg') center/cover no-repeat;
  padding: 5rem 0 3.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'Amiri', serif;
  color: #fff;
}

.floating-badge {
  position: absolute;
  background: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 2;
  transition: transform 0.3s ease;
}

.floating-badge:hover {
  transform: translateY(-5px);
}

.badge-top-right {
  top: 15px;
  right: -15px;
}

.badge-bottom-left {
  bottom: 15px;
  left: -15px;
}

.gm-speech-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 20px 60px -15px rgba(15, 76, 140, 0.12);
  border: 1px solid rgba(15, 76, 140, 0.08);
  position: relative;
  overflow: hidden;
}

.gm-speech-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--ibb-orange), var(--ibb-blue));
}

.gm-avatar-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ibb-blue), var(--ibb-sky));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 10px 25px rgba(15, 76, 140, 0.25);
}

@media (min-width: 768px) {
  .border-start-md {
    border-inline-start: 1px solid rgba(15, 76, 140, 0.1) !important;
  }
}

@media (max-width: 767px) {

  .badge-top-right,
  .badge-bottom-left {
    position: static;
    margin-top: 1rem;
  }
}

/* ===== تنسيقات العدادات التفاعلية (Stat Counters) ===== */
.stats-counters-section {
  background: linear-gradient(180deg, #f8fafd 0%, #ffffff 100%);
  position: relative;
}

@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.stat-counter-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid rgba(15, 76, 140, 0.08);
  box-shadow: 0 10px 30px -10px rgba(15, 76, 140, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.stat-counter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ibb-blue), var(--ibb-orange));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.stat-counter-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px -15px rgba(15, 76, 140, 0.18);
  border-color: rgba(30, 136, 199, 0.3);
}

.stat-counter-card:hover::before {
  opacity: 1;
}

.stat-icon-wrapper {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon-wrapper.icon-green {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.stat-icon-wrapper.icon-orange {
  background: linear-gradient(135deg, var(--ibb-orange), #ffa268);
}

.stat-icon-wrapper.icon-teal {
  background: linear-gradient(135deg, var(--ibb-teal), #00cec9);
}

.stat-icon-wrapper.icon-gold {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.stat-icon-wrapper.icon-blue {
  background: linear-gradient(135deg, var(--ibb-blue), var(--ibb-sky));
}

.stat-number-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.counter-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ibb-ink);
  font-family: 'Cairo', sans-serif;
  line-height: 1;
}

.unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ibb-orange);
}

.stat-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ibb-blue-dark);
  margin-bottom: 0.3rem;
}

.stat-desc {
  font-size: 0.825rem;
  color: var(--ibb-muted);
  margin-bottom: 0;
}

/* ===== تنسيقات صفحة سياسة الخصوصية والشروط (Legal Pages) ===== */
.legal-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  scroll-margin-top: 100px;
}

.legal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(15, 76, 140, 0.1) !important;
  border-color: rgba(30, 136, 199, 0.25) !important;
}

.legal-icon {
  width: 50px;
  height: 50px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.legal-icon.icon-blue {
  background: linear-gradient(135deg, var(--ibb-blue), var(--ibb-sky));
}

.legal-icon.icon-green {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.legal-icon.icon-orange {
  background: linear-gradient(135deg, var(--ibb-orange), #ffa268);
}

.legal-icon.icon-gold {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.legal-icon.icon-teal {
  background: linear-gradient(135deg, var(--ibb-teal), #00cec9);
}

.legal-sidebar .list-group-item {
  font-weight: 600;
  color: var(--ibb-ink);
  transition: all 0.2s ease;
  background: #ffffff;
}

.legal-sidebar .list-group-item:hover,
.legal-sidebar .list-group-item.active {
  background: rgba(30, 136, 199, 0.08);
  color: var(--ibb-blue);
  padding-inline-start: 1.5rem;
}

/* ===== تنسيقات فاصل الشكل الهيدر (Hero Shape Divider) ===== */
.page-title-parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #ffffff;
  min-height: 480px;
  padding: 120px 0 100px;
  display: flex;
  align-items: center;
}

.page-title-parallax .parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-title-parallax .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(8, 33, 61, 0.9) 0%, rgba(15, 76, 140, 0.78) 60%, rgba(10, 55, 104, 0.65) 100%);
  z-index: 1;
}

.page-title-parallax .container {
  position: relative;
  z-index: 2;
}

.page-title-buttons .btn-hero-outline {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  border-radius: 50px;
  padding: 0.65rem 1.8rem;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(4px);
}

.page-title-buttons .btn-hero-outline:hover {
  background: #ffffff;
  color: var(--ibb-blue-dark);
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.shape-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
}

/* فاصل علوي داخل القسم (يُحقن كأول عنصر) */
.shape-divider-top {
  top: -1px;
  bottom: auto;
  transform: rotate(180deg);
}

.shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: var(--sd-h, 110px);
}

.shape-divider-fill {
  fill: var(--sdfill, #ffffff);
}

/* حاوية فاصل مستقلة بين الأقسام (موضع نسبي خاص بها) */
.shape-divider-standalone {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

@media (max-width: 767.98px) {
  .page-title-parallax {
    min-height: 380px;
    padding: 80px 0 60px;
  }

  .shape-divider svg {
    height: calc(var(--sd-h, 110px) * 0.55);
  }
}

/* ===== تنسيقات روابط قائمة الموبايل (Offcanvas Mobile Menu) ===== */
.offcanvas-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offcanvas-links li {
  margin-bottom: 0.5rem;
}

.offcanvas-links a {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.2rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ibb-ink);
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
}

.offcanvas-links a:hover {
  background: rgba(30, 136, 199, 0.08);
  color: var(--ibb-blue);
  transform: translateX(-5px);
}

[dir="ltr"] .offcanvas-links a:hover {
  transform: translateX(5px);
}

.offcanvas-links a.active {
  background: linear-gradient(135deg, var(--ibb-blue), var(--ibb-sky)) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(15, 76, 140, 0.25);
  font-weight: 700;
}

.offcanvas-links a.active i {
  color: #ffffff !important;
}

.offcanvas-links a i {
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

/* ===== فوتر قائمة الموبايل والتواصل الاجتماعي ===== */
.offcanvas-footer-box {
  background: linear-gradient(145deg, #f8fafd, #eef4f9);
  border: 1px solid rgba(15, 76, 140, 0.08);
  border-radius: 1.25rem;
  padding: 1.1rem;
  margin-top: auto;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.offcanvas-contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.offcanvas-contact-item:hover {
  background: #ffffff;
  border-color: var(--ibb-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 76, 140, 0.08);
}

.contact-icon-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.offcanvas-contact-item:hover .contact-icon-badge {
  transform: scale(1.15) rotate(5deg);
}

.contact-text span {
  font-size: 0.75rem;
  letter-spacing: 0.3px;
}

.contact-text strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.offcanvas-social-header {
  font-size: 0.8rem;
  color: var(--ibb-slate);
}

.social-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ibb-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-pill:hover {
  transform: translateY(-4px) scale(1.1);
  color: #ffffff !important;
}

.social-pill.facebook:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.35);
}

.social-pill.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
  border-color: #dc2743 !important;
  box-shadow: 0 8px 18px rgba(220, 39, 67, 0.35);
}

.social-pill.twitter:hover {
  background: #000000 !important;
  border-color: #000000 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.social-pill.whatsapp:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}

/* ===== شريط التنقل السريع للخدمات (Service Quick Jump Bar) ===== */
#service-nav {
  top: 60px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 992px) {
  #service-nav {
    top: 105px;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================================
   تنسيقات القائمة المنسدلة والترتيب الطبقي (Dropdown & Stacking Fixes)
   ============================================================ */
.ibb-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;
}

.ibb-nav {
  position: fixed !important;
  top: 38px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999990 !important;
  overflow: visible !important;
}

@media (max-width: 991.98px) {
  .ibb-nav {
    top: 0 !important;
  }
}

/* إيقاف الاقتصاص (Overflow Clipping) من الحاويات الداخلية للنافبار */
.ibb-nav .container,
.ibb-nav .navbar-collapse,
.ibb-nav .navbar-nav,
.ibb-nav .nav-item {
  overflow: visible !important;
}

.ibb-nav .nav-item.dropdown {
  position: relative !important;
  z-index: 999995 !important;
}

/* جسر وهمي بين زر القائمة والقائمة المنسدلة لمنع انقطاع الـ Hover عند تحريك الماوس */
.ibb-nav .nav-item.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 15px;
  display: block;
}

.ibb-nav .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  z-index: 9999999 !important;
  border-radius: 1rem !important;
  padding: 0.6rem !important;
  box-shadow: 0 15px 35px rgba(15, 76, 140, 0.3) !important;
  border: 1px solid rgba(15, 76, 140, 0.15) !important;
  background: #ffffff !important;
  min-width: 240px !important;
  margin-top: 0 !important;
}

[dir="ltr"] .ibb-nav .dropdown-menu {
  right: auto !important;
  left: 0 !important;
}

.ibb-nav .dropdown-menu.show,
.ibb-nav .nav-item.dropdown.show > .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 9999999 !important;
}

.ibb-nav .dropdown-item {
  border-radius: 0.6rem;
  font-weight: 600;
  color: var(--ibb-ink);
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.ibb-nav .dropdown-item:hover,
.ibb-nav .dropdown-item:focus {
  background: rgba(30, 136, 199, 0.08);
  color: var(--ibb-blue);
  transform: translateX(-4px);
}

[dir="ltr"] .ibb-nav .dropdown-item:hover,
[dir="ltr"] .ibb-nav .dropdown-item:focus {
  transform: translateX(4px);
}

@media (min-width: 992px) {
  .ibb-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 9999999 !important;
  }
}

/* للموبايل: إظهار القائمة الفرعية المطوية عند الضغط عليها */
.mobile-dropdown .collapse.show {
  display: block !important;
}

/* إجبار أقسام البانرات والبارالاكس بالبقاء تحت طبقة الهيدر والقوائم المنسدلة */
.page-title,
.page-title-parallax,
.hero-overlay,
.parallax-bg,
.scroll-detect,
section {
  position: relative;
  z-index: 1 !important;
}

/* ============================================================
   تنسيقات المركز الإعلامي (Gallery, Videos & News Effects)
   ============================================================ */
.gallery-card {
  position: relative;
  cursor: pointer;
}

.gallery-card img {
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.9) 0%, rgba(13, 27, 42, 0.3) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.pulse-btn {
  animation: pulse-ring 2s infinite;
  transition: transform 0.3s ease;
}

.pulse-btn:hover {
  transform: scale(1.15);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 106, 31, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(242, 106, 31, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 106, 31, 0);
  }
}

.hover-top {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-top:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 76, 140, 0.12) !important;
}