/* =============================================================
   Page & Post Layout Styles — Maynard Electrical
   ============================================================= */

/* ---- Shared: Page Hero ---- */
.mec-page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  background: #1a2e4a;
}

.mec-page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.mec-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,46,74,0.55) 0%,
    rgba(26,46,74,0.85) 100%
  );
}

.mec-page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mec-page-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0 0;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* Breadcrumb */
.mec-breadcrumb ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.mec-breadcrumb li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mec-breadcrumb li + li::before {
  content: '›';
  color: rgba(255,255,255,0.40);
  font-size: 1rem;
}

.mec-breadcrumb li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mec-breadcrumb li a:hover {
  color: #6aaa2a;
}

/* ---- Post hero extras ---- */
.mec-post-hero { min-height: 360px; }

.mec-post-hero__cat {
  display: inline-block;
  margin: 16px 0 10px;
  padding: 4px 14px;
  background: #6aaa2a;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mec-post-hero__cat:hover { background: #5a9020; color: #fff; }

.mec-post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.70);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  align-items: center;
}

.mec-post-hero__meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mec-post-hero__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #6aaa2a;
  object-fit: cover;
}

/* ---- Two-column layout ---- */
.mec-page-layout {
  background: #f6f8fa;
  padding: 56px 0 72px;
}

.mec-page-layout__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ---- Article ---- */
.mec-article {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(26,46,74,0.08);
  overflow: hidden;
}

.mec-article__thumb {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}

.mec-article__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mec-article__body {
  padding: 40px 44px 48px;
}

/* ---- Prose styles (article content) ---- */
.mec-prose h2,
.mec-prose h3,
.mec-prose h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1a2e4a;
  margin: 1.8em 0 0.6em;
  line-height: 1.3;
}

.mec-prose h2 { font-size: 1.5rem; border-left: 4px solid #6aaa2a; padding-left: 14px; }
.mec-prose h3 { font-size: 1.2rem; }
.mec-prose h4 { font-size: 1.05rem; }

.mec-prose p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #3a4655;
  margin: 0 0 1.2em;
}

.mec-prose ul,
.mec-prose ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}

.mec-prose li {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #3a4655;
  margin-bottom: 0.4em;
}

.mec-prose a {
  color: #6aaa2a;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.mec-prose a:hover { color: #5a9020; }

.mec-prose blockquote {
  border-left: 4px solid #6aaa2a;
  margin: 1.6em 0;
  padding: 14px 20px;
  background: rgba(106,170,42,0.06);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #3a4655;
}

.mec-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}

.mec-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.4em 0;
}

.mec-prose th {
  background: #1a2e4a;
  color: #ffffff;
  padding: 10px 14px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.mec-prose td {
  padding: 10px 14px;
  border-bottom: 1px solid #e4eaf1;
  color: #3a4655;
}

.mec-prose tr:nth-child(even) td { background: #f6f8fa; }

/* ---- Post tags ---- */
.mec-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 24px 44px;
  border-top: 1px solid #e4eaf1;
}

.mec-post-tags__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7a8d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mec-post-tag {
  padding: 4px 12px;
  background: #f0f4f8;
  border: 1px solid #d8e2ec;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a2e4a;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mec-post-tag:hover {
  background: #6aaa2a;
  border-color: #6aaa2a;
  color: #ffffff;
}

/* ---- Author box ---- */
.mec-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 44px;
  border-top: 1px solid #e4eaf1;
  background: #f6f8fa;
}

.mec-author-box__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #6aaa2a;
  object-fit: cover;
  flex-shrink: 0;
}

.mec-author-box__label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7a8d;
  margin-bottom: 4px;
}

.mec-author-box__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a2e4a;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.mec-author-box__name:hover { color: #6aaa2a; }

.mec-author-box__bio {
  font-size: 0.88rem;
  color: #6b7a8d;
  line-height: 1.6;
  margin: 0;
}

/* ---- Prev / Next navigation ---- */
.mec-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px 44px;
  border-top: 1px solid #e4eaf1;
}

.mec-post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: #f6f8fa;
  border: 1.5px solid #e4eaf1;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mec-post-nav__item:hover {
  border-color: #6aaa2a;
  box-shadow: 0 4px 16px rgba(106,170,42,0.12);
  background: #ffffff;
}

.mec-post-nav__item--next { text-align: right; }

.mec-post-nav__dir {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6aaa2a;
}

.mec-post-nav__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a2e4a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Comments ---- */
.mec-comments {
  padding: 28px 44px 40px;
  border-top: 1px solid #e4eaf1;
}

.mec-comments .comment-reply-title,
.mec-comments #reply-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 20px;
}

.mec-comments input,
.mec-comments textarea {
  border: 1.5px solid #d8e2ec;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  width: 100%;
  transition: border-color 0.2s ease;
}

.mec-comments input:focus,
.mec-comments textarea:focus {
  outline: none;
  border-color: #6aaa2a;
  box-shadow: 0 0 0 3px rgba(106,170,42,0.12);
}

.mec-comments .submit {
  background: #6aaa2a;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mec-comments .submit:hover {
  background: #5a9020;
  transform: translateY(-1px);
}

/* ---- Sidebar ---- */
.mec-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 88px;
}

.mec-sidebar-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(26,46,74,0.08);
  border: 1.5px solid #e4eaf1;
}

.mec-sidebar-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a2e4a;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #6aaa2a;
}

.mec-sidebar-card--cta {
  background: #1a2e4a;
  border-color: #1a2e4a;
}

.mec-sidebar-card--cta h3 {
  color: #ffffff;
  border-bottom-color: #6aaa2a;
}

.mec-sidebar-card--cta p {
  color: #b0c4d8;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 16px;
}

.mec-sidebar-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mec-sidebar-btn:last-child { margin-bottom: 0; }

.mec-sidebar-btn--green {
  background: #6aaa2a;
  color: #ffffff;
}

.mec-sidebar-btn--green:hover {
  background: #5a9020;
  color: #ffffff;
  transform: translateY(-1px);
}

.mec-sidebar-btn--outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.40);
}

.mec-sidebar-btn--outline:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.80);
  color: #ffffff;
}

/* Sidebar service links */
.mec-sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mec-sidebar-links li {
  border-bottom: 1px solid #f0f4f8;
}

.mec-sidebar-links li:last-child { border-bottom: none; }

.mec-sidebar-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a2e4a;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.mec-sidebar-links li a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-top: 2px solid #6aaa2a;
  border-right: 2px solid #6aaa2a;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.mec-sidebar-links li a:hover {
  color: #6aaa2a;
  gap: 12px;
}

/* Trust badges */
.mec-sidebar-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  padding: 16px;
}

.mec-sidebar-badges h3 { display: none; }

.mec-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 6px;
  background: #f6f8fa;
  border-radius: 8px;
  border: 1px solid #e4eaf1;
}

.mec-badge__num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a2e4a;
}

.mec-badge__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7a8d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .mec-page-layout__inner {
    grid-template-columns: 1fr;
  }

  .mec-page-sidebar {
    position: static;
  }

  .mec-sidebar-badges {
    grid-template-columns: repeat(3, 1fr);
  }

  .mec-post-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mec-article__body,
  .mec-post-tags,
  .mec-author-box,
  .mec-post-nav,
  .mec-comments {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mec-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mec-page-hero { min-height: 220px; padding-bottom: 32px; }
  .mec-post-hero { min-height: 300px; }
}

/* =============================================================
   ARCHIVE / SEARCH — Post Grid
   ============================================================= */

.mec-archive-layout { background: #f6f8fa; }

.mec-archive-hero__label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #6aaa2a;
  background: rgba(106,170,42,0.15);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.mec-archive-hero__desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin: 10px 0 0;
  max-width: 560px;
  line-height: 1.6;
}

.mec-post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.mec-post-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #e4eaf1;
  box-shadow: 0 2px 12px rgba(26,46,74,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mec-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26,46,74,0.13);
  border-color: #6aaa2a;
}

.mec-post-card__img-wrap {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
  background: #1a2e4a;
}

.mec-post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mec-post-card:hover .mec-post-card__img {
  transform: scale(1.05);
}

.mec-post-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #1a2e4a 0%, #2a4a74 100%);
}

.mec-post-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: #6aaa2a;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 20px;
  z-index: 1;
}

.mec-post-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mec-post-card__meta {
  display: flex;
  gap: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7a8d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.mec-post-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

.mec-post-card__title a {
  color: #1a2e4a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mec-post-card__title a:hover { color: #6aaa2a; }

.mec-post-card__excerpt {
  font-size: 0.88rem;
  color: #6b7a8d;
  line-height: 1.7;
  margin: 0 0 16px;
  flex: 1;
}

.mec-post-card__link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6aaa2a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  transition: gap 0.2s ease, color 0.2s ease;
}

.mec-post-card__link:hover { color: #5a9020; gap: 10px; }

.mec-pagination { margin-top: 8px; }

.mec-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mec-pagination .page-numbers li a,
.mec-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid #e4eaf1;
  background: #ffffff;
  color: #1a2e4a;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mec-pagination .page-numbers li a:hover {
  background: #6aaa2a;
  border-color: #6aaa2a;
  color: #ffffff;
}

.mec-pagination .page-numbers li span.current {
  background: #1a2e4a;
  border-color: #1a2e4a;
  color: #ffffff;
}

.mec-pagination .page-numbers li .prev,
.mec-pagination .page-numbers li .next {
  width: auto;
  padding: 0 16px;
}

.mec-no-results {
  text-align: center;
  padding: 64px 32px;
  background: #ffffff;
  border-radius: 12px;
  border: 1.5px solid #e4eaf1;
}

.mec-no-results__icon { font-size: 3rem; display: block; margin-bottom: 16px; }

.mec-no-results h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2e4a;
  margin: 0 0 12px;
}

.mec-no-results p {
  color: #6b7a8d;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 24px;
}

.mec-no-results__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.mec-no-results__links a,
.mec-btn-link {
  display: inline-block;
  padding: 9px 20px;
  background: #f0f4f8;
  border: 1.5px solid #d8e2ec;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a2e4a;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mec-no-results__links a:hover,
.mec-btn-link:hover {
  background: #6aaa2a;
  border-color: #6aaa2a;
  color: #ffffff;
}

.mec-search-form {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #d8e2ec;
  background: #ffffff;
}

.mec-search-form__input {
  flex: 1;
  padding: 13px 18px;
  border: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #1a2e4a;
  outline: none;
}

.mec-search-form__btn {
  padding: 13px 24px;
  background: #6aaa2a;
  color: #ffffff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mec-search-form__btn:hover { background: #5a9020; }

.mec-sidebar-search {
  display: flex;
  border-radius: 7px;
  overflow: hidden;
  border: 1.5px solid #e4eaf1;
}

.mec-sidebar-search__input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  color: #1a2e4a;
  outline: none;
}

.mec-sidebar-search__btn {
  padding: 10px 14px;
  background: #6aaa2a;
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mec-sidebar-search__btn:hover { background: #5a9020; }

.mec-sidebar-count {
  margin-left: auto;
  font-size: 0.72rem;
  background: #f0f4f8;
  color: #6b7a8d;
  padding: 2px 8px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  flex-shrink: 0;
}

.mec-sidebar-recent {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mec-sidebar-recent__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mec-sidebar-recent__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 7px;
  overflow: hidden;
  display: block;
}

.mec-sidebar-recent__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mec-sidebar-recent__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mec-sidebar-recent__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a2e4a;
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.mec-sidebar-recent__title:hover { color: #6aaa2a; }

.mec-sidebar-recent__date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.70rem;
  color: #6b7a8d;
  font-weight: 600;
}

/* =============================================================
   404 PAGE
   ============================================================= */

.mec-404-wrap {
  background: #f6f8fa;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.mec-404 {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.mec-404__graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.mec-404__num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  color: #1a2e4a;
  line-height: 1;
}

.mec-404__bolt {
  font-size: clamp(4rem, 12vw, 7rem);
  animation: mecPulse 1.6s ease-in-out infinite;
  line-height: 1;
}

@keyframes mecPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.1); opacity: 0.8; }
}

.mec-404__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: #1a2e4a;
  margin: 0 0 12px;
}

.mec-404__desc {
  color: #6b7a8d;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 32px;
}

.mec-404__search {
  display: flex;
  max-width: 480px;
  margin: 0 auto 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #d8e2ec;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(26,46,74,0.08);
}

.mec-404__search-input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #1a2e4a;
  outline: none;
}

.mec-404__search-btn {
  padding: 14px 24px;
  background: #6aaa2a;
  color: #ffffff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mec-404__search-btn:hover { background: #5a9020; }

.mec-404__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.mec-404__link {
  padding: 10px 22px;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #d8e2ec;
  background: #ffffff;
  color: #1a2e4a;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mec-404__link:hover {
  background: #1a2e4a;
  border-color: #1a2e4a;
  color: #ffffff;
}

.mec-404__link--primary {
  background: #6aaa2a;
  border-color: #6aaa2a;
  color: #ffffff;
}

.mec-404__link--primary:hover {
  background: #5a9020;
  border-color: #5a9020;
}

.mec-404__services h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7a8d;
  margin: 0 0 16px;
}

.mec-404__service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mec-404__service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: #ffffff;
  border: 1.5px solid #e4eaf1;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a2e4a;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.mec-404__service-card span { font-size: 1.8rem; }

.mec-404__service-card:hover {
  border-color: #6aaa2a;
  box-shadow: 0 4px 16px rgba(106,170,42,0.14);
  color: #6aaa2a;
}

@media (max-width: 960px) {
  .mec-post-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .mec-post-grid { grid-template-columns: 1fr; }
  .mec-404__service-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   BLOG / HOME.PHP — Hero + Category Filter + 3-col grid
   ============================================================= */

.mec-blog-hero {
  position: relative;
  background: #1a2e4a;
  padding: 64px 0 56px;
  overflow: hidden;
}

.mec-blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,46,74,0.97) 0%, rgba(26,46,74,0.80) 100%);
  z-index: 1;
}

.mec-blog-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

.mec-blog-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.15;
  margin: 12px 0 16px;
}

.mec-blog-hero__title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: #6aaa2a;
  border-radius: 2px;
  margin-top: 16px;
}

.mec-blog-hero__sub {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 0;
  max-width: 480px;
}

/* Featured post card inside hero */
.mec-blog-hero__featured {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mec-blog-hero__featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.32);
}

.mec-blog-hero__featured-img {
  height: 200px;
  overflow: hidden;
}

.mec-blog-hero__featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mec-blog-hero__featured:hover .mec-blog-hero__featured-img img {
  transform: scale(1.04);
}

.mec-blog-hero__featured-body {
  padding: 20px 22px 24px;
  position: relative;
}

.mec-blog-hero__featured-body .mec-post-card__cat {
  position: static;
  display: inline-block;
  margin-bottom: 10px;
}

.mec-blog-hero__featured-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2e4a;
  line-height: 1.35;
  margin: 0 0 8px;
}

.mec-blog-hero__featured-exc {
  font-size: 0.85rem;
  color: #6b7a8d;
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mec-blog-hero__featured-meta {
  display: flex;
  gap: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.70rem;
  font-weight: 600;
  color: #9aabb8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Category filter pills */
.mec-cat-filter {
  background: #ffffff;
  border-bottom: 1px solid #e4eaf1;
  position: sticky;
  top: 72px;
  z-index: 100;
}

.mec-cat-filter__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 56px;
}

.mec-cat-filter__inner::-webkit-scrollbar { display: none; }

.mec-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #3a4655;
  background: #f0f4f8;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mec-cat-pill:hover {
  background: rgba(106,170,42,0.10);
  color: #6aaa2a;
  border-color: #6aaa2a;
}

.mec-cat-pill.is-active {
  background: #6aaa2a;
  color: #ffffff;
  border-color: #6aaa2a;
}

.mec-cat-pill__count {
  font-size: 0.68rem;
  background: rgba(0,0,0,0.10);
  padding: 1px 6px;
  border-radius: 10px;
}

.mec-cat-pill.is-active .mec-cat-pill__count {
  background: rgba(255,255,255,0.25);
}

/* 3-column post grid variant */
.mec-post-grid--3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Blog responsive */
@media (max-width: 1024px) {
  .mec-blog-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mec-blog-hero__featured { max-width: 480px; }
  .mec-post-grid--3 { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 640px) {
  .mec-blog-hero { padding: 48px 0 40px; }
  .mec-post-grid--3 { grid-template-columns: 1fr !important; }
  .mec-cat-filter { top: 64px; }
}

/* =============================================================
   SINGLE POST — Reading Progress + Share + Back Link
   ============================================================= */

/* Reading progress bar */
.mec-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #6aaa2a 0%, #8acc44 100%);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* Back link + share row */
.mec-post-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 44px;
  border-bottom: 1px solid #e4eaf1;
  background: #f9fafb;
}

.mec-post-back__link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6aaa2a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.mec-post-back__link:hover { color: #5a9020; }

/* Inline share (top of post) */
.mec-share--inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mec-share__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7a8d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mec-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  color: #ffffff;
}

.mec-share__btn:hover { transform: translateY(-2px); opacity: 0.88; color: #ffffff; }
.mec-share__btn--fb { background: #1877f2; }
.mec-share__btn--tw { background: #000000; }
.mec-share__btn--li { background: #0a66c2; }
.mec-share__btn--wa { background: #25d366; }

/* Bottom share block */
.mec-share--bottom {
  padding: 28px 44px;
  border-top: 1px solid #e4eaf1;
  background: #f9fafb;
}

.mec-share--bottom .mec-share__label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.mec-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mec-share--bottom .mec-share__btn {
  width: auto;
  height: auto;
  padding: 10px 18px;
  gap: 8px;
  font-size: 0.82rem;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
}

.mec-share--bottom .mec-share__btn span {
  font-weight: 800;
}

/* Sidebar share */
.mec-sidebar-share .mec-sidebar-share__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mec-sidebar-share .mec-share__btn {
  width: 100%;
  height: auto;
  padding: 10px 16px;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
}

@media (max-width: 640px) {
  .mec-post-back { padding: 14px 20px; }
  .mec-share--bottom { padding: 20px 20px; }
}
