/* ============================================================================
   MOHRA SHARIF HERITAGE ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Custom Child Theme Styles
   Design Language: Traditional Islamic Geometric + Editorial Restraint
   ============================================================================ */

/* ----- DESIGN TOKENS ----- */
:root {
  /* Greens (deeper, more Islamic-traditional) */
  --c-green-950: #07291a;
  --c-green-900: #0c3826;
  --c-green-800: #134731;
  --c-green-700: #1d6044;
  --c-green-600: #2d8059;
  --c-green-500: #56a07b;
  --c-green-200: #c8dcd0;
  --c-green-100: #e3ede6;
  --c-green-50:  #f0f5f2;

  /* Warm ivory paper family */
  --c-paper:      #faf7ee;
  --c-paper-2:    #f3eddd;
  --c-paper-3:    #e6dec8;
  --c-paper-line: #d8cfb4;

  /* Inks */
  --c-ink:    #1a1c18;
  --c-ink-2:  #43473d;
  --c-ink-3:  #76796d;

  /* Gold */
  --c-gold:        #b8893a;
  --c-gold-soft:   #d1ad6d;
  --c-gold-deep:   #8c6321;

  /* Fonts */
  --f-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-arabic:  'Amiri', 'Scheherazade', 'Times New Roman', serif;
  --f-urdu:    'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Amiri', serif;

  /* Sizes */
  --content-narrow: 660px;
  --content-default: 1180px;
  --content-wide: 1320px;

  /* Spacing scale (4px base) */
  --sp-1:  0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5:  1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem; --sp-32: 8rem;

  /* Easing */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.mohra-body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-green-800); text-decoration: none; transition: color 220ms var(--ease); }
a:hover { color: var(--c-green-900); }
p { margin: 0 0 1.1em 0; }

::selection { background: var(--c-green-800); color: var(--c-paper); }

/* Subtle paper texture, very low opacity */
body.mohra-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(184, 137, 58, 0.035) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

/* Skip link */
.mohra-skip-link {
  position: absolute; left: -9999px;
  background: var(--c-green-900); color: var(--c-paper);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
}
.mohra-skip-link:focus { left: 1rem; top: 1rem; }

/* ============================================================================
   HEADER
   ============================================================================ */
.mohra-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-paper-3);
  transition: box-shadow 300ms var(--ease), background 300ms var(--ease);
}
.mohra-header.is-scrolled {
  box-shadow: 0 1px 0 var(--c-paper-3), 0 8px 24px -12px rgba(7, 41, 26, 0.12);
}

.mohra-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  min-height: 72px;
}

.mohra-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-green-900);
  text-decoration: none;
  flex-shrink: 0;
}
.mohra-brand-logo, .mohra-brand img { max-height: 48px; width: auto; }
.mohra-brand-mark { display: inline-flex; color: var(--c-green-800); }
.mohra-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.mohra-brand-name {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--c-green-900);
}
.mohra-brand-tag {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-top: 2px;
}

/* Desktop nav */
.mohra-nav-desktop { display: flex; }
.mohra-nav-desktop .mohra-menu,
.mohra-nav-desktop .menu {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.mohra-nav-desktop .menu-item { position: relative; }
.mohra-nav-desktop .menu-item > a {
  display: block;
  padding: 0.75rem 0.9rem;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink);
  position: relative;
  transition: color 220ms var(--ease);
}
.mohra-nav-desktop .menu-item > a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 0; height: 1.5px;
  background: var(--c-gold);
  transition: width 280ms var(--ease);
}
.mohra-nav-desktop .menu-item > a:hover,
.mohra-nav-desktop .menu-item.current-menu-item > a,
.mohra-nav-desktop .menu-item.current_page_item > a {
  color: var(--c-green-900);
}
.mohra-nav-desktop .menu-item > a:hover::after,
.mohra-nav-desktop .menu-item.current-menu-item > a::after,
.mohra-nav-desktop .menu-item.current_page_item > a::after {
  width: calc(100% - 1.8rem);
}

/* Submenu */
.mohra-nav-desktop .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--c-paper);
  border: 1px solid var(--c-paper-3);
  border-top: 2px solid var(--c-green-800);
  min-width: 220px;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 16px 40px -16px rgba(7, 41, 26, 0.25);
  opacity: 0; transform: translateY(8px);
  pointer-events: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.mohra-nav-desktop .menu-item:hover > .sub-menu {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.mohra-nav-desktop .sub-menu .menu-item > a {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 400;
  color: var(--c-ink);
}
.mohra-nav-desktop .sub-menu .menu-item > a:hover {
  background: var(--c-green-50);
  color: var(--c-green-900);
}

/* Hamburger toggle */
.mohra-menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--c-paper);
  border: 1px solid var(--c-paper-3);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 220ms var(--ease), border-color 220ms var(--ease);
}
.mohra-menu-toggle:hover {
  background: var(--c-green-50);
  border-color: var(--c-green-200);
}
.mohra-toggle-bars {
  display: flex; flex-direction: column;
  gap: 4px; width: 18px;
}
.mohra-toggle-bars span {
  display: block; height: 1.5px;
  background: var(--c-green-900);
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
  transform-origin: center;
}
body.mohra-menu-open .mohra-toggle-bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
body.mohra-menu-open .mohra-toggle-bars span:nth-child(2) { opacity: 0; }
body.mohra-menu-open .mohra-toggle-bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ============================================================================
   MOBILE DRAWER
   ============================================================================ */
.mohra-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(7, 41, 26, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 280ms var(--ease);
}
body.mohra-menu-open .mohra-menu-backdrop {
  opacity: 1; pointer-events: auto;
}

.mohra-mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--c-paper);
  border-left: 1px solid var(--c-paper-3);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 360ms var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 48px -12px rgba(7, 41, 26, 0.2);
}
body.mohra-menu-open .mohra-mobile-menu {
  transform: translateX(0);
}

.mohra-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mohra-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--c-paper-3);
}
.mohra-mobile-title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-green-900);
  letter-spacing: -0.005em;
}
.mohra-mobile-close {
  background: transparent;
  border: 1px solid var(--c-paper-3);
  color: var(--c-green-900);
  font-size: 1.5rem;
  line-height: 1;
  width: 36px; height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.mohra-mobile-close:hover {
  background: var(--c-green-50);
}

.mohra-mobile-list,
.mohra-mobile-menu .menu {
  list-style: none;
  margin: 0; padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}
.mohra-mobile-list .menu-item,
.mohra-mobile-menu .menu-item {
  border-bottom: 1px solid var(--c-paper-3);
}
.mohra-mobile-list .menu-item:last-child { border-bottom: none; }
.mohra-mobile-list .menu-item > a,
.mohra-mobile-menu .menu-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink);
  transition: padding-left 240ms var(--ease), background 240ms var(--ease);
}
.mohra-mobile-list .menu-item > a::after,
.mohra-mobile-menu .menu-item > a::after {
  content: "ÃƒÂ¢Ã¢â‚¬Â Ã¢â‚¬â„¢";
  color: var(--c-gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.mohra-mobile-list .menu-item:hover > a,
.mohra-mobile-menu .menu-item:hover > a {
  background: linear-gradient(90deg, var(--c-green-50) 0%, transparent 100%);
  color: var(--c-green-900);
  padding-left: 2rem;
}
.mohra-mobile-list .menu-item:hover > a::after,
.mohra-mobile-menu .menu-item:hover > a::after {
  opacity: 1; transform: translateX(0);
}
.mohra-mobile-list .menu-item.current-menu-item > a,
.mohra-mobile-list .menu-item.current_page_item > a {
  color: var(--c-green-900);
  font-weight: 600;
  border-left: 3px solid var(--c-green-800);
  background: var(--c-green-50);
  padding-left: calc(1.5rem - 3px);
}
.mohra-mobile-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--c-paper-3);
  background: var(--c-paper-2);
}
.mohra-mobile-bismillah {
  font-family: var(--f-arabic);
  font-size: 1.25rem;
  color: var(--c-green-900);
  margin: 0.5rem 0 0;
  direction: rtl;
}

/* ============================================================================
   ORNAMENTS
   ============================================================================ */
.mohra-ornament {
  display: inline-block;
  color: var(--c-gold);
  margin-bottom: 1rem;
}

.mohra-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 1.25rem;
  max-width: 200px;
  color: var(--c-gold);
}
.mohra-rule-line {
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 50%, transparent);
  opacity: 0.5;
}
.mohra-rule-diamond { color: var(--c-gold); flex-shrink: 0; }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.mohra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95em 1.875em;
  border-radius: 2px;
  border: 1.5px solid;
  cursor: pointer;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease),
              background 260ms var(--ease), color 260ms var(--ease),
              border-color 260ms var(--ease);
  white-space: nowrap;
}
.mohra-btn .mohra-arrow {
  display: inline-block;
  transition: transform 280ms var(--ease);
}
.mohra-btn:hover .mohra-arrow { transform: translateX(4px); }
.mohra-btn:hover {
  transform: translateY(-1px);
}

/* Primary */
.mohra-btn-primary {
  background: var(--c-green-800);
  color: var(--c-paper);
  border-color: var(--c-green-800);
  box-shadow: 0 1px 0 var(--c-gold-soft), 0 4px 12px -2px rgba(7, 41, 26, 0.25);
}
.mohra-btn-primary:hover {
  background: var(--c-green-900);
  color: var(--c-paper);
  border-color: var(--c-green-900);
  box-shadow: 0 1px 0 var(--c-gold), 0 8px 20px -4px rgba(7, 41, 26, 0.4);
}

/* Outline */
.mohra-btn-outline {
  background: transparent;
  color: var(--c-green-800);
  border-color: var(--c-green-800);
}
.mohra-btn-outline:hover {
  background: var(--c-green-800);
  color: var(--c-paper);
}

/* Ghost */
.mohra-btn-ghost {
  background: transparent;
  color: var(--c-green-800);
  border-color: transparent;
  padding: 0.95em 0.5em;
}
.mohra-btn-ghost:hover {
  color: var(--c-green-900);
  background: transparent;
  transform: none;
}
.mohra-btn-ghost::after {
  content: "";
  position: absolute;
  left: 0.5em; right: 0.5em; bottom: 0.6em;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}
.mohra-btn-ghost:hover::after { transform: scaleX(1); }

.mohra-btn-large {
  padding: 1.2em 2.5em;
  font-size: 0.875rem;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
.mohra-eyebrow {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold-deep);
  margin: 0 0 1rem;
}

.mohra-arabic-inline {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--c-green-800);
}

/* ============================================================================
   HERO
   ============================================================================ */
.mohra-hero {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-2) 100%);
  text-align: center;
  overflow: hidden;
}

/* Subtle geometric Islamic pattern background */
.mohra-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(29, 96, 68, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 20% 100%, rgba(184, 137, 58, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(29, 96, 68, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Eight-point star pattern overlay */
.mohra-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent, var(--c-gold) 20%, var(--c-gold) 80%, transparent);
  opacity: 0.5;
  z-index: 1;
}

.mohra-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.mohra-hero-eyebrow {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold-deep);
  margin: 0 0 1.5rem;
}

.mohra-hero-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw + 0.5rem, 4rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--c-green-950);
  margin: 0 0 1.5rem;
}
.mohra-hero-title em {
  font-style: italic;
  color: var(--c-green-700);
  font-weight: 500;
}

.mohra-hero-lede {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--c-ink-2);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.mohra-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */
.mohra-section {
  padding: 6rem 1.5rem;
  position: relative;
}

.mohra-section:nth-child(even) {
  background: var(--c-paper-2);
}

.mohra-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.mohra-section-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.875rem);
  line-height: 1.15;
  letter-spacing: -0.014em;
  color: var(--c-green-950);
  margin: 0 0 1rem;
}
.mohra-section-lede {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-ink-2);
  margin: 0;
}

.mohra-section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================================
   LEADERSHIP ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Portrait grid with arched mihrab frames
   ============================================================================ */
.mohra-portrait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: var(--content-default);
  margin: 0 auto;
}
.mohra-portrait-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}

.mohra-portrait {
  text-align: center;
  position: relative;
}

.mohra-portrait-frame {
  display: block;
  position: relative;
  padding: 8px;
  margin: 0 auto 1.5rem;
  max-width: 280px;
  aspect-ratio: 5 / 7;
  background:
    linear-gradient(180deg, var(--c-paper-3) 0%, var(--c-paper) 100%);
  /* Mihrab arch shape */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' preserveAspectRatio='none'><path d='M0,280 L0,140 A100,100 0 0 1 200,140 L200,280 Z'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' preserveAspectRatio='none'><path d='M0,280 L0,140 A100,100 0 0 1 200,140 L200,280 Z'/></svg>") center / 100% 100% no-repeat;
  transition: transform 360ms var(--ease);
}

.mohra-portrait-frame:hover {
  transform: translateY(-4px);
}

.mohra-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  /* The arch mask is on the parent; this just clips with the same shape */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' preserveAspectRatio='none'><path d='M0,280 L0,140 A100,100 0 0 1 200,140 L200,280 Z'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' preserveAspectRatio='none'><path d='M0,280 L0,140 A100,100 0 0 1 200,140 L200,280 Z'/></svg>") center / 100% 100% no-repeat;
  border: 2px solid var(--c-green-700);
  box-shadow: 0 0 0 1px var(--c-gold-soft);
}

/* Hide the SVG arch since we use mask instead */
.mohra-portrait-arch { display: none; }

.mohra-portrait-ornament {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--c-paper);
  border: 1px solid var(--c-gold-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold);
  z-index: 2;
}

.mohra-portrait-index {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--c-gold-deep);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.mohra-portrait-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--c-green-950);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.mohra-portrait-arabic {
  font-family: var(--f-arabic);
  font-size: 1rem;
  color: var(--c-green-700);
  margin: 0 0 0.6rem;
  direction: rtl;
}

.mohra-portrait-subtitle {
  font-size: 0.8125rem;
  color: var(--c-ink-3);
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  font-style: italic;
}

.mohra-portrait-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-green-800);
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--c-green-800);
  transition: gap 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease);
}
.mohra-portrait-link:hover {
  color: var(--c-green-900);
  border-bottom-color: var(--c-gold);
  gap: 0.7em;
}

/* ============================================================================
   CUSTODIAN ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Side-by-side portrait + text
   ============================================================================ */
.mohra-custodian {
  background: var(--c-paper-2);
  padding: 6rem 1.5rem;
}
.mohra-custodian-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  max-width: var(--content-default);
  margin: 0 auto;
  align-items: center;
}
.mohra-custodian-image {
  position: relative;
}
.mohra-frame-arch {
  position: relative;
  padding: 10px;
  background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-3) 100%);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' preserveAspectRatio='none'><path d='M0,280 L0,140 A100,100 0 0 1 200,140 L200,280 Z'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' preserveAspectRatio='none'><path d='M0,280 L0,140 A100,100 0 0 1 200,140 L200,280 Z'/></svg>") center / 100% 100% no-repeat;
  max-width: 420px;
  aspect-ratio: 5 / 7;
}
.mohra-frame-arch img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  border: 2px solid var(--c-green-700);
  box-shadow: 0 0 0 1px var(--c-gold-soft);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' preserveAspectRatio='none'><path d='M0,280 L0,140 A100,100 0 0 1 200,140 L200,280 Z'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' preserveAspectRatio='none'><path d='M0,280 L0,140 A100,100 0 0 1 200,140 L200,280 Z'/></svg>") center / 100% 100% no-repeat;
}
.mohra-custodian-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
  line-height: 1.15;
  color: var(--c-green-950);
  margin: 0 0 0.5rem;
  letter-spacing: -0.012em;
}
.mohra-custodian-name em {
  font-style: italic;
  color: var(--c-green-700);
  font-weight: 500;
}
.mohra-custodian-title {
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-gold-deep);
  margin: 0 0 1.5rem;
  font-style: italic;
}
.mohra-custodian-lede {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-ink-2);
  margin: 0 0 2rem;
}

/* ============================================================================
   ARTICLES SECTION
   ============================================================================ */
.mohra-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: var(--content-default);
  margin: 0 auto;
}
.mohra-article-card {
  display: flex; flex-direction: column;
  background: var(--c-paper);
  border: 1px solid var(--c-paper-3);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
}
.mohra-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(7,41,26,0.04), 0 20px 40px -12px rgba(7,41,26,0.15);
  border-color: var(--c-gold-soft);
}
.mohra-article-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-paper-2);
}
.mohra-article-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.mohra-article-card:hover .mohra-article-thumb img { transform: scale(1.05); }
.mohra-article-meta,
.mohra-article-title,
.mohra-article-excerpt,
.mohra-article-link {
  padding-left: 1.5rem; padding-right: 1.5rem;
}
.mohra-article-meta {
  font-family: var(--f-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  padding-top: 1.25rem;
}
.mohra-article-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 0.5rem 0 0.75rem;
}
.mohra-article-title a {
  color: var(--c-green-950);
  text-decoration: none;
  transition: color 220ms var(--ease);
}
.mohra-article-title a:hover { color: var(--c-green-700); }
.mohra-article-excerpt {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--c-ink-2);
  margin: 0 0 1.25rem;
  flex: 1;
}
.mohra-article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-green-800);
  padding-bottom: 1.5rem;
  align-self: flex-start;
  transition: gap 240ms var(--ease);
}
.mohra-article-link:hover { gap: 0.7em; }

/* ============================================================================
   LIBRARY
   ============================================================================ */
.mohra-library-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--content-default);
  margin: 0 auto;
  align-items: center;
}
.mohra-library-lede {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-ink-2);
  margin: 0 0 2rem;
}
.mohra-library-books {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.mohra-book {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--c-paper-3);
  background: var(--c-paper);
  box-shadow: 0 1px 2px rgba(7,41,26,0.04), 0 12px 24px -8px rgba(7,41,26,0.12);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
  transform: rotate(calc(var(--book-i, 0) * 0.5deg - 0.5deg));
}
.mohra-book:hover {
  transform: translateY(-4px) rotate(0);
  box-shadow: 0 1px 2px rgba(7,41,26,0.04), 0 20px 40px -8px rgba(7,41,26,0.25);
}
.mohra-book img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============================================================================
   VISIT CTA
   ============================================================================ */
.mohra-visit {
  background: linear-gradient(135deg, var(--c-green-900) 0%, var(--c-green-950) 100%);
  color: var(--c-paper);
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.mohra-visit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(184,137,58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.mohra-visit-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.mohra-visit-inner .mohra-ornament { color: var(--c-gold-soft); }
.mohra-visit-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  line-height: 1.15;
  color: var(--c-paper);
  margin: 0 0 1.25rem;
  letter-spacing: -0.012em;
}
.mohra-visit-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-green-100);
  margin: 0 0 2.5rem;
}
.mohra-visit .mohra-btn-primary {
  background: var(--c-paper);
  color: var(--c-green-900);
  border-color: var(--c-paper);
  box-shadow: 0 1px 0 var(--c-gold), 0 8px 20px -4px rgba(0,0,0,0.3);
}
.mohra-visit .mohra-btn-primary:hover {
  background: var(--c-gold-soft);
  color: var(--c-green-950);
  border-color: var(--c-gold-soft);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.mohra-footer {
  background: var(--c-green-950);
  color: var(--c-paper);
  padding: 3rem 1.5rem 2rem;
  position: relative;
}
.mohra-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-gold) 20%, var(--c-gold) 80%, transparent);
}
.mohra-footer-ornament {
  text-align: center;
  color: var(--c-gold-soft);
  margin-bottom: 2.5rem;
}
.mohra-footer-inner {
  max-width: var(--content-default);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.mohra-footer-heading {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--c-paper);
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
.mohra-footer-name {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-paper);
  margin: 0 0 0.25rem;
}
.mohra-footer-tag {
  font-size: 0.875rem;
  color: var(--c-green-200);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.mohra-footer-location {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  margin: 0;
}
.mohra-footer-links ul {
  list-style: none;
  margin: 0; padding: 0;
}
.mohra-footer-links li {
  margin-bottom: 0.5rem;
}
.mohra-footer-links a {
  color: var(--c-paper);
  opacity: 0.85;
  font-size: 0.9375rem;
  transition: opacity 220ms var(--ease), color 220ms var(--ease);
}
.mohra-footer-links a:hover {
  opacity: 1;
  color: var(--c-gold-soft);
}
.mohra-footer-bismillah {
  font-family: var(--f-arabic);
  font-size: 1.5rem;
  color: var(--c-gold-soft);
  margin: 0 0 0.5rem;
  direction: rtl;
  text-align: right;
}
.mohra-footer-arabic-trans {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--c-green-200);
  margin: 0;
  text-align: right;
}
.mohra-footer-bottom {
  max-width: var(--content-default);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255, 0.08);
  text-align: center;
  font-size: 0.78rem;
  color: var(--c-green-200);
  opacity: 0.85;
}

/* ============================================================================
   ARCHIVE / BLOG LIST
   ============================================================================ */
.mohra-page-header {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-2) 100%);
}
.mohra-page-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--c-green-950);
  margin: 0 0 1rem;
}
.mohra-page-lede {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-ink-2);
  max-width: 640px;
  margin: 0 auto;
}

.mohra-archive {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}
.mohra-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.mohra-archive-card {
  background: var(--c-paper);
  border: 1px solid var(--c-paper-3);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
}
.mohra-archive-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-gold-soft);
  box-shadow: 0 4px 12px rgba(7,41,26,0.04), 0 20px 40px -12px rgba(7,41,26,0.18);
}
.mohra-archive-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-paper-2);
}
.mohra-archive-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.mohra-archive-card:hover .mohra-archive-thumb img { transform: scale(1.05); }
.mohra-archive-body {
  padding: 1.75rem;
  display: flex; flex-direction: column;
  flex: 1;
}
.mohra-archive-meta {
  font-family: var(--f-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-bottom: 0.6rem;
}
.mohra-archive-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 0 0 0.85rem;
}
.mohra-archive-title a {
  color: var(--c-green-950);
  text-decoration: none;
}
.mohra-archive-title a:hover { color: var(--c-green-700); }
.mohra-archive-excerpt {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--c-ink-2);
  margin: 0 0 1.25rem;
  flex: 1;
}
.mohra-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-green-800);
  align-self: flex-start;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--c-green-800);
  transition: gap 240ms var(--ease), color 240ms var(--ease), border-bottom-color 240ms var(--ease);
}
.mohra-archive-link:hover {
  color: var(--c-green-900);
  border-bottom-color: var(--c-gold);
  gap: 0.7em;
}

/* Pagination */
.mohra-pagination {
  margin-top: 3rem;
  text-align: center;
}
.mohra-pagination .nav-links { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.mohra-pagination .page-numbers,
.mohra-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75em;
  background: transparent;
  border: 1px solid var(--c-paper-3);
  border-radius: 4px;
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 220ms var(--ease);
  text-decoration: none;
}
.mohra-pagination .current,
.mohra-pagination a:hover {
  background: var(--c-green-800);
  color: var(--c-paper);
  border-color: var(--c-green-800);
}

/* ============================================================================
   SINGLE POST
   ============================================================================ */
.mohra-single {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.mohra-single-header {
  text-align: center;
  margin-bottom: 3rem;
}
.mohra-single-meta {
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin: 0 0 1rem;
}
.mohra-single-cat { color: var(--c-gold-deep); }
.mohra-single-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--c-green-950);
  margin: 0 0 2rem;
}
.mohra-single-featured {
  margin: 0 -1.5rem;
  overflow: hidden;
  border-radius: 6px;
}
.mohra-single-featured img {
  width: 100%; height: auto;
  border-radius: 6px;
}
.mohra-single-content {
  font-size: 1.125rem;
  line-height: 1.78;
  color: var(--c-ink);
}
.mohra-single-content > *:first-child { margin-top: 0; }

.mohra-single-content p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 3.75em;
  line-height: 0.85;
  float: left;
  padding: 0.05em 0.12em 0 0;
  color: var(--c-green-800);
}

.mohra-single-content h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 2.5em 0 0.8em;
  color: var(--c-green-950);
  position: relative;
  padding-bottom: 0.4em;
}
.mohra-single-content h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--c-gold);
  margin-top: 0.5em;
}
.mohra-single-content h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.375rem;
  margin: 2em 0 0.6em;
  color: var(--c-green-900);
}

.mohra-single-content blockquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.55;
  color: var(--c-ink-2);
  border-left: 2px solid var(--c-gold);
  margin: 2em 0;
  padding: 0.5em 0 0.5em 1.5em;
}

.mohra-single-content :lang(ar),
.mohra-single-content [lang="ar"] {
  font-family: var(--f-arabic);
  font-size: 1.3em;
  line-height: 2.0;
  color: var(--c-green-900);
  display: block;
  text-align: center;
  margin: 1.5em 0;
  direction: rtl;
}

.mohra-single-content :lang(ur),
.mohra-single-content [lang="ur"] {
  font-family: var(--f-urdu);
  font-size: 1.2em;
  line-height: 2.2;
  direction: rtl;
}

.mohra-single-content a {
  border-bottom: 1px solid var(--c-gold);
  padding-bottom: 1px;
  transition: color 220ms var(--ease), border-bottom-color 220ms var(--ease);
}
.mohra-single-content a:hover {
  color: var(--c-green-900);
  border-bottom-color: var(--c-green-800);
}

.mohra-single-footer {
  margin-top: 4rem;
  text-align: center;
}
.mohra-single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}
.mohra-single-nav a {
  display: flex; flex-direction: column;
  padding: 1.25rem 1.5rem;
  background: var(--c-paper-2);
  border: 1px solid var(--c-paper-3);
  border-radius: 6px;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
  text-decoration: none;
}
.mohra-single-nav a:hover {
  border-color: var(--c-gold-soft);
  transform: translateY(-2px);
}
.mohra-single-nav-next { text-align: right; }
.mohra-single-nav-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-bottom: 0.25rem;
}
.mohra-single-nav-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--c-green-950);
}

/* ============================================================================
   PAGE
   ============================================================================ */
.mohra-page {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.mohra-page-header {
  text-align: center;
  margin-bottom: 3rem;
}
.mohra-page-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: var(--content-narrow);
  margin: 0 auto;
}
.mohra-page-elementor-content {
  /* Let Elementor's own CSS handle Elementor-built pages */
  max-width: 100%;
}

/* ============================================================================
   404
   ============================================================================ */
.mohra-404 {
  text-align: center;
  padding: 8rem 1.5rem;
}
.mohra-404-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--c-green-950);
  margin: 0 0 1.5rem;
}
.mohra-404-text {
  font-size: 1.0625rem;
  color: var(--c-ink-2);
  margin: 0 0 2rem;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

/* Tablet & smaller */
@media (max-width: 1024px) {
  .mohra-nav-desktop { display: none; }
  .mohra-menu-toggle { display: inline-flex; }

  .mohra-header-inner {
    padding: 0.85rem 1rem;
    min-height: 64px;
    gap: 1rem;
  }
  .mohra-brand-logo, .mohra-brand img { max-height: 40px; }
  .mohra-brand-name { font-size: 1.125rem; }
  .mohra-brand-tag { font-size: 0.62rem; }

  .mohra-hero { padding: 4rem 1.25rem 3.5rem; }
  .mohra-section { padding: 4rem 1.25rem; }

  .mohra-portrait-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .mohra-portrait-grid-2 { grid-template-columns: repeat(2, 1fr); }

  .mohra-custodian-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mohra-custodian-image { max-width: 320px; margin: 0 auto; }

  .mohra-articles-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .mohra-library-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mohra-archive-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .mohra-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .mohra-footer-arabic { grid-column: 1 / -1; text-align: center; }
  .mohra-footer-arabic .mohra-footer-bismillah,
  .mohra-footer-arabic .mohra-footer-arabic-trans { text-align: center; }
}

/* Mobile */
@media (max-width: 640px) {
  body.mohra-body { font-size: 16px; }

  .mohra-brand-tag { display: none; }
  .mohra-brand-name { font-size: 1rem; letter-spacing: -0.005em; }

  .mohra-hero { padding: 3rem 1rem 3rem; }
  .mohra-hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; }
  .mohra-hero-title { font-size: clamp(1.625rem, 6vw, 2.25rem); }
  .mohra-hero-lede { font-size: 1rem; }
  .mohra-hero-actions { flex-direction: column; align-items: stretch; }
  .mohra-hero-actions .mohra-btn { width: 100%; }

  .mohra-section { padding: 3rem 1rem; }
  .mohra-section-head { margin-bottom: 2.5rem; }
  .mohra-section-title { font-size: clamp(1.5rem, 5vw, 2rem); }

  .mohra-portrait-grid,
  .mohra-portrait-grid-2,
  .mohra-articles-grid,
  .mohra-archive-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mohra-portrait-frame { max-width: 240px; }

  .mohra-custodian-name { font-size: 1.625rem; }

  .mohra-library-books { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .mohra-footer-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .mohra-footer-arabic .mohra-footer-bismillah { text-align: center; font-size: 1.25rem; }

  .mohra-single { padding: 2rem 1rem 4rem; }
  .mohra-single-content { font-size: 1.0625rem; line-height: 1.7; }
  .mohra-single-content p:first-of-type::first-letter { font-size: 2.8em; }
  .mohra-single-nav { grid-template-columns: 1fr; }
  .mohra-single-nav-next { text-align: left; }

  .mohra-archive { padding: 2rem 1rem 4rem; }
  .mohra-page-header { padding: 3rem 1rem 2rem; }
  .mohra-page { padding: 2rem 1rem 4rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .mohra-header, .mohra-footer, .mohra-menu-toggle,
  .mohra-mobile-menu, .mohra-hero-actions, .mohra-btn { display: none !important; }
  body { background: white; color: black; }
}


/* ============================================================================
   V2 ADDITIONS Ã¢â‚¬â€ Slider, social, rectangular portraits, footer overhaul, blog fix
   These override v1 styles where needed.
   ============================================================================ */

/* ----- HEADER SOCIAL ICONS ----- */
.mohra-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.mohra-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--c-green-800);
  border: 1px solid var(--c-paper-3);
  transition: all 240ms var(--ease);
  text-decoration: none;
}
.mohra-social a:hover {
  background: var(--c-green-800);
  color: var(--c-paper);
  border-color: var(--c-green-800);
  transform: translateY(-2px);
}
.mohra-social svg { display: block; }

.mohra-social-header {
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--c-paper-3);
}
@media (max-width: 1024px) {
  .mohra-social-header { display: none; }
}

.mohra-social-mobile {
  display: inline-flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}
.mohra-social-mobile a {
  width: 38px;
  height: 38px;
}

.mohra-social-footer {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}
.mohra-social-footer a {
  background: rgba(255,255,255,0.05);
  color: var(--c-paper);
  border-color: rgba(255,255,255,0.12);
}
.mohra-social-footer a:hover {
  background: var(--c-gold);
  color: var(--c-green-950);
  border-color: var(--c-gold);
}

/* ----- HERO SLIDER ----- */
.mohra-hero-slider {
  position: relative;
  overflow: hidden;
}

.mohra-slider {
  position: relative;
  width: 100%;
  height: clamp(480px, 70vh, 720px);
  overflow: hidden;
  background: var(--c-green-950);
}

.mohra-slider-track {
  position: absolute;
  inset: 0;
}

.mohra-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms var(--ease);
  pointer-events: none;
}
.mohra-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.mohra-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: mohra-zoom 8s ease-in-out infinite alternate;
}
.mohra-slide.is-active img { animation-play-state: running; }
@keyframes mohra-zoom {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.08); }
}

.mohra-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,41,26,0.5) 0%, rgba(7,41,26,0.35) 40%, rgba(7,41,26,0.7) 100%);
}

.mohra-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mohra-hero-content .mohra-ornament {
  color: var(--c-gold-soft);
}

.mohra-hero-eyebrow {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  margin: 0 0 1.25rem;
}

.mohra-hero-content .mohra-hero-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw + 0.5rem, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--c-paper);
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.mohra-hero-content .mohra-hero-title em {
  font-style: italic;
  color: var(--c-gold-soft);
  font-weight: 500;
}

.mohra-hero-content .mohra-hero-lede {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(250,247,238,0.92);
  max-width: 640px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}

.mohra-hero-content .mohra-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Ghost button on dark hero needs different colors */
.mohra-btn-light-ghost {
  background: transparent;
  color: var(--c-paper);
  border: 1.5px solid rgba(250,247,238,0.5);
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95em 1.875em;
  border-radius: 2px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: all 260ms var(--ease);
}
.mohra-btn-light-ghost:hover {
  background: var(--c-paper);
  color: var(--c-green-900);
  border-color: var(--c-paper);
  transform: translateY(-1px);
}

/* Slider controls */
.mohra-slider-controls {
  position: absolute;
  left: 0; right: 0; bottom: 1.5rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  pointer-events: none;
}
.mohra-slider-prev, .mohra-slider-next {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(7,41,26,0.4);
  border: 1px solid rgba(250,247,238,0.3);
  color: var(--c-paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 240ms var(--ease);
  backdrop-filter: blur(8px);
}
.mohra-slider-prev:hover, .mohra-slider-next:hover {
  background: var(--c-paper);
  color: var(--c-green-900);
  border-color: var(--c-paper);
}

.mohra-slider-dots {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.mohra-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(250,247,238,0.6);
  background: transparent;
  cursor: pointer;
  transition: all 240ms var(--ease);
}
.mohra-slider-dot.is-active {
  background: var(--c-gold-soft);
  border-color: var(--c-gold-soft);
  width: 24px;
  border-radius: 4px;
}

/* ----- RECTANGULAR PORTRAITS (replace arched mihrab) ----- */
.mohra-portrait-frame {
  display: block;
  position: relative;
  padding: 8px;
  margin: 0 auto 1.5rem;
  max-width: 280px;
  aspect-ratio: 5 / 6;
  background: linear-gradient(180deg, var(--c-paper-3) 0%, var(--c-paper) 100%);
  border-radius: 6px;
  /* Remove the mask that made it arched */
  -webkit-mask: none !important;
          mask: none !important;
  border: 2px solid var(--c-green-700);
  box-shadow: 0 0 0 1px var(--c-gold-soft),
              0 12px 28px -10px rgba(7,41,26,0.4),
              0 0 32px -8px rgba(29, 96, 68, 0.25);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}

.mohra-portrait-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--c-gold),
              0 20px 40px -10px rgba(7,41,26,0.5),
              0 0 40px -4px rgba(29, 96, 68, 0.35);
}

.mohra-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 3px;
  /* Remove the arch mask */
  -webkit-mask: none !important;
          mask: none !important;
  border: none;
  box-shadow: none;
}

.mohra-portrait-arch { display: none; }

.mohra-portrait-frame-large {
  max-width: 380px;
  aspect-ratio: 4 / 5;
  padding: 10px;
}

/* Hide old custodian arch frame */
.mohra-frame-arch {
  -webkit-mask: none !important;
          mask: none !important;
  padding: 10px;
  background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-3) 100%);
  border-radius: 6px;
  border: 2px solid var(--c-green-700);
  box-shadow: 0 0 0 1px var(--c-gold-soft),
              0 12px 28px -10px rgba(7,41,26,0.4);
}
.mohra-frame-arch img {
  -webkit-mask: none !important;
          mask: none !important;
  border: none;
  box-shadow: none;
  border-radius: 3px;
}

/* ----- FOOTER CONTACT LIST ----- */
.mohra-footer-contact {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.mohra-footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-green-200);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.mohra-footer-contact li svg {
  color: var(--c-gold-soft);
  flex-shrink: 0;
}
.mohra-footer-contact a {
  color: var(--c-green-200);
  opacity: 0.9;
  transition: color 220ms var(--ease);
}
.mohra-footer-contact a:hover {
  color: var(--c-gold-soft);
  opacity: 1;
}

/* Footer: 4-column grid */
.mohra-footer-inner {
  grid-template-columns: 1.3fr 0.8fr 1.4fr 1.2fr !important;
  max-width: 1240px;
}

/* Recent posts in footer */
.mohra-footer-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mohra-footer-posts li {
  margin-bottom: 1rem;
}
.mohra-footer-posts a {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-decoration: none;
  color: var(--c-paper);
  opacity: 0.9;
  transition: opacity 220ms var(--ease);
}
.mohra-footer-posts a:hover {
  opacity: 1;
}
.mohra-footer-post-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}
.mohra-footer-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mohra-footer-post-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mohra-footer-post-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--c-paper);
}
.mohra-footer-post-date {
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
}
.mohra-footer-posts a:hover .mohra-footer-post-title {
  color: var(--c-gold-soft);
}

/* Footer arabic column */
.mohra-footer-arabic .mohra-footer-bismillah {
  font-family: var(--f-arabic);
  font-size: 1.5rem;
  color: var(--c-gold-soft);
  margin: 0.5rem 0;
  direction: rtl;
  text-align: left;
  line-height: 1.4;
}
.mohra-footer-arabic .mohra-footer-arabic-trans {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--c-green-200);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.mohra-footer-arabic .mohra-footer-dua {
  font-family: var(--f-body);
  font-size: 0.8125rem;
  color: var(--c-green-200);
  opacity: 0.85;
  line-height: 1.55;
  margin: 0;
}

/* Footer bottom */
.mohra-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255, 0.08);
}
.mohra-footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--c-green-200);
  opacity: 0.85;
}
.mohra-footer-credit {
  font-family: var(--f-display);
  font-style: italic;
}

/* ----- BLOG SINGLE POST CONTENT FIX ----- */
/* The blog content was rendering with all text on one side because previous CSS
   centered the post header but left content un-styled. Force proper centering and
   reading column. */
.mohra-single {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.mohra-single-content,
.mohra-single .entry-content {
  max-width: 100%;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.78;
  color: var(--c-ink);
  text-align: left;
}
.mohra-single-content p,
.mohra-single .entry-content p {
  text-align: left;
  margin: 0 0 1.25em;
  max-width: 100%;
}
.mohra-single-content > *:first-child {
  margin-top: 0;
}
/* Remove any inline align that the old editor inserted */
.mohra-single-content [align="center"] {
  text-align: center;
}
/* Center Arabic verses */
.mohra-single-content p:has(span[lang="ar"]),
.mohra-single-content p[lang="ar"],
.mohra-single-content [lang="ar"] {
  text-align: center;
  font-family: var(--f-arabic);
  font-size: 1.25em;
  line-height: 2.0;
  margin: 1.5em auto;
  direction: rtl;
  color: var(--c-green-900);
}

/* ----- MOBILE FIXES ----- */
@media (max-width: 1024px) {
  .mohra-footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }
  .mohra-footer-arabic {
    grid-column: 1 / -1;
    text-align: center;
  }
  .mohra-footer-arabic .mohra-footer-bismillah,
  .mohra-footer-arabic .mohra-footer-arabic-trans {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .mohra-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }
  .mohra-footer-contact li {
    justify-content: center;
  }
  .mohra-social-footer {
    justify-content: center;
  }
  .mohra-footer-posts a {
    justify-content: center;
    text-align: left;
  }
  .mohra-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Slider on mobile */
  .mohra-slider {
    height: clamp(400px, 80vh, 600px);
  }
  .mohra-slider-prev,
  .mohra-slider-next {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  .mohra-slider-controls {
    gap: 0.75rem;
    bottom: 1rem;
  }
}

/* ----- HEADER LAYOUT WITH SOCIAL ----- */
.mohra-header-inner {
  gap: 1.25rem;
}

/* ============================================================================
   V3 POLISH â€” Single post wider layout, archive grid alignment
   ============================================================================ */

/* Single post: wider layout so content doesn't feel cramped */
.mohra-single {
  max-width: 880px !important;
  padding: 4rem 2rem 6rem !important;
}

.mohra-single-content {
  max-width: 720px !important;
  margin: 0 auto !important;
  font-size: 1.125rem !important;
  line-height: 1.78 !important;
}

/* Ensure proper centering on all sides */
.mohra-single-header,
.mohra-single-footer {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mohra-single-featured {
  max-width: 880px;
  margin-left: -2rem;
  margin-right: -2rem;
}

@media (max-width: 768px) {
  .mohra-single {
    padding: 2.5rem 1.25rem 4rem !important;
  }
  .mohra-single-featured {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
}

/* Archive page header â€” slight tightening */
.mohra-page-header {
  padding: 4rem 1.5rem 2rem;
}

/* Make sure footer is positioned correctly under content */
.mohra-main {
  min-height: 60vh;
}

/* ----- HEADER ALIGNMENT FIX ----- */
/* The brand was getting cramped against nav. Give brand more room. */
.mohra-brand {
  margin-right: auto;
}
.mohra-nav-desktop {
  margin-left: auto;
}

/* When social icons present at desktop, fit them tightly */
@media (min-width: 1025px) {
  .mohra-header-inner {
    gap: 1rem;
  }
  .mohra-social-header {
    margin-left: 1rem;
    padding-left: 1rem;
  }
}

/* ============================================================================
   V4 — Clean slider (no text overlay) + separate intro section
   ============================================================================ */

/* Clean slider variant - no text on top, just images */
.mohra-slider--clean {
  height: clamp(420px, 60vh, 640px);
  background: var(--c-paper-2);
}

.mohra-slider--clean .mohra-slide img {
  object-fit: contain;          /* show full image, no cropping the person */
  object-position: center center;
  background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-2) 100%);
  animation: none;              /* remove the ken-burns zoom that masked detail */
  transform: none;
}

/* Bring the slide controls into the cream background area */
.mohra-slider--clean .mohra-slider-controls {
  bottom: 1rem;
}
.mohra-slider--clean .mohra-slider-prev,
.mohra-slider--clean .mohra-slider-next {
  background: var(--c-paper);
  color: var(--c-green-900);
  border-color: var(--c-paper-3);
}
.mohra-slider--clean .mohra-slider-prev:hover,
.mohra-slider--clean .mohra-slider-next:hover {
  background: var(--c-green-800);
  color: var(--c-paper);
  border-color: var(--c-green-800);
}
.mohra-slider--clean .mohra-slider-dot {
  border-color: var(--c-green-800);
  background: transparent;
}
.mohra-slider--clean .mohra-slider-dot.is-active {
  background: var(--c-green-800);
  border-color: var(--c-green-800);
}

/* Intro section below the slider (the text that USED to be on the slider) */
.mohra-intro {
  padding: 4rem 1.5rem 3rem;
  background: var(--c-paper);
  text-align: center;
}
.mohra-intro-inner {
  max-width: 820px;
  margin: 0 auto;
}
.mohra-intro .mohra-ornament {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}
.mohra-intro .mohra-eyebrow {
  margin: 0 0 1rem;
}
.mohra-intro-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--c-green-950);
  margin: 0 0 1.25rem;
}
.mohra-intro-title em {
  font-style: italic;
  color: var(--c-green-700);
  font-weight: 500;
}
.mohra-intro-lede {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-ink-2);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.mohra-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .mohra-slider--clean {
    height: clamp(280px, 40vh, 420px);
  }
  .mohra-intro {
    padding: 2.5rem 1rem 2rem;
  }
  .mohra-intro-title {
    font-size: clamp(1.625rem, 6vw, 2.25rem);
  }
  .mohra-intro-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .mohra-intro-actions .mohra-btn {
    width: 100%;
  }
}