/*
Theme Name: Middle East Center
Description: Bilingual (Hebrew/English) theme for middleeast.co.il — night blue, gold and ivory, with a geometric eight-point-star motif shared by Islamic and Jewish ornament.
Version: 2.0.0
Text Domain: mec
*/

:root {
	--ink: #161a2c;
	--muted: #5d6275;
	--night: #0d1430;
	--navy: #1b2547;
	--gold: #c9a45c;
	--gold-2: #e8d3a0;
	--gold-deep: #9c7a34;
	--ivory: #fbf8f1;
	--sand: #f3ecdd;
	--line: #e7dfcc;
	--olive: #5d7a5a;
	--accent: var(--gold-deep);
	--teal: var(--olive);
	--wrap: 1140px;
	--radius: 16px;
	--font: "Heebo", Arial, Helvetica, sans-serif;
	--shadow: 0 18px 50px rgba(13, 20, 48, .10);
	--pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23c9a45c' stroke-width='1'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='7'/%3E%3Cpath d='M0 0L24 24M88 0L64 24M0 88L24 64M88 88L64 64M44 0V15.7M44 72.3V88M0 44H15.7M72.3 44H88'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; font-weight: 400; line-height: 1.75; color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-color: rgba(201, 164, 92, .6); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--gold-deep); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); line-height: 1.2; margin: 0 0 .6em; color: var(--night); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: -.5px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 300; letter-spacing: -.3px; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4, h5, h6 { font-size: 1.05rem; font-weight: 600; }
strong, b { font-weight: 600; }
p { margin: 0 0 1em; }
::selection { background: var(--gold-2); color: var(--night); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.mec-skip { position: absolute; inset-inline-start: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.mec-skip:focus { inset-inline-start: 8px; }

/* Gold ornament under section headings: ── ◆ ── */
.mec-section > h2, .mec-section > h1:not(.mec-lux-title) { position: relative; padding-bottom: 22px; margin-bottom: 28px; }
.mec-section > h2::after, .mec-section > h1:not(.mec-lux-title)::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 120px; height: 10px;
	background: linear-gradient(var(--gold), var(--gold)) left center / 48px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) right center / 48px 1px no-repeat,
	radial-gradient(circle, var(--gold) 0 3px, transparent 3.6px) center / 10px 10px no-repeat; }
.mec-section.mec-center > h2::after, .mec-section.mec-center > h1::after, .mec-section.mec-hero > h1::after { inset-inline: 0; margin-inline: auto; }

/* Header */
.mec-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.mec-header::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.admin-bar .mec-header { top: 32px; }
/* Desktop: logo | centered menu | language switch */
.mec-header-inner { max-width: 1440px; margin: 0 auto; padding: 8px 28px; display: grid; grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr); align-items: center; gap: 28px; }
.mec-logo { justify-self: start; }
.mec-logo img { display: block; width: 118px; height: 118px; max-width: none; object-fit: contain; transition: transform .25s; }
.mec-logo:hover img { transform: scale(1.03); }
.mec-nav { display: contents; }
.mec-nav .mec-menu { justify-self: center; justify-content: center; }
.mec-nav .mec-lang-switch { justify-self: end; }
.mec-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.mec-menu a { position: relative; text-decoration: none; color: var(--night); font-size: 17.5px; font-weight: 400; letter-spacing: .2px; padding: 10px 0; }
.mec-menu a::after { content: ""; position: absolute; inset-inline: 50%; bottom: 2px; height: 1px; background: var(--gold); transition: inset-inline .25s ease; }
.mec-menu a:hover, .mec-menu .current-menu-item > a, .mec-menu .current_page_item > a { color: var(--gold-deep); }
.mec-menu a:hover::after, .mec-menu .current-menu-item > a::after, .mec-menu .current_page_item > a::after { inset-inline: 0; }
.mec-lang-switch { text-decoration: none; font-size: 13.5px; font-weight: 500; letter-spacing: .6px; border: 1px solid var(--gold); border-radius: 999px; padding: 5px 16px; color: var(--gold-deep); white-space: nowrap; transition: background .2s, color .2s; }
.mec-lang-switch:hover { background: var(--gold); color: #fff; }
.mec-burger { display: none; margin-inline-start: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.mec-burger span:not(.screen-reader-text) { display: block; width: 26px; height: 1.5px; background: var(--night); margin: 6px 0; }

@media (max-width: 1380px) and (min-width: 1101px) {
	.mec-menu { gap: 4px 22px; }
	.mec-menu a { font-size: 16.5px; }
	.mec-logo img { width: 100px; height: 100px; }
}
@media (max-width: 1100px) {
	.mec-header-inner { display: flex; }
	.mec-burger { display: block; }
	.mec-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--ivory); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 12px; box-shadow: var(--shadow); }
	.mec-nav.is-open { display: flex; }
	.mec-menu { flex-direction: column; }
	.mec-menu a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
	.mec-menu a::after { display: none; }
	.mec-lang-switch { align-self: flex-start; }
	.mec-logo img { width: 84px; height: 84px; }
}

/* Sections */
.mec-section { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px; }
.mec-section.mec-narrow { max-width: 860px; }
.mec-section.mec-center { text-align: center; }
.mec-section.mec-alt { max-width: none; position: relative; background: var(--sand); }
.mec-section.mec-alt::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .10; pointer-events: none; }
.mec-section.mec-alt > * { position: relative; max-width: var(--wrap); margin-inline: auto; }
.mec-section.mec-alt.mec-narrow > * { max-width: 820px; }
.mec-section > :last-child { margin-bottom: 0; }
.mec-lead { font-size: 1.22rem; font-weight: 300; color: #2a2f45; line-height: 1.7; }

/* Hero: night-blue veil over the photo, gold pattern, light type */
.mec-hero { max-width: none; position: relative; isolation: isolate; text-align: center; padding: 150px 24px 130px; color: #f4f1ea; background: var(--bg, var(--navy)) center / cover no-repeat; }
.mec-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 20, 48, .78) 0%, rgba(13, 20, 48, .62) 45%, rgba(13, 20, 48, .88) 100%); }
.mec-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern); opacity: .08; }
.mec-hero > * { max-width: 900px; margin-inline: auto; }
.mec-hero h1 { color: #fff; font-weight: 200; font-size: clamp(2.4rem, 6vw, 4.2rem); padding-bottom: 26px; }
.mec-hero h2, .mec-hero h3 { color: var(--gold-2); }
.mec-hero p, .mec-hero .mec-lead { color: #e9e4d8; }
.mec-hero a:not(.mec-btn) { color: var(--gold-2); }
.mec-hero strong { color: #fff; }

.mec-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mec-split.mec-reverse > .mec-media { order: 2; }
.mec-media img { display: block; width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.mec-media:has(img + img) { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mec-media:has(img + img) img { aspect-ratio: 1; max-height: 270px; }
.mec-media:has(img + img) img:nth-child(2) { transform: translateY(28px); }
.mec-profile .mec-media img { max-height: none; object-fit: contain; }
.mec-split + .mec-split { margin-top: 72px; }

.mec-grid { display: grid; gap: 28px; margin: 40px 0; }
.mec-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mec-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mec-cols-4 { grid-template-columns: repeat(4, 1fr); }
.mec-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; text-align: start; transition: transform .25s, box-shadow .25s, border-color .25s; }
.mec-card::before { content: ""; position: absolute; top: 0; inset-inline: 28px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity .25s; }
.mec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201, 164, 92, .55); }
.mec-card:hover::before { opacity: 1; }
.mec-card img { display: block; max-width: 100%; max-height: 180px; width: auto; object-fit: contain; border-radius: calc(var(--radius) - 6px); margin: 0 auto 18px; }
.mec-card h3 { color: var(--night); }
.mec-card > :last-child { margin-bottom: 0; }

.mec-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 36px 28px; margin: 40px 0; text-align: center; }
.mec-person img { width: 148px; height: 148px; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto 16px; padding: 4px; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); }
.mec-person strong { display: block; font-size: 1.05rem; font-weight: 600; color: var(--night); }
.mec-person span { display: block; color: var(--muted); font-size: .94rem; line-height: 1.45; margin-top: 4px; }

ol.mec-steps { list-style: none; counter-reset: step; padding: 0; margin: 44px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; text-align: start; }
ol.mec-steps > li { counter-increment: step; position: relative; padding-top: 70px; }
ol.mec-steps > li::before { content: counter(step); position: absolute; top: 0; inset-inline-start: 0; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-deep); background: #fff; display: grid; place-items: center; font-weight: 300; font-size: 1.4rem; box-shadow: 0 0 0 6px rgba(201, 164, 92, .10); }
ol.mec-steps > li:not(:last-child)::after { content: ""; position: absolute; top: 26px; inset-inline-start: 64px; inset-inline-end: -14px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .5; }
[dir="rtl"] ol.mec-steps > li:not(:last-child)::after { background: linear-gradient(270deg, var(--gold), transparent); }

ul.mec-chips { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.mec-section.mec-center ul.mec-chips { justify-content: center; }
ul.mec-chips li { border: 1px solid rgba(201, 164, 92, .6); background: #fff; border-radius: 999px; padding: 6px 18px; font-size: .95rem; color: var(--night); }
ul.mec-chips li span { color: var(--gold-deep); margin-inline-start: 6px; }

ul.mec-checks { list-style: none; padding: 0; }
ul.mec-checks li { position: relative; padding-inline-start: 30px; margin-bottom: .6em; }
ul.mec-checks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }

.mec-plan { max-width: 460px; margin: 36px auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; text-align: center; background: #fff; box-shadow: var(--shadow); }
.mec-plan ul.mec-checks { text-align: start; }
.mec-price { font-size: 2.6rem; font-weight: 700; margin: 8px 0 16px; color: var(--night); }
.mec-price small { font-size: 1rem; font-weight: 400; color: var(--muted); }

/* Membership — premium */
.mec-lux { --gold: #c9a45c; --gold-2: #e8d3a0; max-width: none; position: relative; overflow: hidden; color: #f4f1ea;
	background: radial-gradient(1200px 500px at 85% -10%, rgba(201, 164, 92, .22), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(93, 122, 90, .22), transparent 60%), linear-gradient(160deg, #0d1430 0%, #1b2547 55%, #111938 100%); }
.mec-lux::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .07; pointer-events: none; }
.mec-lux > * { max-width: var(--wrap); margin-inline: auto; position: relative; }
.mec-lux h1, .mec-lux h2, .mec-lux-title { font-weight: 200; color: #fff; letter-spacing: .2px; }
.mec-lux p { color: #e9e4d8; }
.mec-lux .mec-lead { color: #e9e4d8; font-size: 1.25rem; }
.mec-eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-size: .88rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.mec-eyebrow::before, .mec-eyebrow::after { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.mec-eyebrow::after { transform: scaleX(-1); }
.mec-lux-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.mec-lux-copy .mec-checks li { color: #e9e4d8; }
.mec-lux-copy h3 { color: var(--gold-2); font-weight: 400; font-size: 1.3rem; margin-top: 28px; }
.mec-lux-title { font-size: clamp(2.4rem, 5vw, 3.6rem); }

.mec-plan.mec-plan-lux { position: relative; max-width: 440px; margin: 32px auto; padding: 0 0 34px; border: 0; border-radius: 22px; overflow: hidden; background: #fffdf8; color: var(--ink);
	box-shadow: 0 30px 70px rgba(5, 10, 30, .45), 0 0 0 1px rgba(201, 164, 92, .55), inset 0 0 0 6px #fffdf8, inset 0 0 0 7px rgba(201, 164, 92, .35); }
.mec-plan-lux > img { display: block; width: 100%; height: 190px; object-fit: cover; margin: 0 0 26px; }
.mec-plan-lux h3 { font-weight: 300; font-size: 1.9rem; margin: 0 24px 4px; color: var(--night); }
.mec-plan-lux .mec-price { font-size: 3.8rem; font-weight: 700; line-height: 1; margin: 14px 24px 6px; background: linear-gradient(180deg, #d8b874, #a9822f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mec-plan-lux .mec-price small { display: block; font-size: 1rem; font-weight: 500; letter-spacing: 1px; color: #7a6a48; -webkit-text-fill-color: #7a6a48; margin-top: 10px; }
.mec-plan-lux hr { border: 0; height: 1px; margin: 22px 36px; background: linear-gradient(90deg, transparent, rgba(201, 164, 92, .7), transparent); }
.mec-plan-lux ul.mec-checks { margin: 0 36px 26px; text-align: start; }
.mec-plan-lux ul.mec-checks li { color: var(--ink); }
.mec-plan-lux .mec-plan-note { padding-inline-start: 0; margin-top: 14px; font-weight: 700; color: #7a6a48; font-size: .9rem; letter-spacing: .5px; }
.mec-plan-lux .mec-plan-note::before { content: none; }
.mec-plan-secure { display: block; margin-top: 14px; font-size: .85rem; color: #8b8370; }
.mec-plan-secure::before { content: "🔒"; margin-inline-end: 6px; }
.mec-lux-quote { max-width: 860px; margin: 0 auto; text-align: center; font-weight: 300; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.6; color: var(--night); }
.mec-lux-quote::before { content: "”"; display: block; font-size: 4.4rem; line-height: .6; color: var(--gold); margin-bottom: 14px; font-weight: 300; }

/* Two images side by side at the same size */
.mec-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 36px auto 0; }
.mec-pair img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mec-pair img.mec-pos-end { object-fit: cover; object-position: right center; }

/* Small gold line icons on cards */
.mec-card-icon .mec-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px; background: linear-gradient(180deg, #fffaf0, #f6ecd6); border: 1px solid rgba(201, 164, 92, .55); box-shadow: 0 0 0 5px rgba(201, 164, 92, .08); }
.mec-card-icon .mec-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mec-card-icon:hover .mec-icon { background: linear-gradient(180deg, #e8cd92, #c49a48); }
.mec-card-icon:hover .mec-icon svg { stroke: #fff; }

/* A form right after a gray band rises over its bottom edge */
.mec-page > .mec-alt + .mec-form { margin-top: -64px; }
.mec-page > .mec-alt:has(+ .mec-form) { padding-bottom: 150px; }
.mec-page > .mec-form-library { max-width: 680px; }

/* Compact page header without a photo (night band + pattern) */
.mec-hero.mec-page-head { padding: 96px 24px 84px; }
.mec-page-head .mec-eyebrow { justify-content: center; }

/* Channels (YouTube / Telegram) */
.mec-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.mec-channel { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px 36px 34px; box-shadow: var(--shadow); transition: transform .25s, border-color .25s; }
.mec-channel::before { content: ""; position: absolute; top: 0; inset-inline: 36px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.mec-channel:hover { transform: translateY(-4px); border-color: rgba(201, 164, 92, .55); }
.mec-channel-logo { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ivory); border: 1px solid rgba(201, 164, 92, .55); margin-bottom: 22px; box-shadow: 0 0 0 6px rgba(201, 164, 92, .08); }
.mec-channel-logo img { width: 46px; height: 46px; object-fit: contain; }
.mec-channel h2 { font-size: 1.8rem; font-weight: 400; margin-bottom: 6px; padding: 0; }
.mec-channel h2::after { content: none; }
.mec-channel h2 a { color: var(--night); text-decoration: none; }
.mec-channel-tag { color: var(--gold-deep); font-weight: 500; font-size: .9rem; letter-spacing: 1.5px; margin-bottom: 18px; }
.mec-channel p { color: #3a3f55; }
.mec-channel .mec-actions { margin-top: auto; padding-top: 10px; margin-bottom: 0; }

/* Books */
.mec-books { display: grid; gap: 72px; }
.mec-book { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.mec-book:nth-child(even) { grid-template-columns: 1fr 260px; }
.mec-book:nth-child(even) .mec-cover { order: 2; }
.mec-cover { display: block; position: sticky; top: 130px; perspective: 900px; }
.mec-cover img { display: block; width: 100%; height: auto; border-radius: 4px 10px 10px 4px; box-shadow: 0 26px 50px rgba(13, 20, 48, .28), 0 4px 10px rgba(13, 20, 48, .18); transform: rotateY(-8deg); transition: transform .4s; }
[dir="rtl"] .mec-cover img { transform: rotateY(8deg); border-radius: 10px 4px 4px 10px; }
.mec-cover:hover img { transform: none; }
.mec-book-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; margin-bottom: 8px; padding: 0; }
.mec-book-text h2::after { content: none; }
.mec-book-text h2 a { color: var(--night); text-decoration: none; }
.mec-book-by { color: var(--gold-deep); font-weight: 500; letter-spacing: .5px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mec-book-text p { color: #343a52; }
@media (max-width: 800px) {
	.mec-channels { grid-template-columns: 1fr; }
	.mec-pair { grid-template-columns: 1fr; }
	.mec-page > .mec-alt + .mec-form { margin-top: -48px; }
	.mec-page > .mec-alt:has(+ .mec-form) { padding-bottom: 110px; }
	.mec-channel { padding: 32px 24px 28px; }
	.mec-book, .mec-book:nth-child(even) { grid-template-columns: 1fr; gap: 26px; text-align: center; }
	.mec-book:nth-child(even) .mec-cover { order: 0; }
	.mec-cover { position: static; width: 200px; margin: 0 auto; }
	.mec-book-text { text-align: start; }
}

ul.mec-links { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
ul.mec-links li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
ul.mec-links a { font-weight: 600; font-size: 1.1rem; }
ul.mec-links span { display: block; color: var(--muted); }

/* Buttons */
.mec-btn, .mec-form button { display: inline-block; background: var(--night); color: #fff; border: 1px solid var(--night); border-radius: 999px; padding: 12px 34px; font: 500 16px/1.3 var(--font); letter-spacing: .3px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.mec-btn:hover, .mec-form button:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(156, 122, 52, .28); }
.mec-btn.mec-btn-outline { background: transparent; color: var(--night); border-color: rgba(27, 37, 71, .35); }
.mec-btn.mec-btn-outline:hover { background: var(--night); color: #fff; border-color: var(--night); }
.mec-hero .mec-btn, .mec-lux .mec-btn, .mec-plan-lux .mec-btn { background: linear-gradient(180deg, #dcbd7c 0%, #b88f3e 100%); border-color: #b88f3e; color: #1a1406; font-weight: 600; box-shadow: 0 10px 24px rgba(184, 143, 62, .35); }
.mec-hero .mec-btn:hover, .mec-lux .mec-btn:hover, .mec-plan-lux .mec-btn:hover { background: linear-gradient(180deg, #e8cd92 0%, #c49a48 100%); color: #1a1406; border-color: #c49a48; }
.mec-hero .mec-btn.mec-btn-outline { background: transparent; color: var(--gold-2); border-color: var(--gold); box-shadow: none; }
.mec-plan-lux .mec-btn { padding: 14px 48px; font-size: 1.1rem; }
.mec-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.mec-center .mec-actions, .mec-hero .mec-actions { justify-content: center; }

/* Lecturers */
.mec-speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; margin: 40px auto; max-width: var(--wrap); padding-inline: 24px; }
.mec-section .mec-speakers { padding-inline: 0; }
.mec-speaker { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 20px 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.mec-speaker:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(201, 164, 92, .55); }
.mec-speaker-img img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; display: block; margin-bottom: 18px; padding: 4px; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); transition: transform .3s; }
.mec-speaker:hover .mec-speaker-img img { transform: scale(1.03); }
.mec-speaker h3 { margin-bottom: .35em; font-weight: 500; font-size: 1.2rem; }
.mec-speaker h3 a { text-decoration: none; color: var(--night); }
.mec-speaker-desc { color: #3a3f55; font-size: .96rem; line-height: 1.5; flex: 1; font-weight: 300; }
.mec-speaker-langs { color: var(--gold-deep); font-weight: 500; font-size: .85rem; letter-spacing: .8px; text-transform: uppercase; }
.mec-speaker .mec-btn { margin-top: 10px; padding: 9px 26px; font-size: 14.5px; }
.mec-profile .mec-split { align-items: start; grid-template-columns: 2fr 3fr; }
.mec-profile .mec-media img { max-width: 420px; padding: 6px; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); }
.mec-profile h1 { font-weight: 300; }
.mec-bio p { margin-bottom: 1em; }

/* Forms */
.mec-form { margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; text-align: start; }
.mec-form .mec-field-message, .mec-form .mec-check, .mec-form .mec-submit, .mec-form .mec-notice, .mec-form .mec-field-speaker { grid-column: 1 / -1; }
.mec-form-newsletter { grid-template-columns: 1fr; max-width: 500px; }
.mec-center .mec-form-newsletter, .mec-center .mec-form { margin-inline: auto; }
.mec-center .mec-form { max-width: 760px; }
.mec-field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; color: var(--night); }
.mec-field input, .mec-field textarea { width: 100%; font: inherit; padding: 13px 16px; border: 1px solid #d9d1bf; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.mec-field input:focus, .mec-field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 92, .18); }
.mec-field small { display: block; color: var(--muted); margin-top: 6px; }
.mec-check label { display: flex; gap: 10px; align-items: center; }
.mec-check input { accent-color: var(--gold-deep); width: 18px; height: 18px; }
.mec-req { color: var(--gold-deep); }
.mec-hp { position: absolute !important; inset-inline-start: -9999px; }
.mec-notice { padding: 14px 18px; border-radius: 10px; }
.mec-ok { background: #edf3ea; color: #2f4d2c; border: 1px solid #cfdec9; }
.mec-err { background: #fbecec; color: #7d1f1f; border: 1px solid #f0cfcf; }
.mec-lux .mec-field label { color: #f4f1ea; }

/* A form placed directly in the page (not inside a section) becomes a centered card; after a hero it rises over its edge. */
.mec-page > .mec-form { position: relative; z-index: 2; max-width: 780px; margin: 64px auto 96px; padding: 48px 52px 40px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 70px rgba(13, 20, 48, .14); }
.mec-page > .mec-form::before { content: ""; position: absolute; top: 0; inset-inline: 52px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.mec-page > .mec-hero + .mec-form { margin-top: -72px; }
.mec-page > .mec-hero:has(+ .mec-form) { padding-bottom: 170px; }
.mec-page > .mec-form .mec-submit { text-align: center; margin-top: 12px; }
.mec-page > .mec-form .mec-submit button { min-width: 220px; padding: 14px 40px; font-size: 1.05rem; background: linear-gradient(180deg, #dcbd7c 0%, #b88f3e 100%); border-color: #b88f3e; color: #1a1406; font-weight: 600; box-shadow: 0 10px 24px rgba(184, 143, 62, .3); }
.mec-page > .mec-form .mec-submit button:hover { background: linear-gradient(180deg, #e8cd92 0%, #c49a48 100%); color: #1a1406; }
.mec-page > .mec-form-newsletter { max-width: 560px; }
.mec-section .mec-form { max-width: 780px; margin-inline: auto; }
@media (max-width: 800px) {
	.mec-page > .mec-form { margin: 40px 16px 64px; padding: 32px 22px 28px; }
	.mec-page > .mec-hero + .mec-form { margin-top: -56px; }
	.mec-page > .mec-hero:has(+ .mec-form) { padding-bottom: 130px; }
}

/* Footer */
.mec-footer { position: relative; isolation: isolate; margin-top: 0; color: #cfcab9; background: linear-gradient(170deg, #0d1430 0%, #172043 100%); }
.mec-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern); opacity: .06; }
.mec-footer::after { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.mec-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 44px; text-align: center; font-size: 14px; }
.mec-social { list-style: none; padding: 0; margin: 0 0 26px; display: flex; justify-content: center; gap: 14px; }
.mec-social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(201, 164, 92, .5); border-radius: 50%; transition: background .2s, border-color .2s; }
.mec-social a:hover { background: rgba(201, 164, 92, .15); border-color: var(--gold); }
.mec-social img { display: block; width: 22px; height: 22px; filter: brightness(0) invert(1); opacity: .9; }
.mec-footer-logo img { width: 78px; height: 78px; background: var(--ivory); border-radius: 50%; padding: 6px; }
.mec-copy { margin: 18px 0 6px; color: #a9a593; }
.mec-legal, .mec-footer .mec-menu { list-style: none; padding: 0; margin: 8px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; }
.mec-legal a, .mec-footer .mec-menu a { color: var(--gold-2); font-size: 13.5px; text-decoration: none; }
.mec-legal a:hover, .mec-footer .mec-menu a:hover { color: #fff; }

@media (max-width: 900px) {
	.mec-lux-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
	.mec-lux-copy .mec-checks { display: inline-block; text-align: start; }
	.mec-plan-lux .mec-price { font-size: 3rem; }
}
@media (max-width: 800px) {
	body { font-size: 16.5px; }
	.mec-section { padding: 60px 18px; }
	.mec-hero { padding: 96px 18px 84px; }
	.mec-split, .mec-profile .mec-split { grid-template-columns: 1fr; gap: 28px; }
	.mec-split.mec-reverse > .mec-media { order: 0; }
	.mec-media:has(img + img) img:nth-child(2) { transform: none; }
	.mec-cols-2, .mec-cols-3, .mec-cols-4 { grid-template-columns: 1fr; }
	.mec-form { grid-template-columns: 1fr; }
	ol.mec-steps > li::after { display: none; }
}
@media (min-width: 801px) and (max-width: 1050px) {
	.mec-cols-4, .mec-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
