/*
 * AnNoor information pages: About, Policies, Help & Support, Contact, FAQ, Blog, CMS pages,
 * offline, branded errors and the homepage CMS blocks (reviews, feature cards).
 * Built on the tokens and base classes in annoor.css. Logical properties throughout (RTL safe).
 */

/* ------------------------------ page shell + hero ------------------------------ */
.an-info { padding-block: 0 8px; }
.an-info-hero { position: relative; overflow: hidden; margin-top: 14px; padding: 20px 36px 34px; min-height: 200px; border-radius: var(--r-xl); color: #fff; background: linear-gradient(105deg, #06263c 0%, var(--navy) 55%, #0e5a6a 100%); }
.an-info-hero__copy { position: relative; z-index: 2; max-width: 560px; }
.an-info-hero .breadcrumb { margin: 0 0 22px; --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.7); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, 0.85); }
.an-info-hero .breadcrumb a { color: #fff; }
.an-info-hero h1 { color: #fff; font-size: 30px; font-weight: 800; line-height: 1.15; margin: 0 0 10px; }
.an-info-hero p { color: #e6eef3; font-size: 14px; line-height: 1.55; margin: 0; max-width: 46ch; }
.an-info-hero p a { color: var(--gold); text-decoration: underline; }
.an-info-hero__art { position: absolute; inset-inline-end: 56px; top: 50%; transform: translateY(-50%); width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(63, 197, 200, 0.28) 0%, rgba(63, 197, 200, 0.06) 62%, transparent 63%); display: grid; place-items: center; z-index: 1; }
.an-info-hero__art::before { content: ""; position: absolute; inset: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); }
.an-info-hero__art svg { width: 76px; height: 76px; color: var(--gold); }
.an-info-hero--compact { min-height: 0; padding-block: 18px 26px; }
.an-info-hero--compact h1 { font-size: 24px; }
.an-info-hero--compact .an-info-hero__art { width: 140px; height: 140px; inset-inline-end: 40px; }
.an-info-hero--compact .an-info-hero__art svg { width: 54px; height: 54px; }
.an-info-hero--compact .breadcrumb { margin-bottom: 14px; }

.an-info-section { margin-top: 28px; }
.an-info-section > h2, .an-info-panel > h2 { font-size: 19px; margin-bottom: 8px; }
.an-info-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-card); }
.an-info-panel h2 { font-size: 16px; margin-bottom: 10px; }
.an-info-panel p:last-child { margin-bottom: 0; }

/* ------------------------------ About ------------------------------ */
.an-story { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.an-story__art { height: 168px; border-radius: var(--r-xl); display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); }
.an-story__art svg { width: 64px; height: 64px; color: var(--gold); }
.an-story h2 { font-size: 24px; margin-bottom: 8px; }
.an-story p { font-size: 14px; line-height: 1.65; max-width: 62ch; margin-bottom: 0; }

.an-values { display: grid; grid-template-columns: 180px repeat(4, minmax(0, 1fr)); align-items: stretch; margin-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.an-values__title { font-size: 21px; margin: 0; align-self: center; }
.an-value { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 16px; text-align: center; border-inline-start: 1px solid var(--line); }
.an-value svg { width: 28px; height: 28px; color: var(--teal); }
.an-value h3 { font-size: 15px; margin: 2px 0 0; }
.an-value p { margin: 0; font-size: 12px; color: var(--text-2); line-height: 1.4; }

.an-mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; background: var(--surface); border-radius: var(--r-xl); padding: 22px 8px; }
.an-mv__item { display: flex; gap: 16px; align-items: flex-start; padding-inline: 28px; }
.an-mv__item + .an-mv__item { border-inline-start: 1px solid var(--line); }
.an-mv__item > svg { width: 38px; height: 38px; color: var(--teal); flex-shrink: 0; }
.an-mv__item h2 { font-size: 18px; margin-bottom: 4px; }
.an-mv__item p { margin: 0; font-size: 13px; line-height: 1.55; max-width: 44ch; }

.an-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin-top: 20px; padding: 20px 8px; border-radius: var(--r-xl); background: linear-gradient(115deg, #08485a 0%, var(--navy) 100%); color: #fff; }
.an-stats__item { display: flex; align-items: center; gap: 14px; justify-content: center; padding-inline: 16px; }
.an-stats__item + .an-stats__item { border-inline-start: 1px solid rgba(255, 255, 255, 0.18); }
.an-stats__item > svg { width: 34px; height: 34px; color: #fff; flex-shrink: 0; }
.an-stats__item div { display: flex; flex-direction: column; line-height: 1.2; }
.an-stats strong { font-size: 21px; font-weight: 800; color: #fff; }
.an-stats span { font-size: 13px; color: #d3e3ea; }

.an-info-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 18px 24px; border-radius: var(--r-xl); background: var(--teal-soft); }
.an-info-cta h2 { font-size: 18px; margin-bottom: 2px; }
.an-info-cta p { color: var(--text); }
.an-contact-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; }
.an-contact-list li { display: flex; flex-direction: column; font-size: 13px; color: var(--ink); }
.an-contact-list li > span { font-size: 11.5px; font-weight: 600; color: var(--text-2); }

/* ------------------------------ Policy ------------------------------ */
.an-policy-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 14px; }
.an-info .breadcrumb--page { margin: 14px 0 0; }
.an-policy-side { position: sticky; top: 130px; }
.an-policy-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.an-policy-nav__title { font-size: 14px; margin: 2px 8px 8px; }
.an-policy-nav__link { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); font-size: 12.5px; font-weight: 500; }
.an-policy-nav__link:hover { background: var(--surface); color: var(--ink); }
.an-policy-nav__link.is-active { background: var(--teal); color: #fff; font-weight: 700; }
.an-policy-toggle { display: none; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; text-align: start; }
.an-policy-toggle__current { color: var(--teal-dark); font-weight: 600; font-size: 12px; }
.an-policy { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 24px 28px; }
.an-policy__head { display: flex; gap: 14px; align-items: flex-start; }
.an-policy__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r); background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.an-policy__icon svg { width: 22px; height: 22px; }
.an-policy__title { font-size: 24px; margin: 0 0 6px; }
.an-policy__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 18px; padding: 0; font-size: 12px; color: var(--text-2); }
.an-policy__body { counter-reset: an-pol; font-size: 13.5px; line-height: 1.65; }
.an-policy__body h2 { counter-increment: an-pol; display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; padding: 10px 14px; border-radius: var(--r); background: var(--surface); font-size: 15px; }
.an-policy__body h2::before { content: counter(an-pol); flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.an-policy__body h3 { font-size: 14px; margin-top: 14px; }
.an-policy__body ul, .an-policy__body ol { margin-bottom: 0.9em; }
.an-policy__body li { margin-bottom: 4px; }
.an-policy__body table { width: 100%; font-size: 12.5px; }
.an-policy__help { margin: 14px 4px 0; font-size: 12.5px; color: var(--text-2); }

/* ------------------------------ Help hub ------------------------------ */
.an-help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.an-help-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); color: var(--text); transition: box-shadow 0.18s, transform 0.18s; }
.an-help-card:hover { color: var(--text); box-shadow: 0 6px 18px rgba(15, 42, 67, 0.14), 0 0 0 1px rgba(15, 42, 67, 0.05); transform: translateY(-1px); }
.an-help-card__icon { width: 38px; height: 38px; border-radius: var(--r); background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 6px; }
.an-help-card__icon svg { width: 20px; height: 20px; }
.an-help-card h2 { font-size: 15px; margin: 0; }
.an-help-card p { margin: 0 0 6px; font-size: 12.5px; color: var(--text-2); }
.an-help-card__go { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--teal-dark); }

/* ------------------------------ Contact ------------------------------ */
.an-contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; align-items: start; }
.an-contact-side { display: flex; flex-direction: column; gap: 12px; }
.an-detail { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.an-detail > svg { width: 34px; height: 34px; padding: 8px; flex-shrink: 0; border-radius: var(--r); background: var(--teal-soft); color: var(--teal); }
.an-detail h2 { font-size: 13px; margin: 0 0 2px; }
.an-detail p { margin: 0; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.an-detail--cta { background: var(--teal-soft); box-shadow: none; }
.an-detail--cta .btn { margin-top: 8px; }
.img-captcha img { border: 1px solid var(--line); border-radius: var(--r); }

/* ------------------------------ FAQ ------------------------------ */
.an-faq { max-width: 860px; margin: 20px auto 0; }
.an-faq .accordion-body { font-size: 13px; line-height: 1.6; }
.an-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(11, 127, 134, 0.16); }

/* ------------------------------ Blog + CMS page ------------------------------ */
.an-blog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.an-post { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.an-post__media { aspect-ratio: 2 / 1; background: var(--surface); }
.an-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-post__body { padding: 14px 16px 16px; }
.an-post__body h2 { font-size: 15px; margin-bottom: 4px; }
.an-post__date { font-size: 11.5px; color: var(--text-2); margin-bottom: 8px; }
.an-post__excerpt { font-size: 13px; margin: 0; }
.an-empty { margin-top: 20px; color: var(--text-2); }
.an-prose { max-width: 860px; margin: 20px auto 0; padding: 24px 28px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); font-size: 13.5px; line-height: 1.65; }
.an-prose h2 { font-size: 18px; margin-top: 18px; }
.an-prose h3 { font-size: 15px; margin-top: 14px; }
.an-prose img { border-radius: var(--r); }

/* ------------------------------ errors + offline ------------------------------ */
.an-error { max-width: 520px; margin: 40px auto 24px; text-align: center; }
.an-error__code { display: inline-grid; place-items: center; min-width: 110px; padding: 8px 22px; margin-bottom: 14px; border-radius: var(--r-xl); background: var(--teal-soft); color: var(--teal); font-size: 44px; font-weight: 800; line-height: 1; }
.an-error__code svg { width: 44px; height: 44px; }
.an-error h1 { font-size: 22px; margin-bottom: 8px; }
.an-error p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.an-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }

/* ------------------------------ homepage CMS blocks ------------------------------ */
.an-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.an-review { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.an-review__stars { color: #f5a623; font-size: 14px; letter-spacing: 1px; }
.an-review h3 { font-size: 14px; margin: 0; }
.an-review p { flex: 1; margin: 0; font-size: 12.5px; color: var(--text); }
.an-review footer { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--text-2); }
.an-review footer strong { display: block; color: var(--ink); font-size: 12.5px; }
.an-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.an-feature { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 110px; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(115deg, #08485a 0%, #0a6a72 100%); color: #fff; }
.an-feature:hover { color: #fff; box-shadow: var(--shadow-pop); }
.an-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.an-feature__title { position: relative; padding: 18px 18px 14px; font-size: 15px; font-weight: 800; background: linear-gradient(0deg, rgba(6, 38, 60, 0.78), transparent); }

/* ------------------------------ mobile ------------------------------ */
@media (max-width: 991.98px) {
  .an-info-hero { margin-top: 10px; padding: 14px 18px 22px; min-height: 0; border-radius: 16px; }
  .an-info-hero .breadcrumb { margin-bottom: 14px; }
  .an-info-hero h1, .an-info-hero--compact h1 { font-size: 21px; }
  .an-info-hero p { font-size: 12.5px; max-width: 30ch; }
  .an-info-hero__copy { max-width: 100%; }
  .an-info-hero__art, .an-info-hero--compact .an-info-hero__art { width: 72px; height: 72px; top: auto; bottom: 14px; transform: none; inset-inline-end: 14px; }
  .an-info-hero__art::before { inset: 8px; }
  .an-info-hero__art svg, .an-info-hero--compact .an-info-hero__art svg { width: 32px; height: 32px; }
  .an-info-hero p { max-width: calc(100% - 84px); }
  .an-story { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 18px; padding-bottom: 18px; }
  .an-story__art { height: 90px; }
  .an-story h2 { font-size: 20px; }
  .an-story p { font-size: 13px; }
  .an-values { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; padding-bottom: 18px; border-bottom: 0; }
  .an-values__title { font-size: 20px; margin-bottom: 4px; }
  .an-value { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; text-align: start; border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-card); }
  .an-value svg { flex-shrink: 0; }
  .an-value h3 { margin: 0; }
  .an-mv { grid-template-columns: minmax(0, 1fr); padding: 8px 0; margin-top: 0; }
  .an-mv__item { padding: 14px 16px; }
  .an-mv__item + .an-mv__item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .an-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; padding: 16px 4px; }
  .an-stats__item { justify-content: flex-start; padding-inline: 14px; gap: 10px; }
  .an-stats__item:nth-child(odd) { border-inline-start: 0; }
  .an-stats__item > svg { width: 26px; height: 26px; }
  .an-stats strong { font-size: 18px; }
  .an-stats span { font-size: 12px; }
  .an-info-cta { flex-direction: column; align-items: flex-start; padding: 16px 18px; }
  .an-policy-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 12px; }
  .an-policy-side { position: static; }
  .an-policy-toggle { display: flex; }
  .an-policy-nav__title { display: none; }
  .an-policy { padding: 16px; }
  .an-policy__title { font-size: 20px; }
  .an-help-grid, .an-blog, .an-reviews, .an-features { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .an-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .an-prose { padding: 16px; }
  .an-error { margin-top: 24px; }
}
@media (min-width: 992px) {
  .an-policy-toggle { display: none !important; }
}
