/* clean-persian.css */

/* Global body */
body {
  margin: 0;
  padding: 0;
  font-family: 'BahijNaskh', 'Tahoma', sans-serif; /* Persian-friendly fonts */
  background-color: #fff;
  line-height: 1.8;
  direction: rtl; /* Right-to-left text */
}

/* Header */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-bottom: 2px solid #ddd;
  padding: 10px;
  text-align: center;
  flex-wrap: wrap;
}

.header-img {
  width: 90px;
  height: auto;
  border-radius: 6px;
}

.quran-verse {
  font-size: 1.4em;
  font-family: 'Amiri', 'Scheherazade New', serif;
  color: #d4af37; /* Gold */
  text-align: center;
  flex: 1;
  padding: 0 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  direction: rtl;
  line-height: 1.8;
}

/* Top Navbar */
.top-nav {
  background-color: #222;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 0;
}

.top-nav a {
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.3s;
}

.top-nav a:hover {
  background-color: #555;
}


/* Hamburger Icon Button */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #003366;
  cursor: pointer;
  display: none;
}

/* Nav Links Container */
.nav-links {
  display: flex;
  gap: 10px;
  background-color: transparent; /* match top bar */
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

/* Individual Link Styling */
.nav-links a {
  color: #000;
  text-decoration: none;
  font-size: 1em;
  padding: 0.5em 1em;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.nav-links a:hover {
  background-color: #eee;
}

.nav-links a i {
  margin-left: 5px;
  margin-right: 0;
}

/* Page title (centered number) */
.page-title {
  text-align: center;
  font-family: 'BahijNaskh', sans-serif;
  font-size: 1.6em;
  margin: 15px 0;
}

/* Persian section (main content) */
.persian-section {
  font-family: 'BahijNaskh', 'Tahoma', sans-serif;
  text-align: right;
  background-color: #fff;
  padding: 20px;
  margin: 0 auto;
  width: 90%;   /* full width on PC */
  border: 1px solid #aaa;
  box-sizing: border-box;
}

/* Persian text inside the section */
.ftext {
  font-family: 'BahijNaskh', 'Tahoma', sans-serif;
  font-size: 18px;
  color: #333;
  margin: 10px 0;
  line-height: 2;
  text-align: right;
}

figure {
  margin: 0 auto 20px auto; /* Center the block */
  display: inline-block;    /* Keep image + caption together */
  text-align: center;       /* Center caption text */
}

figure img {
  max-width: 100%; /* Responsive */
  height: auto;
  display: block;
  margin: 0 auto;  /* Center the image */
}

figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  font-style: italic;
  text-align: center;
}

/* Bottom navigation links */
.bottom-links {
  text-align: center;
  padding: 12px 0;
  background-color: #fff;
  border: 1px solid #aaa;
  border-top: none;
  box-sizing: border-box;
  margin: 0 auto;
  width: 90%;   /* same full width as persian-section */
}

.bottom-links a {
  text-decoration: none !important;  /* remove underline */
  color: #007BFF;
  font-weight: 500;
  margin: 0 20px;
  font-size: 1em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.bottom-links a:hover {
  color: #0056b3;
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .persian-section {
    padding: 15px;
    margin: 0 10px;
  }

  .page-title {
    font-size: 1.4em;
  }

  .persian-text {
    font-size: 16px;
  }

  .bottom-links {
    margin: 0 10px;
  }

  .bottom-links a {
    margin: 0 10px;
  }
}
