/*
Theme Name: Manipal Fintech
Theme URI: https://manipalfintech.com
Author: Aishwary Sinha
Author URI: https://manipalfintech.com
Description: Manipal Fintech is a fast, accessible, fully responsive classic WordPress theme built for financial and fintech blogs. It ships with a featured-post blog layout, category-based navigation, an automatic table of contents, a per-post FAQ builder, social sharing, breadcrumb navigation, and a custom 404 page. Widget-ready, translation-ready, block-editor friendly, and tested for compatibility with SEO and security plugins such as Rank Math and Wordfence.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manipal-fintech
Tags: blog, two-columns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, sticky-post, threaded-comments, translation-ready, rtl-language-support, block-styles, wide-blocks
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root {
	--mft-blue:        #21A1FF;
	--mft-blue-dark:   #1789E0;
	--mft-blue-light:  #6DBEF9;
	--mft-blue-pale:   #ECF7FF;
	--mft-navy:        #001626;
	--mft-navy-soft:   #0B2233;
	--mft-heading:     #2D3549;
	--mft-text:        #5B6473;
	--mft-muted:       #8A93A3;
	--mft-bg:          #F9F9F9;
	--mft-white:       #FFFFFF;
	--mft-border:      #E6E9EE;
	--mft-placeholder: #F1F3F6;

	--mft-radius:      20px;
	--mft-radius-sm:   10px;
	--mft-radius-pill: 999px;
	--mft-container:   1400px;
	--mft-gap:         32px;

	/* Spacing scale: powers of two (px) — 2, 4, 8, 16, 32, 64, 128 */

	--mft-shadow:      0 10px 30px rgba(16, 42, 67, 0.06);

	--mft-font-head:   "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mft-font-body:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--mft-font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--mft-text);
	background: var(--mft-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--mft-font-head);
	color: var(--mft-heading);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 600;
}

a { color: var(--mft-blue); text-decoration: none; }
a:hover { color: var(--mft-blue-dark); }

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1.2em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }

/* Accessibility */
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100000;
	background: var(--mft-navy); color: #fff; padding: 16px 16px;
	border-radius: 0 0 var(--mft-radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--mft-blue); outline-offset: 2px; }

/* Layout helpers */
.mft-container {
	width: 90%;
	max-width: var(--mft-container);
	margin: 0 auto;
	padding: 0;
}

/* =========================================================
   Buttons & pills
   ========================================================= */
.mft-btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 8px;
	font-family: var(--mft-font-head);
	font-weight: 600; font-size: 15px;
	padding: 16px 32px;
	border-radius: var(--mft-radius-pill);
	background: var(--mft-blue); color: #fff;
	border: 0; cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.mft-btn:hover { background: var(--mft-blue-dark); color: #fff; }
.mft-btn-outline {
	background: transparent; color: var(--mft-heading);
	border: 1px solid var(--mft-border);
}
.mft-btn-outline:hover { background: var(--mft-white); border-color: var(--mft-blue); color: var(--mft-blue); }

.mft-pill {
	display: inline-flex; align-items: center;
	font-family: var(--mft-font-head);
	font-size: 13px; font-weight: 500;
	padding: 8px 16px;
	border-radius: var(--mft-radius-pill);
	background: var(--mft-white); color: var(--mft-heading);
	border: 1px solid var(--mft-border);
	white-space: nowrap;
	text-transform: capitalize;
}
a.mft-pill:hover { border-color: var(--mft-blue); color: var(--mft-blue); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
	background: var(--mft-white);
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid var(--mft-border);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 32px; min-height: 80px;
}
.site-branding { display: flex; align-items: center; gap: 16px; }
.site-branding img, .custom-logo { max-height: 40px; width: auto; }
.site-title {
	font-family: var(--mft-font-head); font-weight: 700; font-size: 22px;
	margin: 0; color: var(--mft-blue);
}
.site-title a { color: inherit; }

.main-navigation { display: flex; align-items: center; gap: 32px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.main-navigation li { position: relative; }
.main-navigation a {
	font-family: var(--mft-font-head); font-weight: 500; font-size: 15px;
	color: var(--mft-heading); padding: 8px 0; display: inline-flex; align-items: center; gap: 8px;
}
.main-navigation a:hover { color: var(--mft-blue); }
.main-navigation .menu-item-has-children > a::after {
	content: ""; width: 8px; height: 8px; margin-top: -2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); display: inline-block;
}
/* Submenu */
.main-navigation ul ul {
	position: absolute; top: 100%; left: 0; min-width: 210px;
	background: #fff; flex-direction: column; gap: 0;
	box-shadow: var(--mft-shadow); border: 1px solid var(--mft-border);
	border-radius: var(--mft-radius-sm); padding: 8px 0;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: .2s ease;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation ul ul li { width: 100%; }
.main-navigation ul ul a { display: block; padding: 8px 16px; }
.main-navigation ul ul .menu-item-has-children > a::after { content: none; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.mobile-cta { display: none; }

/* Mobile nav toggle */
.menu-toggle {
	display: none; background: none; border: 0; cursor: pointer;
	width: 44px; height: 44px; padding: 8px;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
	content: ""; display: block; height: 2px; width: 24px; background: var(--mft-heading);
	position: relative; transition: .25s;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after  { position: absolute; top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* =========================================================
   Hero (page banner) + search bar
   ========================================================= */
.page-hero {
	background: var(--mft-blue);
	color: #fff;
	padding: 64px 0 64px;
}
.page-hero__breadcrumb {
	font-family: var(--mft-font-head); font-weight: 600; font-size: 13px;
	letter-spacing: .08em; text-transform: uppercase; opacity: .9;
	display: flex; gap: 8px; align-items: center; margin-bottom: 16px;
}
.page-hero__breadcrumb a { color: #fff; opacity: .85; }
.page-hero__breadcrumb a:hover { opacity: 1; }
.page-hero__breadcrumb .sep { opacity: .6; }
.page-hero__title {
	color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 700;
	margin: 0 0 8px;
}
.page-hero__subtitle { font-size: 17px; opacity: .92; margin: 0; }

.blog-toolbar { background: #008EF6; }
.blog-toolbar__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 32px; padding: 16px 0; flex-wrap: nowrap;
}
.search-form { position: relative; flex: 0 1 360px; max-width: 360px; }
.search-form input[type="search"] {
	width: 100%; border: 0; border-radius: var(--mft-radius-pill);
	padding: 16px 16px 16px 64px; font-family: var(--mft-font-body); font-size: 15px;
	color: var(--mft-heading); background: #fff;
}
.search-form input[type="search"]::placeholder { color: var(--mft-muted); }
.search-form .search-icon {
	position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
	width: 18px; height: 18px; color: var(--mft-muted);
}
.search-form button { position: absolute; left: -9999px; }
.tag-list {
	display: flex; gap: 8px; flex-wrap: nowrap;
	overflow-x: auto; min-width: 0; max-width: 100%;
	scrollbar-width: none; -ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}
.tag-list::-webkit-scrollbar { display: none; }
.tag-list .mft-pill { flex: none; }

/* =========================================================
   Blog listing
   ========================================================= */
.site-main { padding: 64px 0 64px; }

/* Featured post */
.featured-post {
	background: var(--mft-blue-pale);
	border-radius: var(--mft-radius);
	overflow: hidden;
	display: grid; grid-template-columns: 1.4fr 1fr;
	margin-bottom: 64px;
}
.featured-post__media {
	display: block;
	background: var(--mft-placeholder);
	min-height: 420px; position: relative;
}
.featured-post__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-post__body { padding: 32px; display: flex; flex-direction: column; }
.featured-post__title { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.featured-post__title a { color: var(--mft-heading); }
.featured-post__title a:hover { color: var(--mft-blue); }
.featured-post__excerpt { color: var(--mft-text); margin-bottom: auto; }
.featured-post__tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 16px; }

.post-image-placeholder {
	display: flex; align-items: center; justify-content: center;
	font-family: var(--mft-font-head); font-weight: 600; letter-spacing: .04em;
	color: var(--mft-heading); background: var(--mft-placeholder);
	background-image:
		linear-gradient(to top right, transparent calc(50% - 1px), var(--mft-border), transparent calc(50% + 1px)),
		linear-gradient(to top left,  transparent calc(50% - 1px), var(--mft-border), transparent calc(50% + 1px));
	width: 100%; height: 100%; min-height: inherit;
}

/* Post meta (author / date / read time) */
.post-byline { display: flex; align-items: center; gap: 16px; }
.post-byline__avatar { display: inline-flex; line-height: 0; flex: none; }
.post-byline__avatar img { width: 36px; height: 36px; border-radius: 50%; }
.post-meta a.author-name { color: var(--mft-heading); font-weight: 600; }
.post-meta a.author-name:hover { color: var(--mft-blue); }
.post-meta {
	font-size: 14px; color: var(--mft-muted);
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.post-meta .author-name { color: var(--mft-heading); font-weight: 600; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--mft-muted); display: inline-block; }

/* Grid */
.post-grid {
	display: grid; grid-template-columns: repeat(3, 1fr);
	column-gap: var(--mft-gap); row-gap: 64px;
}
.post-card {
	background: transparent;
	border-radius: var(--mft-radius);
	transition: background .2s ease, box-shadow .2s ease;
}
.post-card:hover {
	background: var(--mft-blue-pale);
	box-shadow: 0 0 0 16px var(--mft-blue-pale);
}
.post-card__media {
	display: block;
	border-radius: var(--mft-radius); overflow: hidden;
	aspect-ratio: 2 / 1; margin-bottom: 16px; position: relative;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.post-card__meta {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; margin-bottom: 16px;
}
.post-card__title { font-size: 19px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.post-card__title a { color: var(--mft-heading); }
.post-card__title a:hover { color: var(--mft-blue); }
.post-card__excerpt { font-size: 14px; color: var(--mft-text); margin: 0; }

/* =========================================================
   Pagination
   ========================================================= */
.mft-pagination { margin-top: 64px; display: flex; justify-content: flex-end; }
.mft-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 16px; margin-left: 8px;
	border: 1px solid var(--mft-border); border-radius: var(--mft-radius-pill);
	background: #fff; color: var(--mft-heading); font-family: var(--mft-font-head);
	font-weight: 500; font-size: 14px; transition: .2s;
}
.mft-pagination a.page-numbers:hover { border-color: var(--mft-blue); color: var(--mft-blue); }
.mft-pagination .page-numbers.current { background: var(--mft-blue); color: #fff; border-color: var(--mft-blue); }
.mft-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* =========================================================
   Single post & pages
   ========================================================= */
.entry { max-width: 760px; margin: 0 auto; }
.entry-header { margin-bottom: 32px; }
.entry-title { font-size: clamp(28px, 4vw, 40px); }
.entry-featured { border-radius: var(--mft-radius); overflow: hidden; margin: 0 auto 32px; max-width: 980px; }
.entry-content { font-size: 17px; line-height: 1.8; color: #404856; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content img { border-radius: var(--mft-radius-sm); margin: 1.5em 0; }
.entry-content blockquote {
	border-left: 4px solid var(--mft-blue); margin: 1.5em 0; padding: 4px 0 4px 32px;
	color: var(--mft-heading); font-size: 19px;
}
.entry-content a { text-decoration: underline; }
.entry-footer { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--mft-border); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* WordPress core/alignment */
.alignwide { width: min(1100px, 100%); margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.alignleft  { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--mft-muted); }
.sticky, .bypostauthor { display: block; }
.wp-block-button__link { border-radius: var(--mft-radius-pill); }

/* Comments */
.comments-area { max-width: 760px; margin: 64px auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--mft-border); }
.comment-author { font-weight: 600; color: var(--mft-heading); font-family: var(--mft-font-head); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1px solid var(--mft-border); border-radius: var(--mft-radius-sm);
	padding: 16px 16px; font-family: var(--mft-font-body); font-size: 15px; margin-bottom: 16px;
}

/* Page title (generic) */
.section-title { margin-bottom: 32px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--mft-navy); color: #C7D2DC; }
.site-footer a { color: #C7D2DC; }
.site-footer a:hover { color: #fff; }
.site-footer__top { padding: 64px 0 32px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand__lockup { margin-bottom: 16px; }
.footer-brand__icon { display: block; width: 58px; height: auto; margin: 0 0 8px; }
.footer-brand__logo { font-family: var(--mft-font-head); font-weight: 700; font-size: 24px; color: #fff; margin: 0 0 4px; }
.footer-brand__tagline { font-size: 13px; color: var(--mft-blue-light); margin: 0 0 16px; }
.footer-brand__address { font-size: 14px; line-height: 1.7; }
.footer-brand__address strong { color: #fff; display: block; }
.footer-col h3 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 16px; }
.footer-col a { font-size: 14px; }
.footer-social a { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 14px; }
.footer-social__badge {
	width: 32px; height: 32px; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(109, 190, 249, .15); border-radius: var(--mft-radius-sm);
}
.footer-social__badge img { width: 18px; height: 18px; display: block; }

.site-footer__mid {
	border-top: 1px solid rgba(255,255,255,.08);
	padding: 32px 0; display: flex; align-items: center; justify-content: space-between;
	gap: 32px; flex-wrap: wrap; font-size: 14px;
}
.quick-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.quick-links .label { color: #fff; font-weight: 600; }
.quick-links ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-contact { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-contact strong { color: #fff; }

.site-footer__disclaimer {
	border-top: 1px solid rgba(255,255,255,.08); padding: 32px 0; font-size: 12px; color: #8DA0AE; line-height: 1.7;
}
.site-footer__disclaimer strong { color: #C7D2DC; }
.site-footer__copyright { text-align: center; padding: 16px 0 32px; font-size: 13px; color: var(--mft-blue-light); }

/* =========================================================
   Widgets
   ========================================================= */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 18px; margin-bottom: 16px; }
.widget ul { list-style: none; padding: 0; }
.widget ul li { margin-bottom: 8px; }

/* =========================================================
   Single post: pale hero + 3-column body + sidebars
   ========================================================= */
.single-hero { background: var(--mft-blue-pale); padding: 64px 0 64px; }
.single-hero__inner {
	display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center;
}
.single-hero__title { font-size: clamp(30px, 4vw, 48px); font-weight: 700; color: var(--mft-heading); margin: 0 0 32px; }
.single-hero .post-byline { margin-top: 4px; }
.single-hero__media {
	border-radius: var(--mft-radius); overflow: hidden; aspect-ratio: 2 / 1;
	background: var(--mft-placeholder); position: relative;
}
.single-hero__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.single-layout {
	display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px;
	gap: 64px; align-items: start;
}
.single-layout.no-toc { grid-template-columns: minmax(0, 1fr) 220px; }
.single-layout .entry-content { max-width: none; margin: 0; }
.entry-content h2, .entry-content h3 { scroll-margin-top: 100px; }

/* Section labels ("Feature Post", "Recent Post", "Other Posts") */
.section-label {
	font-family: var(--mft-font-head); font-weight: 600; font-size: 18px;
	color: var(--mft-heading); margin: 0 0 16px;
}
.section-label--recent { margin-top: 64px; }

/* Table of contents */
.post-toc { position: sticky; top: 100px; align-self: start; }
.post-toc__title {
	font-family: var(--mft-font-head); font-weight: 600; color: var(--mft-heading);
	font-size: 15px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--mft-border);
}
.post-toc__nav a {
	display: block; font-size: 14px; color: var(--mft-muted);
	padding: 8px 16px; border-radius: var(--mft-radius-sm); line-height: 1.4; margin-bottom: 4px;
}
.post-toc__nav a:hover { color: var(--mft-heading); }
.post-toc__nav a.is-active { background: var(--mft-blue-pale); color: var(--mft-heading); font-weight: 500; }
.post-toc__nav a.is-sub { padding-left: 32px; font-size: 13px; }

/* Share sidebar */
.post-share { position: sticky; top: 100px; align-self: start; }
.post-share__title { font-family: var(--mft-font-head); font-weight: 600; color: var(--mft-heading); font-size: 15px; margin: 0 0 16px; }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.share-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0;
	border: 1px solid var(--mft-blue); border-radius: var(--mft-radius-sm);
	background: #fff; color: var(--mft-blue); cursor: pointer; transition: .2s;
}
.share-btn:hover, .share-btn.is-copied { background: var(--mft-blue); color: #fff; }
.share-btn svg { width: 18px; height: 18px; }
.post-share .featured-post__tags { margin: 0; }
.post-share__widgets { margin-top: 32px; }
.post-share__widgets .widget { margin-bottom: 32px; }
.post-share__widgets .widget-title { font-size: 15px; }

/* Related posts */
.related-posts { margin-top: 64px; }
.related-posts .section-title { font-size: 24px; margin-bottom: 32px; }

/* =========================================================
   Responsive
   ========================================================= */
/* FAQ accordion (per-post) */
.mft-faq { padding: 0 0 64px; }
.mft-faq__title {
	font-family: var(--mft-font-head); font-weight: 700; font-size: 28px;
	color: var(--mft-heading); margin: 0 0 24px;
}
.mft-faq__list { display: flex; flex-direction: column; gap: 16px; }
.mft-faq__item {
	background: var(--mft-white);
	border: 1px solid var(--mft-border);
	border-radius: var(--mft-radius-sm);
	overflow: hidden;
}
.mft-faq__q {
	list-style: none; cursor: pointer;
	font-family: var(--mft-font-head); font-weight: 600; font-size: 17px;
	color: var(--mft-heading);
	padding: 20px 24px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mft-faq__q::-webkit-details-marker { display: none; }
.mft-faq__q::after {
	content: ""; flex: none; width: 11px; height: 11px;
	border-right: 2px solid var(--mft-blue); border-bottom: 2px solid var(--mft-blue);
	transform: rotate(45deg); transition: transform .2s ease; margin-top: -5px;
}
.mft-faq__item[open] .mft-faq__q::after { transform: rotate(-135deg); margin-top: 3px; }
.mft-faq__a { padding: 0 24px 20px; color: var(--mft-text); }
.mft-faq__a p:last-child { margin-bottom: 0; }
.mft-faq__a a { color: var(--mft-blue); text-decoration: underline; }

/* Medium screens: narrow the container to ~1100px for more side space. */
@media (max-width: 1500px) {
	.mft-container { max-width: 1100px; }
}

@media (max-width: 1024px) {
	.single-hero__inner { grid-template-columns: 1fr; gap: 32px; }
	.single-layout, .single-layout.no-toc { display: block; }
	.post-toc { display: none; }
	.post-share { position: static; margin-top: 32px; }
	.post-share .share-buttons { margin-top: 8px; }
	.site-footer__top { grid-template-columns: 1fr 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.featured-post { grid-template-columns: 1fr; }
	.featured-post__media { min-height: 280px; }
}

@media (max-width: 782px) {
	.menu-toggle { display: block; z-index: 60; }
	.menu-toggle[aria-expanded="true"] { background: var(--mft-blue-pale); border-radius: var(--mft-radius-sm); }

	.header-cta { display: none; }

	.main-navigation {
		position: fixed; top: 80px; left: 0; right: 0; bottom: 0;
		background: #fff; z-index: 55;
		flex-direction: column; align-items: stretch;
		gap: 0; padding: 16px 0 0; overflow-y: auto;
		display: none;
	}
	.main-navigation.is-open { display: flex; }
	.main-navigation ul { flex-direction: column; gap: 0; width: 100%; }
	.main-navigation li { border-bottom: 1px solid var(--mft-border); }
	.main-navigation > ul > li > a {
		padding: 16px 0; margin: 0 32px; font-size: 18px; font-weight: 600;
		justify-content: space-between; width: auto;
	}
	.main-navigation ul ul {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 8px 16px; display: none;
	}
	.main-navigation ul ul.is-open { display: block; }
	.main-navigation li li { border-bottom: 0; }
	.main-navigation ul ul a { padding: 8px 32px; font-size: 16px; }

	.mobile-cta {
		display: block; margin-top: auto;
		background: var(--mft-blue-pale); padding: 32px;
	}
	.mobile-cta .mft-btn { width: 100%; padding: 16px; font-size: 16px; }

	.blog-toolbar__inner { flex-direction: column; align-items: stretch; }
	.search-form { max-width: none; flex: none; width: 100%; order: -1; }

	body.mft-menu-open { overflow: hidden; }
}

@media (max-width: 560px) {
	.post-grid { grid-template-columns: 1fr; }
	.site-footer__top { grid-template-columns: 1fr 1fr; }
	.featured-post__body { padding: 32px; }
	.page-hero { padding: 32px 0 64px; }
	.mft-pagination { justify-content: center; }
}

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

/* RTL basics */
.rtl .main-navigation ul ul { left: auto; right: 0; }
.rtl .search-form input[type="search"] { padding: 16px 64px 16px 16px; }
.rtl .search-form .search-icon { left: auto; right: 18px; }
.rtl .mft-pagination .page-numbers { margin-left: 0; margin-right: 8px; }
