/* Women Modal Overlay and Content Styles */

.women-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgb(0 0 0 / 50%);
}

.women-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 24px;
  border-radius: 12px;
  max-width: 700px;
  width: 90vw;
  box-shadow: 0 4px 24px rgb(0 0 0 / 12%);
}

/* Match event-item style to content-item for consistency */

.event-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.event-item:last-child {
  border-bottom: none;
}

.event-item h3 {
  color: #2c3e50;
  font-size: 16px;
  margin-bottom: 5px;
}

.event-item .meta {
  color: #7f8c8d;
  font-size: 14px;
}

.event-item a {
  text-decoration: none;
  color: #2c3e50;
  transition: color 0.3s;
}

.event-item a:hover {
  color: #3498db;
}

/* Poem Modal Styles for اسلام او ښځه */

.poem-header {
  text-align: center;
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 10px;
}

.poem-author {
  text-align: center;
  font-size: 1.2em;
  color: #555;
  margin-bottom: 30px;
}

.poem {
  max-width: 800px;
  background: #fff;
  padding: 40px;
  margin: auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 5%);
  font-size: 1.2em;
}

@media (width <= 600px) {
  .poem {
    padding: 16px;
    font-size: 1em;
    border-radius: 8px;
  }

  .poem-header {
    font-size: 1.1em;
    margin-bottom: 6px;
  }

  .poem-author {
    font-size: 1em;
    margin-bottom: 16px;
  }

  .verse {
    font-size: 0.95em;
    margin: 8px 0;
  }

  .meta {
    font-size: 0.95em;
    margin-bottom: 8px;
  }
}

.verse {
  margin: 12px 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  direction: rtl;
}

/* Header */

.header {
  background: #fff;
  box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
}

.header-top {
  background: #2c3e50;
  color: white;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
}

.typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typewriter 6s steps(60) 0.5s 1 normal both;
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 40px;
  gap: 48px;
}

.right-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 0;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #666;
  font-size: 16px;
  line-height: 1;
}

.icon-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.contact-link a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #666;
  font-size: 16px;
  transition: color 0.3s;
}

.contact-link a:hover {
  color: #3498db;
}

.contact-link a:hover svg {
  stroke: #3498db;
}

.home-link a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #666;
  font-size: 16px;
  transition: color 0.3s;
}

.home-link a:hover {
  color: #3498db;
}

.home-link a:hover svg {
  stroke: #3498db;
}

.language-link {
  position: relative;
}

.language-link a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #666;
  font-size: 16px;
  transition: color 0.3s;
  cursor: pointer;
}

.language-link a:hover {
  color: #3498db;
}

.language-link a:hover svg {
  stroke: #3498db;
}

.language-menu {
  display: none;
  position: absolute;
  top: calc(100% - 5px);
  right: 0;
  background: white;
  min-width: 150px;
  list-style: none;
  padding: 15px 0 10px;
  margin-top: 0;
  z-index: 10000;
  box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
  border-radius: 4px;
  pointer-events: auto;
}

.language-link:hover .language-menu,
.language-menu:hover,
.language-menu.show {
  display: block;
}

.language-menu li {
  padding: 0;
  pointer-events: auto;
}

.language-menu a {
  display: block;
  padding: 10px 20px;
  color: #2c3e50;
  text-decoration: none;
  transition:
    background 0.3s,
    color 0.3s;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.language-menu a:hover {
  color: #3498db;
  background: #f8f9fa;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 5px 10px;
  background: white;
  transition: border-color 0.3s;
}

.search-box:focus-within {
  border-color: #3498db;
}

.search-box input {
  border: none;
  outline: none;
  padding: 5px;
  font-size: 14px;
  width: 150px;
  background: transparent;
  direction: rtl;
}

.search-box input::placeholder {
  color: #999;
  direction: rtl;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.search-box button:hover {
  transform: scale(1.1);
}

.search-box button:hover svg {
  stroke: #3498db;
}

.logo {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  text-decoration: none;
  color: #2c3e50;
  font-size: 16px;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #3498db;
}

/* Dropdown Menu */

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 300px;
  list-style: none;
  padding: 10px 0;
  margin-top: 0;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
  border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
  text-align: center;
}

.dropdown-menu a:hover {
  color: #3498db;
  background: #f8f9fa;
}

.articles-dropdown .dropdown-menu {
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Hero Section */

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 32px 40px;
  text-align: center;
}

.hero h1 {
  font-size: 19px;
  margin-bottom: 20px;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 16px;
  max-width: 400px;
  margin: 0 auto;
}

/* Main Content */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.section-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 8%);
}

.section-card h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 24px;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
}

.content-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.content-item:last-child {
  border-bottom: none;
}

.content-item h3 {
  color: #2c3e50;
  font-size: 16px;
  margin-bottom: 5px;
}

.content-item .meta {
  color: #7f8c8d;
  font-size: 14px;
}

.content-item a {
  text-decoration: none;
  color: #2c3e50;
  transition: color 0.3s;
}

.content-item a:hover {
  color: #3498db;
}

.more-link {
  display: inline-block;
  margin-top: 15px;
  color: #3498db;
  text-decoration: none;
  font-weight: 700;
}

.more-link:hover {
  text-decoration: underline;
}

/* Unified archive reading format (matches raya-style reading rhythm) */

.archive-reading {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 36px;
  padding-top: 64px;
  position: relative;
  box-shadow: 0 4px 12px rgb(0 0 0 / 5%);
}

.archive-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  position: absolute;
  top: 16px;
  left: 16px;
  border: 1px solid #d7dde4;
  border-radius: 999px;
  color: #2c3e50;
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.archive-close-btn:hover {
  background: #f1f4f7;
  border-color: #bfc9d4;
  color: #2c3e50;
}

.archive-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid #d7dde4;
  border-radius: 999px;
  background: #fff;
  color: #2c3e50;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.archive-share-btn svg {
  width: 17px;
  height: 17px;
}

.archive-share-btn:hover {
  background: #f1f4f7;
  border-color: #bfc9d4;
  color: #2c3e50;
}

.archive-share-btn.copied {
  border-color: #9cc6ae;
  background: #edf7f0;
  color: #1f6f43;
}

.archive-reading h1 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 14px;
  color: #2c3e50;
}

html[lang="ar"] .archive-reading h1 {
  font-size: 2rem;
  line-height: 1.55;
  letter-spacing: 0;
}

html[lang="ps"] .archive-reading h1 {
  font-size: 1.82rem;
  line-height: 1.7;
}

.archive-reading .meta {
  text-align: center;
  color: #666;
  margin-bottom: 18px;
}

.archive-reading p,
.archive-reading li,
.archive-reading blockquote,
.archive-reading .verse,
.archive-reading .poem-line {
  line-height: 2;
  font-size: 1.08rem;
}

html[lang="ar"] .archive-reading p,
html[lang="ar"] .archive-reading li,
html[lang="ar"] .archive-reading blockquote {
  line-height: 2.05;
}

html[lang="ps"] .archive-reading p,
html[lang="ps"] .archive-reading li,
html[lang="ps"] .archive-reading blockquote {
  line-height: 2;
}

.archive-reading blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-right: 3px solid #d0d9e2;
  background: #f7f9fb;
  border-radius: 8px;
}

html[lang="ar"] .archive-reading blockquote {
  padding: 12px 16px;
  border-right-width: 4px;
  line-height: 2.1;
}

html[lang="ps"] .archive-reading blockquote {
  padding: 10px 14px;
  border-right-width: 3px;
  line-height: 2;
}

.archive-reading ul {
  margin: 12px 0;
  padding-right: 24px;
}

.archive-reading li {
  margin: 8px 0;
}

.archive-reading hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #e5e8eb;
}

.archive-reading .poem-header {
  margin-bottom: 12px;
}

.archive-reading .poem-intro-container {
  margin: 0 auto 16px;
  max-width: 820px;
  line-height: 1.9;
}

/* Prose-focused refinement */

.archive-prose p,
.archive-prose li {
  max-width: 74ch;
  margin-inline: auto;
}

.archive-prose blockquote {
  max-width: 74ch;
  margin: 14px auto;
}

.archive-prose hr {
  max-width: 74ch;
  margin: 20px auto;
}

/* English magazine reading layout */

.archive-reading.english-article {
  direction: ltr;
  text-align: left;
}

.archive-reading.english-article .archive-close-btn {
  left: 16px;
  right: auto;
}

.archive-reading.english-article h1,
.archive-reading.english-article .meta {
  text-align: left;
}

.archive-reading.archive-magazine.english-article {
  max-width: 980px;
  padding: 40px 44px;
  padding-top: 64px;
}

.archive-reading.archive-magazine.english-article p,
.archive-reading.archive-magazine.english-article li,
.archive-reading.archive-magazine.english-article blockquote {
  max-width: 72ch;
  margin-inline: auto;
  line-height: 1.9;
  text-align: left;
}

.archive-reading.archive-magazine.english-article p {
  margin-bottom: 1rem;
}

.archive-reading.archive-magazine.english-article p.standfirst {
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.archive-reading.archive-magazine.english-article p.standfirst::first-letter {
  float: left;
  font-size: 3rem;
  line-height: 0.9;
  margin-right: 8px;
  font-weight: 700;
}

.archive-reading.archive-magazine.english-article blockquote {
  border-right: 0;
  border-left: 3px solid #d0d9e2;
  padding: 10px 14px;
}

.archive-reading.archive-magazine.english-article ul {
  padding-right: 0;
  padding-left: 24px;
}

/* Poem-focused refinement */

.archive-poem .poem {
  max-width: 880px;
  margin: 0 auto;
}

.archive-poem .poem-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  column-gap: 48px;
  margin: 10px 0;
}

.archive-poem .right-hemistich,
.archive-poem .left-hemistich {
  display: block;
  flex: 1 1 50%;
  text-align: justify;
  text-align-last: justify;
}

.archive-poem .right-hemistich::after,
.archive-poem .left-hemistich::after {
  content: "";
  display: inline-block;
  width: 100%;
}

@media (width <= 600px) {
  .archive-reading {
    padding: 18px;
    padding-top: 56px;
    border-radius: 10px;
  }

  .archive-close-btn {
    width: 34px;
    height: 34px;
    top: 12px;
    left: 12px;
    font-size: 1.2rem;
  }

  .archive-share-btn {
    width: 34px;
    height: 34px;
    top: 12px;
    right: 12px;
  }

  .archive-reading h1 {
    font-size: 1.35rem;
  }

  html[lang="ar"] .archive-reading h1 {
    font-size: 1.4rem;
  }

  html[lang="ps"] .archive-reading h1 {
    font-size: 1.3rem;
  }

  .archive-reading p,
  .archive-reading li,
  .archive-reading blockquote,
  .archive-reading .verse,
  .archive-reading .poem-line {
    font-size: 1rem;
    line-height: 1.85;
  }

  .archive-prose p,
  .archive-prose li {
    max-width: 100%;
  }

  html[lang="ar"] .archive-reading blockquote,
  html[lang="ps"] .archive-reading blockquote {
    padding: 10px 12px;
    border-right-width: 3px;
  }

  .archive-poem .poem-line {
    display: block;
    margin: 8px 0;
  }

  .archive-poem .left-hemistich {
    display: block;
    text-align: right;
  }
}

/* Footer */

.footer {
  background: #2c3e50;
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

.social-links {
  margin: 20px 0;
}

.social-links a {
  color: white;
  margin: 0 10px;
  font-size: 24px;
  text-decoration: none;
}

.social-links a:hover {
  color: #3498db;
}

/* Responsive */
@media (width <= 768px) {
  .nav-container {
    flex-direction: column;
    gap: 20px;
  }

  .main-nav {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0 0 0 / 50%);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  direction: rtl;
}

.close {
  color: #aaa;
  float: left;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #2c3e50;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #2980b9;
}

.error-message {
  display: block;
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  min-height: 20px;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #e74c3c;
  background-color: #fee;
}

/* Marifat Modal */

.marifat-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0 0 0 / 80%);
}

.marifat-modal-content {
  background-color: #fff;
  margin: 2% auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  border-radius: 8px;
  position: relative;
}

.marifat-close {
  color: #aaa;
  position: absolute;
  top: 15px;
  left: 25px;
  font-size: 35px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2001;
}

.marifat-close:hover,
.marifat-close:focus {
  color: #000;
}

.marifat-body {
  font-family: "Traditional Arabic", "Arabic Typesetting", "Simplified Arabic", Arial, sans-serif;
  line-height: 2;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #fff;
  direction: rtl;
}

.marifat-body h1 {
  text-align: center;
  color: #1a472a;
  font-size: 32px;
  margin-bottom: 10px;
  border-bottom: 3px solid #1a472a;
  padding-bottom: 15px;
}

.marifat-body h2 {
  text-align: center;
  color: #2d5f3d;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 400;
}

.marifat-body .hadith {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #8b4513;
  margin: 30px 0;
  padding: 20px;
  background: #f9f5f0;
  border-right: 5px solid #8b4513;
  border-left: 5px solid #8b4513;
}

.marifat-body hr {
  border: none;
  border-top: 2px solid #ccc;
  margin: 30px 0;
}

.marifat-body p {
  text-align: justify;
  font-size: 18px;
  margin-bottom: 20px;
  text-indent: 30px;
}

.marifat-body .question {
  font-weight: 700;
  color: #8b0000;
  font-size: 20px;
  margin: 15px 0;
  text-indent: 0;
  padding-right: 20px;
}

.marifat-body .closing {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #1a472a;
  margin-top: 40px;
  padding: 20px;
  background: #f0f8f0;
  border-radius: 10px;
}

/* Ahdaf Modal */

.ahdaf-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0 0 0 / 60%);
}

.ahdaf-modal-content {
  background-color: #fefefe;
  margin: 2% auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
  border-radius: 8px;
}

.ahdaf-close {
  color: #aaa;
  float: left;
  font-size: 32px;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
}

.ahdaf-close:hover,
.ahdaf-close:focus {
  color: #000;
}

.ahdaf-body {
  font-family: "Traditional Arabic", "Arabic Typesetting", "Simplified Arabic", Arial, sans-serif;
  line-height: 1.8;
  color: #2c3e50;
  max-width: 850px;
  margin: 0 auto;
  padding: 30px 20px;
  background: #fff;
  direction: rtl;
}

.ahdaf-body .header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px double #2c5282;
}

.ahdaf-body .bismillah {
  font-size: 24px;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 15px;
}

.ahdaf-body .praise {
  font-size: 16px;
  color: #2d3748;
  margin-bottom: 15px;
}

.ahdaf-body .verse {
  font-size: 20px;
  font-weight: 700;
  color: #744210;
  background: #fef5e7;
  padding: 15px;
  border-right: 4px solid #d4a574;
  border-left: 4px solid #d4a574;
  margin: 20px 0;
}

.ahdaf-body h1 {
  text-align: center;
  color: #1a365d;
  font-size: 28px;
  margin: 30px 0 20px;
  padding: 15px;
  background: linear-gradient(to right, #e6f2ff, #fff, #e6f2ff);
  border-right: 5px solid #2c5282;
  border-left: 5px solid #2c5282;
}

.ahdaf-body h2 {
  color: #2c5282;
  font-size: 22px;
  margin: 25px 0 15px;
  padding-right: 15px;
  border-right: 4px solid #4a90e2;
}

.ahdaf-body h3 {
  color: #2d5f3d;
  font-size: 20px;
  margin: 20px 0 10px;
  font-weight: 700;
}

.ahdaf-body p {
  text-align: justify;
  font-size: 17px;
  margin-bottom: 15px;
  line-height: 2;
}

.ahdaf-body .section {
  margin: 25px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.ahdaf-body .numbered-point {
  background: #fff;
  padding: 15px;
  margin: 15px 0;
  border-right: 3px solid #4a90e2;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

.ahdaf-body .quote {
  font-style: italic;
  color: #555;
  padding: 15px;
  background: #f0f4f8;
  border-right: 3px solid #718096;
  margin: 15px 0;
}

.ahdaf-body .footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  border-top: 2px solid #cbd5e0;
  color: #2c3e50;
  background: #f8f9fa;
  border-radius: 8px;
}

.ahdaf-body .contact {
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.6;
}

/* Dalaa Modal */

.dalaa-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0 0 0 / 60%);
}

.dalaa-modal-content {
  background-color: #fefefe;
  margin: 2% auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
  border-radius: 8px;
}

.dalaa-close {
  color: #aaa;
  float: left;
  font-size: 32px;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
}

.dalaa-close:hover,
.dalaa-close:focus {
  color: #000;
}

.dalaa-body {
  font-family: "Traditional Arabic", "Arabic Typesetting", "Simplified Arabic", Arial, sans-serif;
  line-height: 1.8;
  color: #2c3e50;
  max-width: 850px;
  margin: 0 auto;
  padding: 30px 20px;
  background: #fff;
  direction: rtl;
}

.dalaa-body .header {
  margin-bottom: 25px;
}

.dalaa-body h1 {
  text-align: center;
  color: #8b4789;
  font-size: 32px;
  margin-bottom: 10px;
  border-bottom: 3px solid #8b4789;
  padding-bottom: 15px;
}

.dalaa-body .meta {
  text-align: center;
  font-size: 15px;
  color: #666;
  margin-top: 10px;
}

.dalaa-body .lead {
  font-size: 19px;
  margin: 20px 0;
  color: #555;
  line-height: 2;
  text-align: justify;
}

.dalaa-body h2 {
  color: #8b4789;
  font-size: 24px;
  margin: 20px 0 15px;
  padding-right: 15px;
  border-right: 4px solid #c97bc5;
}

.dalaa-body h3 {
  color: #8b4789;
  font-size: 22px;
  margin: 25px 0 15px;
  padding-right: 15px;
  border-right: 4px solid #c97bc5;
}

.dalaa-body p {
  text-align: justify;
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 2;
}

.dalaa-body hr {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 2rem 0;
}

.dalaa-body .section {
  margin: 25px 0;
  padding: 20px;
  background: #fef5fe;
  border-radius: 8px;
}

.dalaa-body .quote {
  color: #555;
  padding: 15px;
  background: #fff0f5;
  border-right: 4px solid #d6b45c;
  margin: 15px 0;
  border-radius: 6px;
  line-height: 1.9;
  font-style: italic;
}

.dalaa-body .footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  border-top: 2px solid #cbd5e0;
  color: #2c3e50;
  background: #f8f9fa;
  border-radius: 8px;
}

.dalaa-body .contact {
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.6;
}

/* Women Modal Styles */

.women-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0 0 0 / 70%);
}

.women-modal-content {
  background-color: #fffdf8;
  margin: 3% auto;
  padding: 0;
  border: none;
  width: 90%;
  max-width: 850px;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgb(0 0 0 / 30%);
  position: relative;
}

.women-close {
  color: #6b2d90;
  position: absolute;
  top: 15px;
  left: 25px;
  font-size: 35px;
  font-weight: 700;
  cursor: pointer;
  z-index: 1001;
}

.women-close:hover,
.women-close:focus {
  color: #8b4789;
}

.women2-close {
  color: #6b2d90;
  position: absolute;
  top: 15px;
  left: 25px;
  font-size: 35px;
  font-weight: 700;
  cursor: pointer;
  z-index: 1001;
}

.women2-close:hover,
.women2-close:focus {
  color: #8b4789;
}

.islam-women-close {
  color: #6b2d90;
  position: absolute;
  top: 15px;
  left: 25px;
  font-size: 35px;
  font-weight: 700;
  cursor: pointer;
  z-index: 1001;
}

.islam-women-close:hover,
.islam-women-close:focus {
  color: #8b4789;
}

.women-body {
  max-width: 100%;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  direction: rtl;
  border-radius: 14px;
}

.women-body h1 {
  text-align: center;
  color: #6b2d90;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.women-body h2 {
  color: #6b2d90;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-right: 15px;
  border-right: 4px solid #c7a0e6;
}

.women-body .meta {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.women-body pre.poem {
  white-space: pre-wrap;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #fdf9ff;
  border: 1px solid #f0e9fb;
  padding: 1.5rem;
  border-radius: 10px;
  font-size: 1.1rem;
  line-height: 2;
  margin: 20px 0;
  text-align: justify;
  text-justify: distribute-all-lines;
}

.women-body .poem {
  background: #fdf9ff;
  border: 1px solid #f0e9fb;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 20px 0;
}

.women-body .poem-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  line-height: 2;
  font-size: 1.1rem;
  gap: 1rem;
}

.women-body .right-hemistich {
  text-align: right;
  flex: 1;
}

.women-body .left-hemistich {
  text-align: right;
  flex: 1;
}

.women-body blockquote {
  border-right: 4px solid #c7a0e6;
  background: #fbf7ff;
  margin: 1.5rem 0;
  padding: 0.8rem 1rem;
  font-style: italic;
  color: #4a3562;
  border-radius: 8px;
  line-height: 1.8;
}

.women-body hr {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 2rem 0;
}

.women-body .footer-note {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.women-body p {
  margin-bottom: 1.5rem;
  line-height: 2;
  text-align: justify;
  font-size: 1.05rem;
}

/* ---- extracted-inline-styles.css merged below ---- */

/* Extracted from inline style attributes in index.html */

.ext-css-1 {
  text-align: center;
  margin-bottom: 30px;
}
.ext-css-2 {
  color: #2a4d7a;
  font-size: 2em;
  margin-bottom: 10px;
}
.ext-css-3 {
  color: #666;
  font-size: 1em;
}
.ext-css-4 {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  line-height: 2.2;
  font-size: 1.15em;
  text-align: justify;
}
.ext-css-5 {
  margin-bottom: 20px;
}
.ext-css-6 {
  margin-bottom: 0;
  font-weight: 500;
  color: #2a4d7a;
}
.ext-css-7 {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: auto;
  font-size: 2em;
  font-weight: bold;
  color: #2a4d7a;
  letter-spacing: 2px;
}
.ext-css-8 {
  max-width: 600px;
  margin: 18px auto 24px auto;
  padding: 16px 20px;
  background: #eaf2fa;
  border-radius: 10px;
  text-align: center;
  color: #2a4d7a;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(42, 77, 122, 0.07);
  font-weight: bold;
}
.ext-css-9 {
  max-width: 3000px;
  background: #fff;
  padding: 8px 4px;
  margin: 4px auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  font-size: 0.6em;
}
.ext-css-10 {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.ext-css-11 {
  color: #2a4d7a;
  font-weight: 500;
}
.ext-css-12 {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 10px;
}
.ext-css-13 {
  color: #2a4d7a;
}
.ext-css-14 {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 10px;
}
.ext-css-15 {
  margin-top: 40px;
}
.ext-css-16 {
  justify-content: center;
  text-align: center;
  margin-top: 16px;
}
.ext-css-17 {
  width: 100%;
  font-weight: bold;
  color: #2a4d7a;
}
.ext-css-18 {
  text-align: center;
  margin-top: 8px;
  font-size: 0.95em;
  font-weight: bold;
  color: #bbb;
}
.ext-css-19 {
  text-align: center;
  margin-top: 24px;
  font-size: 1.2em;
  color: #6b4a2b;
  font-weight: bold;
}
.ext-css-20 {
  max-width: 1800px;
  background: #fff;
  padding: 32px 16px;
  margin: 32px auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  font-size: 0.8em;
}
.ext-css-21 {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: auto;
  font-size: 3em;
  font-weight: bold;
  color: #2a4d7a;
  letter-spacing: 2px;
}
.ext-css-22 {
  font-size: 0.7em;
  color: #2a4d7a;
}
.ext-css-23 {
  max-width: 600px;
  margin: 18px auto 24px auto;
  padding: 16px 20px;
  background: #eaf2fa;
  border-radius: 10px;
  text-align: center;
  color: #2a4d7a;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(42, 77, 122, 0.07);
}
.ext-css-24 {
  max-width: 700px;
  background: #fff;
  padding: 32px 16px;
  margin: 32px auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  font-size: 1.15em;
}
.ext-css-25 {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: auto;
  font-size: 1.5em;
  font-weight: bold;
}
.ext-css-26 {
  max-width: 700px;
  background: #fff;
  padding: 40px;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.2em;
}
.ext-css-27 {
  width: 100%;
  font-weight: bold;
}
.ext-css-28 {
  justify-content: center;
  text-align: center;
}
.ext-css-29 {
  text-align: left;
  margin-top: 24px;
  font-size: 0.9em;
  font-weight: bold;
  color: #bbb;
}
.ext-css-30 {
  text-align: center;
  font-size: 1.1em;
  margin-top: 10px;
  color: #666;
}
.ext-css-31 {
  display: flex;
  justify-content: space-between;
  gap: 0px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.ext-css-32 {
  text-align: center;
  color: #555;
}
.ext-css-33 {
  max-width: 700px;
  background: #f9f9f9;
  padding: 24px;
  margin: 24px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  font-size: 1em;
}
.ext-css-34 {
  font-size: 1.3em;
  margin-bottom: 16px;
}
.ext-css-35 {
  text-align: left;
  margin-top: 2rem;
  font-size: 18px;
  color: #6b4a2b;
}
.ext-css-36 {
  margin-bottom: 1.2rem;
}
.ext-css-37 {
  border-right: 3px solid #d4b483;
  padding-right: 10px;
  margin: 1rem 0;
  color: #7b5a3e;
}
.ext-css-38 {
  border-right: 3px solid #c4a35a;
  padding-right: 10px;
  margin: 1rem 0;
  color: #6f5630;
}
.ext-css-39 {
  border-right: 3px solid #b89a68;
  padding-right: 10px;
  margin: 1rem 0;
  color: #614a29;
}
.ext-css-40 {
  max-width: 700px;
  background: #fff;
  padding: 40px;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 1em;
}
.ext-css-41 {
  text-align: left;
  font-weight: bold;
  margin-top: 2em;
}
.ext-css-42 {
  display: none;
}

.is-open {
  display: block !important;
}

.book-reader-shell {
  max-width: 980px;
}

.book-reader-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
}

.book-reader-controls select {
  min-width: 280px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 15px;
  background: #fff;
}

.book-page-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
}

.book-page-toolbar button {
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}

.book-page-toolbar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.book-page-toolbar #pageIndicator {
  min-width: 72px;
  text-align: center;
  font-weight: 600;
}

.book-page-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 16px;
  flex-wrap: wrap;
}

#pageRange {
  width: min(560px, 100%);
}

.book-jump-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.book-jump-wrap input {
  width: 88px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 7px 8px;
}

.book-jump-wrap button {
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
}

.book-page {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff, #fdfdfd 48%, #f5f5f5 49%, #fff 52%);
  min-height: 60vh;
  padding: 18px 20px;
  box-shadow: 0 14px 32px rgb(0 0 0 / 7%);
  perspective: 1200px;
  transform-style: preserve-3d;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.book-page h2 {
  margin-bottom: 12px;
}

.book-page-body {
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
  transform-origin: center center;
}

.book-page.flip-next.flip-out .book-page-body {
  opacity: 0.15;
  transform: perspective(1200px) rotateY(-16deg) translateX(-6px);
}

.book-page.flip-prev.flip-out .book-page-body {
  opacity: 0.15;
  transform: perspective(1200px) rotateY(16deg) translateX(6px);
}

.book-page.flip-in .book-page-body {
  opacity: 0;
  transform: perspective(1200px) rotateY(10deg);
  animation: pageFadeIn 0.2s ease forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateY(10deg);
  }

  to {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg);
  }
}

.book-page-body ul {
  padding-right: 20px;
}

.book-table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0 14px;
}

.book-table td {
  border: 1px solid #e1e1e1;
  padding: 6px 8px;
}
