/* Fonts and Base Styles */
body {
  font-family: 'BahijNaskh','Amiri', serif;
  background-color: #f7f7f7;
  margin: 0;
  padding: 0;
  color: #222;
  direction: rtl;
}

/* Remove underline from all hyperlinks */
a {
  text-decoration: none;
}

/* Navbar */
.navbar {
  background-color: #111;
  display: flex;
  justify-content: flex-end;
  padding: 0.8em 1em;
  flex-wrap: wrap;
}

.nav-item {
  color: white;
  margin-left: 1em;
  font-size: 1.4em;
}

/* Quick Links */
.links {
  text-align: center;
  padding: 1em;
  font-size: 1.1em;
  line-height: 2em;
}

.links a {
  display: inline-block;
  margin: 0.4em 1em;
  color: #005577;
  font-weight: bold;
}

.links a:hover {
  color: #003344;
}
a {
  text-decoration: none;
}

.nav-links a {
  text-decoration: none;
  /* other existing styles */
}

.bottom-links a {
  text-decoration: none;
  color: #000;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 1.8em;
  margin-top: 1em;
  color: #333;
}

/* Table Container */
.table-container {
  width: 100%;
  overflow-x: auto;
  direction: ltr; /* Important for scroll behavior on RTL */
  padding: 1em;
}

/* Table Styles */
table {
  direction: rtl; /* Maintains RTL content alignment */
  border-collapse: collapse;
  min-width: 720px; /* Forces all 6 columns to show */
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 1em;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.8em;
  text-align: center;
  white-space: nowrap;
}

th {
  background-color: #f0f0f0;
  color: #333;
}

tr:hover {
  background-color: #f9f9f9;
}

.surah-link {
  color: #007bff;
  font-weight: bold;
}

.surah-link:hover {
  text-decoration: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1em;
  background-color: #eee;
  font-size: 1em;
}

.nav-link {
  margin: 0 1em;
  color: #444;
}

.nav-link:hover {
  color: #000;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar {
    justify-content: center;
  }

  .nav-item {
    font-size: 1.2em;
    margin: 0.5em;
  }

  .section-title {
    font-size: 1.5em;
  }

  .links {
    font-size: 1em;
  }

  table {
    font-size: 0.95em;
  }

  .table-container {
    padding: 0.5em;
  }
}

@media (max-width: 480px) {
  .nav-item {
    font-size: 1em;
  }

  .links {
    font-size: 0.95em;
  }

  table {
    font-size: 0.9em;
  }
}