/* ============================================================
   نادي الصواري — أنماط تكميلية (ما لا يعبّر عنه theme.json)
   ============================================================ */

/* ---------- كلمة الرئيس التنفيذي ---------- */
.als-ceo-message { text-align: center; }
.als-ceo-photo {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--als-gold);
  box-shadow: 0 10px 26px -12px rgba(10,36,64,.45);
}
.als-ceo-quote-mark {
  font-size: 5rem;
  font-weight: 900;
  color: var(--als-gold);
  line-height: 1;
  margin-bottom: -1rem;
}
.als-ceo-body p {
  color: var(--als-ink);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 2;
  margin: 0 0 1.3rem;
}
.als-ceo-signature {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--als-gold);
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
}
.als-ceo-signature strong { color: var(--als-navy); font-size: 1.1rem; }
.als-ceo-signature span { color: var(--als-slate); font-size: 0.9rem; font-weight: 700; }

/* ---------- نشأة النادي (سرد تاريخي — لا نظير له في watan) ---------- */
.als-history-wrap {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.als-history-year {
  flex: 0 0 220px;
  text-align: center;
  padding-inline-end: 3rem;
  border-inline-end: 2px solid var(--als-gold);
}
.als-history-year span {
  display: block;
  font-weight: 900;
  font-size: 4.4rem;
  color: var(--als-blue);
  line-height: 1;
  unicode-bidi: plaintext;
}
.als-history-year em {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--als-muted);
}
.als-history-body { flex: 1 1 380px; }
.als-history-body h2 { font-size: 1.7rem; color: var(--als-navy); margin: 0.4rem 0 1rem; }
.als-history-body > p { color: var(--als-slate); line-height: 1.9; margin: 0 0 1.2rem; }
.als-history-highlight {
  border-inline-start: 4px solid var(--als-gold);
  background: var(--als-surface);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  color: var(--als-ink);
  line-height: 1.8;
}
@media (max-width: 700px) {
  .als-history-year { border-inline-end: 0; border-bottom: 2px solid var(--als-gold); padding-inline-end: 0; padding-bottom: 1.5rem; flex-basis: 100%; }
}

/* ---------- إنجازات عبر الملاعب (بطاقات أيقونة+نص — لا نظير له في watan) ---------- */
.als-achievements-title { font-size: 1.7rem; color: var(--als-navy); margin: 0.4rem 0 1.8rem; }
.als-achv-list { display: flex; flex-direction: column; gap: 1rem; }
.als-achv-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid var(--als-line);
  border-inline-start: 4px solid var(--als-blue);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
}
.als-achv-icon {
  flex: 0 0 52px;
  height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: var(--als-surface);
  border-radius: 50%;
}
.als-achv-text { display: flex; flex-direction: column; gap: 0.3rem; }
.als-achv-text strong { color: var(--als-navy); font-size: 1.02rem; }
.als-achv-text span { color: var(--als-slate); font-size: 0.92rem; line-height: 1.7; }

:root {
  --als-blue: #2D83D4;
  --als-blue-deep: #1C6FBE;
  --als-navy: #0A2440;
  --als-navy-deep: #08203B;
  --als-gold: #E7B43B;
  --als-ink: #122A43;
  --als-slate: #4B6076;
  --als-muted: #8497A9;
  --als-line: #E4EAF1;
  --als-surface: #F6F9FC;
}

body { background: var(--als-surface); }

/* ---------- الترويسة ---------- */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--als-line);
  transition: box-shadow .25s ease;
}
.wp-site-blocks > header.wp-block-template-part.is-scrolled {
  box-shadow: 0 8px 20px -14px rgba(10,36,64,.4);
}
.wp-site-blocks > header.wp-block-template-part.is-scrolled .als-logo img {
  height: 34px;
}
/* شكل حبّي (Pill) للقائمة الرئيسية — عناصر مستقلة كل منها كبسولة، تمتلئ
   باللون الأساسي عند المرور/التفعيل، بدل الروابط المسطّحة السابقة. */
.als-header .wp-block-navigation {
  font-weight: 700;
  font-size: 0.92rem;
  gap: 0.3rem;
}
.als-header .wp-block-navigation-item { display: flex; }
.als-header .wp-block-navigation a {
  color: var(--als-ink);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
}
/* حركة الكبسولة على روابط المستوى الأول فقط (سلسلة أبناء مباشرة تستثني
   روابط القائمة المنسدلة) — تمتلئ بانتفاخ مرن (bounce) بدل تغيّر لون فوري،
   والنص نفسه يرتفع قليلاً ليعطي إحساس حيوية. */
.als-header .wp-block-navigation__container > .wp-block-navigation-item > a,
.als-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: color .2s ease, transform .2s ease;
}
.als-header .wp-block-navigation__container > .wp-block-navigation-item > a::before,
.als-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--als-blue);
  border-radius: 999px;
  transform: scale(0);
  transition: transform .38s cubic-bezier(.34,1.56,.64,1);
  z-index: -1;
}
.als-header .wp-block-navigation__container > .wp-block-navigation-item > a:hover,
.als-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.als-header .wp-block-navigation .current-menu-item > a {
  color: #fff;
  transform: translateY(-2px);
}
.als-header .wp-block-navigation__container > .wp-block-navigation-item > a:hover::before,
.als-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::before,
.als-header .wp-block-navigation .current-menu-item > a::before {
  transform: scale(1);
}
/* دخول متتابع للعناصر عند تحميل الصفحة */
@keyframes als-nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.als-header .wp-block-navigation__container > .wp-block-navigation-item {
  animation: als-nav-in .5s ease both;
}
.als-header .wp-block-navigation__container > .wp-block-navigation-item:nth-child(1) { animation-delay: .03s; }
.als-header .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2) { animation-delay: .08s; }
.als-header .wp-block-navigation__container > .wp-block-navigation-item:nth-child(3) { animation-delay: .13s; }
.als-header .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) { animation-delay: .18s; }
.als-header .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) { animation-delay: .23s; }
.als-header .wp-block-navigation__container > .wp-block-navigation-item:nth-child(6) { animation-delay: .28s; }
/* دخول القائمة المنسدلة بانزلاق وتلاشٍ */
.als-header .wp-block-navigation-submenu .wp-block-navigation__submenu-container {
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.als-header .wp-block-navigation-submenu:hover .wp-block-navigation__submenu-container,
.als-header .wp-block-navigation-submenu:focus-within .wp-block-navigation__submenu-container {
  transform: translateY(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .als-header .wp-block-navigation__container > .wp-block-navigation-item { animation: none !important; }
  .als-header .wp-block-navigation a::before,
  .als-header .wp-block-navigation-item__content::before { transition: none !important; }
}
.als-header .wp-block-navigation-submenu > .wp-block-navigation-item__content {
  padding-inline-end: 1.6rem;
}
.als-header .wp-block-navigation__submenu-container {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--als-line);
  box-shadow: 0 16px 32px -18px rgba(10,36,64,.28);
  padding: 0.4rem;
  min-width: 220px;
}
.als-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
}
.als-header .wp-block-navigation__submenu-container a:hover {
  background: var(--als-surface);
  color: var(--als-blue);
}
.als-logo img { display: block; height: 46px; width: auto; transition: height .25s ease; }
.als-store-btn a {
  background: var(--als-navy);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.7rem 1.35rem;
  border-radius: 3px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.als-store-btn a::after {
  content: "";
  width: 15px; height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1.6'/%3E%3Ccircle cx='18' cy='20' r='1.6'/%3E%3Cpath d='M6 6L5 2H2'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1.6'/%3E%3Ccircle cx='18' cy='20' r='1.6'/%3E%3Cpath d='M6 6L5 2H2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.als-store-btn a:hover { background: var(--als-blue-deep); }

/* ---------- الهيرو ---------- */
.als-hero {
  position: relative;
  overflow: hidden;
  background: var(--als-navy);
  isolation: isolate;
}
/* خلفية صورة حقيقية (موزاييك إنجازات) — تظهر في الشريط الأيسر غير المغطّى
   بالقطعة المائلة، وتختفي تحتها في الجزء الأيمن حيث يقع النص (تباين آمن
   بلا حاجة لطبقة تعتيم إضافية). */
.als-hero .als-hero-bg {
  position: absolute;
  top: -15%; left: 0; right: 0;
  width: 100% !important;
  max-width: none !important;
  height: 130%; /* أطول من اللازم كي لا تكشف حركة parallax حافة فارغة */
  margin: 0 !important;
  z-index: -2;
  will-change: transform;
}
.als-hero .als-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; animation: als-kenburns 20s ease-out forwards; }
@keyframes als-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.als-hero::before {
  content: "";
  position: absolute;
  inset: 0 -12% 0 34%;
  background: linear-gradient(135deg, #2D83D4 0%, #1C6FBE 55%, #0E2E52 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: .92;
  z-index: -1;
}
.als-hero::after {
  content: "";
  position: absolute;
  left: -40px; bottom: -60px;
  width: 420px; height: 420px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M40 180 L40 20 L150 180 Z' fill='%23ffffff'/%3E%3Cpath d='M95 180 L95 55 L175 180 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .06;
  z-index: -1;
  pointer-events: none;
}
.als-hero, .als-hero :where(h1, h2, p) { color: #fff; }
.als-hero .als-kicker { color: #8FC4F0; }

/* عنصر "كيكر" مشترك */
.als-kicker {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: .22em;
  color: var(--als-blue);
  text-transform: none;
}

/* الأقسام الداكنة */
.als-dark { position: relative; overflow: hidden; background: var(--als-navy); }
.als-dark, .als-dark :where(h1, h2, h3, p, li) { color: #fff; }
.als-dark .als-kicker { color: #8FC4F0; }
.als-dark::after {
  content: "";
  position: absolute; right: -30px; top: -40px;
  width: 360px; height: 360px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M40 180 L40 20 L150 180 Z' fill='%23ffffff'/%3E%3Cpath d='M95 180 L95 55 L175 180 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
  opacity: .06; pointer-events: none;
}

/* ---------- بطاقة المباراة القادمة ---------- */
.als-nextmatch {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 30px 60px -24px rgba(10,36,64,.35);
  overflow: hidden;
}
.als-nextmatch .sp-template-event-blocks,
.als-nextmatch .sp-event-blocks { margin: 0; }

/* ---------- بطاقات الأخبار ---------- */
.als-news-card {
  background: #fff;
  border: 1px solid var(--als-line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.als-news-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(10,36,64,.28); }
.als-news-card .wp-block-post-featured-image { margin: 0 0 0 0; display: block; overflow: hidden; background: linear-gradient(135deg, var(--als-blue), #0E2E52); }
.als-news-card .wp-block-post-featured-image img { margin: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.als-news-card > .wp-block-group { margin-top: 0; }
.als-news-card .wp-block-post-title { font-size: 1.12rem; line-height: 1.45; }
.als-news-card .wp-block-post-title a { color: var(--als-ink); }
.als-news-card .wp-block-post-date { color: var(--als-muted); font-weight: 700; font-size: 0.78rem; }

/* الأخبار بلا صورة: كتلة تدرّج */
.alsawari-no-thumb .wp-block-post-featured-image { display: none; }

/* شارة تصنيف */
.als-badge {
  display: inline-block;
  background: var(--als-gold);
  color: var(--als-navy);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
}

/* شارة تصنيف على بطاقات الأخبار */
.als-cat-badge { font-size: 0; line-height: 0; }
.als-cat-badge a {
  display: inline-block;
  background: var(--als-gold);
  color: var(--als-navy) !important;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  text-decoration: none !important;
}
.als-cat-badge a:hover { background: #d7a52f; }

/* تبويبات تصنيفات الأخبار */
.als-cat-tabs .wp-block-group { gap: 0; }
.als-cat-tabs p { margin: 0; }
.als-cat-tabs a {
  display: inline-block;
  padding: 1.1rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--als-slate);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.als-cat-tabs a:hover { color: var(--als-blue); }
body.category .als-cat-tabs a[href$="/news/"],
body.blog .als-cat-tabs a[href$="/news/"] { color: var(--als-blue); border-bottom-color: var(--als-blue); }
body.category-sports .als-cat-tabs a[href$="/sports/"],
body.category-social .als-cat-tabs a[href$="/social/"],
body.category-commercial .als-cat-tabs a[href$="/commercial/"] {
  color: var(--als-blue);
  border-bottom-color: var(--als-blue);
}

/* ---------- شريط الرعاة ---------- */
.als-sponsors { background: #fff; border-top: 1px solid var(--als-line); border-bottom: 1px solid var(--als-line); }
.als-sponsors .wp-block-image img {
  filter: grayscale(1);
  opacity: .55;
  max-height: 46px;
  width: auto;
  transition: filter .2s, opacity .2s;
}
.als-sponsors .wp-block-image img:hover { filter: none; opacity: 1; }

/* ---------- بطاقات الحوكمة ---------- */
.als-govcard {
  background: #fff;
  border: 1px solid var(--als-line);
  border-radius: 8px;
  padding: 1.6rem 1.75rem;
  transition: border-color .18s, transform .18s;
}
.als-govcard:hover { border-color: var(--als-blue); transform: translateY(-2px); }

/* ---------- التذييل ---------- */
.wp-site-blocks > footer.wp-block-template-part { background: var(--als-navy-deep); }
footer.wp-block-template-part,
footer.wp-block-template-part :where(p, li, a, h2, h3) { color: #B8CBDE; }
footer.wp-block-template-part h2, footer.wp-block-template-part h3 { color: #fff; }
footer.wp-block-template-part a:hover { color: #fff; }
.als-footer-title { font-weight: 800; font-size: 0.8rem; letter-spacing: .14em; color: #6E86A0 !important; }

/* ---------- المحتوى الداخلي (هادئ للقراءة) ---------- */
.als-page-hero {
  background: var(--als-navy);
  position: relative;
  overflow: hidden;
}
.als-page-hero, .als-page-hero :where(h1, p) { color: #fff; }
.als-page-hero .als-kicker { color: #8FC4F0; }
.als-page-hero::after {
  content: "";
  position: absolute; left: -40px; bottom: -60px;
  width: 320px; height: 320px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M40 180 L40 20 L150 180 Z' fill='%23fff'/%3E%3Cpath d='M95 180 L95 55 L175 180 Z' fill='%23fff'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain; opacity: .06;
}

.entry-content, .wp-block-post-content { font-weight: 500; line-height: 1.95; color: #3A4C5E; }
.wp-block-post-content :where(h2) { color: var(--als-navy); margin-top: 2.2rem; }

/* ---------- SportsPress بهوية القالب ---------- */
.sp-template { margin: 1.5rem 0; }
.sp-data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; border: 1px solid var(--als-line); border-radius: 6px; overflow: hidden; }
.sp-data-table thead th {
  background: var(--als-navy);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.75rem 0.9rem;
  text-align: center;
}
.sp-data-table thead th:first-child { text-align: start; }
.sp-data-table tbody td { padding: 0.7rem 0.9rem; border-top: 1px solid var(--als-line); text-align: center; }
.sp-data-table tbody td:first-child, .sp-data-table tbody td.data-name, .sp-data-table tbody td.data-event { text-align: start; }
.sp-data-table tbody tr:nth-child(even) { background: #FAFCFE; }
.sp-data-table .sorting-highlight,
.sp-highlight,
.sp-data-table tbody tr.sp-row-no-0 { background: #F1F7FE !important; }
.sp-data-table a { color: var(--als-ink); font-weight: 700; }
.sp-data-table a:hover { color: var(--als-blue); }

/* إخفاء أعمدة/عناصر مساعدة غير مرغوبة */
.sp-event-list date, .sp-event-blocks date, .sp-template date { display: none !important; }
.sp-data-table .data-venue, .sp-event-list .data-venue { display: none !important; }
.sp-data-table caption, .sp-table-caption { display: none; }

/* قائمة اللاعبين — عناوين المراكز */
.sp-player-list h4, .sp-template-player-list h4 {
  background: none;
  color: var(--als-navy);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 1.8rem 0 0.6rem;
  padding: 0 0 0.5rem;
  border-bottom: 2px solid var(--als-blue);
}
.sp-player-list h4:first-of-type { margin-top: 0; }

/* تصحيح تسميات ترويسة جدول الترتيب (ترجمة SportsPress العربية غير دقيقة) */
.sp-league-table th.data-rank { font-size: 0; }
.sp-league-table th.data-rank::after { content: "#"; font-size: 0.8rem; }
.sp-league-table th.data-name { font-size: 0; }
.sp-league-table th.data-name::after { content: "النادي"; font-size: 0.8rem; }

/* المباراة القادمة على الرئيسية */
.als-nextmatch .sp-template { margin: 0; }
.als-nextmatch .sp-data-table { border: 0; font-size: 1rem; }
.als-nextmatch .sp-data-table thead { display: none; }
.als-nextmatch .sp-data-table tbody td { border: 0; padding: 0.35rem 0; background: none !important; }
.als-nextmatch .sp-data-table .data-event { font-weight: 800; font-size: 1.15rem; color: var(--als-navy); }
.als-nextmatch .sp-data-table .data-time { color: var(--als-blue); font-weight: 800; }

/* الجهاز الفني */
.als-staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; }
.als-staff-card { display: flex; align-items: center; gap: 0.9rem; background: #fff; border: 1px solid var(--als-line); border-radius: 8px; padding: 0.9rem 1rem; }
.als-staff-card strong { display: block; font-size: 0.98rem; color: var(--als-ink); }
.als-staff-card span { font-size: 0.8rem; font-weight: 700; color: var(--als-muted); }
.als-staff-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.als-staff-photo--empty { background: #EEF3F9; display: inline-block; }

.single-sp_player .sp-header, .sp-player-numbers { background: var(--als-navy); color: #fff; }

/* جدول SportsPress قابل للتمرير أفقياً على الجوال */
.sp-scrollable-table-wrapper, .sp-table-wrapper { overflow-x: auto; touch-action: pan-x pan-y; }

/* إخفاء مؤشرات الفرز الافتراضية في جداول SportsPress */
.sp-data-table thead th { background-image: none !important; }
.dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_length { display: none; }

/* أرقام النتائج بلا انعكاس ثنائي الاتجاه */
.sp-event-list .data-time, .sp-event-blocks .sp-event-results { unicode-bidi: plaintext; }

/* ---------- نماذج Contact Form 7 ---------- */
.wpcf7 { margin-top: 0.5rem; }
.wpcf7 label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--als-ink);
  margin-bottom: 1.1rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--als-line);
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--als-ink);
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--als-blue);
  box-shadow: 0 0 0 3px rgba(45,131,212,.15);
}
.wpcf7 input[type="submit"] {
  background: var(--als-blue);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 0.5rem;
}
.wpcf7 input[type="submit"]:hover { background: var(--als-blue-deep); }
.wpcf7-not-valid-tip { color: #c0392b; font-size: 0.8rem; font-weight: 700; }
.wpcf7 .wpcf7-response-output {
  border-radius: 4px;
  border-width: 1px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 1rem;
  margin: 1rem 0 0;
}

/* بطاقة الأخبار: تاريخ فوق العنوان بمسافة مريحة */
.als-news-card .wp-block-post-featured-image { margin-bottom: 0 !important; }
.als-news-card .wp-block-post-date + .wp-block-post-title { margin-top: 0.35rem; }

/* ---------- عام ---------- */
.has-navy-background-color { background-color: var(--als-navy) !important; }
.has-surface-background-color { background-color: var(--als-surface) !important; }
.is-style-als-sharp { border-radius: 3px !important; }

/* ---------- استجابة الجوال ---------- */
/* ملاحظة: overflow-x على body/.wp-site-blocks كان يكسر position:sticky على
   الترويسة (أي قيمة overflow غير visible على المحور x تجبر المتصفح على جعل
   overflow-y = auto ضمنيًا لنفس العنصر، فيفقد أبناؤه اللاصقون تموضعهم).
   الحماية من الانسكاب الأفقي أصبحت فقط على html (لا تكسر اللصق). */
html { overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y; }
body { max-width: 100vw; position: relative; overscroll-behavior-x: none; touch-action: pan-y; }
/* عناصر الزينة المطلقة يجب ألا تُنتِج تمريراً أفقياً */
.als-hero, .als-dark, .als-page-hero { max-width: 100%; }

@media (max-width: 900px) {
  /* !important لتخطّي أنماط WordPress المولَّدة تلقائيًا من إعدادات layout للبلوك
     (تُطبَع كـ<style> داخلي في head بعد ملفات القالب، فتتغلّب على قواعدنا بدونه). */
  .als-header { flex-wrap: wrap !important; gap: 0.75rem 1rem; }
  .als-header > .wp-block-navigation { order: 2 !important; flex-basis: auto !important; width: auto !important; }
  .als-header > .wp-block-group:last-child { order: 3 !important; }
  /* المتجر موجود أصلًا كعنصر داخل القائمة (يظهر عبر ☰)، فيُخفى زر الترويسة
     المنفصل على الجوال تفاديًا للتكرار. */
  .als-store-btn { display: none !important; }
}

/* لوحة القائمة المنسدلة على الجوال (تفتح عبر ☰) بلا تنسيق افتراضي واضح من
   ووردبريس — نضيف خلفية وزر إغلاق واضحين بهوية النادي. */
.wp-block-navigation__responsive-container.is-menu-open {
  background: #fff !important;
  padding: 4.5rem 1.75rem 2rem !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  gap: 1.75rem !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  position: fixed !important;
  top: 1rem;
  inset-inline-start: 1.25rem;
  z-index: 100000;
  width: 44px;
  height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--als-ink);
  color: #fff;
  border-radius: 50%;
  border: none;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  color: var(--als-ink);
  font-weight: 700;
  font-size: 1.15rem;
}

@media (max-width: 781px) {
  /* فرض تراص كل الأعمدة على الجوال (يتغلّب على flex-basis المضمّن) */
  .wp-block-columns { flex-wrap: wrap !important; }
  .wp-block-columns > .wp-block-column { flex-basis: 100% !important; max-width: 100% !important; }

  .als-hero { padding-top: 3.25rem !important; padding-bottom: 3.5rem !important; }
  .als-hero::before { inset: 0 !important; clip-path: none !important; opacity: .5; }
  /* الموزاييك مصمَّم بنصفين: شبكة صور الفرق يسارًا وصورة الفتيات يمينًا. القصّ
     المركزي (object-fit:cover الافتراضي) على شاشة ضيقة يُظهر الفتيات فقط
     ويُخفي شبكة الفرق تمامًا. نزيح نقطة التركيز يسارًا لإظهار تنوّع الصور. */
  .als-hero .als-hero-bg img { object-position: 15% center; }
  .als-hero::after, .als-dark::after, .als-page-hero::after { width: 180px; height: 180px; left: -20px; right: auto; }

  .als-logo img { height: 34px; }
  .als-header .wp-block-site-title { font-size: 0.95rem; }

  .als-nextmatch { margin-top: -2rem !important; }

  .als-staff-grid { grid-template-columns: 1fr; }

  /* جداول SportsPress: تمرير أفقي داخل حاويتها فقط */
  .sp-template { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; touch-action: pan-x pan-y; }
  .als-nextmatch .sp-data-table { min-width: 0; }

  .als-page-hero { padding-top: 2.4rem !important; padding-bottom: 2.4rem !important; }
}

/* ============================================================
   حركات وتفاعلات إضافية (يُفعِّلها assets/reveal.js)
   ============================================================ */
html { scroll-behavior: smooth; }

/* تلاشي الصفحة كاملة عند التحميل */
@keyframes als-pageIn { from { opacity: 0; } to { opacity: 1; } }
.wp-site-blocks { animation: als-pageIn .5s ease both; }

/* كشف عند التمرير */
.als-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22,.68,0,1.01);
}
.als-reveal.als-in { opacity: 1; transform: translateY(0); }
.als-news-card.als-reveal:nth-child(2), .als-govcard.als-reveal:nth-child(2), .als-achv-item.als-reveal:nth-child(2) { transition-delay: .08s; }
.als-news-card.als-reveal:nth-child(3), .als-govcard.als-reveal:nth-child(3), .als-achv-item.als-reveal:nth-child(3) { transition-delay: .16s; }
.als-achv-item.als-reveal:nth-child(4) { transition-delay: .24s; }

/* شعارات الرعاة: تلاشي خفيف عند الظهور */
.als-sponsors .wp-block-image.als-reveal { transform: translateY(14px); }
.als-sponsors .wp-block-image.als-reveal.als-in { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .als-hero .als-hero-bg img, .wp-site-blocks { animation: none !important; }
  .als-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .als-hero-bg { transform: none !important; }
}
