:root {
  --primary-blue: #0d6efd;
  --secondary-blue: #0a58ca;
  --light-blue-bg: #f7faff;
  --accent-gradient: linear-gradient(45deg, #0dcaf0, #0d6efd);
  --dark-text: #212529;
  --light-text: #6c757d;
  --background-color: #fdfdff;
  --card-background: #ffffff;
  --shadow-color: rgba(13, 110, 253, 0.1);
  --font-family: "Vazirmatn", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--dark-text);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 20px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 40px;
  color: var(--dark-text);
  border-radius: 20px;
  background-color: var(--card-background);
  box-shadow: 0 15px 50px var(--shadow-color);
  margin-bottom: 50px;
}

.hero-content {
  max-width: 55%;
  text-align: right;
}

.hero-image-container {
  flex-shrink: 0;
}

.hero-image {
  max-width: 350px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(13, 110, 253, 0.2);
  animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.logo {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--light-text);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.btn {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 14px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.4);
}

.section {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 5px;
  background: var(--accent-gradient);
  bottom: -15px;
  right: 50%;
  transform: translateX(50%);
  border-radius: 3px;
}

.card {
  background: var(--card-background);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 40px var(--shadow-color);
  transition: all 0.3s ease-in-out;
  border: 1px solid #f0f0f0;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(13, 110, 253, 0.2);
  border-color: var(--primary-blue);
}

.card h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.card h3 i {
  margin-left: 10px;
  color: var(--primary-blue);
}

.card ul {
  list-style-type: none;
}

.card li {
  position: relative;
  padding-right: 25px;
  margin-bottom: 12px;
}

.card li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-blue);
  position: absolute;
  right: 0;
  top: 5px;
}

.grid-container {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.qa-item {
  background: var(--card-background);
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: 0 5px 25px var(--shadow-color);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.qa-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 35px rgba(13, 110, 253, 0.15);
}

.qa-item summary {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 20px 25px;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: var(--primary-blue);
}

.qa-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.qa-item p {
  padding: 0 25px 20px;
  line-height: 1.9;
  color: var(--light-text);
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  margin-top: 30px;
}
.map-container iframe {
  display: block;
  border: none;
}

@media (min-width: 992px) {
  #why-french .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 1rem 15px;
  }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 30px 15px;
    gap: 25px;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-image-container {
    margin-bottom: 0;
  }
  .hero-image {
    width: 100%;
    max-width: 260px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section {
    padding: 40px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.9rem;
    margin-bottom: 40px;
  }
  .card {
    padding: 20px;
  }
  .card h3 {
    font-size: 1.4rem;
  }
  #contact h3 {
    font-size: 1.5rem;
  }
}
