/* =============================================
   North LEDA - Main Stylesheet
   ============================================= */

/* ----- CSS Custom Properties ----- */
:root {
  --primary: #009EDB;
  --primary-dark: #007BB5;
  --primary-light: #33B5E5;
  --secondary: #009EDB;
  --secondary-dark: #007BB5;
  --dark: #1e293b;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --font-primary: 'Inter', sans-serif;
  --font-arabic: 'Noto Sans Arabic', 'Inter', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s ease;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body.rtl {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

/* ----- Utility Classes ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

.mb-4 {
  margin-bottom: 40px;
}

.mb-5 {
  margin-bottom: 50px;
}

.hidden {
  display: none;
}

/* ----- Top Bar ----- */
.top-bar {
  background: var(--gray-900);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  position: relative;
  z-index: 1100;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--white);
}

.top-bar a:hover {
  color: var(--secondary);
}

.social-links-top a {
  margin-left: 12px;
  color: var(--white);
  transition: var(--transition);
}

.social-links-top a:hover {
  color: var(--secondary);
}

body.rtl .social-links-top a {
  margin-left: 0;
  margin-right: 12px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-switcher a {
  padding: 3px 10px;
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.lang-switcher a.active {
  background: var(--primary);
}

.lang-switcher a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
}

/* ----- News Ticker ----- */
.news-ticker {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
  position: relative;
  z-index: 1100;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.news-ticker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.news-ticker-container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.news-ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: var(--white);
  background: var(--primary-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.news-ticker-label i {
  font-size: 0.9rem;
  color: var(--white);
}

.news-ticker-track-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  padding-left: 16px;
}

.news-ticker-track-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

body.rtl .news-ticker-track-wrapper::before {
  left: auto;
  right: 0;
  background: linear-gradient(270deg, var(--primary) 0%, transparent 100%);
}

body.rtl .news-ticker-track-wrapper {
  padding-left: 0;
  padding-right: 16px;
}

.news-ticker-track {
  display: flex;
  gap: 32px;
  animation: newsTickerScroll 30s linear infinite;
  will-change: transform;
  contain: layout paint;
}

.news-ticker:hover .news-ticker-track {
  animation-play-state: paused;
}

.news-ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: var(--transition);
  flex-shrink: 0;
}

.news-ticker-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--secondary);
  transform: translateY(-1px);
}

.news-ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.news-ticker-title {
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes newsTickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

body.rtl .news-ticker-track {
  animation-name: newsTickerScrollRtl;
}

@keyframes newsTickerScrollRtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

/* Nav lang switcher */
.nav-lang-switcher {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

body.rtl .nav-lang-switcher {
  margin-left: 0;
  margin-right: 20px;
  padding-left: 0;
  padding-right: 20px;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-lang-switcher {
  border-left-color: var(--gray-200);
}

body.rtl .navbar.scrolled .nav-lang-switcher {
  border-right-color: var(--gray-200);
  border-left: none;
}

.nav-lang-switcher .lang-switcher a {
  color: var(--primary) !important;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

.nav-lang-switcher .lang-switcher a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-lang-switcher .lang-switcher a {
  color: var(--primary) !important;
  background: transparent !important;
}

.navbar.scrolled .nav-lang-switcher .lang-switcher a:hover:not(.active) {
  background: var(--gray-100) !important;
  color: var(--primary-dark) !important;
}

.nav-lang-switcher .lang-switcher a.active {
  background: var(--white);
  color: var(--primary);
}

.navbar.scrolled .nav-lang-switcher .lang-switcher a.active {
  background: var(--primary);
  color: var(--white);
}

/* Mobile menu backdrop overlay */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1097;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* Prevent body scroll when mobile menu open */
body.nav-menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 768px) {
  .news-ticker-label span {
    display: none;
  }
  
  .news-ticker-label {
    padding: 6px 10px;
  }
  
  .news-ticker-title {
    max-width: 200px;
  }
  
  .news-ticker-track {
    animation-duration: 40s;
  }
  
  .nav-lang-switcher {
    display: none;
  }

  .nav-lang-mobile-only {
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--gray-200);
    width: 100%;
  }

  .nav-lang-mobile-only .lang-switcher {
    justify-content: center;
  }

  .nav-lang-mobile-only .lang-switcher a {
    color: var(--primary) !important;
    background: transparent;
    padding: 10px 20px !important;
    font-size: 0.9rem;
    border-bottom: none !important;
    width: auto !important;
  }

  .nav-lang-mobile-only .lang-switcher a:hover:not(.active) {
    background: var(--gray-100);
    color: var(--primary-dark);
  }

  .nav-lang-mobile-only .lang-switcher a.active {
    background: var(--primary) !important;
    color: var(--white) !important;
  }

  body.rtl .nav-lang-mobile-only {
    border-right: none;
  }
}

/* Navbar scrolled adjustment for news ticker */
.navbar.scrolled {
  position: fixed;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
  top: 0;
}

@media (max-width: 768px) {
  .navbar {
    top: 46px;
  }
  
  .navbar.scrolled {
    top: 0;
  }
}

/* ----- Navigation (Navbar) ----- */
.navbar {
  position: absolute;
  top: 46px;
  left: 0;
  width: 100%;
  z-index: 1098;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.navbar.scrolled {
  position: fixed;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
  top: 0;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--dark);
}

.nav-logo span {
  color: var(--secondary);
}

@media (min-width: 769px) {
  .navbar .container {
    justify-content: flex-start;
  }

  .nav-lang-mobile-only {
    display: none;
  }

  .nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    margin: 0 auto;
  }

  .nav-lang-switcher {
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-links a {
    color: var(--white);
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    display: block;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
  }

  .navbar.scrolled .nav-links a {
    color: var(--gray-700);
  }

  .navbar.scrolled .nav-links a:hover,
  .navbar.scrolled .nav-links a.active {
    background: var(--primary);
    color: var(--white);
  }

  .nav-toggle {
    display: none;
  }
}

.nav-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1099;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
  display: block;
  transform-origin: center;
}

.navbar.scrolled .nav-toggle span {
  background: var(--dark);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ----- Hero Slider ----- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
  color: var(--white);
}

.hero-content p {
  font-size: 1.3rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* ----- About Preview Section ----- */
.about-preview {
  padding: 80px 0;
}

.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview-text h2 {
  margin-bottom: 20px;
  color: var(--dark);
}

.about-preview-text p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-preview-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ----- Services Section ----- */
.services-section {
  background: var(--gray-50);
  padding: 80px 0;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  color: var(--gray-600);
}

/* ----- Projects Grid ----- */
.projects-section {
  padding: 80px 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  color: var(--gray-600);
  font-size: 0.95rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.project-card-image {
  height: 220px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.project-card-body {
  padding: 25px;
}

.project-card-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-card-region {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--secondary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  margin-left: 8px;
}

body.rtl .project-card-region {
  margin-left: 0;
  margin-right: 8px;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.project-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.project-card-footer {
  padding: 0 25px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ----- News Section ----- */
.news-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-card-body {
  padding: 25px;
}

.news-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary);
  color: var(--white);
  padding: 10px 15px;
  border-radius: var(--radius);
  margin-bottom: 15px;
  min-width: 60px;
}

.news-date-badge .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.news-date-badge .month {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.news-card h3 {
  margin-bottom: 10px;
}

.news-card h3 a {
  color: var(--dark);
  transition: var(--transition);
}

.news-card h3 a:hover {
  color: var(--primary);
}

.news-card p {
  color: var(--gray-600);
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.read-more:hover {
  gap: 8px;
  color: var(--primary-dark);
}

/* ----- News Page Full Width ----- */
.news-fullwidth {
  max-width: 900px;
  margin: 0 auto;
}

.news-list-item {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: var(--transition);
}

.news-list-item:hover {
  box-shadow: var(--shadow-md);
}

.news-list-image {
  flex-shrink: 0;
  width: 160px;
  border-radius: var(--radius);
  overflow: hidden;
}

.news-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  min-height: 100%;
}

.news-list-item:hover .news-list-image img {
  transform: scale(1.05);
}

.news-list-content {
  flex: 1;
}

.news-list-content .news-date-badge {
  margin-bottom: 8px;
}

.sidebar-widget {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

/* ----- Detail Page ----- */
.page-banner {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  padding: 120px 0 60px;
  color: var(--white);
  text-align: center;
}

.page-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--white);
}

.breadcrumb {
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--secondary);
}

.breadcrumb a:hover {
  color: var(--white);
}

.detail-content {
  padding: 60px 0;
}

.detail-content img {
  max-width: 100%;
  border-radius: var(--radius);
}

/* ----- Operations Page ----- */
.operations-section {
  padding: 80px 0;
}

.operation-card {
  display: flex;
  gap: 30px;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  transition: var(--transition);
}

.operation-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(5px);
}

body.rtl .operation-card:hover {
  transform: translateX(-5px);
}

.operation-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.operation-card h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

.operation-card ul {
  list-style: none;
  padding: 0;
}

.operation-card li {
  padding: 5px 0;
  color: var(--gray-600);
  position: relative;
  padding-left: 20px;
}

body.rtl .operation-card li {
  padding-left: 0;
  padding-right: 20px;
}

.operation-card li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

body.rtl .operation-card li::before {
  left: auto;
  right: 0;
}

/* ----- About Page Specifics ----- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.value-item {
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--secondary);
}

body.rtl .value-item {
  border-left: none;
  border-right: 4px solid var(--secondary);
}

.objectives-accordion .accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: var(--white);
  transition: var(--transition);
  border: none;
  width: 100%;
  font-size: 1rem;
  text-align: left;
  color: var(--dark);
}

body.rtl .accordion-header {
  text-align: right;
}

.accordion-header:hover {
  background: var(--gray-50);
}

.accordion-header .icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.accordion-item.active .accordion-header .icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 0 20px 20px;
}

.accordion-content p {
  color: var(--gray-600);
  line-height: 1.8;
}

.founders-list {
  columns: 2;
  list-style: disc;
  padding-left: 20px;
}

body.rtl .founders-list {
  padding-left: 0;
  padding-right: 20px;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
}

.board-table th,
.board-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

body.rtl .board-table th,
body.rtl .board-table td {
  text-align: right;
}

.board-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.board-table tr:nth-child(even) {
  background: var(--gray-50);
}

.board-table tr:hover {
  background: rgba(30, 64, 175, 0.05);
}

/* ----- Services Page Specifics ----- */
.service-detail-section {
  padding: 60px 0;
}

.service-detail-card {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.service-stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.stat-box {
  text-align: center;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  min-width: 120px;
  flex: 1;
}

.stat-box .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-box .label {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 5px;
}

/* ----- Contact Page ----- */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  margin-bottom: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-800);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-sm);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info-card h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-info-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.contact-map {
  margin-top: 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* ----- Partners Section ----- */
.partners-section {
  padding: 60px 0;
  background: var(--gray-50);
  text-align: center;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.partners-grid img {
  max-height: 60px;
  filter: grayscale(30%);
  opacity: 0.8;
  transition: var(--transition);
}

.partners-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ----- Footer ----- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer p {
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

body.rtl .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  color: var(--white);
}

/* ----- Back to Top ----- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
  border: none;
  font-size: 1.2rem;
}

body.rtl .back-to-top {
  right: auto;
  left: 30px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ----- Flash Messages ----- */
.flash-message {
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.flash-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.flash-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ----- Pagination ----- */
.pagination {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  transition: var(--transition);
  display: inline-block;
}

.pagination a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ----- Loading / Animations ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* ----- Selection ----- */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* =============================================
   Responsive Design
   ============================================= */

/* Large Tablets & Small Desktops */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
}

/* Tablets & Mobile */
@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 35px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

/* Navigation */
  .nav-toggle {
    display: flex;
    position: relative;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
    gap: 2px;
    z-index: 1098;
    overflow-y: auto;
    transform: translateX(110%);
    visibility: hidden;
    contain: layout paint;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
  }

  .navbar.scrolled .nav-links {
    padding-top: 70px;
  }

  body.rtl .nav-links {
    right: auto;
    left: 0;
    transform: translateX(-110%);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.15);
  }

  body.rtl .nav-links.active {
    transform: translateX(0);
  }

  .nav-links > li > a {
    color: var(--gray-700);
    padding: 14px 18px;
    width: 100%;
    display: block;
    border-radius: var(--radius);
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 500;
  }

  .nav-links > li:last-child > a {
    border-bottom: none;
  }

  .nav-links > li > a:hover,
  .nav-links > li > a.active {
    background: var(--primary);
    color: var(--white);
  }

  /* About Preview */
  .about-preview .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Operation Cards */
  .operation-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
  }

  body.rtl .operation-card li {
    padding-left: 0;
    padding-right: 0;
  }

  body.rtl .operation-card li::before {
    display: none;
  }

  /* Contact Grid */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* News Full Width */
  .news-fullwidth {
    max-width: 100%;
  }

  /* News List Item */
  .news-list-item {
    flex-direction: row;
  }

  .news-list-image {
    width: 120px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Page Banner */
  .page-banner {
    padding: 100px 0 40px;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

  /* Founders List */
  .founders-list {
    columns: 1;
  }

  /* Board Table */
  .board-table {
    display: block;
    overflow-x: auto;
  }

  /* Partners */
  .partners-grid {
    gap: 25px;
  }

  /* Service Stats */
  .service-stats {
    justify-content: center;
  }

  /* News Ticker Mobile */
  .news-ticker {
    padding: 8px 0;
  }
  
  .news-ticker-label span {
    display: none;
  }
  
  .news-ticker-label {
    padding: 4px 10px;
  }
  
  .news-ticker-title {
    max-width: 200px;
  }
  
  .news-ticker-track {
    animation-duration: 40s;
  }

  .news-ticker-track-wrapper::before {
    width: 30px;
  }

  .navbar {
    top: 46px;
  }

  /* Hero */
  .hero {
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.9rem;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  .service-card {
    padding: 30px 20px;
  }

  .project-card-body {
    padding: 20px;
  }

  .news-card-body {
    padding: 20px;
  }

  .detail-content {
    padding: 40px 0;
  }
}
