:root{--primary-red:#B6121A;--dark-blue:#000000;--gold:#ffffff;--white:#ffffff;--light-gray:#f8f9fa;--dark-gray:#343a40;}body{font-family:'Tajawal',sans-serif;direction:rtl;text-align:right;color:var(--dark-gray);background-color:var(--white);overflow-x:hidden;}a{color:var(--dark-blue);text-decoration:none;transition:color 0.3s;}a:hover,a:focus{color:var(--primary-red);outline:none;}h1,h2,h3,h4,h5,h6{font-weight:700;margin-bottom:15px;line-height:1.2;}p{margin-bottom:15px;}.btn,.btn:focus{padding:12px 25px;font-weight:600;transition:all 0.3s;border-radius:0;outline:none;}.btn:focus{box-shadow:0 0 0 3px rgba(181,18,26,0.25);}.btn-primary{background-color:var(--primary-red);border-color:var(--primary-red);color:var(--white);}.btn-primary:hover,.btn-primary:focus{background-color:#961017;border-color:#961017;color:var(--white);}.btn-secondary{background-color:var(--gold);border-color:var(--gold);color:var(--dark-blue);}.btn-secondary:hover,.btn-secondary:focus{background-color:#e0b722;border-color:#e0b722;color:var(--dark-blue);}.section-padding{padding:80px 0;}.section-title{margin-bottom:50px;text-align:center;}.section-title h2{font-size:2.2rem;font-weight:700;margin-bottom:15px;}.section-title p{font-size:1.125rem;}.header-top{background-color:var(--primary-red);padding:10px 0;color:var(--white);}.header-top-info{display:flex;justify-content:flex-end;align-items:center;gap:20px;}.header-top-info-item{display:flex;align-items:center;gap:10px;}.header-top-info-item i{font-size:18px;}.header-top-info-item span{font-size:14px;}.logo{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;}.logo-img-bg{background:var(--white);border-radius:8px;padding:2px 4px;max-width:44px;height:auto;}.logo h1{font-size:28px;margin:0;color:var(--white);}.logo p{font-size:14px;margin:0;color:var(--white);}.navbar{background-color:var(--dark-blue);padding:15px 0;}.navbar-nav{margin-right:auto;}.nav-item{margin:0 15px;}.nav-link{color:var(--white) !important;font-weight:500;font-size:16px;padding:10px 0;position:relative;transition:color 0.3s;}.nav-link:hover,.nav-link.active{color:var(--gold) !important;}.nav-link.active::after{content:'';position:absolute;bottom:0;right:0;width:100%;height:2px;background-color:var(--gold);}.ask-contractor-btn{background-color:var(--primary-red);color:var(--white);padding:10px 20px;font-weight:600;border-radius:0;transition:background 0.3s;}.ask-contractor-btn:hover,.ask-contractor-btn:focus{background-color:#961017;color:var(--white);}.hero-section{background-color:var(--dark-blue);padding:100px 0;color:var(--white);position:relative;}.hero-content{text-align:center;}.hero-content h1{font-size:2.5rem;margin-bottom:20px;}.hero-content p{font-size:1.125rem;margin-bottom:30px;}.hero-buttons{margin-top:30px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}.carousel-item{position:relative;}.carousel-item::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(10,18,38,0.5);z-index:1;pointer-events:none;}.carousel-caption{position:absolute;z-index:2;text-align:center;right:0;left:0;}.carousel-caption h1,.carousel-caption p{color:var(--white);text-shadow:0 2px 10px rgba(0,0,0,0.7);}@media (min-width:992px){.carousel,.carousel-inner,.carousel-item,.carousel-item img{height:480px;max-height:480px;min-height:320px;}.carousel-item img{object-fit:cover;width:100%;}}@media (max-width:767px){.carousel,.carousel-inner,.carousel-item,.carousel-item img{height:220px;max-height:220px;min-height:150px;}.carousel-caption h1{font-size:1.2rem;}}.about-section{padding:80px 0;}.about-content h2{font-size:2.1rem;margin-bottom:20px;}.about-content p{font-size:1rem;line-height:1.8;margin-bottom:20px;}.about-image img{width:100%;height:auto;border-radius:6px;}.services-section{padding:80px 0; background-color:var(--light-gray);}.service-item{background-color:var(--white);padding:30px;margin-bottom:30px;box-shadow:0 5px 20px rgba(0,0,0,0.08);transition:transform 0.3s,box-shadow 0.3s;border-radius:10px;}.service-item:hover{transform:translateY(-8px) scale(1.03);box-shadow:0 10px 32px rgba(181,18,26,0.08);}.service-icon{font-size:48px;color:var(--primary-red);margin-bottom:20px;}.service-title{font-size:22px;margin-bottom:15px;}.service-description{font-size:16px;line-height:1.6;}.cta-section{padding:60px 0;background-color:var(--primary-red);color:var(--white);}.cta-content h2{font-size:2.1rem;margin-bottom:20px;}.cta-content p{font-size:1.125rem;margin-bottom:0;}.cta-button{text-align:left;}.contact-section{padding:80px 0;}.contact-info-item{display:flex;margin-bottom:30px;gap:10px;}.contact-info-icon{font-size:24px;color:var(--primary-red);}.contact-info-text h3{font-size:20px;margin-bottom:5px;}.contact-info-text p{font-size:16px;margin-bottom:0;}.contact-form .form-control{height:50px;border-radius:0;margin-bottom:20px;}.contact-form textarea.form-control{height:200px;}.footer{background-color:var(--dark-blue);color:var(--white);padding:80px 0 0;}.footer-widget{margin-bottom:40px;}.footer-widget h3{font-size:24px;margin-bottom:25px;color:var(--white);}.footer-widget p{font-size:16px;line-height:1.8;}.footer-widget img[alt="رؤية السعودية 2030"]{margin-top:10px;max-width:140px;height:auto;}.footer-links{list-style:none;padding:0;margin:0;}.footer-links li{margin-bottom:15px;}.footer-links li a{color:var(--white);font-size:16px;transition:color 0.3s,padding-right 0.3s;}.footer-links li a:hover,.footer-links li a:focus{color:var(--gold);padding-right:5px;}.footer-social{list-style:none;padding:0;margin:0;display:flex;gap:10px;}.footer-social li a{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background-color:rgba(255,255,255,0.1);color:var(--white);border-radius:50%;transition:background 0.3s,color 0.3s;}.footer-social li a:hover,.footer-social li a:focus{background-color:var(--primary-red);color:var(--white);}.footer-bottom{padding:20px 0;border-top:1px solid rgba(255,255,255,0.1);margin-top:40px;}.footer-bottom p{margin-bottom:0;font-size:14px;}@media (max-width:991px){.navbar-collapse{background-color:var(--dark-blue);padding:15px;margin-top:15px;}.nav-item{margin:5px 0;}.hero-content h1{font-size:2rem;}.section-title h2{font-size:1.5rem;}}@media (max-width:767px){.header-top-info{justify-content:center;flex-wrap:wrap;}.header-top-info-item{margin:5px 15px;}.logo{text-align:center;margin-bottom:15px;justify-content:center;}.hero-content h1{font-size:1.2rem;}.hero-buttons .btn{margin:10px;}.cta-button{text-align:center;margin-top:20px;}.footer-widget{text-align:center;}.footer-social{justify-content:center;}.footer-widget img[alt="رؤية السعودية 2030"]{max-width:90px;}}.visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;border:0 !important;}.whatsapp-float{position:fixed;width:60px;height:60px;bottom:40px;right:40px;background-color:#25d366;color:#fff;border-radius:50%;text-align:center;font-size:30px;box-shadow:2px 2px 6px #bbb;z-index:100;display:flex;align-items:center;justify-content:center;transition:all 0.3s;outline:none;}.whatsapp-float:hover,.whatsapp-float:focus{background-color:#128C7E;color:#fff;transform:scale(1.12);outline:none;}.whatsapp-float i{margin-top:0;font-size:32px;}@media (max-width:767px){.whatsapp-float{width:48px;height:48px;bottom:18px;right:18px;font-size:22px;}.whatsapp-float i{font-size:24px;}}
/* ✅ Desktop hover behavior */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus .dropdown-menu,
.nav-item.dropdown .dropdown-menu:hover {
  display: block;
}

/* ✅ Mobile behavior fix */
@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    display: block;
    width: 100%;
    margin-top: 0;
    background-color: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .navbar-nav .dropdown-menu .dropdown-item {
    padding: 8px 20px;
    color: var(--white);
    font-weight: 500;
  }

  .navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--gold);
  }
}


/* Optional delay to prevent flicker */
.navbar .dropdown-menu {
  display: none;
  transition: opacity 0.3s ease;
  opacity: 1;
  position: absolute;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 0;
  right: 0;
  left: auto;
  text-align: right;
  z-index: 1000;
}

/* Make items clearly visible */
.navbar .dropdown-item {
  color: #fff;
  padding: 10px 20px;
  font-weight: 500;
  background-color: transparent;
  transition: color 0.3s ease;
}

/* Hover effect */
.navbar .dropdown-item:hover {
  color: var(--gold);
  background-color: transparent;
}

.partner-item {
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.partner-item img {
  max-width: 100%;
  height: auto;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.partner-item:hover img {
  transform: scale(1.1) rotateZ(-1deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Animation Keyframes */
@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Optional: Staggered animation delay */
.partner-item:nth-child(1) { animation-delay: 0s; }
.partner-item:nth-child(2) { animation-delay: 0.1s; }
.partner-item:nth-child(3) { animation-delay: 0.2s; }
.partner-item:nth-child(4) { animation-delay: 0.3s; }
.partner-item:nth-child(5) { animation-delay: 0.4s; }
.partner-item:nth-child(6) { animation-delay: 0.5s; }
.back-to-top {
  position: fixed;
  bottom: 40px;
  left: 20px;
  z-index: 999;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 10px 12px;
  border-radius: 50%;
  font-size: 18px;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
}

.back-to-top:hover,
.back-to-top:focus {
  background-color: #961017;
  transform: translateY(-4px);
  color: var(--white);
  outline: none;
  text-decoration: none;
}

@media (max-width: 767px) {
  .back-to-top {
    bottom: 80px;
    left: 15px;
  }
}

/* Projects Section General Styling (Keep if you like this styling) */
.projects-page-section .section-title h2 {
    font-size: 2.2rem; /* Consistent section title styling */
}
.projects-page-section .section-title p {
    font-size: 1.1rem;
    color: #6c757d; /* Softer subtitle color */
}

/* Filter Buttons Styling (For Visual Display Only) */
.projects-filter .filter-btn {
  padding: 10px 20px;
  margin: 0 5px 10px; /* Allows wrapping on smaller screens */
  font-weight: 500;
  font-size: 0.95rem;
  /* cursor: default; /* Change cursor if they are truly non-interactive */
  cursor: pointer; /* Keep as pointer if you add the JS for visual active state toggle */
  border: 1px solid #dee2e6; /* Light default border */
  border-radius: 25px; /* Pill shape */
  transition: all 0.3s ease;
  background-color: var(--white);
  color: var(--dark-gray);
  text-transform: capitalize; /* Optional styling for button text */
}

.projects-filter .filter-btn:hover { /* Visual feedback on hover */
  background-color: var(--light-gray);
  border-color: #adb5bd;
  color: var(--primary-red);
}

/* Style for the 'active' filter button (if using JS to toggle class visually) */
/* If no JS, the button with .active class in HTML will get this style statically */
.projects-filter .filter-btn.active { 
  background-color: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
  box-shadow: 0 3px 7px rgba(182, 18, 26, 0.25); /* Optional shadow for active button */
}

.projects-section { padding: 80px 0; }

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease;
}

.project-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

/* Image zoom */
.project-image-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--light-gray);
}

.project-image-wrapper img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item:hover .project-image-wrapper img {
  transform: scale(1.05);
}

/* Overlay fades in */
.project-overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background: linear-gradient(to top, rgba(10, 18, 38, 0.9) 0%, rgba(10, 18, 38, 0.75) 50%, rgba(10, 18, 38, 0) 100%);
  color: var(--white);
  padding: 15px;
  text-align: right;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(15px);
  z-index: 2;
}

.project-item:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Title + Category */
.project-title-overlay {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
}

.project-category-overlay {
  color: var(--brand-gold);
  font-size: 0.8rem;
  font-weight: 500;
  display: block;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .projects-filter .filter-btn { 
        padding: 8px 15px; 
        font-size: 0.9rem; 
        margin: 0 3px 8px; 
    }
    .project-image-wrapper img { 
        height: 180px; /* Shorter images on mobile */
    }
    .project-title-overlay { 
        font-size: 1rem; 
    }
    .project-category-overlay { 
        font-size: 0.75rem; 
    }
    .project-overlay { 
        min-height: 80px; /* Adjusted overlay height for mobile */
        padding: 10px; 
    }
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  float: right;
  padding-left: 0.5rem;
}