/* About + Events page pieces */

/* NFORSDT / NICE two-up */
.duo { gap: 2px !important; background: var(--line); border: 2px solid var(--line); margin-bottom: 32px; }
.duo .wp-block-column { background: #fff; padding: clamp(28px, 4vw, 48px); }
.duo h3 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: .25em; }
.duo .wp-block-column:first-child h3 { color: var(--innovate); }
.duo .wp-block-column:last-child h3 { color: var(--impact); }
.duo__link a { font: 500 15px/1 var(--btn); letter-spacing: .06em; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }

/* History timeline */
.timeline { position: relative; margin-top: 40px; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 48px; }
.timeline__item { position: relative; padding: 0 0 36px 30px; border-left: 2px solid rgba(255,255,255,.14); margin: 0; }
.timeline__item::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--ink); }
.timeline__item:nth-child(3n+1)::before { background: #4caf50; }
.timeline__item:nth-child(3n+2)::before { background: #3d7be0; }
.timeline__item:nth-child(3n+3)::before { background: #9b59d6; }
.timeline__year { font: 800 34px/1 var(--head) !important; letter-spacing: -0.02em; color: var(--gold); margin-bottom: 10px !important; }
.timeline__item h3 { font-size: 22px; font-weight: 600; margin-bottom: .4em; }
.timeline__item p:last-child { font-size: 18px; color: rgba(243,239,230,.78); margin: 0; }

/* Projects / grant */
.ticks--single { columns: 1 !important; }
.grant { background: var(--cream); padding: clamp(28px, 4vw, 44px) !important; border-left: 4px solid var(--gold); }
.grant ul { padding-left: 1.1em; font-size: 18px; }
.grant li { margin-bottom: 6px; }

/* Board photo grid */
.board-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin-top: 36px; }
.board-grid--small { grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); }
.people-title { margin-top: 64px !important; }
.board-card { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); margin: 0; isolation: isolate; }
.board-card .wp-block-image { margin: 0; }
.board-card .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.board-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(20,16,30,0) 45%, rgba(20,16,30,.85) 100%); }
.board-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--inspire); opacity: .9; transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.board-card:nth-child(3n+2)::after { background: var(--innovate); }
.board-card:nth-child(3n+3)::after { background: var(--impact); }
.board-card { display: grid !important; grid-template-rows: 1fr auto auto; grid-template-columns: 1fr; }
.board-card .wp-block-image { position: absolute; inset: 0; z-index: 0; }
.board-card p { position: relative; z-index: 2; margin: 0 22px !important; color: #fff; grid-column: 1; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s; }
.board-card__name { grid-row: 2; font: 600 21px/1.15 var(--head) !important; margin-bottom: 6px !important; }
.board-card__role { grid-row: 3; font: 400 13px/1.3 var(--btn) !important; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 22px !important; }
.board-card:hover .wp-block-image img, .board-card:focus-within .wp-block-image img { transform: scale(1.06); }
.board-card:hover::after, .board-card:focus-within::after { transform: translateY(58%); }
.board-card:hover p, .board-card:focus-within p { transform: translateY(-14px); }
.board-card:hover .board-card__role { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .board-card *, .board-card::after { transition: none !important; } }

/* About NICE intro + team + location */
.intro-center { max-width: 760px; margin: 0 auto 40px !important; }
.address { border-left: 3px solid var(--gold); padding-left: 18px; font-size: 18px; }
.address strong { font-family: var(--head); color: var(--ink); }

/* Closing statement */
.closing__lines { font: 500 clamp(24px, 2.8vw, 36px)/1.3 var(--head) !important; color: #fff; letter-spacing: -0.01em; }

/* Events page */
.facts { list-style: none; padding: 0 !important; margin: 0 0 8px; font-size: 18px; }
.facts li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.facts strong { display: inline-block; min-width: 72px; font: 500 13px/1 var(--btn); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.event-cards--line .event-card { background: var(--cream); }
.small-note { font-size: 17px; color: rgba(243,239,230,.65); }

/* Group blocks get an inner-container wrapper in classic themes, so ".cards > .wp-block-group" never matches. */
.cards > .wp-block-group__inner-container > .wp-block-group { background: #fff; padding: 30px 28px; margin: 0; transition: transform .2s, box-shadow .2s; }
.cards > .wp-block-group__inner-container > .wp-block-group:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.cards > .wp-block-group__inner-container > .wp-block-group:nth-child(3n+1) h3 { color: var(--inspire); }
.cards > .wp-block-group__inner-container > .wp-block-group:nth-child(3n+2) h3 { color: var(--innovate); }
.cards > .wp-block-group__inner-container > .wp-block-group:nth-child(3n+3) h3 { color: var(--impact); }
.page-body .cards.cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)) !important; }
/* Events: show the whole NICE visual (home crops it to fill) */
.page-id-2970 .feature__media .wp-block-image img { object-fit: contain; min-height: 0; }
.facts li { display: flex; gap: 14px; align-items: baseline; }
.facts strong { flex: 0 0 64px; min-width: 0; }
@media (max-width: 600px) {
	.board-grid, .board-grid--small { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.board-card p { margin-left: 12px !important; margin-right: 12px !important; }
	.board-card__name { font-size: 16px !important; }
	.board-card__role { font-size: 10.5px !important; letter-spacing: .08em; margin-bottom: 12px !important; }
}
