:root {
    --primary: #ff5c00;
    --dark: #0f0f33;
    --light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe", sans-serif;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
@font-face {
    font-display: swap;
    font-style: normal;
    font-family: "Segoe";
    font-weight: 400;
    src: url(https://insait.sa/wp-content/uploads/2024/09/alfont_com_AlFont_com_Segoe.UI_DownloadSoftware.iR_.woff2) 
}
    body {
    /* background: var(--dark); */
    color: var(--light);
    overflow-x: hidden;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: auto;
}
  
/* Navbar */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  width: 100%;
  background: #0b0f2a;
  padding: 20px 0;
  z-index: 1000;
  transition: 0.3s;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo img {
  height: 36px;
}

/* Menu Desktop */
.navbar-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s;
  white-space: nowrap;
}

.nav-links li {
  position: relative;
}

.nav-links li::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

.nav-links li:hover a,
.nav-links li.active a {
  color: var(--primary);
}

.nav-links li:hover::after,
.nav-links li.active::after {
  width: 100%;
}

/* Buttons */
.nav-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

/* Burger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
  transition: 0.3s;
}

/* Scrolled Navbar */
.navbar.scrolled {
  background: #fff;
  padding: 10px 0;
}

.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-btn,
.navbar.scrolled .menu-toggle i {
  color: #0b0f2a;
}

.navbar.scrolled .nav-links li:hover a,
.navbar.scrolled .nav-links li.active a {
  color: var(--primary);
}

/* Mobile */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .desktop-btn {
    display: none;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #0b0f2a;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    display: none;
    transition: 0.3s;
  }

  .navbar-menu.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 18px;
  }

  .mobile-btn {
    margin-top: 10px;
  }

  /* Scrolled Mobile Menu */
  .navbar.scrolled .navbar-menu {
    background: #fff;
  }

  .navbar.scrolled .navbar-menu a {
    color: #0b0f2a;
  }
}

/* Center menu desktop */
@media (min-width: 993px) {
  .navbar-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  [dir="ltr"] .nav-links {
    gap: 22px;
  }

  [dir="ltr"] .nav-links a {
    font-size: 16px;
  }
}

/* ===================== */
/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #0b0f2a, #11143a);
  padding: 120px 0 220px;
  position: relative;
  overflow: hidden;
}

.hero-curve {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  display: block;
}


.hero-content {
   display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  max-width: 520px;
  color: #fff;
}

.hero-text h1 {
   font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.4;
}
.hero-text h1  span{
  color: var(--primary);
}
.hero-text p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
   gap: 50px; 
}
.hero-footer {
   display: flex;
  align-items: center;
  gap: 40px;
}

.btn-outline {
  border: 2px solid #ff5c00;
  padding: 10px 25px;
  color: #ff5c00;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #ff5c00;
  color: #fff;
}

.hero-image img {
  max-width: 600px;
  width: 100%;
  height: auto;
  animation: float-depth 2s ease-in-out infinite;
}

.decor-top {
  width: 80px; 
  animation: float 1s ease-in-out infinite;

}

.decor-bottom {
  width: 90px; 
  animation: float-depth 4s ease-in-out infinite;
will-change: transform;
}
/* Responsive */
@media (max-width: 991px) {
  .hero-content {
    flex-direction: column; /* الكلام فوق */
    text-align: center;
  }
.hero-footer {
    gap: 0;
  }
  .hero-left {
    order: 1;
    align-items: center;
    display: none;
  }
.hero-right{
display: none;
}
  .hero-image {
    order: 2;
    
  }
  .decor-bottom {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 70px 0 150px;
  }
.decor-bottom {
    display: none;
  }
  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-footer {
    flex-direction: column;
    gap: 20px;
  }

  .btn-outline {
    padding: 10px 30px;
  }

  .hero-image img {
    max-width: 280px;
  }

  .decor-top,
  .decor-bottom {
    width: 60px;
  }
}
@media (max-width: 400px) {
  .decor-top,
  .decor-bottom {
    display: none;
  }
}

/* Animations */
@keyframes float-depth {
  0%,100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(15px, -10px) scale(1.05);
  }
}

@keyframes float-in-out {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20px, -10px);
  }
  50% {
    transform: translate(0, 0);
  }
  75% {
    transform: translate(-20px, 10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes float-x {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}



/* ===================== */
/* ABOUT */
/* ===================== */
.about {
  padding-bottom: 30px;
  /* background-color: rgba(255,255,255,0.40);  */
  background-image: url('images/main-banner-bg-1-min.webp');
  background-image: url(https://insait.sa/wp-content/uploads/2024/10/main-banner-bg-1-min.webp);
    background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}


.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  width: 45%;
  text-align: start;
}

.about-text h2 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 25px;
}

.about-text p {
  font-size: 17px;
  font-weight: 700;
  line-height: 2;
  color: #444;
  margin-bottom: 35px;
}
.brand-name {
  color: #ff6a2a;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-dark {
  background: var(--dark);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
}
.btn-dark:hover {
  background: linear-gradient(
    90deg,
    #0b0d2a,
    #ff6a2a,
    #14174f,
    #ff9a3c
  );
  box-shadow: 0 10px 30px rgba(255, 106, 42, 0.35);
  background-size: 200% auto;
  animation: gradientMove 1.2s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.about-image {
  width: 45%;
  text-align: left;
  animation: float-depth 3s ease-in-out infinite;
}

.about-image img {
  width: 100%;
}
@media (max-width: 991px) {
  .about-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  /* الكلام فوق */
  .about-text {
    order: 1;
    width: 100%;
    text-align: center;
  }

  /* الصورة تحت */
  .about-image {
    order: 2;
    width: 100%;
    text-align: center;
  }

  .about-image img {
    max-width: 380px;
    margin: auto;
  }

  .about-text p {
    margin-inline: auto;
  }
}
@media (max-width: 576px) {
  .about-text h2 {
    font-size: 22px;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.8;
  }

  .about-image img {
    max-width: 280px;
  }

  .btn-dark {
    padding: 10px 26px;
  }
}

/* ===================== */
/* SERVICES */
/* ===================== */

 
.services-section {
     background: linear-gradient(135deg, #0b0f2a, #11143a); 
  padding: 80px 20px;
  color: #fff;
  padding-top: 6rem;
    padding-bottom: 6rem;
    
  
}


h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
}

h2 span {
  color: #ff6a2a;
  text-align: center;
}

.subtitle {
  max-width: 800px;
  margin: 0 auto 60px;
  opacity: 0.85;
  line-height: 1.8;
  text-align: center;
  font-size: 22px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.service-card {
  background: 
    url("https://insait.sa/wp-content/uploads/2024/10/blurry0000.webp") center/cover no-repeat,
    #14174f;
  border-radius: 14px;
  padding: 35px 25px;
  text-align: center;
  transition: background 0.4s ease, transform 0.4s ease, border 0.4s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  height: 100% !important;
  
}


.service-card img {
  width: 80px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}
.service-card:hover h3 {
   color: #ff6a2a;
}

.service-card p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
  flex-grow: 1;
}
.service-card:hover .card-img {
  transform: scale(1.3);
  /* opacity: 0; */
}
.service-card:hover {
   background: #14174f;
  transform: translateY(-10px);
  border-color: #ff6a2a;
}

.service-card.featured {
  border: 1px solid #ff6a2a;
}

.service-card .highlight {
  color: #ff6a2a;
}

/* Responsive */
@media (max-width: 768px) {
  h2 {
    font-size: 28px;
  }
}


/* ===================== */
/* VISION */
 .vision-section {
  padding: 80px 10px;
  background:rgba(255,255,255,0.65);
  /* background-image: url('images/Background-Image.webp') !important; */
  background-image: url(https://insait.sa/wp-content/uploads/2024/09/Background-Image.webp);
    background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.vision-section > div {
   margin: 0 auto;    /* يحط المحتوى في النص */
  padding: 0 20px;   /* مسافة يمين وشمال */
}
/* title */
.vision-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1b1e3c;
  line-height: 1.6;
}

.vision-title span {
  color: #ff6a3d;
}

/* cards */
.vision-card {
  height: 100%;
  border-radius: 20px;
  padding: 30px 28px;
  margin-left: 10px;
  margin-right: 10px;
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* shadow خفيف */
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s forwards; 
  transform: translateY(30px);
   opacity: 0;
}
/* Animate when active */
.vision-section.active .vision-card {
  animation: fadeInUp 0.8s forwards;
}

/* class يظهر الانميشن */
.vision-card.animate {
  animation: fadeInUp 0.8s forwards;
}
/* Add delay for each card */
.row .col-lg-4:nth-child(1) .vision-card {
  animation-delay: 0.2s;
}

.row .col-lg-4:nth-child(2) .vision-card {
  animation-delay: 0.4s;
}

.row .col-lg-4:nth-child(3) .vision-card {
  animation-delay: 0.6s;
}
.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
/* card colors */
.vision-card.gray {
  background: #ebebf4;
  font-size: 18px;
}

.vision-card.orange {
  background: #fce4de;
  font-size: 28px;

}

.vision-card.gray-light {
  background: #e7e7ea;
}

/* header */
.card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* icon */
.card-header .icon {
  font-size: 26px;
  color: #8b8fcf;
}
.card-header img {
  width: 50px;
  height: 50px;
}

/* title */
.card-header h4 {
  font-size: 22px;
  font-weight: 700;
  color: #1b1e3c;
  margin: 0;
}

/* underline */
.card-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 1px;
  background: #ff6a3d;
  border-radius: 10px;
}

/* icons */
.icon {
  font-size: 34px;
  color: #8b8fcf;
}

.vision-card.orange .icon {
  color: #ff6a3d;
}

/* text */
.vision-card p,
.vision-card ul li {
  color: #4a4d6a;
    font-size: 16px !important;
    line-height: 2.2 !important;
    font-weight: 700 !important;
}

.vision-card ul {
  padding-right: 18px;
}

.vision-card ul li {
  margin-bottom: 10px;
}

/* ===================== */
/* PORTFOLIO */
.portfolio {
  background: #0b0f2f;
  padding: 100px 0;
}

.portfolio img {
  width: 100%;
  border-radius: 20px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item img {
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1); /* تكبير الصورة شوي عند الهور */
}

.portfolio-item .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6); /* شاشة نصف شفافة سوداء */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

 /* ===================== */
/* PROJECTS */
/* ===================== */
.projects {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    border-radius: 16px;
}

/* ===================== */
/* BLOG */
/* ===================== */
.blog {
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

 

/* ===================== */
/* TITLES */
/* ===================== */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

.section-title span {
    display: block;
    font-size: 18px;
    color: #ff5c00;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */
@media (max-width: 992px) {
    .services-grid,
    .vision-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .services-grid,
    .vision-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
} 
.blog-card img {
width: 100%;
height: 200px;
object-fit: cover;
}


.blog-content {
padding: 20px;
}


.blog-content h5 {
font-weight: 700;
margin-bottom: 10px;
}


.blog-content p {
font-size: 14px;
color: #555;
}

.with-insait,
.insait-business {
    color: #0f0f33;
}
/* ========================= */
/* WITH INSAIT */
/* ========================= */

.with-insait-section {
  padding: 120px 30px;
}

.with-insait-card {
  max-width: 1200px;
  margin: auto;
  background: linear-gradient(90deg, #ff4b1f, #ff9068);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
}

.with-title {
 color: #fff;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 50px;
}

.with-cards {
   display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.with-item {
 padding: 14px;
  border-radius: 30px;
  transition: transform .4s ease;
  cursor: pointer;

}

.with-item:hover {
  transform: translateY(-10px);
}

.with-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
}

/* label */
.with-label {
    margin: 14px auto 0;
  background: #fff;
  color: #ff4b1f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
}
.with-label.animate {
  opacity: 1;
  transform: translateY(0);
}
/* delays لكل كارد */
.with-item:nth-child(1) .with-label {
  animation-delay: 0.3s;
}
.with-item:nth-child(2) .with-label {
  animation-delay: 0.5s;
}
.with-item:nth-child(3) .with-label {
  animation-delay: 0.7s;
}

.with-label .check {
  width: 18px;
  height: 18px;
  background: #ff4b1f;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* responsive */
@media (max-width: 768px) {
  .with-insait-card {
    padding: 40px 20px;
  }

  .with-insait-section {
    padding: 80px 16px;
  }
}

@media (max-width: 480px) {
  .with-label {
    font-size: 13px;
    padding: 6px 22px;
  }
}


@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* animation */
@keyframes labelFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* =========================
RESPONSIVE
========================== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: auto;
}
.business-item {
  height: 180px;
  border-radius: 20px;
  background: #f2f2f2;
}
.business-item.blue {
  background: #1e88e5;
}

@media (max-width: 992px) {
.business-grid {
grid-template-columns: repeat(2, 1fr);
}
.blog-grid {
grid-template-columns: 1fr;
}
}


@media (max-width: 576px) {
.insait-cards {
flex-direction: column;
}
}
/* ===== Insait Works Section ===== */
/* Section Wrapper */
.insait-works-section {
  /* padding: 100px 20px;   */
  overflow: hidden;
  margin-bottom: 120px;
  /* background: #f9f9f9;   */
}
.insait-works-section .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
/* Title */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  color: #000;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title p {
  color: #ff8c42;
  font-size: 20px;
  font-weight: 700;
}

/* Scroll Wrapper */
.works-wrapper {
overflow: hidden;
  position: relative;
  padding: 0 0 120px;
}
.works-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 160px;
  background-color: #f04e23;
  z-index: 1;
}

.works-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Horizontal Track */
.works-track {
 display: flex;
  gap: 30px;
  width: max-content;
  position: relative;
  z-index: 2;
  padding: 0 15px;
}
/* حالة وجود مشاريع قليلة (توسيط) */
.works-track.justify-content-center {
  margin: 0 auto;
  justify-content: center;
  width: 100%;
}
/* تفعيل الأنيميشن فقط عند وجود الكلاس */
.works-track.is-sliding {
  animation: scrollWorks 25s linear infinite; /* بطئنا السرعة قليلاً لنعومة أكثر */
}

/* Hover يوقف الحركة */
.works-track.is-sliding:hover {
  animation-play-state: paused;
}
/* Duplicate track for seamless scroll */
.works-track.duplicate {
  display: none;
  position: absolute;
  top: 0;
  margin-left: 30px;
  left: 100%;
  display: flex;
  gap: 30px;
}

/* Keyframes المعدلة */
@keyframes scrollWorks {
  0% {
    transform: translateX(0);
  }
  100% {
    /* نتحرك بمقدار نصف عرض المسار الكلي لأننا كررنا العناصر مرة واحدة */
    transform: translateX(calc(-50% - 15px)); 
  }
}
/* Work Card */
.work-card {
  position: relative;
  width: 340px;
  height: 300px;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 340px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform .4s ease;/* Shadow خفيف */
  text-decoration: none;
  color: inherit;
}
.works-page-section {
            padding: 80px 0;
  background: linear-gradient(180deg, #ffffff, #f6f8ff);
        }
         .hero-work {
            background: #fff3ef;
            padding: 220px 0 120px;
            
            position: relative;
            overflow: hidden;
        }
.hero-work {
    position: relative;
    padding: 120px 0;
    background: #fff3ef;
    overflow: hidden;
}
.title-hero{
     color: #373895 !important;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}
.hero-img {
    position: absolute;
    width: 100px;
    z-index: 1;
    opacity: .9;
    animation: float-depth 2s ease-in-out infinite;
}

.hero-blog-img {
    position: absolute;
    width: 100px;
    z-index: 1;
    opacity: .9;
    animation: float-x 2s ease-in-out infinite;
}

.hero-blog-img2 {
    position: absolute;
    width: 100px;
    z-index: 1;
    opacity: .9;
    animation: float 3s ease-in-out infinite;
}

.hero-left {
    left: 0px;
    top: 20%;
}

.hero-right {
    right: 0px;
    top: 30%;
    animation-delay: 0.5s;
}

.hero-work h1,
.hero-work p {
    position: relative;
    z-index: 2;
}
        .hero-work h1 {
            font-size: 40px;
            font-weight: 700;
            color: #1f2a44;
        }

        .hero-work span {
            color: #f45b2a;
        }

        .hero-work p {
            color: #5f6b7a;
            margin-top: 15px;
            font-size: 18px;
        }
/* Image */
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work-card img.db-project-image,
.work-page-card img.db-project-image {
  object-fit: contain;
  background: #fff;
}

/* Hover Zoom */
.work-card:hover {
  transform: scale(1.07);
  border-radius: 24px;
}

.work-card:hover img {
  transform: scale(1.1);
  border-radius: 24px;

}

/* Overlay Full Image */
.work-overlay {
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-overlay h4 {
  color: #000;
  font-size: 24px;
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

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

.work-card:hover .work-overlay h4 {
  transform: translateY(0);
}

/* Overlay Box (وسط الكارد) */
.work-overlay-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  
  /* التعديلات الأساسية هنا */
  background: rgba(255, 255, 255, 0.85); /* زيادة التعتيم قليلاً لوضوح النص */
  padding: 25px 20px; /* بادينج معقول بدلاً من 90px */
  width: 85%; /* يشغل مساحة متناسبة مع عرض الكارد */
  max-height: 85%; /* يمنع خروجه من طول الكارد */
  
  border-radius: 18px;
  opacity: 0;
  transition: all 0.45s ease;
  text-align: center;
  backdrop-filter: blur(8px);
  
  /* لضمان ترتيب المحتوى داخله */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* إخفاء أي زيادة */
}

.work-overlay-box h4 {
  color: #000;
  font-size: 18px; /* تصغير الخط قليلاً ليناسب المساحة */
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  /* منع النص من التمدد بشكل لا نهائي */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* أقصى عدد أسطر للعنوان */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-overlay-box p {
  margin: 0;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  /* منع النص من التمدد بشكل لا نهائي */
  display: -webkit-box;
  -webkit-line-clamp: 4; /* أقصى عدد أسطر للوصف */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* عند الهوفر */
.work-card:hover .work-overlay-box {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.works-wrapper::after {
  border-top-left-radius: 100% 40px;
  border-top-right-radius: 100% 40px;
}
@media (max-width: 768px) {
  .hero-work {
    padding: 140px 0 80px;
  }

  .hero-img {
    opacity: .4;
  }
}

@media (max-width: 480px) {
  .hero-img {
    display: none; /* أنضف للموبايل */
  }

  .work-card {
    width: 280px;
    flex-basis: 280px;
    height: 260px;
  }
}

/* //////blog section */
.insait-blog-section {
  padding: 5px 0 90px 0px;
  background-image: url(https://insait.sa/wp-content/uploads/2024/10/main-banner-bg-1-min.webp);
background-position: center center;
    background-size: cover;
    
}

.blog-title h2 {
  color: #ff8c42;

  font-size: 25px;
  font-weight: 700;
}

.blog-title p {
   color: #000;
   font-size: 30px;
   font-weight: 700;

}
.blog-title{
  margin-bottom: 50px;
}

.blog-row {
  padding: 0 40px; /* مسافة يمين وشمال */
}

.blog-card {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
  box-shadow: 0 20px 40px rgba(198, 195, 195, 0.35);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.blog-image {
  overflow: hidden;
  border-radius: 26px 26px 0 0;
}

.blog-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.12);
}

.blog-content {
  padding: 28px 26px 34px;
  text-align: start;
}

.blog-content h4 {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.blog-content p {
  color: #000;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}
/* ==================== */
/* FOOTER */
/* ==================== */

.newsletter-footer {
  background: radial-gradient(circle at bottom, #0f0f33, #0b0d2e);
  color: #fff;
  padding: 70px 0 30px;
  direction: inherit;
  font-family: 'Cairo', sans-serif;
}

/* Newsletter */
.newsletter-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.newsletter-text h4 {
  font-size: 24px;
  font-weight: 700;
}

.newsletter-text p {
  margin: 0;
  color: #cfd2ff;
}

.newsletter-form {
  display: flex;
  align-items: start;
  gap: 12px;
}

.newsletter-form input {
  width: 320px;
  height: 48px;
  border-radius: 50px;
  border: none;
  padding: 0 20px;
  outline: none;
   font-size: 14px;
}
.social i:hover {
  background: #ff5a2c;
  border-color: #ff5a2c;
  transition: 0.3s;
}

.newsletter-form button {
  height: 40px;
  padding: 0 22px;
  border-radius: 50px;
  border: none;
  background: #ff5a2c;
  color: #fff;
  font-weight: 600;
}

.contact-footer img{
width: 60px;
height: 60px;
animation: float-depth 1s ease-in-out infinite; /* سريع جدًا */
}
/* Lines */
.footer-line {
  border-color: #fff;
  margin: 40px 0;
}

/* Footer content */
.footer-col h5 {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: start;
}
.footer-col p{
  font-weight: 700;
  font-size: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  font-weight: 700;
  text-align: start;
}

.footer-col ul li {
  margin-bottom: 15px;
  color: #cfd2ff;
   transition: color 0.3s ease;
  cursor: pointer;
  text-align: start;
}
.footer-col ul li a {
  color: inherit;
  text-decoration: none;
}
.footer-col ul li:hover {
  color: #ff5a2c;
}
.contact-item p {
  margin: 0;
  text-align: start;
  color: #cfd2ff;
  transition: color 0.3s ease;
  cursor: pointer;
}
.contact-item p a {
  color: inherit;
  text-decoration: none;
}

.contact-item:hover p {
  color: #ff5a2c;
}
.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-item .icon {
  width: 34px;
  height: 34px;
  background: #ff5a2c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item .icon i {
  color: #fff;
  font-size: 14px; /* أصغر */
}

/* About */
.logo {
  font-size: 28px;
  font-weight: 800;
}

.logo span {
  color: #ff5a2c;
}

.footer-about p {
  color: #cfd2ff;
  line-height: 1.8;
  text-align: start;
}

.more {
  color: #ff5a2c;
  font-weight: 600;
  text-decoration: none;
}

/* Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.social i {
  width: 38px;
  height: 38px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  cursor: pointer; 
}
.social a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom span {
  color: #ff5a2c;
}
@media (max-width: 991px) {
  .newsletter-box {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .newsletter-text h4 {
    font-size: 20px;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .newsletter-form input {
    width: 100%;
    max-width: 380px;
  }

  .newsletter-form button {
    width: 180px;
    height: 44px;
  }

  .contact-footer img {
    display: none; /* نخفي السهم في الريسبونسف */
  }
}
@media (max-width: 768px) {
  .footer-content {
    text-align: center;
  }

  .footer-col {
    margin-bottom: 30px;
  }

  .footer-col h5 {
    text-align: center;
    font-size: 20px;
  }

  .footer-col ul,
  .footer-col p {
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }
}
@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .social i {
    margin: 0 6px;
  }
}
/* ////////work page  */
  .work-page-card {
  position: relative;
  z-index: 2;
  width: 340px;
  height: 350px;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease;
  flex-shrink: 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Shadow خفيف */
  text-decoration: none;
  color: inherit;
}

.work-page-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-page-card:hover {
  transform: scale(1.07);
  border-radius: 24px;
}
.work-page-card:hover img {
  transform: scale(1.1);
  border-radius: 24px;

}
.work-page-card:hover .work-overlay {
  opacity: 1;
}

.work-page-card:hover .work-overlay h4 {
  transform: translateY(0);
}
.work-page-card:hover .work-overlay-box {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
 
 .works-grid {
     display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
/* Responsive */
@media (max-width: 992px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
   justify-items: center; 

    }
}

@media (max-width: 576px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}
/* ////blog page  */
.blogs-page-section {
    background: linear-gradient(180deg, #fff4ee, #ffffff);
    padding: 10px 0;
    direction: inherit;
}

 
 
.blog-page-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: transform .3s ease;
}

.blog-page-card:hover {
    transform: translateY(-8px);
}

.blog-page-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-page-card.large img {
    height: 300px;
}

.blog-content {
    padding: 16px;
}

.blog-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
}

.blog-content .meta {
    font-size: 13px;
    color: #777;
    display: flex;
    gap: 12px;
}

.divider {
    margin: 50px 0;
    border-color: #ff5722;
}

/* ////blog details  */
.blog-details-hero {
    position: relative;
    z-index: 1; /* أعلى من أي شيء وراءه */
    background: #f8f9fa;
    padding: 100px 0 50px 0;
    text-align: center;
}

.blog-title {
    font-size: 36px;
    font-weight: 700;
    color: #0b1c39;
    max-width: 600px;
    margin: auto;
}

.decor.left-icon {
    position: absolute;
    left: 0;
    top: 20px;
    font-size: 40px;
    color: #0b1c39;
}

.decor.right-icons {
    position: absolute;
    right: 0;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.decor .circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.circle.blue {
    background: #1e2a78;
}

.circle.orange {
    background: #ff5722;
}

/* Image Section */
.blog-details-image {
    position: relative;
    margin-top: -80px; /* يجعل الصورة تتحرك فوق القسم السابق */
     
}

.blog-details-image img {
    width: 100%;
    border-radius: 16px;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.image-wrapper img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}
.image-wrapper img.project-detail-image {
    object-fit: contain;
    background: #fff;
}

/* Content Card */
.blog-details-content {
    padding: 80px 0;
    position: relative;
}

.content-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    max-width: 900px;
    margin: -120px auto 0;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    text-align: start;
}

.content-card .meta {
    font-size: 14px;
    color: #777;
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.content-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.content-card p {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}
.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-link:hover {
    color: inherit;
}
