/* The sections of an institution's page under its hero (item 851, Figma 13646-33153): the messages (14108:17),
   the rows of programmes, staff, learning stories and courses opening soon (13656:564), the courses' list
   (14108:7, the catalogue's), the courses made with others (14108:22), "על המוסד" with its video, the courses'
   notices (13664:16693, 15320:7789) and the lists the "to all" links open (14108:32). The hero and the menu:
   org-page.css. Logical properties; the brand's tokens; hovers move, never recolour. */

.cil-orgp-body { display: flex; flex-direction: column; gap: clamp(56px, 6vw, 96px); padding-top: clamp(40px, 4vw, 64px); }
.cil-orgp-body > .cil-orgp-section { min-width: 0; }
.cil-orgp-section > .cil-ctl-sectionHead { margin-bottom: 28px; flex-wrap: wrap; row-gap: 4px; }
/* A "to all" link too long to sit beside its heading (the city's, in English, on a phone) goes under it and wraps,
   rather than pushing the page sideways (item 848). */
.cil-orgp-section > .cil-ctl-sectionHead > .cil-ctl-sectionHead__link { flex: 0 1 auto; min-width: 0; }

/* ---- Messages (14108:17): one to three cards, the newest first; one alone runs the page's width (13764:3116) ---- */
.cil-orgp-messages__list { display: grid; gap: 24px; }
.cil-orgp-messages__list--1 { grid-template-columns: minmax(0, 1fr); }
.cil-orgp-messages__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cil-orgp-messages__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* While one is open the others keep the height the row gave them (org-page.js, item 859). */
.cil-orgp-messages__list.is-pinned { align-items: start; }
/* The page's list reset (org-page.css, `.cil-orgp ul > li`) is stronger than a lone class: the card names its page too
   (item 859: its padding had been reset to none). Figma 13764:3146: 28px in, the 4px edge past it -- on the side the
   reading starts from, the right in Hebrew (item 860). */
.cil-orgp .cil-orgp-message {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px;
    border-inline-start: 4px solid var(--orgp-teal); border-radius: 16px; background: var(--cil-blue-light-1);
}
.cil-orgp-message__date { color: var(--cil-black-regular-6); font-size: 14px; font-variant-numeric: tabular-nums; }
.cil-orgp .cil-orgp-message__title { color: var(--cil-black); font-size: clamp(1.25rem, .4vw + 1rem, 1.5rem); font-weight: 700; line-height: 1.2; text-wrap: balance; }
/* Its text is rich (item 858): paragraphs, lists, bold and links, as the old page's blocks had them. */
.cil-orgp-message__text { display: flex; flex-direction: column; gap: 8px; align-self: stretch; color: var(--cil-black-regular-7); font-size: 18px; line-height: 1.3; }
.cil-orgp-message__text :is(p, ul, ol) { margin: 0; }
.cil-orgp-message__text :is(ul, ol) { padding-inline-start: 1.2em; }
.cil-orgp-message__text ul { list-style: disc; }
.cil-orgp-message__text ol { list-style: decimal; }
.cil-orgp-message__text :is(strong, b) { color: var(--cil-black); font-weight: 700; }
.cil-orgp .cil-orgp-message__text a { color: var(--orgp-teal); text-decoration: underline; text-underline-offset: 3px; }
/* Folded (org-page.js, with the script only): its first seven lines, fading out under them; opened, it grows to its whole
   height and the fade lifts. */
.cil-ctl-js .cil-orgp-message__text[data-orgp-fold] {
    max-height: calc(18px * 1.3 * 6); overflow: hidden;
    transition: max-height .32s var(--orgp-ease);
}
.cil-ctl-js .cil-orgp-message__text.has-more:not(.is-open) {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
    mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.cil-ctl-js .cil-orgp-message__text.is-whole { max-height: none; }
.cil-orgp .cil-orgp-message__more {
    display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 0; border: 0; background: none;
    color: var(--orgp-teal); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.cil-orgp .cil-orgp-message__more[hidden], html:not(.cil-ctl-js) .cil-orgp .cil-orgp-message__more { display: none; }
.cil-orgp .cil-orgp-message__more:is(:hover, :focus) { background: none; color: var(--orgp-teal); text-decoration: underline; text-underline-offset: 4px; }
.cil-orgp .cil-orgp-message__more:focus-visible { outline: 2px solid var(--orgp-teal); outline-offset: 2px; border-radius: 4px; }
.cil-orgp-message__more svg { transition: transform .25s var(--orgp-ease); }
.cil-orgp-message__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.cil-orgp-message__more:hover svg { translate: 0 2px; }
.cil-orgp .cil-orgp-message__link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--orgp-teal);
    font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px;
    transition: transform .2s var(--orgp-ease);
}
.cil-orgp .cil-orgp-message__link:is(:hover, :focus) { color: var(--orgp-teal); }
.cil-orgp .cil-orgp-message__link:hover { transform: translateY(-1px); }

/* ---- The rows: the home rows' carousel (stripe/assets/home-rows.css) at the page's width ---- */
.cil-orgp-row :is(.cil-row, .cil-sst, .cil-soon) { position: relative; }
.cil-orgp-row .cil-l-stripe__track > li { display: flex; }
.cil-orgp-row .cil-l-stripe__track > li > * { flex: 1; min-width: 0; }

/* ---- The courses: the catalogue's toolbar and list; the notice when there is none ---- */
.cil-orgp-courses .cil-ctl-live { display: flex; flex-direction: column; gap: 24px; }
.cil-orgp-notice { margin-top: 8px; }

/* ---- Courses with others (14108:22): by partner, its head then its courses ---- */
.cil-orgp-partner + .cil-orgp-partner { margin-top: 40px; }
.cil-orgp-partner__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cil-orgp-partner__plate {
    display: grid; place-items: center; flex: none; width: 56px; height: 56px; padding: 6px;
    border: 1px solid var(--cil-black-light-3); border-radius: 12px; background: var(--cil-white);
}
/* Fitted inside the plate, as the hero's logo (item 854): the img's own height attribute never sets its box. */
.cil-orgp-partner__plate > :is(picture, img), .cil-orgp-partner__plate img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cil-orgp-partner__words { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cil-orgp .cil-orgp-partner__name { color: var(--cil-black); font-size: 22px; font-weight: 700; line-height: 1.2; }
.cil-orgp-partner__count { color: var(--cil-black-regular-6); font-size: 14px; }
.cil-orgp .cil-orgp-partner__link {
    display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; color: var(--orgp-teal);
    font-size: 14px; font-weight: 600; white-space: nowrap;
}
.cil-orgp .cil-orgp-partner__link:is(:hover, :focus) { color: var(--orgp-teal); text-decoration: underline; text-underline-offset: 3px; }
.cil-orgp-partner__link svg { transition: transform .25s var(--orgp-ease); }
.cil-orgp-partner__link:hover svg { transform: translateX(-3px); }
.lang-to-css-ltr .cil-orgp-partner__link:hover svg { transform: translateX(3px); }

/* ---- About (Figma "על המוסד"): its heading, its video under it (item 858: its words are the hero's and the messages') ---- */
.cil-orgp-about__video { position: relative; max-width: 960px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: var(--cil-blue-dark-3); }
.cil-orgp-about__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--orgp-ease); }
.cil-orgp-about__video:hover .cil-orgp-about__poster { transform: scale(1.03); }
.cil-orgp .cil-orgp-about__play {
    position: absolute; top: 50%; left: 50%; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; margin: 0; padding: 0;
    border: 0; border-radius: 50%; background: var(--cil-white); color: var(--orgp-teal); cursor: pointer;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--cil-black) 22%, transparent);
    transform: translate(-50%, -50%); transition: transform .25s var(--orgp-ease);
}
.cil-orgp .cil-orgp-about__play:hover { background: var(--cil-white); transform: translate(-50%, -50%) scale(1.08); }
.cil-orgp .cil-orgp-about__play:active { transform: translate(-50%, -50%) scale(.97); }
.cil-orgp .cil-orgp-about__play svg { width: 28px; height: 28px; margin-inline-start: 4px; }
.lang-to-css-rtl .cil-orgp .cil-orgp-about__play svg { margin-inline-start: 0; margin-inline-end: 4px; }
/* Playing: the player's layers cover the poster; the poster and the button step back. */
.cil-orgp-about__video.is-playing :is(.cil-orgp-about__poster, .cil-orgp-about__play) { opacity: 0; pointer-events: none; }

/* ---- A list a "to all" link opens (14108:32): the trail, the title, the line, the way back, the cards ---- */
.cil-orgp-dest .cil-orgp-dest__head { padding-bottom: 24px; }
.cil-orgp .cil-orgp-dest__back {
    display: inline-flex; align-items: center; gap: 6px; color: var(--orgp-teal); font-size: 16px; font-weight: 600;
}
.cil-orgp .cil-orgp-dest__back:is(:hover, :focus) { color: var(--orgp-teal); text-decoration: underline; text-underline-offset: 3px; }
.cil-orgp-dest__back svg { transition: transform .25s var(--orgp-ease); }
.cil-orgp-dest__back:hover svg { transform: translateX(3px); }
.lang-to-css-ltr .cil-orgp-dest__back:hover svg { transform: translateX(-3px); }
.cil-orgp-dest .cil-ctl-live { display: flex; flex-direction: column; gap: 24px; }
.cil-orgp-listGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cil-orgp-listGrid--stories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cil-orgp-listGrid__cell { display: flex; min-width: 0; }
.cil-orgp-listGrid__cell > * { flex: 1; min-width: 0; }
/* Cards coming in with "show more" rise into place. */
.cil-orgp-listGrid__cell { animation: cil-orgp-rise .4s var(--orgp-ease) both; }
@keyframes cil-orgp-rise { from { opacity: 0; transform: translateY(8px); } }

/* ---- Narrower screens ---- */
@media (max-width: 1079px) {
    .cil-orgp-messages__list--3 { grid-template-columns: minmax(0, 1fr); }
    .cil-orgp-listGrid, .cil-orgp-listGrid--stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .cil-orgp-messages__list--2 { grid-template-columns: minmax(0, 1fr); }
    .cil-orgp .cil-orgp-message { padding: 24px 20px; }
    .cil-orgp-message__text { font-size: 16px; }
    .cil-ctl-js .cil-orgp-message__text[data-orgp-fold] { max-height: calc(16px * 1.3 * 7); }
    .cil-orgp-partner__head { flex-wrap: wrap; }
    .cil-orgp .cil-orgp-partner__link { margin-inline-start: 72px; }
    .cil-orgp-listGrid, .cil-orgp-listGrid--stories { grid-template-columns: minmax(0, 1fr); }
    .cil-orgp .cil-orgp-about__play { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .cil-orgp .cil-orgp-message__link, .cil-orgp-about__poster, .cil-orgp .cil-orgp-about__play,
    .cil-orgp-partner__link svg, .cil-orgp-dest__back svg, .cil-orgp-message__more svg { transition: none; }
    /* A message opens at once, its fade lifting; the caret still turns, without travel. */
    .cil-ctl-js .cil-orgp-message__text[data-orgp-fold] { transition: none; }
    .cil-orgp-message__more:hover svg { translate: none; }
    .cil-orgp-listGrid__cell { animation: cil-orgp-fade .2s ease both; }
    .cil-orgp-about__video:hover .cil-orgp-about__poster { transform: none; }
}
@keyframes cil-orgp-fade { from { opacity: 0; } }
