/* Import Vazirmatn Font */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

/* Root Variables - Blue Theme */
:root {
  --blue-primary: #1e40af;
  --blue-dark: #1e3a8a;
  --blue-darker: #0f172a;
  --blue-light: #3b82f6;
  --blue-lighter: #60a5fa;
  --blue-bg: #eff6ff;
  --orange: #f97316;
  --orange-light: #fb923c;
  --green: #10b981;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --bg-light: #f8fafc;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius: 1rem;
}

/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', sans-serif !important;
  direction: rtl;
  text-align: right;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER & LOGO FIX ===== */
.site-header {
  background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-dark) 100%);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.site-logo .logo-image {
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  line-height: 1.3;
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 0.85rem;
  color: var(--blue-lighter);
  font-weight: 500;
  white-space: nowrap;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  justify-content: center;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

/* ===== SLIDER FIX ===== */
.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin: 2rem auto;
  max-width: 1400px;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  background: #000;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

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

.slider-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 3rem;
  color: white;
  z-index: 3;
}

.slider-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 4;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.dot.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 4;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.5);
}

.slider-arrow.prev {
  right: 2rem;
}

.slider-arrow.next {
  left: 2rem;
}

/* ===== NEWS TICKER ===== */
.news-ticker {
  background: white;
  padding: 1rem 2rem;
  margin: 2rem auto;
  max-width: 1400px;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ticker-label {
  background: var(--orange);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  color: var(--text-dark);
}

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

/* ===== SECTIONS ===== */
.section {
  padding: 4rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

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

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, var(--blue-darker) 0%, #0a0f1c 100%);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.footer-logo {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-width: 250px;
  height: auto;
  object-fit: contain;
}

.footer-column h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--blue-lighter);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-column h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--blue-light);
  border-radius: 2px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: rgba(255,255,255,0.8);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-column a:hover {
  color: var(--blue-lighter);
  transform: translateX(-5px);
}

.footer-contact p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stat-label {
  color: rgba(255,255,255,0.7);
}

.stat-value {
  color: var(--blue-lighter);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .site-logo .logo-image {
    height: 60px;
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
  }
  
  .hero-slider {
    height: 300px;
  }
  
  .slider-title {
    font-size: 1.5rem;
  }
  
  .slider-overlay {
    padding: 1.5rem;
  }
  
  .site-logo .logo-image {
    height: 50px;
    max-width: 120px;
  }
  
  .logo-title {
    font-size: 1rem;
  }
}
