/* Font styles */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/*:root {*/
/*  --primary: #134e4a;*/
/*  --primary-light: #14b8a6;*/
/*  --primary-dark: #0f766e;*/
/*  --secondary: #0891b2;*/
/*  --accent: #f59e0b;*/
/*  --text-primary: #1e293b;*/
/*  --text-secondary: #475569;*/
/*  --bg-light: #f8fafc;*/
/*  --bg-dark: #0f172a;*/
/*  --transition-fast: 0.2s ease;*/
/*  --transition-normal: 0.3s ease;*/
/*  --transition-slow: 0.5s ease;*/
/*}*/

/* Base styles */
body,
div,
p {
  font-family: 'Tajawal', sans-serif !important;
  direction: rtl;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 700;
  line-height: 1.3;
}

/* FAQ Accordion Styles */
.faq-content {
  display: none;
}

.faq-content.active {
  display: block;
}

.faq-toggle-icon {
  transition: transform 0.3s ease;
}

[aria-expanded="true"] .faq-toggle-icon {
  transform: rotate(45deg);
}

/* Modern hover effects */
.hover-scale {
  transition: transform 0.3s ease;
}

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

.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Card effects */
.article-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Interactive hover effects */
.interactive-hover {
  position: relative;
  overflow: hidden;
}

.interactive-hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.interactive-hover:hover::after {
  transform: scaleX(1);
}

.breaking-news-ticker {
  position: relative;
  overflow: hidden;
  /* height: 50px; */
  /* Removed fixed height to allow content to determine height */
}

/* Marquee animation */
@keyframes marquee {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-100%);
  }
}

.custom-size {
  width: 12rem;
  height: 17rem;
}

.ticker-wrapper {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 60s linear infinite;
  padding-right: 100%;
  /* Start off-screen to the right for RTL */
}

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

/* Card hover */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
}

.card-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.06);
}

/* Background grid pattern */
.bg-grid-pattern {
  --grid-size: 30px;
  --grid-strength: 1px;
  --grid-color: rgba(255, 255, 255, 0.05);

  background-image:
    linear-gradient(to right, var(--grid-color) var(--grid-strength), transparent var(--grid-strength)),
    linear-gradient(to bottom, var(--grid-color) var(--grid-strength), transparent var(--grid-strength));
  background-size: var(--grid-size) var(--grid-size);
}

/* Typing text animation */
.typing-animation {
  overflow: hidden;
  border-right: 3px solid var(--primary-light);
  white-space: nowrap;
  margin: 0 auto;
  animation:
    typing 3.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--primary-light)
  }
}

/* Floating animation */
.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Animated gradient button */
.btn-gradient {
  background-size: 200% 200%;
  background-image: linear-gradient(45deg, var(--primary), var(--primary-light), var(--primary-dark), var(--primary-light));
  animation: gradient-animation 4s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Glow effect */
.glow {
  position: relative;
}

.glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 40px 5px rgba(56, 178, 172, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow:hover::after {
  opacity: 1;
}

/* Morph effect */
.morph {
  transition: border-radius 0.5s ease, transform 0.5s ease;
  border-radius: 1rem;
}

.morph:hover {
  border-radius: 2rem;
  transform: scale(1.05);
}

/* Shimmer effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* Card hover effects */
.card-rise {
  /*transition: transform 0.3s ease, box-shadow 0.3s ease, margin 0.3s ease;*/
}

.card-rise:hover {
  /*transform: translateY(-10px);*/
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
  /*margin-bottom: 10px;*/
}

/* Scale on hover */
.scale-on-hover {
  transition: transform 0.3s ease;
}

.scale-on-hover:hover {
  transform: scale(1.05);
}

/* Background pattern */
.bg-pattern {
  background-image:
    radial-gradient(rgba(56, 178, 172, 0.1) 2px, transparent 2px),
    radial-gradient(rgba(56, 178, 172, 0.1) 2px, transparent 2px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* Input focus glow */
.focus-glow:focus {
  box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.3);
  outline: none;
}

/* Smooth color transition */
.color-transition {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Text gradient effect */
.text-gradient {
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

/* Button ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.btn-ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Enhanced shadow effect */
.shadow-enhanced {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* 3D Card Tilt Effect */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: rotateX(5deg) rotateY(5deg);
}

.tilt-card-content {
  transform: translateZ(20px);
}

/* Glass Morphism */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Highlight Text Effect */
.highlight-text {
  position: relative;
  display: inline-block;
}

.highlight-text::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 30%;
  width: 100%;
  background-color: rgba(56, 178, 172, 0.2);
  z-index: -1;
  transition: height 0.3s ease;
}

.highlight-text:hover::before {
  height: 100%;
}

/* Fade-in animation for images */
.fade-in-image {
  animation: fadeInImage 1s ease-in-out;
}

@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modern pill tab style */
.pill-tab {
  transition: all 0.3s ease;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
}

.pill-tab.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Rotate on hover */
.rotate-hover {
  transition: transform 0.3s ease;
}

.rotate-hover:hover {
  transform: rotate(5deg);
}

/* Image zoom and blur on hover */
.zoom-blur-container {
  overflow: hidden;
}

.zoom-blur {
  transition: all 0.5s ease;
}

.zoom-blur:hover {
  transform: scale(1.1);
  filter: blur(2px);
}

/* Border grow animation */
.border-grow {
  position: relative;
}

.border-grow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.border-grow:hover::after {
  width: 100%;
}

/* Read more button styles */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(56, 178, 172, 0.3);
}

.read-more-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(56, 178, 172, 0.4);
}

/* Category badge styling */
.category-badge {
  display: inline-block;
  background-color: rgba(20, 184, 166, 0.15);
  color: var(--primary-light);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(20, 184, 166, 0.3);
}

/* Support for RTL websites */
[dir="rtl"] {
  text-align: right;
}

/* Support for RTL in flex items */
[dir="rtl"] .flex-row {
  flex-direction: row-reverse;
}

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

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

/* RTL support for icons in buttons */
[dir="rtl"] .btn-icon-left i {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .btn-icon-right i {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .typing-animation {
    white-space: normal;
    animation: none;
    border-right: none;
  }

  .card-hover:hover {
    transform: translateY(-5px) scale(1.01);
  }
}




     /* استایل لودینگ */
 #preloader {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: #fff; /* پس‌زمینه */
     z-index: 9999;
     display: flex;
     align-items: center;
     justify-content: center;
 }

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
