:root {
  --color-primary: #24b8a8;
  --color-primary-dark: #158376;
  --color-secondary: #0bc1b8;
  --color-dark: #1c1c1d;
}
strong {
  color: #0e8779;
}
.container {
  max-width: 1200px;
  width: 100%;
  padding-inline: 1rem;
  margin-inline:  auto;
  box-sizing: border-box;
}
.text-primary {
  color: var(--color-primary);
}

.text-primary-dark {
  color: var(--color-primary-dark);
}

.text-secondary {
  color: var(--color-secondary);
}
.bg-primary {
  background-color: var(--color-primary);
}

.bg-primary-dark {
  background-color: var(--color-primary-dark);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.border-primary {
  border-color: var(--color-primary);
}

.hover\:bg-primary-dark:hover {
  background-color: var(--color-primary-dark);
}

.hover\:text-primary:hover {
  color: var(--color-primary);
}

.from-primary {
  --tw-gradient-from: var(--color-primary) !important;
  --tw-gradient-stops: var(--tw-gradient-from),
    var(--tw-gradient-to, rgba(36, 184, 168, 0)) !important;
}

.to-primary-dark {
  --tw-gradient-to: var(--color-primary-dark) !important;
}

.bg-gradient-to-r {
  background-image: linear-gradient(
    to right,
    var(--tw-gradient-stops)
  ) !important;
}

/* تعريفات إضافية للتدرجات اللونية */
.gradient-primary {
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-primary-dark)
  ) !important;
}

.gradient-text {
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-fill-color: transparent !important;
}

.from-secondary {
  --tw-gradient-from: var(--color-secondary);
}

.to-primary {
  --tw-gradient-to: var(--color-primary);
}

.from-primary-light {
  --tw-gradient-from: #e6f7f5;
}

.from-secondary-light {
  --tw-gradient-from: #e6f9f8;
}

.to-primary-light {
  --tw-gradient-to: #f0faf9;
}

.to-secondary {
  --tw-gradient-to: var(--color-secondary);
}

/* Avoid forcing a global font here so page-level fonts (Tajawal) can apply */

.hero-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-1 {
  background: url("../img/hero-1.webp") no-repeat center center;
  background-size: cover;
}

.slide-2 {
  background: url("../img/hero-2.webp") no-repeat center center;
  background-size: cover;
}

.slide-3 {
  background: url("../img/hero-3.webp") no-repeat center center;
  background-size: cover;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  transform: translateY(100px);
  opacity: 0;
  transition: all 1s ease;
}

.slide-up.visible {
  transform: translateY(0);
  opacity: 1;
}

.scale-in {
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.6s ease;
}

.scale-in.visible {
  transform: scale(1);
  opacity: 1;
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.navbar-blur {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.gradient-text {
  background: linear-gradient(135deg, #24b8a8 0%, #158376 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card {
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #24b8a8;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 5;
}

/* Body font is defined per-page to avoid conflicts with page styles */

/* Responsive Button System */
.btn-responsive {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

@media (min-width: 640px) {
  .btn-responsive {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .btn-responsive {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .btn-responsive {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }
}

/* Button Container Responsive Spacing */
.btn-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .btn-container {
    flex-direction: row;
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .btn-container {
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .btn-container {
    gap: 1.5rem;
  }
}

/* Service Card Button Responsive */
.service-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  width: 100%;
  display: inline-block;
  text-align: center;
}

@media (min-width: 640px) {
  .service-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    width: auto;
  }
}

@media (min-width: 768px) {
  .service-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .service-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Responsive Icon Spacing */
.btn-icon-spacing {
  margin-left: 0.25rem;
}

@media (min-width: 640px) {
  .btn-icon-spacing {
    margin-left: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .btn-icon-spacing {
    margin-left: 0.75rem;
  }
}
.gradient-bg {
  background: linear-gradient(135deg, #24b8a8 0%, #158376 100%);
}
.hero-bg {
  background: linear-gradient(
      135deg,
      rgba(36, 184, 168, 0.9) 0%,
      rgba(21, 131, 118, 0.9) 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>');
  background-size: cover;
  background-position: center;
}
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.text-gradient {
  background: linear-gradient(135deg, #24b8a8 0%, #158376 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.floating {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* Animation */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-in-out;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 1s ease-in-out;
}

/* More animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoom-in {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease forwards;
}

.animate-fade-in-delay {
  animation: fade-in 1.5s ease forwards;
}

.animate-zoom-in {
  animation: zoom-in 10s ease forwards;
}

/* Mobile fixes to prevent horizontal overflow and fixed heights */
@media (max-width: 768px) {
  .sidebar {
    min-width: 0 !important;
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  .article-image {
    height: auto !important;
    aspect-ratio: 16/9;
    object-fit: cover;
  }

  .main-content, .article-title, .article-subtitle, .article-tags a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .back-to-top {
    left: auto !important;
    right: 30px !important;
  }

  .content-wrapper {
    flex-direction: column !important;
    gap: 20px !important;
  }
}
