/* Core blocks used for page sections, styled to match the ICoTA Global components (see inc/blocks.php). */
.wp-block-image, .wp-block-gallery, .wp-block-table, .wp-block-embed, figure.wp-block-image { margin: 0; }
.wp-block-image img { display: block; width: 100%; height: auto; }
.wp-block-buttons.btn-cluster { flex-wrap: wrap; }
.wp-block-button { display: contents; }

/* Whole-card links: the card title link stretches over the card */
.card-crosslink { position: relative; }
.card-crosslink h3 a { color: inherit; text-decoration: none; }
.card-crosslink h3 a::after { content: ''; position: absolute; inset: 0; }
.card-crosslink .card-media figure, .card-media figure { height: 100%; }
.card-crosslink .card-media img, .card-media .wp-block-image img { aspect-ratio: 1 / 1; object-fit: cover; height: 100%; }
.team .block-header, .asia-board .block-header { border-bottom: 1px solid #185CA3; padding-bottom: var(--space-s); }

/* Feature media: images fill the column; embedded video keeps 16:9 */
.feature-media .wp-block-image img { width: 100%; height: auto; }
.feature-media .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.feature-media .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feature-content .prose.wp-block-group > * + * { margin-top: 1em; }
.feature-content .wp-block-list { list-style: disc; padding-left: 1.25rem; }
.feature-content .wp-block-list li { margin-top: .4em; }

/* CTA banner image */
.cta .cta-media .wp-block-image, .cta .cta-media figure { height: 100%; }

/* Scrolling logo strip (gallery) */
.logo-carousel { overflow: hidden; }
.logo-strip { display: flex; flex-wrap: nowrap; gap: var(--space-l); width: max-content; }
.logo-strip .wp-block-image { width: 320px; flex: none; }
.logo-strip .wp-block-image img { aspect-ratio: 16 / 9; height: 100%; width: 100%; border-radius: .5rem; object-fit: contain; }

/* Board table */
.asia-board .wp-block-table { overflow-x: auto; border-radius: var(--space-s); border: 1px solid #185CA3; }
.asia-board table { width: 100%; border-collapse: collapse; min-width: 36rem; color: #185CA3; font-size: var(--step-0); text-align: left; }
.asia-board th { background: linear-gradient(to right, #185CA3, #48CDFF); color: #fff; font-weight: 900; padding: var(--space-xs) var(--space-s); }
.asia-board td { padding: var(--space-xs) var(--space-s); border-top: 1px solid rgb(24 92 163 / .25); }
.asia-board tbody tr:nth-child(even) { background: #EBFAFF; }

/* Posts / event / course body text */
.prose .wp-block-list { list-style: disc; padding-left: 1.25rem; }
.prose .wp-block-heading { margin-top: 1.5em; font-weight: 700; color: #185CA3; }

/* Card kicker keeps its bold uppercase label (cards set paragraphs to light weight) */
.card-crosslink .card-content p.kicker, .card-content p.kicker { font-weight: 700; }
.asia-board th, .asia-board td { border: 0; }
.asia-board td { border-top: 1px solid rgb(24 92 163 / .25); }
