/* Listing-page content moved from patch v1 into the theme (Phase 6).
   - /classes?sort=english: intro, comparison table, jump link (#alfac-english-listing-intro) and the exam-preparation
     section (#alfac-international-exam-courses). Was inline styles in the patch JS + «brand colours» CSS (navy buttons).
   - /categories/الدورات-الادارية: intro card (#alfac-admin-intro), was patch item 18c.
   Values are the patch values, so the page looks as it does today. */

/* ---- English listing intro ---- */
.alx-listing-intro { padding-top: 24px; padding-bottom: 12px; line-height: 1.9; color: #1f2937; }
.alx-listing-intro p { margin: 0 0 1rem; }
.alx-listing-intro a,
.alx-exam-prep__more a { color: #0a7f5c; text-decoration: underline; font-weight: 700; }
.alx-listing-intro a:hover,
.alx-exam-prep__more a:hover { color: #075e44; }
.alx-listing-intro a:focus-visible,
.alx-exam-prep a:focus-visible,
.alx-cat-intro a:focus-visible,
.alx-listing-compare summary:focus-visible { outline: 3px solid #C9A86A; outline-offset: 2px; border-radius: 2px; }

.alx-listing-compare { margin: 16px 0; border: 1px solid #d8e5df; border-radius: 12px; padding: 14px 18px; background: #f8fbf9; }
.alx-listing-compare summary { cursor: pointer; color: #112569; font-weight: 700; font-size: 1.1rem; min-height: 44px; padding: 8px 0; }
.alx-listing-compare__scroll { overflow-x: auto; margin-top: 12px; -webkit-overflow-scrolling: touch; }
.alx-listing-compare table { width: 100%; min-width: 520px; border-collapse: collapse; text-align: right; }
.alx-listing-compare th { padding: 10px; }
.alx-listing-compare td { padding: 10px; border-top: 1px solid #e5e7eb; }
.alx-listing-compare__price { white-space: nowrap; }
.alx-listing-compare .alx-listing-compare__note { font-size: .9rem; margin: 10px 0 0; }
.alx-listing-intro .alx-listing-jump { margin-top: 12px; line-height: 1.8; }

/* ---- International exam preparation ---- */
.alx-exam-prep { margin: 40px auto; padding-top: 24px; padding-bottom: 28px; scroll-margin-top: 90px; }
.alx-exam-prep__inner { border-top: 2px solid #e5e7eb; padding-top: 28px; }
.alx-exam-prep h2 { color: #112569; font-size: 26px; margin-bottom: 12px; }
.alx-exam-prep__lead { line-height: 1.9; margin-bottom: 22px; }
.alx-exam-prep__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.alx-exam-prep__card {
  border: 1px solid #e1e7ed; border-radius: 16px; padding: 22px; background: #fff;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 4px 14px rgba(17, 37, 105, .05); min-width: 0;
}
.alx-exam-prep__card h3 { font-size: 20px; line-height: 1.6; color: #112569; margin: 0; }
.alx-exam-prep__card h3 a { color: inherit; }
.alx-exam-prep__card p { font-size: 15px; line-height: 1.8; margin: 0 0 8px; flex: 1; }
.alx-exam-prep .alx-exam-prep__btn {
  display: block; text-align: center; background: #112569; color: #fff; border-radius: 9px; padding: 11px 14px;
  font-weight: 700; white-space: nowrap; transition: background .2s; text-decoration: none;
}
.alx-exam-prep .alx-exam-prep__btn:hover { background: #1E3A8A; color: #fff; }
.alx-exam-prep__more { margin-top: 22px; line-height: 1.9; }

/* ---- «الدورات الإدارية» intro card (18c) ---- */
.alx-cat-intro { margin: 24px auto 8px; }
.alx-cat-intro__card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px 22px; box-shadow: 0 2px 10px rgba(17, 37, 105, .05); }
.alx-cat-intro .alx-cat-intro__lead { margin: 0; color: #334155; font-size: 1rem; line-height: 1.9; }
.alx-cat-intro__lead a { color: #0b5d3b; font-weight: 700; text-decoration: underline; }
.alx-cat-intro .alx-cat-intro__label { margin: 16px 0 10px; color: #112569; font-size: .9rem; font-weight: 700; }
.alx-cat-intro__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.alx-cat-intro__chips a {
  display: inline-block; padding: 7px 14px; border: 1px solid #d5e6de; background: #f3f8f6; color: #0b5d3b;
  border-radius: 999px; font-size: .88rem; font-weight: 600; text-decoration: none; line-height: 1.5; transition: background .15s, border-color .15s;
}
.alx-cat-intro__chips a:hover { background: #e3f1ea; border-color: #0a7f5c; color: #0b5d3b; }
.alx-cat-intro__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef0f3; }
.alx-cat-intro__foot p { margin: 0; flex: 1 1 260px; color: #475569; font-size: .92rem; line-height: 1.8; }
.alx-cat-intro__btn { display: inline-block; padding: 9px 18px; border-radius: 10px; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; background: #112569; color: #fff; border: 1px solid #112569; }
.alx-cat-intro__btn:hover { background: #1E3A8A; color: #fff; }
.alx-cat-intro__btn--alt { background: #fff; color: #112569; }
.alx-cat-intro__btn--alt:hover { background: #f1f5fb; color: #112569; }

@media (max-width: 575px) {
  .alx-cat-intro__card { padding: 16px; }
  .alx-cat-intro__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .alx-cat-intro__chips a { display: block; text-align: center; padding: 8px 6px; font-size: .82rem; border-radius: 10px; }
  .alx-cat-intro__foot .alx-cat-intro__btn { flex: 1 1 auto; text-align: center; }
}
