/* MuktoBuddhi theme — base. Component styles live in the MuktoBuddhi Books plugin. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
	margin: 0;
	background: #fbf7f0;
	color: var(--e-global-color-text, #4a403a);
	font-family: var(--e-global-typography-text-font-family, "Nikosh"), "Nikosh", system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--e-global-typography-primary-font-family, "Nikosh"), "Nikosh", system-ui, sans-serif;
	color: var(--e-global-color-secondary, #1f1a17);
	line-height: 1.4;
	font-weight: 700;
}
a { color: var(--e-global-color-primary, #7a1416); }
img { max-width: 100%; height: auto; }
::selection { background: #7a1416; color: #fff; }
:focus-visible { outline: 3px solid rgba(200, 150, 62, .7); outline-offset: 2px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 10px; left: 10px; z-index: 100002; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: #1f1a17; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }

.site-main { display: block; min-height: 50vh; }

/* Elementor kit typography should win over theme defaults inside Elementor content. */
.elementor-widget-text-editor { line-height: 1.85; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-heading .elementor-heading-title { line-height: 1.4; }

/* --------------------------------------------------------------------------
   Fallback layout (used when no Elementor template is assigned)
   -------------------------------------------------------------------------- */
.mbt-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.mbt-section { padding-block: clamp(40px, 6vw, 80px); }
.mbt-section--paper { background: #f4ecdf; }
.mbt-pagehead { padding-block: clamp(36px, 5vw, 64px); text-align: center; }
.mbt-title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin: 0; }
.mbt-meta { color: #6b5e55; margin: 0 0 .4rem; }
.mbt-prose { max-width: 820px; font-size: 1.06rem; line-height: 1.95; }
.mbt-prose h2, .mbt-prose h3 { margin-top: 2em; }
.mbt-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid #c8963e; font-family: "Nikosh", sans-serif; font-size: 1.12em; }
.mbt-featured { margin: 0 0 2rem; }
.mbt-featured img { border-radius: 16px; }
.mbt-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .mbt-split { grid-template-columns: 1fr; } }

.mbt-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 999; background: rgba(251, 247, 240, .94); backdrop-filter: blur(12px); border-bottom: 1px solid #e8dece; }
.mbt-header__inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.mbt-header .mb-logo img, .mbt-header .custom-logo { height: 50px; width: auto; display: block; }
.mbt-nav { flex: 1; }
.mbt-menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.mbt-menu a { display: block; padding: 8px 14px; color: #1f1a17; text-decoration: none; font-weight: 500; }
.mbt-menu a:hover, .mbt-menu .current-menu-item > a { color: #7a1416; }
.mbt-menu .sub-menu { display: none; }
.mbt-search input { height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #e8dece; background: #fff; font: inherit; }
@media (max-width: 900px) { .mbt-nav { display: none; } .mbt-header__inner { justify-content: space-between; } .mbt-search input { width: 150px; } }

.mbt-footer { background: #1b1513; color: rgba(255, 255, 255, .75); padding-block: 48px; }
.mbt-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.mbt-footer .mb-logo img { height: 56px; width: auto; }
.mbt-footer__menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.mbt-footer__menu a { color: inherit; text-decoration: none; }
.mbt-footer__menu a:hover { color: #c8963e; }
.mbt-footer__copy { margin: 0; font-size: .9rem; opacity: .7; }

.mbt-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.mbt-post { background: #fff; border: 1px solid #e8dece; border-radius: 16px; overflow: hidden; }
.mbt-post__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mbt-post__body { padding: 20px 22px; }
.mbt-post__title { font-size: 1.2rem; margin: 0 0 .4rem; }
.mbt-post__title a { color: inherit; text-decoration: none; }
.mbt-pagination { margin-top: 40px; text-align: center; }
.mbt-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin: 0 3px; border-radius: 50%; border: 1px solid #e8dece; text-decoration: none; color: #1f1a17; }
.mbt-pagination .current { background: #7a1416; color: #fff; border-color: #7a1416; }
.mbt-empty { text-align: center; color: #6b5e55; }

.mbt-404 { text-align: center; }
.mbt-404 .mbt-wrap { max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mbt-404__code { font-family: "Nikosh", sans-serif; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; margin: 0; color: #7a1416; opacity: .9; }

/* --------------------------------------------------------------------------
   Elementor section helpers (classes usable in Advanced → CSS Classes)
   -------------------------------------------------------------------------- */
.mb-bg-paper { background-color: #f4ecdf; }
.mb-bg-ink { background-color: #1b1513; }
.mb-texture { position: relative; isolation: isolate; }
.mb-texture::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
	background-image: radial-gradient(rgba(122, 20, 22, .07) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.mb-footer-heading .elementor-heading-title { position: relative; padding-bottom: 12px; }
.mb-footer-heading .elementor-heading-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: #c8963e; }

/* Eyebrow style for Elementor Heading widgets (CSS class: mb-eh) */
.mb-eh .elementor-heading-title { display: inline-flex; align-items: center; gap: .7em; }
.mb-eh .elementor-heading-title::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--e-global-color-accent, #c8963e); }
.mb-eh--center .elementor-heading-title::after { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--e-global-color-accent, #c8963e); }

/* Centered intro text under section headings */
.mb-center-text { max-width: 720px; margin-inline: auto; }

/* Dark call-to-action band */
.mb-cta-dark { position: relative; overflow: hidden; isolation: isolate; }
.mb-cta-dark::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(40% 70% at 10% 20%, rgba(200, 150, 62, .18), transparent 70%),
		radial-gradient(35% 60% at 90% 90%, rgba(122, 20, 22, .45), transparent 70%),
		repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 16px);
}
.mb-map iframe { border-radius: 24px; filter: saturate(.85) sepia(.12); }

/* Footer credit link (gold on the dark footer) */
html body .mb-footer-credit a { color: var(--e-global-color-accent, #c8963e); text-decoration: none; font-weight: 600; transition: color .2s; }
html body .mb-footer-credit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
