/* General body styling */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Top navigation bar */
.top-bar {
  background-color: #222;
  padding: 0.8em 1em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-item {
  color: white;
  margin: 0.5em 1em;
  text-decoration: none;
  font-size: 1em;
}

.nav-item:hover {
  color: #ffcc00;
}

.nav-link {
  font-weight: bold;
}
a {
  text-decoration: none;
}

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

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

/* Main content container */
.container {
  max-width: 90%; /* Changed from 1000px to 90% */
  margin: 2em auto;
  padding: 0 1em;
}

/* Intro section */
.intro p {
  font-size: 1em;
  line-height: 1.6;
}

.intro h2 {
  font-size: 1.5em;
  margin-top: 1em;
  color: #0056b3;
  border-bottom: 2px solid #ccc;
  display: inline-block;
  padding-bottom: 5px;
}

/* Surah table styling */
.table-responsive {
  overflow-x: auto;
}

.surah-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  border: 2px solid #444;
}

.surah-table th,
.surah-table td {
  border: 1px solid #444;
  padding: 0.75em;
  text-align: left;
}

.surah-table th {
  background-color: #e9ecef;
  color: #222;
  font-weight: bold;
}

.surah-table a {
  color: #007bff;
  text-decoration: none;
}

.surah-table a:hover {
  text-decoration: underline;
}

/* Footer section */
.footer {
  text-align: center;
  margin: 2em 0;
}

.footer-link {
  margin: 0 1em;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.footer-link:hover {
  color: #0056b3;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #222;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-item {
    padding: 0.5em 1em;
    width: 100%;
    border-top: 1px solid #444;
  }

  .nav-item:first-child {
    border-top: none;
  }

  .surah-table th,
  .surah-table td {
    font-size: 0.9em;
  }
}
