/* ====== ARABIC FONT FACE DECLARATIONS (TTF Format) ====== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');
html[lang="ar"] body {
    font-family: 'Cairo', sans-serif !important;
}



/* Cairo Font - Regular */
@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/Cairo/static/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Cairo Font - Medium */
@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/Cairo/static/Cairo-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Cairo Font - SemiBold */
@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/Cairo/static/Cairo-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Cairo Font - Bold */
@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/Cairo/static/Cairo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ====== APPLY ARABIC FONTS ====== */

/* Apply to RTL pages - ONLY Cairo font */
body.rtl,
body[lang="ar"],
html[dir="rtl"] body,
html[lang="ar"] body {
  font-family: 'Cairo', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  text-align: right;
  letter-spacing: 0;
  word-spacing: 0.1em;
}

/* Navigation in Arabic - ONLY Cairo */
body.rtl .nav-link,
body[lang="ar"] .nav-link,
html[dir="rtl"] .nav-link,
html[lang="ar"] .nav-link {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Headings in Arabic - ONLY Cairo */
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6,
body[lang="ar"] h1,
body[lang="ar"] h2,
body[lang="ar"] h3,
body[lang="ar"] h4,
body[lang="ar"] h5,
body[lang="ar"] 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 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.4;
}

/* Adjust heading sizes for Arabic */
body.rtl h1,
body[lang="ar"] h1,
html[dir="rtl"] h1 { 
  font-size: 2.3rem; 
  margin-bottom: 1.2rem; 
}
body.rtl h2,
body[lang="ar"] h2,
html[dir="rtl"] h2 { 
  font-size: 1.9rem; 
  margin-bottom: 1rem; 
}
body.rtl h3,
body[lang="ar"] h3,
html[dir="rtl"] h3 { 
  font-size: 1.6rem; 
  margin-bottom: 0.8rem; 
}
body.rtl h4,
body[lang="ar"] h4,
html[dir="rtl"] h4 { 
  font-size: 1.4rem; 
  margin-bottom: 0.6rem; 
}

/* Paragraphs and text in Arabic - ONLY Cairo */
body.rtl p,
body.rtl li,
body.rtl span,
body.rtl div:not(.social-icon):not(.menu-toggle i):not(.mobile-close-btn i),
body[lang="ar"] p,
body[lang="ar"] li,
body[lang="ar"] span,
body[lang="ar"] div:not(.social-icon):not(.menu-toggle i):not(.mobile-close-btn i),
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] span,
html[dir="rtl"] div:not(.social-icon):not(.menu-toggle i):not(.mobile-close-btn i) {
  font-family: 'Cairo', sans-serif;
  font-weight: 400;
  line-height: 1.8;
}

/* Dropdowns in Arabic - ONLY Cairo */
body.rtl .dropdown-content,
body.rtl .dropdown-link,
body[lang="ar"] .dropdown-content,
body[lang="ar"] .dropdown-link,
html[dir="rtl"] .dropdown-content,
html[dir="rtl"] .dropdown-link {
  font-family: 'Cairo', sans-serif;
  text-align: right;
  font-weight: 500;
}

/* Language switcher in Arabic - ONLY Cairo */
body.rtl .lang-btn,
body.rtl .mobile-lang-btn,
body[lang="ar"] .lang-btn,
body[lang="ar"] .mobile-lang-btn,
html[dir="rtl"] .lang-btn,
html[dir="rtl"] .mobile-lang-btn {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
}

/* Keep icons font for social icons and buttons */
body.rtl .social-icon,
body[lang="ar"] .social-icon,
html[dir="rtl"] .social-icon {
  font-family: 'bootstrap-icons', sans-serif;
}

body.rtl .menu-toggle i,
body.rtl .mobile-close-btn i,
body[lang="ar"] .menu-toggle i,
body[lang="ar"] .mobile-close-btn i,
html[dir="rtl"] .menu-toggle i,
html[dir="rtl"] .mobile-close-btn i {
  font-family: 'bootstrap-icons', sans-serif;
}

/* RTL layout adjustments */
body.rtl .nav-list,
body[lang="ar"] .nav-list,
html[dir="rtl"] .nav-list {
  padding-right: 0;
}

body.rtl .has-dropdown .dropdown-content,
body[lang="ar"] .has-dropdown .dropdown-content,
html[dir="rtl"] .has-dropdown .dropdown-content {
  right: 0;
  left: auto;
  text-align: right;
}

body.rtl .dropdown-link,
body[lang="ar"] .dropdown-link,
html[dir="rtl"] .dropdown-link {
  padding-right: 25px;
  padding-left: 20px;
  border-right: 3px solid transparent;
  border-left: none;
}

body.rtl .dropdown-link:hover,
body[lang="ar"] .dropdown-link:hover,
html[dir="rtl"] .dropdown-link:hover {
  padding-right: 30px;
  border-right-color: #2b6cb0;
}

/* English version remains unchanged */
body:not(.rtl):not([lang="ar"]):not([dir="rtl"]) {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Remove old Arabic font rules - Keep only these */
.AR p {
  font-family: 'Cairo', sans-serif;
}

.AR .features .tab-pane ul li,
.AR .features .tab-pane p:last-child {
  font-family: 'Cairo', sans-serif;
  text-align: justify;
}

/*--------------------------------------------------------------
# General - Keep English fonts for non-Arabic
--------------------------------------------------------------*/
body:not(.rtl):not([lang="ar"]):not([dir="rtl"]) {
  font-family: "Open Sans", sans-serif;
  color: #444444;
}

body:not(.rtl):not([lang="ar"]):not([dir="rtl"]) h1, 
body:not(.rtl):not([lang="ar"]):not([dir="rtl"]) h2, 
body:not(.rtl):not([lang="ar"]):not([dir="rtl"]) h3, 
body:not(.rtl):not([lang="ar"]):not([dir="rtl"]) h4, 
body:not(.rtl):not([lang="ar"]):not([dir="rtl"]) h5, 
body:not(.rtl):not([lang="ar"]):not([dir="rtl"]) h6 {
  font-family: "Raleway", sans-serif;
}

/* About Section - Apply Cairo only for Arabic */
body.rtl .about-section *:not(.social-icon):not(.menu-toggle i):not(.mobile-close-btn i),
body[lang="ar"] .about-section *:not(.social-icon):not(.menu-toggle i):not(.mobile-close-btn i),
html[dir="rtl"] .about-section *:not(.social-icon):not(.menu-toggle i):not(.mobile-close-btn i) {
  font-family: 'Cairo', sans-serif;
}

body.rtl .about-header h2,
body[lang="ar"] .about-header h2,
html[dir="rtl"] .about-header h2 {
  font-family: 'Cairo', sans-serif;
}

body.rtl .tagline,
body[lang="ar"] .tagline,
html[dir="rtl"] .tagline {
  font-family: 'Cairo', sans-serif;
}

body.rtl .feature-content h4,
body[lang="ar"] .feature-content h4,
html[dir="rtl"] .feature-content h4 {
  font-family: 'Cairo', sans-serif;
}

body.rtl .sidebar-card h4,
body[lang="ar"] .sidebar-card h4,
html[dir="rtl"] .sidebar-card h4 {
  font-family: 'Cairo', sans-serif;
}

body.rtl .card-header h3,
body[lang="ar"] .card-header h3,
html[dir="rtl"] .card-header h3 {
  font-family: 'Cairo', sans-serif;
}

/* Keep icons font */
body.rtl .feature-icon i,
body[lang="ar"] .feature-icon i,
html[dir="rtl"] .feature-icon i,
body.rtl .card-header i,
body[lang="ar"] .card-header i,
html[dir="rtl"] .card-header i {
  font-family: 'bootstrap-icons', sans-serif;
}

/* The rest of your CSS remains exactly the same - no changes needed */
/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #39438D;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}
.back-to-top i {
  font-size: 2.05vw;
  color: #fff;
  line-height: 0;
}
.back-to-top:hover {
  background: #57aae1;
  color: #fff;
}
.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Home Section
--------------------------------------------------------------*/
.simple-hero {
  width: 100%;
  height: 50vh;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)),
    url("../img/general/md1.jpg") center center no-repeat;
  background-size: cover;
  margin-top: 1px;
}

/* Remove any shadows or effects */
.simple-hero,
.simple-hero * {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .simple-hero {
    height: 40vh;
    background-attachment: scroll;
  }
}

/*--------------------------------------------------------------
#About Us Sections
--------------------------------------------------------------*/
/* Simple Version CSS */
/* About Section - Modern Design */
.about-section {
  padding: 10px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(46, 61, 146, 0.05) 0%, rgba(46, 61, 146, 0.02) 100%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

/* Header Styles */
.about-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(46, 61, 146, 0.1);
  color: #2e3d92;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-header h2 {
  font-size: 2.8rem;
  color: #1a365d;
  margin-bottom: 15px;
  font-weight: 700;
}

.about-header .highlight {
  color: #2e3d92;
  position: relative;
  display: inline-block;
}

.about-header .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(46, 61, 146, 0.15);
  z-index: -1;
  border-radius: 4px;
}

.tagline {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 25px;
  font-weight: 500;
  line-height: 1.5;
}

.header-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2e3d92, #4c51bf);
  margin: 0 auto;
  border-radius: 2px;
}

/* Main Content Layout */
.about-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Left Column Styles */
.about-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.intro-text .lead {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #334155;
  font-weight: 500;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
}

.description-text {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Reduced space between paragraphs */
}

.description-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin: 0; /* Remove default margins */
  position: relative;
  padding-left: 20px;
}

.description-text p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: #2e3d92;
  border-radius: 50%;
  opacity: 0.7;
}

/* Key Features */
.key-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.feature-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid #f1f5f9;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2e3d92, #4c51bf);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.4rem;
  color: white;
}

.feature-content h4 {
  font-size: 1.1rem;
  color: #1a365d;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-content p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Sidebar Styles */
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

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

.card-header i {
  font-size: 1.8rem;
  color: #2e3d92;
}

.card-header h3 {
  font-size: 1.3rem;
  color: #1a365d;
  margin: 0;
  font-weight: 600;
}

.sidebar-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.commitment-card {
  border-left: 4px solid #2e3d92;
}

.vision-card {
  border-left: 4px solid #4c51bf;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #1a365d, #2e3d92);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: white;
}

.cta-box h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.cta-box p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #2e3d92;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
  background: #f8fafc;
  color: #1a365d;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .key-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-header h2 {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 0;
  }
  
  .about-header h2 {
    font-size: 2rem;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .key-features {
    grid-template-columns: 1fr;
  }
  
  .intro-text .lead {
    font-size: 1.2rem;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .sidebar-card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .about-header h2 {
    font-size: 1.8rem;
  }
  
  .feature-card {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    margin: 0 auto 15px;
  }
  
  .card-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* RTL (Arabic) Specific Styles */
[dir="rtl"] .about-section::before {
  right: auto;
  left: 0;
  transform: translate(-30%, -30%);
}

[dir="rtl"] .about-header {
  margin-left: auto;
  margin-right: auto;
}

[dir="rtl"] .about-header .highlight::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .description-text p {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .description-text p::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .feature-card {
  flex-direction: row-reverse;
}

[dir="rtl"] .card-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .commitment-card,
[dir="rtl"] .vision-card,
[dir="rtl"] .profile-card {
  border-left: none;
  border-right: 4px solid #2e3d92;
}

[dir="rtl"] .vision-card {
  border-right-color: #4c51bf;
}

[dir="rtl"] .btn-view-profile {
  flex-direction: row-reverse;
}

[dir="rtl"] .profile-note {
  flex-direction: row-reverse;
}

/* Arabic Font */
[dir="rtl"] {
  font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
}
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');



/*--------------------------------------------------------------
# Message From CEO Sections
--------------------------------------------------------------*/
.ceo-simple-large {
  padding: 100px 0;
  background: #fff;
}

.ceo-photo-simple {
  padding-right: 50px;
}

.large-ceo-img {
  width: 100%;
  height: 550px; /* Large height */
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  border: 5px solid white;
}

.ceo-message-simple {
  padding: 40px 0 40px 0;
}

.ceo-message-simple h2 {
  color: #413e66;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 30px;
}

.message-text-large p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #34495e;
  margin-bottom: 25px;
  text-align: justify;
}

/* Responsive */
@media (max-width: 991px) {
  .ceo-photo-simple {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .large-ceo-img {
    height: 500px;
  }
  
  .ceo-message-simple {
    padding: 0;
  }
  
  .ceo-message-simple h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .large-ceo-img {
    height: 400px;
    border-width: 10px;
  }
  
  .ceo-message-simple h2 {
    font-size: 1.8rem;
  }
  
  .message-text-large p {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .large-ceo-img {
    height: 300px;
    border-width: 5px;
  }
  
  .ceo-message-simple h2 {
    font-size: 1.6rem;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
}

.section-bg {
  background-color: #f7fbfe;
}

.section-title {
  text-align: center;
  padding-bottom: 0px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}
.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}
.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #39438D;
  bottom: 0;
  left: calc(50% - 20px);
}


/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .nav-tabs {
  border: 0;
}

.features .nav-link {
  padding: 15px 0;
  transition: 0.3s;
  color: #6a6c6d;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
  border: 0;
  border-bottom: 4px solid #e2e4e6;
}

.features .nav-link i {
  padding-right: 15px;
  font-size: 48px;
}

.features .nav-link h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 575px) {
  .features .nav-link h4 {
    font-size: 16px;
  }
}

.features .nav-link:hover {
  color: rgba(52, 37, 136, 0.849);
}

.features .nav-link.active {
  color: #130596;
  background-color: transparent;
  border-color: #130596;
}

.features .tab-content {
  margin-top: 30px;
}

.features .tab-pane h3 {
  font-weight: 700;
  font-size: 32px;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.features .tab-pane ul {
  list-style: none;
  padding: 0;
}

.features .tab-pane ul li {
  padding-top: 10px;
}

.features .tab-pane ul i {
  font-size: 20px;
  padding-right: 4px;
  color: #130596;
}

.features .tab-pane p:last-child {
  margin-bottom: 0;
}

.tab-pane .PContainer{
  top: 0px;
  max-width: 700px;
  max-height: 350px;
  height: 100%;
  width: 100%;
  position:relative;
  object-fit:fill;
}
.tab-pane .PContainer.why{
  width: 100%;
  height: 80%;
  max-height: 150%;
  top: 40px;
}

/* Apply Cairo font to Arabic Features */
body.rtl .features .nav-link h4,
body[lang="ar"] .features .nav-link h4,
html[dir="rtl"] .features .nav-link h4,
body.rtl .features .tab-pane h3,
body[lang="ar"] .features .tab-pane h3,
html[dir="rtl"] .features .tab-pane h3,
body.rtl .features .tab-pane ul li,
body[lang="ar"] .features .tab-pane ul li,
html[dir="rtl"] .features .tab-pane ul li,
body.rtl .features .tab-pane p,
body[lang="ar"] .features .tab-pane p,
html[dir="rtl"] .features .tab-pane p {
  font-family: 'Cairo', sans-serif;
}

/* Keep icons font */
body.rtl .features .nav-link i,
body[lang="ar"] .features .nav-link i,
html[dir="rtl"] .features .nav-link i,
body.rtl .features .tab-pane ul i,
body[lang="ar"] .features .tab-pane ul i,
html[dir="rtl"] .features .tab-pane ul i {
  font-family: 'bootstrap-icons', sans-serif;
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio {
  padding: 60px 0;
}
.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 0 35px 0;
  list-style: none;
  text-align: center;
}
.portfolio #portfolio-flters li {
  cursor: pointer;
  margin: 0 15px 15px 0;
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  line-height: 20px;
  color: #444444;
  border-radius: 4px;
  text-transform: uppercase;
  background: #fff;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}
.portfolio .AR  #portfolio-flters li {
  cursor: pointer;
  margin: 0 15px 15px 0;
  display: inline-block;
  padding: 10px 20px;
  font-size: 20px;
  line-height: 20px;
  color: #444444;
  border-radius: 4px;
  text-transform: uppercase;
  background: #fff;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}
.portfolio #portfolio-flters li:hover, .portfolio #portfolio-flters li.filter-active {
  background: #39438D;
  color: #fff;
}
.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}
.portfolio .portfolio-wrap {
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}
.portfolio .portfolio-wrap:hover {
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.16);
}
.portfolio .portfolio-item {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.portfolio .portfolio-item figure {
  background: #000;
  overflow: hidden;
  height: 240px;
  position: relative;
  border-radius: 4px 4px 0 0;
  margin: 0;
}
.portfolio .portfolio-item figure:hover img {
  opacity: 0.4;
  transition: 0.4s;
}
.portfolio .portfolio-item figure .link-preview, .portfolio .portfolio-item figure .link-details {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  line-height: 0;
  text-align: center;
  width: 36px;
  height: 36px;
  background: rgb(42, 61, 170);
  border-radius: 50%;
  transition: all 0.2s linear;
  overflow: hidden;
  font-size: 24px;
}
.portfolio .portfolio-item figure .link-preview i, .portfolio .portfolio-item figure .link-details i {
  color: #384046;
  line-height: 0;
}
.portfolio .portfolio-item figure .link-preview:hover, .portfolio .portfolio-item figure .link-details:hover {
  background: #39438D;
}
.portfolio .portfolio-item figure .link-preview:hover i, .portfolio .portfolio-item figure .link-details:hover i {
  color: #fff;
}
.portfolio .portfolio-item figure .link-preview {
  left: calc(50% - 38px);
  top: calc(50% - 18px);
}
.portfolio .portfolio-item figure .link-details {
  right: calc(50% - 38px);
  top: calc(50% - 18px);
}
.portfolio .portfolio-item figure:hover .link-preview {
  opacity: 1;
  left: calc(50% - 44px);
}
.portfolio .portfolio-item figure:hover .link-details {
  opacity: 1;
  right: calc(50% - 44px);
}
.portfolio .portfolio-item .portfolio-info {
  background: #fff;
  text-align: center;
  padding: 30px;
  height: 90px;
  border-radius: 0 0 3px 3px;
}
.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  line-height: 1px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 0;
}
.portfolio .portfolio-item .portfolio-info h4 a {
  color: #333;
}
.portfolio .portfolio-item .portfolio-info h4 a:hover {
  color: #39438D;
}
.portfolio .portfolio-item .portfolio-info p {
  padding: 0;
  margin: 0;
  color: #b8b8b8;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination1 {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination1 {
  margin-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination1 .swiper-pagination-bullet {
  width: 15px;
  height: 15px;
  background-color: #fff;
  opacity: 1;
  border: 3px solid #3474fd;
}

.portfolio-details .portfolio-details-slider .swiper-pagination1 .swiper-pagination-bullet-active {
  background-color: #3474fd;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(33, 59, 82, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

/* Apply Cairo font to Arabic Portfolio */
body.rtl .portfolio .portfolio-item .portfolio-info h4,
body[lang="ar"] .portfolio .portfolio-item .portfolio-info h4,
html[dir="rtl"] .portfolio .portfolio-item .portfolio-info h4,
body.rtl .portfolio .portfolio-item .portfolio-info p,
body[lang="ar"] .portfolio .portfolio-item .portfolio-info p,
html[dir="rtl"] .portfolio .portfolio-item .portfolio-info p,
body.rtl .portfolio-details .portfolio-description h2,
body[lang="ar"] .portfolio-details .portfolio-description h2,
html[dir="rtl"] .portfolio-details .portfolio-description h2,
body.rtl .portfolio-details .portfolio-description p,
body[lang="ar"] .portfolio-details .portfolio-description p,
html[dir="rtl"] .portfolio-details .portfolio-description p {
  font-family: 'Cairo', sans-serif;
}

/*--------------------------------------------------------------
# Gallery
--------------------------------------------------------------*/
.gallery .gallery-item {
  overflow: hidden;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
}
.gallery .gallery-item img {
  transition: all ease-in-out 0.4s;
}
.gallery .gallery-item:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Why Us
--------------------------------------------------------------*/
.why-us {
  padding-bottom: 30px;
}

.why-us .card {
  border-radius: 3px;
  border: 0;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.why-us .card-icon {
  text-align: center;
  margin-top: -32px;
}

.why-us .card-icon i {
  font-size: 32px;
  color: #fff;
  width: 64px;
  height: 64px;
  padding-top: 10px;
  text-align: center;
  background-color: #0b08b9;
  border-radius: 50%;
  text-align: center;
  border: 4px solid #fff;
  transition: 0.3s;
  display: inline-block;
}

.why-us .card-body {
  padding-top: 12px;
}

.why-us .card-title {
  font-weight: 700;
  text-align: center;
}

.why-us .card-title a {
  color: #959596;
}

.why-us .card-title a:hover {
  color: #0b08b9;
}

.why-us .card-text {
  color: #5e5e5e;
}

.why-us .card:hover .card-icon i {
  background: #fff;
  color: #0b08b9;
}

@media (max-width: 1024px) {
  .why-us {
    background-attachment: scroll;
  }
}

/* Apply Cairo font to Arabic Why Us */
body.rtl .why-us .card-title,
body[lang="ar"] .why-us .card-title,
html[dir="rtl"] .why-us .card-title,
body.rtl .why-us .card-text,
body[lang="ar"] .why-us .card-text,
html[dir="rtl"] .why-us .card-text {
  font-family: 'Cairo', sans-serif;
}

/* Keep icons font */
body.rtl .why-us .card-icon i,
body[lang="ar"] .why-us .card-icon i,
html[dir="rtl"] .why-us .card-icon i {
  font-family: 'bootstrap-icons', sans-serif;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* Contact Header */
.contact-header {
  text-align: center;
  margin-bottom: 20px;
}

.contact-header h2 {
  font-size: 2.8rem;
  color: #1e3c72;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.contact-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 2px;
}

.contact-header p {
  color: #64748b;
  font-size: 1.1rem;
  margin: 1px auto 0;
}

/* Contact Cards */
.contact-cards {
  margin-bottom: 60px;
}

.contact-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 20px 20px 0 0;
}

/* Contact Icon */
.contact-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(42, 82, 152, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #1e3c72;
}

.email-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
  color: #10b981;
}

.phone-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
  color: #8b5cf6;
}

/* Contact Content */
.contact-content h4 {
  color: #1e3c72;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-details {
  margin-bottom: 25px;
}

.contact-text {
  color: #1e3c72;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-subtext {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

/* Contact Email & Phone Links */
.contact-email,
.contact-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  text-decoration: none;
  padding: 10px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f1f5f9;
}

.contact-email:last-child,
.contact-phone:last-child {
  border-bottom: none;
}

.contact-email:hover,
.contact-phone:hover {
  color: #1e3c72;
  transform: translateX(5px);
}

.contact-email i,
.contact-phone i {
  color: #1e3c72;
  font-size: 16px;
  width: 20px;
}

/* Contact Link Button */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.contact-link:hover {
  background: linear-gradient(135deg, #2a5298 0%, #3b6fcc 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(30, 60, 114, 0.2);
}

/* Map Section */
.map-section {
  margin-top: 40px;
}

.map-header {
  text-align: center;
  margin-bottom: 30px;
}

.map-header h3 {
  color: #1e3c72;
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.map-header p {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}

/* Map Container */
.map-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  height: 400px;
}

.google-map {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 250px;
}

.map-info h5 {
  color: #1e3c72;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.map-info p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.map-direction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: #10b981;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.map-direction-btn:hover {
  background: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .contact-header h2 {
    font-size: 2.5rem;
  }
  
  .contact-card {
    padding: 25px;
  }
}

@media (max-width: 992px) {
  .contact-section {
    padding: 60px 0;
  }
  
  .contact-header h2 {
    font-size: 2.2rem;
  }
  
  .contact-header p {
    font-size: 1rem;
  }
  
  .map-container {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .contact-header {
    margin-bottom: 40px;
  }
  
  .contact-cards {
    margin-bottom: 40px;
  }
  
  .contact-card {
    padding: 20px;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .contact-content h4 {
    font-size: 1.2rem;
  }
  
  .map-container {
    height: 300px;
  }
  
  .map-overlay {
    position: relative;
    top: 0;
    right: 0;
    max-width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 50px 0;
  }
  
  .contact-header h2 {
    font-size: 1.8rem;
  }
  
  .contact-card {
    text-align: center;
  }
  
  .contact-icon {
    margin-left: auto;
    margin-right: auto;
  }
  
  .contact-email,
  .contact-phone {
    justify-content: center;
  }
  
  .contact-link {
    justify-content: center;
    width: 100%;
  }
  
  .map-header h3 {
    font-size: 1.5rem;
  }
  
  .map-container {
    height: 250px;
  }
}

/* RTL Support for Arabic */
[dir="rtl"] .contact-section::before {
  direction: rtl;
}

[dir="rtl"] .contact-email:hover,
[dir="rtl"] .contact-phone:hover {
  transform: translateX(-5px);
}

[dir="rtl"] .contact-link,
[dir="rtl"] .contact-email,
[dir="rtl"] .contact-phone,
[dir="rtl"] .map-direction-btn {
  flex-direction: row-reverse;
}

[dir="rtl"] .map-overlay {
  right: auto;
  left: 20px;
}

[dir="rtl"] .contact-icon {
  margin-right: 0;
  margin-left: auto;
}

@media (max-width: 576px) {
  [dir="rtl"] .contact-icon {
    margin-right: auto;
  }
  
  [dir="rtl"] .contact-email,
  [dir="rtl"] .contact-phone {
    justify-content: center;
  }
}
/* Apply Cairo font to Arabic Contact */
body.rtl .contact .info h4,
body[lang="ar"] .contact .info h4,
html[dir="rtl"] .contact .info h4,
body.rtl .contact .info p,
body[lang="ar"] .contact .info p,
html[dir="rtl"] .contact .info p {
  font-family: 'Cairo', sans-serif;
}

/* Keep icons font */
body.rtl .contact .info i,
body[lang="ar"] .contact .info i,
html[dir="rtl"] .contact .info i {
  font-family: 'bootstrap-icons', sans-serif;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  color: #444444;
  font-size: 14px;
  background: #f7fbfe;
}
#footer .footer-top {
  padding: 60px 0 30px 0;
  background: #fff;
}
#footer .footer-top .footer-contact {
  margin-bottom: 30px;
}
#footer .footer-top .footer-contact h4 {
  font-size: 22px;
  margin: 0 0 30px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
}
#footer .footer-top .footer-contact p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: "Raleway", sans-serif;
  color: #777777;
}
#footer .footer-top h4 {
  font-size: 16px;
  font-weight: bold;
  color: #444444;
  position: relative;
  padding-bottom: 12px;
}
#footer .footer-top .footer-links {
  margin-bottom: 30px;
}
#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#footer .footer-top .footer-links ul i {
  padding-right: 2px;
  color: #39438D;
  font-size: 18px;
  line-height: 1;
}
#footer .footer-top .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}
#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}
#footer .footer-top .footer-links ul a {
  color: #777777;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}
#footer .footer-top .footer-links ul a:hover {
  text-decoration: none;
  color: #39438D;
}
#footer .footer-newsletter {
  font-size: 15px;
}
#footer .footer-newsletter h4 {
  font-size: 16px;
  font-weight: bold;
  color: #444444;
  position: relative;
  padding-bottom: 12px;
}
#footer .footer-newsletter form {
  margin-top: 30px;
  background: #fff;
  padding: 6px 10px;
  position: relative;
  border-radius: 4px;
  text-align: left;
  border: 1px solid #b6daf2;
}
#footer .footer-newsletter form input[type=email] {
  border: 0;
  padding: 4px 8px;
  width: calc(100% - 100px);
}
#footer .footer-newsletter form input[type=submit] {
  position: absolute;
  top: 0;
  right: -2px;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 20px 2px 20px;
  background: #39438D;
  color: #fff;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}
#footer .footer-newsletter form input[type=submit]:hover {
  background: #497796;
}
#footer .credits {
  padding-top: 5px;
  font-size: 13px;
  color: #444444;
}
#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #39438D;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}
#footer .social-links a:hover {
  background: #679abd;
  color: #fff;
  text-decoration: none;
}

/* Apply Cairo font to Arabic Footer */
body.rtl #footer .footer-top .footer-contact h4,
body[lang="ar"] #footer .footer-top .footer-contact h4,
html[dir="rtl"] #footer .footer-top .footer-contact h4,
body.rtl #footer .footer-top .footer-contact p,
body[lang="ar"] #footer .footer-top .footer-contact p,
html[dir="rtl"] #footer .footer-top .footer-contact p,
body.rtl #footer .footer-top h4,
body[lang="ar"] #footer .footer-top h4,
html[dir="rtl"] #footer .footer-top h4,
body.rtl #footer .footer-top .footer-links ul a,
body[lang="ar"] #footer .footer-top .footer-links ul a,
html[dir="rtl"] #footer .footer-top .footer-links ul a,
body.rtl #footer .footer-newsletter h4,
body[lang="ar"] #footer .footer-newsletter h4,
html[dir="rtl"] #footer .footer-newsletter h4,
body.rtl #footer .credits,
body[lang="ar"] #footer .credits,
html[dir="rtl"] #footer .credits {
  font-family: 'Cairo', sans-serif;
}

/* Keep icons font */
body.rtl #footer .footer-top .footer-links ul i,
body[lang="ar"] #footer .footer-top .footer-links ul i,
html[dir="rtl"] #footer .footer-top .footer-links ul i,
body.rtl #footer .social-links a,
body[lang="ar"] #footer .social-links a,
html[dir="rtl"] #footer .social-links a {
  font-family: 'bootstrap-icons', sans-serif;
}

/*--------------------------------------------------------------
# Career page
--------------------------------------------------------------*/
   /* CSS Reset for Career Page Only */
/* Career Section Base Styling */
/* Import Cairo Font for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

/* Import Inter Font for English (optional) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* Career Section Base Styling */
.career-section {
    padding: 15px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    position: relative;
}

/* ========== ENGLISH VERSION (LTR) ========== */
.career-section[dir="ltr"],
.career-section:lang(en),
body:not([dir="rtl"]) .career-section:not([dir="rtl"]) {
    direction: ltr;
    text-align: left;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* English Section Title */
.career-section[dir="ltr"] .section-title,
.career-section:lang(en) .section-title,
body:not([dir="rtl"]) .career-section:not([dir="rtl"]) .section-title {
    color: #130596;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.career-section[dir="ltr"] .section-title::after,
.career-section:lang(en) .section-title::after,
body:not([dir="rtl"]) .career-section:not([dir="rtl"]) .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #4cc9f0;
}

/* English Text Elements */
.career-section[dir="ltr"] .lead,
.career-section[dir="ltr"] .text-muted,
.career-section[dir="ltr"] h4,
.career-section[dir="ltr"] h5,
.career-section[dir="ltr"] p,
.career-section[dir="ltr"] li,
.career-section[dir="ltr"] span,
.career-section[dir="ltr"] label {
    font-family: 'Inter', sans-serif;

}

/* English Lists */
.career-section[dir="ltr"] .info-card ul,
.career-section:lang(en) .info-card ul {
    padding-left: 20px !important;
    padding-right: 0 !important;
}

.career-section[dir="ltr"] .info-card li,
.career-section:lang(en) .info-card li {
    margin-bottom: 10px;
    text-align: left !important;
    font-family: 'Inter', sans-serif;
}

.career-section[dir="ltr"] .info-card li i,
.career-section:lang(en) .info-card li i {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* ========== ARABIC VERSION (RTL) ========== */
.career-section[dir="rtl"],
.career-section:lang(ar),
body[dir="rtl"] .career-section {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Force Arabic font for all elements inside Arabic section */
.career-section[dir="rtl"] *,
.career-section:lang(ar) *,
body[dir="rtl"] .career-section * {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic Section Title */
.career-section[dir="rtl"] .section-title,
.career-section:lang(ar) .section-title,
body[dir="rtl"] .career-section .section-title {
    color: #130596;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    text-align: center;
    font-family: 'Cairo', sans-serif !important;
}

.career-section[dir="rtl"] .section-title::after,
.career-section:lang(ar) .section-title::after,
body[dir="rtl"] .career-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50% !important;
    left: auto !important;
    transform: translateX(50%) !important;
    width: 60px;
    height: 3px;
    background: #4cc9f0;
}

/* Arabic Text Elements */
.career-section[dir="rtl"] .lead,
.career-section[dir="rtl"] .text-muted,
.career-section[dir="rtl"] h4,
.career-section[dir="rtl"] h5,
.career-section[dir="rtl"] p,
.career-section[dir="rtl"] li,
.career-section[dir="rtl"] span,
.career-section[dir="rtl"] label,
.career-section[dir="rtl"] button,
.career-section[dir="rtl"] input,
.career-section[dir="rtl"] select,
.career-section[dir="rtl"] textarea {
    font-family: 'Cairo', sans-serif !important;

}

/* Arabic Lists */
.career-section[dir="rtl"] .info-card ul,
.career-section:lang(ar) .info-card ul,
body[dir="rtl"] .career-section .info-card ul {
    padding-right: 20px !important;
    padding-left: 0 !important;
}

.career-section[dir="rtl"] .info-card li,
.career-section:lang(ar) .info-card li,
body[dir="rtl"] .career-section .info-card li {
    margin-bottom: 10px;
    text-align: right !important;
    font-family: 'Cairo', sans-serif !important;
}

.career-section[dir="rtl"] .info-card li i,
.career-section:lang(ar) .info-card li i,
body[dir="rtl"] .career-section .info-card li i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

/* ========== COMMON STYLES ========== */
.career-section .info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.career-section .info-icon {
    width: 70px;
    height: 70px;
    background: rgba(19, 5, 150, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.career-section .info-icon i {
    font-size: 30px;
    color: #130596;
}

.career-section .career-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Form Controls - English */
.career-section[dir="ltr"] .form-control,
.career-section[dir="ltr"] .form-select,
.career-section:lang(en) .form-control,
.career-section:lang(en) .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    text-align: left !important;
    font-family: 'Inter', sans-serif;
}

/* Form Controls - Arabic */
.career-section[dir="rtl"] .form-control,
.career-section[dir="rtl"] .form-select,
.career-section:lang(ar) .form-control,
.career-section:lang(ar) .form-select,
body[dir="rtl"] .career-section .form-control,
body[dir="rtl"] .career-section .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    text-align: right !important;
    font-family: 'Cairo', sans-serif !important;
    direction: rtl !important;
}

/* Placeholder Text */
.career-section[dir="rtl"] .form-control::placeholder,
.career-section:lang(ar) .form-control::placeholder,
body[dir="rtl"] .career-section .form-control::placeholder {
    text-align: right !important;
    direction: rtl !important;
    font-family: 'Cairo', sans-serif !important;
}

.career-section[dir="ltr"] .form-control::placeholder,
.career-section:lang(en) .form-control::placeholder {
    text-align: left !important;
    font-family: 'Inter', sans-serif;
}

.career-section .form-control:focus,
.career-section .form-select:focus {
    border-color: #130596;
    box-shadow: 0 0 0 0.25rem rgba(19, 5, 150, 0.15);
}

/* Labels - English */
.career-section[dir="ltr"] .form-label,
.career-section:lang(en) .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    float: left;
    width: 100%;
    text-align: left !important;
    font-family: 'Inter', sans-serif;
}

/* Labels - Arabic */
.career-section[dir="rtl"] .form-label,
.career-section:lang(ar) .form-label,
body[dir="rtl"] .career-section .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    float: right !important;
    width: 100%;
    text-align: right !important;
    font-family: 'Cairo', sans-serif !important;
}

/* CV Upload Styling */
.career-section .cv-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Arabic CV Upload Text */
.career-section[dir="rtl"] .cv-upload-area,
.career-section:lang(ar) .cv-upload-area,
body[dir="rtl"] .career-section .cv-upload-area {
    font-family: 'Cairo', sans-serif !important;
}

.career-section .cv-upload-area:hover,
.career-section .cv-upload-area.dragover {
    border-color: #130596;
    background: rgba(19, 5, 150, 0.02);
}

.career-section .cv-upload-area i {
    font-size: 48px;
    color: #130596;
    margin-bottom: 15px;
}

.career-section .cv-filename {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #28a745;
}

/* Submit Button */
.career-section .submit-btn {
    background: #130596;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

/* Arabic Button Text */
.career-section[dir="rtl"] .submit-btn,
.career-section:lang(ar) .submit-btn,
body[dir="rtl"] .career-section .submit-btn {
    font-family: 'Cairo', sans-serif !important;
}

/* English Button Text */
.career-section[dir="ltr"] .submit-btn,
.career-section:lang(en) .submit-btn {
    font-family: 'Inter', sans-serif;
}

.career-section .submit-btn:hover {
    background: #0f0578;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 5, 150, 0.2);
}

.career-section .submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Status Messages */
.career-section .status-message {
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
}

/* English Status Messages */
.career-section[dir="ltr"] .status-message,
.career-section:lang(en) .status-message {
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.career-section[dir="ltr"] .status-message i,
.career-section:lang(en) .status-message i {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* Arabic Status Messages */
.career-section[dir="rtl"] .status-message,
.career-section:lang(ar) .status-message,
body[dir="rtl"] .career-section .status-message {
    text-align: right !important;
    font-family: 'Cairo', sans-serif !important;
}

.career-section[dir="rtl"] .status-message i,
.career-section:lang(ar) .status-message i,
body[dir="rtl"] .career-section .status-message i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

.career-section .status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.career-section .status-error {
    background: #f8d8da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Badges */
.career-section[dir="ltr"] .badge,
.career-section:lang(en) .badge {
    margin-right: 5px;
    margin-left: 0;
}

.career-section[dir="rtl"] .badge,
.career-section:lang(ar) .badge,
body[dir="rtl"] .career-section .badge {
    margin-left: 5px !important;
    margin-right: 0 !important;
}

/* Privacy Notice */
.career-section[dir="rtl"] .text-muted small,
.career-section:lang(ar) .text-muted small,
body[dir="rtl"] .career-section .text-muted small {
    font-family: 'Cairo', sans-serif !important;
}

.career-section[dir="ltr"] .text-muted small,
.career-section:lang(en) .text-muted small {
    font-family: 'Inter', sans-serif;
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.career-section .spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .career-section {
        padding: 40px 0;
    }
    
    .career-section .career-form {
        padding: 25px;
    }
    
    .career-section .section-title {
        font-size: 1.8rem;
    }
    
    /* Mobile Arabic Fix */
    .career-section[dir="rtl"] .row.g-5,
    .career-section:lang(ar) .row.g-5,
    body[dir="rtl"] .career-section .row.g-5 {
        margin-right: -12px !important;
        margin-left: -12px !important;
    }
}

/* Force RTL for Arabic Select Options */
.career-section[dir="rtl"] select option,
.career-section:lang(ar) select option,
body[dir="rtl"] .career-section select option {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Force LTR for English Select Options */
.career-section[dir="ltr"] select option,
.career-section:lang(en) select option {
    direction: ltr !important;
    text-align: left !important;
    font-family: 'Inter', sans-serif;
}

/*--------------------------------------------------------------
# Profile Section
--------------------------------------------------------------*/
/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* Company Profile Section Base Styling */
.company-profile-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    min-height: 100vh;
    position: relative;
}

/* ========== ENGLISH VERSION (LTR) ========== */
.company-profile-section[dir="ltr"],
.company-profile-section:lang(en),
body:not([dir="rtl"]) .company-profile-section:not([dir="rtl"]) {
    direction: ltr;
    text-align: left;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* English Section Title */
.company-profile-section[dir="ltr"] .section-title,
.company-profile-section:lang(en) .section-title,
body:not([dir="rtl"]) .company-profile-section:not([dir="rtl"]) .section-title {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    text-align: center;
}

.company-profile-section[dir="ltr"] .section-title::after,
.company-profile-section:lang(en) .section-title::after,
body:not([dir="rtl"]) .company-profile-section:not([dir="rtl"]) .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6b35;
}

/* English Text Elements */
.company-profile-section[dir="ltr"] .lead,
.company-profile-section[dir="ltr"] .text-muted,
.company-profile-section[dir="ltr"] h4,
.company-profile-section[dir="ltr"] h5,
.company-profile-section[dir="ltr"] p,
.company-profile-section[dir="ltr"] li,
.company-profile-section[dir="ltr"] span,
.company-profile-section[dir="ltr"] label {
    text-align: center;
}

/* ========== ARABIC VERSION (RTL) ========== */
.company-profile-section[dir="rtl"],
.company-profile-section:lang(ar),
body[dir="rtl"] .company-profile-section {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Force Arabic font for all elements inside Arabic section */
.company-profile-section[dir="rtl"] *,
.company-profile-section:lang(ar) *,
body[dir="rtl"] .company-profile-section * {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic Section Title */
.company-profile-section[dir="rtl"] .section-title,
.company-profile-section:lang(ar) .section-title,
body[dir="rtl"] .company-profile-section .section-title {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    text-align: center;
}

.company-profile-section[dir="rtl"] .section-title::after,
.company-profile-section:lang(ar) .section-title::after,
body[dir="rtl"] .company-profile-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50% !important;
    left: auto !important;
    transform: translateX(50%) !important;
    width: 60px;
    height: 3px;
    background: #ff6b35;
}

/* ========== COMMON STYLES ========== */
.profile-info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border-top: 4px solid #0d6efd;
    transition: all 0.3s ease;
}

.profile-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d6efd 0%, #4da3ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
}

.info-icon i {
    font-size: 36px;
    color: white;
}

/* Lists Styling */
.company-profile-section[dir="ltr"] .profile-info-card ul,
.company-profile-section:lang(en) .profile-info-card ul {
    padding-left: 20px !important;
    padding-right: 0 !important;
}

.company-profile-section[dir="ltr"] .profile-info-card li,
.company-profile-section:lang(en) .profile-info-card li {
    margin-bottom: 12px;
    text-align: left !important;
    padding-left: 5px;
}

.company-profile-section[dir="ltr"] .profile-info-card li i,
.company-profile-section:lang(en) .profile-info-card li i {
    margin-right: 12px !important;
    margin-left: 0 !important;
}

.company-profile-section[dir="rtl"] .profile-info-card ul,
.company-profile-section:lang(ar) .profile-info-card ul,
body[dir="rtl"] .company-profile-section .profile-info-card ul {
    padding-right: 20px !important;
    padding-left: 0 !important;
}

.company-profile-section[dir="rtl"] .profile-info-card li,
.company-profile-section:lang(ar) .profile-info-card li,
body[dir="rtl"] .company-profile-section .profile-info-card li {
    margin-bottom: 12px;
    text-align: right !important;
    padding-right: 5px;
}

.company-profile-section[dir="rtl"] .profile-info-card li i,
.company-profile-section:lang(ar) .profile-info-card li i,
body[dir="rtl"] .company-profile-section .profile-info-card li i {
    margin-left: 12px !important;
    margin-right: 0 !important;
}

.profile-info-card li i {
    color: #0d6efd;
    font-size: 18px;
}

/* Stats Section - Simplified */
.profile-stats {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.stat-number {
    color: #0d6efd;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Badges */
.badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.company-profile-section[dir="ltr"] .badge,
.company-profile-section:lang(en) .badge {
    margin-right: 8px;
    margin-left: 0;
}

.company-profile-section[dir="rtl"] .badge,
.company-profile-section:lang(ar) .badge,
body[dir="rtl"] .company-profile-section .badge {
    margin-left: 8px !important;
    margin-right: 0 !important;
}

/* Form Styling */
.profile-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-top: 4px solid #ff6b35;
}

/* Form Controls - English */
.company-profile-section[dir="ltr"] .form-control,
.company-profile-section[dir="ltr"] .form-select,
.company-profile-section:lang(en) .form-control,
.company-profile-section:lang(en) .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    text-align: left !important;
    font-family: 'Inter', sans-serif;
}

/* Form Controls - Arabic */
.company-profile-section[dir="rtl"] .form-control,
.company-profile-section[dir="rtl"] .form-select,
.company-profile-section:lang(ar) .form-control,
.company-profile-section:lang(ar) .form-select,
body[dir="rtl"] .company-profile-section .form-control,
body[dir="rtl"] .company-profile-section .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    text-align: right !important;
    font-family: 'Cairo', sans-serif !important;
    direction: rtl !important;
}

/* Placeholders */
.company-profile-section[dir="rtl"] .form-control::placeholder,
.company-profile-section:lang(ar) .form-control::placeholder,
body[dir="rtl"] .company-profile-section .form-control::placeholder {
    text-align: right !important;
    direction: rtl !important;
}

.company-profile-section[dir="ltr"] .form-control::placeholder,
.company-profile-section:lang(en) .form-control::placeholder {
    text-align: left !important;
}

.company-profile-section .form-control:focus,
.company-profile-section .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Labels - English */
.company-profile-section[dir="ltr"] .form-label,
.company-profile-section:lang(en) .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    float: left;
    width: 100%;
    text-align: left !important;
    font-family: 'Inter', sans-serif;
}

/* Labels - Arabic */
.company-profile-section[dir="rtl"] .form-label,
.company-profile-section:lang(ar) .form-label,
body[dir="rtl"] .company-profile-section .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    float: right !important;
    width: 100%;
    text-align: right !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #0d6efd 0%, #4da3ff 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.company-profile-section[dir="rtl"] .submit-btn,
.company-profile-section:lang(ar) .submit-btn,
body[dir="rtl"] .company-profile-section .submit-btn {
    font-family: 'Cairo', sans-serif !important;
}

.company-profile-section[dir="ltr"] .submit-btn,
.company-profile-section:lang(en) .submit-btn {
    font-family: 'Inter', sans-serif;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #3d8bf0 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Status Messages */
.status-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
}

.company-profile-section[dir="ltr"] .status-message,
.company-profile-section:lang(en) .status-message {
    text-align: left;
}

.company-profile-section[dir="ltr"] .status-message i,
.company-profile-section:lang(en) .status-message i {
    margin-right: 10px !important;
    margin-left: 0 !important;
}

.company-profile-section[dir="rtl"] .status-message,
.company-profile-section:lang(ar) .status-message,
body[dir="rtl"] .company-profile-section .status-message {
    text-align: right !important;
}

.company-profile-section[dir="rtl"] .status-message i,
.company-profile-section:lang(ar) .status-message i,
body[dir="rtl"] .company-profile-section .status-message i {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-profile-section {
        padding: 40px 0;
    }
    
    .profile-form {
        padding: 25px;
    }
    
    .profile-info-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
    }
    
    .info-icon i {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .profile-form {
        padding: 20px 15px;
    }
    
    .profile-info-card {
        padding: 15px;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Select Options Styling */
.company-profile-section[dir="rtl"] select option,
.company-profile-section:lang(ar) select option,
body[dir="rtl"] .company-profile-section select option {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Cairo', sans-serif !important;
}

.company-profile-section[dir="ltr"] select option,
.company-profile-section:lang(en) select option {
    direction: ltr !important;
    text-align: left !important;
    font-family: 'Inter', sans-serif;
}

/*--------------------------------------------------------------
# New Certificate Section
--------------------------------------------------------------*/

/* Certificates Section */
.certificates-section {
  padding: 10px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #1e3c72;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Certificates Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 15px;
}

/* Certificate Card */
.certificate-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #f1f5f9;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Certificate Image */
.certificate-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f8fafc;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  background: white;
  transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-image img {
  transform: scale(1.05);
}

.certificate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 60, 114, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
}

.certificate-card:hover .certificate-overlay {
  background: rgba(30, 60, 114, 0.9);
  opacity: 1;
}

.view-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: none;
  color: #1e3c72;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.certificate-card:hover .view-btn {
  transform: scale(1);
}

.view-btn:hover {
  background: #1e3c72;
  color: white;
  transform: scale(1.1);
}

/* Certificate Info */
.certificate-info {
  padding: 25px;
}

.certificate-info h4 {
  color: #1e3c72;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.4;
}

.certificate-info p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Certificate Badges */
.certificate-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}

.certificate-badge i {
  font-size: 14px;
}

/* Badge Colors */
.certificate-badge.fire-badge {
  background: #fee2e2;
  color: #991b1b;
}

.certificate-badge.security-badge {
  background: #e0e7ff;
  color: #3730a3;
}

.certificate-badge.iso-badge {
  background: #dcfce7;
  color: #166534;
}

.certificate-badge.safety-badge {
  background: #fef3c7;
  color: #92400e;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
}

.lightbox-image-container {
  position: relative;
  max-width: 800px;
  max-height: 80vh;
}

#lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  padding: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  text-align: center;
  border-radius: 0 0 10px 10px;
}

.lightbox-caption h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Lightbox Buttons */
.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev-btn {
  left: -60px;
}

.lightbox-nav.next-btn {
  right: -60px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .certificates-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 992px) {
  .certificates-section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .certificates-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
  }
  
  .certificate-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .certificates-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .certificate-info {
    padding: 20px;
  }
  
  .certificate-info h4 {
    font-size: 1.1rem;
  }
  
  .lightbox-nav.prev-btn {
    left: 10px;
  }
  
  .lightbox-nav.next-btn {
    right: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 576px) {
  .certificates-section {
    padding: 50px 0;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .certificates-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .certificate-image {
    height: 220px;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* RTL Support for Arabic */
[dir="rtl"] .certificate-info {
  text-align: right;
}

[dir="rtl"] .certificate-badge {
  flex-direction: row-reverse;
}

[dir="rtl"] .lightbox-nav.prev-btn {
  left: auto;
  right: -60px;
}

[dir="rtl"] .lightbox-nav.next-btn {
  right: auto;
  left: -60px;
}

@media (max-width: 768px) {
  [dir="rtl"] .lightbox-nav.prev-btn {
    right: 10px;
  }
  
  [dir="rtl"] .lightbox-nav.next-btn {
    left: 10px;
  }
  
  [dir="rtl"] .lightbox-close {
    right: auto;
    left: 10px;
  }
}

/*--------------------------------------------------------------
# New Yard Section
--------------------------------------------------------------*/

.yard-workshop-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  color: #29217e;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 36px;
}

.section-title p {
  color: #29217e;
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

.facilities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.facility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #413e66;
  font-size: 16px;
}

.facility-item i {
  color: #1f42b6;
  font-size: 14px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 177, 220, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
}

/* Apply Cairo font to Arabic Yard Section */
body.rtl .section-title h2,
body[lang="ar"] .section-title h2,
html[dir="rtl"] .section-title h2,
body.rtl .section-title p,
body[lang="ar"] .section-title p,
html[dir="rtl"] .section-title p,
body.rtl .facility-item,
body[lang="ar"] .facility-item,
html[dir="rtl"] .facility-item {
  font-family: 'Cairo', sans-serif;
}

/* Keep icons font */
body.rtl .facility-item i,
body[lang="ar"] .facility-item i,
html[dir="rtl"] .facility-item i,
body.rtl .gallery-overlay i,
body[lang="ar"] .gallery-overlay i,
html[dir="rtl"] .gallery-overlay i {
  font-family: 'bootstrap-icons', sans-serif;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .yard-workshop-section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .section-title p {
    font-size: 16px;
    padding: 0 20px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 0 15px;
  }
  
  .facilities-list {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .facility-item {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .yard-workshop-section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .section-title p {
    font-size: 14px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px;
  }
  
  .gallery-item {
    aspect-ratio: 16/9;
  }
  
  .gallery-overlay i {
    font-size: 1.5rem;
  }
}

/* For very small screens */
@media (max-width: 360px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .facility-item {
    font-size: 13px;
  }
}

/*--------------------------------------------------------------
#New Header
--------------------------------------------------------------*/
/* ====== RESET & BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  padding-top: 90px;
}

/* ====== HEADER STYLES ====== */
#header {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid #2b6cb0;
  height: 90px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  position: relative;
}

/* ====== LOGO ====== */
.logo-section {
  flex: 0 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  height: 70px;
  width: auto;
  max-height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* ====== MAIN NAVIGATION - DESKTOP ====== */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px; /* Increased from 2px */
  height: 100%;
  align-items: center;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px; /* Increased from 15px */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2d3748;
  background: transparent;
  border-radius: 8px; /* Increased from 6px */
  transition: all 0.3s ease;
  height: 44px; /* Increased from 40px */
  white-space: nowrap;
  border: 1px solid transparent;
  min-width: fit-content;
}

.nav-link:hover {
  background: linear-gradient(135deg, #ebf8ff, #e6fffa);
  color: #2b6cb0;
  transform: translateY(-1px);
  border-color: rgba(43, 108, 176, 0.2);
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.1);
}

.nav-link.active {
  background: linear-gradient(135deg, #2b6cb0, #4c51bf);
  color: white;
  box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
}

/* ====== DROPDOWN - DESKTOP ====== */
.has-dropdown {
  position: relative;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 8px); /* Increased from 5px */
  left: 0;
  background: white;
  min-width: 200px; /* Increased from 180px */
  padding: 10px 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  z-index: 1000;
  transform: translateY(-10px);
}

.has-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 12px 20px; /* Increased padding */
  text-decoration: none;
  font-size: 0.9rem; /* Slightly larger */
  color: #2d3748;
  transition: all 0.3s ease;
  border-left: 4px solid transparent; /* Thicker border */
  margin: 0 5px;
  border-radius: 6px;
}

.dropdown-link:hover {
  background: #ebf8ff;
  color: #2b6cb0;
  border-left-color: #2b6cb0;
  padding-left: 25px;
  transform: translateX(2px);
}

/* ====== RIGHT SECTION - DESKTOP ====== */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px; /* Increased from 15px */
  flex-shrink: 0;
}

/* Social Icons - Desktop Only */
.social-icons {
  display: flex;
  gap: 10px; /* Increased from 8px */
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* Increased from 36px */
  height: 40px;
  border-radius: 50%;
  background: #f7fafc;
  color: #2d3748;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.social-icon:hover {
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.social-icon:nth-child(1):hover { background: #000; border-color: #000; }
.social-icon:nth-child(2):hover { background: #1877f2; border-color: #1877f2; }
.social-icon:nth-child(3):hover { background: #ff0000; border-color: #ff0000; }
.social-icon:nth-child(4):hover { background: #0a66c2; border-color: #0a66c2; }

/* ====== LANGUAGE SWITCHER - SIMPLIFIED ====== */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Language Button Style */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  color: #2d3748;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  min-width: 80px;
  justify-content: center;
}

/* Arabic Button (Default/Right Side) */
.lang-btn[data-lang="ar"] {
  background: #f8f9fa;
  border-left: 1px solid #e2e8f0;
}

/* English Button (Left Side) */
.lang-btn[data-lang="en"] {
  background: white;
  border-right: 1px solid #e2e8f0;
}

/* Active Language */
.lang-btn.active {
  background: linear-gradient(135deg, #2b6cb0, #4c51bf);
  color: white;
  box-shadow: 0 3px 10px rgba(43, 108, 176, 0.2);
}

.lang-btn:hover:not(.active) {
  background: #f1f5f9;
  color: #2b6cb0;
}

.flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #dee2e6;
  object-fit: cover;
}

.lang-text {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Remove dropdown styles since we're using button toggle */
.language-dropdown {
  display: none;
}

.lang-option {
  display: none;
}

/* Menu Toggle - Mobile Only (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
}

.menu-toggle i {
  font-size: 1.5rem;
  color: #1a365d;
}

.menu-toggle:hover {
  background: #2b6cb0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.15);
}

.menu-toggle:hover i {
  color: white;
}

/* ====== MOBILE ELEMENTS (HIDDEN ON DESKTOP) ====== */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.mobile-close-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #1a365d;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

/* Mobile Language Switcher - Simplified */
.mobile-language-section {
  display: none;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  width: 100%;
}

.mobile-language-switcher {
  display: flex;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  width: 100%;
}

.mobile-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  color: #2d3748;
  font-weight: 600;
  font-size: 1rem;
  width: 50%;
  background: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-lang-btn[data-lang="en"] {
  border-right: 1px solid #e2e8f0;
}

.mobile-lang-btn.active {
  background: linear-gradient(135deg, #2b6cb0, #4c51bf);
  color: white;
}

.mobile-language-dropdown,
.mobile-lang-option {
  display: none; /* Hide dropdown since we're using buttons */
}

/* =========================================== */
/* ============ MOBILE RESPONSIVE ============ */
/* =========================================== */

@media (max-width: 992px) {
  .nav-list {
    gap: 4px;
  }
  
  .nav-link {
    padding: 0 14px;
    font-size: 0.85rem;
    height: 42px;
  }
  
  .header-right {
    gap: 15px;
  }
  
  .social-icons {
    gap: 8px;
  }
  
  .social-icon {
    width: 38px;
    height: 38px;
  }
  
  .lang-btn {
    padding: 7px 14px;
    font-size: 0.85rem;
    min-width: 75px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
  
  #header {
    height: 80px;
  }
  
  .header-container {
    padding: 0 15px;
  }
  
  .logo {
    height: 60px;
  }
  
  /* Hide desktop elements on mobile */
  .social-icons,
  .language-switcher {
    display: none !important;
  }
  
  /* Show mobile toggle */
  .menu-toggle {
    display: flex;
  }
  
  /* Mobile Navigation */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px; /* Increased from 320px */
    height: 100vh;
    background: white;
    margin: 0;
    padding: 85px 25px 40px; /* Increased padding */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 35px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  /* Show mobile close button */
  .mobile-close-btn {
    display: flex;
  }
  
  /* Mobile Nav List */
  .nav-list {
    flex-direction: column;
    gap: 10px; /* Increased gap */
    align-items: stretch;
    width: 100%;
    height: auto;
  }
  
  .nav-item {
    height: auto;
    margin-bottom: 5px;
  }
  
  .nav-link {
    padding: 16px 20px; /* Increased padding */
    font-size: 1.05rem; /* Slightly larger */
    height: auto;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
  }
  
  /* Mobile Dropdown */
  .has-dropdown .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: 25px; /* Increased padding */
    margin: 10px 0; /* Increased margin */
    display: none;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: auto;
    width: 100%;
    transform: none;
  }
  
  .has-dropdown.active .dropdown-content {
    display: block;
  }
  
  .dropdown-link {
    padding: 14px 20px; /* Increased padding */
    font-size: 1rem;
    margin: 0 8px; /* Increased margin */
  }
  
  /* Show mobile language section ONLY on mobile */
  .mobile-language-section {
    display: block;
    margin-top: 25px;
    padding-top: 25px;
  }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
  #header {
    height: 75px;
  }
  
  body {
    padding-top: 75px;
  }
  
  .header-container {
    padding: 0 12px;
  }
  
  .logo {
    height: 50px;
  }
  
  .menu-toggle {
    width: 44px;
    height: 44px;
  }
  
  .menu-toggle i {
    font-size: 1.3rem;
  }
  
  .main-nav {
    width: 90%;
    max-width: none;
    padding: 80px 20px 35px;
  }
  
  .nav-link {
    padding: 15px 18px;
    font-size: 1rem;
  }
  
  .dropdown-link {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
  
  .mobile-lang-btn {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
}

/* ====== UTILITY ====== */
.scrollto {
  cursor: pointer;
}

/* Focus states for accessibility */
.nav-link:focus,
.lang-btn:focus,
.social-icon:focus,
.menu-toggle:focus,
.mobile-close-btn:focus,
.mobile-lang-btn:focus {
  outline: 2px solid #2b6cb0;
  outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .nav-link:hover {
    background: transparent;
    transform: none;
  }
  
  .social-icon:hover {
    transform: none;
  }
}

.language-switcher a.lang-btn,
.mobile-language-switcher a.mobile-lang-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-switcher a.lang-btn:hover,
.mobile-language-switcher a.mobile-lang-btn:hover {
  text-decoration: none;
}


/* Company Info Section - FRESH STYLES */
.company-info-section {
  padding: 5px 0;
  background: #f8fafc;
}

.info-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.info-section-header h2 {
  font-size: 2.5rem;
  color: #1e3c72;
  margin-bottom: 15px;
  font-weight: 700;
}

.info-section-header p {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Tab Navigation */
.info-tab-navigation {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.info-tab-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  justify-content: center;
}

.info-tab-btn:hover {
  background: #f1f5f9;
  border-color: #1e3c72;
  color: #1e3c72;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.1);
}

.info-tab-btn.active {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border-color: #1e3c72;
  box-shadow: 0 8px 20px rgba(30, 60, 114, 0.2);
}

.info-tab-btn i {
  font-size: 18px;
}

/* Tab Contents */
.info-tab-contents {
  position: relative;
}

.info-tab-content {
  display: none;
  animation: fadeInInfo 0.5s ease;
}

.info-tab-content.active {
  display: block;
}

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

/* Content Card */
.info-content-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  height: 100%;
  border: 1px solid #f1f5f9;
}

.info-content-card h3 {
  color: #1e3c72;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.info-content-card h3 i {
  color: #1e3c72;
}

/* Points List */
.info-points-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.info-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 10px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.info-point:hover {
  background: #f1f5f9;
  border-left-color: #1e3c72;
  transform: translateX(5px);
}

.info-point i {
  color: #10b981;
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.info-point span {
  color: #334155;
  line-height: 1.6;
  font-size: 15px;
}

/* Text Content */
.info-text-content {
  line-height: 1.8;
  color: #475569;
  font-size: 16px;
}

.info-text-content p {
  margin-bottom: 20px;
}

/* Image Box */
.info-image-box {
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.info-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 450px;
  transition: transform 0.5s ease;
}

.info-image-box:hover img {
  transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 992px) {
  .info-tab-navigation {
    flex-direction: column;
    align-items: center;
  }
  
  .info-tab-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .info-image-box {
    margin-top: 30px;
    height: 350px;
  }
  
  .info-points-list {
    max-height: 350px;
  }
  
  .info-content-card {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .company-info-section {
    padding: 60px 0;
  }
  
  .info-section-header h2 {
    font-size: 2rem;
  }
  
  .info-tab-btn {
    padding: 12px 25px;
    font-size: 15px;
    min-width: 180px;
  }
  
  .info-content-card {
    padding: 25px;
  }
  
  .info-content-card h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .info-section-header h2 {
    font-size: 1.8rem;
  }
  
  .info-section-header p {
    font-size: 1rem;
  }
  
  .info-tab-btn {
    width: 100%;
    min-width: 100%;
  }
  
  .info-point {
    padding: 12px;
  }
  
  .info-point span {
    font-size: 14px;
  }
  
  .info-image-box img {
    min-height: 300px;
  }
}

/*--------------------------------------------------------------
#Products and Services
--------------------------------------------------------------*/
#products-services {
  padding: 10px 0;
  background: #f8fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #1e3c72;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding: 0 15px;
}

.filter-btn {
  padding: 12px 25px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #f1f5f9;
  border-color: #1e3c72;
  color: #1e3c72;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border-color: #1e3c72;
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.2);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  padding: 0 15px;
}

.product-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: block; /* Default display */
}

.product-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.product-image {
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 25px;
}

.product-info h3 {
  color: #1e3c72;
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.product-category {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .filter-buttons {
    gap: 8px;
    margin-bottom: 30px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
  }
  
  .filter-buttons::-webkit-scrollbar {
    height: 4px;
  }
  
  .filter-buttons::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  .filter-buttons::-webkit-scrollbar-thumb {
    background: #1e3c72;
    border-radius: 10px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* CEO Message Section - ONE CSS FOR BOTH ENGLISH & ARABIC */
.ceo-simple-section {
  padding: 5px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Photo Container */
.ceo-photo-container {
  position: relative;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
}

/* For RTL (Arabic) - Reverse shadow direction */
[dir="rtl"] .ceo-photo-container {
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
}

.ceo-full-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.ceo-photo-container:hover .ceo-full-image {
  transform: scale(1.03);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.ceo-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 18px;
  border-radius: 25px;
  color: #1e3c72;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* For RTL (Arabic) - Reverse flex direction */
[dir="rtl"] .ceo-tag {
  flex-direction: row-reverse;
}

.ceo-tag i {
  font-size: 16px;
}

/* Message Wrapper */
.ceo-message-wrapper {
  height: 100%;
  padding: 50px;
  background: white;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.message-content {
  width: 100%;
}

/* Title */
.message-title {
  color: #1e3c72;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.title-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 2px;
  margin-bottom: 30px;
}

/* For RTL (Arabic) - Align divider to right */
[dir="rtl"] .title-divider {
  margin-left: auto;
  margin-right: 0;
}

/* Quote */
.ceo-quote {
  position: relative;
  margin-bottom: 30px;
  padding-left: 25px;
  border-left: 3px solid #1e3c72;
}

/* For RTL (Arabic) - Move quote to right side */
[dir="rtl"] .ceo-quote {
  padding-left: 0;
  padding-right: 25px;
  border-left: none;
  border-right: 3px solid #1e3c72;
}

.quote-icon {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 2rem;
  color: #1e3c72;
  opacity: 0.2;
}

/* For RTL (Arabic) - Move icon to right */
[dir="rtl"] .quote-icon {
  left: auto;
  right: 0;
}

.quote-text {
  color: #1e3c72;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

/* Message Body */
.message-body {
  margin-bottom: 30px;
}

.message-body p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.message-body p:last-child {
  margin-bottom: 0;
}

/* Signature */
.ceo-signature {
  padding-top: 25px;
  border-top: 1px solid #e2e8f0;
}

.signature-line {
  width: 120px;
  height: 2px;
  background: #1e3c72;
  margin-bottom: 15px;
}

/* For RTL (Arabic) - Align signature line to right */
[dir="rtl"] .signature-line {
  margin-left: auto;
  margin-right: 0;
}

.signature-info h4 {
  color: #1e3c72;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.signature-info p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.ceo-experience {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* For RTL (Arabic) - Reverse experience items and align right */
[dir="rtl"] .ceo-experience {
  justify-content: flex-end;
}

.ceo-experience span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

/* For RTL (Arabic) - Reverse icon/text order */
[dir="rtl"] .ceo-experience span {
  flex-direction: row-reverse;
}

.ceo-experience i {
  color: #1e3c72;
  font-size: 16px;
}

/* ======= BORDER RADIUS LOGIC ======= */
/* English (LTR): Photo on left, text on right */
.ceo-photo-container {
  border-radius: 15px 0 0 15px;
}

.ceo-message-wrapper {
  border-radius: 0 15px 15px 0;
}

/* Arabic (RTL): Photo on right, text on left */
[dir="rtl"] .ceo-photo-container {
  border-radius: 0 15px 15px 0;
}

[dir="rtl"] .ceo-message-wrapper {
  border-radius: 15px 0 0 15px;
}

/* ======= TEXT ALIGNMENT ======= */
/* For RTL (Arabic) - Align all text to right */
[dir="rtl"] .message-title,
[dir="rtl"] .quote-text,
[dir="rtl"] .message-body,
[dir="rtl"] .message-body p,
[dir="rtl"] .signature-info h4,
[dir="rtl"] .signature-info p,
[dir="rtl"] .ceo-experience span {
  text-align: right;
}

/* For RTL (Arabic) - Align message wrapper text */
[dir="rtl"] .ceo-message-wrapper {
  text-align: right;
}

/* Responsive Design - Works for both languages */
@media (max-width: 1200px) {
  .ceo-message-wrapper {
    padding: 40px;
  }
  
  .message-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 992px) {
  .ceo-simple-section {
    padding: 60px 0;
  }
  
  /* Mobile: Both languages get same rounded corners */
  .ceo-photo-container {
    border-radius: 15px 15px 0 0 !important;
    min-height: 400px;
    height: 400px;
  }
  
  .ceo-message-wrapper {
    border-radius: 0 0 15px 15px !important;
    padding: 35px;
  }
  
  .message-title {
    font-size: 1.6rem;
  }
  
  .quote-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .ceo-photo-container {
    min-height: 350px;
    height: 350px;
  }
  
  .ceo-message-wrapper {
    padding: 30px;
  }
  
  .message-title {
    font-size: 1.5rem;
  }
  
  .ceo-quote {
    padding-left: 20px;
  }
  
  [dir="rtl"] .ceo-quote {
    padding-right: 20px;
  }
  
  .quote-icon {
    font-size: 1.5rem;
  }
  
  .quote-text {
    font-size: 1rem;
  }
  
  .message-body p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .ceo-simple-section {
    padding: 50px 0;
  }
  
  .ceo-photo-container {
    min-height: 300px;
    height: 300px;
  }
  
  .ceo-message-wrapper {
    padding: 25px;
  }
  
  .message-title {
    font-size: 1.4rem;
  }
  
  .photo-overlay {
    padding: 20px;
  }
  
  .ceo-tag {
    padding: 6px 15px;
    font-size: 13px;
  }
  
  .signature-info h4 {
    font-size: 1.2rem;
  }
  
  .ceo-experience {
    gap: 15px;
  }
}

/* Mobile: Reset text alignment for better readability */
@media (max-width: 768px) {
  .message-title,
  .quote-text,
  .message-body p,
  .signature-info h4,
  .signature-info p {
    text-align: center !important;
  }
  
  .title-divider,
  .signature-line {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .ceo-experience {
    justify-content: center !important;
  }
  
  .ceo-quote {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  [dir="rtl"] .ceo-quote {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Yard & Workshop Styles - Isolated */
.yw-section {
  padding: 60px 20px !important;
  background: #f8f9fa !important;
}

.yw-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
}

/* Section Title */
.yw-title {
  text-align: center !important;
  margin-bottom: 40px !important;
}

.yw-title h2 {
  font-size: 2.2rem !important;
  color: #291792 !important;
  margin-bottom: 10px !important;
}

.yw-title p {
  color: #666 !important;
  font-size: 1.1rem !important;
}

/* Features Grid */
.yw-features {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 40px !important;
}

.yw-feature {
  display: flex !important;
  align-items: center !important;
  background: white !important;
  padding: 20px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.yw-feature-icon {
  font-size: 2rem !important;
  color: #007bff !important;
  margin-right: 15px !important;
}

.yw-feature-text h4 {
  margin: 0 0 5px 0 !important;
  color: #333 !important;
  font-size: 1.1rem !important;
}

.yw-feature-text p {
  margin: 0 !important;
  color: #666 !important;
  font-size: 0.95rem !important;
}

/* Facility Description */
.yw-description {
  background: white !important;
  padding: 30px !important;
  border-radius: 8px !important;
  margin-bottom: 40px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.yw-description h3 {
  margin-top: 0 !important;
  color: #333 !important;
  text-align: center !important;
  font-size: 1.5rem !important;
  margin-bottom: 15px !important;
}

.yw-description > p {
  color: #555 !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
}

.yw-highlights {
  display: flex !important;
  gap: 20px !important;
  margin-top: 20px !important;
  flex-wrap: wrap !important;
}

.yw-highlight {
  flex: 1 !important;
  min-width: 250px !important;
  text-align: center !important;
  padding: 20px !important;
  background: #f8f9fa !important;
  border-radius: 8px !important;
}

.yw-highlight i {
  font-size: 2.5rem !important;
  color: #007bff !important;
  margin-bottom: 10px !important;
}

.yw-highlight h4 {
  margin: 0 0 5px 0 !important;
  color: #333 !important;
  font-size: 1.2rem !important;
}

.yw-highlight p {
  margin: 0 !important;
  color: #666 !important;
  font-size: 0.9rem !important;
}

/* Gallery */
.yw-gallery {
  background: white !important;
  padding: 30px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.yw-gallery h3 {
  margin-top: 0 !important;
  text-align: center !important;
  color: #333 !important;
  font-size: 1.5rem !important;
  margin-bottom: 10px !important;
}

.yw-gallery > p {
  color: #666 !important;
 text-align: center !important;
  margin-bottom: 20px !important;
  font-size: 1rem !important;
}

.yw-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 20px !important;
}

.yw-gallery-item {
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
  transition: transform 0.3s ease !important;
  background: white !important;
}

.yw-gallery-item:hover {
  transform: translateY(-5px) !important;
}

.yw-gallery-item img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
}

.yw-gallery-caption {
  padding: 15px !important;
  background: white !important;
}

.yw-gallery-caption h5 {
  margin: 0 0 5px 0 !important;
  color: #333 !important;
  font-size: 1rem !important;
}

.yw-gallery-caption p {
  margin: 0 !important;
  color: #666 !important;
  font-size: 0.9rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  .yw-features {
    grid-template-columns: 1fr !important;
  }
  
  .yw-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .yw-highlights {
    flex-direction: column !important;
  }
  
  .yw-highlight {
    min-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .yw-gallery-grid {
    grid-template-columns: 1fr !important;
  }
  
  .yw-title h2 {
    font-size: 1.8rem !important;
  }
  
  .yw-section {
    padding: 40px 15px !important;
  }
}


/* ======= Project Gallery Section ======= */
/* ======= Project Gallery Section - Bilingual Support ======= */
.project-gallery-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans Arabic', 'Helvetica Neue', sans-serif;
}

/* RTL Support */
.project-gallery-section[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* LTR Support */
.project-gallery-section[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

.project-gallery-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* Gallery Container */
.project-gallery {
  position: relative;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border: 1px solid #eaeaea;
}

/* Main Image Container - Responsive Aspect Ratio */
.main-image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Main Image - Shows full image */
#main-buildings-image,
#main-construction-image,
#main-project-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: all 0.5s ease;
}

/* Image Overlay */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 30px 20px 20px;
  color: white;
  z-index: 2;
}

/* RTL/LTR adjustments for image overlay */
.project-gallery-section[dir="rtl"] .image-overlay {
  text-align: right;
  padding-right: 25px;
}

.project-gallery-section[dir="ltr"] .image-overlay {
  text-align: left;
  padding-left: 25px;
}

/* Image Counter */
.image-counter {
  position: absolute;
  top: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3;
  backdrop-filter: blur(5px);
}

/* RTL/LTR positioning for counter */
.project-gallery-section[dir="rtl"] .image-counter {
  left: 15px;
  right: auto;
}

.project-gallery-section[dir="ltr"] .image-counter {
  right: 15px;
  left: auto;
}

.image-caption h4 {
  margin: 0 0 8px 0;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.image-caption p {
  margin: 0;
  color: #e0e0e0;
  font-size: 1rem;
  font-weight: 400;
}

/* Gallery Navigation */
.gallery-nav {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.nav-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nav-btn:hover {
  background: #007bff;
  color: white;
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* RTL arrow direction adjustment */
.project-gallery-section[dir="rtl"] .prev-btn i {
  transform: rotate(180deg);
}

.project-gallery-section[dir="rtl"] .next-btn i {
  transform: rotate(180deg);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 15px 0;
  scrollbar-width: thin;
  scrollbar-color: #007bff #f1f1f1;
}

/* Force LTR direction for thumbnails regardless of page direction */
.thumbnail-gallery {
  direction: ltr;
}

.thumbnail-gallery::-webkit-scrollbar {
  height: 8px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #007bff, #0056b3);
  border-radius: 4px;
}

.thumbnail-item {
  flex: 0 0 110px;
  height: 85px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  position: relative;
}

.thumbnail-item:hover {
  opacity: 0.9;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.thumbnail-item.active {
  opacity: 1;
  border-color: #007bff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
  transform: scale(1.1);
}

/* Project Info Card */
.project-info-card {
  background: white;
  border-radius: 15px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  border: 1px solid #eaeaea;
  position: relative;
  overflow: hidden;
}

.project-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #007bff, #00b4d8);
}

.project-gallery-section[dir="rtl"] .project-info-card::before {
  right: 0;
  background: linear-gradient(to left, #007bff, #00b4d8);
}

.project-gallery-section[dir="ltr"] .project-info-card::before {
  left: 0;
  background: linear-gradient(to right, #007bff, #00b4d8);
}

/* Project Header */
.project-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  flex-wrap: wrap;
}

.project-icon {
  font-size: 2.8rem;
  color: #007bff;
  background: linear-gradient(45deg, #007bff, #00b4d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.project-title {
  margin: 0;
  color: #2c3e50;
  font-size: 1.9rem;
  font-weight: 800;
  flex: 1;
  line-height: 1.3;
}

.project-badge {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
  white-space: nowrap;
}

/* Project Description */
.project-description {
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.project-description p {
  margin-bottom: 20px;
  text-align: inherit; /* Inherits from parent direction */
}

.highlight-text {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #2c3e50;
  font-weight: 500;
}

/* RTL/LTR border positioning */
.project-gallery-section[dir="rtl"] .highlight-text {
  border-right: 4px solid #28a745;
  padding-right: 15px;
}

.project-gallery-section[dir="ltr"] .highlight-text {
  border-left: 4px solid #28a745;
  padding-left: 15px;
}

.highlight-text i {
  color: #28a745;
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Applications Section */
.applications {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.applications h4 {
  color: #2c3e50;
  margin-bottom: 18px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.applications h4 i {
  color: #007bff;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-tag {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #90caf9;
  text-align: center;
  min-width: 120px;
}

.app-tag:hover {
  background: linear-gradient(135deg, #1565c0, #1976d2);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(21, 101, 192, 0.3);
  border-color: #1565c0;
}

/* Features Section */
.features-list {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.features-list h4 {
  color: #2c3e50;
  margin-bottom: 18px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.features-list h4 i {
  color: #ff9800;
  background: linear-gradient(45deg, #ff9800, #ff5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff8e1;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* RTL/LTR border positioning */
.project-gallery-section[dir="rtl"] .feature-item {
  border-right: 4px solid #ff9800;
}

.project-gallery-section[dir="ltr"] .feature-item {
  border-left: 4px solid #ff9800;
}

.feature-item:hover {
  background: #ffe082;
  transform: translateX(var(--hover-direction, -5px));
}

/* RTL hover direction adjustment */
.project-gallery-section[dir="rtl"] .feature-item:hover {
  --hover-direction: 5px;
}

.project-gallery-section[dir="ltr"] .feature-item:hover {
  --hover-direction: -5px;
}

.feature-item i {
  color: #ff9800;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-item span {
  color: #5d4037;
  font-size: 1rem;
  font-weight: 500;
  flex: 1;
}

/* Contact Information */
.contact-info {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h5 {
  color: #2c3e50;
  margin-bottom: 18px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.contact-info h5 i {
  color: #007bff;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #555;
  font-size: 1.05rem;
}

/* RTL/LTR contact detail alignment */
.project-gallery-section[dir="rtl"] .contact-detail {
  flex-direction: row-reverse;
  text-align: right;
}

.project-gallery-section[dir="ltr"] .contact-detail {
  flex-direction: row;
  text-align: left;
}

.contact-detail i {
  color: #007bff;
  width: 25px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail span {
  font-weight: 500;
  flex: 1;
}

/* Typography adjustments for Arabic */
.project-gallery-section[dir="rtl"] {
  font-family: 'Segoe UI', 'Noto Sans Arabic', Tahoma, Geneva, Verdana, sans-serif;
}

.project-gallery-section[dir="rtl"] .project-title,
.project-gallery-section[dir="rtl"] h4,
.project-gallery-section[dir="rtl"] .feature-item span,
.project-gallery-section[dir="rtl"] .app-tag,
.project-gallery-section[dir="rtl"] .contact-detail span {
  font-weight: 600; /* Slightly bolder for better Arabic readability */
}

/* Typography adjustments for English */
.project-gallery-section[dir="ltr"] {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Responsive Design */
@media (max-width: 992px) {
  .project-gallery-section {
    padding: 60px 0;
  }
  
  .main-image-container {
    padding-bottom: 66.67%; /* 3:2 Aspect Ratio for tablets */
  }
  
  .project-info-card {
    margin-top: 30px;
  }
  
  .thumbnail-item {
    flex: 0 0 95px;
    height: 75px;
  }
  
  .app-tag {
    min-width: 110px;
    padding: 8px 16px;
  }
}

@media (max-width: 768px) {
  .main-image-container {
    padding-bottom: 75%; /* 4:3 Aspect Ratio for mobile landscape */
  }
  
  .nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .project-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .project-title {
    font-size: 1.6rem;
  }
  
  .project-icon {
    font-size: 2.5rem;
  }
  
  .app-tags {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .thumbnail-gallery {
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .main-image-container {
    padding-bottom: 100%; /* 1:1 Aspect Ratio for mobile portrait */
  }
  
  .gallery-nav {
    left: 10px;
    right: 10px;
  }
  
  .project-info-card {
    padding: 25px;
  }
  
  .image-overlay {
    padding: 20px 15px 15px;
  }
  
  .image-caption h4 {
    font-size: 1.1rem;
  }
  
  .image-caption p {
    font-size: 0.9rem;
  }
  
  .thumbnail-item {
    flex: 0 0 85px;
    height: 65px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .app-tag {
    min-width: 100px;
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .contact-detail {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

#main-buildings-image,
#main-construction-image,
#main-project-image {
  animation: fadeIn 0.4s ease-in-out;
}

/* Loading State */
.image-loading {
  filter: blur(5px);
  opacity: 0.7;
}

/* Accessibility Improvements */
.nav-btn:focus,
.thumbnail-item:focus,
.app-tag:focus {
  outline: 3px solid #007bff;
  outline-offset: 3px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .project-gallery {
    border: 2px solid #000;
  }
  
  .thumbnail-item.active {
    border: 3px solid #000;
  }
  
  .app-tag {
    border: 2px solid #000;
  }
}

/* Print Styles */
@media print {
  .project-gallery-section {
    background: white !important;
  }
  
  .nav-btn,
  .thumbnail-gallery {
    display: none;
  }
  
  .project-info-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .app-tag,
  .feature-item,
  .contact-info {
    break-inside: avoid;
  }
  
  .main-image-container {
    height: 300px !important;
    padding-bottom: 0 !important;
  }
  
  #main-buildings-image,
  #main-construction-image,
  #main-project-image {
    position: relative !important;
    height: 300px !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .project-gallery-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  }
  
  .project-gallery,
  .project-info-card {
    background: #1a252f;
    border-color: #2c3e50;
    color: #ecf0f1;
  }
  
  .project-title,
  .applications h4,
  .features-list h4,
  .contact-info h5 {
    color: #ecf0f1;
  }
  
  .project-description,
  .highlight-text,
  .feature-item span,
  .contact-detail {
    color: #bdc3c7;
  }
  
  .highlight-text {
    background: #2c3e50;
  }
  
  .feature-item {
    background: #2c3e50;
  }
  
  .contact-info {
    background: #2c3e50;
    border-color: #34495e;
  }
  
  .app-tag {
    background: #34495e;
    color: #3498db;
    border-color: #2980b9;
  }
}

/* Additional styles for Miscellaneous Works */
.services-list {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.services-list h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.services-list h4 i {
  color: #6f42c1;
}

.service-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.project-gallery-section[dir="rtl"] .service-item {
  border-right: 3px solid #6f42c1;
}

.project-gallery-section[dir="ltr"] .service-item {
  border-left: 3px solid #6f42c1;
}

.service-item i {
  color: #6f42c1;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.service-item span {
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Tools icon specific styling */
.bi-tools.project-icon {
  background: linear-gradient(45deg, #6f42c1, #9b59b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Miscellaneous specific badge color */
.project-badge[data-category="miscellaneous"] {
  background: linear-gradient(45deg, #6f42c1, #9b59b6);
}

/* Responsive adjustments for service items */
@media (max-width: 768px) {
  .service-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .service-items {
    grid-template-columns: 1fr;
  }
}

/* Services Section Below Gallery */
.services-section {
  margin-top: 40px;
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
}

.services-section .section-header {
  text-align: center;
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.services-section .section-header i {
  font-size: 2.5rem;
  color: #6f42c1;
  margin-bottom: 15px;
  display: block;
}

.services-section .section-header h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.services-section .section-header p {
  color: #7f8c8d;
  font-size: 1.05rem;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.service-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  border-top: 4px solid #6f42c1;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(111, 66, 193, 0.15);
  background: white;
}

.service-icon {
  font-size: 2.2rem;
  color: #6f42c1;
  margin-bottom: 15px;
}

.service-card h4 {
  color: #2c3e50;
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: 600;
}

.service-card p {
  color: #555;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Project Highlights in Sidebar */
.project-highlights {
  margin: 25px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.highlight-item:last-child {
  margin-bottom: 0;
}

.highlight-item i {
  color: #28a745;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.highlight-item span {
  color: #2c3e50;
  font-weight: 500;
  font-size: 1rem;
}

/* Contact Section in Sidebar */
.contact-section {
  margin-top: 30px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-header {
  text-align: center;
  margin-bottom: 25px;
}

.contact-header i {
  font-size: 2.2rem;
  color: #007bff;
  margin-bottom: 10px;
  display: block;
}

.contact-header h4 {
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 700;
}

.contact-header p {
  color: #7f8c8d;
  margin: 0;
  font-size: 0.95rem;
}

.contact-info-box {
  margin-bottom: 25px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.contact-method:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-icon {
  font-size: 1.5rem;
  color: #007bff;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #e3f2fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-details h5 {
  color: #2c3e50;
  margin: 0 0 5px 0;
  font-size: 1rem;
  font-weight: 600;
}

.contact-details a,
.contact-details p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #007bff;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
  background: #f8f9fa;
  color: #333;
  border: 2px solid #dee2e6;
}

.btn-secondary:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Quick Links */
.quick-links {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.quick-links h5 {
  color: #2c3e50;
  margin-bottom: 18px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.quick-links h5 i {
  color: #6f42c1;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 1px solid #eaeaea;
}

.link-item:hover {
  background: #007bff;
  color: white;
  transform: translateX(5px);
  border-color: #007bff;
}

.link-item:hover i {
  color: white;
}

.link-item i {
  color: #007bff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.link-item span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* RTL Adjustments */
.project-gallery-section[dir="rtl"] .link-item:hover {
  transform: translateX(-5px);
}

.project-gallery-section[dir="rtl"] .service-card {
  border-top: 4px solid #6f42c1;
  border-right: none;
}

/* Responsive Design */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-cta {
    flex-direction: row;
  }
  
  .btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .services-section {
    padding: 25px;
  }
  
  .contact-cta {
    flex-direction: column;
  }
  
  .contact-method {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .services-section {
    padding: 20px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .contact-section {
    padding: 20px;
  }
  
  .quick-links {
    padding: 15px;
  }
}

/*--------------------------------------------------------------
PROJECT GALLERY CONTAINER
--------------------------------------------------------------*/
/* ROADS SECTION - DRAKE BLUE THEME */
/* ROADS SECTION - DRAKE BLUE THEME - DUAL LANGUAGE SUPPORT */

/* Default LTR styles */
.roads-section {
  padding: 60px 0;
  background: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Image Slider Container */
.image-slider-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #1a365d;
}

.slider-main {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Navigation Arrows - LTR Default */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(30, 64, 175, 0.9);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.slider-nav:hover {
  background: #1e40af;
  transform: translateY(-50%) scale(1.1);
}

/* LTR: Prev on left, Next on right */
.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

/* Slider Info */
.slider-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(30, 64, 175, 0.95), rgba(30, 64, 175, 0.7));
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 5;
}

.counter {
  background: white;
  color: #1e40af;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.caption h4 {
  margin: 0 0 5px 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.caption p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Thumbnails */
.slider-thumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  padding: 10px 0;
}

.thumb {
  flex: 1;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  border: 3px solid transparent;
}

.thumb:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.thumb.active {
  opacity: 1;
  border-color: #1e40af;
  box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Services Container */
.services-container {
  background: white;
  border-radius: 8px;
  padding: 30px;
  border-top: 4px solid #1e40af;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
  color: #1e3a8a;
  font-size: 1.6rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.section-title i {
  color: #1e40af;
  margin-right: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  text-align: center;
  padding: 20px 15px;
  background: #f8fafc;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.service-card:hover {
  background: #e0f2fe;
  transform: translateY(-5px);
  border-color: #1e40af;
}

.service-card i {
  font-size: 2rem;
  color: #1e40af;
  margin-bottom: 10px;
}

.service-card h5 {
  color: #1e3a8a;
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.service-card p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

/* Info Sidebar */
.info-sidebar {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border-top: 4px solid #1e40af;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 100%;
}

.sidebar-header {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: white;
  padding: 30px;
  text-align: center;
}

.sidebar-header i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.sidebar-header h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.description {
  padding: 25px;
  border-bottom: 1px solid #e2e8f0;
}

.description p {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.features {
  padding: 25px;
  border-bottom: 1px solid #e2e8f0;
}

.features h4 {
  color: #1e3a8a;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.features h4 i {
  color: #1e40af;
  margin-right: 8px;
}

.features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #475569;
  font-size: 0.95rem;
}

.features li i {
  color: #10b981;
  margin-right: 10px;
  font-size: 0.9rem;
}

.benefits {
  padding: 25px;
  border-bottom: 1px solid #e2e8f0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.benefit-item i {
  font-size: 1.5rem;
  color: #1e40af;
  padding: 10px;
  background: #e0f2fe;
  border-radius: 8px;
  min-width: 45px;
  text-align: center;
}

.benefit-item h5 {
  color: #1e3a8a;
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.benefit-item p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.contact-box {
  padding: 25px;
}

.contact-box h4 {
  color: #1e3a8a;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-box h4 i {
  color: #1e40af;
  margin-right: 8px;
}

.contact-info {
  margin-bottom: 25px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-info p i {
  color: #1e40af;
  width: 20px;
}

.contact-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-btn:hover {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

/* ============ RTL STYLES ============ */
/* These styles only apply when dir="rtl" is set */
.roads-section[dir="rtl"] {
  font-family: 'Cairo', 'Segoe UI', 'Noto Sans Arabic', Tahoma, sans-serif;
  direction: rtl;
}

/* RTL Navigation Arrows */
.roads-section[dir="rtl"] .slider-nav.prev {
  left: auto;
  right: 20px;
}

.roads-section[dir="rtl"] .slider-nav.next {
  right: auto;
  left: 20px;
}

/* RTL Slider Info */
.roads-section[dir="rtl"] .slider-info {
  flex-direction: row-reverse;
}

.roads-section[dir="rtl"] .counter {
  margin-left: 10px;
  margin-right: 0;
}

/* RTL Text Alignment */
.roads-section[dir="rtl"] .caption,
.roads-section[dir="rtl"] .services-container,
.roads-section[dir="rtl"] .description,
.roads-section[dir="rtl"] .features,
.roads-section[dir="rtl"] .benefits,
.roads-section[dir="rtl"] .contact-box {
  text-align: right;
}

.roads-section[dir="rtl"] .caption h4,
.roads-section[dir="rtl"] .caption p,
.roads-section[dir="rtl"] .section-title,
.roads-section[dir="rtl"] .features h4,
.roads-section[dir="rtl"] .contact-box h4,
.roads-section[dir="rtl"] .benefit-item h5,
.roads-section[dir="rtl"] .benefit-item p {
  text-align: right;
}

/* RTL Icon Margins */
.roads-section[dir="rtl"] .section-title i {
  margin-right: 0;
  margin-left: 10px;
}

.roads-section[dir="rtl"] .features h4 i {
  margin-right: 0;
  margin-left: 8px;
}

.roads-section[dir="rtl"] .features li i {
  margin-right: 0;
  margin-left: 10px;
}

.roads-section[dir="rtl"] .contact-box h4 i {
  margin-right: 0;
  margin-left: 8px;
}

/* RTL Flex Direction */
.roads-section[dir="rtl"] .benefit-item {
  flex-direction: row-reverse;
}

.roads-section[dir="rtl"] .contact-info p {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

/* RTL List Items */
.roads-section[dir="rtl"] .features li {
  justify-content: flex-start;
}

/* RTL Button */
.roads-section[dir="rtl"] .contact-btn {
  flex-direction: row-reverse;
}

/* RTL Thumbnails Direction */
.roads-section[dir="rtl"] .slider-thumbs {
  direction: ltr; /* Keep thumbnails LTR for proper ordering */
}

/* Responsive Design */
@media (max-width: 1200px) {
  .image-slider-container {
    height: 450px;
  }
}

@media (max-width: 992px) {
  .image-slider-container {
    height: 400px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .slider-nav {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .slider-nav.prev {
    left: 15px;
  }
  
  .slider-nav.next {
    right: 15px;
  }
  
  /* RTL adjustments for mobile */
  .roads-section[dir="rtl"] .slider-nav.prev {
    left: auto;
    right: 15px;
  }
  
  .roads-section[dir="rtl"] .slider-nav.next {
    right: auto;
    left: 15px;
  }
}

@media (max-width: 768px) {
  .roads-section {
    padding: 40px 0;
  }
  
  .image-slider-container {
    height: 350px;
  }
  
  .slider-thumbs {
    margin-bottom: 30px;
  }
  
  .thumb {
    height: 80px;
  }
  
  .caption h4 {
    font-size: 1.2rem;
  }
  
  .caption p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .image-slider-container {
    height: 300px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .slider-nav.prev {
    left: 10px;
  }
  
  .slider-nav.next {
    right: 10px;
  }
  
  /* RTL adjustments for mobile */
  .roads-section[dir="rtl"] .slider-nav.prev {
    left: auto;
    right: 10px;
  }
  
  .roads-section[dir="rtl"] .slider-nav.next {
    right: auto;
    left: 10px;
  }
  
  .thumb {
    height: 60px;
  }
  
  .services-container,
  .description,
  .features,
  .benefits,
  .contact-box {
    padding: 20px;
  }
  
  /* Adjust text alignment for mobile in RTL */
  .roads-section[dir="rtl"] .slider-info {
    flex-direction: column;
    align-items: flex-end;
  }
  
  .roads-section[dir="rtl"] .counter {
    margin-bottom: 10px;
    margin-left: 0;
  }
}
/* SIMPLE MISCELLANEOUS SECTION */
.simple-misc-section {
  padding: 50px 0;
  background: #f8f9fa;
}

/* Simple Slider Container */
.simple-slider-container {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #1a365d;
}

.simple-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.simple-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.simple-slide.active {
  opacity: 1;
}

.simple-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 64, 175, 0.9);
  color: white;
  padding: 15px 20px;
}

.slide-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.slide-info p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Navigation */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: #1e40af;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.slide-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.slide-nav.prev {
  left: 15px;
}

.slide-nav.next {
  right: 15px;
}

/* Counter */
.slide-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  color: #1e40af;
  padding: 5px 12px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 10;
}

/* Simple Thumbnails */
.simple-thumbnails {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.thumb {
  flex: 1;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.thumb:hover {
  opacity: 0.8;
}

.thumb.active {
  opacity: 1;
  border-color: #1e40af;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Simple Services */
.simple-services {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.simple-services h3 {
  color: #1e3a8a;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.simple-services h3 i {
  color: #1e40af;
  margin-right: 10px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.service {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.service:hover {
  background: #e0f2fe;
  transform: translateX(3px);
}

.service i {
  color: #1e40af;
  font-size: 1.3rem;
}

.service span {
  color: #475569;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Simple Info */
.simple-info {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.info-header {
  background: #1e40af;
  color: white;
  padding: 25px;
  text-align: center;
}

.info-header i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.info-header h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.info-desc {
  padding: 20px;
  border-bottom: 1px solid #eaeaea;
}

.info-desc p {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.info-features {
  padding: 20px;
  border-bottom: 1px solid #eaeaea;
}

.info-features h4 {
  color: #1e3a8a;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.info-features h4 i {
  color: #1e40af;
  margin-right: 8px;
}

.feature-list {
  display: grid;
  gap: 8px;
}

.feature-list div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 0.95rem;
}

.feature-list i {
  color: #10b981;
  font-size: 0.9rem;
}

.info-contact {
  padding: 20px;
}

.info-contact h4 {
  color: #1e3a8a;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.info-contact h4 i {
  color: #1e40af;
  margin-right: 8px;
}

.contact-details {
  margin-bottom: 20px;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.contact-details i {
  color: #1e40af;
  width: 20px;
}

.contact-btn {
  width: 100%;
  padding: 12px;
  background: #1e40af;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-btn:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
  .simple-slider-container {
    height: 400px;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .simple-slider-container {
    height: 350px;
  }
  
  .thumb {
    height: 70px;
  }
}

@media (max-width: 576px) {
  .simple-misc-section {
    padding: 30px 0;
  }
  
  .simple-slider-container {
    height: 300px;
  }
  
  .slide-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .thumb {
    height: 60px;
  }
}

