/*
 * KC Science Talks — site design layer.
 * Content lives in Elementor; this file only handles look & feel.
 */

:root {
	--kc-rose: #E88E98;
	--kc-rose-deep: #C96876;
	--kc-rose-soft: #F6D3D7;
	--kc-cocoa: #584646;
	--kc-ink: #2F2526;
	--kc-text: #5E5052;
	--kc-muted: #8C7A7C;
	--kc-blush: #FBEFEF;
	--kc-cream: #FFF9F6;
	--kc-line: #EFDCDD;
	--kc-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--kc-sans: "Jost", "Segoe UI", Helvetica, Arial, sans-serif;
	--kc-radius: 18px;
	--kc-shadow: 0 18px 50px -24px rgba(88, 70, 70, .35);
	--kc-shadow-soft: 0 10px 30px -18px rgba(88, 70, 70, .28);
	--kc-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
body {
	font-family: var(--kc-sans);
	color: var(--kc-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.entry-title, .elementor-heading-title {
	font-family: var(--kc-serif);
	color: var(--kc-ink);
	letter-spacing: -.01em;
}
a { color: var(--kc-rose-deep); transition: color .25s var(--kc-ease); }
a:hover { color: var(--kc-cocoa); }
::selection { background: var(--kc-rose-soft); color: var(--kc-ink); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Header (Astra) ----------
 * Sticky on every page. On pages that open with a dark hero the header starts
 * transparent (light logo, white menu) and turns into a frosted cream bar with
 * the full-colour logo once the visitor scrolls (body.kc-scrolled, set in JS).
 */
#masthead.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	transition: background-color .45s var(--kc-ease), box-shadow .45s var(--kc-ease), backdrop-filter .45s var(--kc-ease);
}
.admin-bar #masthead.site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead.site-header { top: 46px; } }

/* Solid pages: reserve space for the fixed header. */
body:not(.ast-theme-transparent-header) #content.site-content { padding-top: var(--kc-header-h, 100px); }

#masthead .ast-primary-header-bar,
#masthead .main-header-bar,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar {
	background: transparent !important;
	border: 0 !important;
	transition: min-height .45s var(--kc-ease), padding .45s var(--kc-ease);
}
#masthead .site-primary-header-wrap { min-height: 100px; transition: min-height .45s var(--kc-ease); }

/* Solid state (default pages, and every page once scrolled) */
body:not(.ast-theme-transparent-header) #masthead,
body.kc-scrolled #masthead {
	background: rgba(255, 249, 246, .9);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	box-shadow: 0 1px 0 rgba(232, 142, 152, .22), 0 14px 34px -26px rgba(88, 70, 70, .45);
}
body.kc-scrolled #masthead .site-primary-header-wrap { min-height: 78px; }

/* Transparent state over the hero */
.ast-theme-transparent-header:not(.kc-scrolled) #masthead { background: linear-gradient(180deg, rgba(47, 37, 38, .38) 0%, rgba(47, 37, 38, 0) 100%); box-shadow: none; }

/* Logo */
#masthead .site-branding,
#masthead .ast-site-identity { padding: 0; }
#masthead .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; position: relative; }
#masthead .custom-logo-link img {
	width: auto !important;
	height: 72px !important;
	max-width: none !important;
	transition: height .45s var(--kc-ease), opacity .35s var(--kc-ease);
}
body.kc-scrolled #masthead .custom-logo-link img { height: 58px !important; }
@media (max-width: 921px) {
	#masthead .custom-logo-link img { height: 58px !important; }
	body.kc-scrolled #masthead .custom-logo-link img { height: 50px !important; }
}
#masthead .custom-logo-link .kc-logo-color { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; }
.ast-theme-transparent-header.kc-scrolled #masthead .custom-logo-link .kc-logo-color { opacity: 1; }
.ast-theme-transparent-header.kc-scrolled #masthead .custom-logo-link img:not(.kc-logo-color) { opacity: 0; }
#masthead .site-title, #masthead .site-description { display: none; }

/* Menu */
#masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	font-family: var(--kc-sans);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .02em;
	color: var(--kc-cocoa);
	padding: 0 18px;
	position: relative;
	transition: color .3s var(--kc-ease);
}
.ast-theme-transparent-header:not(.kc-scrolled) #masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { color: #fff; text-shadow: 0 1px 12px rgba(47, 37, 38, .35); }
#masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link::after {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: calc(50% - 16px);
	height: 2px;
	background: var(--kc-rose);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--kc-ease);
}
#masthead .ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link::after,
#masthead .ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link::after { transform: scaleX(1); }
#masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:hover,
#masthead .ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link { color: var(--kc-rose-deep); }
.ast-theme-transparent-header:not(.kc-scrolled) #masthead .ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link,
.ast-theme-transparent-header:not(.kc-scrolled) #masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:hover { color: #FFD9DE; }
.ast-theme-transparent-header:not(.kc-scrolled) #masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link::after { background: #FFD9DE; }

/* Header button */
#masthead .ast-header-button-1 .ast-custom-button {
	font-family: var(--kc-sans);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: .03em;
	border-radius: 6px;
	padding: 12px 22px;
	background: var(--kc-cocoa);
	color: #fff;
	border: 1px solid var(--kc-cocoa);
	transition: background .3s var(--kc-ease), color .3s var(--kc-ease), border-color .3s var(--kc-ease), transform .3s var(--kc-ease);
}
#masthead .ast-header-button-1 .ast-custom-button:hover { background: var(--kc-rose-deep); border-color: var(--kc-rose-deep); transform: translateY(-1px); }
.ast-theme-transparent-header:not(.kc-scrolled) #masthead .ast-header-button-1 .ast-custom-button { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .7); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ast-theme-transparent-header:not(.kc-scrolled) #masthead .ast-header-button-1 .ast-custom-button:hover { background: #fff; color: var(--kc-cocoa); }

/* Mobile toggle + drawer */
#masthead .ast-mobile-menu-trigger-minimal,
#masthead .menu-toggle { color: var(--kc-cocoa) !important; }
#masthead .menu-toggle .ast-mobile-svg { fill: var(--kc-cocoa) !important; }
.ast-theme-transparent-header:not(.kc-scrolled) #masthead .menu-toggle .ast-mobile-svg { fill: #fff !important; }
.ast-mobile-popup-drawer .ast-mobile-popup-inner { background: var(--kc-cream); }
.ast-mobile-popup-drawer .menu-link { font-family: var(--kc-sans); color: var(--kc-cocoa) !important; }

/* ---------- Shared typographic pieces ---------- */
.kc-kicker .elementor-heading-title {
	font-family: var(--kc-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--kc-rose-deep);
	display: inline-flex;
	align-items: center;
	gap: 14px;
}
.kc-kicker .elementor-heading-title::before {
	content: "";
	width: 34px;
	height: 1px;
	background: currentColor;
	opacity: .7;
}
.kc-kicker.kc-on-dark .elementor-heading-title { color: #FBD9DD; }
.elementor-widget-heading.elementor-align-center.kc-kicker .elementor-heading-title::after,
.kc-kicker.kc-center .elementor-heading-title::after {
	content: "";
	width: 34px;
	height: 1px;
	background: currentColor;
	opacity: .7;
}
.kc-title .elementor-heading-title {
	font-family: var(--kc-serif);
	font-weight: 500;
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1.14;
	color: var(--kc-ink);
}
.kc-title em, .kc-display em { font-style: italic; color: var(--kc-rose-deep); font-weight: 400; }
.kc-lead, .kc-lead p {
	font-size: 18px;
	line-height: 1.8;
	color: var(--kc-text);
}
.kc-lead p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.kc-btn .elementor-button,
.kc-btn-ghost .elementor-button,
.kc-btn-light .elementor-button,
.kc-btn-link .elementor-button {
	font-family: var(--kc-sans);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .04em;
	border-radius: 6px;
	padding: 16px 30px;
	transition: all .35s var(--kc-ease);
	box-shadow: none;
}
.kc-btn .elementor-button { background: var(--kc-rose-deep); color: #fff; border: 1px solid var(--kc-rose-deep); }
.kc-btn .elementor-button:hover { background: var(--kc-cocoa); border-color: var(--kc-cocoa); color: #fff; transform: translateY(-2px); box-shadow: var(--kc-shadow-soft); }
.kc-btn-ghost .elementor-button { background: transparent; color: var(--kc-cocoa); border: 1px solid rgba(88, 70, 70, .35); }
.kc-btn-ghost .elementor-button:hover { background: var(--kc-cocoa); color: #fff; border-color: var(--kc-cocoa); }
.kc-btn-light .elementor-button { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.kc-btn-light .elementor-button:hover { background: #fff; color: var(--kc-cocoa); }
.kc-btn-link .elementor-button { background: none; color: var(--kc-rose-deep); padding: 6px 0; border-bottom: 1px solid currentColor; border-radius: 0; }
.kc-btn-link .elementor-button:hover { color: var(--kc-cocoa); }
.kc-btn .elementor-button-icon, .kc-btn-ghost .elementor-button-icon, .kc-btn-light .elementor-button-icon { transition: transform .35s var(--kc-ease); }
.elementor-button:hover .elementor-button-icon { transform: translateX(3px); }
.kc-btn-row { display: inline-block; width: auto !important; margin-right: 12px; }

/* ---------- Hero ---------- */
.kc-hero { overflow: hidden; }
.kc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url(img/grain.svg);
	opacity: .35;
	pointer-events: none;
	mix-blend-mode: soft-light;
	z-index: 1;
}
.kc-hero > .elementor-container { z-index: 3; }
.kc-hero .elementor-background-overlay { z-index: 1; }
.kc-hero .elementor-shape { z-index: 2; }
.kc-display .elementor-heading-title {
	font-family: var(--kc-serif);
	font-weight: 400;
	font-size: clamp(40px, 6vw, 76px);
	line-height: 1.04;
	letter-spacing: -.02em;
	color: #fff;
	text-shadow: 0 2px 30px rgba(47, 37, 38, .25);
}
.kc-display em { color: #FFD9DE; }
.kc-hero .kc-lead, .kc-hero .kc-lead p { color: rgba(255, 255, 255, .92); font-size: 19px; max-width: 560px; }
.kc-hero .elementor-widget-wrap > .elementor-element { animation: kc-rise 1s var(--kc-ease) both; }
.kc-hero .elementor-widget-wrap > .elementor-element:nth-child(2) { animation-delay: .12s; }
.kc-hero .elementor-widget-wrap > .elementor-element:nth-child(3) { animation-delay: .24s; }
.kc-hero .elementor-widget-wrap > .elementor-element:nth-child(n+4) { animation-delay: .36s; }
@keyframes kc-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.kc-hero-scroll {
	position: absolute;
	left: 50%;
	bottom: 70px;
	width: 1px;
	height: 56px;
	background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .8));
	z-index: 3;
}

/* ---------- Credentials strip ---------- */
.kc-strip { position: relative; z-index: 5; }
.kc-strip > .elementor-container {
	background: #fff;
	border-radius: var(--kc-radius);
	box-shadow: var(--kc-shadow);
	padding: 14px 10px;
}
.kc-strip .elementor-column + .elementor-column > .elementor-widget-wrap { border-left: 1px solid var(--kc-line); }
.kc-strip .elementor-icon-box-icon .elementor-icon { font-size: 22px; color: var(--kc-rose-deep); }
.kc-strip .elementor-icon-box-title { font-family: var(--kc-serif); font-size: 18px; font-weight: 500; margin-bottom: 2px; color: var(--kc-ink); }
.kc-strip .elementor-icon-box-description { font-size: 14px; line-height: 1.5; color: var(--kc-muted); }

/* ---------- About block ---------- */
.kc-about-photo { position: relative; }
.kc-about-photo::before {
	content: "";
	position: absolute;
	width: 46%;
	aspect-ratio: 1;
	left: -9%;
	bottom: -8%;
	background: url(img/pie.svg) no-repeat center / contain;
	opacity: .9;
	z-index: 0;
	animation: kc-float 9s ease-in-out infinite;
}
.kc-about-photo::after {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	border: 1px solid var(--kc-rose);
	border-radius: 220px 220px var(--kc-radius) var(--kc-radius);
	z-index: 0;
}
.kc-about-photo img {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 22% 50%;
	border-radius: 220px 220px var(--kc-radius) var(--kc-radius);
	box-shadow: var(--kc-shadow);
}
@keyframes kc-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-4deg); } }
.kc-signature .elementor-heading-title {
	font-family: var(--kc-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 22px;
	color: var(--kc-cocoa);
}
.kc-signature .elementor-heading-title span { display: block; font-family: var(--kc-sans); font-style: normal; font-size: 14px; color: var(--kc-muted); letter-spacing: .04em; margin-top: 4px; }

/* Counters */
.kc-counter .elementor-counter-number-wrapper {
	font-family: var(--kc-serif);
	font-weight: 400;
	font-size: 46px;
	color: var(--kc-rose-deep);
	line-height: 1;
	justify-content: flex-start;
}
.kc-counter .elementor-counter-title {
	font-family: var(--kc-sans);
	font-size: 14px;
	color: var(--kc-muted);
	letter-spacing: .03em;
	justify-content: flex-start;
	text-align: left;
	margin-top: 6px;
}
.kc-counters > .elementor-container { border-top: 1px solid var(--kc-line); padding-top: 26px; }

/* ---------- Textured sections ---------- */
.kc-tex-cells { background-image: url(img/cells.svg), linear-gradient(180deg, var(--kc-cream) 0%, var(--kc-blush) 100%) !important; background-size: 420px, auto !important; }
.kc-tex-leaf { background-image: url(img/leaf-line.svg), linear-gradient(160deg, #fff 0%, var(--kc-cream) 100%) !important; background-size: 260px, auto !important; background-position: right -40px top 30px, 0 0 !important; background-repeat: no-repeat, no-repeat !important; }

/* ---------- Pillars ---------- */
.kc-pillar > .elementor-widget-container {
	height: 100%;
	background: rgba(255, 255, 255, .78);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(232, 142, 152, .22);
	border-radius: var(--kc-radius);
	padding: 38px 30px 34px;
	transition: transform .5s var(--kc-ease), box-shadow .5s var(--kc-ease), border-color .5s;
}
.kc-pillar:hover > .elementor-widget-container { transform: translateY(-6px); box-shadow: var(--kc-shadow); border-color: transparent; }
.kc-pillar .elementor-icon {
	font-size: 26px;
	width: 62px;
	height: 62px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(140deg, var(--kc-rose) 0%, var(--kc-rose-deep) 100%);
	border-radius: 50% 50% 50% 12px;
}
.kc-pillar .elementor-icon svg { fill: #fff; width: 26px; height: 26px; }
.kc-pillar .elementor-icon-box-title { font-family: var(--kc-serif); font-weight: 500; font-size: 22px; color: var(--kc-ink); margin: 6px 0 10px; }
.kc-pillar .elementor-icon-box-description { font-size: 16px; line-height: 1.7; color: var(--kc-text); }
.kc-pillars-row > .elementor-container > .elementor-column > .elementor-widget-wrap { height: 100%; }
.kc-pillars-row .elementor-widget-icon-box { height: 100%; }

/* ---------- Syllabus tabs ---------- */
.kc-syllabus .elementor-tabs-wrapper { gap: 6px; border-bottom: 1px solid var(--kc-line); }
.kc-syllabus .elementor-tab-title {
	font-family: var(--kc-sans);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .03em;
	color: var(--kc-muted) !important;
	padding: 14px 20px !important;
	border: 0 !important;
	position: relative;
}
.kc-syllabus .elementor-tab-title.elementor-active { color: var(--kc-ink) !important; }
.kc-syllabus .elementor-tab-desktop-title.elementor-active::after {
	content: "";
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: -1px;
	height: 2px;
	background: var(--kc-rose-deep);
	border: 0;
	width: auto;
}
.kc-syllabus .elementor-tab-desktop-title.elementor-active::before { display: none; }
.kc-syllabus .elementor-tab-content { border: 0 !important; padding: 26px 4px 0 !important; color: var(--kc-text); }
.kc-syllabus .elementor-tab-content ol {
	columns: 2;
	column-gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: kc;
}
.kc-syllabus .elementor-tab-content li {
	break-inside: avoid;
	counter-increment: kc;
	padding: 11px 0 11px 44px;
	position: relative;
	border-bottom: 1px dashed var(--kc-line);
	font-size: 16px;
	line-height: 1.5;
}
.kc-syllabus .elementor-tab-content li::before {
	content: counter(kc, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 12px;
	font-family: var(--kc-serif);
	font-size: 15px;
	color: var(--kc-rose-deep);
}
.kc-syllabus .elementor-tab-content p { margin: 0 0 14px; }
.kc-syllabus .elementor-tab-mobile-title { border-bottom: 1px solid var(--kc-line) !important; }

.kc-photo-soft img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--kc-radius);
	box-shadow: var(--kc-shadow);
}
.kc-photo-wide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--kc-radius); box-shadow: var(--kc-shadow); }

/* ---------- Videos ---------- */
.kc-video .elementor-wrapper {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--kc-shadow);
	background: var(--kc-blush);
}
.kc-video-caption .elementor-heading-title {
	font-family: var(--kc-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--kc-ink);
}
.kc-video-meta .elementor-heading-title { font-family: var(--kc-sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--kc-rose-deep); font-weight: 500; }

/* ---------- Shorts ---------- */
.kc-short > .elementor-widget-container { position: relative; }
.kc-short .elementor-image-box-wrapper { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--kc-shadow-soft); transition: transform .5s var(--kc-ease), box-shadow .5s var(--kc-ease); }
.kc-short .elementor-image-box-img { width: 100% !important; margin: 0 !important; display: block; }
.kc-short .elementor-image-box-img img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; transition: transform 1.2s var(--kc-ease); display: block; }
.kc-short .elementor-image-box-content {
	position: absolute;
	inset: auto 0 0 0;
	padding: 60px 18px 18px;
	background: linear-gradient(180deg, rgba(47, 37, 38, 0) 0%, rgba(47, 37, 38, .85) 70%);
	text-align: left;
}
.kc-short .elementor-image-box-title { font-family: var(--kc-sans); font-size: 16px; font-weight: 500; line-height: 1.35; margin: 0; }
.kc-short .elementor-image-box-title a { color: #fff; }
.kc-short .elementor-image-box-description { color: rgba(255, 255, 255, .75); font-size: 13px; letter-spacing: .06em; margin-top: 6px; }
.kc-short .elementor-image-box-wrapper::after {
	content: "";
	position: absolute;
	top: 16px;
	right: 16px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23C96876' d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat 55% 50% / 18px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.kc-short:hover .elementor-image-box-wrapper { transform: translateY(-6px); box-shadow: var(--kc-shadow); }
.kc-short:hover .elementor-image-box-img img { transform: scale(1.05); }

/* ---------- Quote ---------- */
.kc-quote { overflow: hidden; }
.kc-quote::before {
	content: "";
	position: absolute;
	top: -40px;
	right: 6%;
	width: 120px;
	height: 520px;
	background: url(img/dna.svg) no-repeat center / contain;
	opacity: .55;
	transform: rotate(18deg);
}
.kc-quote::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url(img/grain.svg);
	opacity: .5;
	mix-blend-mode: soft-light;
	pointer-events: none;
}
.kc-quote > .elementor-container { z-index: 2; }
.kc-quote-text .elementor-heading-title {
	font-family: var(--kc-serif);
	font-weight: 300;
	font-style: italic;
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.35;
	color: #fff;
}
.kc-quote-mark .elementor-heading-title { font-family: var(--kc-serif); font-size: 120px; line-height: .6; color: var(--kc-rose); height: 56px; }
.kc-quote-by .elementor-heading-title { font-family: var(--kc-sans); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); font-weight: 400; }

/* ---------- Journal cards (kcst_posts) ---------- */
.kc-journal .kcst-cards { gap: 34px; }
.kcst-card { background: #fff; border-radius: var(--kc-radius); box-shadow: none; border: 1px solid var(--kc-line); transition: transform .5s var(--kc-ease), box-shadow .5s var(--kc-ease), border-color .5s; }
.kcst-card:hover { transform: translateY(-6px); box-shadow: var(--kc-shadow); border-color: transparent; }
.kcst-card-thumb { margin: 10px 10px 0; border-radius: 12px; }
.kcst-card-thumb img { transition: transform 1.2s var(--kc-ease); }
.kcst-card:hover .kcst-card-thumb img { transform: scale(1.05); }
.kcst-card-body { padding: 22px 24px 0; }
.kcst-card-title { font-family: var(--kc-serif); font-weight: 500; font-size: 21px; line-height: 1.3; }
.kcst-card-title a { color: var(--kc-ink); }
.kcst-card-title a:hover { color: var(--kc-rose-deep); }
.kcst-card-excerpt { font-size: 15px; line-height: 1.7; color: var(--kc-text); }
.kcst-card-more { font-family: var(--kc-sans); font-size: 13px; letter-spacing: .12em; font-weight: 500; color: var(--kc-rose-deep); text-decoration: none; }
.kcst-card-meta { border-top: 1px solid var(--kc-line); margin: 0 24px; padding: 14px 0 18px; font-size: 13px; letter-spacing: .04em; color: var(--kc-muted); }
.kcst-card-meta::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--kc-rose); margin-right: 10px; vertical-align: middle; }

/* ---------- CTA ---------- */
.kc-cta > .elementor-container {
	border-radius: 28px;
	overflow: hidden;
	position: relative;
	background: linear-gradient(120deg, #F3B9C0 0%, var(--kc-rose) 45%, var(--kc-rose-deep) 100%);
	padding: 70px 60px;
	box-shadow: var(--kc-shadow);
}
.kc-cta > .elementor-container::before {
	content: "";
	position: absolute;
	width: 340px;
	height: 340px;
	right: -60px;
	top: -70px;
	background: url(img/pie.svg) no-repeat center / contain;
	filter: brightness(0) invert(1);
	opacity: .14;
	animation: kc-float 12s ease-in-out infinite;
}
.kc-cta > .elementor-container::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url(img/cells.svg);
	background-size: 360px;
	filter: brightness(0) invert(1);
	opacity: .16;
	pointer-events: none;
}
.kc-cta .elementor-column { position: relative; z-index: 1; }
.kc-cta .kc-title .elementor-heading-title { color: #fff; }
.kc-cta .kc-lead, .kc-cta .kc-lead p { color: rgba(255, 255, 255, .92); }
.kc-cta .kc-btn .elementor-button { background: #fff; color: var(--kc-rose-deep); border-color: #fff; }
.kc-cta .kc-btn .elementor-button:hover { background: var(--kc-cocoa); color: #fff; border-color: var(--kc-cocoa); }

/* ---------- Inner page hero ---------- */
.kc-page-hero { overflow: hidden; }
.kc-page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url(img/grain.svg);
	opacity: .35;
	mix-blend-mode: soft-light;
	pointer-events: none;
}
.kc-page-hero > .elementor-container { z-index: 3; }
.kc-page-title .elementor-heading-title {
	font-family: var(--kc-serif);
	font-weight: 400;
	font-size: clamp(38px, 5vw, 62px);
	line-height: 1.08;
	color: #fff;
}
.kc-page-hero .kc-lead, .kc-page-hero .kc-lead p { color: rgba(255, 255, 255, .9); }

/* ---------- Info cards / lists ---------- */
.kc-card > .elementor-widget-container,
.kc-card-col > .elementor-widget-wrap {
	background: #fff;
	border: 1px solid var(--kc-line);
	border-radius: var(--kc-radius);
	padding: 34px 32px !important;
	transition: box-shadow .5s var(--kc-ease), transform .5s var(--kc-ease);
}
.kc-card:hover > .elementor-widget-container { box-shadow: var(--kc-shadow); transform: translateY(-4px); }
.kc-card .elementor-icon { color: var(--kc-rose-deep); font-size: 28px; }
.kc-card .elementor-icon-box-title { font-family: var(--kc-serif); font-size: 21px; font-weight: 500; color: var(--kc-ink); }
.kc-card .elementor-icon-box-description { font-size: 16px; line-height: 1.7; }

.kc-ticks .elementor-icon-list-item { padding: 9px 0 !important; border-bottom: 1px dashed var(--kc-line); align-items: flex-start !important; }
.kc-ticks .elementor-icon-list-item:last-child { border-bottom: 0; }
.kc-ticks .elementor-icon-list-icon i, .kc-ticks .elementor-icon-list-icon svg { color: var(--kc-rose-deep); fill: var(--kc-rose-deep); font-size: 15px; width: 15px; margin-top: 6px; }
.kc-ticks .elementor-icon-list-text { font-size: 16px; color: var(--kc-text); line-height: 1.6; }

/* Timeline (About) */
.kc-timeline .elementor-icon-list-items { border-left: 1px solid var(--kc-rose-soft); margin-left: 8px; }
.kc-timeline .elementor-icon-list-item { padding: 0 0 22px 26px !important; position: relative; }
.kc-timeline .elementor-icon-list-icon { position: absolute; left: -8px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 2px solid var(--kc-rose); }
.kc-timeline .elementor-icon-list-icon i, .kc-timeline .elementor-icon-list-icon svg { display: none; }
.kc-timeline .elementor-icon-list-text { font-size: 16px; line-height: 1.6; color: var(--kc-text); }
.kc-timeline .elementor-icon-list-text strong { display: block; font-family: var(--kc-serif); font-size: 19px; font-weight: 500; color: var(--kc-ink); margin-bottom: 2px; }

/* ---------- Contact ---------- */
.kc-form-card > .elementor-widget-wrap {
	background: #fff;
	border-radius: 24px;
	box-shadow: var(--kc-shadow);
	padding: 46px 44px !important;
	position: relative;
}
.kcst-contact label { font-family: var(--kc-sans); font-weight: 500; font-size: 14px; letter-spacing: .03em; color: var(--kc-cocoa); }
.kcst-contact input, .kcst-contact textarea {
	border: 1px solid var(--kc-line);
	background: var(--kc-cream);
	border-radius: 10px;
	padding: 14px 16px;
	font-family: var(--kc-sans);
	color: var(--kc-ink);
	transition: border-color .3s, box-shadow .3s, background .3s;
}
.kcst-contact input:focus, .kcst-contact textarea:focus { outline: 0; border-color: var(--kc-rose); background: #fff; box-shadow: 0 0 0 4px rgba(232, 142, 152, .18); }
.kcst-contact button {
	font-family: var(--kc-sans);
	border-radius: 6px;
	padding: 16px 34px;
	background: var(--kc-rose-deep);
	letter-spacing: .08em;
	font-weight: 500;
	transition: background .3s, transform .3s;
}
.kcst-contact button:hover { background: var(--kc-cocoa); transform: translateY(-2px); }
.kc-contact-item .elementor-icon-box-icon .elementor-icon {
	width: 54px;
	height: 54px;
	font-size: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--kc-blush);
	color: var(--kc-rose-deep);
}
.kc-contact-item .elementor-icon-box-title { font-family: var(--kc-serif); font-size: 19px; font-weight: 500; color: var(--kc-ink); margin-bottom: 2px; }
.kc-contact-item .elementor-icon-box-description, .kc-contact-item .elementor-icon-box-description a { font-size: 16px; color: var(--kc-text); }

/* ---------- Footer ---------- */
.site-footer .ast-builder-grid-row-container, .site-footer .site-below-footer-wrap, .site-footer .site-primary-footer-wrap { display: none; }
.kc-footer { overflow: hidden; }
.kc-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url(img/cells.svg);
	background-size: 420px;
	opacity: .55;
	pointer-events: none;
}
.kc-footer > .elementor-container { z-index: 1; }
.kc-footer .elementor-image img { max-width: 190px; }
.kc-footer-head .elementor-heading-title { font-family: var(--kc-sans); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--kc-cocoa); font-weight: 600; }
.kc-footer .elementor-icon-list-text { color: var(--kc-text); font-size: 15px; transition: color .25s; }
.kc-footer .elementor-icon-list-item a:hover .elementor-icon-list-text { color: var(--kc-rose-deep); }
.kc-footer .elementor-icon-list-icon i, .kc-footer .elementor-icon-list-icon svg { color: var(--kc-rose); fill: var(--kc-rose); }
.kc-footer-note, .kc-footer-note p { font-size: 15px; line-height: 1.75; color: var(--kc-text); }
.kc-footer-bottom > .elementor-container { border-top: 1px solid rgba(88, 70, 70, .14); }
.kc-footer-bottom .elementor-heading-title, .kc-footer-bottom p { font-family: var(--kc-sans); font-size: 14px; color: var(--kc-muted); font-weight: 400; margin: 0; }
.kc-footer .elementor-social-icon { background: #fff !important; border-radius: 50%; transition: transform .3s var(--kc-ease), background .3s; }
.kc-footer .elementor-social-icon i { color: var(--kc-rose-deep) !important; }
.kc-footer .elementor-social-icon svg { fill: var(--kc-rose-deep) !important; }
.kc-footer .elementor-social-icon:hover { background: var(--kc-rose-deep) !important; transform: translateY(-3px); }
.kc-footer .elementor-social-icon:hover i { color: #fff !important; }
.kc-footer .elementor-social-icon:hover svg { fill: #fff !important; }

/* ---------- Single posts / archive (theme templates) ---------- */
.single-post .site-content, .blog .site-content, .archive .site-content { background: linear-gradient(180deg, var(--kc-cream) 0, #fff 420px); }
.single-post .entry-header { text-align: center; margin-bottom: 30px; }
.single-post .entry-title { font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }
.single-post .entry-meta, .single-post .entry-meta * { font-family: var(--kc-sans); font-size: 14px; color: var(--kc-muted); letter-spacing: .04em; }
.single-post .entry-content { font-size: 18px; line-height: 1.85; color: var(--kc-text); }
.single-post .entry-content h2, .single-post .entry-content h3 { font-weight: 500; margin-top: 1.6em; }
.single-post .entry-content blockquote { border-left: 3px solid var(--kc-rose); background: var(--kc-blush); padding: 18px 24px; border-radius: 0 12px 12px 0; font-family: var(--kc-serif); font-style: italic; }
.single-post .post-thumb img, .single-post .ast-single-post-featured-section img { border-radius: var(--kc-radius); }
.ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post { border-radius: var(--kc-radius); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.kc-strip .elementor-column + .elementor-column > .elementor-widget-wrap { border-left: 0; }
	.kc-cta > .elementor-container { padding: 56px 36px; }
	.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { padding: 0 12px; }
}
@media (max-width: 767px) {
	.kc-strip > .elementor-container { padding: 6px; }
	.kc-strip .elementor-column + .elementor-column > .elementor-widget-wrap { border-top: 1px solid var(--kc-line); }
	.kc-about-photo::after { inset: 14px -10px -14px 14px; }
	.kc-syllabus .elementor-tab-content ol { columns: 1; }
	.kc-cta > .elementor-container { padding: 44px 24px; border-radius: 22px; }
	.kc-form-card > .elementor-widget-wrap { padding: 30px 22px !important; }
	.kc-btn-row { display: block; margin: 0 0 10px; }
	.kc-quote::before { right: -30px; opacity: .3; }
}

/* ---------- Hero glass card ---------- */
.kc-glass > .elementor-widget-container {
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .35);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-radius: 22px;
	padding: 30px 30px 26px;
	color: #fff;
	box-shadow: 0 30px 60px -30px rgba(47, 37, 38, .55);
	max-width: 380px;
	margin-left: auto;
}
.kc-glass p { margin: 0 0 10px; color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 1.6; }
.kc-glass .kc-glass-label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #FFD9DE; }
.kc-glass .kc-glass-title { font-family: var(--kc-serif); font-size: 23px; line-height: 1.3; color: #fff; margin: 6px 0 12px; }
.kc-glass a { color: #fff; font-weight: 500; letter-spacing: .04em; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
.kc-glass a:hover { color: #FFD9DE; border-color: #FFD9DE; }

/* Credentials strip overlaps the hero */
.kc-strip { margin-top: -96px; }
@media (max-width: 767px) {
	.kc-strip { margin-top: -60px; }
	.kc-glass > .elementor-widget-container { margin: 10px 0 0; }
}

/* ---------- Refinements ---------- */
.kc-narrow p { max-width: 640px; margin-left: auto; margin-right: auto; }
.kc-narrow-left p { max-width: 640px; }
.kc-glass, .kc-glass > .elementor-widget-container { width: 100%; }
.kc-btn-link .elementor-button { border-radius: 0 !important; border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; }
.kc-cta .kc-title em { color: #fff; font-style: italic; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.kc-cta .kc-btn-row { display: block; margin: 0 0 12px; }
.kc-cta .kc-btn-row .elementor-button { min-width: 230px; justify-content: center; }
.kc-footer .elementor-widget-image img { max-width: 170px; height: auto; }
.kc-footer .elementor-widget-image { text-align: left; }
.kc-footer .elementor-icon-list-item { padding-bottom: 8px; }
.kcst-card-noimg {
	display: flex;
	align-items: flex-end;
	padding: 22px;
	background: url(img/pie.svg) no-repeat right -24px top -24px / 150px, url(img/cells.svg) 0 0 / 280px, linear-gradient(135deg, var(--kc-blush) 0%, #F4C9CE 100%);
	text-decoration: none;
}
.kcst-card-noimg span {
	position: relative;
	font-family: var(--kc-serif);
	font-style: italic;
	font-size: 18px;
	line-height: 1.3;
	color: var(--kc-cocoa);
	opacity: .55;
}
.kcst-card-thumb.kcst-card-noimg { padding-bottom: 0; aspect-ratio: 1 / .62; }
.kc-video .elementor-custom-embed-image-overlay { border-radius: 14px; overflow: hidden; }
.kc-video .elementor-custom-embed-image-overlay img { transition: transform 1.2s var(--kc-ease); }
.kc-video:hover .elementor-custom-embed-image-overlay img { transform: scale(1.04); }
.kc-video .elementor-custom-embed-play i, .kc-video .elementor-custom-embed-play svg { color: #fff; fill: #fff; opacity: .95; filter: drop-shadow(0 6px 18px rgba(47, 37, 38, .45)); }
.kc-video .elementor-custom-embed-image-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47, 37, 38, 0) 50%, rgba(47, 37, 38, .35) 100%); pointer-events: none; }
.kc-short .elementor-image-box-content { padding: 90px 18px 18px; background: linear-gradient(180deg, rgba(47, 37, 38, 0) 0%, rgba(47, 37, 38, .78) 38%, rgba(47, 37, 38, .96) 100%); }
.kcst-card-thumb.kcst-card-noimg { box-sizing: border-box; aspect-ratio: auto; padding: 0 22px 22px; height: 0; padding-bottom: var(--kc-noimg-h, 0); }
.kcst-cards .kcst-card-thumb.kcst-card-noimg { padding-bottom: calc(var(--kcst-ratio, 62%) - 0px); position: relative; }
.kcst-card-noimg span { position: absolute; left: 22px; right: 22px; bottom: 18px; }
@media (max-width: 767px) {
	.kc-short .elementor-image-box-title { font-size: 14px; }
	.kc-short .elementor-image-box-content { padding: 70px 12px 12px; }
	.kc-short .elementor-image-box-wrapper::after { width: 30px; height: 30px; top: 10px; right: 10px; background-size: 14px; }
}
.kc-credit .elementor-heading-title a { color: var(--kc-cocoa); font-weight: 500; border-bottom: 1px solid rgba(88, 70, 70, .25); transition: color .25s, border-color .25s; }
.kc-credit .elementor-heading-title a:hover { color: var(--kc-rose-deep); border-color: var(--kc-rose-deep); }

/* Theme styles every <button> on hover/focus; keep the mobile menu toggle and form button on-design. */
#masthead .menu-toggle,
#masthead .menu-toggle:hover,
#masthead .menu-toggle:focus,
#masthead .menu-toggle:active { background: none !important; border: 0 !important; box-shadow: none !important; outline: 0; }
#masthead .menu-toggle:focus-visible { outline: 2px solid var(--kc-rose); outline-offset: 2px; border-radius: 4px; }
.kcst-contact button:focus { background: var(--kc-rose-deep); color: #fff; border-radius: 6px; }
.kcst-contact button:hover, .kcst-contact button:active { background: var(--kc-cocoa); color: #fff; border-radius: 6px; }

/* ==================================================================
 * Mobile polish (≤767px)
 * ================================================================== */
@media (max-width: 767px) {
	/* Hero */
	.kc-kicker .elementor-heading-title { font-size: 11px; letter-spacing: .14em; gap: 10px; line-height: 1.6; }
	.kc-kicker .elementor-heading-title::before { width: 22px; flex-shrink: 0; }
	.kc-hero .kc-glass { display: none; }
	.kc-hero .kc-btn-row,
	.kc-hero .kc-btn-row .elementor-button { display: block; width: 100%; text-align: center; }
	.kc-hero .kc-btn-row { margin: 0 0 12px; }
	.kc-hero .kc-btn-row .elementor-button-content-wrapper { justify-content: center; }
	.kc-display .elementor-heading-title { font-size: 42px; }

	/* Icon boxes that should stay side-by-side on phones */
	.kc-strip .elementor-icon-box-wrapper,
	.kc-contact-item .elementor-icon-box-wrapper { display: flex !important; align-items: flex-start; text-align: left !important; gap: 14px; }
	.kc-strip .elementor-icon-box-icon,
	.kc-contact-item .elementor-icon-box-icon { margin: 0 !important; flex-shrink: 0; }
	.kc-strip .elementor-icon-box-icon { padding-top: 3px; }
	.kc-contact-item .elementor-icon-box-content { padding-top: 4px; }
	.kc-strip .elementor-widget-wrap { padding: 12px 14px !important; }

	/* Counters: three across */
	.kc-counters > .elementor-container { flex-wrap: nowrap; }
	.kc-counters .elementor-column { width: 33.333% !important; }
	.kc-counter .elementor-counter-number-wrapper { font-size: 32px; justify-content: center; }
	.kc-counter .elementor-counter-title { font-size: 12px; line-height: 1.35; justify-content: center; text-align: center; letter-spacing: .01em; }

	/* Photos */
	.kc-photo-soft img { aspect-ratio: 16 / 10; }
	.kc-about-photo img { aspect-ratio: 1 / 1; object-position: 20% 40%; }
	.kc-about-photo::before { width: 34%; left: -4%; }

	/* Section headings with a button beside them */
	.kc-title .elementor-heading-title { font-size: 30px; }

	/* Footer: Explore + Study side by side, compact logo */
	.kc-footer:not(.kc-footer-bottom) > .elementor-container { flex-wrap: wrap; }
	.kc-footer:not(.kc-footer-bottom) > .elementor-container > .elementor-column:nth-child(2),
	.kc-footer:not(.kc-footer-bottom) > .elementor-container > .elementor-column:nth-child(3) { width: 50% !important; }
	.kc-footer .elementor-widget-image img { max-width: 132px; }
	.kc-footer .elementor-icon-list-text { font-size: 14px; }
	.kc-footer-bottom .elementor-heading-title { font-size: 13px; }

	/* Articles */
	.single-post .entry-content { font-size: 17px; }
}
@media (max-width: 767px) {
	/* Counters: breathing room between the three numbers */
	.kc-counters .elementor-column > .elementor-widget-wrap { padding: 0 6px !important; }
	.kc-counters .elementor-column:first-child > .elementor-widget-wrap { padding-left: 0 !important; }
	.kc-counters .elementor-column:last-child > .elementor-widget-wrap { padding-right: 0 !important; }
	.kc-counter .elementor-counter-number-wrapper { font-size: 28px; }
	.kc-counter .elementor-counter-title { font-size: 11.5px; margin-top: 8px; }

	/* Elementor forces icon boxes into a column on phones; keep these as rows */
	.kc-strip .elementor-icon-box-wrapper,
	.kc-contact-item .elementor-icon-box-wrapper { flex-direction: row !important; }

	/* Hero buttons full width (overrides the inline-row rule) */
	.kc-hero .elementor-widget.kc-btn-row { width: 100% !important; display: block; }
	.kc-hero .elementor-widget.kc-btn-row .elementor-button { width: 100%; }
}
@media (max-width: 767px) {
	.kc-counter .elementor-counter-number-wrapper,
	.kc-counter .elementor-counter-number-wrapper span { font-size: 30px !important; line-height: 1 !important; }
	.kc-counter .elementor-counter-title { line-height: 1.4 !important; }
}
@media (max-width: 767px) {
	.kc-counter .elementor-counter-title { font-size: 12.5px !important; letter-spacing: .01em; color: var(--kc-muted); }
}
