/* clean.css */

/* Global body */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #fff;
  line-height: 1.6;
}

/* Top Bar Header (full-width gray background) */
.top-bar {
  background-color: #f0f0f0; /* Light gray background */
  color: #000;
  padding: 0; /* no extra padding so navbar aligns cleanly */
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ccc;
}

/* Navbar container (aligned with english-section) */
.navbar {
  max-width: 90%;              /* same width as .english-section */
  margin: 0 auto;              /* center horizontally */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 0;             /* vertical padding only */
  box-sizing: border-box;
}

/* 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: Arial, sans-serif;
  font-size: 1.6em;
  margin: 15px 0;
}

/* English section (main content) */
.english-section {
  font-family: Arial, sans-serif;
  text-align: left;
  background-color: #fff;
  padding: 20px;
  margin: 0 auto;
  max-width: 90%; /* responsive max width for large screens */
  border: 1px solid #aaa;
  box-sizing: border-box;
}

/* English text inside the section */
.etext {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  margin: 10px 0;
}

.atext {
  direction: rtl !important;
  unicode-bidi: bidi-override !important;
  text-align: right !important;
  font-family: "Amiri", "Scheherazade", serif;
  display: block; /* ensures proper paragraph flow */
}

.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;                     /* link color */
  font-weight: 500;
  margin: 0 20px;                     /* spacing between links */
  font-size: 1em;
  transition: color 0.3s ease, transform 0.3s ease; /* smooth transition */
}

.bottom-links a:hover {
  color: #0056b3;                     /* darker color on hover */
  transform: scale(1.05);             /* small scale effect */
}

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

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

  .english-text {
    font-size: 15px;
  }

  .bottom-links a {
    margin: 0 10px; /* smaller spacing on mobile */
  }
}
