/* =============================================================
   front-page.css — extracted from front-page.php inline <style>
   2026-04-22. Contains all homepage section styles: hero,
   about, services, vision, benefits, projects.
   Only enqueued on is_front_page(). Overridden by style.css.
   ============================================================= */

.hero-section {
  position: relative;
}
.hero-slides {
  position: absolute; top:0; left:0;
  width:100%; height:100%;
}
.hero-slide {
  position: absolute; top:0; left:0;
  width:100%; height:100%;
  background-size: cover;
  background-position: center;
  opacity:0;
  transform: translateY(20px);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}
.hero-slide.active {
  opacity:1;
  transform: translateY(0);
}

/* Dark overlay */
.hero-slide::before {
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.4);
  opacity:0;
  transition: opacity 1s ease-in-out;
  z-index:1;
}
.hero-slide.active::before {
  opacity:1;
}

.hero-content {
  position: relative;
  z-index:2;
  width:100%; height:100%;
  display:flex; 
  flex-direction:column;
  align-items:center; 
  justify-content:center;
  text-align:center; 
  color:#fff;
  padding:0 20px;
}
.hero-title {
  font-size:2rem;
  font-weight:700;
  margin-bottom:1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-desc {
  font-size:1.2rem;
  max-width:600px;
  line-height:1.5;
  margin-bottom:1.5rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-buttons {
  display:flex; gap:1rem; flex-wrap:wrap; justify-content:center;
}
.hero-button {
  display:inline-block;
  padding:10px 20px;
  font-weight:600;
  border-radius:4px;
  text-decoration:none;
  background-color: #077169;
  color:#ffffff;
  transition: background-color 0.3s;
}
.hero-button:hover {
  background-color: #999;
  color:#fff;
}

@media(max-width:768px) {
  .hero-section {
    height:70vh;
  }
  .hero-title {
    font-size:1.8rem;
  }
  .hero-desc {
    font-size:1.1rem;
  }
}


/*******************************************************
 * ABOUT SECTION (من نحن؟)
 *******************************************************/

/* Main container (background, spacing) */
.about-section {
  width: 100%;
  background-color: #f9f9f9; /* or a gradient if you prefer */
  padding: 60px 20px; 
  direction: rtl; /* Arabic right-to-left text */
}

/* Center content and limit max width */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Two-column grid: left = logo, right = text & buttons */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr; 
  gap: 2rem;
  align-items: center; /* vertically center content */
}
@media (max-width: 768px) {
  /* Stacks columns on small screens */
  .about-grid {
grid-template-columns: 1fr;
text-align: center;
  }
}

/* Each column */
.about-col {
  /* no extra styling by default */
}

/* LOGO COLUMN */
.about-col-left {
  display: flex;
  justify-content: center; /* center the logo horizontally */
  align-items: center;
}
.about-logo {
  width: 200px; /* adjust as needed */
  height: auto;
  display: block;
}

/* RIGHT COLUMN */
.about-col-right {
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  text-align: right; /* maintain Arabic alignment on desktop */
}
@media (max-width: 768px) {
  .about-col-right {
text-align: center; /* if you want center text on mobile */
  }
}

/* Title */
.about-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #076e6a; /* brand color */
}

/* Description */
.about-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

/* Buttons container */
.about-buttons {
  display: flex; 
  gap: 1rem;
  flex-wrap: wrap; 
  /* justify-content: flex-start; if you want them left-aligned */
}

/* Individual button styling */
.about-btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  background-color: #076e6a;
  color: #fff;
  transition: background-color 0.3s, transform 0.3s;
}
.about-btn:hover {
  background-color: #0a905a;
  transform: translateY(-2px);
}

/************************************************************
 * SERVICES (Wave + Flag-Style Cards) with 5 columns on desktop
 * and 2 columns on mobile, plus a bigger hover effect
 ************************************************************/
.services-wave-section {
  position: relative;
  padding: 100px 20px;
  direction: rtl; 
  text-align: center; 
  overflow: hidden; 
  background: #f9f9f9;
}

/* Wave Top */
.services-wave-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.services-wave-top svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Wave Bottom */
.services-wave-bottom {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.services-wave-bottom svg {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(180deg);
}

/* Container => above waves */
.services-content-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* Title & Subtitle */
.services-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.services-subtitle {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 2.5rem;
}

/* Grid => 5 columns on desktop, 2 columns on mobile */
.services-grid-flag {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for large screens */
  justify-items: center;
}

@media (max-width: 768px) {
  .services-grid-flag {
grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile already set */
gap: 1rem; /* Reduce gap on mobile */
padding: 0 10px; /* Add some padding on the sides */
width: 100%; /* Ensure width is contained */
box-sizing: border-box; /* Include padding in width calculation */
  }
  
  .service-flag-card {
width: 100%; /* Make cards take full width of their grid cell */
max-width: 160px; /* Limit maximum width */
margin: 0 auto; /* Center the cards */
  }
}

/* Each card => white rectangle with diagonal “flag” banner at top */
.service-flag-card {
  background: #fff;
  width: 220px; /* smaller base width to allow 5 in a row */
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden; 
  position: relative;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-flag-card:hover {
  transform: translateY(-4px) scale(1.02) rotate(-0.5deg);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
  .service-flag-card {
width: 180px;
  }
}

/* Diagonal banner => .flag-header using clip-path */
.flag-header {
  position: relative;
  background: linear-gradient(90deg, #076e6a, #0a905a);
  height: 80px;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.service-icon {
  font-size: 2rem;
  color: #fff;
  z-index: 2;
}

/* Body => service name + short description */
.flag-body {
  padding: 16px;
}
.flag-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #076e6a; 
  margin-bottom: 0.4rem;
}
.flag-body p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.4;
}

/* Optional overlay on hover for more “pop” 
   We can do a partial gradient overlay 
*/
.service-flag-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0), rgba(0,0,0,0.15));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}
.service-flag-card:hover::before {
  opacity: 0.1;
}

/* Ensure text is above the overlay */
.service-flag-card > * {
  position: relative;
  z-index: 2;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
  .flag-header {
height: 60px;
  }
  .service-icon {
font-size: 1.8rem;
  }
  .flag-body h3 {
font-size: 0.95rem;
  }
  .flag-body p {
font-size: 0.8rem;
  }
  
  .services-title {
color: #000;
}

  .services-subtitle {
color: #000;
}
}

/************************************************************
 * VISION SECTION (Wave BG + 2-Column + Big Icon + Tab Card)
 ************************************************************/
.vision-wave-section {
  position: relative;
  padding: 80px 20px;
  direction: rtl;
  color: #fff;
  overflow: hidden;
  background: #f9f9f9; /* fallback BG if waves don't cover entire area */
  text-align: center;
}

/* Wave Top */
.vision-wave-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.vision-wave-top svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Wave Bottom */
.vision-wave-bottom {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.vision-wave-bottom svg {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(180deg);
}

/* Container => above wave shapes */
.vision-container {
  position: relative;
  z-index: 2; /* above wave */
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0; /* spacing for content */
}

/* Vision/Mission/Goals layout is now handled by .vm-* classes in style.css */

/************************************************************
 * 4 BENEFITS (Diagonal BG + Glass Cards + 3D TILT)
 * + Wave Top & Bottom + Fade-In (Enhanced Vibrant Style)
 * Colors Adjusted => Icons Green, Texts Black
 ************************************************************/

/* Parent Section => wave top & bottom + diagonal BG */
.benefits-diagonal-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  direction: rtl;
  overflow: hidden;
  text-align: center;
}

/* Wave Top => pinned at top */
.benefits-wave-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 2; 
  line-height: 0;
}
.benefits-wave-top svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Diagonal BG => bolder gradient */
.diagonal-bg {
  position: absolute;
  top: 0; left: 0; 
  width: 100%; height: 100%;
  background: linear-gradient(135deg,
#076e6a 0%,
#0a905a 30%,
#0fad67 70%,
#10d072 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
  z-index: 1;
}

/* Wave Bottom => pinned at bottom */
.benefits-wave-bottom {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}
.benefits-wave-bottom svg {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(180deg);
}

/* Main container => above waves & diagonal BG */
.benefits-diagonal-container {
  position: relative;
  z-index: 3; 
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Section Title => now black */
.benefits-diagonal-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000; 
  margin-bottom: 2rem;
}

/* Grid => 4 columns on desktop, 2 on mobile */
.benefits-diagonal-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
}

@media (max-width: 768px) {
  .benefits-diagonal-grid {
grid-template-columns: repeat(2, 1fr);
gap: 1rem; /* Reduce gap on mobile */
padding: 0 10px; /* Add padding on sides */
width: 100%;
box-sizing: border-box;
  }
  
  .benefit-glass-card {
width: 100%; /* Make cards take full width of their container */
max-width: 150px; /* Limit maximum width */
margin: 0 auto; /* Center the cards */
  }
  
  .benefit-glass-inner {
padding: 15px 10px; /* Reduce padding inside cards */
  }
  
  .benefit-text {
font-size: 0.85rem; /* Slightly smaller text */
max-width: 130px; /* Reduce max width of text */
  }
}
/* Glass Card => fade-up hidden by default for scroll reveal */
.benefit-glass-card {
  width: 240px;
  height: 320px;
  perspective: 1000px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
@media (max-width: 768px) {
  .benefit-glass-card {
width: 180px; 
height: 260px;
  }
}

/* fade-up-active => fade & move up when in viewport */
.benefit-glass-card.fade-up-active {
  transform: translateY(0);
  opacity: 1;
}

/* The glass inner => big tilt + overlay on hover */
.benefit-glass-inner {
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.6s ease, box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transform-style: preserve-3d;
  position: relative;
}

/* Tilt effect on hover => more pronounced angles */
.benefit-glass-card:hover .benefit-glass-inner {
  transform: rotateY(10deg) rotateX(-8deg) translateY(-10px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Multi-step overlay on hover for more color pop */
.benefit-glass-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
linear-gradient(45deg, rgba(255,255,255,0), rgba(255,255,255,0.2)),
radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 12px;
  z-index: 0;
}
.benefit-glass-card:hover .benefit-glass-inner::before {
  opacity: 1;
}

/* Layer content above overlays */
.benefit-glass-inner > * {
  position: relative;
  z-index: 1;
}

/* Icon => now green => #0a905a + rotation on hover */
.benefit-icon {
  font-size: 3rem;
  color: #0a905a; /* green icon */
  margin-bottom: 15px;
  transition: transform 0.3s;
}
.benefit-glass-card:hover .benefit-icon {
  transform: scale(1.15) rotate(-8deg);
}

/* Title & Text => now black */
.benefit-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000; /* black */
  margin-bottom: 0.5rem;
}
.benefit-text {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
  color: #000; /* black */
  text-align: center;
}

/* On smaller screens => scale down text / icon */
@media (max-width: 768px) {
  .benefit-icon {
font-size: 2.2rem;
  }
  .benefit-name {
font-size: 1.1rem;
  }
  .benefit-text {
font-size: 0.9rem;
max-width: 150px;
  }
}

/*************************************************************
 * PROJECTS SECTION + LIGHTBOX (Enhanced Style)
 *************************************************************/
.projects-section {
  position: relative;
  padding: 60px 20px 80px;
  background: #f9f9f9;
  direction: rtl;
  text-align: center;
  overflow: hidden; /* wave shape doesn't break layout */
}
.projects-wave-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.projects-wave-top svg {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1); /* default scale for medium screens */
  transition: transform 0.4s ease;
}


@media (max-width: 768px) {
  .projects-wave-top svg {
transform: scale(1.1) translateY(-5%);
  }

  /* Title/subtitle => black on mobile */
  .projects-title,
  .projects-subtitle {
color: #000 !important;
  }
}

/* On large desktop => a moderate wave => scale(0.9). 
   Adjust if you want an even smaller wave shape on big screens.
*/
@media (min-width: 992px) {
  .projects-wave-top svg {
transform: scale(0.9);
  }
}


.projects-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.projects-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.projects-subtitle {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 2rem;
}
/* Grid => auto-fit images in columns */
.projects-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  justify-items: center;
}
/* project-item => fade-up approach */
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
/* fade-up-active => triggered by IntersectionObserver */
.fade-up-active {
  transform: translateY(0);
  opacity: 1;
}
/* Thumbnail with hover overlay */
.project-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
  border-radius: 6px;
}
.project-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0), rgba(0,0,0,0.4));
  opacity: 0;
  transition: opacity 0.3s;
}
.project-item:hover::before {
  opacity: 1;
}
.project-item:hover img {
  transform: scale(1.05);
}
/* LIGHTBOX Overlay */
.lightbox-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 9999;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lb-img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  object-fit: contain;
}
/* Close Button */
.lb-close {
  position: absolute;
  top: 20px; 
  right: 20px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s;
}
.lb-close:hover {
  transform: scale(1.2);
}
/* Prev/Next Buttons => left/right */
.lb-prev,
.lb-next {
  position: absolute;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s;
}
.lb-prev:hover,
.lb-next:hover {
  transform: scale(1.2);
}
.lb-prev {
  left: 5%;
}
.lb-next {
  right: 5%;
}



