/* ============================================================
   نادي الوطن — الهوية البصرية (مطابقة لكانفاس التصميم)
   "عصري رياضي جريء" — زوايا حادّة · ذهبي · كريمي · أرقام أقسام ضخمة
   ============================================================ */

:root {
  --als-blue: #17A398;      /* فيروزي النادي (مطابق للشعار الرسمي) */
  --als-blue-deep: #0F6A63;
  --als-navy: #0B4B46;      /* فيروزي غامق (ديب) */
  --als-navy-deep: #16221F; /* حبر الغابة */
  --als-gold: #E0A93C;
  --als-gold-deep: #c9982f;
  --als-teal: #4DD9D2;      /* فيروزي فاتح ساطع (لون الشعار الحقيقي) للكيكر على الداكن */
  --als-ink: #16221F;
  --als-slate: #5A6763;
  --als-muted: #9AA5A0;
  --als-line: #E7E1D3;
  --als-surface: #F1EEE4;   /* كريمي */
  --als-sharp: 4px;
}

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

h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.04; }

/* بطاقات: زوايا حادّة في كل مكان */
.card, .als-news-card, .als-govcard, .als-nextmatch,
.wp-block-group.has-background { border-radius: var(--als-sharp); }

/* ---------- الترويسة ---------- */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--als-surface);
  border-bottom: 1px solid var(--als-line);
  transition: padding .25s ease, box-shadow .25s ease;
}
/* ترويسة مضغوطة بعد بدء التمرير (يضيف الكلاس assets/reveal.js) */
.wp-site-blocks > header.wp-block-template-part.is-scrolled {
  box-shadow: 0 8px 20px -14px rgba(6,36,32,.4);
}
.wp-site-blocks > header.wp-block-template-part.is-scrolled .als-logo img {
  height: 38px;
}
.als-header .wp-block-navigation {
  font-weight: 800;
  font-size: 0.9rem;
}
.als-header .wp-block-navigation a { color: var(--als-ink); position: relative; }
.als-header .wp-block-navigation a:hover,
.als-header .wp-block-navigation .current-menu-item > a {
  color: var(--als-blue);
  text-decoration: none;
}
/* خط ذهبي متحرّك تحت الرابط — ينمو من المنتصف عند المرور، وثابت للصفحة الحالية */
.als-header .wp-block-navigation a::after {
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: -4px;
  height: 3px;
  background: var(--als-gold);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.als-header .wp-block-navigation a:hover::after,
.als-header .wp-block-navigation .current-menu-item > a::after {
  transform: scaleX(1);
}
.als-logo img { display: block; height: 50px; width: auto; transition: height .25s ease; }
.als-header .wp-block-site-title a { color: var(--als-navy); font-weight: 900; }

/* زر البحث المربّع */
.als-header .wp-block-search__button {
  border: 2px solid var(--als-ink) !important;
  background: transparent !important;
  color: var(--als-ink) !important;
  border-radius: 0 !important;
  width: 44px; height: 44px;
  padding: 0;
}
.als-header .wp-block-search { margin: 0; }

/* زر المتجر — أسود حادّ */
.als-store-btn a {
  background: var(--als-ink);
  color: #fff !important;
  font-weight: 900;
  font-size: 0.88rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  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-header .wc-block-mini-cart__button { color: var(--als-ink); }

/* ---------- عنصر "الكيكر" المشترك ---------- */
.als-kicker {
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--als-blue);
  margin: 0;
}

/* ---------- ترويسة القسم مع رقم ضخم ---------- */
.als-section-head {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.als-section-head .als-idx {
  font-weight: 900;
  font-size: clamp(4.5rem, 3rem + 7vw, 7.5rem);
  line-height: 0.75;
  color: var(--als-blue);
  opacity: 0.12;
  letter-spacing: -0.05em;
  unicode-bidi: plaintext;
}
.als-section-head .als-section-titles { padding-bottom: 0.9rem; }
.als-section-head h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.4rem);
  color: var(--als-navy);
  margin-top: 0.5rem;
}
.als-section-head .als-seeall {
  margin-inline-start: auto;
  align-self: flex-end;
  margin-bottom: 1.1rem;
  font-weight: 900;
  font-size: 0.9rem;
  border-bottom: 3px solid var(--als-gold);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* رابط "المزيد" الموحّد */
.als-morelink a, a.als-morelink {
  font-weight: 900;
  font-size: 0.9rem;
  border-bottom: 3px solid var(--als-gold);
  padding-bottom: 2px;
  color: var(--als-ink);
}
.als-morelink a:hover, a.als-morelink:hover { color: var(--als-blue); text-decoration: none; }

/* ---------- الهيرو (صورة كاملة + شرطة ذهبية يسار + حافة مسنّنة) ---------- */
.als-hero {
  position: relative;
  overflow: hidden;
  background: var(--als-navy);
  isolation: isolate;
  color: #fff;
}
.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; }
/* شرطة ذهبية مائلة — أقصى اليسار */
.als-hero::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -14px;
  width: 96px;
  background: var(--als-gold);
  transform: skewX(-14deg);
  opacity: 0.92;
  z-index: -1;
}
/* خط فيروزي رفيع بجانبها */
.als-hero::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 82px;
  width: 6px;
  background: var(--als-teal);
  transform: skewX(-14deg);
  opacity: 0.85;
  z-index: -1;
}
.als-hero, .als-hero :where(h1, h2, p) { color: #fff; }
.als-hero .als-kicker { color: var(--als-teal); }
.als-hero h1 { text-shadow: 0 2px 24px rgba(6,36,32,.55); }
.als-hero p { text-shadow: 0 1px 12px rgba(6,36,32,.6); }
/* نص محدَّد (outline) للسطر الثاني من العنوان */
.als-hero .als-stroke {
  -webkit-text-stroke: 3px rgba(255,255,255,.92);
  color: transparent;
  display: block;
}
/* حافة مسنّنة أسفل الهيرو */
.als-ridge {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  height: 26px;
  position: absolute;
  left: 0; bottom: -1px;
  z-index: 1;
}

/* ---------- شريط الأخبار المتحرّك ---------- */
.als-ticker {
  background: var(--als-gold);
  color: var(--als-ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.8rem 0;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.als-ticker__track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: als-ticker 40s linear infinite;
}
.als-ticker__track > span { display: inline-block; padding: 0 2.5rem; }
.als-ticker:hover .als-ticker__track { animation-play-state: paused; }
/* المحتوى مكرَّر مرّتين — نُحرّكه بمقدار نصفه فيبدو متّصلاً بلا فراغ */
@keyframes als-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .als-ticker__track { animation: 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: var(--als-teal); }

/* ---------- بطاقة المباراة القادمة — ديب داكن + ظل ذهبي مُزاح ---------- */
.als-nextmatch {
  background: var(--als-navy) !important;
  color: #fff;
  overflow: visible;
  position: relative;
  box-shadow: 10px 10px 0 var(--als-gold);
}
.als-nextmatch .wp-block-column { color: #fff; }
.als-nextmatch, .als-nextmatch :where(h2,h3,p,span,td,th,a) { color: #fff; }
.als-nextmatch .als-kicker { color: var(--als-teal); }
/* دائرة زخرفية */
.als-nextmatch::before {
  content: "";
  position: absolute;
  left: -30px; top: -30px;
  width: 170px; height: 170px;
  border: 14px solid rgba(224,169,60,.22);
  border-radius: 50%;
  pointer-events: none;
}
/* ملصق التذاكر المائل */
.als-ticket-sticker {
  display: inline-block;
  background: var(--als-gold);
  color: var(--als-ink) !important;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0.6rem 1.1rem;
  transform: rotate(-6deg);
}

/* لا تمدّد بطاقة المباراة لطول جدول الترتيب */
.wp-block-columns:has(> .als-nextmatch) { align-items: flex-start; }
.wp-block-column.als-nextmatch { align-self: flex-start; }

/* بطاقة المباراة القادمة — تخطيط غنيّ */
.als-nm { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 1.6rem; }
.als-nm-fixture { display: flex; align-items: center; gap: 1.8rem; }
.als-nm-team { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.als-nm-badge {
  width: 66px; height: 66px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); font-weight: 900; font-size: 1.05rem; color: rgba(255,255,255,.75);
}
.als-nm-badge--watan { background: #fff; }
.als-nm-badge img { max-width: 46px; max-height: 46px; display: block; }
.als-nm-name { font-weight: 900; font-size: 1rem; color: #fff; }
.als-nm-team:not(.is-watan) .als-nm-name { color: rgba(255,255,255,.6); }
.als-nm-vs { font-weight: 900; font-size: 2.6rem; color: var(--als-gold); line-height: 1; }
.als-nm-meta { display: flex; gap: 1.8rem; flex-wrap: wrap; font-weight: 700; font-size: 0.85rem; color: #9FC0BB; }

/* جدول الترتيب داخل البطاقة — صفوف مضغوطة */
.als-standings-card .sp-data-table { border: 0; font-size: 0.9rem; }
.als-standings-card .sp-data-table thead { display: none; }
.als-standings-card .sp-data-table th,
.als-standings-card .sp-data-table td:not(.data-name):not(.data-rank):not(.data-pts) { display: none; }
.als-standings-card .sp-data-table td { border: 0; border-top: 1px solid var(--als-line); padding: 0.7rem 0.3rem; background: none !important; }
.als-standings-card .sp-data-table tr:first-child td { border-top: 0; }
.als-standings-card .sp-data-table .data-name { text-align: start; font-weight: 800; white-space: nowrap; }
.als-standings-card .sp-data-table .data-rank { font-weight: 900; color: var(--als-blue); width: 1.5rem; }
.als-standings-card .sp-data-table .data-pts { font-weight: 900; color: var(--als-navy); text-align: center; width: 2rem; }
.als-standings-card .sp-data-table tbody tr.sp-row-no-0 .data-name { color: var(--als-navy); }
.als-standings-card .sp-data-table tbody tr.sp-row-no-0 td { border-bottom: 2px solid var(--als-navy); }

/* SportsPress داخل بطاقة المباراة القادمة */
.als-nextmatch .sp-template { margin: 0; }
.als-nextmatch .sp-data-table { border: 0; font-size: 1.05rem; background: none; }
.als-nextmatch .sp-data-table thead { display: none; }
.als-nextmatch .sp-data-table tbody td {
  border: 0; padding: 0.4rem 0; background: none !important; color: #fff;
}
.als-nextmatch .sp-data-table .data-event { font-weight: 900; font-size: 1.2rem; color: #fff; }
.als-nextmatch .sp-data-table .data-time { color: var(--als-gold); font-weight: 900; }
.als-nextmatch .sp-data-table a { color: #fff; }

/* ---------- بطاقات الأخبار ---------- */
.als-news-card {
  background: #fff;
  border-radius: var(--als-sharp);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.als-news-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(6,36,32,.3); }
.als-news-card .wp-block-post-featured-image {
  margin: 0 !important;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--als-blue), var(--als-blue-deep));
}
.als-news-card .wp-block-post-featured-image img {
  margin: 0; display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.als-news-card:hover .wp-block-post-featured-image img { transform: scale(1.07); }
/* الخبر الرئيسي: قصّ مائل أسفل الصورة */
.als-news-featured .wp-block-post-featured-image {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.als-news-card .wp-block-post-title { font-size: 1.05rem; line-height: 1.42; }
.als-news-featured .wp-block-post-title { font-size: 1.5rem; line-height: 1.3; }
.als-news-card .wp-block-post-title a { color: var(--als-ink); }
.als-news-card .wp-block-post-title a:hover { color: var(--als-blue); }
.als-news-card .wp-block-post-date { color: var(--als-muted); font-weight: 800; font-size: 0.78rem; }
.als-news-card .wp-block-post-date + .wp-block-post-title { margin-top: 0.35rem; }
.als-news-card .wp-block-post-excerpt__more-text,
.als-news-card .wp-block-read-more {
  display: inline-block; margin-top: 0.9rem; font-weight: 900; font-size: 0.88rem;
  border-bottom: 3px solid var(--als-gold); padding-bottom: 2px; color: var(--als-ink);
}
.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: 900;
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0;
}
.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: 900;
  font-size: 0.7rem;
  line-height: 1.4;
  padding: 0.28rem 0.7rem;
  border-radius: 0;
  text-decoration: none !important;
}
.als-cat-badge a:hover { background: var(--als-gold-deep); }

/* تبويبات تصنيفات الأخبار */
.als-cat-tabs .wp-block-group { gap: 0; }
.als-cat-tabs p { margin: 0; }
.als-cat-tabs a {
  display: inline-block;
  padding: 1rem 1.15rem;
  font-weight: 900;
  font-size: 0.92rem;
  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-gold); }
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-gold);
}

/* ---------- النادي بالأرقام (قسم لا يوجد له نظير في alsawari) ---------- */
.als-stats-strip {
  border-top: 3px solid var(--als-ink);
  border-bottom: 3px solid var(--als-ink);
  margin: 3.5rem 0;
  padding: 2.6rem 1.75rem;
}
.als-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.6rem;
}
.als-stat {
  text-align: center;
  padding: 0 1rem;
  border-inline-start: 1px solid var(--als-line);
}
.als-stat:first-child { border-inline-start: 0; }
.als-stat-num {
  display: block;
  font-weight: 900;
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
  color: var(--als-blue);
  line-height: 1;
  unicode-bidi: plaintext;
}
.als-stat-label {
  display: block;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--als-slate);
}

/* ---------- لقطات من محافظة ضمد (موزاييك — قسم لا يوجد له نظير في alsawari) ---------- */
.als-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: repeat(2, 160px);
  gap: 0.9rem;
  margin-top: 1.8rem;
}
.als-mosaic-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--als-sharp);
  border: 1px solid var(--als-line);
}
.als-mosaic-item--1 { grid-row: 1 / 3; grid-column: 1; }
.als-mosaic-item--2 { grid-row: 1; grid-column: 2; }
.als-mosaic-item--3 { grid-row: 1; grid-column: 3; }
.als-mosaic-item--4 { grid-row: 2; grid-column: 2 / 4; }
.als-mosaic-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.als-mosaic-item:hover img { transform: scale(1.06); }
.als-mosaic-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 0.6rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(to top, rgba(6,36,32,.75), transparent);
}
@media (max-width: 781px) {
  .als-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .als-stat:nth-child(3) { border-inline-start: 0; }
  .als-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px 140px; }
  .als-mosaic-item--1 { grid-row: 1; grid-column: 1 / 3; }
  .als-mosaic-item--2 { grid-row: 2; grid-column: 1; }
  .als-mosaic-item--3 { grid-row: 2; grid-column: 2; }
  .als-mosaic-item--4 { grid-row: 3; grid-column: 1 / 3; }
}

/* ---------- شريط الفريق — أرقام ضخمة متراكبة ---------- */
.als-team-band { position: relative; overflow: hidden; }
.als-team-band .als-bignum {
  position: absolute;
  left: -10px; bottom: -34px;
  display: flex;
  align-items: flex-end;
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
  unicode-bidi: plaintext;
}
.als-team-band .als-bignum span:nth-child(odd) { font-size: 6.5rem; color: rgba(255,255,255,.1); }
.als-team-band .als-bignum span:nth-child(even) { font-size: 9rem; color: var(--als-gold); margin: 0 -0.5rem; }

/* ---------- شريط الرعاة ---------- */
.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: .5;
  max-height: 40px;
  width: auto;
  transition: filter .2s, opacity .2s;
}
.als-sponsors .wp-block-image img:hover { filter: none; opacity: 1; }

/* ---------- شريط الحوكمة ---------- */
.als-gov-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--als-navy);
  margin-top: 3.5rem;
}
.als-gov-strip .als-govcard {
  padding: 1.6rem 0.6rem 1.4rem;
  border-inline-start: 1px solid var(--als-line);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: transparent;
  transition: background .16s;
}
.als-gov-strip .als-govcard:first-child { border-inline-start: 0; }
.als-gov-strip .als-govcard:hover { background: #fff; }
.als-gov-strip .als-govcard .als-gov-kick {
  font-weight: 900; font-size: 0.72rem; letter-spacing: .1em; color: var(--als-blue);
}
.als-gov-strip .als-govcard .als-gov-title {
  font-weight: 900; font-size: 1.15rem; color: var(--als-ink);
}
.als-gov-strip .als-govcard:hover .als-gov-title { color: var(--als-blue); }

/* بطاقة حوكمة مستقلّة (صفحات داخلية) */
.als-govcard {
  background: #fff;
  border: 1px solid var(--als-line);
  border-radius: var(--als-sharp);
  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: #9FB4B0; }
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: 900; font-size: 0.7rem; letter-spacing: .2em; color: #5F7A75 !important; }
.als-footer-ridge { display: block; width: 100%; height: 26px; }
.als-app-btns { display: flex; gap: 0.6rem; margin-top: 0.7rem; flex-wrap: wrap; }
.als-app-btns a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--als-ink) !important;
  font-weight: 900; font-size: 0.78rem;
  padding: 0.55rem 1rem; border-radius: 0;
  text-decoration: none !important;
}
.als-app-btns a:hover { background: var(--als-gold); }

/* ---------- المحتوى الداخلي ---------- */
.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: var(--als-teal); }
.als-page-hero::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -14px;
  width: 72px;
  background: var(--als-gold);
  transform: skewX(-14deg);
  opacity: 0.9;
}

.entry-content, .wp-block-post-content { font-weight: 500; line-height: 1.95; color: #38504C; }
.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: var(--als-sharp); overflow: hidden;
}
.sp-data-table thead th {
  background: var(--als-navy);
  color: #fff !important;
  font-weight: 900;
  font-size: 0.78rem;
  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: #FBF9F2; }
.sp-data-table .sorting-highlight,
.sp-highlight,
.sp-data-table tbody tr.sp-row-no-0 { background: #EEF6F4 !important; }
.sp-data-table tbody tr.sp-row-no-0 td:first-child { box-shadow: inset 3px 0 0 var(--als-gold); }
.sp-data-table a { color: var(--als-ink); font-weight: 800; }
.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: 900;
  font-size: 1.05rem;
  margin: 1.8rem 0 0.6rem;
  padding: 0 0 0.5rem;
  border-bottom: 2px solid var(--als-gold);
}
.sp-player-list h4:first-of-type { margin-top: 0; }

.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-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: var(--als-sharp); 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: 800; 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: #EAF3F1; display: inline-block; }

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

.sp-scrollable-table-wrapper, .sp-table-wrapper { overflow-x: auto; }
.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: 800;
  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: var(--als-sharp);
  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(15,122,115,.15);
}
.wpcf7 input[type="submit"] {
  background: var(--als-blue);
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  font-size: 1rem;
  padding: 0.9rem 2.4rem;
  border: 0;
  border-radius: 0;
  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: var(--als-sharp);
  border-width: 1px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 1rem;
  margin: 1rem 0 0;
}

/* ---------- عام ---------- */
.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: var(--als-sharp) !important; }

/* أزرار البلوكات — حادّة */
.wp-block-button__link { border-radius: 0 !important; font-weight: 900 !important; }
.wp-block-button.is-style-outline .wp-block-button__link {
  box-shadow: inset 0 0 0 2px currentColor; border: 0;
}
/* زر ذهبي */
.is-style-als-gold .wp-block-button__link,
.als-btn-gold .wp-block-button__link {
  background: var(--als-gold) !important; color: var(--als-ink) !important;
}
.is-style-als-gold .wp-block-button__link:hover,
.als-btn-gold .wp-block-button__link:hover { background: var(--als-gold-deep) !important; }

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

@media (max-width: 900px) {
  .als-header { flex-wrap: wrap; gap: 0.75rem 1rem; }
  .als-header > .wp-block-navigation { order: 3; width: 100%; }
}

@media (max-width: 781px) {
  .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 { left: -10px; width: 60px; }
  .als-hero::after { left: 48px; }

  .als-section-head .als-idx { font-size: 4rem; }
  .als-section-head .als-seeall { margin-inline-start: 0; }

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

  .als-nextmatch { box-shadow: 6px 6px 0 var(--als-gold); margin-top: -2rem !important; }
  .als-team-band .als-bignum span:nth-child(odd) { font-size: 4rem; }
  .als-team-band .als-bignum span:nth-child(even) { font-size: 5.5rem; }

  .als-gov-strip { grid-template-columns: 1fr; }
  .als-gov-strip .als-govcard { border-inline-start: 0; border-top: 1px solid var(--als-line); }

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

  .sp-template { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .als-nextmatch .sp-data-table { min-width: 0; }

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

/* ============================================================
   حركات وتفاعلات إبداعية إضافية
   ============================================================ */
html { scroll-behavior: smooth; }

/* دخول الهيرو: تلاشي وصعود متدرّج للعناصر */
@keyframes als-fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.als-hero .als-kicker,
.als-hero h1,
.als-hero p,
.als-hero .wp-block-buttons {
  animation: als-fadeUp .75s cubic-bezier(.22,.68,0,1.01) both;
}
.als-hero h1 { animation-delay: .08s; }
.als-hero p { animation-delay: .2s; }
.als-hero .wp-block-buttons { animation-delay: .32s; }

/* تكبير بطيء لخلفية الهيرو (Ken Burns) */
@keyframes als-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}
.als-hero .als-hero-bg img { animation: als-kenburns 18s ease-out forwards; }

/* حلقة ذهبية دوّارة خلف بطاقة المباراة القادمة */
@keyframes als-spin { to { transform: rotate(360deg); } }
.als-nextmatch::before { animation: als-spin 26s linear infinite; }

/* رفعة وظل لأزرار الموقع عند المرور */
.wp-block-button__link,
.als-store-btn a,
.als-app-btns a {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.wp-block-button__link:hover,
.als-store-btn a:hover,
.als-app-btns a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(6,36,32,.45);
}

/* كشف عند التمرير (يُفعَّله assets/reveal.js) */
.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-staff-card.als-reveal:nth-child(2) { transition-delay: .08s; }
.als-news-card.als-reveal:nth-child(3), .als-govcard.als-reveal:nth-child(3), .als-staff-card.als-reveal:nth-child(3) { transition-delay: .16s; }
.als-news-card.als-reveal:nth-child(4), .als-staff-card.als-reveal:nth-child(4) { transition-delay: .24s; }

/* أرقام الفريق الضخمة: انزلاق جانبي عند الظهور */
.als-bignum.als-reveal { transform: translateX(24px); }
.als-bignum.als-reveal.als-in { transform: translateX(0); }

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

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

/* سهم "مرّر للأسفل" النابض أسفل الهيرو */
.als-scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  color: rgba(255,255,255,.75);
  animation: als-bounce 2.2s ease-in-out infinite;
}
.als-scroll-cue svg { width: 20px; height: 20px; }
@keyframes als-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

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