body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

h1,
h2,
h3 {
  color: #2c3e50;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  border-bottom: 2px solid #2980b9;
  padding-bottom: 10px;
}

h2 {
  font-size: 1.75em;
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #bdc3c7;
  padding-bottom: 5px;
}

h3 {
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 5px;
  color: #2980b9;
}

p {
  margin: 10px 0;
  line-height: 1.6;
}

a {
  color: #2980b9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.toggle-container {
  overflow: hidden;
  margin-bottom: 20px;
  text-align: right;
}

.toggle-button {
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #2980b9;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1em;
  margin-left: 10px;
}

.toggle-button:hover {
  background-color: #3498db;
}

#english-button {
  float: left;
}

#arabic-button {
  float: right;
}

@media (max-width: 600px) {
  .container {
      padding: 15px;
  }

  h1 {
      font-size: 2em;
  }

  h2 {
      font-size: 1.5em;
  }

  h3 {
      font-size: 1.25em;
  }
}

/* RTL/LTR Specific Styling */
[dir="rtl"] {
  text-align: right;
  unicode-bidi: bidi-override;
}

[dir="ltr"] {
  text-align: left;
  unicode-bidi: bidi-override;
}

/* Fix for Arabic content with English text */
[dir="rtl"] p {
  text-align: right;
  direction: rtl;
  unicode-bidi: embed;
}

/* Ensure proper button placement */
.arabic-content .toggle-container {
  text-align: left;
}

.english-content .toggle-container {
  text-align: right;
}