/*
Theme Name: KEC Consultant
Template: twentytwentyfive
Description: Block child theme for KEC Consultant, based on Twenty Twenty-Five.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: kec-consultant
*/

:root {
	--kec-radius: 14px;
	--kec-shadow: 0 14px 34px rgba(11, 35, 64, .1);
	--kec-section: clamp(3.5rem, 7vw, 6rem);
}

body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* Horizontal padding comes from the theme's root padding (theme.json); sections only add vertical space. */
.kec-main { padding-top: var(--kec-section); padding-bottom: var(--kec-section); }
.kec-main--flush { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.kec-main--flush .wp-block-post-content > * { margin-block-start: 0; }
/* Pages with padding: let a full-width last section sit flush on the footer. (Not on flush pages like Home – that pulled the footer over the CTA.) */
.kec-main:not(.kec-main--flush) .wp-block-post-content > .alignfull:last-child { margin-bottom: calc(var(--kec-section) * -1); }

/* ---------- Eyebrow / lead / notes ---------- */
.kec-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	margin: 0 0 .75rem;
	color: var(--wp--preset--color--primary);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.kec-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--wp--preset--color--accent); }
.is-style-lead { font-size: 1.2rem; line-height: 1.6; color: var(--wp--preset--color--muted); }
.kec-note { padding: 1rem 1.25rem; border-left: 4px solid var(--wp--preset--color--accent); background: #fff8eb; border-radius: 8px; font-size: .95rem; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-accent .wp-block-button__link { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-accent .wp-block-button__link:hover { background: #FFC94A; color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--primary); border: 1.5px solid var(--wp--preset--color--line); padding: calc(.8em - 1.5px) calc(1.5em - 1.5px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-dark); background: transparent; }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); padding: calc(.8em - 1.5px) calc(1.5em - 1.5px); }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.wp-block-button__link { transition: background-color .2s, color .2s, border-color .2s; }

/* ---------- Top bar & header ---------- */
.kec-topbar { background: var(--wp--preset--color--primary-dark); color: rgba(255, 255, 255, .85); font-size: .82rem; padding-top: .45rem; padding-bottom: .45rem; }
.kec-topbar p { margin: 0; }
.kec-topbar a { color: inherit; text-decoration: none; }
.kec-topbar a:hover { color: #fff; }
.kec-topbar__info { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; }
.kec-i { display: inline-flex; align-items: center; gap: .4rem; }
.kec-i::before { content: ""; width: 14px; height: 14px; background: var(--wp--preset--color--accent); flex: none; mask: var(--kec-icon) center / contain no-repeat; -webkit-mask: var(--kec-icon) center / contain no-repeat; }
.kec-i--pin, .is-address { --kec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.kec-i--mail, .is-email { --kec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.kec-i--clock, .is-clock { --kec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.is-phone { --kec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.is-whatsapp { --kec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 21l1.6-4.7A9 9 0 1 1 8 19.6z'/%3E%3C/svg%3E"); }

.kec-social { gap: .5rem !important; }
.kec-social .wp-social-link { color: currentColor; }
.kec-topbar .kec-social { color: rgba(255, 255, 255, .85); }

.kec-site-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .kec-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .kec-site-header { top: 0; } }
.kec-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--wp--preset--color--line); padding-top: .7rem; padding-bottom: .7rem; }
.kec-header__inner { gap: 1.5rem; }
.kec-header .wp-block-site-logo { flex: none; }
.kec-header .wp-block-site-logo img { width: 128px; height: auto; }
.kec-nav { flex: 1; }
.kec-nav .wp-block-navigation-item__content { padding: .5rem .2rem; color: var(--wp--preset--color--contrast); }
.kec-nav .wp-block-navigation__container { gap: 1.6rem; }
.kec-nav .wp-block-navigation-item__content:hover,
.kec-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--primary); }
.kec-nav .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--line) !important; border-radius: 12px; padding: .5rem !important; box-shadow: var(--kec-shadow); min-width: 220px !important; }
.kec-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .55rem .8rem; border-radius: 8px; }
.kec-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--soft); }
.kec-header__cta { gap: 1.25rem; }
.kec-header__phone { margin: 0; line-height: 1.2; white-space: nowrap; }
.kec-header__phone a { display: flex; flex-direction: column; color: var(--wp--preset--color--primary-dark); font-weight: 800; text-decoration: none; font-size: .95rem; }
.kec-header__phone small { color: var(--wp--preset--color--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 1180px) { .kec-header__phone { display: none; } }
@media (max-width: 781px) {
	.kec-topbar__info .kec-i--pin, .kec-topbar__info .kec-i--clock { display: none; }
	.kec-header__cta .wp-block-button__link { padding: .6em 1em; font-size: .85rem; }
	.kec-nav { flex: 0; order: 3; }
}
/* Tablets: core only switches to the hamburger below 600px, so the menu wrapped into a column here */
@media (min-width: 600px) and (max-width: 1023px) {
	.kec-nav { flex: 0; order: 3; }
	.kec-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.kec-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; }

/* ---------- Sections ---------- */
.kec-section { padding-top: var(--kec-section); padding-bottom: var(--kec-section); }
.kec-section--tight { padding-top: calc(var(--kec-section) * .6); padding-bottom: calc(var(--kec-section) * .6); }
.kec-section--soft { background: var(--wp--preset--color--soft); }
.kec-section--navy { background: radial-gradient(circle at 85% 10%, rgba(248, 183, 32, .14), transparent 40%), linear-gradient(135deg, #062544 0%, var(--wp--preset--color--primary-dark) 55%, #0B78C2 100%); color: rgba(255, 255, 255, .82); }
.kec-section--navy h2, .kec-section--navy h3 { color: #fff; }
.kec-section--navy .kec-eyebrow { color: var(--wp--preset--color--accent); }
.kec-section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.kec-section-head > * { margin-left: 0 !important; }
.kec-section-head h2 { margin-top: 0; }
.kec-section-head--row { gap: 1rem; }
.kec-gap-xl { gap: clamp(2rem, 5vw, 4.5rem) !important; }

/* ---------- Home hero ---------- */
.kec-hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(3.5rem, 8vw, 6.5rem);
	padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
	background:
		radial-gradient(circle at 92% 18%, rgba(248, 183, 32, .22), transparent 32%),
		radial-gradient(circle at 8% 100%, rgba(13, 155, 219, .45), transparent 45%),
		linear-gradient(120deg, #062544 0%, var(--wp--preset--color--primary-dark) 50%, #0B78C2 100%);
	color: rgba(255, 255, 255, .85);
}
.kec-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(90deg, transparent, #000 70%);
	pointer-events: none;
}
.kec-hero > * { position: relative; z-index: 1; }
.kec-hero h1 { color: #fff; margin: 0 0 1rem; max-width: 15ch; }
.kec-hero .kec-eyebrow { color: var(--wp--preset--color--accent); }
.kec-hero__lead { font-size: 1.15rem; max-width: 52ch; margin-bottom: 1.75rem; }
.kec-hero .kec-search { margin-bottom: 1.5rem; }
.kec-hero__cols { gap: clamp(2rem, 5vw, 4rem) !important; align-items: center !important; }
/* Hero photos: staggered 2×2 of students (replaces the old info boxes) */
.kec-hero-photos { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-bottom: 2.5rem; }
.kec-hero-photos::before { content: ""; position: absolute; top: -18px; right: -18px; width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--wp--preset--color--accent); opacity: .85; }
.kec-hero-photos__item { margin: 0 !important; position: relative; z-index: 1; }
.kec-hero-photos__item:nth-child(even) { transform: translateY(2.5rem); }
.kec-hero-photos__item img { display: block; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 22px; border: 4px solid rgba(255, 255, 255, .9); box-shadow: 0 24px 48px rgba(0, 0, 0, .3); }
.kec-hero-photos__item:nth-child(2) img, .kec-hero-photos__item:nth-child(3) img { border-color: var(--wp--preset--color--accent); }
@media (max-width: 781px) {
	/* Phones: one short row of four so the banner doesn't get longer */
	.kec-hero-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; padding-bottom: .9rem; }
	.kec-hero-photos::before { display: none; }
	.kec-hero-photos__item:nth-child(even) { transform: translateY(.9rem); }
	.kec-hero-photos__item img { aspect-ratio: 3 / 4; border-radius: 14px; border-width: 3px; box-shadow: 0 12px 24px rgba(0, 0, 0, .3); }
}
.kec-checklist { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .95rem; }
.kec-checklist li { display: flex; align-items: center; gap: .5rem; }
.kec-checklist li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2340' stroke-width='3.5'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; flex: none; }

/* ---------- Stats ---------- */
.kec-stats { gap: 1rem !important; }
.kec-stat { padding: 1.5rem; border-radius: var(--kec-radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.kec-stat p { margin: 0; }
.kec-stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.02em; }
.kec-stat__label { margin-top: .5rem !important; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.kec-hero__aside .kec-stat:nth-child(1), .kec-hero__aside .kec-stat:nth-child(4) { background: rgba(248, 183, 32, .14); border-color: rgba(248, 183, 32, .35); }
.kec-stats--band { margin-top: var(--kec-section) !important; padding: 1.25rem; border-radius: calc(var(--kec-radius) + 6px); background: linear-gradient(135deg, var(--wp--preset--color--primary-dark), var(--wp--preset--color--primary)); }
.kec-stats--band .kec-stat { text-align: center; }

/* ---------- About media collage ---------- */
.kec-about-media { position: relative; padding: 0 0 2.5rem 0; }
.kec-about-media figure { margin: 0; }
.kec-about-media__main img { width: 88%; border-radius: 20px; box-shadow: var(--kec-shadow); aspect-ratio: 7 / 5; object-fit: cover; }
.kec-about-media__small { position: absolute; right: 0; bottom: -1rem; width: 36%; }
.kec-about-media__small img { border-radius: 16px; border: 6px solid #fff; box-shadow: var(--kec-shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.kec-mini-features { gap: 1.5rem !important; margin: 1.5rem 0 2rem; }
.kec-mini-features h3 { margin: 0 0 .5rem; padding-left: 1rem; border-left: 3px solid var(--wp--preset--color--accent); }
.kec-mini-features p { font-size: .95rem; color: var(--wp--preset--color--muted); }
.kec-boxed { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--wp--preset--color--soft); border-radius: calc(var(--kec-radius) + 6px); margin-top: var(--kec-section) !important; }

/* ---------- Tiles (categories, modes, countries) ---------- */
.kec-tiles { gap: 1.25rem !important; counter-reset: tile; }
.kec-tile { position: relative; padding: 1.75rem 1.5rem; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--kec-radius); transition: transform .25s, box-shadow .25s, border-color .25s; counter-increment: tile; }
.kec-tile::before { content: counter(tile, decimal-leading-zero); display: block; margin-bottom: 1rem; font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--wp--preset--color--accent); }
.kec-tile:hover { transform: translateY(-4px); box-shadow: var(--kec-shadow); border-color: transparent; }
.kec-tile h3 { margin: 0 0 .5rem; }
.kec-tile h3 a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.kec-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kec-tile h3 a:hover { color: var(--wp--preset--color--primary); }
.kec-tile p { margin: 0; color: var(--wp--preset--color--muted); font-size: .93rem; }
.kec-tiles--modes .kec-tile { background: var(--wp--preset--color--soft); border-color: transparent; }

/* ---------- Features (why choose) ---------- */
.kec-features-grid { gap: 1.25rem !important; counter-reset: feat; }
.kec-feature { padding: 1.75rem; border-radius: var(--kec-radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); counter-increment: feat; transition: background-color .25s, transform .25s; }
.kec-feature:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.kec-feature::before { content: counter(feat, decimal-leading-zero); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1.1rem; border-radius: 12px; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); font-weight: 800; }
.kec-feature h3 { margin: 0 0 .5rem; }
.kec-feature p { margin: 0; font-size: .95rem; }
.kec-features-grid--light .kec-feature { background: #fff; border-color: var(--wp--preset--color--line); }
.kec-features-grid--light .kec-feature p { color: var(--wp--preset--color--muted); }
.wp-block-columns.kec-features { gap: 1.25rem; }
.wp-block-columns.kec-features .kec-feature { background: var(--wp--preset--color--soft); border-color: transparent; }
.wp-block-columns.kec-features .kec-feature p { color: var(--wp--preset--color--muted); }

/* ---------- Blog cards (latest posts + blog index) ---------- */
.kec-posts.wp-block-latest-posts { gap: 1.5rem; padding: 0; }
.kec-posts.wp-block-latest-posts.is-grid li,
.kec-post-card { margin: 0 !important; width: 100% !important; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--kec-radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.kec-posts.wp-block-latest-posts { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kec-posts.wp-block-latest-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kec-posts.wp-block-latest-posts { grid-template-columns: 1fr; } }
.kec-posts.wp-block-latest-posts li { display: flex; flex-direction: column; }
.kec-posts .wp-block-latest-posts__post-title { font-size: 1.02rem; display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kec-posts .wp-block-latest-posts__post-excerpt a { display: block; width: fit-content; margin-top: .6rem; color: var(--wp--preset--color--primary); font-weight: 800; text-decoration: none; }
.kec-posts .wp-block-latest-posts__post-excerpt a::after { content: " →"; transition: margin .25s; }
.kec-posts li:hover .wp-block-latest-posts__post-excerpt a::after { margin-left: .3em; }
.kec-posts li:hover, .kec-post-card:hover { box-shadow: var(--kec-shadow); transform: translateY(-3px); }
.kec-posts .wp-block-latest-posts__featured-image { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.kec-posts .wp-block-latest-posts__featured-image img { width: 100%; height: 100%; object-fit: cover; }
.kec-posts .wp-block-latest-posts__post-title { display: block; margin: 1.25rem 1.25rem .4rem; color: var(--wp--preset--color--contrast); font-weight: 800; font-size: 1.1rem; line-height: 1.35; text-decoration: none; }
.kec-posts .wp-block-latest-posts__post-title:hover { color: var(--wp--preset--color--primary); }
.kec-posts .wp-block-latest-posts__post-date { margin: 0 1.25rem; color: var(--wp--preset--color--muted); font-size: .82rem; }
.kec-posts .wp-block-latest-posts__post-excerpt { margin: .6rem 1.25rem 1.4rem; color: var(--wp--preset--color--muted); font-size: .92rem; }
.kec-post-card .wp-block-post-featured-image { margin: 0; }
.kec-post-card__body { padding: 1.25rem 1.25rem 1.5rem; }
.kec-post-card__body > * { margin-block: 0 .5rem; }
.kec-post-card__date { color: var(--wp--preset--color--muted); font-size: .82rem; }
.kec-post-card .wp-block-post-title a { text-decoration: none; }
.kec-post-card .wp-block-post-excerpt__excerpt { color: var(--wp--preset--color--muted); font-size: .92rem; }
.kec-blog .wp-block-post-template { gap: 1.5rem; }
.kec-blog .wp-block-query-pagination { margin-top: 2.5rem; gap: .5rem; }

/* ---------- Logos ---------- */
.kec-logos { gap: 1rem !important; }
.kec-logos .wp-block-image { margin: 0; padding: .75rem 1rem; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; }
.kec-logos img { height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.kec-logos .wp-block-image:hover img { filter: none; opacity: 1; }

/* ---------- Offices & contact ---------- */
.kec-office { padding: 1.75rem; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--kec-radius); }
.kec-office + .kec-office { margin-top: 1.25rem; }
.wp-block-columns > .kec-office + .kec-office { margin-top: 0; }
.kec-office h3 { margin: 0 0 1rem; }
.kec-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.kec-contact-list li { display: flex; gap: .7rem; align-items: flex-start; }
.kec-contact-list li::before { content: ""; width: 18px; height: 18px; margin-top: .2em; flex: none; background: var(--wp--preset--color--primary); mask: var(--kec-icon) center / contain no-repeat; -webkit-mask: var(--kec-icon) center / contain no-repeat; }
.kec-contact-list a { color: inherit; text-decoration: none; }
.kec-contact-list a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }
.kec-panel { padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: calc(var(--kec-radius) + 4px); box-shadow: var(--kec-shadow); scroll-margin-top: 120px; }
.kec-panel > h2:first-child { margin-top: 0; }

/* ---------- CTA band ---------- */
.kec-cta { gap: 1.5rem 2rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: calc(var(--kec-radius) + 10px); background: radial-gradient(circle at 100% 0%, rgba(248, 183, 32, .3), transparent 40%), linear-gradient(120deg, var(--wp--preset--color--primary-dark), var(--wp--preset--color--primary)); color: rgba(255, 255, 255, .85); }
.kec-cta__text { flex: 1 1 420px; }
.kec-cta h2 { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.kec-cta p { margin: 0; }

/* ---------- Page heroes ---------- */
.kec-page-hero.wp-block-cover { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); align-items: flex-end; }
.kec-page-hero .wp-block-cover__background.has-hero-gradient-background { opacity: 1 !important; }
.kec-page-hero .wp-block-cover__inner-container { color: #fff; }
.kec-page-hero h1 { color: #fff; margin: 0; }
.kec-page-hero--plain { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); background: radial-gradient(circle at 90% 0%, rgba(248, 183, 32, .2), transparent 35%), linear-gradient(120deg, #062544, var(--wp--preset--color--primary-dark) 60%, #0B78C2); color: rgba(255, 255, 255, .85); }
.kec-page-hero--plain .kec-eyebrow { color: var(--wp--preset--color--accent); }
.kec-page-hero--plain h1 { max-width: 22ch; }
.kec-page-hero .kec-hero__lead { margin-top: 1rem; color: rgba(255, 255, 255, .85); }
.kec-breadcrumb { margin: 0 0 1rem; font-size: .9rem; }
.kec-breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.kec-breadcrumb a:hover { color: #fff; }
.kec-post-meta { color: rgba(255, 255, 255, .75); margin-top: 1rem; }

.kec-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; font-size: 0; }
.kec-badges a { display: inline-block; padding: .35em .85em; border-radius: 999px; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.kec-badges .wp-block-post-terms__separator { display: none; }

/* ---------- Course page ---------- */
.kec-course-layout { gap: clamp(2rem, 5vw, 4rem) !important; }
.kec-course-layout h2:first-child { margin-top: 0; }
.kec-course-aside .kec-facts { position: sticky; top: 120px; }
.kec-course-content > p:first-child { font-size: 1.1rem; }
.kec-course-content .kec-accordion:first-of-type { margin-top: 2.5rem; }

/* ---------- Accordions (core Details block, enhanced by assets/kec.js) ---------- */
.kec-accordion {
	--acc: var(--wp--preset--color--primary);
	--acc-2: var(--wp--preset--color--brand);
	--acc-soft: #E3F1FB;
	--acc-text: #fff;
	margin: 0 !important;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	box-shadow: 0 8px 22px rgba(11, 35, 64, .05);
	transition: box-shadow .35s, border-color .35s, transform .35s;
}
.kec-acc--gold { --acc: #E5A50D; --acc-2: #F8B720; --acc-soft: #FFF3D1; --acc-text: var(--wp--preset--color--contrast); }
.kec-acc--teal { --acc: #0E8F8A; --acc-2: #22B5AC; --acc-soft: #D8F3F1; }
.kec-acc--sky { --acc: #0A86C7; --acc-2: #3DB8EC; --acc-soft: #DFF3FC; }
.kec-accordion + .kec-accordion { margin-top: .9rem !important; }
.kec-accordion:hover { border-color: var(--acc-soft); box-shadow: 0 14px 30px rgba(11, 35, 64, .09); }
.kec-accordion[open] { border-color: transparent; box-shadow: 0 22px 44px rgba(11, 35, 64, .12); }

.kec-accordion > summary {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .95rem 4.25rem .95rem 1rem;
	list-style: none;
	cursor: pointer;
	color: var(--wp--preset--color--contrast);
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1.35;
	transition: background .35s, color .35s;
}
.kec-accordion > summary::-webkit-details-marker { display: none; }
.kec-accordion > summary:hover { background: linear-gradient(90deg, var(--acc-soft), transparent 70%); }
.kec-accordion > summary:focus { outline: none; }
.kec-accordion > summary:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: -3px; border-radius: 18px; }
.kec-accordion[open] > summary { background: linear-gradient(110deg, var(--acc), var(--acc-2)); color: var(--acc-text); }

/* Chevron button */
.kec-accordion > summary::after {
	content: "";
	position: absolute;
	right: 1rem;
	top: 50%;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	border-radius: 50%;
	background: var(--acc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2340' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: rotate .35s cubic-bezier(.3, 1.4, .5, 1), background-color .35s;
}
.kec-accordion[open] > summary::after { rotate: 180deg; background-color: rgba(255, 255, 255, .9); }
.kec-accordion.is-closing > summary::after { rotate: 0deg; }

/* Topic icon tile */
.kec-acc__icon {
	position: relative;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--acc-soft);
	transition: background .35s, rotate .5s cubic-bezier(.3, 1.6, .5, 1), scale .5s cubic-bezier(.3, 1.6, .5, 1);
}
.kec-acc__icon::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--acc);
	mask: var(--kec-acc-icon) center / 22px no-repeat;
	-webkit-mask: var(--kec-acc-icon) center / 22px no-repeat;
}
.kec-accordion > summary:hover .kec-acc__icon { rotate: -8deg; scale: 1.06; }
.kec-accordion[open] .kec-acc__icon { background: rgba(255, 255, 255, .92); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }

.kec-acc__icon--entry { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 13l2 2 4-4'/%3E%3C/svg%3E"); }
.kec-acc__icon--teaching { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='1.5'/%3E%3Cpath d='M12 16v4M8 20h8M7 12l3-3 2 2 4-4'/%3E%3C/svg%3E"); }
.kec-acc__icon--career { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E"); }
.kec-acc__icon--document { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
.kec-acc__icon--finance { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.5 8.5a2.5 2.5 0 0 0-4.5 1.5v5.5M8.5 12.5h4.5M8.5 15.5h7'/%3E%3C/svg%3E"); }
.kec-acc__icon--eligible { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21a7 7 0 0 1 14 0M16 11l2 2 4-4'/%3E%3C/svg%3E"); }
.kec-acc__icon--why { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
.kec-acc__icon--visa { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 16l20-8-6 12-3-5z'/%3E%3C/svg%3E"); }
.kec-acc__icon--question { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .8-1 1.5v.7M12 17h.01'/%3E%3C/svg%3E"); }
.kec-acc__icon--info { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E"); }

/* Content */
.kec-acc__body { overflow: hidden; border-left: 4px solid var(--acc-2); margin: 0 !important; }
.kec-acc__body > * { margin-left: 1.5rem; margin-right: 1.5rem; }
.kec-acc__body > :first-child { margin-top: 1.4rem; }
.kec-acc__body > :last-child { margin-bottom: 1.5rem; }
.kec-acc__body ul { list-style: none; padding-left: 0; }
.kec-acc__body ul > li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.kec-acc__body ul > li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--acc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2340' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.kec-acc__body ol { padding-left: 1.4rem; }
.kec-acc__body ol > li { margin-bottom: .6rem; }
.kec-acc__body ol > li::marker { color: var(--acc); font-weight: 800; }
.kec-acc__body strong { color: var(--wp--preset--color--contrast); }
.kec-acc__body h3, .kec-acc__body h4 { color: var(--acc); }
/* Before the script runs (and in the editor): keep content padded */
.kec-accordion:not([data-kec-acc]) > :not(summary) { margin-left: 1.5rem; margin-right: 1.5rem; }
.kec-accordion:not([data-kec-acc]) > :last-child { margin-bottom: 1.25rem; }
.kec-accordion:not([data-kec-acc]) > summary { padding-left: 1.5rem; }
.wp-block-post-content > .kec-accordion:first-of-type,
.wp-block-post-content > p + .kec-accordion { margin-top: 2rem !important; }

@media (max-width: 600px) {
	.kec-accordion > summary { gap: .75rem; padding: .85rem 3.75rem .85rem .8rem; font-size: .98rem; }
	.kec-acc__icon { width: 40px; height: 40px; border-radius: 12px; }
	.kec-acc__body > * { margin-left: 1.1rem; margin-right: 1.1rem; }
}
/* ---------- Forms ---------- */
.kec-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.kec-form__field { display: flex; flex-direction: column; gap: .35rem; }
.kec-form__field--wide, .kec-form__section { grid-column: 1 / -1; }
.kec-form__section { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--line); font-size: 1.1rem; }
.kec-form__grid > .kec-form__section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.kec-form label { font-size: .88rem; font-weight: 700; color: var(--wp--preset--color--contrast); }
.kec-form__req { color: #c0392b; }
.kec-form input[type=text], .kec-form input[type=email], .kec-form input[type=tel], .kec-form input[type=date], .kec-form select, .kec-form textarea {
	width: 100%; box-sizing: border-box; padding: .75em .9em; border: 1.5px solid var(--wp--preset--color--line); border-radius: 10px; background: var(--wp--preset--color--soft); font: inherit; font-size: .95rem; color: var(--wp--preset--color--contrast);
}
.kec-form input:focus, .kec-form select:focus, .kec-form textarea:focus { outline: none; border-color: var(--wp--preset--color--primary); background: #fff; box-shadow: 0 0 0 4px rgba(10, 102, 178, .12); }
.kec-form__consent { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 500 !important; color: var(--wp--preset--color--muted) !important; }
.kec-form__consent input { margin-top: .25em; width: 1.05rem; height: 1.05rem; accent-color: var(--wp--preset--color--primary); flex: none; }
.kec-form__submit { margin-top: 1.5rem; padding: .9em 2em !important; font-size: 1rem !important; }
.kec-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kec-form__notice { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.25rem; }
.kec-form__notice--ok { background: #e8f6ee; color: #1e6b3d; border: 1px solid #b9e2c8; }
.kec-form__notice--error { background: #fdecea; color: #a12b1f; border: 1px solid #f5c2bd; }
@media (max-width: 640px) { .kec-form__grid { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.kec-article__image { margin-bottom: 2.5rem !important; }
.kec-article__image img { border-radius: var(--kec-radius); }
.kec-article .wp-block-post-content { font-size: 1.08rem; }

/* ---------- Footer ---------- */
.kec-footer { margin-top: 0; padding-top: clamp(3.5rem, 6vw, 5rem); padding-bottom: 1.5rem; background: #051B33; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.kec-footer__cols { gap: 2.5rem !important; }
.kec-footer__logo { background: #fff; padding: .5rem .75rem; border-radius: 10px; display: inline-block; margin-bottom: 1rem; }
.kec-footer__logo img { width: 110px; }
.kec-footer__title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1.25rem; }
.kec-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.kec-footer a:hover { color: var(--wp--preset--color--accent); }
.kec-footer__nav .wp-block-navigation__container { gap: .6rem; }
.kec-footer__nav .wp-block-navigation-item__content { padding: 0; }
.kec-footer .kec-contact-list li::before { background: var(--wp--preset--color--accent); }
.kec-footer .kec-social { margin-top: 1.25rem; }
.kec-footer .kec-social .wp-social-link { color: #fff; }
.kec-footer__bottom { margin-top: 3rem !important; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.kec-footer__bottom p { margin: 0; }

.kec-whatsapp-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); transition: transform .2s; }
.kec-whatsapp-float:hover { transform: scale(1.07); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

.kec-tiles--modes { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; }


/* ---------- Contact Form 7 ---------- */
.kec-form__field > label { display: flex; flex-direction: column; gap: .35rem; }
.kec-form .wpcf7-form-control-wrap { display: block; }
.kec-form .wpcf7-not-valid { border-color: #c0392b !important; background: #fdf3f2 !important; }
.kec-form .wpcf7-not-valid-tip { margin-top: .3rem; color: #c0392b; font-size: .82rem; font-weight: 600; }
.kec-form__consent .wpcf7-list-item { margin: 0; }
.kec-form__consent .wpcf7-list-item label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; color: var(--wp--preset--color--muted); font-size: .9rem; }
.kec-form__consent input[type=checkbox] { margin-top: .2em; width: 1.05rem; height: 1.05rem; accent-color: var(--wp--preset--color--primary); flex: none; }
.kec-form input[type=submit].kec-btn { border: 0; cursor: pointer; }
.wpcf7 form .wpcf7-response-output { margin: 1.25rem 0 0; padding: 1rem 1.25rem; border-radius: 10px; border-width: 1px; font-size: .95rem; }
.wpcf7 form.sent .wpcf7-response-output { background: #e8f6ee; border-color: #b9e2c8; color: #1e6b3d; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { background: #fdecea; border-color: #f5c2bd; color: #a12b1f; }
.wpcf7-spinner { vertical-align: middle; }

/* ---------- Apply tabs ---------- */
.kec-tabs { gap: .5rem !important; margin-bottom: 1.5rem !important; padding: .4rem; background: var(--wp--preset--color--soft); border-radius: 999px; display: inline-flex !important; }
.kec-tabs .wp-block-button__link { padding: .7em 1.6em; }
.kec-tabs .wp-block-button.is-style-outline .wp-block-button__link { border-color: transparent; background: transparent; }
.kec-tabs .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; border-color: transparent; }
.kec-tabs .wp-block-button.is-active .wp-block-button__link { box-shadow: 0 6px 16px rgba(10, 102, 178, .3); pointer-events: none; }

.kec-tabs { width: fit-content; margin-left: auto !important; margin-right: auto !important; display: flex !important; }

/* ---------- Study Categories section background ---------- */
.kec-section--levels {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 6% 12%, rgba(13, 155, 219, .14), transparent 32%),
		radial-gradient(circle at 94% 88%, rgba(248, 183, 32, .18), transparent 30%),
		var(--wp--preset--color--soft);
}
.kec-section--levels::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(10, 102, 178, .12) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000, transparent 55%);
	pointer-events: none;
}
.kec-section--levels > * { position: relative; }
.kec-section-head--center { text-align: center; }
.kec-section-head--center > * { margin-left: auto !important; margin-right: auto !important; }
.kec-section-head--center .kec-eyebrow::after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--wp--preset--color--accent); }

/* ---------- Study Categories: interactive "study journey" ---------- */
.kec-journey { counter-reset: level; }
.kec-journey .kec-level { counter-increment: level; }

/* Level icons (used by the step tabs and the panel badge) */
.kec-level--short { --kec-level-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.kec-level--foundation { --kec-level-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5z'/%3E%3Cpath d='m3 13 9 5 9-5'/%3E%3Cpath d='m3 17.5 9 5 9-5'/%3E%3C/svg%3E"); }
.kec-level--undergraduate { --kec-level-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M22 9 12 4 2 9l10 5z'/%3E%3Cpath d='M6 11v5c0 1.7 2.7 3 6 3s6-1.3 6-3v-5'/%3E%3Cpath d='M22 9v6'/%3E%3C/svg%3E"); }
.kec-level--premasters { --kec-level-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h5v-5h5v-5h5V5h3'/%3E%3C/svg%3E"); }
.kec-level--postgraduate { --kec-level-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.5 14 7 22l5-3 5 3-1.5-8'/%3E%3C/svg%3E"); }

/* Without JS (and inside the block editor): simple stacked cards */
.kec-journey .kec-level { margin: 0 0 1.25rem !important; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(11, 35, 64, .07); }
.kec-journey .kec-level__img { margin: 0 !important; }
.kec-journey .kec-level__img img { width: 100%; height: 100% !important; object-fit: cover; }
.kec-journey .kec-level__body { padding: 1.75rem; margin: 0 !important; }
.kec-journey .kec-level h3 { margin-top: 0; }
.kec-journey .kec-level__more { font-weight: 800; color: var(--wp--preset--color--primary); }

/* With JS: steps on the left, big photo panel on the right */
html.kec-js .kec-journey.is-ready {
	display: grid;
	grid-template-columns: minmax(290px, 380px) minmax(0, 1fr);
	gap: 1.75rem;
	align-items: stretch;
}

.kec-journey__nav { position: relative; display: flex; flex-direction: column; gap: .7rem; }
/* The vertical "path" connecting the steps */
.kec-journey__nav::before { content: ""; position: absolute; left: 47px; top: 40px; bottom: 40px; width: 2px; background: repeating-linear-gradient(180deg, var(--wp--preset--color--line) 0 6px, transparent 6px 12px); z-index: 0; }

.kec-journey__tab {
	all: unset;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 24px;
	align-items: center;
	gap: 1rem;
	padding: .95rem 1.1rem .95rem 1.1rem;
	border: 1px solid transparent;
	border-radius: 18px;
	cursor: pointer;
	overflow: hidden;
	transition: background .35s, box-shadow .35s, border-color .35s, transform .35s;
}
.kec-journey__tab:hover { background: rgba(255, 255, 255, .7); }
.kec-journey__tab:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.kec-journey__tab.is-active { background: #fff; border-color: var(--wp--preset--color--line); box-shadow: 0 18px 40px rgba(10, 102, 178, .14); transform: translateX(6px); }

.kec-journey__icon {
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--wp--preset--color--line), 0 6px 14px rgba(11, 35, 64, .06);
	transition: background .35s, box-shadow .35s, rotate .5s cubic-bezier(.3, 1.6, .5, 1);
}
.kec-journey__icon::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--primary);
	mask: var(--kec-level-icon) center / 26px no-repeat;
	-webkit-mask: var(--kec-level-icon) center / 26px no-repeat;
	transition: background .35s;
}
.kec-journey__tab.is-active .kec-journey__icon { background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--brand)); box-shadow: 0 10px 22px rgba(10, 102, 178, .35); rotate: -6deg; }
.kec-journey__tab.is-active .kec-journey__icon::after { background: #fff; }

.kec-journey__text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.kec-journey__text small { color: var(--wp--preset--color--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kec-journey__text strong { color: var(--wp--preset--color--contrast); font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.kec-journey__text em { color: var(--wp--preset--color--muted); font-size: .85rem; font-style: normal; }
.kec-journey__tab.is-active .kec-journey__text small { color: var(--wp--preset--color--primary); }
.kec-journey__tab.is-active .kec-journey__text em { color: var(--wp--preset--color--primary); font-weight: 700; }

.kec-journey__chev { width: 24px; height: 24px; border-radius: 50%; background: var(--wp--preset--color--soft); opacity: 0; translate: -6px 0; transition: opacity .35s, translate .35s; }
.kec-journey__chev::after { content: "›"; display: grid; place-items: center; height: 100%; color: var(--wp--preset--color--primary); font-weight: 800; }
.kec-journey__tab.is-active .kec-journey__chev { opacity: 1; translate: 0 0; }

/* Auto-play progress bar on the active step */
.kec-journey__tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--wp--preset--color--accent), #FFD36B); }
.kec-journey.is-playing .kec-journey__tab.is-active::after { animation: kec-progress var(--kec-autoplay, 6000ms) linear forwards; }
.kec-journey.is-paused .kec-journey__tab.is-active::after { animation-play-state: paused; }
@keyframes kec-progress { to { width: 100%; } }

/* Photo panel */
.kec-journey__panels { position: relative; min-height: 540px; border-radius: 28px; overflow: hidden; background: #062544; box-shadow: 0 30px 60px rgba(6, 37, 68, .25); isolation: isolate; }
html.kec-js .kec-journey.is-ready .kec-level {
	position: absolute;
	inset: 0;
	display: block;
	margin: 0 !important;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility 0s linear .7s;
}
html.kec-js .kec-journey.is-ready .kec-level.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; z-index: 1; }

html.kec-js .kec-journey.is-ready .kec-level__img { position: absolute; inset: 0; margin: 0 !important; height: 100%; }
html.kec-js .kec-journey.is-ready .kec-level__img img { width: 100%; height: 100% !important; object-fit: cover; scale: 1.12; transition: scale 7s ease-out; }
html.kec-js .kec-journey.is-ready .kec-level.is-active .kec-level__img img { scale: 1; }
html.kec-js .kec-journey.is-ready .kec-level__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgba(6, 37, 68, .95) 0%, rgba(6, 37, 68, .7) 38%, rgba(6, 37, 68, .1) 72%),
		linear-gradient(90deg, rgba(6, 37, 68, .45), transparent 60%);
}

/* Big outlined level number */
html.kec-js .kec-journey.is-ready .kec-level::before {
	content: counter(level, decimal-leading-zero);
	position: absolute;
	top: 1.25rem;
	right: 1.75rem;
	z-index: 2;
	color: transparent;
	-webkit-text-stroke: 2px rgba(255, 255, 255, .55);
	font-size: clamp(4rem, 9vw, 7.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.04em;
}

html.kec-js .kec-journey.is-ready .kec-level__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	max-width: 680px;
	padding: clamp(1.5rem, 4vw, 2.75rem);
	margin: 0 !important;
	color: #fff;
}
/* Gold icon badge above the title */
html.kec-js .kec-journey.is-ready .kec-level__body::before {
	content: "";
	display: block;
	width: 54px;
	height: 54px;
	margin-bottom: 1.1rem;
	border-radius: 16px;
	background: var(--wp--preset--color--accent) linear-gradient(135deg, var(--wp--preset--color--accent), #FFD36B);
	box-shadow: 0 12px 26px rgba(248, 183, 32, .4);
}
html.kec-js .kec-journey.is-ready .kec-level__body::after {
	content: "";
	position: absolute;
	top: clamp(1.5rem, 4vw, 2.75rem);
	left: clamp(1.5rem, 4vw, 2.75rem);
	width: 54px;
	height: 54px;
	background: var(--wp--preset--color--contrast);
	mask: var(--kec-level-icon) center / 26px no-repeat;
	-webkit-mask: var(--kec-level-icon) center / 26px no-repeat;
}
html.kec-js .kec-journey.is-ready .kec-level h3 { margin: 0 0 .75rem; font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important; letter-spacing: -.02em; }
html.kec-js .kec-journey.is-ready .kec-level h3 a { color: #fff; text-decoration: none; }
html.kec-js .kec-journey.is-ready .kec-level__body p { margin: 0 0 1.5rem; color: rgba(255, 255, 255, .86); font-size: 1.05rem; line-height: 1.7; }
html.kec-js .kec-journey.is-ready .kec-level__body p.kec-level__more { margin: 0; }

/* Text slides up when a level becomes active */
html.kec-js .kec-journey.is-ready .kec-level__body > *,
html.kec-js .kec-journey.is-ready .kec-level__body::before,
html.kec-js .kec-journey.is-ready .kec-level__body::after { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .8, .2, 1); }
html.kec-js .kec-journey.is-ready .kec-level.is-active .kec-level__body > *,
html.kec-js .kec-journey.is-ready .kec-level.is-active .kec-level__body::before,
html.kec-js .kec-journey.is-ready .kec-level.is-active .kec-level__body::after { opacity: 1; translate: 0 0; }
html.kec-js .kec-journey.is-ready .kec-level.is-active .kec-level__body > :nth-child(1) { transition-delay: .15s; }
html.kec-js .kec-journey.is-ready .kec-level.is-active .kec-level__body > :nth-child(2) { transition-delay: .25s; }
html.kec-js .kec-journey.is-ready .kec-level.is-active .kec-level__body > :nth-child(3) { transition-delay: .35s; }

/* Gold call-to-action button */
.kec-journey__cta {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	padding: .85em 1.1em .85em 1.5em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast) !important;
	font-weight: 800;
	font-size: 1rem;
	text-decoration: none !important;
	box-shadow: 0 14px 30px rgba(248, 183, 32, .35);
	transition: background .3s, transform .3s;
}
.kec-journey__cta::after { content: "→"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(11, 35, 64, .12); transition: translate .3s; }
.kec-journey__cta:hover { background: #FFC94A; transform: translateY(-2px); }
.kec-journey__cta:hover::after { translate: 4px 0; }

/* Tablet & phone: steps become a swipeable row above the panel */
@media (max-width: 960px) {
	html.kec-js .kec-journey.is-ready { grid-template-columns: 1fr; gap: 1rem; }
	.kec-journey__nav { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem .75rem; margin: 0 -.25rem; scrollbar-width: none; }
	.kec-journey__nav::-webkit-scrollbar { display: none; }
	.kec-journey__nav::before { display: none; }
	.kec-journey__tab { flex: 0 0 auto; scroll-snap-align: start; grid-template-columns: 44px auto; gap: .7rem; padding: .7rem 1rem .7rem .7rem; background: rgba(255, 255, 255, .7); border-color: var(--wp--preset--color--line); }
	.kec-journey__tab.is-active { transform: none; }
	.kec-journey__icon { width: 44px; height: 44px; border-radius: 12px; }
	.kec-journey__icon::after { mask-size: 22px; -webkit-mask-size: 22px; }
	.kec-journey__text em, .kec-journey__chev { display: none; }
	.kec-journey__panels { min-height: 560px; border-radius: 22px; }
	html.kec-js .kec-journey.is-ready .kec-level__body p { font-size: .98rem; }
}
@media (max-width: 600px) {
	.kec-journey .kec-level { grid-template-columns: 1fr; }
	.kec-journey__panels { min-height: 600px; }
}

/* ---------- Why Choose KECC (split layout, icons, spotlight cards) ---------- */
.kec-why { position: relative; overflow: hidden; isolation: isolate; }
/* Slowly drifting blue and gold light */
.kec-why::before,
.kec-why::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	filter: blur(90px);
	opacity: .55;
	animation: kec-drift 18s ease-in-out infinite alternate;
	pointer-events: none;
}
.kec-why::before { top: -220px; right: -160px; background: rgba(13, 155, 219, .55); }
.kec-why::after { bottom: -260px; left: -200px; background: rgba(248, 183, 32, .28); animation-delay: -9s; }
@keyframes kec-drift { from { translate: 0 0; scale: 1; } to { translate: -120px 90px; scale: 1.15; } }

.kec-why__cols { gap: clamp(2.5rem, 5vw, 4.5rem) !important; align-items: flex-start !important; }
.kec-why__intro { position: sticky; top: 120px; }
.kec-why__intro h2 { margin: 0 0 1rem; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.kec-why__lead { font-size: 1.12rem; color: rgba(255, 255, 255, .8); margin: 0 0 2rem; }

/* Photo collage with floating stat badges */
.kec-why__media { position: relative; margin: 0 0 2.25rem !important; padding: 1.5rem 3.5rem 2.5rem 0; }
.kec-why__media figure { margin: 0 !important; }
.kec-why__photo img { display: block; width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 26px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.kec-why__inset { position: absolute; right: 0; bottom: 0; width: 42%; }
.kec-why__inset img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; border: 6px solid #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.kec-why__badge {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	padding: .8rem 1.1rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, .95);
	color: var(--wp--preset--color--muted);
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 18px 36px rgba(0, 0, 0, .25);
	animation: kec-bob 5s ease-in-out infinite;
}
.kec-why__badge strong { color: var(--wp--preset--color--primary); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.kec-why__badge::before { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--accent); box-shadow: 0 0 0 4px rgba(248, 183, 32, .25); }
.kec-why__badge--top { top: 0; left: -1.25rem; }
.kec-why__badge--bottom { bottom: 3.5rem; left: -1.25rem; animation-delay: -2.5s; }
@keyframes kec-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Service cards */
.kec-why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.kec-why .kec-feature {
	position: relative;
	margin: 0 !important;
	padding: 1.75rem 1.6rem 1.6rem;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 22px;
	background:
		radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(13, 155, 219, .22), transparent 45%),
		linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
	backdrop-filter: blur(4px);
	transition: border-color .35s, transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1);
	transition-delay: 0s, 0s, 0s, calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms);
}
.kec-why .kec-feature:hover { transform: translateY(-6px); border-color: rgba(248, 183, 32, .55); box-shadow: 0 24px 48px rgba(0, 0, 0, .3); background-color: rgba(255, 255, 255, .04); }
/* Icon tile (::before) + icon glyph (::after) replace the old 01–06 numbers */
.kec-why .kec-feature::before {
	content: "";
	display: block;
	width: 58px;
	height: 58px;
	margin-bottom: 1.25rem;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--brand));
	box-shadow: 0 12px 26px rgba(13, 155, 219, .35);
	transition: background .4s, rotate .5s cubic-bezier(.3, 1.6, .5, 1), scale .5s cubic-bezier(.3, 1.6, .5, 1), box-shadow .4s;
}
.kec-why .kec-feature::after {
	content: "";
	position: absolute;
	top: 1.75rem;
	left: 1.6rem;
	width: 58px;
	height: 58px;
	background: #fff;
	mask: var(--kec-feat-icon) center / 28px no-repeat;
	-webkit-mask: var(--kec-feat-icon) center / 28px no-repeat;
	transition: background .4s, rotate .5s cubic-bezier(.3, 1.6, .5, 1), scale .5s cubic-bezier(.3, 1.6, .5, 1);
}
.kec-why .kec-feature:hover::before { background: linear-gradient(135deg, var(--wp--preset--color--accent), #FFD36B); box-shadow: 0 12px 26px rgba(248, 183, 32, .4); rotate: -8deg; scale: 1.08; }
.kec-why .kec-feature:hover::after { background: var(--wp--preset--color--contrast); rotate: -8deg; scale: 1.08; }
.kec-why .kec-feature h3 { margin: 0 0 .55rem; font-size: 1.18rem !important; }
.kec-why .kec-feature p { margin: 0; color: rgba(255, 255, 255, .74); font-size: .94rem; line-height: 1.65; }

.kec-feature--counselling { --kec-feat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1.1-4.5A8 8 0 1 1 21 12z'/%3E%3Cpath d='M12 15.5s-3.5-2-3.5-4.2a1.8 1.8 0 0 1 3.5-.7 1.8 1.8 0 0 1 3.5.7c0 2.2-3.5 4.2-3.5 4.2z'/%3E%3C/svg%3E"); }
.kec-feature--career { --kec-feat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15.5 8.5-2 5-5 2 2-5z'/%3E%3C/svg%3E"); }
.kec-feature--cv { --kec-feat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Ccircle cx='10' cy='12' r='1.6'/%3E%3Cpath d='M8 17c.4-1.3 1.1-2 2-2s1.6.7 2 2M14 12h2M14 15h2'/%3E%3C/svg%3E"); }
.kec-feature--application { --kec-feat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4z'/%3E%3C/svg%3E"); }
.kec-feature--interview { --kec-feat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v4M8 22h8'/%3E%3C/svg%3E"); }
.kec-feature--finance { --kec-feat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.5 8.5a2.5 2.5 0 0 0-4.5 1.5v5.5M8.5 12.5h4.5M8.5 15.5h7'/%3E%3C/svg%3E"); }

/* Cards slide in one after another (only with JS running) */
html.kec-js:not(.kec-noreveal) .kec-reveal > :not(.is-visible) { opacity: 0; translate: 0 36px; }

@media (max-width: 1100px) {
	.kec-why__grid { grid-template-columns: 1fr 1fr; }
	.kec-why__media { padding-right: 2.5rem; }
}
@media (max-width: 781px) {
	.kec-why__intro { position: static; }
	.kec-why__grid { grid-template-columns: 1fr; }
	.kec-why__media { max-width: 460px; }
	.kec-why__badge--top, .kec-why__badge--bottom { left: -.5rem; }
}

/* ---------- Mode of Study: heading + 3 modes in one 4-column row ---------- */
.kec-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.kec-modes > * { margin: 0 !important; }
.kec-modes__head { display: flex; flex-direction: column; justify-content: center; padding-right: 1rem; }
.kec-modes__head h2 { margin: 0 0 1.25rem; font-size: clamp(1.8rem, 2.6vw, 2.35rem); }
.kec-modes__link { margin: 0; }
.kec-modes__link a { display: inline-flex; align-items: center; gap: .5rem; color: var(--wp--preset--color--primary); font-weight: 800; text-decoration: none; }
.kec-modes__link a::after { content: "→"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wp--preset--color--primary); color: #fff; transition: translate .3s; }
.kec-modes__link a:hover::after { translate: 4px 0; }

.kec-mode {
	position: relative;
	overflow: hidden;
	padding: 2rem 1.75rem 1.9rem !important;
	background: #fff !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 22px !important;
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .45s, opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1) !important;
	transition-delay: 0s, 0s, 0s, calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms) !important;
}
/* Icon tile replaces the 01/02/03 numbers */
.kec-mode::before {
	content: "" !important;
	display: grid !important;
	width: 60px;
	height: 60px;
	margin-bottom: 1.4rem !important;
	border-radius: 18px;
	background: var(--wp--preset--color--soft);
	transition: background .4s, rotate .5s cubic-bezier(.3, 1.6, .5, 1);
}
.kec-mode::after {
	content: "";
	position: absolute;
	top: 2rem;
	left: 1.75rem;
	width: 60px;
	height: 60px;
	background: var(--wp--preset--color--primary);
	mask: var(--kec-mode-icon) center / 28px no-repeat;
	-webkit-mask: var(--kec-mode-icon) center / 28px no-repeat;
	transition: background .4s, rotate .5s cubic-bezier(.3, 1.6, .5, 1);
}
/* Big soft accent circle in the corner */
.kec-mode h3::before { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(13, 155, 219, .1), transparent 70%); transition: scale .6s; pointer-events: none; }
.kec-mode h3 { margin: 0 0 .6rem; }
.kec-mode p { margin: 0; color: var(--wp--preset--color--muted); font-size: .95rem; line-height: 1.65; }
.kec-mode:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(10, 102, 178, .14); border-color: transparent !important; }
.kec-mode:hover::before { background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--brand)); rotate: -8deg; }
.kec-mode:hover::after { background: #fff; rotate: -8deg; }
.kec-mode:hover h3::before { scale: 1.6; }
/* Thin gradient line along the bottom that grows on hover */
.kec-mode > :last-child::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent)); transition: width .5s ease; }
.kec-mode:hover > :last-child::after { width: 100%; }

.kec-mode--centre { --kec-mode-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 21h18M5 21V10l7-5 7 5v11'/%3E%3Cpath d='M10 21v-5h4v5M9 12h.01M15 12h.01'/%3E%3C/svg%3E"); }
.kec-mode--distance { --kec-mode-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='4' y='5' width='16' height='11' rx='1.5'/%3E%3Cpath d='M2 19h20'/%3E%3Cpath d='M9.5 11.5a3.5 3.5 0 0 1 5 0M11 13.2a1.4 1.4 0 0 1 2 0' opacity='.9'/%3E%3C/svg%3E"); }
.kec-mode--blended { --kec-mode-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Ccircle cx='9' cy='12' r='6'/%3E%3Ccircle cx='15' cy='12' r='6'/%3E%3C/svg%3E"); }

@media (max-width: 1100px) {
	.kec-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kec-modes__head { grid-column: 1 / -1; padding: 0 0 .5rem; }
}
@media (max-width: 760px) {
	.kec-modes { grid-template-columns: 1fr; }
}

/* Header dropdown: on narrower screens open towards the left so it never runs off-screen */
@media (max-width: 1100px) {
	.kec-nav .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container { left: auto !important; right: 0 !important; }
}
/* Safety net: hidden off-screen elements must never cause sideways scrolling */
html, body { overflow-x: clip; }

/* ---------- Partner logos: endless colourful scrolling strip ---------- */
.kec-logos--marquee {
	display: block !important;
	overflow: hidden;
	padding: 1rem 0 1.5rem;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.kec-logos__track { display: flex; gap: 1.25rem; width: max-content; animation: kec-marquee var(--kec-marquee-duration, 35s) linear infinite; }
.kec-logos--marquee:hover .kec-logos__track,
.kec-logos--marquee:focus-within .kec-logos__track { animation-play-state: paused; }
@keyframes kec-marquee { to { transform: translateX(calc(-50% - .625rem)); } }

.kec-logos--marquee .wp-block-image {
	flex: none;
	display: grid;
	place-items: center;
	width: 230px;
	height: 120px;
	margin: 0 !important;
	padding: 1rem 1.5rem;
	box-sizing: border-box;
	border: 2px solid transparent;
	border-radius: 20px;
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--wp--preset--color--line), var(--wp--preset--color--line)) border-box;
	box-shadow: 0 10px 26px rgba(11, 35, 64, .07);
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, background .4s;
}
.kec-logos--marquee .wp-block-image:hover {
	transform: translateY(-6px) scale(1.04);
	box-shadow: 0 20px 40px rgba(10, 102, 178, .18);
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--wp--preset--color--brand), var(--wp--preset--color--accent)) border-box;
}
/* Full colour (the old style showed them in grey) */
.kec-logos--marquee img { width: auto !important; max-width: 100%; height: 76px !important; object-fit: contain; filter: none !important; opacity: 1 !important; }

@media (max-width: 640px) {
	.kec-logos--marquee .wp-block-image { width: 170px; height: 96px; padding: .75rem 1rem; }
	.kec-logos--marquee img { height: 58px !important; }
}
/* Visitors who prefer less motion get a still, wrapped row */
@media (prefers-reduced-motion: reduce) {
	.kec-logos__track { flex-wrap: wrap; justify-content: center; width: auto; }
	.kec-logos__track [aria-hidden="true"] { display: none; }
}

/* ---------- Our Global Offices ---------- */
.kec-offices { position: relative; overflow: hidden; isolation: isolate; }
.kec-offices::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(10, 102, 178, .14) 1.2px, transparent 1.2px);
	background-size: 20px 20px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 70%);
}
.kec-offices__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kec-offices__grid > * { margin: 0 !important; }
.kec-offices__intro h2 { margin: 0 0 1rem; }
.kec-offices__lead { color: var(--wp--preset--color--muted); font-size: 1.08rem; margin: 0 0 1.75rem; }

/* Opening hours card with a live "open" dot */
.kec-offices__hours { display: flex; flex-direction: column; gap: .2rem; margin: 0 0 1.5rem !important; padding: 1.1rem 1.3rem 1.1rem 4.2rem; position: relative; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; box-shadow: 0 10px 26px rgba(11, 35, 64, .06); }
.kec-offices__hours::before { content: ""; position: absolute; left: 1.2rem; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 12px; background: var(--wp--preset--color--soft) linear-gradient(135deg, rgba(248, 183, 32, .25), rgba(248, 183, 32, .1)); }
.kec-offices__hours::after { content: ""; position: absolute; left: calc(1.2rem + 9px); top: 50%; width: 18px; height: 18px; margin-top: -9px; background: #B7820C; mask: var(--kec-icon) center / contain no-repeat; -webkit-mask: var(--kec-icon) center / contain no-repeat; --kec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.kec-offices__hours p { margin: 0; }
.kec-offices__hours-label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.kec-offices__hours-time { color: var(--wp--preset--color--contrast); }
.kec-offices__hours-time strong { margin-right: .35rem; }

/* Quick contact buttons */
.kec-offices__quick { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; }
.kec-offices__quick li { margin: 0; }
.kec-offices__quick li::before { display: none; }
.kec-offices__quick a { display: inline-flex; align-items: center; gap: .55rem; padding: .7em 1.15em; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--contrast); font-weight: 700; font-size: .92rem; text-decoration: none; transition: background .3s, color .3s, border-color .3s, transform .3s; }
.kec-offices__quick a::before { content: ""; width: 18px; height: 18px; background: currentColor; mask: var(--kec-icon) center / contain no-repeat; -webkit-mask: var(--kec-icon) center / contain no-repeat; color: var(--wp--preset--color--primary); transition: color .3s; }
.kec-offices__quick a:hover { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; transform: translateY(-2px); }
.kec-offices__quick a:hover::before { color: #fff; }
.kec-offices__quick .is-whatsapp a:hover { background: #25D366; border-color: #25D366; }

/* Office cards */
.kec-offices__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.kec-office-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	padding: 2rem 1.75rem 1.75rem;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 24px;
	box-shadow: 0 16px 40px rgba(11, 35, 64, .08);
	--kec-card-accent: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--brand));
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1);
	transition-delay: 0s, 0s, calc(var(--i, 0) * 120ms), calc(var(--i, 0) * 120ms);
}
.kec-office-card--bd { --kec-card-accent: linear-gradient(90deg, var(--wp--preset--color--accent), #FFD36B); }
.kec-office-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--kec-card-accent); }
.kec-office-card:hover { transform: translateY(-8px); box-shadow: 0 28px 56px rgba(10, 102, 178, .16); }

/* Pulsing location pin in the corner */
.kec-office-card::after {
	content: "";
	position: absolute;
	top: 1.6rem;
	right: 1.6rem;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--wp--preset--color--soft);
	animation: kec-ping 2.4s ease-out infinite;
}
.kec-office-card--bd::after { animation-delay: -1.2s; }
@keyframes kec-ping { 0% { box-shadow: 0 0 0 0 rgba(13, 155, 219, .35); } 80%, 100% { box-shadow: 0 0 0 16px rgba(13, 155, 219, 0); } }
.kec-office-card__tag { position: relative; display: flex; align-items: center; gap: .6rem; margin: 0 4rem 1rem 0 !important; color: var(--wp--preset--color--muted); font-size: .82rem; font-weight: 700; }
.kec-office-card__tag span { display: grid; place-items: center; min-width: 36px; height: 26px; padding: 0 .5rem; border-radius: 8px; background: var(--wp--preset--color--primary); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.kec-office-card--bd .kec-office-card__tag span { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); }
.kec-office-card__tag::after { content: ""; position: absolute; right: -4rem; top: 50%; width: 46px; height: 46px; margin-top: -23px; background: var(--wp--preset--color--primary); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / 22px no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / 22px no-repeat; z-index: 1; }
.kec-office-card h3 { margin: 0 0 1.25rem; font-size: clamp(1.4rem, 2vw, 1.7rem); }
.kec-office-card .kec-contact-list { gap: .5rem; margin-bottom: 1.5rem; }
.kec-office-card .kec-contact-list li { padding: .7rem .85rem; border-radius: 12px; background: var(--wp--preset--color--soft); font-size: .93rem; line-height: 1.45; transition: background .3s; }
.kec-office-card .kec-contact-list li:hover { background: #E6F1FB; }
.kec-office-card__actions { margin-top: auto !important; gap: .6rem !important; }
.kec-office-card__actions .wp-block-button__link { padding: .7em 1.2em; font-size: .9rem; }

@media (max-width: 1000px) {
	.kec-offices__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.kec-offices__cards { grid-template-columns: 1fr; }
	.kec-office-card { padding: 1.75rem 1.25rem 1.5rem; }
}
.kec-acc__icon--tuition { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M22 9 12 4 2 9l10 5z'/%3E%3Cpath d='M6 11v5c0 1.7 2.7 3 6 3s6-1.3 6-3v-5M22 9v6'/%3E%3C/svg%3E"); }
.kec-acc__icon--living { --kec-acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7'/%3E%3Cpath d='M5 10v10h14V10M10 20v-6h4v6'/%3E%3C/svg%3E"); }

/* ---------- Study in <country> pages ---------- */
/* Banner text sits on the country photo */
.page-template-default .kec-page-hero .wp-block-post-title { font-size: clamp(2.4rem, 5vw, 3.8rem); }

/* Intro + plan card */
.kec-country-intro__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kec-country-intro__grid > * { margin: 0 !important; }
.kec-country-intro__text .is-style-lead { font-size: 1.15rem; line-height: 1.8; color: var(--wp--preset--color--contrast); }
.kec-country-intro__text .is-style-lead::first-letter { float: left; font-size: 3.6rem; line-height: .9; font-weight: 800; margin: .35rem .6rem 0 0; color: var(--wp--preset--color--primary); }
.kec-plan {
	position: relative;
	overflow: hidden;
	padding: 2.25rem 2rem;
	border-radius: 26px;
	color: rgba(255, 255, 255, .85);
	background: radial-gradient(circle at 100% 0%, rgba(248, 183, 32, .35), transparent 45%), linear-gradient(140deg, #062544, var(--wp--preset--color--primary-dark) 55%, var(--wp--preset--color--primary));
	box-shadow: 0 30px 60px rgba(6, 37, 68, .28);
}
.kec-plan::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .06); }
.kec-plan h3 { color: #fff; margin: 0 0 1.25rem; font-size: 1.6rem; }
.kec-plan__eyebrow { margin: 0 0 .4rem; color: var(--wp--preset--color--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kec-plan__list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .7rem; }
.kec-plan__list li { display: flex; align-items: center; gap: .75rem; font-weight: 600; color: #fff; }
.kec-plan__list li::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2340' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Reasons grid */
.kec-country-why .kec-section-head p:not(.kec-eyebrow) { color: var(--wp--preset--color--muted); font-size: 1.08rem; }
.kec-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.kec-benefit {
	--b: var(--wp--preset--color--primary);
	--b-soft: #E3F1FB;
	position: relative;
	margin: 0 !important;
	padding: 1.75rem 1.5rem 1.6rem;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 22px;
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .45s, opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1);
	transition-delay: 0s, 0s, 0s, calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms);
}
.kec-benefit:nth-child(4n + 2) { --b: #E5A50D; --b-soft: #FFF3D1; }
.kec-benefit:nth-child(4n + 3) { --b: #0E8F8A; --b-soft: #D8F3F1; }
.kec-benefit:nth-child(4n + 4) { --b: #0A86C7; --b-soft: #DFF3FC; }
.kec-benefit::before { content: ""; display: block; width: 56px; height: 56px; margin-bottom: 1.2rem; border-radius: 16px; background: var(--b-soft); transition: background .4s, rotate .5s cubic-bezier(.3, 1.6, .5, 1); }
.kec-benefit::after { content: ""; position: absolute; top: 1.75rem; left: 1.5rem; width: 56px; height: 56px; background: var(--b); mask: var(--kec-benefit-icon) center / 26px no-repeat; -webkit-mask: var(--kec-benefit-icon) center / 26px no-repeat; transition: background .4s, rotate .5s cubic-bezier(.3, 1.6, .5, 1); }
.kec-benefit h3 { margin: 0 0 .5rem; font-size: 1.15rem !important; }
.kec-benefit p { margin: 0; color: var(--wp--preset--color--muted); font-size: .94rem; line-height: 1.65; }
/* Corner glow + bottom bar on hover */
.kec-benefit > :last-child::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 4px; background: var(--b); transition: width .5s ease; }
.kec-benefit:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 26px 50px rgba(11, 35, 64, .12); }
.kec-benefit:hover::before { background: var(--b); rotate: -8deg; }
.kec-benefit:hover::after { background: #fff; rotate: -8deg; }
.kec-benefit:hover > :last-child::after { width: 100%; }

.kec-benefit--university { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M4 10h16L12 4zM6 10v8M10 10v8M14 10v8M18 10v8'/%3E%3C/svg%3E"); }
.kec-benefit--research { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6L4.5 18.5A1.7 1.7 0 0 0 6 21h12a1.7 1.7 0 0 0 1.5-2.5L14 9V3M7 15h10'/%3E%3C/svg%3E"); }
.kec-benefit--courses { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M4 19V5M8 7h7M8 11h5'/%3E%3C/svg%3E"); }
.kec-benefit--cost { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.5 8.5a2.5 2.5 0 0 0-4.5 1.5v5.5M8.5 12.5h4.5M8.5 15.5h7'/%3E%3C/svg%3E"); }
.kec-benefit--work { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E"); }
.kec-benefit--quality { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E"); }
.kec-benefit--culture { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
.kec-benefit--language { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1.1-4.5A8 8 0 1 1 21 12z'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E"); }
.kec-benefit--safety { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.kec-benefit--visa { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 16l20-8-6 12-3-5z'/%3E%3C/svg%3E"); }
.kec-benefit--life { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6 6 0 0 1 3.5 6'/%3E%3C/svg%3E"); }
.kec-benefit--nature { --kec-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 20 6-10 4 6 3-4 5 8z'/%3E%3Ccircle cx='17' cy='6' r='2'/%3E%3C/svg%3E"); }

/* Closing line callout */
.kec-callout { position: relative; margin-top: 2rem !important; padding: 1.5rem 1.75rem 1.5rem 4.25rem; border-radius: 20px; background: linear-gradient(110deg, #fff, var(--wp--preset--color--soft)); border: 1px solid var(--wp--preset--color--line); }
.kec-callout::before { content: "“"; position: absolute; left: 1.25rem; top: .4rem; font-size: 4rem; line-height: 1; font-weight: 800; color: var(--wp--preset--color--accent); }
.kec-callout p { margin: 0; font-size: 1.08rem; font-weight: 600; color: var(--wp--preset--color--contrast); }

/* Services */
.kec-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.kec-service { position: relative; margin: 0 !important; padding: 1.75rem 1.5rem; border-radius: 22px; color: rgba(255, 255, 255, .82); background: linear-gradient(150deg, #062544, var(--wp--preset--color--primary)); overflow: hidden; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1); transition-delay: 0s, 0s, calc(var(--i, 0) * 100ms), calc(var(--i, 0) * 100ms); }
.kec-service::before { content: ""; display: block; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 14px; background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2340' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 22px no-repeat; }
.kec-service::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(13, 155, 219, .25); }
.kec-service h3 { color: #fff; margin: 0 0 .5rem; font-size: 1.15rem !important; }
.kec-service p { margin: 0; font-size: .93rem; }
.kec-service:hover { transform: translateY(-6px); box-shadow: 0 24px 46px rgba(6, 37, 68, .3); }

/* Other destinations */
.kec-dests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.kec-dest { position: relative; margin: 0 !important; min-height: 260px; border-radius: 24px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; background: #062544; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1); transition-delay: 0s, 0s, calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms); }
.kec-dest__img { position: absolute !important; inset: 0; z-index: -1; margin: 0 !important; }
.kec-dest__img img { width: 100%; height: 100% !important; object-fit: cover; transition: scale .8s cubic-bezier(.2, .8, .2, 1); }
.kec-dest::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 37, 68, .92) 5%, rgba(6, 37, 68, .25) 60%, rgba(6, 37, 68, .05)); }
.kec-dest h3 { margin: 0 0 .25rem; font-size: 1.5rem !important; }
.kec-dest h3 a { color: #fff; text-decoration: none; }
.kec-dest h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.kec-dest__more { margin: 0; color: var(--wp--preset--color--accent); font-weight: 800; font-size: .9rem; }
.kec-dest__more::after { content: " →"; transition: margin .3s; }
.kec-dest:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(6, 37, 68, .3); }
.kec-dest:hover .kec-dest__img img { scale: 1.08; }
.kec-dest:hover .kec-dest__more::after { margin-left: .35rem; }

@media (max-width: 960px) {
	.kec-country-intro__grid { grid-template-columns: 1fr; }
	.kec-dests { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.kec-dests { grid-template-columns: 1fr; }
	.kec-dest { min-height: 200px; }
}

/* Pages whose content starts with a full-width section: no double gap under the banner */
.kec-main:not(.kec-main--flush) .wp-block-post-content > .alignfull:first-child { margin-top: calc(var(--kec-section) * -1) !important; }

/* ---------- Inside open accordions: richer content ---------- */
.kec-acc__body { background: linear-gradient(180deg, color-mix(in srgb, var(--acc-soft) 55%, #fff) 0, #fff 160px); }
.kec-acc__body > p:first-child { font-size: 1.04rem; color: var(--wp--preset--color--contrast); }
.kec-acc__body p { line-height: 1.75; }
/* List items become small cards; long lists flow into two columns */
.kec-acc__body ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .7rem; margin-top: 1rem; margin-bottom: 1.25rem; }
.kec-acc__body ul > li {
	position: relative;
	margin: 0 !important;
	padding: .9rem 1rem .9rem 3rem;
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--acc) 18%, #fff);
	border-radius: 14px;
	box-shadow: 0 6px 16px rgba(11, 35, 64, .04);
	line-height: 1.6;
	transition: border-color .3s, transform .3s, box-shadow .3s;
}
.kec-acc__body ul > li:hover { border-color: var(--acc); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(11, 35, 64, .08); }
.kec-acc__body ul > li::before { left: 1rem; top: 1rem; width: 22px; height: 22px; background-color: var(--acc); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); background-size: 12px; }
.kec-acc--gold .kec-acc__body ul > li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2340' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }
/* "Standard Entry: …" – the bold lead-in becomes the card's title line */
.kec-acc__body ul > li > strong:first-child { display: block; margin-bottom: .2rem; color: var(--acc); font-size: .98rem; }
.kec-acc--gold .kec-acc__body ul > li > strong:first-child { color: #9A6B00; }
/* Numbered lists: number badges */
.kec-acc__body ol { list-style: none; counter-reset: acc; padding-left: 0; display: grid; gap: .7rem; }
.kec-acc__body ol > li { counter-increment: acc; position: relative; margin: 0 !important; padding: .9rem 1rem .9rem 3.25rem; background: #fff; border: 1px solid color-mix(in srgb, var(--acc) 18%, #fff); border-radius: 14px; }
.kec-acc__body ol > li::before { content: counter(acc); position: absolute; left: .9rem; top: .85rem; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--acc); color: #fff; font-size: .8rem; font-weight: 800; }
.kec-acc--gold .kec-acc__body ol > li::before { color: var(--wp--preset--color--contrast); }
/* Sub-headings inside the content */
.kec-acc__body h3, .kec-acc__body h4 { position: relative; padding-left: .9rem; margin-top: 1.5rem; font-size: 1.1rem; }
.kec-acc__body h3::before, .kec-acc__body h4::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--acc); }
/* Tables (e.g. fee tables) */
.kec-acc__body table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; font-size: .92rem; }
.kec-acc__body td, .kec-acc__body th { padding: .7rem .9rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.kec-acc__body tr:first-child td { background: var(--acc-soft); font-weight: 700; }
@media (max-width: 600px) {
	.kec-acc__body ul { grid-template-columns: 1fr; }
}

.kec-acc__body ul > li > strong:first-child { font-weight: 800; }


/* Stronger shade so destination titles stay readable on any photo */
.kec-dest::before { background: linear-gradient(0deg, rgba(6, 37, 68, .95) 0%, rgba(6, 37, 68, .55) 45%, rgba(6, 37, 68, .1) 80%); }


.kec-dest h3, .kec-dest__more { text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }


/* ---------- "Promise" tiles (replace unverifiable numbers) ---------- */
.kec-stats--promise .kec-stat { position: relative; padding-top: 4.4rem; }
.kec-stats--promise .kec-stat__num { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.2; letter-spacing: -.01em; }
.kec-stats--promise .kec-stat__label { font-size: .88rem; line-height: 1.45; }
.kec-stats--promise .kec-stat::before { content: ""; position: absolute; top: 1.35rem; left: 1.5rem; width: 40px; height: 40px; border-radius: 12px; background: var(--wp--preset--color--accent); }
.kec-stats--promise .kec-stat::after { content: ""; position: absolute; top: 1.35rem; left: 1.5rem; width: 40px; height: 40px; background: var(--wp--preset--color--contrast); mask: var(--kec-promise-icon) center / 20px no-repeat; -webkit-mask: var(--kec-promise-icon) center / 20px no-repeat; }
.kec-stats--promise .kec-stat:nth-child(1) { --kec-promise-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E"); }
.kec-stats--promise .kec-stat:nth-child(2) { --kec-promise-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 11-4.7'/%3E%3Ccircle cx='17.5' cy='16.5' r='4'/%3E%3Cpath d='M17.5 14.5v2l1.3 1'/%3E%3C/svg%3E"); }
.kec-stats--promise .kec-stat:nth-child(3) { --kec-promise-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.5 8.5a2.5 2.5 0 0 0-4.5 1.5v5.5M8.5 12.5h4.5M8.5 15.5h7'/%3E%3C/svg%3E"); }
.kec-stats--promise .kec-stat:nth-child(4) { --kec-promise-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='1.5'/%3E%3Cpath d='M2 20h20M12 7.5v5M9.5 10h5'/%3E%3C/svg%3E"); }
.kec-stats--band.kec-stats--promise .kec-stat { text-align: left; }

/* ---------- UK & EU page ---------- */
.kec-ukeu-aid__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: 2.5rem !important; }
.kec-ukeu-aid__top > * { margin: 0 !important; }
.kec-ukeu-aid__img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 26px; box-shadow: 0 28px 56px rgba(11, 35, 64, .18); }
.kec-ukeu-aid__text h2 { margin: 0 0 .75rem; }
.kec-ukeu-aid__sub { margin: 0 0 .75rem !important; font-size: 1.15rem !important; color: var(--wp--preset--color--primary); }
.kec-ukeu-aid__text p { color: var(--wp--preset--color--muted); line-height: 1.75; }
.kec-ukeu-aid__lead-in { color: var(--wp--preset--color--contrast) !important; font-weight: 700; }

.kec-funds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.kec-fund {
	--f: var(--wp--preset--color--primary);
	--f-soft: #E3F1FB;
	position: relative;
	overflow: hidden;
	margin: 0 !important;
	padding: 2.25rem 2rem 2rem 2rem;
	background: #fff;
	border-radius: 26px;
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 16px 40px rgba(11, 35, 64, .07);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1);
	transition-delay: 0s, 0s, calc(var(--i, 0) * 120ms), calc(var(--i, 0) * 120ms);
}
.kec-fund--living { --f: #0E8F8A; --f-soft: #D8F3F1; }
.kec-fund::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--f), color-mix(in srgb, var(--f) 55%, #fff)); }
.kec-fund::after { content: ""; position: absolute; right: 1.75rem; top: 1.75rem; width: 64px; height: 64px; border-radius: 20px; background: var(--f-soft); }
.kec-fund > h3::before { content: ""; position: absolute; right: 1.75rem; top: 1.75rem; width: 64px; height: 64px; background: var(--f); mask: var(--kec-fund-icon) center / 30px no-repeat; -webkit-mask: var(--kec-fund-icon) center / 30px no-repeat; z-index: 1; }
.kec-fund--tuition { --kec-fund-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M22 9 12 4 2 9l10 5z'/%3E%3Cpath d='M6 11v5c0 1.7 2.7 3 6 3s6-1.3 6-3v-5M22 9v6'/%3E%3C/svg%3E"); }
.kec-fund--living { --kec-fund-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7'/%3E%3Cpath d='M5 10v10h14V10M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.kec-fund__tag { display: inline-block; margin: 0 0 .75rem !important; padding: .3em .8em; border-radius: 999px; background: var(--f-soft); color: var(--f); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kec-fund h3 { margin: 0 6rem .75rem 0; font-size: 1.6rem !important; }
.kec-fund p { color: var(--wp--preset--color--muted); line-height: 1.75; }
.kec-fund:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(11, 35, 64, .12); }
.kec-ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.kec-ticks li { position: relative; padding: .85rem 1rem .85rem 3rem; border-radius: 14px; background: var(--f-soft, var(--wp--preset--color--soft)); color: var(--wp--preset--color--contrast); font-weight: 600; line-height: 1.5; }
.kec-ticks li::before { content: ""; position: absolute; left: 1rem; top: .95rem; width: 22px; height: 22px; border-radius: 50%; background: var(--f, var(--wp--preset--color--primary)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

.kec-ukeu-eligible .kec-section-head p:not(.kec-eyebrow) { color: var(--wp--preset--color--muted); font-size: 1.05rem; }
.kec-ukeu-eligible__lead-in { color: var(--wp--preset--color--contrast) !important; font-weight: 700; }
.kec-factors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: factor; }
.kec-factor {
	--c: var(--wp--preset--color--primary);
	position: relative;
	margin: 0 !important;
	padding: 4.75rem 1.4rem 1.5rem;
	border-radius: 22px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	line-height: 1.6;
	counter-increment: factor;
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1);
	transition-delay: 0s, 0s, calc(var(--i, 0) * 100ms), calc(var(--i, 0) * 100ms);
}
.kec-factor:nth-child(2) { --c: #E5A50D; }
.kec-factor:nth-child(3) { --c: #0E8F8A; }
.kec-factor:nth-child(4) { --c: #0A86C7; }
.kec-factor::before { content: ""; position: absolute; top: 1.4rem; left: 1.4rem; width: 48px; height: 48px; border-radius: 14px; background: var(--c); }
.kec-factor::after { content: ""; position: absolute; top: 1.4rem; left: 1.4rem; width: 48px; height: 48px; background: #fff; mask: var(--kec-factor-icon) center / 24px no-repeat; -webkit-mask: var(--kec-factor-icon) center / 24px no-repeat; }
.kec-factor:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(11, 35, 64, .1); border-color: transparent; }
.kec-factor--age { --kec-factor-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E"); }
.kec-factor--resident { --kec-factor-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7'/%3E%3Cpath d='M5 10v10h14V10M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.kec-factor--first { --kec-factor-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M22 9 12 4 2 9l10 5z'/%3E%3Cpath d='M6 11v5c0 1.7 2.7 3 6 3s6-1.3 6-3v-5'/%3E%3C/svg%3E"); }
.kec-factor--course { --kec-factor-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M4 19V5M8 7h7M8 11h5'/%3E%3C/svg%3E"); }
.kec-ukeu-eligible { scroll-margin-top: 110px; }

@media (max-width: 1000px) {
	.kec-ukeu-aid__top { grid-template-columns: 1fr; }
	.kec-factors { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
	.kec-funds, .kec-factors { grid-template-columns: 1fr; }
	.kec-fund { padding: 2rem 1.4rem 1.6rem; }
	.kec-fund h3 { margin-right: 5rem; font-size: 1.35rem !important; }
}

/* Banner photos: favour the upper part, where faces and landmarks usually are */
.kec-page-hero .wp-block-cover__image-background { object-position: 50% 30% !important; }


/* ---------- About: promise tiles fill the whole band ---------- */
.kec-stats--band.kec-stats--promise { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 1.25rem !important; padding: 1.5rem !important; }
@media (max-width: 1000px) { .kec-stats--band.kec-stats--promise { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .kec-stats--band.kec-stats--promise { grid-template-columns: 1fr !important; } }

/* ---------- About: "UK and EU Students" / "Global Study Solutions" as icon cards ---------- */
.kec-boxed { padding: 0 !important; background: none !important; border-radius: 0; gap: 1.5rem !important; }
.kec-boxed > .wp-block-column {
	--c: var(--wp--preset--color--primary);
	--c-soft: #E3F1FB;
	position: relative;
	overflow: hidden;
	padding: 2.25rem 2rem 2rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 24px;
	box-shadow: 0 16px 40px rgba(11, 35, 64, .07);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}
.kec-boxed > .wp-block-column:nth-child(2) { --c: #0E8F8A; --c-soft: #D8F3F1; }
.kec-boxed > .wp-block-column::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 45%, #fff)); }
/* Icon tile + icon */
.kec-boxed > .wp-block-column::after { content: ""; position: absolute; top: 2rem; right: 2rem; width: 60px; height: 60px; border-radius: 18px; background: var(--c-soft); transition: background .4s, rotate .5s cubic-bezier(.3, 1.6, .5, 1); }
.kec-boxed > .wp-block-column > h3::after { content: ""; position: absolute; top: 2rem; right: 2rem; width: 60px; height: 60px; z-index: 1; background: var(--c); mask: var(--kec-box-icon) center / 28px no-repeat; -webkit-mask: var(--kec-box-icon) center / 28px no-repeat; transition: background .4s, rotate .5s cubic-bezier(.3, 1.6, .5, 1); }
.kec-boxed > .wp-block-column:nth-child(1) { --kec-box-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M22 9 12 4 2 9l10 5z'/%3E%3Cpath d='M6 11v5c0 1.7 2.7 3 6 3s6-1.3 6-3v-5M22 9v6'/%3E%3C/svg%3E"); }
.kec-boxed > .wp-block-column:nth-child(2) { --kec-box-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
.kec-boxed > .wp-block-column > h3 { padding-left: 0 !important; border-left: 0 !important; margin: 0 5.5rem 1rem 0 !important; font-size: 1.5rem !important; }
.kec-boxed > .wp-block-column > p { color: var(--wp--preset--color--muted); font-size: 1rem; line-height: 1.75; margin: 0; }
.kec-boxed > .wp-block-column:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(11, 35, 64, .12); }
.kec-boxed > .wp-block-column:hover::after { background: var(--c); rotate: -8deg; }
.kec-boxed > .wp-block-column:hover > h3::after { background: #fff; rotate: -8deg; }

/* Icon sits above the heading so text never runs underneath it */
.kec-boxed > .wp-block-column { padding-top: 6.4rem; }
.kec-boxed > .wp-block-column::after,
.kec-boxed > .wp-block-column > h3::after { top: 2.1rem; right: auto; left: 2rem; }
.kec-boxed > .wp-block-column > h3 { margin-right: 0 !important; }

/* ---------- Carousel (horizontal scroll, arrows on desktop, swipe on touch) ---------- */
.kec-carousel { position: relative; --per: 3; --gap: 1.5rem; }
.kec-carousel__track {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: var(--gap) !important;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	/* room for hover lift and shadows, without moving the layout */
	padding: .75rem .35rem 1.75rem !important;
	margin: -.75rem -.35rem -1.75rem !important;
}
.kec-carousel__track::-webkit-scrollbar { display: none; }
.kec-carousel__track:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 4px; border-radius: 18px; }
.kec-carousel__track > * { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)) !important; width: auto !important; margin: 0 !important; scroll-snap-align: start; }

.kec-carousel__btn {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: none;
	width: 50px;
	height: 50px;
	margin-top: -25px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A66B2' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
	box-shadow: 0 12px 28px rgba(11, 35, 64, .18);
	transition: transform .25s, background-color .25s, opacity .25s;
}
.kec-carousel__btn--prev { left: -25px; rotate: 180deg; }
.kec-carousel__btn--next { right: -25px; }
.kec-carousel.is-scrollable .kec-carousel__btn { display: block; }
.kec-carousel__btn:hover:not(:disabled) { background-color: var(--wp--preset--color--accent); transform: scale(1.08); }
.kec-carousel__btn:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.kec-carousel__btn:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 1000px) { .kec-carousel { --per: 2; } }
@media (max-width: 760px) {
	/* Phones: one card at a time with a peek of the next, swipe only */
	.kec-carousel { --per: 1.12; --gap: 1rem; }
	.kec-carousel.is-scrollable .kec-carousel__btn { display: none; }
}

/* ---------- Homepage About: photo collage ---------- */
.kec-about-row { align-items: flex-start !important; }
.kec-about-collage { position: relative; padding: 1.75rem 0 3.25rem 1.75rem !important; isolation: isolate; }
/* Royal-blue panel behind the main photo */
.kec-about-collage::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; width: 64%; height: 72%; border-radius: 30px; background: linear-gradient(140deg, var(--wp--preset--color--primary), var(--wp--preset--color--brand)); }
/* Orange dot pattern, bottom left */
.kec-about-collage::after { content: ""; position: absolute; z-index: -1; left: -.5rem; bottom: .5rem; width: 130px; height: 110px; background-image: radial-gradient(var(--wp--preset--color--accent) 2.2px, transparent 2.6px); background-size: 16px 16px; opacity: .85; }
.kec-about-collage .kec-about-media__main { margin: 0 !important; }
.kec-about-collage .kec-about-media__main img { display: block; width: 100% !important; aspect-ratio: 5 / 4.3; object-fit: cover; border-radius: 26px; border: 6px solid #fff; box-shadow: 0 30px 60px rgba(11, 35, 64, .2); }
.kec-about-collage .kec-about-media__small { position: absolute; right: -1rem; bottom: 0; width: 44%; margin: 0 !important; z-index: 2; }
.kec-about-collage .kec-about-media__small img { display: block; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center; border-radius: 22px; border: 6px solid #fff; box-shadow: 0 24px 46px rgba(11, 35, 64, .25); }
/* Orange ring peeking out behind the small photo */
.kec-about-collage .kec-about-media__small::before { content: ""; position: absolute; z-index: -1; top: -20px; right: -20px; width: 78px; height: 78px; border-radius: 50%; border: 4px solid var(--wp--preset--color--accent); }
@media (max-width: 781px) {
	.kec-about-collage { max-width: 520px; margin: 0 auto !important; padding: 1rem .5rem 2.75rem 1rem !important; }
	.kec-about-collage .kec-about-media__small { right: 0; width: 42%; }
	.kec-about-collage .kec-about-media__small::before { width: 56px; height: 56px; top: -14px; right: -10px; }
	.kec-about-collage::after { width: 90px; height: 80px; }
}

/* ---------- Study Categories: scrolling category cards ---------- */
.kec-carousel--cats { --per: 4; }
.kec-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 22px;
	box-shadow: 0 12px 30px rgba(11, 35, 64, .07);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .45s;
}
.kec-cat:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 26px 50px rgba(10, 102, 178, .18); }
.kec-cat__img { position: relative; margin: 0 !important; aspect-ratio: 4 / 3; overflow: hidden; }
.kec-cat__img img { display: block; width: 100%; height: 100% !important; object-fit: cover; transition: scale .8s cubic-bezier(.2, .8, .2, 1); }
.kec-cat:hover .kec-cat__img img { scale: 1.08; }
.kec-cat__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 37, 68, 0) 50%, rgba(6, 37, 68, .45)); }
/* Level icon badge overlapping the photo */
.kec-cat__body { position: relative; flex: 1; display: flex; flex-direction: column; margin: 0 !important; padding: 2.4rem 1.35rem 1.35rem; }
.kec-cat__body::before { content: ""; position: absolute; top: -28px; left: 1.35rem; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--brand)); box-shadow: 0 10px 22px rgba(10, 102, 178, .35), 0 0 0 5px #fff; transition: background .4s, rotate .5s cubic-bezier(.3, 1.6, .5, 1); }
.kec-cat__body::after { content: ""; position: absolute; top: -28px; left: 1.35rem; width: 56px; height: 56px; background: #fff; mask: var(--kec-level-icon) center / 26px no-repeat; -webkit-mask: var(--kec-level-icon) center / 26px no-repeat; transition: rotate .5s cubic-bezier(.3, 1.6, .5, 1); }
.kec-cat:hover .kec-cat__body::before { background: linear-gradient(135deg, var(--wp--preset--color--accent), #FFD36B); rotate: -8deg; }
.kec-cat:hover .kec-cat__body::after { rotate: -8deg; }
.kec-cat h3 { margin: 0 0 1.1rem; font-size: 1.3rem !important; }
.kec-cat h3 a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.kec-cat h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.kec-cat .wp-block-buttons { margin-top: auto; position: relative; z-index: 2; }
.kec-cat__btn { width: 100%; }
.kec-cat__btn .wp-block-button__link { display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box; background: var(--wp--preset--color--soft); color: var(--wp--preset--color--primary); padding: .8em 1.1em; font-size: .92rem; }
.kec-cat__btn .wp-block-button__link::after { content: "→"; transition: translate .3s; }
.kec-cat:hover .kec-cat__btn .wp-block-button__link { background: var(--wp--preset--color--primary); color: #fff; }
.kec-cat:hover .kec-cat__btn .wp-block-button__link::after { translate: 4px 0; }
.kec-section--cats .kec-section-head { margin-bottom: 2.25rem; }
@media (max-width: 1100px) { .kec-carousel--cats { --per: 3; } }
@media (max-width: 1000px) { .kec-carousel--cats { --per: 2; } }
@media (max-width: 760px) { .kec-carousel--cats { --per: 1.15; } }

/* ---------- Homepage Services: heading row + photos + services carousel ---------- */
.kec-why--carousel .kec-why__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2.5rem; margin-bottom: clamp(2rem, 4vw, 3rem) !important; }
.kec-why--carousel .kec-why__head-text { max-width: 720px; margin: 0 !important; }
.kec-why--carousel .kec-why__head h2 { margin: 0 0 .75rem; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.kec-why--carousel .kec-why__lead { margin: 0; }
.kec-why--carousel .kec-why__head .wp-block-buttons { flex: none; margin: 0; }
.kec-why__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.kec-why__body > * { margin: 0 !important; }
.kec-why--carousel .kec-why__media { padding: 1.25rem 3rem 2rem 0; }
.kec-why--carousel .kec-why__photo img { aspect-ratio: 4 / 3.5; }
.kec-carousel--services { --per: 2; }
.kec-why--carousel .kec-feature { display: flex; flex-direction: column; }
.kec-why--carousel .kec-carousel__btn--prev { left: -22px; }
.kec-why--carousel .kec-carousel__btn--next { right: -22px; }

@media (max-width: 1000px) {
	.kec-why__body { grid-template-columns: minmax(0, 1fr); } /* minmax stops the carousel track widening the column */
	.kec-why--carousel .kec-why__media { max-width: 560px; }
	.kec-carousel--services { --per: 2; }
}
@media (max-width: 781px) {
	/* Phones: short section – smaller photo, compact badges, one card at a time */
	.kec-why--carousel { padding-top: 3rem !important; padding-bottom: 3rem !important; }
	.kec-why--carousel .kec-why__head { flex-direction: column; align-items: flex-start; margin-bottom: 1.5rem !important; }
	.kec-why--carousel .kec-why__head h2 { font-size: 1.7rem; }
	.kec-why__body { gap: 1.5rem; }
	.kec-why--carousel .kec-why__media { padding: .75rem 1.5rem 1.25rem 0; }
	.kec-why--carousel .kec-why__photo img { aspect-ratio: 16 / 10; border-radius: 20px; }
	.kec-why--carousel .kec-why__inset { width: 34%; }
	.kec-why--carousel .kec-why__badge { padding: .55rem .8rem; font-size: .7rem; }
	.kec-why--carousel .kec-why__badge strong { font-size: 1.05rem; }
	.kec-why--carousel .kec-why__badge--top { left: -.25rem; top: 0; }
	.kec-why--carousel .kec-why__badge--bottom { left: -.25rem; bottom: 1.5rem; }
	.kec-carousel--services { --per: 1.12; }
	.kec-why--carousel .kec-feature { padding: 1.4rem 1.25rem; }
	.kec-why--carousel .kec-feature::before { width: 48px; height: 48px; margin-bottom: 1rem; }
	.kec-why--carousel .kec-feature::after { width: 48px; height: 48px; top: 1.4rem; left: 1.25rem; }
}

/* ---------- Office cards: collapsed by default, city + arrow in the header ---------- */
.kec-offices__cards { align-items: start; }
details.kec-office-card { padding: 0 !important; }
details.kec-office-card::after { display: none; } /* the pin moves into the header badge */
details.kec-office-card > summary {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem 4.5rem 1.4rem 1.5rem;
	list-style: none;
	cursor: pointer;
	color: var(--wp--preset--color--contrast);
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	font-weight: 800;
	line-height: 1.25;
}
details.kec-office-card > summary::-webkit-details-marker { display: none; }
details.kec-office-card > summary:focus { outline: none; }
details.kec-office-card > summary:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: -3px; border-radius: 24px; }
/* Country badge with a soft pulse */
details.kec-office-card > summary::before {
	content: "UK";
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .08em;
	animation: kec-ping 2.4s ease-out infinite;
}
details.kec-office-card--bd > summary::before { content: "BD"; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); animation-delay: -1.2s; }
/* Dropdown arrow */
details.kec-office-card > summary::after {
	content: "";
	position: absolute;
	right: 1.4rem;
	top: 50%;
	width: 38px;
	height: 38px;
	margin-top: -19px;
	border-radius: 50%;
	background: var(--wp--preset--color--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A66B2' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: rotate .35s cubic-bezier(.3, 1.4, .5, 1), background-color .3s;
}
details.kec-office-card[open] > summary::after { rotate: 180deg; background-color: var(--wp--preset--color--accent); }
details.kec-office-card.is-closing > summary::after { rotate: 0deg; }
details.kec-office-card > summary:hover::after { background-color: #E3F1FB; }
details.kec-office-card[open] > summary:hover::after { background-color: var(--wp--preset--color--accent); }
.kec-collapsible__body { overflow: hidden; padding: 0 1.5rem 1.5rem; }
.kec-collapsible__body .kec-office-card__tag { margin: 0 0 1rem !important; }
.kec-collapsible__body .kec-office-card__tag::after { display: none; }
/* Before the script runs (and in the editor): keep content padded */
details.kec-office-card:not(:has(.kec-collapsible__body)) > :not(summary) { margin-left: 1.5rem; margin-right: 1.5rem; }
details.kec-office-card:not(:has(.kec-collapsible__body)) > :last-child { margin-bottom: 1.5rem; }
@media (max-width: 640px) {
	details.kec-office-card > summary { padding: 1.15rem 4rem 1.1rem 1.15rem; }
	details.kec-office-card > summary::before { width: 42px; height: 42px; border-radius: 12px; }
	.kec-collapsible__body { padding: 0 1.15rem 1.25rem; }
}

/* Carousel fixes: snap aligns to the padded edge (so "previous" starts hidden); arrows sit outside the cards on wide screens */
.kec-carousel__track { scroll-padding-inline: .35rem; }
@media (min-width: 1400px) {
	.kec-carousel__btn--prev { left: -68px; }
	.kec-carousel__btn--next { right: -68px; }
	.kec-why--carousel .kec-carousel__btn--prev { left: -30px; }
	.kec-why--carousel .kec-carousel__btn--next { right: -68px; }
}

/* Carousel mouse drag */
@media (hover: hover) and (pointer: fine) {
	.kec-carousel__track { cursor: grab; }
	.kec-carousel__track.is-dragging { cursor: grabbing; user-select: none; }
}

/* Services carousel: autoplay only, no arrows (client request). */
.kec-carousel--services .kec-carousel__btn,
.kec-carousel--services.is-scrollable .kec-carousel__btn { display: none; }

/* Single partner logo (British Council): text left, logo card right, in a soft panel. */
.kec-partners .kec-partners__text { color: var(--wp--preset--color--muted, #5b6b82); max-width: 520px; margin-top: 1rem; }
.kec-logos--single-wrap {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
	padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: 28px; position: relative; overflow: hidden;
	background: linear-gradient(135deg, #f2f7fd 0%, #e8f2fc 100%); border: 1px solid var(--wp--preset--color--line);
}
.kec-logos--single-wrap::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 156, 222, .14), transparent 70%); pointer-events: none; }
.kec-logos--single-wrap > * { margin: 0 !important; position: relative; z-index: 1; }
.kec-logos--single-wrap .kec-section-head { margin-bottom: 0; }
.kec-logos--single { justify-content: center; }
.kec-logos--single .wp-block-image { width: 100%; max-width: 380px; display: flex; align-items: center; justify-content: center; padding: 2rem 2.5rem; border-radius: 20px; border: 1px solid rgba(10, 40, 90, .06); box-shadow: 0 18px 40px rgba(10, 40, 90, .1); }
.kec-logos--single img { height: auto !important; width: 100% !important; max-width: 300px; filter: none; opacity: 1; }
@media (max-width: 781px) {
	.kec-logos--single-wrap { grid-template-columns: minmax(0, 1fr); text-align: left; }
	.kec-logos--single .wp-block-image { max-width: 320px; padding: 1.5rem 2rem; }
	.kec-logos--single img { max-width: 200px; }
}

/* Home About: two highlight ticks under the intro (replaced the mini columns). */
.kec-about-ticks { margin: 1.5rem 0 2rem; font-weight: 600; color: var(--wp--preset--color--contrast); }

/* About page promise band: richer look (glow blobs, numbered cards, hover lift). */
.kec-stats--band.kec-stats--promise { position: relative; overflow: hidden; isolation: isolate; padding: clamp(1.25rem, 2.5vw, 2rem) !important;
	background: radial-gradient(600px 260px at 0% 0%, rgba(248, 183, 32, .22), transparent 60%), radial-gradient(520px 300px at 100% 100%, rgba(0, 170, 255, .35), transparent 60%), linear-gradient(135deg, #0a2d5c 0%, #0b4f9c 55%, #1270c4 100%);
	box-shadow: 0 30px 60px -25px rgba(10, 45, 92, .55); }
.kec-stats--band.kec-stats--promise::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 22px 22px; mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.kec-stats--band.kec-stats--promise { counter-reset: kec-promise; }
.kec-stats--band.kec-stats--promise .kec-stat { counter-increment: kec-promise; padding: 5.2rem 1.6rem 1.75rem; border-radius: 20px; backdrop-filter: none;
	background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s, border-color .3s, box-shadow .3s; }
.kec-stats--band.kec-stats--promise .kec-stat:hover { transform: translateY(-6px); background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)); border-color: rgba(248, 183, 32, .55); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .45); }
.kec-stats--band.kec-stats--promise .kec-stat::before,
.kec-stats--band.kec-stats--promise .kec-stat::after { top: 1.6rem; left: 1.6rem; width: 48px; height: 48px; }
.kec-stats--band.kec-stats--promise .kec-stat::before { border-radius: 14px; background: linear-gradient(145deg, #ffd35c, var(--wp--preset--color--accent)); box-shadow: 0 10px 22px -6px rgba(248, 183, 32, .6); }
.kec-stats--band.kec-stats--promise .kec-stat::after { mask-size: 24px; -webkit-mask-size: 24px; }
.kec-stats--band.kec-stats--promise .kec-stat__num { position: relative; padding-bottom: .7rem; font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.kec-stats--band.kec-stats--promise .kec-stat__num::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--wp--preset--color--accent); transition: width .3s; }
.kec-stats--band.kec-stats--promise .kec-stat:hover .kec-stat__num::after { width: 60px; }
.kec-stats--band.kec-stats--promise .kec-stat__label { margin-top: .8rem !important; font-size: .92rem; color: rgba(255, 255, 255, .82); }
.kec-stats--band.kec-stats--promise .kec-stat__num::before { content: "0" counter(kec-promise); position: absolute; right: 0; top: -3.6rem; font-size: 2.6rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .1); letter-spacing: -.03em; }
.kec-stats--band.kec-stats--promise .kec-stat:nth-child(3) { --kec-promise-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M8.5 12.5l2.3 2.3 4.7-4.7'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .kec-stats--band.kec-stats--promise .kec-stat:hover { transform: none; } }
@media (max-width: 560px) {
	.kec-stats--band.kec-stats--promise { gap: .75rem !important; }
	.kec-stats--band.kec-stats--promise .kec-stat { padding: 1.2rem 1.2rem 1.2rem 4.6rem; }
	.kec-stats--band.kec-stats--promise .kec-stat::before,
	.kec-stats--band.kec-stats--promise .kec-stat::after { top: 1.2rem; left: 1.1rem; width: 42px; height: 42px; }
	.kec-stats--band.kec-stats--promise .kec-stat__num { font-size: 1.15rem; padding-bottom: .55rem; }
	.kec-stats--band.kec-stats--promise .kec-stat__num::before { display: none; }
	.kec-stats--band.kec-stats--promise .kec-stat__label { margin-top: .55rem !important; }
}

/* About page "Why choose KECC?" cards: icon tiles, faint numbers, gradient top bar, hover lift. */
.kec-features-grid--about { gap: 1.5rem !important; }
.kec-features-grid--about .kec-feature { position: relative; overflow: hidden; padding: 2rem 1.75rem 1.9rem; border-radius: 22px; background: #fff;
	border: 1px solid #e3ecf6; box-shadow: 0 14px 34px -22px rgba(10, 45, 92, .35);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.kec-features-grid--about .kec-feature:nth-child(odd) { background: linear-gradient(170deg, #f3f8fe 0%, #fff 55%); }
.kec-features-grid--about .kec-feature::before { content: ""; position: relative; z-index: 1; display: block; width: 56px; height: 56px; margin-bottom: 1.35rem; border-radius: 16px;
	background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--brand)); box-shadow: 0 12px 24px -8px rgba(13, 110, 200, .55);
	transition: background .35s, rotate .5s cubic-bezier(.3, 1.6, .5, 1), scale .5s cubic-bezier(.3, 1.6, .5, 1); }
.kec-features-grid--about .kec-feature::after { content: counter(feat, decimal-leading-zero); position: absolute; top: 1.2rem; right: 1.5rem; font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: rgba(11, 79, 156, .07); transition: color .35s; }
.kec-features-grid--about .kec-feature h3 { position: relative; margin: 0 0 .6rem; font-size: 1.2rem !important; }
.kec-features-grid--about .kec-feature p { line-height: 1.65; }
/* icon glyph sits on the tile via a mask on an extra layer */
.kec-features-grid--about .kec-feature > h3::before { content: ""; position: absolute; left: 0; top: calc(-1.35rem - 56px); width: 56px; height: 56px; background: #fff;
	mask: var(--kec-feat-icon) center / 26px no-repeat; -webkit-mask: var(--kec-feat-icon) center / 26px no-repeat; z-index: 2; transition: background .35s; }
.kec-features-grid--about .kec-feature > .kec-feature__bar,
.kec-features-grid--about .kec-feature { background-clip: padding-box; }
.kec-features-grid--about .kec-feature:hover { transform: translateY(-6px); border-color: rgba(248, 183, 32, .6); box-shadow: 0 26px 46px -24px rgba(10, 45, 92, .45); }
.kec-features-grid--about .kec-feature:hover::before { background: linear-gradient(135deg, var(--wp--preset--color--accent), #ffd36b); rotate: -8deg; scale: 1.06; }
.kec-features-grid--about .kec-feature:hover > h3::before { background: var(--wp--preset--color--contrast); }
.kec-features-grid--about .kec-feature:hover::after { color: rgba(248, 183, 32, .22); }
@media (max-width: 600px) {
	.kec-features-grid--about { gap: .9rem !important; }
	.kec-features-grid--about .kec-feature { padding: 1.25rem; }
	.kec-features-grid--about .kec-feature::before { position: absolute; top: 1.25rem; left: 1.25rem; width: 46px; height: 46px; margin: 0; border-radius: 13px; }
	.kec-features-grid--about .kec-feature > h3::before { left: 0; top: 0; width: 46px; height: 46px; mask-size: 22px; -webkit-mask-size: 22px; }
	.kec-features-grid--about .kec-feature > h3 { min-height: 46px; display: flex; align-items: center; margin: 0 0 .75rem; padding-left: calc(46px + .9rem); }
	.kec-features-grid--about .kec-feature::after { display: none; }
	.kec-features-grid--about .kec-feature h3 { font-size: 1.08rem !important; }
}
@media (prefers-reduced-motion: reduce) { .kec-features-grid--about .kec-feature:hover { transform: none; } }
