/* ═══════════════════════════════════════════════════════════
   صفحة «تعلّم أكثر» (من موقع ابن باز): البوابات، شريط الأركان، الأذكار، الإشارات الحمرا
   ═══════════════════════════════════════════════════════════ */

.more { position: fixed; inset: 0; z-index: 80; overflow-y: auto; overscroll-behavior: contain; background: var(--sand); }
.more__inner { width: min(72rem, 100% - 2.5rem); margin: 0 auto; padding: 6rem 0 10vh; }
.more__head { text-align: center; margin-bottom: 4.5rem; }
.more__back { position: fixed; top: 1.2rem; inset-inline-start: 1.2rem; z-index: 3; padding: .6rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .95rem var(--ui); cursor: pointer; box-shadow: var(--shadow); }
.more__eyebrow { margin: 0 0 .6rem; color: #9a7426; font-weight: 600; }
.more__title { margin: 0 auto .7rem; max-width: 22ch; font-family: var(--display); font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.25; }
.more__sub { margin: 0 auto; max-width: 48ch; color: var(--ink-2); font-size: 1.1rem; line-height: 1.7; }
.msec { margin-bottom: 5.5rem; }
.msec__head { display: flex; align-items: center; gap: 1.3rem; margin-bottom: 2rem; }
.msec__num { flex: none; display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%; background: var(--ink); color: var(--gold-hi); font-family: var(--display); font-size: 1.9rem; }
.msec__head h3 { margin: 0 0 .25rem; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.msec__head p { margin: 0; color: var(--ink-2); line-height: 1.6; }

/* ١) البوابات */
.gates { display: grid; grid-template-columns: repeat(9, 1fr); gap: .9rem; }
.gate { text-align: center; }
.gate__arch { position: relative; height: 9.5rem; border-radius: 999px 999px 10px 10px; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: end center; padding-bottom: .9rem; transition: border-color .6s, box-shadow .6s; overflow: hidden; }
.gate__arch::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(230, 196, 122, .6), rgba(166, 212, 187, .55)); opacity: 0; transition: opacity .8s; }
.gate.is-lit .gate__arch { border-color: var(--mint-d); box-shadow: 0 16px 30px -18px rgba(63, 141, 105, .7); }
.gate.is-lit .gate__arch::before { opacity: 1; }
.gate__n { position: relative; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: var(--gold-hi); font-weight: 700; }
.gate b { display: block; margin: .8rem 0 .3rem; font-size: 1.02rem; }
.gate p { margin: 0; font-size: .82rem; line-height: 1.6; color: var(--ink-2); }

/* ٢) شريط الأركان */
.ribbons { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.8rem; }
.ribbon { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.1rem; padding-inline-start: .7rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; }
.ribbon em { font-style: normal; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--gold); color: var(--ink); }
.ribbon small { font-weight: 400; opacity: .7; }
.tl { overflow-x: auto; padding: 1rem 0 1.2rem; scrollbar-width: thin; }
.tl__track { position: relative; display: inline-block; min-width: 100%; }
.tl__line { position: absolute; top: 4.6rem; inset-inline: 2rem; height: 3px; border-radius: 3px; background: var(--line); }
.tl__runner { display: none; }
.tl__nodes { position: relative; display: flex; gap: 1rem; }
.node { flex: none; width: 9.6rem; text-align: center; transition: transform .5s var(--ease); }
.node__img { width: 9.2rem; height: 9.2rem; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 3px solid var(--paper); box-shadow: var(--shadow); background: var(--sand-2); transition: border-color .4s; }
.node__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.node__n { position: relative; display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-top: -1rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); font-weight: 700; font-size: .85rem; transition: background .4s, color .4s; }
.node b { display: block; margin: .5rem 0 .2rem; font-size: .98rem; line-height: 1.4; }
.node p { margin: 0; font-size: .8rem; color: var(--ink-2); line-height: 1.5; }
.node.is-on { transform: translateY(-8px); }
.node.is-on .node__img { border-color: var(--gold); }
.node.is-on .node__n { background: var(--ink); color: var(--gold-hi); }

/* ٣) الأذكار */
.adhkar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.dk { position: relative; padding: 1.8rem 1.2rem 1.3rem; border-radius: 22px; background: var(--paper); text-align: center; display: grid; gap: .5rem; align-content: center; min-height: 9rem; }
.dk__n { position: absolute; top: .7rem; inset-inline-start: .9rem; font-size: .8rem; font-weight: 700; color: #9a7426; }
.dk b { font-family: var(--f-text); font-weight: 700; font-size: 1.65rem; line-height: 1.35; color: var(--brand); }
html[lang="en"] .dk b { font-family: var(--f-en-title); font-size: 1.2rem; }
.dk small { color: var(--ink-2); font-size: .85rem; line-height: 1.5; }
.rule { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rule__box { padding: 1.3rem 1.5rem; border-radius: 20px; }
.rule__box b { display: block; margin-bottom: .4rem; font-family: var(--display); font-size: 1.4rem; }
.rule__box p { margin: 0; line-height: 1.75; }
.rule__box--rukn { background: rgba(191, 81, 59, .1); }
.rule__box--rukn b { color: var(--red); }
.rule__box--wajib { background: rgba(230, 196, 122, .3); }
.rule__box--wajib b { color: #9a7426; }

/* ٤) الإشارات الحمراء */
.signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.sign { height: 10rem; padding: 0; border: 0; background: none; perspective: 900px; cursor: pointer; font: inherit; color: inherit; }
.sign__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.sign.is-flipped .sign__in { transform: rotateY(180deg); }
.sign__f { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-content: center; justify-items: center; gap: .5rem; padding: 1rem; text-align: center; }
.sign__front { background: var(--paper); border: 2.5px solid var(--red); }
.sign__front i { font-style: normal; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 1.3rem; }
.sign__front b { font-size: 1.1rem; color: var(--red); }
.sign__back { transform: rotateY(180deg); background: var(--red); color: #fff; }
.sign__back b { font-size: 1rem; }
.sign__back span { font-size: .9rem; line-height: 1.6; opacity: .92; }
.more__src { padding: 1.6rem; border-radius: 20px; background: var(--paper); display: grid; gap: .5rem; font-size: .92rem; }
.more__src a { color: var(--mint-d); text-decoration: underline; text-underline-offset: 3px; }
.more__src p { margin: .3rem 0 0; color: var(--ink-2); line-height: 1.7; }

@media (max-width: 1100px) {
  .gates { grid-template-columns: repeat(5, 1fr); }
}

/* ── الموبايل ── */
@media (max-width: 760px) {
  .gates { grid-template-columns: repeat(3, 1fr); gap: 1.2rem 1rem; }
  .gate__arch { height: 7.5rem; }
  .gate b { font-size: 1.3rem; }
  .gate p { font-size: 1.1rem; }
  .node { width: 13rem; }
  .node__img { width: 12rem; height: 12rem; }
  .tl__line { top: 6rem; }
  .node b { font-size: 1.3rem; }
  .node p { font-size: 1.1rem; }
  .ribbon { font-size: 1.2rem; }
  .adhkar { grid-template-columns: 1fr 1fr; }
  .dk b { font-size: 2rem; }
  .dk small { font-size: 1.1rem; }
  .rule { grid-template-columns: 1fr; }
  .rule__box p { font-size: 1.25rem; }
  .signs { grid-template-columns: 1fr 1fr; }
  .sign { height: 13rem; }
  .sign__front b { font-size: 1.4rem; }
  .sign__back b { font-size: 1.25rem; }
  .sign__back span { font-size: 1.15rem; }
  .msec__head p, .more__sub, .more__src { font-size: 1.25rem; }
  .more__back { font-size: 1.2rem; }
}
