@charset "windows-1255";
/* Shared Hasifa landing-page design.
   Font paths are relative to style/hasifa.css.
   Course assets and CRM settings stay in each HTML page. */

@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #C9006E;
  --accent-dark: #93004F;
  --ink: #292629;
  --muted: #505050;
  --line: #D8D5D7;
  --bg: #FFFFFF;
  --soft: #F2F2F2;
  --charcoal: #303033;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  direction: rtl;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h1, h2 { color: var(--accent); letter-spacing: -.035em; }
h1 { font-size: clamp(38px, 4vw, 56px); line-height: 1.15; }
h2 { font-size: clamp(30px, 2.6vw, 38px); line-height: 1.28; }
h3 { font-size: 24px; line-height: 1.4; }
a { color: inherit; text-underline-offset: 4px; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; }
section { padding: 72px 0; }
.container { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.section-soft { background: var(--soft); }
.eyebrow {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Header and shared actions. */
.topbar { border-bottom: 1px solid var(--line); background: #FFF; }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100px;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 16px;
}
/* Shared branding follows line order, for both span/strong variants. */
.brand {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
  flex: 1 1 540px;
}
.brand img {
  flex: none;
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.brand-copy {
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
}
.brand-copy > :first-child {
  display: block;
  margin: 0 0 4px;
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}
.brand-copy > :last-child {
  display: block;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}
.top-actions { display: flex; gap: 12px; align-items: center; }
.top-actions a { white-space: nowrap; text-decoration: none; }
.top-actions > a:last-child { direction: ltr; font-weight: 700; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #FFF; }
.btn-outline { background: transparent; color: var(--accent); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFF; }

/* Hero, course title and CRM form. */
.hero { padding: 48px 0 66px; background: #FFF; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 465px;
  align-items: start;
  gap: 48px;
}
.hero-copy { min-width: 0; }
.hero h1 { max-width: 740px; margin-bottom: 22px; }
.hero-hook { font-size: 24px; font-weight: 600; line-height: 1.5; }
.hero-description { margin-top: 18px; font-size: 19px; }
.hero-composition { position: relative; height: 300px; margin: 30px 0 24px 16px; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-detail {
  position: absolute;
  left: -16px;
  bottom: -24px;
  width: 30%;
  height: 62%;
  border: 6px solid #FFF;
  object-fit: cover;
  box-shadow: 0 10px 24px #29262924;
}
.hero-card {
  width: 100%;
  max-width: 465px;
  padding: 26px 25px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  background: #FFF;
  box-shadow: 0 16px 38px -24px #2926294D;
  scroll-margin-top: 24px;
}
.hero-card form { width: 100%; margin: 0; }
.form_title_wide_big { margin-bottom: 22px; }
.form_title_txt_top_wide_big {
  display: block;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent);
}
.form_title_txt_bottom_wide_big {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}
.hero-card .form_row_wide_big {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px 10px;
  align-items: end;
  margin-bottom: 12px;
}
.hero-card label { display: block; min-width: 0; }
.form-personal-phone-row > label:nth-of-type(1) { grid-column: 1 / 7; }
.form-personal-phone-row > label:nth-of-type(2) { grid-column: 7 / 13; }
.form-personal-phone-row > label:nth-of-type(3) { grid-column: 1 / 10; }
.form-personal-phone-row > label:nth-of-type(4) { grid-column: 10 / 13; }
.form-email-submit-row > label,
.form-email-submit-row > input,
.form-consent-row > div { grid-column: 1 / -1; }
.hero-card input[type="text"],
.hero-card select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #C9C6C8;
  border-radius: 0;
  background: #FFF;
  color: var(--ink);
  font-size: 16px;
  text-align: right;
}
.hero-card input::placeholder { color: #656165; opacity: 1; }
.hero-card select { color: #656165; }
.hero-card select:has(option:checked:not([value=""])) {
  color: var(--ink);
}
.hero-card select option { color: var(--ink); }
.hero-card select option[value=""] { color: #656165; }

.hero-card select[name="in_kidomet"] { padding-inline: 4px; }
.hero-card input[type="submit"] {
  width: 100%;
  min-height: 52px;
  border: 0;
  padding: 10px 12px;
  background: var(--accent);
  color: #FFF;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.hero-card input[type="submit"]:hover { background: var(--accent-dark); }
.sendmetext_wide_big { display: flex; gap: 10px; align-items: start; }
.sendmetext_wide_big input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; }
.sendmetext_wide_big input { accent-color: var(--accent); }
.iagree_text_wide_big { font-size: 13px; line-height: 1.65; }
.switch-off {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Light-gray course-facts strip with pink highlights. */
.proof { background: #E6E6E6; border-bottom: 4px solid var(--accent); }
.proof .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof p {
  padding: 24px 16px;
  border-inline-end: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  text-align: center;
}
.proof p:last-child { border-inline-end: 0; }
.proof strong { display: block; color: var(--ink); font-size: 23px; font-weight: 600; }

/* Two-image introduction. */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8%;
  align-items: center;
}
.intro-grid h2 { margin-bottom: 24px; }
.intro-grid p + p { margin-top: 20px; }
.intro-photos { position: relative; padding-bottom: 65px; }
.intro-main { width: 88%; aspect-ratio: 4 / 3; object-fit: cover; }
.intro-detail {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 46%;
  aspect-ratio: 1;
  border: 7px solid var(--soft);
  object-fit: cover;
}

/* School benefits and certificate illustration. */
.certificate-section { background: #FFF; }
.certificate-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 8%;
  align-items: center;
}
.certificate-card h2 { margin-bottom: 24px; }
.certificate-benefits { margin-top: 28px; }
.certificate-benefit { padding: 20px 0; border-top: 1px solid var(--line); }
.certificate-benefit h3 { font-size: 23px; }
.certificate-benefit p { margin-top: 8px; }
.certificate-visual { width: 100%; max-width: 480px; justify-self: end; }
.certificate-visual img { width: 100%; height: auto; }
.certificate-visual figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* One lecturer: a compact photograph and a readable biography. */
.lecturer-profile {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1100px;
}
.lecturer-photo img { width: 210px; height: 240px; object-fit: cover; object-position: center top; }
.lecturer-copy h2 { max-width: 760px; margin-bottom: 24px; }
.lecturer-copy h3 { color: var(--ink); font-size: 27px; }
.lecturer-role { margin-top: 4px; color: var(--muted); font-size: 18px; font-weight: 600; }
.lecturer-bio { margin-top: 16px; max-width: 760px; }

/* Curriculum: inline numbering and a sticky photo stack. */
.curriculum { background: #FFF; }
.curriculum h2 { margin-bottom: 22px; }
.curriculum-intro { max-width: 900px; margin-bottom: 36px; }
.curriculum-layout {
  display: grid;
  grid-template-columns: .95fr 1fr;
  grid-template-areas: "gallery steps";
  gap: 9%;
  align-items: start;
  direction: ltr;
}
.steps { grid-area: steps; min-width: 0; direction: rtl; }
.step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 18px;
  min-height: 320px;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
}
.step-num { color: var(--accent); font-size: 26px; line-height: 1.4; }
.step-copy { min-width: 0; }
.step h3 { font-size: 25px; }
.step p { margin-top: 20px; }
.outcome { font-weight: 600; }
.step-image { display: none; }
.curriculum-gallery { grid-area: gallery; position: sticky; top: 40px; min-width: 0; direction: rtl; }
.portfolio-photos { position: relative; height: 390px; margin: 20px 12px 28px; }
.portfolio-sheet {
  position: absolute;
  inset: 0;
  border: 7px solid #FFF;
  background: #EAE7E9;
  opacity: 0;
  box-shadow: 0 14px 28px #29262924;
}
.portfolio-sheet img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-sheet:first-child { opacity: 1; }
.portfolio-sheet.past { opacity: 1; transform: translate(-8px, 6px) rotate(-3deg); }
.portfolio-sheet.active { opacity: 1; transform: rotate(0); z-index: 2; }
.portfolio-caption { padding-top: 18px; border-top: 1px solid var(--line); font-size: 23px; font-weight: 600; }
.portfolio-caption small { display: block; margin-top: 8px; font-size: 17px; font-weight: 400; color: var(--muted); }

/* Course details and FAQ use different section backgrounds. */
/* Match GenAI detail labels, whether the HTML uses h3 or strong. */
.course-detail-row > h3,
.course-detail-row > strong {
  margin: 0;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
}

.course-details-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8%; align-items: start; }
.course-details-list { border-top: 1px solid var(--line); }
.course-detail-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 25px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.story { background: #FFF; }
.story > .container { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8%; align-items: start; }
.faq { min-width: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  padding: 22px 0;
  list-style: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-size: 28px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-bottom: 24px; color: var(--muted); }

/* Final conversion band, without a duplicate lead form. */
.final-conversion { background: var(--charcoal); border-top: 4px solid var(--accent); color: #FFF; }
.final-conversion-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.final-conversion .eyebrow { color: #FFB5D9; }
.final-conversion h2 { color: #FFF; margin-bottom: 20px; }
.final-conversion p { max-width: 780px; }
.final-actions { display: flex; flex-direction: column; gap: 14px; min-width: 240px; }
.final-actions .btn-outline { border-color: #FFF; color: #FFF; }
footer { padding: 34px 24px; font-size: 15px; line-height: 2; text-align: center; }
footer a { display: inline-block; margin: 3px 9px; }
.mobile-fixed-actions { display: none; }

/* Optional shared module for Hasifa courses with verified AI content. */
.ai-section { background: #4C4C4F; color: #FFF; }
.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.ai-section h2, .ai-section h3 { color: #FFF; }
.ai-description { margin-top: 24px; }
.ai-use-item { padding: 22px 0; border-top: 1px solid #FFFFFF55; }
.ai-use-item h3 { margin-bottom: 10px; font-size: 23px; }

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-card { margin-inline: auto; }
  .hero-composition { max-width: 850px; }
  .top-actions > a:last-child { display: none; }
}
@media (max-width: 900px) {
  section { padding: 56px 0; }
  .container { width: calc(100% - 40px); }
  h2 { font-size: 32px; }
  .topbar-inner { min-height: 84px; gap: 14px; }
  .top-actions .btn-outline { display: none; }
  .hero { padding: 32px 0 48px; }
  .hero h1 { font-size: clamp(36px, 6.5vw, 46px); }
  .hero-hook { font-size: 22px; }
  .hero-composition { height: clamp(220px, 48vw, 350px); }
  .proof .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof p { border-bottom: 1px solid var(--line); padding: 20px 10px; }
  .proof p:nth-child(2n) { border-inline-end: 0; }
  .intro-grid, .certificate-grid, .course-details-grid,
  .story > .container, .final-conversion-grid, .ai-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .certificate-visual { justify-self: center; max-width: 440px; }
  .lecturer-profile { grid-template-columns: 104px minmax(0, 1fr); gap: 8px 20px; }
  .lecturer-copy { display: contents; }
  .lecturer-copy .eyebrow { grid-column: 1 / -1; grid-row: 1; margin: 0; }
  .lecturer-copy h2 { grid-column: 1 / -1; grid-row: 2; margin-bottom: 18px; }
  .lecturer-photo { grid-column: 1; grid-row: 3 / 5; align-self: center; }
  .lecturer-photo img { width: 104px; height: 118px; }
  .lecturer-copy h3 { grid-column: 2; grid-row: 3; align-self: end; font-size: 27px; }
  .lecturer-role { grid-column: 2; grid-row: 4; align-self: start; margin-top: 0; }
  .lecturer-bio {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 16px;
  }
  .curriculum-layout { display: block; }
  .curriculum-gallery { display: none; }
  .step { min-height: 0; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 26px 0 36px; }
  .step-copy { display: contents; }
  .step-num { grid-column: 1; grid-row: 1; font-size: 25px; }
  .step h3 { grid-column: 2; grid-row: 1; font-size: 25px; }
  .step p, .step-image { grid-column: 1 / -1; }
  .step p { margin-top: 0; }
  .step-image { display: block; margin-top: 8px; }
  .step-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .step-image figcaption { margin-top: 12px; font-size: 19px; font-weight: 600; }
  .course-detail-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  /* Hide the closing CTA banner at the shared mobile breakpoint. */
  .final-conversion { display: none; }
  .final-actions { min-width: 0; max-width: 465px; width: 100%; }
  footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .mobile-fixed-actions {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 6px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #FFF;
    box-shadow: 0 -3px 12px #29262914;
  }
  .mobile-fixed-actions a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    padding: 8px 4px;
    border: 1px solid var(--accent);
    color: var(--accent-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
  }
  .mobile-fixed-actions a:last-child { color: #FFF; background: var(--accent); }
}
@media (max-width: 600px) {
  .top-actions { display: none; }
  .brand { gap: 12px; flex-basis: 100%; }
  .brand img { width: 50px; height: 50px; }
  .brand-copy { font-size: 12px; }
  .brand-copy > :first-child,
  .brand-copy > :last-child { font-size: 12px; }
  .hero-card { padding: 24px 16px; }
  .form_title_txt_top_wide_big { font-size: 22px; }
  .hero-description { font-size: 18px; }
  .hero-composition { height: 225px; }
  .proof strong { font-size: 22px; }
  .proof p { font-size: 16px; }
  .intro-photos { padding-bottom: 46px; }
  .intro-detail { border-width: 5px; }
  .portfolio-caption { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


body[data-course="game-design"] .student-works h2 { max-width: 900px; margin-bottom: 18px; }

body[data-course="game-design"] .student-works > .container > p { max-width: 850px; margin-bottom: 32px; }

body[data-course="game-design"] .student-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

body[data-course="game-design"] .student-game-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  text-align: right;
  cursor: pointer;
}

body[data-course="game-design"] .student-game-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--charcoal);
}

body[data-course="game-design"] .student-game-media img { width: 100%; height: 100%; object-fit: cover; }

body[data-course="game-design"] .student-game-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  direction: ltr;
}

body[data-course="game-design"] .student-game-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 14px;
  font-size: 17px;
  font-weight: 600;
}

body[data-course="game-design"] .student-game-watch { color: var(--accent-dark); font-size: 16px; }

body[data-course="game-design"] .student-game-card:hover { border-color: var(--accent); }

body[data-course="game-design"] .student-game-dialog {
  width: min(960px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border: 0;
  color: var(--ink);
  background: #fff;
}

body[data-course="game-design"] .student-game-dialog::backdrop { background: #000d; }

body[data-course="game-design"] .student-game-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

body[data-course="game-design"] .student-game-close {
  min-width: 76px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

body[data-course="game-design"] .student-game-dialog video {
  width: 100%;
  max-height: 72dvh;
  background: #000;
}

body[data-course="game-design"] .video-control {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}

body[data-course="game-design"] .illustration-note { margin-top: 12px; color: var(--muted); font-size: 14px; }

body[data-course="game-design"] .skip-link {
  position: absolute;
  top: -100px;
  right: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: #fff;
}

body[data-course="game-design"] .skip-link:focus { top: 12px; }

@media (max-width: 1120px) {


body[data-course="game-design"] .student-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }


}

@media (max-width: 600px) {


body[data-course="game-design"] .lecturers .lecturer-copy .eyebrow { grid-row: 1; }


body[data-course="game-design"] .student-games-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }

body[data-course="game-design"] .student-game-caption { padding: 16px; font-size: 18px; }

body[data-course="game-design"] .student-game-watch { font-size: 17px; }

body[data-course="game-design"] .student-game-dialog { padding: 12px; }


}


body[data-course="game-design"] .studio-moment .intro-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

body[data-course="game-design"] .intro-copy { min-width: 0; }

body[data-course="game-design"] .intro-copy p { max-width: 580px; }

body[data-course="game-design"] .intro-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  color: var(--accent-dark);
  font-weight: 600;
}

body[data-course="game-design"] .intro-media { min-width: 0; }

body[data-course="game-design"] .intro-image-pair {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 12px;
  direction: ltr;
}

body[data-course="game-design"] .intro-image-pair img {
  width: 100%;
  height: clamp(250px, 25vw, 340px);
  object-fit: cover;
}

body[data-course="game-design"] .intro-world { object-position: 48% center; }

body[data-course="game-design"] .intro-character { object-position: 40% center; }

body[data-course="game-design"] .intro-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {

body[data-course="game-design"] .studio-moment .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }

body[data-course="game-design"] .intro-copy p { max-width: none; }

body[data-course="game-design"] .intro-image-pair img { height: clamp(220px, 48vw, 340px); }


}

@media (max-width: 600px) {


body[data-course="game-design"] .intro-image-pair { gap: 8px; }

body[data-course="game-design"] .intro-image-pair img { height: 230px; }

body[data-course="game-design"] .intro-copy h2 { font-size: 34px; }


}


body[data-course="gen-ai"] .hero-description + .hero-description {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 17px;
}
body[data-course="gen-ai"] .genai-skip-link {
  position: absolute;
  top: -100px;
  right: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: #fff;
}
body[data-course="gen-ai"] .genai-skip-link:focus { top: 12px; }


/* GenAI: restrained captions below curriculum images. */
body[data-course="gen-ai"] .portfolio-caption {
  font-size: 18px;
  line-height: 1.5;
}
body[data-course="gen-ai"] .portfolio-caption small {
  font-size: 16px;
  line-height: 1.6;
}
body[data-course="gen-ai"] .step-image figcaption {
  font-size: 18px;
  line-height: 1.5;
}


/* Marketing: course-specific modules; faculty uses shared rules. */
/* Shared faculty contract for Hasifa landing pages.
   One lecturer: .lecturer-profile, .lecturer-photo, .lecturer-copy,
   .lecturer-role and .lecturer-bio (defined above).
   Multiple lecturers: .faculty-grid with direct .faculty-card children.
   Each flat card uses image, h3, optional .faculty-role, and biography p.
   Optional professional lead: .faculty-lead and its existing subparts.
   Shared breakpoints below apply to all matching pages.
   Keep facts and images in HTML. Do not duplicate styles per course.
   Wrapped/paired faculty cards retain their approved scoped overrides. */


body[data-course="marketing"] .student-works h2 { max-width: 900px; margin-bottom: 18px; }

body[data-course="marketing"] .student-works > .container > p { max-width: 850px; margin-bottom: 32px; }

body[data-course="marketing"] .student-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

body[data-course="marketing"] .student-game-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  text-align: right;
  cursor: pointer;
}

body[data-course="marketing"] .student-game-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--charcoal);
}

body[data-course="marketing"] .student-game-media img { width: 100%; height: 100%; object-fit: cover; }

body[data-course="marketing"] .student-game-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  direction: ltr;
}

body[data-course="marketing"] .student-game-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 14px;
  font-size: 17px;
  font-weight: 600;
}

body[data-course="marketing"] .student-game-watch { color: var(--accent-dark); font-size: 16px; }

body[data-course="marketing"] .student-game-card:hover { border-color: var(--accent); }

body[data-course="marketing"] .student-game-dialog {
  width: min(960px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border: 0;
  color: var(--ink);
  background: #fff;
}

body[data-course="marketing"] .student-game-dialog::backdrop { background: #000d; }

body[data-course="marketing"] .student-game-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

body[data-course="marketing"] .student-game-close {
  min-width: 76px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

body[data-course="marketing"] .student-game-dialog video {
  width: 100%;
  max-height: 72dvh;
  background: #000;
}

body[data-course="marketing"] .video-control {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}

body[data-course="marketing"] .illustration-note { margin-top: 12px; color: var(--muted); font-size: 14px; }

body[data-course="marketing"] .skip-link {
  position: absolute;
  top: -100px;
  right: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: #fff;
}

body[data-course="marketing"] .skip-link:focus { top: 12px; }

@media (max-width: 1120px) {


body[data-course="marketing"] .student-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }


}

@media (max-width: 600px) {


body[data-course="marketing"] .lecturers .lecturer-copy .eyebrow { grid-row: 1; }


body[data-course="marketing"] .student-games-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }

body[data-course="marketing"] .student-game-caption { padding: 16px; font-size: 18px; }

body[data-course="marketing"] .student-game-watch { font-size: 17px; }

body[data-course="marketing"] .student-game-dialog { padding: 12px; }


}


body[data-course="marketing"] .studio-moment .intro-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

body[data-course="marketing"] .intro-copy { min-width: 0; }

body[data-course="marketing"] .intro-copy p { max-width: 580px; }

body[data-course="marketing"] .intro-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  color: var(--accent-dark);
  font-weight: 600;
}

body[data-course="marketing"] .intro-media { min-width: 0; }

body[data-course="marketing"] .intro-image-pair {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 12px;
  direction: ltr;
}

body[data-course="marketing"] .intro-image-pair img {
  width: 100%;
  height: clamp(250px, 25vw, 340px);
  object-fit: cover;
}

body[data-course="marketing"] .intro-world { object-position: 48% center; }

body[data-course="marketing"] .intro-character { object-position: 40% center; }

body[data-course="marketing"] .intro-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {

body[data-course="marketing"] .studio-moment .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }

body[data-course="marketing"] .intro-copy p { max-width: none; }

body[data-course="marketing"] .intro-image-pair img { height: clamp(220px, 48vw, 340px); }


}

@media (max-width: 600px) {


body[data-course="marketing"] .intro-image-pair { gap: 8px; }

body[data-course="marketing"] .intro-image-pair img { height: 230px; }

body[data-course="marketing"] .intro-copy h2 { font-size: 34px; }


}


/* Marketing: accepted brand and caption scale. */
/* GenAI: restrained captions below curriculum images. */
body[data-course="marketing"] .portfolio-caption {
  font-size: 18px;
  line-height: 1.5;
}
body[data-course="marketing"] .portfolio-caption small {
  font-size: 16px;
  line-height: 1.6;
}
body[data-course="marketing"] .step-image figcaption {
  font-size: 18px;
  line-height: 1.5;
}


body[data-course="marketing"] .marketing-note {
  margin-top: 24px;
  font-size: 16px;
  color: var(--muted);
}
body[data-course="marketing"] .marketing-skip-link {
  position: absolute;
  top: -100px;
  right: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: #fff;
}
body[data-course="marketing"] .marketing-skip-link:focus { top: 12px; }

/* Shared Hasifa lead form: email and learning location share one row. */
.hero-card .form-email-submit-row > label:first-of-type {
  grid-column: 1 / 8;
}
.hero-card .form-email-submit-row > label:nth-of-type(2) {
  grid-column: 8 / 13;
}
.hero-card .form-email-submit-row > input[type="submit"] {
  grid-column: 1 / -1;
}
.hero-card .form-email-submit-row select {
  padding-inline: 6px;
  font-size: 16px;
}

@media (max-width: 600px) {
  .hero-card .form-email-submit-row > label:first-of-type {
    grid-column: 1 / 7;
  }
  .hero-card .form-email-submit-row > label:nth-of-type(2) {
    grid-column: 7 / 13;
  }
}

/* Marketing: distinguish the project section from the white introduction. */
body[data-course="marketing"] .certificate-section.section-soft {
  background: var(--soft);
}


/* Phototherapy: approved branding copy and section separation. */
body[data-course="phototherapy"] .certificate-section {
  background: var(--soft);
}
body[data-course="phototherapy"] .lecturers.section-soft,
body[data-course="phototherapy"] .story {
  background: #FFF;
}
body[data-course="phototherapy"] .lecturers > .container > h2 {
  margin-bottom: 20px;
}
body[data-course="phototherapy"] .lecturers > .container > p:first-of-type {
  max-width: 800px;
  margin-bottom: 32px;
  color: var(--muted);
}

/* Shared faculty layout for every Hasifa landing page.
   Supports flat cards, wrapped faculty-person cards and faculty-lead.
   Course identity belongs in HTML; lecturer layout is shared here. */
.lecturers .faculty-section-title {
  margin-bottom: 32px;
}
.lecturers .faculty-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 1100px;
}
.lecturers .faculty-card,
.lecturers .faculty-lead {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 8px 28px;
  align-items: start;
  min-width: 0;
  max-width: 1100px;
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.lecturers .faculty-person,
.lecturers .faculty-person-copy,
.lecturers .faculty-lead-photo,
.lecturers .faculty-lead-copy {
  display: contents;
}
.lecturers .faculty-card > img,
.lecturers .faculty-person > img,
.lecturers .faculty-lead-photo > img {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 132px;
  height: 160px;
  object-fit: cover;
  object-position: center top;
}
.lecturers .faculty-card h3,
.lecturers .faculty-lead h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 23px;
}
.lecturers .faculty-role,
.lecturers .faculty-lead-role {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
}
.lecturers .faculty-card > p:not(.faculty-role),
.lecturers .faculty-lead-bio {
  grid-column: 2;
  max-width: 72ch;
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.8;
  text-align: start;
}
.lecturers .faculty-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
}
@media (max-width: 600px) {
  .lecturers .faculty-grid {
    gap: 12px;
  }
  .lecturers .faculty-card,
  .lecturers .faculty-lead {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 4px 18px;
    padding: 24px 0;
  }
  .lecturers .faculty-card > img,
  .lecturers .faculty-person > img,
  .lecturers .faculty-lead-photo > img {
    grid-row: 1 / span 2;
    width: 72px;
    height: 88px;
  }
  .lecturers .faculty-card h3,
  .lecturers .faculty-lead h3 {
    align-self: end;
  }
  .lecturers .faculty-card > p:not(.faculty-role),
  .lecturers .faculty-lead-bio {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 0;
  }
}

/* Large faculty groups: preserve the compact multi-column design.
   Five or more cards use the shared large-team layout.
   The separate professional lead keeps its original compact layout. */
.lecturers .faculty-grid:has(> .faculty-card:nth-child(5)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: none;
}
.lecturers .faculty-grid:has(> .faculty-card:nth-child(5)) > .faculty-card {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 18px;
  padding: 22px 0;
}
.lecturers .faculty-grid:has(> .faculty-card:nth-child(5)) > .faculty-card > img,
.lecturers .faculty-grid:has(> .faculty-card:nth-child(5)) .faculty-person > img {
  width: 88px;
  height: 108px;
}
.lecturers .faculty-grid:has(> .faculty-card:nth-child(5)) > .faculty-card > p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}
.lecturers:has(.faculty-grid > .faculty-card:nth-child(5)) .faculty-lead {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  max-width: none;
  padding: 24px 0;
  margin-bottom: 16px;
  border-top: 2px solid var(--accent);
}
.lecturers:has(.faculty-grid > .faculty-card:nth-child(5)) .faculty-lead-photo,
.lecturers:has(.faculty-grid > .faculty-card:nth-child(5)) .faculty-lead-copy {
  display: block;
}
.lecturers:has(.faculty-grid > .faculty-card:nth-child(5)) .faculty-lead-photo img {
  width: 88px;
  height: 108px;
}
.lecturers:has(.faculty-grid > .faculty-card:nth-child(5)) .faculty-lead .eyebrow {
  margin-bottom: 4px;
  font-size: 15px;
}
.lecturers:has(.faculty-grid > .faculty-card:nth-child(5)) .faculty-lead-role {
  margin-top: 4px;
  font-size: 17px;
}
.lecturers:has(.faculty-grid > .faculty-card:nth-child(5)) .faculty-lead-bio {
  max-width: 850px;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.75;
}
@media (max-width: 1120px) {
  .lecturers .faculty-grid:has(> .faculty-card:nth-child(5)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .lecturers .faculty-grid:has(> .faculty-card:nth-child(5)) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .lecturers .faculty-grid:has(> .faculty-card:nth-child(5)) > .faculty-card {
    gap: 8px 18px;
  }
  .lecturers .faculty-grid:has(> .faculty-card:nth-child(5)) > .faculty-card > img,
  .lecturers .faculty-grid:has(> .faculty-card:nth-child(5)) .faculty-person > img {
    grid-row: 1 / span 2;
  }
  .lecturers .faculty-grid:has(> .faculty-card:nth-child(5)) > .faculty-card > p {
    grid-column: 2;
    font-size: 18px;
  }
}

/* Filmmaking: professional lead above three lecturers. */
body[data-course="filmmaking"] .lecturers .faculty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
  max-width: none;
}
body[data-course="filmmaking"] .lecturers .faculty-card:first-child {
  grid-column: 1 / -1;
}
body[data-course="filmmaking"] .lecturers .faculty-card:not(:first-child) {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 18px;
  padding: 22px 0;
}
body[data-course="filmmaking"] .lecturers .faculty-card:not(:first-child) > img {
  width: 88px;
  height: 108px;
}
body[data-course="filmmaking"] .lecturers .faculty-card:not(:first-child) > p {
  font-size: 17px;
  line-height: 1.7;
  margin-top: 0;
}
@media (max-width: 900px) {
  body[data-course="filmmaking"] .lecturers .faculty-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-course="filmmaking"] .lecturers .faculty-card:not(:first-child) {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  body[data-course="filmmaking"] .lecturers .faculty-card:not(:first-child) > img {
    grid-row: 1 / span 2;
  }
  body[data-course="filmmaking"] .lecturers .faculty-card:not(:first-child) > p {
    grid-column: 2;
  }
}



/* Video editing: section rhythm and uncropped course illustrations. */
body[data-course="video-editing"] .studio-moment {
  background: #FFF;
}

body[data-course="video-editing"] .certificate-section.section-soft {
  background: var(--soft);
}

body[data-course="video-editing"] .curriculum {
  background: #FFF;
}

body[data-course="video-editing"] .course-details.section-soft {
  background: var(--soft);
}

body[data-course="video-editing"] .story {
  background: #FFF;
}

/* Keep supplied image proportions when HTML includes intrinsic dimensions. */
body[data-course="video-editing"] .intro-main,
body[data-course="video-editing"] .intro-detail,
body[data-course="video-editing"] .step-image img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

body[data-course="video-editing"] .intro-detail {
  border-color: #FFF;
}

body[data-course="video-editing"] .certificate-visual img {
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

body[data-course="video-editing"] .portfolio-photos {
  height: auto;
  aspect-ratio: 4 / 3;
}

body[data-course="video-editing"] .portfolio-sheet img {
  object-fit: contain;
}


/* Mobile lead form: follow the approved Dialog field layout. */
@media (max-width: 600px) {
  .hero-grid .hero-card {
    width: 100%;
    max-width: 465px;
    padding-inline: 16px;
  }

  .hero-grid .hero-card .form-personal-phone-row {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .hero-grid .hero-card .form-personal-phone-row
    > label:nth-of-type(-n + 2),
  .hero-grid .hero-card .form-email-submit-row
    > label {
    grid-column: 1 / -1;
  }

  .hero-grid .hero-card .form-personal-phone-row
    > label:nth-of-type(3) {
    grid-column: 1 / 2;
  }

  .hero-grid .hero-card .form-personal-phone-row
    > label:nth-of-type(4) {
    grid-column: 2 / 3;
  }
}

/* Stack phone and prefix only on extra-narrow screens. */
@media (max-width: 359px) {
  .hero-grid .hero-card .form-personal-phone-row
    > label:nth-of-type(3),
  .hero-grid .hero-card .form-personal-phone-row
    > label:nth-of-type(4) {
    grid-column: 1 / -1;
  }
}
