@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

body {
  font-family: 'Vazirmatn', sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  color: #222;
  direction: rtl;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 0.5rem 0;
}
header .container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
}
.logo {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: bold;
  font-size: 1.5rem;
  color: #1a237e;
  letter-spacing: 1px;
}
nav {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  float: none;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
nav ul li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.2s;
}
nav ul li a:hover {
  color: #1a237e;
}
.hero {
  text-align: center;
  padding: 80px 0 40px 0;
  background: linear-gradient(90deg, #e3eafc 0%, #f8f9fa 100%);
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a237e;
}
.hero p {
  font-size: 1.2rem;
  color: #444;
}
footer {
  background: #fff;
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  font-size: 0.95rem;
  color: #888;
  margin-top: 40px;
  border-top: 1px solid #eee;
}
/* --- Header RTL Flex Layout --- */
.header-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  order: 2;
  font-weight: bold;
  font-size: 1.5rem;
  color: #1a237e;
  letter-spacing: 1px;
}
nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  order: 1;
  float: none !important;
}
@media (max-width: 700px) {
  .container {
    padding: 0 8px;
  }
  nav ul {
    gap: 1rem;
  }
  header .container {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }
  nav ul {
    gap: 1rem;
    justify-content: flex-start;
  }
  .logo {
    justify-content: center;
  }
  .hero {
    padding: 40px 0 20px 0;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}
/* --- End Header RTL Flex Layout --- */

/* --- Header RTL Flex Layout FINAL --- */
.header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
nav {
  margin-right: 8px;
}
.logo {
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: bold;
  font-size: 1.5rem;
  color: #1a237e;
  letter-spacing: 1px;
  float: none !important;
  display: flex !important;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  direction: rtl;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 8px;
  }
  .logo {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }
  nav {
    margin-right: 0;
    width: 100%;
    justify-content: center;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
  }
  .hero {
    min-height: 220px !important;
    padding: 0 !important;
  }
  .hero > div[style*='position:relative'] {
    max-width: 98vw !important;
    padding: 18px 0 18px 8px !important;
    margin-right: 0 !important;
  }
  .hero h1 {
    font-size: 1.25rem !important;
    margin-bottom: 10px !important;
    text-align: right !important;
    line-height: 1.5 !important;
    white-space: normal !important;
  }
  .hero p {
    font-size: 1rem !important;
    padding: 7px 10px !important;
    margin-bottom: 14px !important;
    text-align: right !important;
  }
  .hero .cta-btn, .hero a.cta-btn {
    width: 100%;
    display: block;
    font-size: 1rem !important;
    padding: 10px 0 !important;
    text-align: center;
    margin: 0 auto;
  }
}
/* --- End Header RTL Flex Layout FINAL --- */ 

/* Hamburger menu styles */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px;
  z-index: 1002;
}
@media (max-width: 700px) {
  .hamburger-btn {
    display: flex;
    position: absolute;
    right: 18px;
    top: 18px;
  }
  .header-container {
    position: relative;
  }
  .header-container nav {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 32px #1a237e22;
    border-radius: 0 0 18px 18px;
    padding: 18px 0 12px 0;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(.4,1.5,.3,1);
  }
  .header-container nav.open {
    display: flex;
  }
  .header-container nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: center;
  }
  .header-container nav ul li a {
    font-size: 1.15rem;
    color: #1a237e;
    padding: 8px 0;
    display: block;
    width: 100%;
    text-align: center;
  }
  .logo {
    justify-content: center;
    width: 100%;
  }
} 