/* Masar demos – shared structure. Visual identity lives in skin.css (tokens + looks). */

/* ---------- Elementor spacing reset: layout is controlled by classes ---------- */
body.masar {
	--widgets-spacing: 0px 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px; --kit-widget-spacing: 0px;
	--container-default-padding-top: 0px; --container-default-padding-right: 0px;
	--container-default-padding-bottom: 0px; --container-default-padding-left: 0px;
	background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.8;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
.masar .e-con { --gap: 0px; --row-gap: 0px; --column-gap: 0px; }
.masar .elementor-widget:not(:last-child) { margin-block-end: 0; }
.masar a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, opacity .2s, transform .2s; }
.masar h1, .masar h2, .masar h3, .masar h4, .masar .elementor-heading-title { font-family: var(--font-h); line-height: 1.45; margin: 0; color: inherit; }
.masar p { margin: 0 0 1em; }
.masar p:last-child { margin-bottom: 0; }
.masar img { max-width: 100%; height: auto; }
.masar ::selection { background: var(--brand); color: #fff; }

/* wrappers */
.masar .m-wrap { width: 100%; max-width: var(--wrap, 1200px); margin-inline: auto; padding-inline: 24px; box-sizing: border-box; }
.masar .m-wrap.m-narrow { max-width: 860px; }
.masar .m-pad { padding-block: var(--sec-pad, 96px); }

/* row helpers */
.masar .e-con.v1-hero__btns, .masar .e-con.v2-hero__btns, .masar .e-con.v3-hero__btns,
.masar .e-con.v1-cta__btns, .masar .e-con.v3-foot__btns { flex-direction: row; flex-wrap: wrap; gap: 12px; }
.masar .e-con.v1-head-row, .masar .e-con.v2-head-row, .masar .e-con.v3-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.masar .e-con.v1-head-row > .e-con, .masar .e-con.v2-head-row > .e-con, .masar .e-con.v3-head-row > .e-con { width: auto; flex: 1 1 360px; }
.masar .e-con > .elementor-widget-button { width: auto; }

/* buttons */
.masar .m-btn .elementor-button { font-family: var(--font-h); font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: var(--btn-radius, 8px); line-height: 1.4; border: 2px solid transparent; display: inline-flex; align-items: center; gap: 8px; }

/* font-awesome inside html widgets */
.masar .fas, .masar .fab { font-style: normal; }

/* icons from masar_icon() */
.m-ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

/* logo */
.m-logo { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.m-logo svg { width: 46px; height: 46px; flex: none; }
.m-logo .lg-bg { fill: var(--logo-bg); }
.m-logo .lg-m { fill: none; stroke: var(--logo-fg); stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.m-logo .lg-dot { fill: var(--logo-dot); }
.m-logo__txt { display: flex; flex-direction: column; line-height: 1.25; }
.m-logo__txt b { font-family: var(--font-h); font-size: 20px; font-weight: 800; }
.m-logo__txt small { font-size: 12.5px; opacity: .75; }

/* nav menu (Elementor Pro) */
.masar .elementor-nav-menu--main .elementor-item { font-family: var(--font-h); font-weight: 600; font-size: 15px; padding: 10px 14px; }
.masar .elementor-nav-menu--dropdown { border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.18); margin-top: 12px; }
.masar .elementor-nav-menu--dropdown .elementor-item { font-family: var(--font-h); font-weight: 600; padding: 14px 20px; }
.masar .elementor-menu-toggle { border-radius: 10px; }

/* FAQ */
.m-faq details { border-bottom: 1px solid var(--line); }
.m-faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--font-h); font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq summary::after { content: "+"; font-size: 26px; line-height: 1; font-weight: 400; transition: transform .25s; flex: none; }
.m-faq details[open] summary::after { transform: rotate(45deg); }
.m-faq details > div { padding: 0 0 22px; color: var(--muted); }

/* certificate check */
.m-cert label { display: block; font-family: var(--font-h); font-weight: 700; margin-bottom: 8px; }
.m-cert__row { display: flex; gap: 10px; }
.m-cert input { flex: 1; min-width: 0; padding: 14px 16px; font-size: 16px; border: 1px solid var(--line); border-radius: var(--field-radius, 8px); background: var(--field-bg, #fff); color: var(--ink); text-align: left; letter-spacing: .5px; }
.m-cert button { padding: 14px 26px; border: 0; border-radius: var(--field-radius, 8px); background: var(--brand); color: #fff; font-family: var(--font-h); font-weight: 700; font-size: 15px; cursor: pointer; }
.m-cert__result { margin-top: 18px; padding: 18px 20px; border-radius: var(--field-radius, 8px); }
.m-cert__result.is-ok { background: rgba(16, 150, 80, .1); border: 1px solid rgba(16, 150, 80, .35); }
.m-cert__result.is-bad { background: rgba(200, 16, 46, .08); border: 1px solid rgba(200, 16, 46, .3); }
.m-cert__result dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 12px 0 0; }
.m-cert__result dt { opacity: .7; }
.m-cert__result dd { margin: 0; font-weight: 600; }

/* Elementor Pro form base */
.masar .elementor-form .elementor-field-group { margin-bottom: 16px; }
.masar .elementor-form .elementor-field-label { font-family: var(--font-h); font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.masar .elementor-form .elementor-field-textual, .masar .elementor-form select { font-family: var(--font); font-size: 15.5px; min-height: 50px; padding: 12px 16px; border-radius: var(--field-radius, 8px); border: 1px solid var(--line); background: var(--field-bg, #fff); color: var(--ink); }
.masar .elementor-form textarea.elementor-field-textual { min-height: 120px; }
.masar .elementor-form .elementor-field-textual:focus, .masar .elementor-form select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.masar .elementor-form .elementor-button { min-height: 52px; font-family: var(--font-h); font-weight: 700; font-size: 16px; border-radius: var(--btn-radius, 8px); background: var(--brand); color: #fff; }
.masar .elementor-message { font-family: var(--font-h); }

/* WhatsApp float */
.m-wa { position: fixed; z-index: 999; bottom: 22px; left: 22px; display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 40px; background: #25d366; color: #fff !important; font-family: var(--font-h); font-weight: 700; font-size: 15px; box-shadow: 0 12px 30px rgba(37, 211, 102, .35); }
.m-wa .m-ico { width: 24px; height: 24px; }
.m-wa:hover { transform: translateY(-3px); }

/* ---------- course + news cards structure ---------- */
.m-courses, .m-newsgrid { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-noimg { display: block; width: 100%; height: 100%; background: var(--line); }
.m-course, .m-card, .m-news { display: flex; flex-direction: column; overflow: hidden; }
.m-course__media, .m-card__media, .m-news__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.m-course__media img, .m-card__media img, .m-news__media img, .m-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.m-course:hover img, .m-card:hover img, .m-news:hover img, .m-row:hover img { transform: scale(1.05); }
.m-news__body, .m-card__body { display: flex; flex-direction: column; gap: 8px; }
.m-news__title, .m-card__title { font-family: var(--font-h); font-size: 19px; line-height: 1.55; }
.m-news__excerpt { color: var(--muted); font-size: 15px; }
.m-news__date { font-size: 13.5px; color: var(--muted); }

/* ---------- single / archive ---------- */
.m-shead { position: relative; }
.m-crumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; opacity: .85; margin-bottom: 14px; }
.m-shead__title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; max-width: 900px; }
.m-shead__meta { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 10px 26px; flex-wrap: wrap; }
.m-shead__meta li, .m-shead__date { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; }
.m-shead__meta li { margin: 0; }
.m-shead__sub { max-width: 720px; margin-top: 12px; opacity: .85; font-size: 17px; }
.m-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-block: 64px; align-items: start; }
.m-single__grid--full { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.m-article__img { margin: 0 0 28px; overflow: hidden; }
.m-article__img img { width: 100%; display: block; }
.m-article__lead { font-size: 19px; font-weight: 500; }
.m-article__body { font-size: 17px; }
.m-article__body h2 { font-size: 24px; margin: 32px 0 12px; }
.m-article__body ul { padding-inline-start: 22px; margin: 0 0 1em; }
.m-article__body li { margin-bottom: 6px; }
.m-share { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.m-share a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.m-aside { position: sticky; top: 110px; }
.m-info dl { margin: 0; }
.m-info dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.m-info dt { display: flex; align-items: center; gap: 8px; opacity: .75; }
.m-info dd { margin: 0; font-weight: 700; text-align: left; }
.m-info__title { font-size: 20px; margin-bottom: 8px !important; }
.m-info__btn, .m-info__wa { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; padding: 14px; font-family: var(--font-h); font-weight: 700; border-radius: var(--btn-radius, 8px); }
.m-info .m-courses { grid-template-columns: 1fr; gap: 16px; margin-top: 12px; }
.m-regsec { padding-block: 72px; scroll-margin-top: 90px; }
.m-regsec__in { max-width: 860px; }
.m-related { padding-block: 72px; }
.m-related__title { font-size: 28px; margin-bottom: 32px !important; }
.m-archive__body { padding-block: 64px 96px; }
.m-archive .pagination, .m-archive .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.m-archive .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); }
.m-archive .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* registration form block */
.masar .m-regform { padding: 36px; border-radius: var(--radius, 16px); }
.masar .m-regform__title { font-size: 26px; font-weight: 800; }
.masar .m-regform__lead { margin: 6px 0 22px; opacity: .8; }

/* 404 */
.m-404 { padding-block: 120px; text-align: center; }
.m-404__code { font-family: var(--font-h); font-size: 120px; font-weight: 800; line-height: 1; color: var(--brand); display: block; }
.m-404 h1 { font-size: 34px; margin: 10px 0 12px; }
.m-404__btns { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }
.m-404__btn { padding: 14px 26px; border-radius: var(--btn-radius, 8px); background: var(--brand); color: #fff !important; font-family: var(--font-h); font-weight: 700; }
.m-404__btn--alt { background: transparent; color: var(--ink) !important; border: 2px solid var(--line); }

.m-credit a { font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.masar .m-pad { padding-block: 72px; }
	.m-courses, .m-newsgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.m-single__grid { grid-template-columns: 1fr; }
	.m-aside { position: static; }
}
@media (max-width: 767px) {
	.masar .m-wrap { padding-inline: 16px; }
	.masar .m-pad { padding-block: 56px; }
	.m-courses, .m-newsgrid { grid-template-columns: 1fr; }
	.m-wa span { display: none; }
	.m-wa { padding: 14px; bottom: 16px; left: 16px; }
	.m-cert__row { flex-direction: column; }
	.masar .m-regform { padding: 22px; }
	.m-logo__txt b { font-size: 17px; }
	.m-logo svg { width: 40px; height: 40px; }
}
