/* کدهای اصلی استایل */
:root {
  --primary-color: #1D9BF0;
  --primary-dark: #1A85D0;
  --text-color: #333333;
  --bg-color: #FFFFFF;
  --secondary-bg: #F5F5F5;
  --border-color: #DDDDDD;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Shabnam', 'Tahoma', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style-type: none;
}

/* هدر */
.header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 5px var(--shadow-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo h1 {
  color: var(--text-color);
  font-size: 1.5rem;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-right: 1.5rem;
}

.main-nav li:last-child {
  margin-right: 0;
}

.main-nav a {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* بنر شماره تلفن */
.contact-banner {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 70px;
  z-index: 5;
  box-shadow: 0 2px 5px var(--shadow-color);
}

.phone-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.phone-label {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.phone-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFFFFF;
  direction: ltr;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.phone-number:hover {
  transform: scale(1.05);
  color: #FFFFFF;
}

/* محتوای اصلی */
.content {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.main-content {
  flex: 3;
  padding-left: 2rem;
}

.service-intro {
  margin-bottom: 2rem;
}

.service-intro h2 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service-intro p {
  margin-bottom: 1.5rem;
}

.services-list, .about-us {
  background-color: var(--secondary-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.services-list h3, .about-us h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.services-list ul {
  padding-right: 1.5rem;
}

.services-list li {
  margin-bottom: 0.5rem;
  position: relative;
}

.services-list li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  right: -1rem;
}

/* سایدبار */
.sidebar {
  flex: 1;
  min-width: 250px;
}

.areas-covered {
  background-color: var(--secondary-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.areas-covered h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.areas-covered ul {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.areas-covered li {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.areas-covered li:hover {
  background-color: rgba(29, 155, 240, 0.1);
}

.areas-covered li a {
  display: block;
  width: 100%;
}

/* فوتر */
.footer {
  background-color: var(--secondary-bg);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.published-date {
  font-size: 0.9rem;
  color: var(--text-color);
  text-align: left;
  direction: ltr;
}

.copyright {
  font-size: 0.9rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav li {
    margin: 0.5rem 0;
  }
  
  .content {
    flex-direction: column;
  }
  
  .main-content {
    padding-left: 0;
    margin-bottom: 2rem;
  }
  
  .sidebar {
    min-width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .copyright {
    margin-bottom: 1rem;
  }
  
  .contact-banner {
    top: 135px;
  }
  
  .phone-number {
    font-size: 1.2rem;
  }
}