/* AMANAH AI — knowledge pages (Islamic financing, Shariah screening, security, FAQ, about) in the site's design:
   teal hero with the geometric overlay, white and light sections, gold accents. Uses the tokens of css/tokens.css and the
   shared components of css/style.css (section-tag, section-title, feature-card, comparison-table, faq-item, cta-banner). */
.kn-hero { background: linear-gradient(135deg, #0A5C4E 0%, #0E7C66 60%, #16A085 100%); padding: 80px 0 72px; position: relative; overflow: hidden; }
.kn-hero::before { content: ''; position: absolute; top: -80px; inset-inline-end: -80px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(201, 168, 76, .18) 0%, transparent 70%); pointer-events: none; }
.kn-hero__geo { position: absolute; top: 0; inset-inline-end: 0; bottom: 0; width: 55%; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M60 10l14 36 36 14-36 14-14 36-14-36-36-14 36-14z'/%3E%3Ccircle cx='60' cy='60' r='22'/%3E%3Cpath d='M0 0l30 30M120 0L90 30M0 120l30-30M120 120L90 90'/%3E%3C/g%3E%3C/svg%3E"); }
.kn-hero .container { position: relative; z-index: 1; }
.kn-hero__tag { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 100px; padding: 6px 16px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .9); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 24px; }
[dir="rtl"] .kn-hero__tag { text-transform: none; letter-spacing: 0; }
.kn-hero__title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; color: #fff; line-height: 1.18; margin-bottom: 18px; max-width: 820px; }
.kn-hero__sub { font-size: 17px; color: rgba(255, 255, 255, .84); line-height: 1.65; max-width: 680px; margin-bottom: 30px; }
.kn-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.kn-hero .hero__chips { margin-top: 4px; }

.kn-section { padding: 72px 0; background: var(--white); }
.kn-section--alt { background: var(--bg-alt); }
.kn-section .section-title { margin-bottom: 36px; }
.kn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kn-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kn-card { border: 1.5px solid var(--border); border-radius: 14px; padding: 24px; background: var(--white); position: relative; overflow: hidden; }
.kn-card::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--gold); }
.kn-section--alt .kn-card::before { background: var(--teal); }
.kn-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-pale); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.kn-card__title { font-size: 17px; font-weight: 700; color: var(--txt); margin-bottom: 8px; }
.kn-card__text { font-size: 14.5px; color: var(--txt-m); line-height: 1.65; }
a.kn-card { text-decoration: none; display: block; transition: border-color .2s, box-shadow .2s; }
a.kn-card:hover { border-color: rgba(201, 168, 76, .5); box-shadow: 0 6px 22px rgba(201, 168, 76, .12); }
.kn-card__more { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--teal); }

.kn-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.kn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.kn-list li { display: flex; gap: 16px; padding: 18px 20px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--white); }
.kn-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.kn-list strong { display: block; font-size: 16px; color: var(--txt); margin-bottom: 4px; }
.kn-list p { font-size: 14.5px; color: var(--txt-m); line-height: 1.6; margin: 0; }

.kn-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: kn; }
.kn-step { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 22px; position: relative; }
.kn-step__when { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold-d); background: var(--gold-pale); border-radius: 100px; padding: 3px 10px; margin-bottom: 12px; }
.kn-step__title { font-size: 16px; font-weight: 700; color: var(--txt); margin-bottom: 6px; }
.kn-step__text { font-size: 14px; color: var(--txt-m); line-height: 1.6; }

.kn-dark { background: linear-gradient(135deg, #0A5C4E 0%, #0E7C66 100%); padding: 72px 0; color: #fff; }
.kn-dark__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.kn-dark .section-title { color: #fff; margin-bottom: 14px; }
.kn-dark__text { font-size: 16px; color: rgba(255, 255, 255, .8); line-height: 1.65; }
.kn-dark__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.kn-dark__list > div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 14px; padding: 18px; }
.kn-dark__list dt { font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 6px; }
.kn-dark__list dd { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .72); line-height: 1.55; overflow-wrap: anywhere; }
.kn-dark__list a { color: var(--gold-l); }

.kn-compare { overflow-x: auto; }
.kn-compare .comparison-table td, .kn-compare .comparison-table th { font-size: 14px; vertical-align: top; }
.kn-compare .comparison-table th:nth-child(3), .kn-compare .comparison-table td:nth-child(3) { background: rgba(14, 124, 102, .04); }
.kn-compare .comparison-table th:nth-child(3) { color: var(--teal); }

.kn-faq { max-width: 820px; }
.kn-faq__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.kn-faq__nav a { font-size: 13px; font-weight: 600; color: var(--teal); background: var(--teal-pale); border-radius: 100px; padding: 6px 14px; text-decoration: none; }
.kn-faq__group { margin-bottom: 36px; scroll-margin-top: 96px; }
.kn-faq__group h2 { font-size: 20px; font-weight: 800; color: var(--txt); margin-bottom: 12px; }

.kn-statuses li:nth-child(1) .kn-num { background: var(--teal); }
.kn-statuses li:nth-child(2) .kn-num { background: var(--gold); }
.kn-statuses li:nth-child(3) .kn-num { background: var(--blue); }
.kn-statuses li:nth-child(4) .kn-num { background: var(--red); }
.kn-statuses li:nth-child(5) .kn-num { background: var(--txt-l); }

@media (max-width: 1024px) {
  .kn-grid, .kn-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kn-split, .kn-dark__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .kn-hero { padding: 56px 0 48px; }
  .kn-hero__geo { width: 100%; opacity: .3; }
  .kn-section, .kn-dark { padding: 52px 0; }
  .kn-grid, .kn-grid--2, .kn-steps, .kn-dark__list { grid-template-columns: minmax(0, 1fr); }
  .kn-hero__btns .btn { width: 100%; justify-content: center; }
}
