/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root Variables */
:root {
  /* Colors */
  --primary-dark: #00195e;
  --primary-medium: #004cb7;
  --primary-light: #31abfd;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #ff4757;
  --text-dark: #333;
  --text-medium: #666;
  --text-light: #888;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;

  /* Fonts */
  --font-arabic: "IBM Plex Sans Arabic", sans-serif;
  --font-english: "Inter", "Arial", sans-serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.4s ease;
}

/* Language-specific Font Family */
html[lang="ar"] {
  font-family: var(--font-arabic);
}

html[lang="en"] {
  font-family: var(--font-english);
}

/* Body Base Styles */
body {
  font-family: var(--font-english);
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 50%,
    var(--primary-light) 100%
  ) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  position: relative;
  transition: all var(--transition-medium);
}

/* Arabic Direction */
html[dir="rtl"] body {
  font-family: var(--font-arabic);
}

/* ===== SCROLLBAR STYLES ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 25, 94, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--primary-light),
    var(--primary-medium),
    var(--primary-dark)
  );
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--primary-light),
    var(--primary-dark),
    var(--primary-medium)
  );
  box-shadow: 0 0 10px rgba(49, 171, 253, 0.5);
}

/* ===== BACKGROUND & DECORATIVE ELEMENTS ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  top: 20%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    rgba(49, 171, 253, 0.15),
    rgba(0, 25, 94, 0.15)
  );
  border-radius: 50%;
  animation-delay: 0s;
}

.shape-2 {
  top: 60%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(0, 76, 183, 0.15),
    rgba(49, 171, 253, 0.15)
  );
  border-radius: 20px;
  animation-delay: 2s;
}

.shape-3 {
  bottom: 20%;
  left: 20%;
  width: 120px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(0, 25, 94, 0.15),
    rgba(0, 76, 183, 0.15)
  );
  border-radius: 30px;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Side Strips */
.side-strip {
  position: fixed;
  top: 0;
  width: 12px;
  height: 100vh;
  z-index: 999;
  background: linear-gradient(
    180deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 50%,
    var(--primary-light) 100%
  );
  animation: stripPulse 3s ease-in-out infinite alternate;
}

.side-strip.left {
  left: 0;
  border-radius: 0 20px 20px 0;
}

.side-strip.right {
  right: 0;
  border-radius: 20px 0 0 20px;
}

@keyframes stripPulse {
  0% {
    box-shadow: inset 0 0 20px rgba(49, 171, 253, 0.3),
      0 0 15px rgba(0, 25, 94, 0.5);
  }
  100% {
    box-shadow: inset 0 0 30px rgba(49, 171, 253, 0.6),
      0 0 25px rgba(0, 76, 183, 0.7);
  }
}

.bottom-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    90deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 25%,
    var(--primary-light) 50%,
    var(--primary-medium) 75%,
    var(--primary-dark) 100%
  );
  z-index: 999;
  box-shadow: 0 -2px 20px rgba(49, 171, 253, 0.4),
    0 -4px 10px rgba(0, 76, 183, 0.3);
}

/* ===== HEADER STYLES ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 25, 94, 0.1);
  transition: all var(--transition-medium);
  border-bottom: 4px solid transparent;
  background-clip: padding-box;
}

header::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 25%,
    var(--primary-light) 50%,
    var(--primary-medium) 75%,
    var(--primary-dark) 100%
  );
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-medium);
}

.logo img {
  height: 150px;
  width: auto;
}

.logo:hover {
  transform: scale(1.05);
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-direction: row;
}

/* RTL Navigation - عكس الاتجاه للعربية */
html[dir="rtl"] .nav-menu {
  direction: rtl;
}

.nav-item {
  text-decoration: none;
  color: var(--text-medium);
  font-size: 16px;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all var(--transition-medium);
  position: relative;
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary-dark);
  background: rgba(0, 25, 94, 0.1);
  transform: translateY(-2px);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-cta {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 15px rgba(0, 25, 94, 0.3);
  order: 1;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 25, 94, 0.4);
}

.lang-toggle {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-medium)
  );
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(49, 171, 253, 0.3);
  min-width: 65px;
  justify-content: center;
  order: 2;
}

.lang-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(49, 171, 253, 0.4);
}

.lang-toggle i {
  font-size: 12px;
}

#currentLang {
  font-weight: 700;
  font-size: 12px;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition-medium);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 25, 94, 0.1);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-item {
  display: block;
  padding: 15px 20px;
  color: var(--text-medium);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 1px solid rgba(0, 25, 94, 0.1);
  transition: all var(--transition-medium);
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

html[dir="rtl"] .mobile-nav-item {
  text-align: right;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary-dark);
  background: rgba(0, 25, 94, 0.05);
}

.mobile-cta {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  ) !important;
  color: white !important;
  border-radius: 10px !important;
  margin-top: 10px !important;
}

/* ===== BLOG HERO SECTION ===== */
.blog-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 20px 40px;
}

.hero-content {
  max-width: 1000px;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  animation: slideInUp 1s ease-out 0.2s both;
}

/* Search Container */
.search-container {
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
  animation: slideInUp 1s ease-out 0.4s both;
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
}

.search-input:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(49, 171, 253, 0.3);
  transform: translateY(-1px);
}

.search-btn {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-medium)
  );
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition-medium);
  min-width: 120px;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 171, 253, 0.4);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Search Results Info */
.search-info {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 25, 94, 0.15);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInUp 1s ease-out 0.6s both;
}

.search-info h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
}

.clear-search {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  margin-right: 15px;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all var(--transition-medium);
}

html[dir="rtl"] .clear-search {
  margin-right: 0;
  margin-left: 15px;
}

.clear-search:hover {
  background: rgba(49, 171, 253, 0.1);
  text-decoration: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.8);
  animation: slideInUp 1s ease-out 0.6s both;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: white;
}

.empty-state a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}

.empty-state a:hover {
  text-decoration: underline;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  animation: slideInUp 1s ease-out 0.6s both;
}

/* Blog Card */
.blog-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 25, 94, 0.12);
  transition: all var(--transition-slow);
  cursor: pointer;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(49, 171, 253, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.blog-card:hover::before {
  left: 100%;
}

.blog-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 25, 94, 0.25);
}

/* Blog Image */
.blog-image {
  height: 220px;
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-light));
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-medium);
  display: block;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

/* Blog Content */
.blog-content {
  padding: 30px 25px;
}

.blog-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: var(--text-light);
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.blog-date i {
  color: var(--primary-light);
}

.read-more {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-medium);
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 25, 94, 0.4);
}

/* ===== PAGINATION ===== */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 50px 0;
  animation: slideInUp 1s ease-out 0.8s both;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 25px;
  border-radius: 50px;
  box-shadow: 0 15px 40px rgba(0, 25, 94, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition-medium);
  color: var(--text-medium);
}

.pagination a:hover {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-medium)
  );
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(49, 171, 253, 0.4);
}

.pagination .current {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  color: white;
  box-shadow: 0 6px 20px rgba(0, 25, 94, 0.3);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
  color: #ccc;
}

.pagination .dots {
  color: #999;
  font-weight: bold;
  pointer-events: none;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  backdrop-filter: blur(10px);
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.7);
  opacity: 0;
  transition: all var(--transition-medium);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  color: white;
  padding: 30px;
  border-radius: 20px 20px 0 0;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

html[dir="rtl"] .modal-close {
  left: auto;
  right: 15px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-title {
  font-size: clamp(1.5rem, 3vw, 24px);
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-subtitle {
  font-size: clamp(0.9rem, 2vw, 16px);
  opacity: 0.9;
}

.modal-body {
  padding: 30px 20px;
}

/* Service Info */
.service-info {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 15px;
  margin: 10px 0 20px;
  text-align: center;
}

.service-info h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.service-info p {
  color: var(--text-medium);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

html[dir="rtl"] .form-label {
  text-align: right;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color var(--transition-fast);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-dark);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  color: white;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 25, 94, 0.3);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: none;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Success Message */
.success-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-medium)
  );
  color: white;
  padding: 20px 40px;
  border-radius: 15px;
  z-index: 3000;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 25, 94, 0.3);
}

.success-message h3 {
  margin-bottom: 10px;
}

/* ===== FOOTER STYLES ===== */
footer {
  background: linear-gradient(
    135deg,
    rgba(0, 25, 94, 0.98) 0%,
    rgba(0, 76, 183, 0.95) 50%,
    rgba(49, 171, 253, 0.92) 100%
  );
  backdrop-filter: blur(20px);
  color: white;
  padding: 80px 20px 40px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  border-top: 4px solid rgba(255, 255, 255, 0.2);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(49, 171, 253, 0.9) 25%,
    rgba(255, 255, 255, 1) 50%,
    rgba(49, 171, 253, 0.9) 75%,
    rgba(255, 255, 255, 0.8) 100%
  );
  background-size: 200% 100%;
  animation: footerGradientFlow 4s linear infinite;
  box-shadow: 0 2px 15px rgba(255, 255, 255, 0.4);
}

@keyframes footerGradientFlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="90" cy="10" r="0.8" fill="rgba(255,255,255,0.06)"/><circle cx="10" cy="90" r="1.2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  opacity: 0.3;
  pointer-events: none;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.footer-section {
  transition: transform var(--transition-medium);
}

.footer-section:hover {
  transform: translateY(-5px);
}

.footer-logo {
  text-align: left;
  margin-bottom: 30px;
}

html[dir="rtl"] .footer-logo {
  text-align: right;
}

.footer-logo img {
  height: 140px;
  width: auto;
  filter: brightness(1.3) contrast(1.1);
  transition: transform var(--transition-medium);
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  color: white;
  position: relative;
  padding-bottom: 15px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.5));
  border-radius: 2px;
}

html[dir="rtl"] .footer-section h3::after {
  right: 0;
  left: auto;
}

.footer-section p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  text-align: justify;
  font-size: 16px;
  font-weight: 400;
}

.footer-section p strong {
  color: white;
  font-weight: 700;
  display: block;
  margin-top: 20px;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-services {
  list-style: none;
  padding: 0;
}

.footer-services li {
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  transition: all var(--transition-medium);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-services li:last-child {
  border-bottom: none;
}

html[dir="rtl"] .footer-services li {
  padding-left: 0;
  padding-right: 30px;
  text-align: right;
}

.footer-services li::before {
  content: "→";
  color: white;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 18px;
  transition: transform var(--transition-medium);
}

html[dir="rtl"] .footer-services li::before {
  content: "←";
  left: auto;
  right: 0;
}

.footer-services li:hover {
  color: white;
  padding-left: 35px;
}

html[dir="rtl"] .footer-services li:hover {
  padding-left: 0;
  padding-right: 35px;
}

.footer-services li:hover::before {
  transform: translateX(5px);
}

html[dir="rtl"] .footer-services li:hover::before {
  transform: translateX(-5px);
}

.footer-services li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition-medium);
  font-weight: 500;
}

.footer-services li a:hover {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-section p i {
  color: white;
  margin-right: 12px;
  width: 25px;
  text-align: center;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

html[dir="rtl"] .footer-section p i {
  margin-right: 0;
  margin-left: 12px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  margin-bottom: 10px;
  font-weight: 500;
}

.novay-link {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all var(--transition-medium);
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.novay-link:hover {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.novay-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.7));
  transition: width var(--transition-medium);
  border-radius: 2px;
}

.novay-link:hover::after {
  width: 100%;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto 50px;
  }

  .footer-content {
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 80px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .side-strip {
    width: 8px;
  }

  .bottom-strip {
    height: 8px;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }

  .header-content {
    padding: 0 15px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header */
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-content {
    height: 70px;
    padding: 0 15px;
  }

  .header-cta {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .lang-toggle {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 55px;
  }

  .lang-toggle i {
    font-size: 10px;
  }

  #currentLang {
    font-size: 11px;
  }

  .logo img {
    height: 120px;
  }

  /* Hero */
  .blog-hero {
    padding: 100px 15px 30px;
    min-height: 50vh;
  }

  .search-form {
    flex-direction: column;
    gap: 15px;
  }

  .search-btn {
    border-radius: 20px;
    padding: 12px 20px;
  }

  /* Main Content */
  .main-content {
    padding: 0 15px 40px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-content {
    padding: 25px 20px;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pagination {
    padding: 15px 20px;
    gap: 6px;
  }

  .pagination a,
  .pagination span {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-section:first-child {
    grid-column: auto;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  html[dir="rtl"] .footer-section h3::after {
    right: 50%;
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-services li {
    text-align: center;
    padding-left: 0;
  }

  html[dir="rtl"] .footer-services li {
    padding-right: 0;
    text-align: center;
  }

  .footer-services li::before {
    display: none;
  }

  .footer-services li:hover {
    padding-left: 0;
  }

  html[dir="rtl"] .footer-services li:hover {
    padding-right: 0;
  }

  .footer-section p {
    text-align: center;
  }

  .footer-section p i {
    margin-right: 8px;
    float: none;
  }

  html[dir="rtl"] .footer-section p i {
    margin-left: 8px;
    margin-right: 0;
    float: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .logo img {
    height: 100px;
  }

  .blog-hero {
    padding: 90px 15px 20px;
  }

  .blog-grid {
    gap: 15px;
  }

  .blog-content {
    padding: 20px 15px;
  }

  .blog-image {
    height: 180px;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-toggle {
    padding: 6px 10px;
    font-size: 11px;
    min-width: 50px;
  }

  footer {
    padding: 60px 20px 30px;
  }

  .footer-section h3 {
    font-size: 20px;
  }

  .footer-section p {
    font-size: 14px;
  }
}

/* RTL Specific Adjustments */
html[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .search-form {
  direction: ltr;
}

html[dir="rtl"] .blog-meta {
  direction: rtl;
}

html[dir="rtl"] .pagination {
  direction: ltr;
}

html[dir="rtl"] .form-input {
  text-align: right;
}

html[dir="rtl"] .footer-bottom {
  text-align: center;
  direction: rtl;
}

html[dir="rtl"] .footer-section {
  text-align: right;
}

@media (max-width: 768px) {
  html[dir="rtl"] .footer-section {
    text-align: center;
  }

  html[dir="rtl"] .footer-logo {
    text-align: center;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img,
  .footer-logo img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-shape {
    animation: none;
  }

  .side-strip {
    animation: none;
  }
}

/* Print Styles */
@media print {
  .side-strip,
  .bottom-strip,
  .bg-animation,
  header,
  .modal-overlay {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .blog-hero,
  .main-content {
    background: white !important;
  }

  .blog-card {
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus Indicators */
*:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

button:focus,
.search-btn:focus,
.read-more:focus {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-dark: #000;
    --primary-medium: #333;
    --primary-light: #666;
    --text-dark: #000;
    --text-medium: #333;
    --text-light: #666;
  }

  .blog-card,
  .modal-content {
    border: 2px solid #000;
  }
}

/* Reduced Transparency for Accessibility */
@media (prefers-reduced-transparency: reduce) {
  header,
  .search-info,
  .blog-card,
  footer {
    backdrop-filter: none;
  }

  header {
    background: rgb(255, 255, 255);
  }

  footer {
    background: rgb(0, 25, 94);
  }
}

/* ===== UTILITY CLASSES ===== */

/* Text Utilities */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* Margin Utilities */
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--spacing-sm);
}
.mb-2 {
  margin-bottom: var(--spacing-md);
}
.mb-3 {
  margin-bottom: var(--spacing-lg);
}

/* Display Utilities */
.d-none {
  display: none;
}
.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.d-grid {
  display: grid;
}

/* Responsive Display Utilities */
@media (max-width: 768px) {
  .d-md-none {
    display: none;
  }
  .d-md-block {
    display: block;
  }
}

@media (min-width: 769px) {
  .d-md-up-none {
    display: none;
  }
  .d-md-up-block {
    display: block;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* GPU Acceleration for Animations */
.blog-card,
.search-btn,
.header-cta,
.lang-toggle {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Lazy Loading Support */
.blog-image img,
.footer-logo img,
.logo img {
  loading: lazy;
}

/* ===== FINAL OVERRIDES ===== */

/* Ensure consistency across all browsers */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove any lingering water background elements */
body::before,
body::after,
html::before,
html::after {
  content: none !important;
}

/* Ensure proper stacking context */
.bg-animation {
  isolation: isolate;
}

/* Force hardware acceleration on mobile */
@media (max-width: 768px) {
  .blog-card,
  .modal-content {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}

/* End of CSS File */
