/* General Styles */
:root {
  --primary-color: #2e3ea8;
  --primary-light: #4a5fd1;
  /* أزرق فاتح */
  --secondary-color: #e6b26a;
  --secondary-light: #f0c78a;
  /* ذهبي فاتح */
  --light-color: #f8f9fa;
  --dark-color: #1a1a2e;
  /* للعناوين */
  --text-color: #444;
  /* للنصوص العادية */
}

.text-gold {
  color: var(--secondary-color) !important;
}

.bg-primary{
  background-color: var(--primary-color) !important;
}

.dark-color{
  color: #1a1a2e;
}

body {
  font-family: 'Tajawal', sans-serif;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

section{
  width: 100% !important;
  overflow: hidden ;
}

#nav{
  width: 100%;
  overflow: hidden;
}

#footer{
  width: 100%;
  overflow: hidden;
}

/* h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark-color);
} */

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: var(--secondary-color);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: var(--dark-color);
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 500;
  position: relative;
  display: inline-block;
  font-family: "Cairo", sans-serif;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  font-family: "Cairo", sans-serif;

}

.btn {
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #1e2d8d;
  border-color: #1e2d8d;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-gold {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-gold:hover {
  background-color: var(--secondary-light);
  border-color: var(--secondary-light);
  color: white;
}

.primary {
  color: var(--primary-color);
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(46, 62, 168, 0.2), rgba(230, 178, 106, 0.2));
}

/* Navbar Styles */
.navbar {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: "Cairo", sans-serif;

}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  /* font-size: 1.5rem; */
}

.navbar-brand img {
  margin-left: 10px;
}

.navbar-brand span {
  color: var(--primary-color);
}

.navbar-toggler {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler i {
  color: var(--primary-color);
}

.navbar-toggler-icon {
  color: var(--primary-color);
}

.navbar .navbar-nav .nav-link {
  color: var(--primary-color);
  font-weight: 500;
  padding: 8px 15px;
  margin: 0 5px;
  position: relative;
}

.navbar .navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  bottom: 0;
  left: 0;
  transition: width 0.3s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar .navbar-nav .nav-link:hover::before,
.navbar .navbar-nav .nav-link.active::before {
  width: 100%;
}

/* hero section */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  color: #fff;
  width: 80%;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .lead {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  margin-top: 30px;
}

.hero-carousel {
  width: 100%;
  height: 100vh;
  position: relative;
}

.hero-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-section .carousel-item {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: block !important;
}

/* Owl Dots */
.hero-section .owl-dots {
  position: absolute;
  bottom: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.hero-section.owl-dot span {
  width: 12px !important;
  height: 12px !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
  margin: 0 5px !important;
  transition: all 0.3s ease;
}

.hero-section .owl-dot.active span {
  background-color: var(--secondary-color) !important;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .hero-content {
    width: 90%;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section h2 {
    font-size: 1.5rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }
}

/* About Section */
.about h1,
.about h2,
.about h3 {
  color: var(--dark-color);
}

.about {
  width: 100%;
  overflow: hidden;
}

.about-img-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.about-content {
  border-right: 4px solid var(--secondary-color);
  color: #444;
  transition: all 0.3s;
}

.about-content:hover{
  transform: translateY(-10px);
}

/* Cards Styles */
.card {
  transition: all 0.3s ease;
  border-radius: 10px !important;
}

.hover-lift:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Icons Styles */
.icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  color: white;
}

.vision-icon {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  animation: pulseVision 2s infinite;
}

.mission-icon {
  background: linear-gradient(45deg, var(--secondary-color), var(--secondary-light));
  animation: spinMission 3s linear infinite;
}

.values-icon {
  background: linear-gradient(45deg, #2e3ea8, #4a5fd1);
  animation: bounceValues 1.5s infinite;
}

.goals-icon {
  background: linear-gradient(45deg, #e6b26a, #f0c78a);
  animation: shakeGoals 2s infinite;
}


/* تنسيقات التابات للجوال */
.mobile-tabs-container {
  margin-bottom: 1.5rem;
}

.mobile-tabs-container .nav-tabs {
  border-bottom: 2px solid #dee2e6;
}

.mobile-tabs-container .nav-link {
  color: #666;
  border: none;
  padding: 0.75rem;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

.mobile-tabs-container .nav-link i {
  font-size: 1.2rem;
}

.mobile-tabs-container .nav-link.active {
  color: var(--secondary-color);
  background-color: transparent;
  border: none;
}

.mobile-tabs-container .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
}

.mobile-tabs-container .nav-link:not(.active):hover {
  color: var(--secondary-color);
  background-color: rgba(78, 115, 223, 0.1);
}

.mobile-tabs-container .tab-content .card {
  border-radius: 0 0 10px 10px !important;
  margin-top: -10px;
}



/* النصوص */
.text-primary {
  color: var(--primary-color) !important;
}


.card-body p,
.card-body li {
  color: var(--text-color);
}

.progress-bar.bg-gradient {
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color)) !important;
}

/* Keyframe Animations */
@keyframes pulseVision {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(46, 62, 168, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(46, 62, 168, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(46, 62, 168, 0);
  }
}

@keyframes spinMission {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.1);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes bounceValues {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shakeGoals {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(5deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Responsive Styles */
@media (max-width: 767.98px) {
  .about-img-container {
    max-width: 400px;
    margin: 0 auto;
  }

  .icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}





/* Services Section */
.services {
  width: 100%;
  overflow: hidden;
  padding: 100px 0;
}

.service-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  height: 100%;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
  width: 80px;
  height: 80px;
  background: rgba(230, 178, 106, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s;
}

.service-card:hover .icon {
  background: var(--secondary-color);
}

.service-card .icon i {
  font-size: 2rem;
  color: var(--secondary-color);
  transition: all 0.3s;
}

.service-card:hover .icon i {
  color: #fff;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* Styles for Carousel */
.services-carousel .service-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 10px;
  height: 100%;
}

.services-carousel .owl-dots {
  margin-top: 5px;
  text-align: center;
}

.services-carousel .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px;
  background: #d6d6d6;
  display: block;
  transition: opacity .2s ease;
  border-radius: 50%;
}

.services-carousel .owl-dot.active span {
  background: var(--primary-light);
}

/* Projects Section Styles */
.projects-section {
  width: 100%;
  overflow: hidden;
  padding: 100px 0;
  background: url('../IMG/services_bg.png') no-repeat center center;
  background-size: cover;
  position: relative;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 249, 250, 0.4);
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin: 10px;
  height: 100%;
  width: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);

}

.project-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.project-details {
  padding: 20px;
}

.project-details h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 10px;
  min-height: 60px;
}

.project-description {
  color: #555;
  margin-bottom: 15px;
  font-size: 0.9rem;
  min-height: 60px;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.project-features span {
  background: #f8f9fa;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #555;
}

/* Owl Carousel Customization */
.projects-section .owl-carousel .owl-stage {
  display: flex;
  align-items: stretch;
  padding: 20px 0;
}

.projects-section .owl-carousel .owl-item {
  display: flex;
  height: auto;
}

.projects-section .owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.projects-section .owl-carousel .owl-nav button {
  pointer-events: all;
  width: 40px;
  height: 40px;
  background: white !important;
  color: var(--primary-color) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -20px;
}

.projects-section .owl-carousel .owl-nav button:hover {
  background: var(--primary-color) !important;
  color: white !important;
}

.projects-section .owl-carousel .owl-nav button span {
  font-size: 1.5rem;
  line-height: 1;
}

.projects-section .owl-theme .owl-dots {
  margin-top: 20px !important;
}

.projects-section .owl-theme .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 5px;
  background: #ddd;
  transition: all 0.3s;
}

.projects-section .owl-theme .owl-dots .owl-dot.active span {
  background: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .project-img {
    height: 180px;
  }

  .project-details h3 {
    min-height: auto;
  }

  .project-description {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .projects-section .owl-carousel .owl-nav {
    display: none;
  }

  .project-card {
    margin: 5px;
  }
}



/* Certificates Section Styles */
.certificates-section {
  background: linear-gradient(rgba(26, 26, 46, 0.5), rgba(26, 26, 46, 0.5)), url('../IMG/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.certificate-card .btn-gold {
  background-color: var(--secondary-color);
  color: #1a1a2e;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.certificate-card .btn-gold:hover {
  background-color: #d6a259;
  color: #1a1a2e;
  transform: translateY(-2px);
}

.certificate-card {
  transition: all 0.3s ease;
  height: 100%;
}

.certificate-card:hover {
  transform: translateY(-10px);
}

.certificate-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  height: 350px;
}

.certificate-img img {
  transition: all 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: top;
}

.certificate-card:hover .certificate-img img {
  transform: scale(1.05);
}

.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
  opacity: 1;
}

.certificate-caption h5 {
  position: relative;
  display: inline-block;
}

.certificate-caption h5::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background: #e6b26a;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

/* Modal Styles */
.modal-content {
  border: 1px solid var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .certificate-img {
    height: 200px;
  }

  .certificate-caption h5 {
    font-size: 1.1rem;
  }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .certificate-img img {
    height: 200px;
  }

  .certificate-caption h5 {
    font-size: 1.1rem;
  }
}



/* Partners Section */

.partner-item {
  padding: 1.5rem;
    display: flex;
    align-items: center;
    /* height: 150px; */
    /* background-color: var(--white); */
    /* border-radius: 8px; */
    flex-direction: column;
    justify-content: space-between;
}


.partner-item img {
  height: 100px;
  width: auto;
  transition: var(--transition);
}




/* Contact Section Styles */
.contact {
  width: 100%;
  overflow: hidden;
  padding: 100px 0;
  background: url('../IMG/map_home.png') no-repeat center center;
  background-size: cover;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 249, 250, 0.9);
}

.contact .contact-info {
  height: 100%;
  position: relative;
}

.contact .info-item {
  transition: all 0.3s ease;
  padding: 15px;
  border-radius: 8px;
}

.contact .info-item:hover {
  background-color: rgba(46, 62, 168, 0.05);
  transform: translateY(-3px);
}

.contact .info-item a:hover{
  color: var(--secondary-color) !important;
}

.contact .info-item i {
  background-color: rgba(46, 62, 168, 0.1);
  border-radius: 50%;
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-gold {
  color: #f6c23e;
}

.text-primary {
  color: #2e3ea8;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
  .contact {
    padding: 60px 0;
  }

  .contact .info-item i {
    margin-bottom: 15px;
    margin-right: 0;
  }
}

/* Footer */
.footer {
  width: 100%;
  overflow: hidden;
  padding: 100px 0;
  background: linear-gradient(rgba(26, 26, 46, 0.5), #15181B), url('../IMG/bgggg.jpg');

  background-size: cover;
  position: relative;
  padding: 70px 0 0;
  color: #fff;
  position: relative;
}

/* .footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #15181ba1;
  z-index: -1;
} */

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  margin-left: 10px;
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer h5 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer h5::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
  bottom: 0;
  right: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-right: 5px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-left: 10px;
  color: #fff;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
}

.contact-info .info-item i {
  margin-top: 3px;
}

.contact-info a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s;
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--secondary-color);
}

@media (max-width: 576px) {
  .links-pages {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
  }

  .links-pages a:hover {
    padding-right: 0;
  }

  .quick-links {
    text-align: center;
  }

  .quick-links::after {
    right: 50% !important;
    transform: translateX(50%);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-color);
  color: #fff;
}



/* Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  width: 130px;
  height: auto;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.preloader-text-wrapper {
  height: 70px;
  overflow: hidden;
}

.preloader-text {
  color: var(--secondary-color);
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}