/* ALSAADITRADE homepage refinements (Dec 2026), loaded after home-v3.css and partners.css.
   Scoped to body.home-v3. Logical properties so the Arabic (RTL) homepage mirrors on its own. */

/* ---------- Sectors: full-photo cards that open the Trade page with the sector filter on ---------- */
.home-v3 .sec-grid { gap: 22px; }
.home-v3 .scase {
  position: relative; isolation: isolate; min-height: 440px; border-radius: 22px; color: var(--white);
  background: var(--navy); box-shadow: 0 40px 70px -46px rgba(7,26,44,.75);
}
.home-v3 .scase:hover { transform: translateY(-6px); box-shadow: 0 50px 80px -44px rgba(7,26,44,.85); }
.home-v3 .scase::before {
  content: attr(data-n); position: absolute; top: 22px; inset-inline-end: 26px; z-index: 1; pointer-events: none;
  font-family: "Noto Serif", Georgia, serif; font-style: italic; font-size: 46px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5);
}
.home-v3 .scase::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  border: 1px solid transparent; transition: border-color .4s;
}
.home-v3 .scase:hover::after { border-color: rgba(73,197,182,.6); }
.home-v3 .scase__img { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
.home-v3 .scase__img img { filter: saturate(.95); }
.home-v3 .scase__img::after { background: linear-gradient(180deg, rgba(7,26,44,.08) 15%, rgba(7,26,44,.55) 52%, rgba(7,26,44,.96) 100%); }
.home-v3 .scase:hover .scase__img::after { background: linear-gradient(180deg, rgba(7,26,44,.2) 0%, rgba(7,26,44,.72) 48%, rgba(7,26,44,.97) 100%); }
.home-v3 .scase__body { margin-top: auto; flex: none; padding: 28px 28px 26px; }
.home-v3 .scase__icon {
  position: static; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; color: var(--teal);
  background: rgba(7,26,44,.35); border: 1px solid rgba(255,255,255,.28); box-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.home-v3 .scase:hover .scase__icon { transform: none; background: var(--teal); border-color: var(--teal); color: var(--navy); }
.home-v3 .scase h4 { font-size: 21px; color: var(--white); margin-bottom: 8px; }
.home-v3 .scase h4 a { color: inherit; }
.home-v3 .scase h4 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.home-v3 .scase h4 a:focus-visible { outline: none; }
.home-v3 .scase:has(a:focus-visible) { outline: 2px solid var(--teal); outline-offset: 3px; } /* keyboard only, not after a tap */
.home-v3 .scase p { color: #c3d0db; font-size: 14px; line-height: 1.6; }
.home-v3 .scase p a { position: relative; z-index: 2; color: var(--teal); }
.home-v3 .scase__go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; width: 100%;
  border-top: 1px solid rgba(255,255,255,.14); color: var(--teal); font-size: 13.5px; font-weight: 500;
}
.home-v3 .scase__go .i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.home-v3 .scase:hover .scase__go .i { transform: translateX(5px); }
[dir="rtl"] .home-v3 .scase:hover .scase__go .i { transform: translateX(-5px); } /* the arrow itself is mirrored by rtl.css */

/* ---------- Partners ---------- */
.home-v3 .home-plates { margin: 0 0 44px; }

@media (max-width: 960px) {
  .home-v3 .scase { min-height: 400px; }
}
@media (max-width: 600px) {
  .home-v3 .scase { min-height: 360px; }
  .home-v3 .scase__body { padding: 24px 22px 22px; }
  .home-v3 .home-plates { margin-bottom: 32px; }
}
