@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@500;600;700;800&family=Cairo:wght@400;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

.navbar.sticky-top {
  z-index: 1040 !important;
}

:root{
  --primary: #2ecc6d;
  --primery: #2ecc6d;
  --primary-hover: #27ae60;
  --primary-dark: #1e824c;
  --primary-light: rgba(46, 204, 109, 0.12);
  --gy:#9B9B9B;

  /* Premium Typography Design System */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading-ar: 'Alexandria', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --heading-color: #0f172a;
}
a{
  text-decoration:none;
  color: var(--primery);
}
.m_color{
  color: var(--primery) !important;
}
.bg_color{
  background-color: var(--primery) !important;
}

/* ==============================================================
   Modern & Refined Title Typography
   ============================================================== */

/* Base Heading Styles (LTR / French / English) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.serviceHearder,
.card-title,
.news-card-title,
.project-card-title {
  font-family: var(--font-heading);
  color: var(--heading-color);
  letter-spacing: -0.022em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Big Display & Hero Titles */
.display-1, .display-2, .display-3, .display-4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.display-5, .display-6 {
  font-family: var(--font-heading);
  font-weight: 750;
  letter-spacing: -0.028em;
  line-height: 1.2;
}

/* Specific Heading Levels */
h1, .h1 {
  font-family: var(--font-heading);
  font-weight: 750;
  letter-spacing: -0.028em;
  line-height: 1.22;
}

h2, .h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.25;
}

h3, .h3 {
  font-family: var(--font-heading);
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

h4, .h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

h5, .h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.38;
}

h6, .h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

/* Section Title Badges & Eyebrows */
.badge.bg-success-subtle,
.badge.badge-actimar {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* Stat Numbers */
.stat-number {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

/* Navigation items match */
.nav-link {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

/* Force pure white for headings with text-white or inside dark overlays */
.text-white,
.text-light,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.hero-slide-overlay h1, .hero-slide-overlay h2, .hero-slide-overlay h3,
.hero-slide-overlay .display-4,
.hero-slide-overlay p,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-success h1, .bg-success h2, .bg-success h3,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
  color: #ffffff !important;
}

/* ==============================================================
   RTL / Arabic Heading Typography
   Using 'Alexandria' (contemporary geometric Arabic) & 'Cairo'
   ============================================================== */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .h1, html[dir="rtl"] .h2, html[dir="rtl"] .h3,
html[dir="rtl"] .h4, html[dir="rtl"] .h5, html[dir="rtl"] .h6,
html[dir="rtl"] .display-1, html[dir="rtl"] .display-2,
html[dir="rtl"] .display-3, html[dir="rtl"] .display-4,
html[dir="rtl"] .display-5, html[dir="rtl"] .display-6,
html[dir="rtl"] .serviceHearder,
html[dir="rtl"] .card-title,
html[dir="rtl"] .news-card-title,
html[dir="rtl"] .project-card-title,
html[dir="rtl"] .stat-number,
html[dir="rtl"] .nav-link,
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3,
body[dir="rtl"] h4, body[dir="rtl"] h5, body[dir="rtl"] h6 {
  font-family: var(--font-heading-ar) !important;
  letter-spacing: 0 !important;
  line-height: 1.4;
}

html[dir="rtl"] .badge.bg-success-subtle,
html[dir="rtl"] .badge.badge-actimar {
  font-family: var(--font-heading-ar) !important;
  letter-spacing: 0 !important;
}

/*service*/
  
.serviceIcon{
position: relative;
margin: -40px 0 25px 0;
width: 80px;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
color: var(--primery);
background: #ffffff;
border-radius: 100px;
box-shadow: 0 0 45px rgba(0, 0, 0, .08);
font-size: xx-large;
transition: .5s;
}
.Card{
  box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}
.CardContener:hover .serviceIcon{
  background: var(--primery);
  color: rgb(255, 255,255 );
}
.card-text{
  color: var(--gy);
  font-size: small;
}

/*feature*/
.featureIcon{
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:var(--primery);
  border-radius: 100px;
  box-shadow: 0 0 45px rgba(0, 0, 0, .08);
  font-size:small;
  transition: .5s;
}
/*feature*/

/*client*/
.clienIcon{
  position: relative;
  margin: -25px 0 0  0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primery);
  background: #ffffff;
  border-radius: 100px;
  box-shadow: 0 0 45px rgba(0, 0, 0, .08);
  font-size: medium;
  transition: .5s;
}
.Card2{
  border: 0;
}
.swiper-button{
  margin: 0 40% 0 40%;
  top: 15% !important;
}
  @media (max-width: 1200px) {
       .swiper-button{
      margin: 0 15% 0 15% !important;
      top: 9% !important;
      
    } 
  }
 /*service*/
 
 /*About*/
.AboutIcon{
  position: relative;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:var(--primery);
  border-radius: 100px;
  box-shadow: 0 0 45px rgba(0, 0, 0, .08);
  font-size:xx-small;
  transition: .5s;
}
 /*About*/
 /* Demo styles Swiper */
.swiper {
  width: 100%;
  height: 89vh;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
   
/* slider home demo */
.autoplay-progress {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primery);

}

.autoplay-progress svg {
  --progress: 0;
  position: absolute;
  left: 0;
  top: 0px;
  z-index: 10;
  width: 100%;
  height: 100%;
  stroke-width: 4px;
  stroke: var(--primery);
  fill: none;
  stroke-dashoffset: calc(125.6 * (1 - var(--progress)));
  stroke-dasharray: 125.6;
  transform: rotate(-90deg);
}


/* MAP css */
svg.map path{
  fill :aqua;
  stroke: aquamarine;
  stroke-width: .30;
}
svg.map path[data-id="TN"]{
  stroke: black; 
  stroke-width: .5px;
}
svg.map path[data-id="TN"]:hover{
  fill :rgb(69, 54, 138);
  transition: .6s;
  cursor: pointer;
}
.bb{
height: 20% !important;
}
/*--------------------------------------------------------------
# Back to top button (Green theme matching home page)
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: var(--primery, #2ecc6d) !important;
  color: #ffffff !important;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.back-to-top i {
  font-size: 20px;
  color: #ffffff !important;
  line-height: 1;
}

.back-to-top:hover {
  background: #27ae60 !important;
  color: #ffffff !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(46, 204, 109, 0.4);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}
.filterDiv {
  display: block;
}

.filterDiv.is-hidden {
  display: none !important;
}

.show {
  display: block;
}

/* ==============================================================
   News / Actualités Card Styles (Unified across Home & Projects)
   ============================================================== */
.news-card {
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}
.news-card-img-wrap {
  position: relative;
  width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  overflow: hidden !important;
  background: #f8f9fa;
}
.news-card-img-wrap img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 220px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-img-wrap img {
  transform: scale(1.05);
}
.hover-success:hover {
  color: var(--primery, #2ecc6d) !important;
}


/* ==============================================================
   Actimar Brand Theme Button Styles
   ============================================================== */

/* Base button properties - clean interactive defaults */
.btn {
  cursor: pointer;
  pointer-events: auto;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.25s ease-in-out;
  outline: none;
}

/* Primary Theme Button */
.btn-success {
  background-color: var(--primery, #2ecc6d) !important;
  border-color: var(--primery, #2ecc6d) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(46, 204, 109, 0.25);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: var(--primary-hover, #27ae60) !important;
  border-color: var(--primary-hover, #27ae60) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46, 204, 109, 0.4) !important;
}

/* Outline Theme Button */
.btn-outline-success {
  color: var(--primery, #2ecc6d) !important;
  border-color: var(--primery, #2ecc6d) !important;
  background-color: transparent !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success.active {
  background-color: var(--primery, #2ecc6d) !important;
  border-color: var(--primery, #2ecc6d) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(46, 204, 109, 0.25) !important;
}

/* Hero Custom Primary CTA Button */
.btn-hero-primary {
  background: linear-gradient(135deg, #2ecc6d, #27ae60) !important;
  border: 2px solid #2ecc6d !important;
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(46, 204, 109, 0.4) !important;
  transition: all 0.3s ease;
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
  background: linear-gradient(135deg, #27ae60, #1e824c) !important;
  border-color: #27ae60 !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 204, 109, 0.55) !important;
}

/* Hero Custom Secondary CTA Button (Theme Translucent Glass) */
.btn-hero-secondary {
  background: rgba(46, 204, 109, 0.15) !important;
  border: 2px solid var(--primery, #2ecc6d) !important;
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover,
.btn-hero-secondary:focus {
  background: var(--primery, #2ecc6d) !important;
  border-color: var(--primery, #2ecc6d) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 204, 109, 0.45) !important;
}

/* Outline light buttons on dark background - hover to theme green instead of stark white */
.btn-outline-light {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
  background-color: transparent !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: var(--primery, #2ecc6d) !important;
  border-color: var(--primery, #2ecc6d) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(46, 204, 109, 0.3) !important;
}

/* Language selector in navbar */
.lang-selector .btn {
  padding: 3px 10px !important;
  font-size: 0.75rem !important;
  border-radius: 4px;
}

.lang-selector .btn.active {
  background-color: var(--primery, #2ecc6d) !important;
  color: #ffffff !important;
  border-color: var(--primery, #2ecc6d) !important;
}

/* Category filter buttons in Projects page */
#myBtnContainer .btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  border-width: 1.5px;
}

#myBtnContainer .btn.active {
  background-color: var(--primery, #2ecc6d) !important;
  color: #ffffff !important;
  border-color: var(--primery, #2ecc6d) !important;
  box-shadow: 0 4px 12px rgba(46, 204, 109, 0.3) !important;
}

/* Pagination Theme Styling */
.pagination .page-link {
  color: var(--primery, #2ecc6d);
  border-color: #dee2e6;
  border-radius: 6px;
  margin: 0 2px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  color: var(--primary-hover, #27ae60);
  background-color: #eafaf1;
  border-color: #c3e6cb;
}

.pagination .page-item.active .page-link {
  background-color: var(--primery, #2ecc6d) !important;
  border-color: var(--primery, #2ecc6d) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(46, 204, 109, 0.35);
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}
