/* ============================================================
   USEED — Real-estate page (realestate.html only)
   Builds on style-v2.css; nothing here touches the main site.
   ============================================================ */

/* hero: shorter than the main hero, logos + "full portfolio" note under it */
.re-hero .hero-banner { min-height: 0; height: clamp(440px, 52vw, 560px); }
.re-hero .hero-img { object-position: center; }
.re-hero h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; }
.re-hero .hero-sub { max-width: 560px; }
.re-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; }
.re-logos { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.re-logos-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
html[lang="ar"] .re-logos-label { letter-spacing: 0; font-size: 12.5px; }
.re-logos img { height: 44px; width: auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); object-fit: contain; }
.re-logos img, .re-job > img { background: #101213 !important; border-color: rgba(255, 255, 255, .1); }
.re-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 14px; border: 1px dashed rgba(235, 32, 39, .45); border-radius: 12px; font-size: 13.5px; color: var(--muted); text-decoration: none; transition: border-color .2s, background .2s; }
.re-note strong { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-weight: 600; }
.re-note svg { width: 14px; height: 14px; }
html[dir="rtl"] .re-note svg, html[dir="rtl"] .re-all svg, html[dir="rtl"] .re-hero .link-arrow svg { transform: scaleX(-1); }
.re-note:hover { border-style: solid; background: rgba(235, 32, 39, .08); }
.re-nav-full { color: var(--red-soft, #ff5a5f) !important; }

/* shared overlay + centred play mark with a soft pulse (same idea as the feedback tiles) */
.re-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 72%); pointer-events: none; }
.re-play { position: absolute; top: 0; bottom: 30%; inset-inline: 0; margin: auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red-fill); color: #fff; font-size: 15px; padding-inline-start: 3px; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); transition: transform .25s ease; }
.re-play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75); animation: rePulse 2s ease-out infinite; }
@keyframes rePulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.re-card:hover .re-play, .re-feat:hover .re-play { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .re-play::before { animation: none; opacity: 0; } }

/* filters */
.re-filters { display: flex; gap: 8px; margin: 18px 0 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.re-filters::-webkit-scrollbar { display: none; }
.re-chip { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.re-chip:hover { border-color: rgba(235, 32, 39, .5); color: var(--white); }
.re-chip.is-on { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }

/* video grid: 9:16 cards; first rows shown, the rest behind "show all" */
.re-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.re-card { position: relative; display: block; min-width: 0; padding: 0; overflow: hidden; aspect-ratio: 9 / 16; border: 1px solid var(--line); border-radius: 14px; background: #0a0c0c; color: #fff; text-align: start; cursor: pointer; font: inherit; }
.re-card[hidden] { display: none; }
.re-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.re-card:hover img { transform: scale(1.05); }
.re-dur { position: absolute; top: 8px; inset-inline-start: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .6); font-size: 11px; font-weight: 600; direction: ltr; }
.re-txt { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; }
.re-tag { display: flex; flex-wrap: wrap; gap: 0 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #ffd84d; text-transform: uppercase; }
html[lang="ar"] .re-tag { text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.re-txt strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.re-grid:not(.is-open):not(.is-filtered) .re-card:nth-child(n+6) { display: none; }
.re-more { display: block; margin: 14px auto 0; padding: 11px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--white); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.re-more:hover { border-color: var(--red-fill); }
.re-more[hidden] { display: none; }
@media (min-width: 721px) { .re-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 721px) and (max-width: 999px) { .re-grid:not(.is-open):not(.is-filtered) .re-card:nth-child(n+6) { display: block; } .re-grid:not(.is-open):not(.is-filtered) .re-card:nth-child(n+8) { display: none; } }
@media (min-width: 1000px) {
  .re-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .re-grid:not(.is-open):not(.is-filtered) .re-card:nth-child(n+6) { display: block; }
  .re-grid:not(.is-open):not(.is-filtered) .re-card:nth-child(n+9) { display: none; }
}

/* AI: services → AI stay as one section */
.re-page #services .ai-wrap-compact { margin-top: 24px; }

/* about */
.re-about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 48px); align-items: center; }
.re-about-copy p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.re-about-copy p strong { color: var(--white); }
.re-about-copy .ab-title { margin: 12px 0 14px; }
.re-about-side { display: grid; gap: 12px; }
.re-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.re-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.re-stat .stat-num { font-size: 28px; font-weight: 700; line-height: 1; color: var(--white); }
.re-stat .stat-label { font-size: 12px; line-height: 1.4; color: var(--muted); }
.re-stat-hl { border-color: rgba(242, 193, 78, .5); }
.re-stat-hl .stat-num { color: #f2c14e; font-size: 24px; }
@media (max-width: 860px) { .re-about { grid-template-columns: minmax(0, 1fr); } }

/* "this is one part of my work" → full portfolio */
.re-all { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 22px; padding: clamp(18px, 2.6vw, 28px); border: 1px solid rgba(235, 32, 39, .35); border-radius: var(--r, 18px); background: linear-gradient(135deg, rgba(235, 32, 39, .12), rgba(235, 32, 39, .02) 60%); text-decoration: none; color: inherit; }
.re-all-copy { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.re-all-copy strong { font-size: clamp(20px, 2.4vw, 26px); color: var(--white); line-height: 1.25; }
.re-all-copy > span:last-child { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.re-all-btn { display: inline-flex; align-items: center; gap: 8px; }
.re-all-btn svg { width: 15px; height: 15px; }
.re-all:hover .re-all-btn { border-color: var(--red-fill); }

/* footer */
.re-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.re-foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.re-foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.re-foot-links a:hover { color: var(--white); }

/* mobile: keep it short */
@media (max-width: 720px) {
  .re-hero .hero-banner { height: auto; min-height: 480px; }
  .re-logos img { height: 38px; padding: 5px 10px; }
  .re-play { width: 42px; height: 42px; font-size: 14px; }
  .re-job { padding: 13px; gap: 12px; }
  .re-job > img { width: 60px; height: 38px; }
  .re-job p { font-size: 13px; }
  .re-stat { padding: 12px 10px; }
  .re-stat .stat-num { font-size: 24px; }
  .re-all-btn { width: 100%; justify-content: center; }
}

/* light theme */
html[data-theme="light"] .re-logos img, html[data-theme="light"] .re-job, html[data-theme="light"] .re-stat, html[data-theme="light"] .re-chip:not(.is-on), html[data-theme="light"] .re-more { box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
html[data-theme="light"] .re-feat-kick, html[data-theme="light"] .re-tag { color: #ffd84d; }


/* ---------- v2 ---------- */
/* hero: ministry credential sits between the banner and the logos */
.re-hero .hero-foot { margin-top: 14px; }

/* featured competition video: compact row, not a giant banner */
.re-feat { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 18px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: inherit; text-align: start; cursor: pointer; font: inherit; transition: border-color .2s; }
.re-feat:hover { border-color: rgba(235, 32, 39, .5); }
.re-feat-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px; background: #0a0c0c; }
.re-feat-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.re-feat:hover .re-feat-thumb img { transform: scale(1.05); }
.re-feat-thumb .re-play { bottom: 0; }
.re-feat-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.re-feat-kick { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--red-soft, #ff5a5f); }
html[lang="ar"] .re-feat-kick { letter-spacing: 0; font-size: 12.5px; }
.re-feat-txt strong { font-size: 18px; line-height: 1.3; color: var(--white); }
.re-feat-txt > span:last-child { font-size: 13.5px; color: var(--muted); }
@media (max-width: 560px) { .re-feat { grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 8px; } .re-feat-txt strong { font-size: 15px; } .re-feat-txt > span:last-child { font-size: 12.5px; } }

/* landscape videos take two columns in the grid */
.re-grid { grid-auto-flow: row dense; }
.re-card.is-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 721px) { .re-card.is-wide { aspect-ratio: 9 / 8; } }

/* series + TikTok page blocks */
.re-series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.re-block { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.2vw, 24px); border: 1px solid var(--line); border-radius: var(--r, 18px); background: var(--card); min-width: 0; }
.re-block-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.re-block-kick { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--red-soft, #ff5a5f); }
html[lang="ar"] .re-block-kick { letter-spacing: 0; font-size: 12.5px; }
.re-block-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(235, 32, 39, .12); color: var(--red-soft, #ff5a5f); font-size: 16px; }
.re-block h3 { margin: 0; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; color: var(--white); }
.re-block h3 bdi { font-weight: 600; color: var(--muted); font-size: .8em; }
.re-block > p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.re-eps { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.re-eps li { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--white); background: rgba(255, 255, 255, .02); direction: ltr; }
.re-hot { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(242, 193, 78, .4); background: rgba(242, 193, 78, .08); font-size: 14px; line-height: 1.55; color: var(--white); }
.re-hot i { color: #f2a83c; margin-top: 3px; }
.re-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.re-kpis > div { display: flex; flex-direction: column; gap: 3px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 12px; }
.re-kpis strong { font-size: 20px; line-height: 1.1; color: var(--white); }
.re-kpis span { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.re-kpis .is-hl { border-color: rgba(235, 32, 39, .5); background: rgba(235, 32, 39, .08); }
.re-kpis .is-hl strong { color: var(--red-soft, #ff5a5f); }
.re-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.re-card-mini { aspect-ratio: 4 / 5; border-radius: 11px; }
.re-card-mini .re-txt { padding: 8px; }
.re-card-mini .re-tag { display: none; }
.re-card-mini .re-txt strong { font-size: 12px; }
.re-card-mini .re-play { width: 36px; height: 36px; font-size: 12px; }
.re-card-mini .re-dur { font-size: 10px; }
.re-block-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; }
.re-block-btn svg { width: 15px; height: 15px; }
html[dir="rtl"] .re-block-btn svg { transform: scaleX(-1); }
.re-block-btn[hidden] { display: none; }
@media (max-width: 860px) { .re-series { grid-template-columns: minmax(0, 1fr); } }

/* AI: only the real-estate clips here (2 tiles) */
.re-page .ai-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.re-page .ai-tile-main { grid-row: auto; }
@media (max-width: 999px) { .re-page .ai-mosaic { grid-template-columns: 1fr 1fr; height: 200px; } .re-page .ai-tile-chip { display: block; } }

/* trust: ministry + honour videos, then the three jobs */
.re-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 12px; }
.re-tiles .fb-tile { aspect-ratio: 16 / 9; width: 100%; color: #fff; text-align: start; cursor: pointer; font: inherit; }
.re-gold { position: relative; }
.re-jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.re-job { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.re-job > img { width: 84px; height: 46px; object-fit: contain; padding: 4px 8px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); }
.re-job-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.re-when { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
html[lang="ar"] .re-when { letter-spacing: 0; }
.re-job h3 { margin: 6px 0 2px; font-size: 16.5px; font-weight: 700; color: var(--white); }
.re-org { font-size: 13px; color: var(--red-soft, #ff5a5f); font-weight: 600; }
.re-job p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 999px) {
  .re-jobs { grid-template-columns: minmax(0, 1fr); }
  .re-job { flex-direction: row; align-items: flex-start; }
  .re-job > img { flex: none; width: 64px; height: 40px; }
}
@media (max-width: 720px) {
  .re-tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline-start: 10px; }
  .re-tiles::-webkit-scrollbar { display: none; }
  .re-tiles > * { scroll-snap-align: start; }
  .re-tiles .fb-tile { aspect-ratio: 4 / 3; }
  .re-card-mini { aspect-ratio: 3 / 4; }
  .re-card-mini .re-play { bottom: 38%; }
}

/* contact: based-in-Egypt line above the CTA */
.re-page #contact .travel-line { margin: 0 auto 22px; padding-top: 0; border-top: 0; }
