body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.4; /* slightly increased for readability */
  background-color: #f4f6f9;
  color: #2d3436;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Container centered and responsive */
.container {
  max-width: 900px;
  margin: 60px auto; /* centers horizontally */
  background: #ffffff;
  padding: 50px 60px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  animation: fadeIn 1.2s ease-in-out;
  box-sizing: border-box;
}

/* Headings */
h1,
h2,
h3 {
  color: #2c3e50;
  font-weight: 600;
  margin-top: 20px;
}

h1 {
  font-size: 2.4em;
  margin-bottom: 25px;
  border-bottom: 3px solid green;
  padding-bottom: 10px;
  text-align: center; /* optional: center h1 on all screens */
}

h2 {
  font-size: 1.8em;
  margin-top: 40px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
}

h3 {
  font-size: 1.3em;
  margin-top: 25px;
}

/* Paragraphs & Lists */
p,
li {
  font-size: 1.06em;
  margin-bottom: 12px;
}

ul,
ol {
  padding-left: 25px;
  margin-top: 10px;
}

.section {
  margin-bottom: 50px;
}

/* Smooth Fade-In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animation (optional, needs JS or AOS lib) */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .container {
    padding: 45px 40px;
  }

  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.6em;
  }
}

@media screen and (max-width: 992px) {
  .container {
    padding: 40px 35px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 30px 25px;
    margin: 40px 15px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.4em;
  }

  p,
  li {
    font-size: 1em;
  }
}

@media screen and (max-width: 576px) {
  .container {
    padding: 25px 15px;
    margin: 30px 10px;
  }

  h1 {
    font-size: 1.6em;
  }

  h2 {
    font-size: 1.2em;
  }

  h3 {
    font-size: 1.1em;
  }

  p,
  li {
    font-size: 0.95em;
  }
}

/* Optional Section Divider */
hr {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 40px 0;
}

/* Link Styling */
a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1d6fa5;
}

h1,
h2,
h3 {
  color: #2c3e50;
  font-weight: 600;
  margin-top: 20px;
}

h1 {
  font-size: 2.4em;
  margin-bottom: 25px;
  border-bottom: 3px solid green;
  padding-bottom: 10px;
  text-align: center;
}

h2 {
  font-size: 1.8em;
  margin-top: 40px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
}

h3 {
  font-size: 1.3em;
  margin-top: 25px;
}

p,
li {
  font-size: 1.06em;
  margin-bottom: 12px;
}

ul,
ol {
  padding-left: 25px;
  margin-top: 10px;
}

.section {
  margin-bottom: 50px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: none;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1d6fa5;
}

.note {
  background-color: #e8f4f8;
  border-left: 5px solid #3498db;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

/* --- NEW STYLES FOR LANGUAGE SWITCHER --- */

.lang-switcher-container {
  display: flex;
  justify-content: center;
  padding: 20px 0 0 0;
  background-color: #f4f6f9;
}

.lang-btn {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
  padding: 10px 25px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.lang-btn:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.lang-btn.active {
  background-color: green;
  color: white;
  border-color: green;
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.2);
}

.hidden {
  display: none;
}

/* --- URDU STYLES --- */
.urdu-text {
  direction: rtl;
  font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", sans-serif;
  text-align: right;
}

.urdu-text h1,
.urdu-text h2,
.urdu-text h3,
.urdu-text p,
.urdu-text li {
  text-align: right;
}

.urdu-text ul,
.urdu-text ol {
  padding-left: 0;
  padding-right: 25px; /* RTL padding */
}

.urdu-text .note {
  border-left: none;
  border-right: 5px solid #3498db; /* RTL border */
}

/* --- RESPONSIVE STYLES --- */
@media screen and (max-width: 768px) {
  .container {
    padding: 30px 25px;
    margin: 20px 15px 40px 15px;
  }
  h1 {
    font-size: 1.8em;
  }
  h2 {
    font-size: 1.4em;
  }
  p,
  li {
    font-size: 1em;
  }
}

@media screen and (max-width: 576px) {
  .container {
    padding: 25px 15px;
    margin: 20px 10px 30px 10px;
  }
  h1 {
    font-size: 1.6em;
  }
  h2 {
    font-size: 1.2em;
  }
  p,
  li {
    font-size: 0.95em;
  }
}
