/* Amira Editorial Desk · film-inspired educational-content teaser. */
.education-announcement {
  position: fixed;
  z-index: 12;
  inset-inline-end: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: min(28.5rem, calc(100vw - 2rem));
  max-height: min(84vh, 46rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line, rgba(41,36,32,.18));
  border-radius: 1.05rem;
  background: var(--surface, #fffcf7);
  color: var(--text, #292420);
  box-shadow: 0 22px 66px rgba(41,36,32,.20), 6px 6px 0 rgba(120,74,80,.10);
  isolation: isolate;
}
.education-announcement[hidden] { display: none !important; }
.education-announcement.is-visible { animation: education-entrance .42s cubic-bezier(.2,.75,.25,1) both; }
.education-announcement__masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.65rem;
  padding: .65rem 1.3rem .65rem 1.55rem;
  border-bottom: 1px solid var(--line, rgba(41,36,32,.18));
}
.education-announcement__identity {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  min-width: 0;
}
.education-announcement__brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .91rem;
  line-height: 1.5;
  letter-spacing: -.035em;
  font-weight: 600;
}
.education-announcement__department {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .58rem;
  line-height: 1.4;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted, #62554a);
}
.education-announcement__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line, rgba(41,36,32,.2));
  border-radius: 50%;
  background: transparent;
  color: var(--text, #292420);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.education-announcement__close:hover { background: var(--latte, #e9dcc9); transform: rotate(90deg); }
.education-announcement__film {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 6.25rem;
  padding: 1.15rem 1.7rem;
  overflow: hidden;
  background: #743b49;
  color: #fff9f3;
  border-bottom: 1px solid rgba(255,255,255,.23);
}
.education-announcement__film::before,
.education-announcement__film::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: .43rem;
  background: repeating-linear-gradient(90deg, #fff5e6 0 .86rem, transparent .86rem 1.6rem);
  opacity: .8;
}
.education-announcement__film::before { top: .48rem; }
.education-announcement__film::after { bottom: .48rem; }
.education-announcement__film-inner { position: relative; z-index: 1; width: 100%; }
.education-announcement__film-index {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: .38rem 0 .1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .65rem;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .85;
}
.education-announcement__film-title {
  margin: .25rem 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.4rem, 3.8vw, 2.05rem);
  line-height: 1.2;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.04em;
}
.education-announcement__content { position: relative; padding: 1.55rem 1.8rem 1.45rem; }
.education-announcement__label {
  margin: 0 0 .85rem;
  color: var(--accent, #743b49);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .67rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.education-announcement__title {
  max-width: 12ch;
  margin: 0 0 1rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4.9vw, 2.65rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.education-announcement__title em { font-weight: 400; color: var(--accent, #743b49); }
.education-announcement__body {
  max-width: 42ch;
  margin: 0 0 1.35rem;
  font-size: .91rem;
  line-height: 1.65;
  color: var(--muted, #62554a);
}
.education-announcement__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.15rem;
  padding: .72rem .78rem .72rem 1.1rem;
  border-radius: .4rem;
  background: var(--accent, #743b49);
  color: var(--accent-text, #fff);
  font-size: .88rem;
  line-height: 1.35;
  font-weight: 670;
  text-decoration: none;
  transition: background .22s, transform .22s;
}
.education-announcement__cta-arrow {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}
.education-announcement__cta:hover { background: var(--espresso, #292420); transform: translateY(-2px); }
.education-announcement__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: .85rem 1.8rem;
  border-top: 1px dashed var(--line, rgba(41,36,32,.25));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .59rem;
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--muted, #62554a);
}
.education-announcement :focus-visible { outline: 2px solid var(--accent, #743b49); outline-offset: 3px; }
[dir='rtl'] .education-announcement__masthead { padding-inline: 1.55rem 1.3rem; }
[dir='rtl'] .education-announcement__brand,
[dir='rtl'] .education-announcement__film-title,
[dir='rtl'] .education-announcement__title { font-family: Georgia, Tahoma, Arial, sans-serif; letter-spacing: 0; }
[dir='rtl'] .education-announcement__department,
[dir='rtl'] .education-announcement__film-index,
[dir='rtl'] .education-announcement__label,
[dir='rtl'] .education-announcement__footer { letter-spacing: 0; }
[dir='rtl'] .education-announcement__title { max-width: 15ch; font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
[dir='rtl'] .education-announcement__cta { padding-inline: 1.1rem .78rem; }
@keyframes education-entrance {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 540px) {
  .education-announcement { inset-inline-start: 1rem; inset-inline-end: 1rem; bottom: 1rem; width: auto; max-height: 75vh; }
  .education-announcement__masthead { padding-inline: 1.15rem; }
  .education-announcement__film { min-height: 5.6rem; padding-inline: 1.25rem; }
  .education-announcement__content { padding: 1.2rem 1.25rem; }
  .education-announcement__title { font-size: 2rem; }
  .education-announcement__footer { padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .education-announcement.is-visible { animation: none; }
  .education-announcement__cta, .education-announcement__close { transition: none; }
}


/* Editorial rather than pill-shaped interactive treatment */
.education-announcement { border-radius: .3rem; z-index: 60; }
.education-announcement__cta, .education-announcement__cta-arrow, .education-announcement__close { border-radius: .15rem; }
.education-announcement__body { text-align: justify; text-justify: inter-word; }


/* Compact announcement on iPhone. It remains automatic, readable and
   dismissible, without covering most of the opening four-photo composition.
   Both themes and Arabic share exactly the same responsive constraints. */
@media (max-width:540px) {
  .education-announcement {
    inset-inline-start:12px!important;
    inset-inline-end:12px!important;
    bottom:max(12px,env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    max-width:none!important;
    max-height:min(52dvh,410px)!important;
    overflow-y:auto;
    border-radius:4px;
    overscroll-behavior:contain;
  }
  .education-announcement__masthead{
    min-height:46px;
    padding:7px 13px;
    position:sticky;
    top:0;
    z-index:4;
    background:var(--surface,#fffcf7);
  }
  .education-announcement__close{
    width:36px;height:36px;min-width:36px;min-height:36px;
  }
  .education-announcement__film {
    min-height:65px;
    padding:12px 15px;
  }
  .education-announcement__film::before,
  .education-announcement__film::after{height:4px}
  .education-announcement__film-index{font-size:9px}
  .education-announcement__film-title{font-size:clamp(21px,5.4vw,27px);margin:2px 0}
  .education-announcement__content{padding:14px 17px 16px}
  .education-announcement__label{margin-bottom:8px;font-size:10px}
  .education-announcement__title{
    font-size:clamp(26px,7vw,33px);
    line-height:1.08;
    margin-bottom:9px;
    max-width:none;
  }
  .education-announcement__body{
    font-size:12.5px;
    line-height:1.45;
    max-width:none;
    margin-bottom:13px;
    text-align:start;
  }
  .education-announcement__cta{
    min-height:45px;
    padding:8px 10px 8px 13px;
    font-size:13px;
  }
  .education-announcement__cta-arrow{width:27px;height:27px}
  .education-announcement__footer{padding:9px 15px;font-size:9px}
}
@media (max-width:390px) and (max-height:740px) {
  .education-announcement{max-height:min(48dvh,330px)!important}
  .education-announcement__footer{display:none}
}

/* Original film-strip treatment on the approved classic shell. */
.education-announcement { --surface:#fbf8f4; --text:#292420; --muted:#62554a; --line:#d8cfc9; --accent:#663b46; --accent-text:#fff9f3; --espresso:#42242e; --latte:#eee4dd; }
.education-announcement__film { background:#663b46; }
.education-announcement__title { max-width:none; text-wrap:normal; }
.education-announcement__body { max-width:none; }
:root[data-theme="dark"] .education-announcement { --surface:#181616; --text:#eee8e6; --muted:#c7bdbb; --line:#4a4043; --accent:#e4b9c6; --accent-text:#fff9f3; --espresso:#43242e; --latte:#30272b; }
:root[data-theme="dark"] .education-announcement__cta { background:#663b46; }
.education-announcement__close:hover { transform:none; }
[dir="rtl"] .education-announcement__title { max-width:none; }

/* A second, animated panel keeps subscription on the current homepage. */
.education-announcement__screens{position:relative;overflow:hidden;transition:height .28s cubic-bezier(.2,.75,.25,1)}
.education-announcement__intro,.education-announcement__signup{width:100%;min-width:0;transition:opacity .2s,transform .28s cubic-bezier(.2,.75,.25,1)}
.education-announcement__intro{position:relative;opacity:1;transform:translateY(0)}
.education-announcement__signup{position:absolute;inset:0 auto auto 0;visibility:hidden;opacity:0;transform:translateY(24px);pointer-events:none}
.education-announcement.is-signing-up .education-announcement__intro{position:absolute;inset:0 auto auto 0;visibility:hidden;opacity:0;transform:translateY(-24px);pointer-events:none}
.education-announcement.is-signing-up .education-announcement__signup{position:relative;inset:auto;visibility:visible;opacity:1;transform:translateY(0);pointer-events:auto}
.education-announcement.is-signing-up{max-height:calc(100dvh - 24px)!important}
.education-announcement__masthead{position:sticky;top:0;z-index:4;background:var(--surface,#fbf8f4)}
button.education-announcement__cta{width:100%;border:0;cursor:pointer;font-family:inherit;text-align:start}
.education-announcement__signup h3{font-family:Georgia,"Times New Roman",serif;font-size:28px;line-height:1.15;margin:8px 0 20px;letter-spacing:-.035em}
.education-announcement__back{display:inline-flex;align-items:center;min-height:36px;padding:0;border:0;background:transparent;color:var(--text);font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer}
.education-announcement .fn-form{gap:12px}
.education-announcement .fn-input{font-family:inherit}
.education-announcement .fn-submit{background:#663b46;border-color:#663b46;color:#fff9f3}
.education-announcement .fn-consent,.education-announcement .fn-label,.education-announcement .fn-feedback{color:var(--text)}
.education-announcement .fn-privacy{color:var(--muted);text-align:start;font-size:12px;margin:12px 0 0}
.education-announcement .fn-privacy a{text-decoration:underline;text-underline-offset:3px}
[dir=rtl] .education-announcement__signup h3{font-family:Tahoma,Arial,sans-serif;letter-spacing:0}
@media(prefers-reduced-motion:reduce){.education-announcement__screens,.education-announcement__intro,.education-announcement__signup{transition:none}}
.education-announcement.has-consent-banner{bottom:var(--announcement-bottom)!important;max-height:var(--announcement-available-height)!important}
