/* Aljazeera Hero 1.1.0. All selectors are scoped to avoid Elementor/Bootstrap collisions. */
.ajh-slider {
  --ajh-bg: var(--aj-primary, #0b6e75);
  --ajh-fg: #fff;
  --ajh-accent: var(--aj-accent, #d81b43);
  --ajh-button-fg: #fff;
  --ajh-height: 480px;
  --ajh-tablet-height: 400px;
  --ajh-mobile-image: 240px;
  --ajh-padding: 56px;
  --ajh-radius: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-block: var(--ajh-top, 0) var(--ajh-bottom, 24px);
  border-radius: var(--ajh-radius);
  background: var(--aj-surface, #f4f6f8);
  font-family: var(--aj-font, "Cairo", Tahoma, Arial, sans-serif);
  overflow: hidden;
  text-align: start;
}
.ajh-slider--boxed { max-width: 1230px; width: calc(100% - 32px); margin-inline: auto; }
.ajh-slider *, .ajh-slider *::before, .ajh-slider *::after { box-sizing: border-box; }
.ajh-slider button, .ajh-slider a { -webkit-tap-highlight-color: transparent; }
.ajh-slider :where(button,a):focus-visible { outline: 3px solid var(--aj-accent, #d81b43); outline-offset: 4px; }
.ajh-track {
  order: 1;
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
/* All slides occupy one grid cell, reserving the height of the tallest slide.
   Invisible slides cannot receive focus, even when JS is disabled. */
.ajh-slide {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  color: var(--ajh-fg);
  position: relative;
}
.ajh-slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; z-index: 2; }
.ajh-slide.is-leaving { visibility: visible; pointer-events: none; z-index: 1; }
.ajh-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: var(--ajh-height);
  height: 100%;
  isolation: isolate;
}
.ajh-copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: var(--ajh-padding) clamp(24px, 4.5vw, 80px);
  overflow-wrap: anywhere;
}
.ajh-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  inset-inline-end: -62px;
  background: var(--ajh-bg);
  clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
}
.ajh-slider[dir="rtl"] .ajh-copy::before { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.ajh-media { grid-column: 2; grid-row: 1; position: relative; min-width: 0; overflow: hidden; background: #e9f0ef; }
.ajh-slide[data-layout="split"] .ajh-media { margin-inline-start: -64px; }
.ajh-picture { display: block; width: 100%; height: 100%; }
.ajh-slider .ajh-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--ajh-focus, 50% 50%);
  display: block;
}
.ajh-slider .ajh-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 700;
  color: var(--ajh-fg);
}
.ajh-kicker::before { content: ""; flex: 0 0 30px; height: 3px; background: var(--ajh-accent); border-radius: 2px; }
.ajh-slider .ajh-title {
  color: var(--ajh-fg);
  font-family: inherit;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  margin: 0 0 20px;
  max-width: 100%;
}
.ajh-slider .ajh-description { color: var(--ajh-fg); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.95; margin: 0 0 26px; max-width: 100%; }
.ajh-actions { display: flex; flex-wrap: wrap; gap: 12px; max-width: 100%; }
.ajh-actions:empty { display: none; }
.ajh-slider .ajh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: 7px;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
  white-space: normal;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.ajh-slider .ajh-button--primary { background: var(--ajh-accent); color: var(--ajh-button-fg); border-color: var(--ajh-accent); }
.ajh-slider .ajh-button--secondary { background: transparent; color: var(--ajh-fg); border-color: currentColor; }
.ajh-slider .ajh-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #0002; }
.ajh-slider .ajh-button--secondary:hover { background: #ffffff1a; }
.ajh-slider .ajh-trust { color: var(--ajh-fg); font-size: 12px; line-height: 1.8; margin: 20px 0 0; }
.ajh-slide[data-align="center"] .ajh-copy { text-align: center; align-items: center; }
.ajh-slide[data-align="center"] .ajh-actions { justify-content: center; }
.ajh-slide[data-layout="cover"] .ajh-media { grid-column: 1 / -1; }
.ajh-slide[data-layout="cover"] .ajh-media::after { content: ""; position: absolute; inset: 0; background: var(--ajh-bg); opacity: var(--ajh-overlay, .55); }
.ajh-slide[data-layout="cover"] .ajh-copy::before { display: none; }
.ajh-slide[data-layout="cover"][data-align="center"] .ajh-copy { grid-column: 1 / -1; width: min(850px, 100%); justify-self: center; }
/* Separate control strip never covers a CTA or the image's important content. */
.ajh-controls { display: none; order: 2; position: relative; z-index: 3; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 10px clamp(16px, 4vw, 56px); background: var(--aj-background, #fff); border-bottom: 1px solid #dce5e7; }
.ajh-slider.is-enhanced .ajh-controls { display: flex; }
.ajh-slider .ajh-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #d4e0e2;
  border-radius: 7px;
  background: transparent;
  color: var(--aj-primary, #0b6e75);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
.ajh-slider .ajh-control:hover { background: var(--aj-surface, #f4f6f8); }
.ajh-slider .ajh-control[aria-disabled="true"] { opacity: .4; cursor: default; }
.ajh-slider .ajh-control svg { display: block; width: 21px; height: 21px; }
.ajh-slider[dir="rtl"] .ajh-arrows svg { transform: rotate(180deg); }
.ajh-arrows { display: flex; gap: 8px; }
.ajh-controls-middle { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.ajh-dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 100%; }
.ajh-slider .ajh-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.ajh-dot span { width: 7px; height: 7px; border-radius: 20px; background: var(--aj-primary, #0b6e75); opacity: .3; transition: width .2s ease, opacity .2s ease; }
.ajh-dot[aria-current="true"] span { width: 26px; opacity: 1; }
.ajh-count { display: inline-flex; align-items: center; gap: 8px; direction: ltr; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--aj-text, #183b43); }
.ajh-count [data-ajh-current] { font-weight: 800; }
.ajh-play-icon { display: block; width: 0; height: 0; border-block: 6px solid transparent; border-inline-start: 9px solid currentColor; }
.ajh-play.is-playing .ajh-play-icon { width: 10px; height: 12px; border-block: 0; border-inline: 3px solid currentColor; }
.ajh-slider [hidden] { display: none !important; }
/* Short, finite animations; nothing moves continuously on a static slide. */
.ajh-slide.is-animated[data-animation="rise"] .ajh-animate { animation: ajh-rise .6s both; }
.ajh-slide.is-animated[data-animation="fade"] .ajh-animate { animation: ajh-fade .6s both; }
.ajh-slide.is-animated .ajh-title { animation-delay: .08s; }
.ajh-slide.is-animated .ajh-description { animation-delay: .16s; }
.ajh-slide.is-animated .ajh-actions { animation-delay: .24s; }
.ajh-slide.is-animated .ajh-trust { animation-delay: .32s; }
.ajh-slide.is-animated[data-image-motion="zoom"] .ajh-image { animation: ajh-image-in 1.6s ease-out both; }
@keyframes ajh-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ajh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ajh-image-in { from { transform: scale(1.035); } to { transform: scale(1); } }
@media (min-width: 768px) and (max-width: 1023px) {
  .ajh-panel { min-height: var(--ajh-tablet-height); }
  .ajh-copy { padding: 36px 26px; }
  .ajh-copy::before { inset-inline-end: -35px; }
  .ajh-slider .ajh-title { font-size: 30px; }
  .ajh-slider .ajh-button { padding: 10px 15px; }
}
@media (max-width: 767px) {
  .ajh-slider--boxed { width: calc(100% - 24px); }
  .ajh-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--ajh-mobile-image) 1fr; min-height: 0; }
  .ajh-slide .ajh-media, .ajh-slide[data-layout="cover"] .ajh-media, .ajh-slide[data-layout="split"] .ajh-media { grid-column: 1; grid-row: 1; margin-inline-start: 0; }
  .ajh-slide .ajh-copy, .ajh-slide[data-layout="cover"] .ajh-copy { grid-column: 1; grid-row: 2; width: 100%; padding: 30px 24px 36px; background: var(--ajh-bg); }
  .ajh-copy::before, .ajh-slide[data-layout="cover"] .ajh-media::after { display: none; }
  .ajh-slider .ajh-image { object-position: var(--ajh-mobile-focus, 50% 50%); }
  .ajh-slider .ajh-title { font-size: clamp(25px, 7vw, 34px); margin-bottom: 16px; }
  .ajh-slider .ajh-kicker { font-size: 12px; margin-bottom: 12px; }
  .ajh-slider .ajh-description { font-size: 15px; margin-bottom: 20px; }
  .ajh-actions { width: 100%; }
  .ajh-slider .ajh-button { padding: 10px 16px; flex: 1 1 150px; }
  .ajh-controls { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .ajh-controls-middle { order: -1; width: 100%; gap: 10px; }
  .ajh-slider .ajh-dot { width: 38px; }
  .ajh-count { font-size: 11px; }
  .ajh-play { margin-inline-end: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ajh-slider *, .ajh-slider *::before, .ajh-slider *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ajh-slider .ajh-button:hover { transform: none; }
}
@media print {
  .ajh-controls { display: none !important; }
  .ajh-slide { display: none; }
  .ajh-slide.is-active { display: block; opacity: 1 !important; transform: none !important; }
}
