/*
Theme Name: MyPartyPlan Blog
Theme URI: https://mypartyplan.com/
Author: Digital Dhanu
Author URI: https://digitaldhanu.com/
Description: Blog theme for MyPartyPlan — dark party-themed design with the "Birthday parties, planned in minutes" hero + package search bar on every page, a post grid on the home page, and single posts with content on the left and an enquiry form, categories and tags on the right.
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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mypartyplan-blog
Tags: blog, dark, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --mpp-bg: #0f1324;
  --mpp-bg-soft: #141931;
  --mpp-card: #171c33;
  --mpp-card-2: #1d2340;
  --mpp-line: rgba(255, 255, 255, 0.08);
  --mpp-line-strong: rgba(255, 255, 255, 0.14);
  --mpp-text: #f8fafc;
  --mpp-text-2: #d7dce8;
  --mpp-muted: #a3abc2;
  --mpp-muted-2: #7c859e;
  --mpp-rose: #f43f5e;
  --mpp-rose-2: #e11d48;
  --mpp-rose-soft: rgba(244, 63, 94, 0.14);
  --mpp-coral: #fb7185;
  --mpp-orange: #fb923c;
  --mpp-amber: #fbbf24;
  --mpp-violet: #8b5cf6;
  --mpp-white: #ffffff;
  --mpp-radius: 16px;
  --mpp-radius-sm: 10px;
  --mpp-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --mpp-container: 1180px;
  --mpp-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mpp-grad-hero: radial-gradient(900px 480px at 72% 8%, rgba(244, 63, 94, 0.22), transparent 62%),
    radial-gradient(700px 420px at 12% 88%, rgba(99, 102, 241, 0.18), transparent 60%),
    linear-gradient(108deg, #141a2d 0%, #1a1a35 46%, #3b1a3e 100%);
  --mpp-grad-cta: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --mpp-grad-sub: linear-gradient(90deg, #fb7185 0%, #fb923c 55%, #fbbf24 100%);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mpp-bg);
  color: var(--mpp-text-2);
  font-family: var(--mpp-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mpp-coral); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--mpp-white); }
h1, h2, h3, h4, h5, h6 { color: var(--mpp-text); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.015em; }
p { margin: 0 0 1.2em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--mpp-card); clip: auto !important; clip-path: none; color: var(--mpp-text);
  display: block; font-size: 14px; height: auto; left: 8px; padding: 12px 18px; top: 8px; width: auto; z-index: 100000;
  border-radius: 8px; box-shadow: var(--mpp-shadow);
}
.mpp-container { width: 100%; max-width: var(--mpp-container); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* ==========================================================================
   3. Header / navigation
   ========================================================================== */
.mpp-header {
  background: #121629;
  border-bottom: 1px solid var(--mpp-line);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  backdrop-filter: blur(10px);
}
.admin-bar .mpp-header { top: 32px; }
.mpp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.mpp-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--mpp-white); letter-spacing: -0.02em; }
.mpp-logo:hover { color: var(--mpp-white); }
.mpp-logo img { max-height: 40px; width: auto; }
.mpp-logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--mpp-grad-cta); display: inline-grid; place-items: center; font-size: 18px; }
.mpp-logo__accent { color: var(--mpp-rose); }
.mpp-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mpp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.mpp-nav li { position: relative; }
.mpp-nav a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--mpp-text-2); font-weight: 600; font-size: 15px; }
.mpp-nav a:hover, .mpp-nav .current-menu-item > a, .mpp-nav .current_page_item > a { color: var(--mpp-white); background: rgba(255, 255, 255, 0.07); }
.mpp-nav .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; display: none; flex-direction: column; gap: 2px;
  background: var(--mpp-card-2); border: 1px solid var(--mpp-line-strong); border-radius: 12px; padding: 8px; box-shadow: var(--mpp-shadow);
}
.mpp-nav li:hover > .sub-menu, .mpp-nav li:focus-within > .sub-menu { display: flex; }
.mpp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--mpp-radius-sm);
  font-weight: 700; font-size: 15px; border: 0; cursor: pointer; line-height: 1.2; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.mpp-btn--primary { background: var(--mpp-grad-cta); color: var(--mpp-white); box-shadow: 0 10px 24px rgba(244, 63, 94, 0.32); }
.mpp-btn--primary:hover { color: var(--mpp-white); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(244, 63, 94, 0.42); }
.mpp-btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--mpp-text); border: 1px solid var(--mpp-line-strong); }
.mpp-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--mpp-white); }
.mpp-btn--sm { padding: 8px 14px; font-size: 14px; }
.mpp-header .mpp-btn--primary { white-space: nowrap; }
.mpp-nav .mpp-nav__cta { display: none; }
.mpp-nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--mpp-line-strong); background: rgba(255, 255, 255, 0.05); color: var(--mpp-white); cursor: pointer; align-items: center; justify-content: center; }
.mpp-nav-toggle svg { width: 22px; height: 22px; }

/* ==========================================================================
   4. Hero + package search (appears on EVERY page)
   ========================================================================== */
.mpp-hero { position: relative; background: var(--mpp-grad-hero); color: var(--mpp-white); overflow: hidden; }
.mpp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--mpp-line); }
.mpp-hero__inner { max-width: 1060px; padding-top: 84px; padding-bottom: 56px; text-align: center; }
.mpp-hero__title { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; color: var(--mpp-white); margin: 0 0 14px; line-height: 1.1; }
.mpp-hero__subtitle {
  font-size: 28px; font-weight: 400; margin: 0 0 36px; line-height: 1.3;
  background: var(--mpp-grad-sub); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.mpp-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; }
.mpp-pill {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.13); color: #e8ebf5; font-weight: 600; font-size: 15px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.mpp-pill:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.26); transform: translateY(-1px); color: var(--mpp-white); }
.mpp-pill__emoji { font-size: 18px; line-height: 1; }
.mpp-search {
  display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr auto; align-items: stretch; gap: 0;
  background: var(--mpp-white); border-radius: 14px; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); text-align: left;
}
.mpp-search__field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 46px; border-right: 1px solid #e5e7eb; color: #111827; }
.mpp-search__field:nth-last-child(2) { border-right: 0; }
.mpp-search__field svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--mpp-rose); }
.mpp-search__field input, .mpp-search__field select {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #111827; font-size: 15px; font-weight: 500; padding: 8px 0;
  -webkit-appearance: none; appearance: none;
}
.mpp-search__field input::placeholder { color: #9ca3af; font-weight: 500; }
.mpp-search__field--select { position: relative; }
.mpp-search__field--select select { padding-right: 26px; cursor: pointer; }
.mpp-search__field--select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #6b7280; border-bottom: 2px solid #6b7280;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.mpp-search__submit { margin-left: 8px; padding: 0 22px; min-height: 46px; border-radius: 10px; }
.mpp-search__field input[type="date"] { color: #111827; }
.mpp-search__field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; position: absolute; left: 0; right: 0; width: 100%; height: 100%; cursor: pointer; }
.mpp-search__field--date { position: relative; }

/* ==========================================================================
   5. Sections, post grid, cards
   ========================================================================== */
.mpp-section { padding: 56px 0; }
.mpp-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.mpp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mpp-orange); margin-bottom: 8px; }
.mpp-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--mpp-grad-sub); border-radius: 2px; }
.mpp-section__title { font-size: 32px; margin: 0; }
.mpp-section__desc { color: var(--mpp-muted); margin: 6px 0 0; max-width: 560px; }
.mpp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mpp-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--mpp-line-strong); color: var(--mpp-text-2);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.mpp-chip:hover, .mpp-chip.is-active { background: var(--mpp-rose-soft); border-color: rgba(244, 63, 94, 0.5); color: var(--mpp-white); }
.mpp-chip__count { font-size: 11px; color: var(--mpp-muted-2); }
.mpp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mpp-card {
  position: relative; display: flex; flex-direction: column; background: var(--mpp-card); border: 1px solid var(--mpp-line); border-radius: var(--mpp-radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mpp-card:hover { transform: translateY(-4px); border-color: rgba(244, 63, 94, 0.45); box-shadow: var(--mpp-shadow); }
.mpp-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mpp-card-2); }
.mpp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mpp-card:hover .mpp-card__media img { transform: scale(1.05); }
.mpp-card__media--fallback { display: grid; place-items: center; font-size: 64px; position: relative; background: linear-gradient(135deg, #2b1b47 0%, #4a1942 55%, #7a2340 100%); }
.mpp-card__media--fallback.is-2 { background: linear-gradient(135deg, #16294d 0%, #1f3a6b 50%, #3a1f6b 100%); }
.mpp-card__media--fallback.is-3 { background: linear-gradient(135deg, #3c1d0f 0%, #7a2a1a 50%, #a73a3a 100%); }
.mpp-card__media--fallback::before, .mpp-article__media--fallback::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), transparent 42%), radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.12), transparent 40%); }
.mpp-card__media--fallback > span, .mpp-article__media--fallback > span { position: relative; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); }
.mpp-card__media--fallback.is-4 { background: linear-gradient(135deg, #0f3b3a 0%, #1b5e57 50%, #2b7a7b 100%); }
.mpp-card__badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: rgba(15, 19, 36, 0.78); color: var(--mpp-white); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px);
}
.mpp-card__badge:hover { background: var(--mpp-rose); border-color: var(--mpp-rose); }
.mpp-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mpp-card__title { font-size: 19px; margin: 0; line-height: 1.3; }
.mpp-card__title a { color: var(--mpp-text); }
.mpp-card__title a:hover { color: var(--mpp-coral); }
.mpp-card__excerpt { color: var(--mpp-muted); font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mpp-card__meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--mpp-muted-2); border-top: 1px solid var(--mpp-line); }
.mpp-card__meta span + span::before { content: "•"; margin: 0 6px 0 0; color: var(--mpp-muted-2); }
.mpp-card__more { color: var(--mpp-coral); font-weight: 600; margin-left: auto; font-size: 13px; }
.mpp-empty { padding: 60px 24px; text-align: center; background: var(--mpp-card); border: 1px dashed var(--mpp-line-strong); border-radius: var(--mpp-radius); }
.mpp-empty h2 { font-size: 24px; }

/* Pagination */
.mpp-pagination { margin-top: 40px; }
.mpp-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.mpp-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--mpp-line-strong); color: var(--mpp-text-2); font-weight: 600;
}
.mpp-pagination .page-numbers:hover { background: rgba(255, 255, 255, 0.12); color: var(--mpp-white); }
.mpp-pagination .page-numbers.current { background: var(--mpp-grad-cta); border-color: transparent; color: var(--mpp-white); }
.mpp-pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* ==========================================================================
   6. Single post + page layouts (content left, sidebar right)
   ========================================================================== */
.mpp-single { padding: 48px 0 72px; }
.mpp-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.mpp-article { min-width: 0; }
.mpp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mpp-muted-2); margin-bottom: 22px; }
.mpp-breadcrumb a { color: var(--mpp-muted); }
.mpp-breadcrumb a:hover { color: var(--mpp-white); }
.mpp-breadcrumb span.sep { opacity: .5; }
.mpp-article__head { margin-bottom: 26px; }
.mpp-badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--mpp-rose-soft); color: var(--mpp-coral); border: 1px solid rgba(244, 63, 94, 0.35); letter-spacing: .03em; text-transform: uppercase; }
.mpp-badge:hover { background: var(--mpp-rose); color: var(--mpp-white); }
.mpp-article__title { font-size: 40px; line-height: 1.12; margin: 14px 0 16px; }
.mpp-page .mpp-article__title { margin-top: 0; }
.mpp-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--mpp-muted); font-size: 14px; }
.mpp-article__author { display: inline-flex; align-items: center; gap: 10px; color: var(--mpp-text-2); font-weight: 600; }
.mpp-article__author img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--mpp-line-strong); }
.mpp-article__meta span.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--mpp-muted-2); display: inline-block; }
.mpp-article__media { margin: 0 0 30px; border-radius: var(--mpp-radius); overflow: hidden; border: 1px solid var(--mpp-line); background: var(--mpp-card-2); }
.mpp-article__media img { width: 100%; height: auto; }
.mpp-article__media figcaption { padding: 10px 14px; font-size: 13px; color: var(--mpp-muted-2); background: var(--mpp-card); }
.mpp-article__media--fallback { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; font-size: 90px; background: linear-gradient(135deg, #2b1b47 0%, #4a1942 55%, #7a2340 100%); }

/* Post content typography (Gutenberg + classic) */
.mpp-content { font-size: 17.5px; line-height: 1.8; color: var(--mpp-text-2); }
.mpp-content > * { margin-top: 0; margin-bottom: 1.35em; }
.mpp-content h2 { font-size: 29px; margin-top: 1.7em; padding-top: .2em; }
.mpp-content h3 { font-size: 23px; margin-top: 1.5em; }
.mpp-content h4 { font-size: 19px; margin-top: 1.3em; }
.mpp-content a { color: var(--mpp-coral); text-decoration: underline; text-decoration-color: rgba(251, 113, 133, 0.45); text-underline-offset: 3px; }
.mpp-content a:hover { color: var(--mpp-white); text-decoration-color: var(--mpp-white); }
.mpp-content ul, .mpp-content ol { padding-left: 1.4em; }
.mpp-content li { margin-bottom: .45em; }
.mpp-content li::marker { color: var(--mpp-rose); }
.mpp-content img, .mpp-content figure img, .mpp-content video, .mpp-content iframe { border-radius: 12px; }
.mpp-content figure { margin-left: 0; margin-right: 0; }
.mpp-content figcaption, .wp-caption-text, .mpp-content .wp-element-caption { font-size: 13.5px; color: var(--mpp-muted-2); text-align: center; margin-top: 8px; }
.mpp-content blockquote {
  margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--mpp-rose); background: var(--mpp-card); border-radius: 0 12px 12px 0; color: var(--mpp-text); font-size: 1.05em;
}
.mpp-content blockquote p:last-child { margin-bottom: 0; }
.mpp-content blockquote cite { display: block; margin-top: 8px; font-size: .85em; color: var(--mpp-muted); font-style: normal; }
.mpp-content pre { background: #0a0d1a; color: #e2e8f0; padding: 18px; border-radius: 12px; overflow: auto; font-size: 14px; border: 1px solid var(--mpp-line); }
.mpp-content code { background: rgba(255, 255, 255, 0.08); padding: .15em .4em; border-radius: 5px; font-size: .9em; }
.mpp-content pre code { background: transparent; padding: 0; }
.mpp-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mpp-content th, .mpp-content td { padding: 11px 13px; border: 1px solid var(--mpp-line-strong); text-align: left; }
.mpp-content th { background: var(--mpp-card-2); color: var(--mpp-text); }
.mpp-content hr { border: 0; border-top: 1px solid var(--mpp-line-strong); margin: 2em 0; }
.mpp-content .wp-block-button__link { background: var(--mpp-grad-cta); color: var(--mpp-white); border-radius: 10px; padding: 12px 22px; font-weight: 700; text-decoration: none; }
.mpp-content .wp-block-quote.is-style-large { font-size: 1.2em; }
.mpp-content .wp-block-gallery img { border-radius: 10px; }
.mpp-content .has-text-align-center { text-align: center; }
.mpp-content .wp-block-separator { border-top: 1px solid var(--mpp-line-strong); }
.mpp-content .wp-block-embed iframe { max-width: 100%; }
.mpp-content .alignleft { float: left; margin: .4em 1.6em 1em 0; }
.mpp-content .alignright { float: right; margin: .4em 0 1em 1.6em; }
.mpp-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.mpp-content .alignwide, .mpp-content .alignfull { max-width: 100%; }
.mpp-content::after { content: ""; display: table; clear: both; }
.page-links { margin: 20px 0; font-weight: 600; }
.page-links a, .page-links > span:not(.page-links-title) { display: inline-block; min-width: 34px; padding: 6px 10px; margin: 2px; text-align: center; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--mpp-line-strong); }

/* Article footer: tags + share */
.mpp-article__foot { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--mpp-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mpp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mpp-tags__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mpp-muted-2); margin-right: 4px; }
.mpp-tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--mpp-line-strong); color: var(--mpp-text-2); }
.mpp-tag::before { content: "#"; color: var(--mpp-orange); margin-right: 3px; }
.mpp-tag:hover { background: var(--mpp-rose-soft); border-color: rgba(244, 63, 94, 0.5); color: var(--mpp-white); }
.mpp-share { display: flex; align-items: center; gap: 8px; }
.mpp-share__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mpp-muted-2); margin-right: 4px; }
.mpp-share a, .mpp-share button {
  width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--mpp-line-strong); color: var(--mpp-text-2); cursor: pointer;
}
.mpp-share a:hover, .mpp-share button:hover { background: var(--mpp-rose); border-color: var(--mpp-rose); color: var(--mpp-white); }
.mpp-share svg { width: 18px; height: 18px; }

/* Prev / next */
.mpp-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.mpp-postnav a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--mpp-card); border: 1px solid var(--mpp-line); color: var(--mpp-text); }
.mpp-postnav a:hover { border-color: rgba(244, 63, 94, 0.5); }
.mpp-postnav small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mpp-muted-2); }
.mpp-postnav span { font-weight: 700; font-size: 15px; line-height: 1.35; }
.mpp-postnav a.next { text-align: right; }

/* Related */
.mpp-related { margin-top: 48px; }
.mpp-related .mpp-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mpp-related .mpp-card__title { font-size: 16px; }
.mpp-related .mpp-card__body { padding: 14px 16px 16px; }

/* ==========================================================================
   7. Sidebar (enquiry form, categories, tags, CTA, widgets)
   ========================================================================== */
.mpp-sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 92px; }
.admin-bar .mpp-sidebar { top: 124px; }
.mpp-widget { background: var(--mpp-card); border: 1px solid var(--mpp-line); border-radius: var(--mpp-radius); padding: 22px; }
.mpp-widget__title { font-size: 17px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.mpp-widget__title::after { content: ""; flex: 1; height: 1px; background: var(--mpp-line-strong); margin-left: 6px; }
.mpp-widget ul { list-style: none; margin: 0; padding: 0; }
.mpp-widget ul li { padding: 9px 0; border-bottom: 1px solid var(--mpp-line); }
.mpp-widget ul li:last-child { border-bottom: 0; }
.mpp-widget ul li a { color: var(--mpp-text-2); font-weight: 600; font-size: 14.5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mpp-widget ul li a:hover { color: var(--mpp-coral); }
.mpp-widget ul li a .count, .mpp-widget .mpp-count { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--mpp-muted); }
.mpp-widget .tagcloud, .mpp-widget .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.mpp-widget .tagcloud a, .mpp-widget .wp-block-tag-cloud a { font-size: 13px !important; display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--mpp-line-strong); color: var(--mpp-text-2); font-weight: 600; }
.mpp-widget .tagcloud a::before, .mpp-widget .wp-block-tag-cloud a::before { content: "#"; color: var(--mpp-orange); margin-right: 3px; }
.mpp-widget .tagcloud a:hover { background: var(--mpp-rose-soft); border-color: rgba(244, 63, 94, 0.5); color: var(--mpp-white); }
.mpp-widget .tag-link-count { display: none; }
.mpp-widget--form { border-color: rgba(244, 63, 94, 0.35); background: linear-gradient(180deg, rgba(244, 63, 94, 0.08), transparent 40%), var(--mpp-card); }
.mpp-widget--form .mpp-widget__title { font-size: 19px; }
.mpp-widget--form .mpp-widget__title::after { display: none; }
.mpp-widget__sub { color: var(--mpp-muted); font-size: 14px; margin: -6px 0 16px; }
.mpp-form { display: flex; flex-direction: column; gap: 12px; }
.mpp-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--mpp-muted); margin-bottom: 6px; letter-spacing: .02em; }
.mpp-form input, .mpp-form select, .mpp-form textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--mpp-line-strong); background: rgba(255, 255, 255, 0.05); color: var(--mpp-text); outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.mpp-form input:focus, .mpp-form select:focus, .mpp-form textarea:focus { border-color: var(--mpp-rose); box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2); }
.mpp-form input::placeholder, .mpp-form textarea::placeholder { color: var(--mpp-muted-2); }
.mpp-form textarea { min-height: 96px; resize: vertical; }
.mpp-form select option { color: #111827; }
.mpp-form input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }
.mpp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mpp-form .mpp-btn { width: 100%; padding: 13px 18px; }
.mpp-form__note { font-size: 12px; color: var(--mpp-muted-2); text-align: center; margin: 2px 0 0; }
.mpp-form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.mpp-alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.mpp-alert--ok { background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.45); color: #bbf7d0; }
.mpp-alert--err { background: rgba(244, 63, 94, 0.14); border: 1px solid rgba(244, 63, 94, 0.45); color: #fecdd3; }
/* Contact Form 7 inside the sidebar widget (same look as the built-in form) */
.mpp-form .wpcf7 { width: 100%; }
.mpp-form .wpcf7-form { display: flex; flex-direction: column; gap: 12px; }
.mpp-form .wpcf7-form p { margin: 0; }
.mpp-form .wpcf7-form br { display: none; }
.mpp-form .wpcf7-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--mpp-muted); margin-bottom: 6px; letter-spacing: .02em; }
.mpp-form .wpcf7-form-control-wrap { display: block; }
.mpp-form .wpcf7-form input[type="submit"], .mpp-form .wpcf7-form button[type="submit"], .mpp-form .wpcf7-submit {
  width: 100%; padding: 13px 18px; border-radius: var(--mpp-radius-sm); border: 0; cursor: pointer; font-weight: 700; font-size: 15px;
  background: var(--mpp-grad-cta); color: var(--mpp-white); box-shadow: 0 10px 24px rgba(244, 63, 94, 0.32); transition: transform .18s ease, box-shadow .18s ease;
}
.mpp-form .wpcf7-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(244, 63, 94, 0.42); }
.mpp-form .wpcf7-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.mpp-form .wpcf7-spinner { display: none; }
.mpp-form .wpcf7-form.submitting .wpcf7-spinner { display: block; margin: 8px auto 0; }
.mpp-form .wpcf7-textarea { height: 110px; min-height: 96px; }
.mpp-form .wpcf7-not-valid-tip { display: block; margin-top: 5px; font-size: 12.5px; color: #fecdd3; }
.mpp-form .wpcf7-not-valid { border-color: var(--mpp-rose) !important; }
.mpp-form .wpcf7-response-output { margin: 0 !important; padding: 12px 14px !important; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid var(--mpp-line-strong) !important; color: var(--mpp-text-2); }
.mpp-form .wpcf7-form.sent .wpcf7-response-output { background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.45) !important; color: #bbf7d0; }
.mpp-form .wpcf7-form.invalid .wpcf7-response-output, .mpp-form .wpcf7-form.failed .wpcf7-response-output, .mpp-form .wpcf7-form.aborted .wpcf7-response-output, .mpp-form .wpcf7-form.spam .wpcf7-response-output, .mpp-form .wpcf7-form.unaccepted .wpcf7-response-output { background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.45) !important; color: #fecdd3; }
.mpp-form .wpcf7-form input[type="checkbox"], .mpp-form .wpcf7-form input[type="radio"] { width: auto; margin-right: 6px; accent-color: var(--mpp-rose); }
.mpp-form .wpcf7-list-item { display: block; margin: 0 0 4px; }
.mpp-form .wpcf7-list-item label { display: inline; font-weight: 500; color: var(--mpp-text-2); font-size: 14px; }
.mpp-form .wpcf7-acceptance label { display: inline; }
.mpp-form .wpcf7-form .mpp-form__note { margin: 2px 0 0; }
.mpp-widget--cta { background: linear-gradient(135deg, #f97316 0%, #ef4444 55%, #e11d48 100%); border: 0; color: var(--mpp-white); text-align: center; }
.mpp-widget--cta .mpp-widget__title { color: var(--mpp-white); justify-content: center; }
.mpp-widget--cta .mpp-widget__title::after { display: none; }
.mpp-widget--cta p { color: rgba(255, 255, 255, 0.9); font-size: 14.5px; }
.mpp-widget--cta .mpp-btn { background: var(--mpp-white); color: var(--mpp-rose-2); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); width: 100%; }
.mpp-widget--cta .mpp-btn:hover { color: var(--mpp-rose-2); }
.mpp-widget--cta .mpp-widget__emoji { font-size: 40px; margin-bottom: 6px; }
.mpp-widget .mpp-recent { display: flex; flex-direction: column; gap: 12px; }
.mpp-widget .mpp-recent a { display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: center; color: var(--mpp-text-2); font-weight: 600; font-size: 14px; line-height: 1.35; }
.mpp-widget .mpp-recent a:hover { color: var(--mpp-coral); }
.mpp-widget .mpp-recent__thumb { width: 68px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--mpp-card-2); display: grid; place-items: center; font-size: 22px; }
.mpp-widget .mpp-recent small { display: block; color: var(--mpp-muted-2); font-weight: 500; font-size: 12px; margin-top: 2px; }
/* Default WP widgets */
.mpp-widget .wp-block-search__input, .mpp-widget .search-field { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--mpp-line-strong); background: rgba(255, 255, 255, 0.05); color: var(--mpp-text); }
.mpp-widget .wp-block-search__button, .mpp-widget .search-submit { background: var(--mpp-grad-cta); color: var(--mpp-white); border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.mpp-widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; border: 0 !important; padding: 0 !important; }
.mpp-widget .wp-block-heading, .mpp-widget .widget-title { font-size: 17px; margin: 0 0 14px; }

/* ==========================================================================
   8. Search form (search results page) & 404
   ========================================================================== */
.mpp-searchform { display: flex; gap: 10px; max-width: 560px; }
.mpp-searchform input { flex: 1; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--mpp-line-strong); background: rgba(255, 255, 255, 0.05); color: var(--mpp-text); outline: 0; }
.mpp-searchform input:focus { border-color: var(--mpp-rose); }
.mpp-404 { text-align: center; padding: 80px 0; }
.mpp-404 .mpp-404__code { font-size: 96px; font-weight: 800; line-height: 1; background: var(--mpp-grad-sub); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mpp-404 .mpp-searchform { margin: 24px auto 0; }

/* ==========================================================================
   9. Comments
   ========================================================================== */
.mpp-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--mpp-line); }
.mpp-comments__title { font-size: 22px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 44px; }
.comment-list .comment-body { background: var(--mpp-card); border: 1px solid var(--mpp-line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--mpp-text); }
.comment-list .comment-author img { border-radius: 50%; }
.comment-list .comment-metadata { font-size: 12.5px; color: var(--mpp-muted-2); margin: 4px 0 10px; }
.comment-list .comment-metadata a { color: var(--mpp-muted-2); }
.comment-list .reply a { font-size: 13px; font-weight: 700; color: var(--mpp-coral); }
.comment-list .bypostauthor > .comment-body { border-color: rgba(244, 63, 94, 0.4); }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comment-form p { margin: 0; }
.comment-form .comment-form-comment, .comment-form .comment-notes, .comment-form .form-submit, .comment-form .comment-form-cookies-consent, .comment-form .logged-in-as { grid-column: 1 / -1; }
.comment-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--mpp-muted); margin-bottom: 6px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--mpp-line-strong); background: rgba(255, 255, 255, 0.05); color: var(--mpp-text); outline: 0; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--mpp-rose); }
.comment-form .submit { background: var(--mpp-grad-cta); color: var(--mpp-white); border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 700; cursor: pointer; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form .comment-form-cookies-consent label { margin: 0; }
.comment-reply-title { font-size: 20px; }
.comment-reply-title small { font-size: 13px; margin-left: 8px; }
.comment-navigation { display: flex; justify-content: space-between; margin: 10px 0 20px; font-weight: 600; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.mpp-footer { background: #0b0e1c; border-top: 1px solid var(--mpp-line); padding: 56px 0 28px; margin-top: 24px; color: var(--mpp-muted); font-size: 14.5px; }
.mpp-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.mpp-footer__brand p { margin: 14px 0; max-width: 360px; }
.mpp-footer__addr { font-style: normal; line-height: 1.6; color: var(--mpp-muted); }
.mpp-footer__social { display: flex; gap: 8px; margin-top: 16px; }
.mpp-footer__social a { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--mpp-line-strong); color: var(--mpp-text-2); }
.mpp-footer__social a:hover { background: var(--mpp-rose); border-color: var(--mpp-rose); color: var(--mpp-white); }
.mpp-footer__social svg { width: 18px; height: 18px; }
.mpp-footer h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--mpp-text); margin-bottom: 14px; }
.mpp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mpp-footer ul a { color: var(--mpp-muted); }
.mpp-footer ul a:hover { color: var(--mpp-white); }
.mpp-footer__support { margin-top: 14px; font-size: 13px; color: var(--mpp-muted-2); line-height: 1.6; }
.mpp-footer__support strong { color: var(--mpp-text-2); }
.mpp-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--mpp-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: var(--mpp-muted-2); }
.mpp-footer__bottom .heart { color: var(--mpp-rose); }

/* Floating WhatsApp */
.mpp-wa { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); }
.mpp-wa:hover { color: #fff; transform: translateY(-2px); }
.mpp-wa svg { width: 28px; height: 28px; }

/* ==========================================================================
   11. WordPress required / helper classes
   ========================================================================== */
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13.5px; color: var(--mpp-muted-2); text-align: center; }
.sticky .mpp-card__badge::before { content: "📌 "; }
.gallery-caption { font-size: 13px; color: var(--mpp-muted-2); }
.bypostauthor { display: block; }
.post-password-form input[type="password"] { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--mpp-line-strong); background: rgba(255, 255, 255, 0.05); color: var(--mpp-text); }
.post-password-form input[type="submit"] { background: var(--mpp-grad-cta); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 700; }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .mpp-grid { grid-template-columns: repeat(2, 1fr); }
  .mpp-single__grid { grid-template-columns: 1fr; }
  .mpp-sidebar { position: static; }
  .mpp-footer__grid { grid-template-columns: 1fr 1fr; }
  .mpp-related .mpp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .mpp-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #121629; border-bottom: 1px solid var(--mpp-line-strong); padding: 12px 24px 18px; flex-direction: column; align-items: stretch; gap: 8px; }
  .mpp-nav.is-open { display: flex; }
  .mpp-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .mpp-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; }
  .mpp-nav-toggle { display: inline-flex; }
  .mpp-header .mpp-btn--primary { display: none; }
  .mpp-nav .mpp-nav__cta, .mpp-nav .mpp-nav__cta:hover { display: inline-flex; margin-top: 8px; padding: 11px 20px; color: var(--mpp-white); background: var(--mpp-grad-cta); }
  .mpp-hero__inner { padding-top: 56px; padding-bottom: 40px; }
  .mpp-hero__title { font-size: 34px; }
  .mpp-hero__subtitle { font-size: 21px; margin-bottom: 26px; }
  .mpp-pills { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mpp-search { grid-template-columns: 1fr 1fr; gap: 6px; }
  .mpp-search__field { border-right: 0; border-bottom: 1px solid #e5e7eb; }
  .mpp-search__field--q { grid-column: 1 / -1; }
  .mpp-search__submit { grid-column: 1 / -1; margin: 6px 0 0; }
  .mpp-section { padding: 40px 0; }
  .mpp-section__title { font-size: 26px; }
  .mpp-article__title { font-size: 30px; }
  .mpp-content { font-size: 16.5px; }
}
@media (max-width: 600px) {
  .mpp-container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .mpp-grid { grid-template-columns: 1fr; gap: 18px; }
  .mpp-pills { grid-template-columns: 1fr; }
  .mpp-search { grid-template-columns: 1fr; }
  .mpp-search__field { border-bottom: 1px solid #e5e7eb; }
  .mpp-hero__title { font-size: 29px; }
  .mpp-hero__subtitle { font-size: 18px; }
  .mpp-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .mpp-related .mpp-grid { grid-template-columns: 1fr; }
  .mpp-postnav { grid-template-columns: 1fr; }
  .mpp-postnav a.next { text-align: left; }
  .mpp-form__row { grid-template-columns: 1fr; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-list .children { margin-left: 16px; }
  .mpp-article__foot { flex-direction: column; align-items: flex-start; }
}
