@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
  /* User-Provided Regional Palette */
  --emerald-green: #0F3D2E;
  --desert-sand: #E8D8C3;
  --charcoal-black: #1C1C1C;
  --muted-gold: #C2A96A;
  --soft-ivory: #F7F5F2;

  /* Typography */
  --font-arabic: 'Cairo', sans-serif;
  
  /* Utils */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(15, 61, 46, 0.15); /* Emerald tinted shadow */
  --border-radius: 12px;
  --transition-speed: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--soft-ivory);
  color: var(--charcoal-black);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--emerald-green);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(247, 245, 242, 0.95); /* Soft ivory with transparency */
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--desert-sand);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.nav-logo h1 {
  color: var(--emerald-green);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo h1 span {
  color: var(--muted-gold);
}
.site-logo {
  max-height: 50px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-links li a {
  font-weight: 600;
  color: var(--charcoal-black);
  position: relative;
}
.nav-links li a:hover {
  color: var(--muted-gold);
}
.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--muted-gold);
  transition: width var(--transition-speed);
}
.nav-links li a.active {
  color: var(--muted-gold);
}

.nav-links li a.active::after {
  width: 100%;
}
.header-btn {
  background: var(--muted-gold);
  color: white;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
}
.header-btn:hover {
  background: var(--emerald-green);
  transform: translateY(-2px);
  color: white;
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: var(--border-radius);
  background: rgba(194, 169, 106, 0.1);
  border: 1px solid var(--muted-gold);
  color: var(--emerald-green);
  font-weight: 700;
  transition: all var(--transition-speed);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
}

.lang-switcher:hover {
  background: var(--muted-gold);
  color: white;
}

.lang-switcher i {
  font-size: 1.1rem;
}

.service-card .service-read-more:hover {
  color: var(--emerald-green) !important;
  gap: 12px !important;
}

/* Hide Google Translate Branding/Toolbar */
.goog-te-banner-frame.skiptranslate, 
.goog-te-gadget-icon,
.goog-te-gadget-simple span,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-te-gadget {
  font-family: var(--font-arabic) !important;
  color: transparent !important;
}

.goog-te-gadget .goog-te-combo {
  display: none !important;
}

body {
  top: 0 !important;
}

/* --- Hero Section --- */
.hero {
  margin-top: 80px;
  position: relative;
  background: var(--emerald-green);
  color: white;
  padding: 120px 0;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 61, 46, 0.85) 0%, rgba(15, 61, 46, 0.7) 100%);
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?auto=format&fit=crop&q=80') center/cover no-repeat;
  opacity: 0.1;
  mix-blend-mode: multiply;
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-content h2 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 20px;
}
.hero-content h2 span {
  color: var(--muted-gold);
}
.hero-content p {
  font-size: 1.25rem;
  color: var(--desert-sand);
  margin-bottom: 40px;
}
.cta-group {
  display: flex;
  gap: 20px;
}
.btn-primary {
  background: var(--muted-gold);
  color: white;
  padding: 16px 36px;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary:hover {
  background: var(--desert-sand);
  color: var(--emerald-green);
  transform: scale(1.05);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid var(--muted-gold);
  padding: 14px 36px;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
}
.btn-outline:hover {
  background: rgba(194,169,106, 0.1);
  color: var(--muted-gold);
}

/* --- Services Overlay (Card overlap) --- */
.services-section {
  padding: 100px 0;
  background: var(--soft-ivory);
  position: relative;
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.section-title p {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed);
  border-bottom: 4px solid transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--muted-gold);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 70px;
  height: 70px;
  background: var(--desert-sand);
  color: var(--emerald-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px auto;
  transition: all var(--transition-speed);
}
.service-card:hover .service-icon {
  background: var(--emerald-green);
  color: var(--muted-gold);
}
.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}
.service-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1;
}
.service-read-more {
  justify-content: center;
  margin-top: auto;
}

/* --- Stats Section --- */
.stats-section {
  background: var(--emerald-green);
  color: white;
  padding: 80px 0;
  background-image: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.1));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-speed);
}
.stat-item:hover {
  transform: translateY(-5px);
}
.stat-icon {
  font-size: 2.5rem;
  color: var(--muted-gold);
  margin-bottom: 20px;
  background: rgba(194,169,106, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}
.stat-item:hover .stat-icon {
  background: var(--muted-gold);
  color: white;
  transform: rotateY(360deg);
}
.stat-item h3 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 5px;
}
.stat-item p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--desert-sand);
  opacity: 0.9;
}

/* --- Team Section --- */
.team-section {
  padding: 100px 0;
  background: white;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.team-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--soft-ivory);
  transition: all var(--transition-speed);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.team-img-wrapper {
  height: 350px;
  overflow: hidden;
}
.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-speed);
}
.team-card:hover .team-img-wrapper img {
  transform: scale(1.05);
}
.team-info {
  padding: 25px;
  text-align: center;
}
.team-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}
.team-info p {
  color: var(--muted-gold);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Team Slider Layout */
.team-slider-wrapper {
  position: relative;
  padding: 0 50px;
}
.team-slider-container {
  overflow: hidden;
  width: 100%;
}
.team-grid.slider-active {
  display: flex !important;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}
.team-grid.slider-active > div {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 0;
}
@media (max-width: 992px) {
  .team-grid.slider-active > div {
    flex: 0 0 calc(50% - 15px);
  }
}
@media (max-width: 600px) {
  .team-slider-wrapper {
    padding: 0 40px;
  }
  .team-grid.slider-active > div {
    flex: 0 0 100%;
  }
}

/* --- Footer --- */
footer {
  background: var(--charcoal-black);
  color: white;
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr auto;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand h2 {
  color: var(--muted-gold);
  font-size: 2rem;
  margin-bottom: 20px;
}
.footer-brand p {
  color: #ccc;
  max-width: 400px;
}
.footer-links h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links ul li a {
  color: #aaa;
  transition: color var(--transition-speed);
}
.footer-links ul li a:hover {
  color: var(--muted-gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}

/* Publications & Research Enhancements */
.pub-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.research-card {
  border: 1px solid rgba(193, 153, 91, 0.1) !important;
  background: linear-gradient(145deg, #ffffff, #f9f7f4) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.research-card:hover {
  transform: translateY(-8px);
  border-color: var(--muted-gold) !important;
  box-shadow: 0 12px 30px rgba(193, 153, 91, 0.1) !important;
}

.research-card i {
  transition: transform 0.3s ease;
}

.research-card:hover i {
  transform: scale(1.2);
}

.btn-text:hover {
  color: var(--emerald-green) !important;
  gap: 12px !important;
}

/* Research Slider Layout */
.research-slider-wrapper {
  position: relative;
  margin-top: 50px;
  padding: 0 50px;
}

.research-slider-container {
  overflow: hidden;
  width: 100%;
}

.research-grid {
  display: flex !important;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.research-grid > div {
  flex: 0 0 calc(33.333% - 20px); /* Show 3 items on desktop */
  min-width: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: white;
  border: 1px solid var(--desert-sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-green);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
}

.slider-btn:hover {
  background: var(--emerald-green);
  color: white;
  border-color: var(--emerald-green);
  box-shadow: var(--shadow-md);
}

.slider-btn.prev {
  right: 0;
}

.slider-btn.next {
  left: 0;
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive Research Slider */
@media (max-width: 992px) {
  .research-grid > div {
    flex: 0 0 calc(50% - 15px); /* Show 2 items on tablets */
  }
}

@media (max-width: 600px) {
  .research-slider-wrapper {
    padding: 0 40px;
  }
  .research-grid > div {
    flex: 0 0 100%; /* Show 1 item on mobile */
  }
}

/* Page Hero for Subpages */
.page-hero {
  background: var(--emerald-green) !important;
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
  color: white;
  text-align: center;
}
.page-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.6;
}
.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(15, 61, 46, 0.9), rgba(15, 61, 46, 0.8));
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(10, 31, 59, 0.8), transparent);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

/* --- About Us Section --- */
.about-section {
  padding: 100px 0;
  background: white;
}
.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-content-reverse {
  flex-direction: row-reverse;
}
.about-text {
  flex: 1;
}
.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.about-text h3 {
  font-size: 1.4rem;
  color: var(--muted-gold);
  margin-bottom: 25px;
  font-weight: 600;
}
.about-text p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.8;
}
.about-image {
  width: 400px;
  height: 400px;
  flex-shrink: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Clients Section --- */
.clients-section {
  padding: 80px 0;
  background: white;
  overflow: hidden;
  position: relative;
}
.clients-section::before,
.clients-section::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.clients-section::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}
.clients-section::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}
.clients-slider {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}
@keyframes scroll-clients {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* --- Blog Section --- */
.blog-section {
  padding: 100px 0;
  background: var(--soft-ivory);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.blog-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.blog-img-wrapper {
  height: 220px;
  overflow: hidden;
}
.blog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}
.blog-card:hover .blog-img-wrapper img {
  transform: scale(1.05);
}
.blog-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: block;
}
.blog-date i {
  margin-left: 5px;
  color: var(--muted-gold);
}
.blog-info h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  line-height: 1.4;
}
.blog-info p {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.95rem;
  flex-grow: 1;
}
.read-more {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald-green);
  font-weight: 700;
  font-size: 1rem;
}
.read-more i {
  transition: transform var(--transition-speed);
}
.read-more:hover {
  color: var(--muted-gold);
}
.read-more:hover i {
  transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 992px) {
  .about-content, .about-content-reverse {
    flex-direction: column !important;
    text-align: center;
    gap: 40px;
  }
  .about-image {
    margin: 0 auto;
  }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-group {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .nav-links, .header-btn {
    display: none;
  }
  .hero-content h2 { font-size: 2.5rem; }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-image {
    width: 300px;
    height: 300px;
  }
}

/* Hover Card Link */
.hover-card-link {
    position: relative;
    display: inline-block;
    color: var(--primary-color, #128C7E);
    text-decoration: underline;
    cursor: pointer;
}

.hover-card-link .hover-card {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90vw;
    background-color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 15px;
    z-index: 999999;
    transition: visibility 0.3s, opacity 0.3s;
    pointer-events: none;
}

.hover-card-link:hover .hover-card {
    visibility: visible;
    opacity: 1;
}

.hover-card-link .hover-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}
. s o c i a l - l i n k s   a   {   c o l o r :   w h i t e   ! i m p o r t a n t ;   t r a n s i t i o n :   a l l   v a r ( - - t r a n s i t i o n - s p e e d ) ;   t r a n s i t i o n :   a l l   v a r ( - - t r a n s i t i o n - s p e e d ) ;   }   . s o c i a l - l i n k s   a : h o v e r   {   c o l o r :   v a r ( - - m u t e d - g o l d )   ! i m p o r t a n t ;   t r a n s f o r m :   t r a n s l a t e Y ( - 3 p x ) ;   }  
 