/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles */
body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2563eb;
  padding: 1rem 2rem;
  color: white;
  flex-wrap: wrap;
  position: relative;
}

.navbar .logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
}

.lang-switch {
  background: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #e0f2fe;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-img {
  max-width: 100%;
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  height: auto;
  display: block;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-text h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: #475569;
}

/* Highlights */
.highlights {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 3rem 2rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #2563eb;
}

.card img {
  width: 75px;
  height: 75px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* iframe responsiveness */
iframe {
  max-width: 100%;
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 12px;
}

/* Footer */
footer {
  background: #2563eb;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Tablet adjustments (768px and below) */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    order: 3;
    background: #1e40af;
    padding: 1rem 0;
    border-radius: 8px;
    margin-top: 1rem;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem;
  }

  .lang-switch {
    order: 2;
  }

  .hero {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }

  .hero-img {
    max-width: 100%;
    margin: 0 0 1.5rem 0;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .highlights {
    grid-template-columns: 1fr;
    margin: 2rem 1rem;
    gap: 1.5rem;
  }

  iframe {
    height: 350px;
  }
}

/* Mobile adjustments (480px and below) */
@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem;
  }

  .logo {
    font-size: 1rem;
  }

  .lang-switch {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 1rem 0.75rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text h2 {
    font-size: 1.3rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.95rem;
  }

  iframe {
    height: 300px;
  }

  footer {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

/* RTL support for Persian */
[dir="rtl"] .hero {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  [dir="rtl"] .nav-links {
    flex-direction: column;
  }
}

/* List styling */
ul {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

[dir="rtl"] ul {
  padding-right: 1.5rem;
  padding-left: 0;
}

li {
  margin-bottom: 0.5rem;
}