@font-face {
  font-family: arabicFont;
  src: url(../fonts/arabic_font.ttf);
}

@font-face {
  font-family: arabicFontNormal;
  src: url(../fonts/arabic_font2.ttf);
}

body {
  font-family: arabicFont, sans-serif;
  background: #fff;
  overflow-x: hidden;
}

[type=email], [type=number], [type=tel], [type=url] {
    direction: unset !important;
}
.main_header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99999999999999;
  transition: all 0.3s ease;
  background: transparent;
}

.main_header.sticky {
  background: #0e4993 !important; /* أو لونك */
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}



.navbar-dark .container-fluid,
.carousel-inner .container-fluid {
  max-width: 1600px;
}

.navbar-toggler {
  border: 0;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("../images/menu.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
}

/* لضبط مواقع العناصر */
#mainCarousel {
  position: relative;
  overflow: hidden;
}

/* Dots (mobile only) */
.carousel-indicators {
  position: absolute;
  bottom: 60px; /* فوق السهم */
  left: 50%;
  margin: 0;
  z-index: 9;
}

.carousel-indicators [data-bs-target] {
  width: 15px;
  height: 15px;
  background-color: #fff;
  opacity: 0.6;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #fff;
}

/* Arrow down */
.arrow-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
}

.arrow-down button {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}


.carousel-item {
  height: 100vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 40, 92, 0.432);
  z-index: 1;
}

.carousel-caption {
  position: relative;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: start;
  padding-top: 100px;
  padding-bottom: 50px;
}

.carousel-caption .content-box {
  max-width: 1000px;
}

.carousel-caption {
  right: 0 !important;
}

.carousel-caption .content-box h2 {
  font-size: 64px;
  margin-bottom: 25px;
}

.carousel-caption .content-box h3 {
  font-size: 15.82px;
}

.carousel-caption .content-box p {
  font-size: 20px;
  line-height: 40px !important;
  text-align: justify;
}

.carousel-caption .content-box a {
  padding: 10px 20px;
  font-size: 20px;
}

.carousel-caption .content-box img {
  width: 30px;
  height: 30px;
}

.thumbnails {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 99999;
}

.thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.thumbnails img.active,
.thumbnails img:hover {
  opacity: 1;
  border: 2px solid #fff;
}

.slide-numbers {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9;
}

html[dir="rtl"] .slide-numbers {
  right: 30px;
}

html[dir="ltr"] .slide-numbers {
  left: 30px;
}

.slide-numbers span {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s;
}

.slide-numbers span.active {
  opacity: 1;
  text-decoration: underline;
}

/* Dots (mobile only) */
.carousel-indicators {
  position: absolute;
  bottom: 65px;
  transform: translateX(-50%);
}

.carousel-indicators [data-bs-target] {
  width: 15px;
  height: 15px;
  background-color: #fff;
  opacity: 0.6;
  border-radius: 50%;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #fff; /* لون مميز */
}

/* Arrow down */
.arrow-down button {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}


.offcanvas.show ~ #mainCarousel .slide-numbers {
  display: none;
}

.navbar-brand img {
  width: 210px;
}

.navbar-nav li a {
  font-size: 16px;
  font-family: arabicFontNormal, sans-serif;
}

.navbar-collapse ul {
  gap: 12px;
}

html[dir="rtl"] .carousel-caption .content-box img {
  order: 1;
}

html[dir="ltr"] .carousel-caption .content-box img {
  order: -1;
}

.portfolio h2 {
    font-size: 64px;
    color: #003574;
}

.sectors h2 {
  font-size: 64px;
  color: #003574;
}

.sector-card {
  border-radius: 15px;
  background: #fff;
  color: #0153a9;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 39px 1px #00000012 !important;
}

.sector-card h5 {
  font-size: 20px;
}

.sector-card p {
  color: #3a3a3a;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: arabicFontNormal, sans-serif !important;
}

.sector-card a {
  background: #0153a9;
  border-color: #0153a9;
  color: white;
}

.sector-card .icon {
  width: 60px;
  height: 60px;
  transition: filter 0.3s ease;
}

.sector-card a.btn {
  transition: all 0.3s ease;
}

.sector-card:hover {
  background: #0153a9;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sector-card:hover h5,
.sector-card:hover p {
  color: #fff;
}

.sector-card:hover .icon {
  filter: brightness(0) invert(1);
}

.sector-card:hover a.btn {
  background: #fff;
  color: #0153a9;
  border-color: #fff;
}

.portfolio-slider-wrapper {
  position: relative;
  width: 100%;
}

.portfolio-slider {
  width: 100%;
}

.portfolio-card img {
  border-radius: 15px;
}

.gallery-arrows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.arrow-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #003574;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.arrow-btn:hover {
  background: #003574;
  color: #fff;
  transform: scale(1.1);
}

/* تحديد أماكن الأسهم */
.arrow-top {
  position: absolute;
  top: 15px;
  right: -73px;
}

.arrow-bottom {
  position: absolute;
  bottom: 15px;
  left: -73px;
}

.arrow-btn {
  padding: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0056b3;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.arrow-btn:hover {
  background-color: #00408f;
}

.stats-container {
  background: linear-gradient(to right, #5aa6f6, #0153a9);
  color: #fff;
  border-radius: 12px;
  padding: 30px;
}

.stat-box {
  position: relative;
  padding: 0 10px;
}

.stats-container .row > .col-6.col-md-3:not(:last-child) .stat-box {
  border-inline-end: 2px solid rgba(255, 255, 255, 0.6);
  padding-inline-end: 12px;
}

.stat-box h3 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-box p {
  margin: 0;
  font-size: 24px;
}

html[dir="rtl"] .stat-box:not(:last-child)::after {
  left: 0;
}

html[dir="ltr"] .stat-box:not(:last-child)::after {
  right: 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.clients .client-card a{
        background: white;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #d9d8d8;
}


.clients h2 {
  font-size: 64px;
  color: #003574;
}

.testimonials h2 {
  font-size: 64px;
  color: #003574;
}

.testimonials .testimonial-header {
  color: #0153a9;
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px 1px #00000012 !important;
  height: 100%;
  border: 1px solid rgb(219, 219, 219);
  min-height: 200px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 20px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ddd;
  margin-left: 10px;
}

.stars {
  color: #f39c12;
  font-size: 18px;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.testimonials .container {
  position: relative;
}

.testimonials .arrow-btn {
  padding: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0056b3;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.testimonials .arrow-btn:hover {
  background: #0066cc;
}

.cta {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
  color: #fff;
  border-radius: 10px;
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 50px;
}

.cta h3 {
  line-height: 49px;
  margin-bottom: 20px;
  font-size: 20px;
}

.cta a {
  background: #fff;
  color: #1565c0 !important;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: bold;
}

.footer {
  background-color: #f2f6fb;
  text-align: center;
  padding: 40px 20px 20px;
}

.footer img {
  width: 187px;
  margin-bottom: 15px;
}

.social-icons a {
  color: #1565c0;
  margin: 0 8px;
  font-size: 20px;
}

.copyright {
  font-size: 18px;
  color: #000;
  background: white;
  text-align: center;
  padding: 20px;
}

/* Breadcrumb */
.page-header {
  color: white;
  padding: 200px 0 100px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d4791;
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.page-description {
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Breadcrumb Styles */
.breadcrumb-container {
  background-color: #f8f9fa;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.custom-breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

.custom-breadcrumb .breadcrumb-item a {
  color: #0153a9;
  text-decoration: none;
  transition: color 0.3s;
}

.custom-breadcrumb .breadcrumb-item a:hover {
  color: #1565c0;
}

.custom-breadcrumb .breadcrumb-item.active {
  color: #6c757d;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #6c757d;
}

/* Page Content */
.page-content {
  padding: 60px 0;
  min-height: 500px;
}

.section-title {
  color: #0153a9;
  font-size: 36px;
  margin-bottom: 30px;
  font-weight: bold;
}
/* Breadcrumb */

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===== Responsive Improvements ===== */

/* Extra large screens (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Large screens (992px to 1199px) */
@media (max-width: 1199px) {
  .carousel-caption .content-box h2 {
    font-size: 60px;
  }

  .carousel-caption .content-box p {
    font-size: 22px;
    line-height: 35px;
  }

  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .clients .client-card {
    width: 180px;
    height: 180px;
  }
}

/* Medium screens (768px to 991px) */
@media (max-width: 991px) {
  .custom-next,
  .arrow-btn {
    display: none !important;
  }

  .carousel-caption .content-box h2 {
    font-size: 40px;
  }

  .carousel-caption .content-box h3 {
    font-size: 20px;
  }

  .carousel-caption .content-box p {
    font-size: 18px;
    line-height: 30px;
  }

  .carousel-caption .content-box a {
    font-size: 16px;
    padding: 8px 16px;
  }

  .sectors h2,
  .portfolio h2,
  .clients h2,
  .testimonials h2 {
    font-size: 36px;
  }

  .stat-box h3 {
    font-size: 36px;
  }

  .stat-box p {
    font-size: 18px;
  }

  .stat-box{
    padding: 0 10px 10px 10px;
    border-bottom: 1px solid #FFFFFF;
    padding-bottom: 10px;
  }

  .stats-container .row > div:last-child .stat-box {
  border-bottom: none;
  padding-bottom: 0;
}

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .clients .client-card {
    width: 100%;
    height: 80px;
    padding: 10px;
  }

  .testimonial-card {
    padding: 15px;
  }

  .cta {
    padding: 40px 15px;
  }

  .cta h3 {
    font-size: 22px;
    line-height: 32px;
  }

  .navbar-brand img {
    width: 125px;
  }

  .slide-numbers {
    display: none;
  }

  .thumbnails img {
    width: 60px;
    height: 45px;
  }
}

/* Small screens (576px to 767px) */
@media (max-width: 767px) {
  .custom-next,
  .arrow-btn {
    display: none !important;
  }

  .carousel-item {
    height: 80vh;
    min-height: 400px;
  }

  .carousel-caption {
    padding-top: 80px;
    justify-content: center;
  }

  .carousel-caption .content-box h2 {
    font-size: 32px;
  }

  .carousel-caption .content-box h3 {
    font-size: 15.82px;
  }

  .carousel-caption .content-box p {
    font-size: 16px;
    line-height: 26px;
  }

  .sectors h2,
  .portfolio h2,
  .clients h2,
  .testimonials h2 {
    font-size: 30px;
  }

  .sector-card {
    padding: 20px 15px !important;
  }

  .sector-card p {
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
  }

  .stat-box h3 {
    font-size: 28px;
  }

  .stat-box{
    padding: 0 10px 10px 10px;
    border-bottom: 1px solid #FFFFFF;
    padding-bottom: 10px;
  }

 .stats-container .row > div:last-child .stat-box {
  border-bottom: none;
  padding-bottom: 0;
}

  .stat-box p {
    font-size: 16px;
  }

  .stats-container .row > .col-6.col-md-3:not(:last-child) .stat-box {
    border-inline-end: none;
    padding-inline-end: 0;
  }

  .stats-container .row > .col-6.col-md-3:nth-child(-n + 2) .stat-box {
    margin-bottom: 20px;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .clients .client-card {
    width: 100%;
    height: 80px;
    padding: 10px;
  }

  .testimonial-header {
    flex-direction: column;
    text-align: center;
  }

  .avatar {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .testimonial-card {
    text-align: center;
  }

  .cta h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .footer img {
    width: 150px;
  }

  .thumbnails {
    bottom: 5px;
  }

  .thumbnails img {
    width: 50px;
    height: 35px;
  }
}

/* Extra small screens (575px and below) */
@media (max-width: 575px) {
  .content-box {
    padding: 20px;
    margin-bottom: 45px;
  }
 .clients .client-card a {
    background: white;
    width: 100%;
    height: 70px !important;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #d9d8d8;
}
  .carousel-item {
    height: 70vh;
    min-height: 800px;
  }

  .carousel-caption .content-box h2 {
    font-size: 37.32px;
  }

  .carousel-caption .content-box p {
    font-size: 16px;
    line-height: 27px !important;
    font-family: arabicFontNormal, sans-serif;
    margin-bottom: 20px;
  }

  .sectors h2,
  .portfolio h2,
  .clients h2,
  .testimonials h2 {
    font-size: 26px;
  }

  .sector-card .icon {
    width: 50px;
    height: 50px;
  }

  .sector-card h5 {
    font-size: 18px;
  }

  .portfolio-card {
    height: 120px;
  }

  .stat-box{
    padding: 0 10px 10px 10px;
    border-bottom: 1px solid #FFFFFF;
    padding-bottom: 10px;
  }


.stats-container .row > div:last-child .stat-box {
  border-bottom: none;
  padding-bottom: 0;
}

  
  .stat-box h3 {
    font-size: 24px;
  }

  .stat-box p {
    font-size: 24px;
  }

  .stats-container {
    padding: 20px 15px;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .clients .client-card {
    width: 100%;
    height: 80px;
    padding: 10px;
  }

  .testimonial-card {
    padding: 12px;
  }

  .testimonial-text {
    font-size: 14px;
  }

  .cta {
    padding: 30px 10px;
    margin-bottom: 30px;
  }

  .cta h3 {
    font-size: 18px;
    line-height: 26px;
  }

  .footer {
    padding: 30px 15px 15px;
  }

  .footer img {
    width: 130px;
  }

  .copyright {
    font-size: 16px;
    padding: 15px;
  }

  .thumbnails {
    display: none;
  }

  .custom-next,
  .arrow-btn {
    display: none !important;
  }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
  .custom-next,
  .arrow-btn {
    display: none !important;
  }
  .carousel-item {
    height: 60vh;
    min-height: 300px;
  }

  .carousel-caption .content-box h2 {
    font-size: 24px;
  }

  .carousel-caption .content-box h3 {
    font-size: 16px;
  }

  .carousel-caption .content-box p {
    font-size: 13px;
    line-height: 20px;
  }

  .sectors h2,
  .portfolio h2,
  .clients h2,
  .testimonials h2 {
    font-size: 22px;
  }

  .clients .client-card {
    width: 120px;
    height: 120px;
  }

  .cta h3 {
    font-size: 16px;
    line-height: 24px;
  }

  .footer img {
    width: 110px;
  }
}
