/**
 * Blog & Static Pages Styles
 *
 * @package Emjoy
 */

/* Design-template layout: Blog and Article */
.em-blog-page,
.em-single-post {
    background: var(--em-paper, #fbf7ef);
}

.em-blog-page > .em-container,
.em-single-post > .em-container,
.em-post-article.em-container {
    width: min(100%, 1240px);
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}

.em-blog-breadcrumb,
.em-post-breadcrumb {
    display: flex;
    gap: 7px;
    padding-top: 40px;
    font-size: 13.5px;
    color: var(--em-ink-4);
}

.em-blog-breadcrumb {
    padding-top: 32px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.em-blog-breadcrumb a,
.em-post-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.em-blog-page-content { max-width: 920px; margin-top: 18px; color: var(--em-ink-2); font-size: 16px; line-height: 1.7; }
.em-blog-page-content > :first-child { margin-top: 0; }
.em-blog-page-content > :last-child { margin-bottom: 0; }
.em-blog-page-content img { max-width: 100%; height: auto; border-radius: var(--em-radius-xl); }

.em-blog-hero {
    padding-top: 0;
}

.em-blog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--em-yellow-100);
    color: var(--em-blue-900);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.em-blog-hero__eyebrow .em-icon { width: 14px; height: 14px; color: var(--em-yellow-700); }
.em-blog-hero__title { margin: 0; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.em-blog-hero__title span { color: var(--em-blue-700); }
.em-blog-hero__text { max-width: 560px; margin: 12px 0 0; color: var(--em-ink-3); font-size: 16px; line-height: 1.7; }
.em-blog-hero .em-blog-filters { justify-content: flex-start; margin: 26px 0 0; }
.em-blog-hero .em-blog-filter { padding: 10px 18px; font-weight: 600; }

.em-blog-featured { padding-top: 34px; }
.em-blog-featured__slide { display: none; }
.em-blog-featured__slide.is-active { display: block; animation: emBlogSlideIn .28s ease-out; }
.em-blog-featured__card { display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; border: 1px solid var(--em-line); border-radius: var(--em-radius-xl); background: var(--em-white); box-shadow: 0 4px 18px rgba(31,27,22,.05); color: inherit; text-decoration: none; }
.em-blog-featured__image { min-height: 340px; background: var(--em-paper-2); }
.em-blog-featured__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-blog-featured__content { display: grid; align-content: center; gap: 14px; padding: 36px; }
.em-blog-featured__label { color: var(--em-blue-700); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.em-blog-featured__content h2 { margin: 0; color: var(--em-ink); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.02em; }
.em-blog-featured__content p { margin: 0; color: var(--em-ink-3); font-size: 16px; line-height: 1.7; }
.em-blog-featured__meta { color: var(--em-ink-4); font-size: 13.5px; }
.em-blog-featured__link { display: inline-flex; align-items: center; gap: 8px; color: var(--em-blue-700); font-size: 14.5px; font-weight: 700; }
.em-blog-featured__link .em-icon { width: 16px; height: 16px; }

.em-blog-content-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.em-blog-content-layout.has-blog-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
.em-blog-content-main { min-width: 0; }
.em-blog-content-main .em-blog-list { padding-bottom: 88px; }
.em-blog-sidebar { display: flex; min-width: 0; flex-direction: column; gap: 24px; }
.em-blog-content-layout.has-featured-post .em-blog-sidebar { padding-top: 34px; }
.em-blog-promo-slider { position: relative; overflow: hidden; width: 100%; aspect-ratio: 3 / 4.45; border-radius: var(--em-radius-xl); background: var(--em-ink); box-shadow: var(--em-shadow-lg); }
.em-blog-promo-slider__slides, .em-blog-promo-slider__slide { position: absolute; inset: 0; }
.em-blog-promo-slider__slide { display: block; opacity: 0; visibility: hidden; transition: opacity .28s ease; }
.em-blog-promo-slider__slide.is-active { opacity: 1; visibility: visible; }
.em-blog-promo-slider__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.em-blog-promo-slider__shade { position: absolute; inset: 32% 0 0; background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.82) 35%, rgba(0,0,0,.98) 100%); }
.em-blog-promo-slider__content { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 20px 16px 14px; color: #fff; }
.em-blog-promo-slider__badge { display: inline-flex; padding: 5px 9px; border-radius: 4px; background: var(--em-red, #ff4961); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.em-blog-promo-slider__title { display: block; margin-top: 10px; color: #fff; font-size: 18px; font-weight: 800; line-height: 1.2; }
.em-blog-promo-slider__description { display: block; margin-top: 4px; color: rgba(255,255,255,.94); font-size: 13px; line-height: 1.4; }
.em-blog-promo-slider__button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 44px; padding: 10px 14px; border-radius: 8px; background: var(--em-red, #ff4961); color: #fff; font-size: 15px; font-weight: 800; text-align: center; }
.em-blog-promo-slider__footer { display: block; width: 100%; margin-top: 9px; color: rgba(255,255,255,.78); font-size: 10.5px; line-height: 1.3; text-align: center; }
.em-blog-promo-slider__arrow { position: absolute; top: 35%; z-index: 3; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); }
.em-blog-promo-slider__arrow--prev { left: 14px; }
.em-blog-promo-slider__arrow--next { right: 14px; }
.em-blog-promo-slider__arrow .em-icon-svg { width: 18px; min-width: 18px; height: 18px; max-width: none; flex: 0 0 18px; }
.em-blog-promo-slider__dots { position: absolute; z-index: 3; left: 50%; bottom: 106px; display: flex; align-items: center; gap: 6px; transform: translateX(-50%); }
.em-blog-promo-slider__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.45); }
.em-blog-promo-slider__dot.is-active { width: 22px; background: var(--em-red, #ff4961); }
.em-blog-sidebar__categories { padding: 22px 20px; border: 1px solid var(--em-line); border-radius: var(--em-radius-xl); background: var(--em-white); }
.em-blog-sidebar__categories h2 { margin: 0 0 14px; color: var(--em-ink); font-size: 18px; line-height: 1.3; }
.em-blog-sidebar__categories ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.em-blog-sidebar__categories li + li { border-top: 1px solid var(--em-line); }
.em-blog-sidebar__categories a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; color: var(--em-ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.em-blog-sidebar__categories a:hover { color: var(--em-blue-700); }
.em-blog-sidebar__categories small { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding-inline: 7px; border-radius: 999px; background: var(--em-blue-50); color: var(--em-blue-700); font-size: 12px; }
.em-blog-featured__navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.em-blog-featured__arrows, .em-blog-featured__dots { display: flex; align-items: center; gap: 8px; }
.em-blog-featured__arrow { width: 42px; height: 42px; padding: 0; border: 1px solid var(--em-line); border-radius: 50%; background: var(--em-white); color: var(--em-blue-700); }
.em-blog-featured__arrow:hover { border-color: var(--em-blue-700); background: var(--em-blue-50); }
.em-blog-featured__arrow .em-icon-svg { width: 20px; min-width: 20px; height: 20px; max-width: none; flex: 0 0 20px; }
.em-blog-featured__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--em-line); }
.em-blog-featured__dot.is-active { width: 28px; background: var(--em-blue-700); }
@keyframes emBlogSlideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

.em-blog-list { padding-top: 34px; padding-bottom: 88px; }
.em-posts-grid { gap: 24px; }
.em-post-card { border: 1px solid var(--em-line); box-shadow: 0 1px 3px rgba(31,27,22,.04); }
.em-post-card__image { display: block; aspect-ratio: 16 / 10; background: var(--em-paper-2); }
.em-post-card__category-label { display: block; margin-bottom: 8px; color: var(--em-blue-700); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.em-post-card__meta { margin: 0; }
.em-blog-zalo { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 40px; padding: 36px; border-radius: var(--em-radius-xl); background: var(--em-yellow-100); }
.em-blog-zalo > div { max-width: 480px; }
.em-blog-zalo strong { display: block; color: var(--em-blue-900); font-size: 24px; line-height: 1.3; }
.em-blog-zalo span { display: block; margin-top: 8px; color: var(--em-ink-2); font-size: 15.5px; line-height: 1.7; }
.em-blog-zalo .em-btn { flex: 0 0 auto; }
.em-blog-zalo .em-icon { width: 18px; height: 18px; }
.em-blog-list .navigation.pagination { margin: 38px 0 0; }
.em-blog-list .navigation.pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.em-blog-list .navigation.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; margin: 0; padding: 0 11px; border: 1px solid var(--em-line); border-radius: 10px; background: var(--em-white); color: var(--em-ink-2); font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease; }
.em-blog-list .navigation.pagination a.page-numbers:hover { border-color: var(--em-blue-700); color: var(--em-blue-700); transform: translateY(-1px); }
.em-blog-list .navigation.pagination .page-numbers.current { border-color: var(--em-blue-700); background: var(--em-blue-700); color: #fff; }
.em-blog-list .navigation.pagination .page-numbers.prev,
.em-blog-list .navigation.pagination .page-numbers.next { min-width: 42px; color: var(--em-blue-700); font-size: 18px; }
.em-blog-list .navigation.pagination .page-numbers.dots { border-color: transparent; background: transparent; }
.em-blog-empty { margin-top: 34px; margin-bottom: 88px; padding-block: 48px; border: 1px solid var(--em-line); border-radius: var(--em-radius-xl); background: var(--em-white); text-align: center; }

.em-single-post { padding: 0; }
.em-post-article { padding-top: 34px; }
.em-single-post .em-post-header { max-width: 760px; margin: 0; text-align: left; }
.em-single-post .em-post-header__category { margin: 0 0 0 12px; padding: 0; background: transparent; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.em-single-post .em-post-header__title { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; }
.em-single-post .em-post-header__meta { justify-content: flex-start; gap: 14px; margin-top: 18px; }
.em-post-header__avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--em-blue-700); color: #fff; font-size: 15px; font-weight: 700; }
.em-single-post .em-post-featured-image { margin: 28px 0 0; aspect-ratio: 16 / 9; border-radius: var(--em-radius-xl); background: var(--em-paper-2); }
.em-single-post .em-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.em-post-body-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr) 280px; align-items: start; gap: 24px; margin-top: 40px; }
.em-post-reading-column { min-width: 0; max-width: none; margin: 0; }
.em-post-toc { position: sticky; top: 132px; padding: 20px 16px; border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); background: var(--em-white); }
.em-post-toc__title { display: block; margin-bottom: 12px; color: var(--em-ink); font-size: 17px; }
.em-post-toc__list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.em-post-toc__list li { position: relative; padding-left: 20px; counter-increment: toc; }
.em-post-toc__list li::before { position: absolute; top: 1px; left: 0; content: counter(toc) '.'; color: var(--em-blue-700); font-size: 12px; font-weight: 700; }
.em-post-toc__list li.is-subheading { padding-left: 30px; }
.em-post-toc__list a { color: var(--em-ink-3); font-size: 13px; font-weight: 600; line-height: 1.45; text-decoration: none; }
.em-post-toc__list a:hover { color: var(--em-blue-700); }
.em-post-right-sidebar { display: flex; min-width: 0; flex-direction: column; gap: 24px; }
.em-post-right-sidebar .em-blog-promo-slider { width: 100%; }
.em-post-sidebar-related { overflow: hidden; padding: 20px 14px; border: 1px solid var(--em-line); border-radius: var(--em-radius-xl); background: var(--em-white); }
.em-post-sidebar-related h2 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--em-line); color: var(--em-ink); font-size: 18px; }
.em-post-sidebar-related__list { display: grid; gap: 0; }
.em-post-sidebar-related__item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
.em-post-sidebar-related__item + .em-post-sidebar-related__item { border-top: 1px dashed var(--em-line); }
.em-post-sidebar-related__image { display: block; overflow: hidden; width: 76px; height: 62px; border-radius: 9px; background: var(--em-paper-2); }
.em-post-sidebar-related__image img { width: 100%; height: 100%; object-fit: cover; }
.em-post-sidebar-related__item h3 { display: -webkit-box; overflow: hidden; margin: 0 0 7px; color: var(--em-blue-900); font-size: 14px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.em-post-sidebar-related__item h3 a { color: inherit; text-decoration: none; }
.em-post-sidebar-related__item time { color: var(--em-ink-4); font-size: 12px; }
.em-single-post .em-post-content { color: var(--em-ink-2); font-size: 17px; line-height: 1.75; }
.em-single-post .em-post-content > p:first-child { color: var(--em-ink); font-size: 18px; line-height: 1.65; }
.em-single-post .em-post-content h2 { margin: 36px 0 12px; font-size: 26px; line-height: 1.25; }
.em-single-post .em-post-content h2,
.em-single-post .em-post-content h3 { scroll-margin-top: 132px; }
.em-post-end-card { display: grid; gap: 16px; margin-top: 40px; padding: 30px; border: 1px solid var(--em-line); border-radius: var(--em-radius-xl); background: var(--em-white); }
.em-post-end-card strong { font-size: 22px; }
.em-post-end-card p { margin: 8px 0 0; color: var(--em-ink-3); font-size: 15.5px; line-height: 1.7; }
.em-post-end-card__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.em-single-post .em-post-end-card__actions .em-btn--primary,
.em-single-post .em-post-end-card__actions .em-btn--primary:hover,
.em-single-post .em-post-end-card__actions .em-btn--primary:focus-visible,
.em-single-post .em-post-end-card__actions .em-btn--secondary,
.em-single-post .em-post-end-card__actions .em-btn--secondary:hover,
.em-single-post .em-post-end-card__actions .em-btn--secondary:focus-visible { color: #fff; }
.em-single-post .em-post-share { margin-bottom: 0; }
.em-related-posts.em-container { max-width: 1240px; margin: 0 auto; padding: 72px 24px 88px; }
.em-related-posts__header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.em-related-posts__header h2 { margin: 0; font-size: 28px; }
.em-related-posts__header h2 span { color: var(--em-blue-700); font-style: italic; }
.em-related-posts__header a { color: var(--em-blue-700); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.em-post-comments { padding-bottom: 80px; }

@media (max-width: 767px) {
    .em-blog-page > .em-container,
    .em-single-post > .em-container,
    .em-post-article.em-container { padding-inline: 16px; }
    .em-blog-breadcrumb { padding-top: 24px; margin-bottom: 20px; }
    .em-blog-hero { padding-top: 0; }
    .em-blog-featured__card { grid-template-columns: 1fr; }
    .em-blog-featured__image { min-height: 230px; }
    .em-blog-featured__content { padding: 24px; }
    .em-posts-grid,
    .em-related-posts__grid { grid-template-columns: 1fr; }
    .em-blog-zalo { align-items: flex-start; padding: 26px 22px; flex-direction: column; }
    .em-blog-zalo .em-btn { width: 100%; }
    .em-post-breadcrumb { overflow: hidden; white-space: nowrap; }
    .em-post-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
    .em-post-reading-column { margin-top: 28px; }
    .em-post-end-card { padding: 22px; }
    .em-post-end-card__actions .em-btn { width: 100%; }
    .em-related-posts.em-container { padding: 52px 16px 64px; }
    .em-related-posts__header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 1100px) {
    .em-post-body-layout { grid-template-columns: minmax(0, 1fr) 280px; }
    .em-post-toc { position: static; grid-column: 1 / -1; }
    .em-post-toc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .em-post-body-layout { grid-template-columns: minmax(0, 1fr); }
    .em-post-toc__list { grid-template-columns: minmax(0, 1fr); }
    .em-post-right-sidebar { width: min(100%, 340px); margin-inline: auto; }
}

@media (max-width: 1024px) {
    .em-blog-content-layout.has-blog-sidebar { grid-template-columns: minmax(0, 1fr); }
    .em-blog-content-layout.has-featured-post .em-blog-sidebar { padding-top: 0; }
    .em-blog-sidebar { width: min(100%, 340px); margin: 0 auto 64px; }
}

/* ============================================
   BLOG ARCHIVE PAGE
   ============================================ */

.em-blog-page {
    padding: 40px 0 80px;
}

.em-blog-page .em-container {
    max-width: 1240px;
    margin: 0 auto;
    padding-inline: 24px;
}

/* Page Header */
.em-blog-header {
    text-align: center;
    margin-bottom: 48px;
}

.em-blog-header__title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.em-blog-header__subtitle {
    font-size: 16px;
    color: var(--em-ink-3);
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Category Filter */
.em-blog-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.em-blog-filter {
    padding: 10px 20px;
    border: 1px solid var(--em-line);
    border-radius: var(--em-radius-full);
    background: var(--em-white);
    font-size: 14px;
    font-weight: 500;
    color: var(--em-ink-2);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.em-blog-filter:hover {
    border-color: var(--em-blue-700);
    color: var(--em-blue-700);
}

.em-blog-filter.is-active {
    background: var(--em-blue-700);
    border-color: var(--em-blue-700);
    color: white;
}

/* Posts Grid */
.em-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Post Card */
.em-post-card {
    background: var(--em-white);
    border-radius: var(--em-radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}

.em-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.em-post-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--em-paper-2);
}

.em-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.em-post-card:hover .em-post-card__image img {
    transform: scale(1.05);
}

.em-post-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--em-white);
    border-radius: var(--em-radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--em-blue-700);
    text-decoration: none;
}

.em-post-card__content {
    padding: 20px;
}

.em-post-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--em-ink-4);
}

.em-post-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.em-post-card__meta-item .em-icon {
    width: 14px;
    height: 14px;
}

.em-post-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 10px;
    line-height: 1.4;
}

.em-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.em-post-card__title a:hover {
    color: var(--em-blue-700);
}

.em-post-card__excerpt {
    font-size: 14px;
    color: var(--em-ink-3);
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.em-post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.em-post-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.em-post-card__author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--em-paper);
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-post-card__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.em-post-card__author-avatar .em-icon {
    width: 16px;
    height: 16px;
    color: var(--em-ink-4);
}

.em-post-card__author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--em-ink);
}

.em-post-card__read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--em-blue-700);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.em-post-card__read-more:hover {
    color: var(--em-blue-900);
}

.em-post-card__read-more .em-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.15s;
}

.em-post-card:hover .em-post-card__read-more .em-icon {
    transform: translateX(4px);
}

/* Pagination */
.em-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.em-pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--em-line);
    border-radius: var(--em-radius-md);
    background: var(--em-white);
    font-size: 14px;
    font-weight: 600;
    color: var(--em-ink);
    text-decoration: none;
    transition: all 0.15s;
}

.em-pagination__item:hover {
    border-color: var(--em-blue-700);
    color: var(--em-blue-700);
}

.em-pagination__item.is-active {
    background: var(--em-blue-700);
    border-color: var(--em-blue-700);
    color: white;
}

.em-pagination__item.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.em-pagination__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-pagination__arrow .em-icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */

.em-single-post {
    padding: 32px 0 80px;
}

/* Post Header */
.em-post-header {
    text-align: center;
    margin-bottom: 32px;
}

.em-post-header__category {
    display: inline-block;
    padding: 8px 16px;
    background: var(--em-blue-50);
    border-radius: var(--em-radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--em-blue-700);
    text-decoration: none;
    margin-bottom: 16px;
}

.em-post-header__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.em-post-header__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--em-ink-4);
}

.em-post-header__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.em-post-header__meta-item .em-icon {
    width: 16px;
    height: 16px;
}

/* Featured Image */
.em-post-featured-image {
    margin-bottom: 40px;
    border-radius: var(--em-radius-xl);
    overflow: hidden;
}

.em-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.em-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--em-ink);
}

.em-post-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 40px 0 16px;
    letter-spacing: -0.01em;
}

.em-post-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 32px 0 12px;
}

.em-post-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 24px 0 8px;
}

.em-post-content p {
    margin: 0 0 20px;
}

.em-post-content .em-content-callout {
    margin: 20px 0 24px;
    padding: 16px 20px;
    background: var(--surface-brand-soft);
    border: 1px solid var(--em-blue-200);
    border-left: 4px solid var(--surface-brand);
    border-radius: var(--em-radius-md);
}

.em-post-content .em-content-callout p {
    margin: 0;
}

.em-post-content a {
    color: var(--em-blue-700);
    text-decoration: underline;
}

.em-post-content a:hover {
    color: var(--em-blue-900);
}

.em-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--em-radius-md);
    margin: 24px 0;
}

.em-single-post .em-post-content figure.wp-block-image {
    margin: 24px 0;
    padding: 8px;
    border: 1px solid #d5d9df;
    border-radius: var(--em-radius-lg);
    background-color: #f3f4f6 !important;
}

.em-single-post .em-post-content figure.wp-block-image img {
    display: block;
    margin: 0 auto;
}

.em-single-post .em-post-content figure.wp-block-image figcaption {
    margin: 8px 4px 2px;
}

.em-post-content ul,
.em-post-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.em-post-content li {
    margin-bottom: 8px;
}

.em-post-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--em-paper);
    border-left: 4px solid var(--em-blue-700);
    border-radius: 0 var(--em-radius-md) var(--em-radius-md) 0;
    font-style: italic;
    color: var(--em-ink-2);
}

.em-post-content blockquote p:last-child {
    margin-bottom: 0;
}

.em-post-content pre {
    margin: 24px 0;
    padding: 20px;
    background: var(--em-ink);
    color: #f8f8f2;
    border-radius: var(--em-radius-md);
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.em-post-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
    background: var(--em-paper);
    padding: 2px 6px;
    border-radius: 4px;
}

.em-post-content pre code {
    background: none;
    padding: 0;
}

/* Post Share */
.em-post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid var(--em-line);
    border-bottom: 1px solid var(--em-line);
    margin: 40px 0;
}

.em-post-share__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--em-ink);
}

.em-post-share__buttons {
    display: flex;
    gap: 8px;
}

.em-post-share__category {
    margin-left: auto;
    color: var(--em-ink-3);
    font-size: 14px;
}

.em-post-share__category strong {
    color: var(--em-ink);
}

.em-post-share__category a {
    color: var(--em-blue-700);
    font-weight: 600;
    text-decoration: none;
}

.em-post-share__category a:hover {
    text-decoration: underline;
}

.em-post-share__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--em-line);
    border-radius: var(--em-radius-md);
    color: var(--em-ink-3);
    text-decoration: none;
    transition: all 0.15s;
}

.em-post-share__btn:hover {
    border-color: var(--em-blue-700);
    color: var(--em-blue-700);
}

.em-post-share__btn .em-icon {
    width: 20px;
    height: 20px;
}

/* Post Navigation */
.em-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.em-post-nav__item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--em-paper);
    border-radius: var(--em-radius-lg);
    text-decoration: none;
    transition: all 0.15s;
}

.em-post-nav__item:hover {
    background: var(--em-paper-2);
}

.em-post-nav__item--next {
    justify-content: flex-end;
    text-align: right;
}

.em-post-nav__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--em-white);
    border-radius: var(--em-radius-md);
    flex-shrink: 0;
}

.em-post-nav__icon .em-icon {
    width: 20px;
    height: 20px;
    color: var(--em-blue-700);
}

.em-post-nav__label {
    font-size: 12px;
    color: var(--em-ink-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.em-post-nav__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--em-ink);
    line-height: 1.4;
}

/* Related Posts */
.em-related-posts {
    margin-top: 48px;
}

.em-related-posts__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 24px;
}

.em-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Comments */
.em-comments {
    margin-top: 48px;
}

.em-comments__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 24px;
}

/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */

.em-search-page {
    padding: 40px 0 80px;
}

.em-search-page .em-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.em-search-header {
    margin-bottom: 32px;
}

.em-search-header__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 8px;
}

.em-search-header__title span {
    color: var(--em-blue-700);
}

.em-search-header__form {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.em-search-header__input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--em-line);
    border-radius: var(--em-radius-lg);
    font-size: 16px;
}

.em-search-header__input:focus {
    outline: none;
    border-color: var(--em-blue-700);
}

.em-search-header__btn {
    padding: 16px 24px;
    background: var(--em-blue-700);
    color: white;
    border: none;
    border-radius: var(--em-radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.em-search-header__btn:hover {
    background: var(--em-blue-900);
}

.em-search-header__btn .em-icon {
    width: 20px;
    height: 20px;
}

.em-search-results {
    margin-top: 32px;
}

.em-search-results__count {
    font-size: 15px;
    color: var(--em-ink-3);
    margin-bottom: 24px;
}

.em-search-results__count strong {
    color: var(--em-ink);
}

/* ============================================
   STATIC PAGES - COMMON
   ============================================ */

.em-static-page {
    padding: 48px 0 80px;
}

.em-static-page .em-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Page Header */
.em-page-header {
    text-align: center;
    margin-bottom: 48px;
}

.em-page-header__title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.em-page-header__subtitle {
    font-size: 17px;
    color: var(--em-ink-3);
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Content */
.em-page-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--em-ink);
}

.em-page-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 40px 0 16px;
}

.em-page-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 32px 0 12px;
}

.em-page-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 24px 0 8px;
}

.em-page-content p {
    margin: 0 0 20px;
}

.em-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--em-radius-md);
    margin: 24px 0;
}

.em-page-content ul,
.em-page-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.em-page-content li {
    margin-bottom: 8px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.em-about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.em-about-hero__image {
    border-radius: var(--em-radius-xl);
    overflow: hidden;
}

.em-about-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

.em-about-hero__content h2 {
    font-size: 32px;
    margin-top: 0;
}

.em-about-values {
    margin: 64px 0;
}

.em-about-values__title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 40px;
}

.em-about-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.em-about-value-card {
    background: var(--em-white);
    border-radius: var(--em-radius-xl);
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.em-about-value-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--em-blue-50);
    border-radius: var(--em-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-about-value-card__icon .em-icon {
    width: 28px;
    height: 28px;
    color: var(--em-blue-700);
}

.em-about-value-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 8px;
}

.em-about-value-card__text {
    font-size: 14px;
    color: var(--em-ink-3);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.em-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.em-contact-info {
    background: var(--em-white);
    border-radius: var(--em-radius-xl);
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.em-contact-info__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 24px;
}

.em-contact-info__item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.em-contact-info__item:last-child {
    margin-bottom: 0;
}

.em-contact-info__icon {
    width: 48px;
    height: 48px;
    background: var(--em-blue-50);
    border-radius: var(--em-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.em-contact-info__icon .em-icon {
    width: 22px;
    height: 22px;
    color: var(--em-blue-700);
}

.em-contact-info__label {
    font-size: 13px;
    color: var(--em-ink-4);
    margin-bottom: 4px;
}

.em-contact-info__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--em-ink);
}

.em-contact-info__value a {
    color: inherit;
    text-decoration: none;
}

.em-contact-info__value a:hover {
    color: var(--em-blue-700);
}

.em-contact-form {
    background: var(--em-white);
    border-radius: var(--em-radius-xl);
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.em-contact-form__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 24px;
}

.em-contact-form__field {
    margin-bottom: 20px;
}

.em-contact-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--em-ink);
    margin-bottom: 8px;
}

.em-contact-form__input,
.em-contact-form__textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--em-line);
    border-radius: var(--em-radius-md);
    font-size: 15px;
    background: var(--em-white);
}

.em-contact-form__input:focus,
.em-contact-form__textarea:focus {
    outline: none;
    border-color: var(--em-blue-700);
}

.em-contact-form__textarea {
    min-height: 140px;
    resize: vertical;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.em-empty-state {
    text-align: center;
    padding: 80px 24px;
}

.em-empty-state__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: var(--em-paper);
    border-radius: var(--em-radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-empty-state__icon .em-icon {
    width: 44px;
    height: 44px;
    color: var(--em-ink-4);
}

.em-empty-state__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--em-ink);
    margin: 0 0 10px;
}

.em-empty-state__text {
    font-size: 15px;
    color: var(--em-ink-3);
    margin: 0 0 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1023px) {
    .em-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .em-related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .em-about-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .em-about-hero__image {
        order: -1;
    }

    .em-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .em-posts-grid {
        grid-template-columns: 1fr;
    }

    .em-related-posts__grid {
        grid-template-columns: 1fr;
    }

    .em-about-values__grid {
        grid-template-columns: 1fr;
    }

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

    .em-search-header__form {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .em-blog-header {
        margin-bottom: 32px;
    }

    .em-post-header__meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Combined product and blog search */
.em-combined-search { background: var(--em-paper); }
.em-combined-search > .em-container { width: min(100%, 1240px); max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.em-combined-search__header { padding-top: 40px; }
.em-combined-search__form { display: flex; align-items: center; gap: 12px; max-width: 700px; }
.em-combined-search__input-wrap { position: relative; flex: 1; }
.em-combined-search__input-wrap .em-icon { position: absolute; top: 50%; left: 16px; width: 20px; height: 20px; color: var(--em-ink-4); transform: translateY(-50%); }
.em-combined-search__input-wrap input { width: 100%; height: 48px; padding: 0 16px 0 48px; border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); background: var(--em-white); color: var(--em-ink); font-size: 15px; }
.em-combined-search__input-wrap input:focus { outline: 2px solid var(--em-blue-100); border-color: var(--em-blue-700); }
.em-combined-search__form .em-btn { min-width: 100px; height: 48px; }
.em-combined-search__header h1 { margin: 28px 0 0; color: var(--em-ink); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.em-combined-search__header > p { margin: 8px 0 0; color: var(--em-ink-3); font-size: 15.5px; }
.em-combined-search__body { padding-top: 32px; padding-bottom: 88px; }
.em-search-section + .em-search-section { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--em-line); }
.em-search-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.em-search-section__heading span { display: block; margin-bottom: 5px; color: var(--em-blue-700); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.em-search-section__heading h2 { margin: 0; color: var(--em-ink); font-size: 28px; }
.em-search-section__heading h2 em { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 27px; margin-left: 6px; padding-inline: 7px; border-radius: 999px; background: var(--em-blue-50); color: var(--em-blue-700); font-size: 13px; font-style: normal; vertical-align: middle; }
.em-search-section__heading > a { color: var(--em-blue-700); font-size: 14px; font-weight: 700; text-decoration: none; }
.em-search-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.em-search-product { overflow: hidden; border: 1px solid var(--em-line); border-radius: var(--em-radius-xl); background: var(--em-white); transition: transform .2s, box-shadow .2s; }
.em-search-product:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(22,21,19,.08); }
.em-search-product__image { display: block; aspect-ratio: 1 / 1.08; overflow: hidden; background: var(--em-paper-2); }
.em-search-product__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.em-search-product:hover .em-search-product__image img { transform: scale(1.04); }
.em-search-product__image > span,
.em-search-post__image > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--em-blue-700); }
.em-search-product__image .em-icon,
.em-search-post__image .em-icon { width: 34px; height: 34px; }
.em-search-product__content { padding: 18px; }
.em-search-product__category { color: var(--em-blue-700); font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.em-search-product h3 { margin: 7px 0 12px; font-size: 16px; line-height: 1.4; }
.em-search-product h3 a { color: var(--em-ink); text-decoration: none; }
.em-search-product__price { color: var(--em-blue-700); font-size: 17px; font-weight: 700; }
.em-search-product__price del { margin-right: 6px; color: var(--em-ink-4); font-size: 13px; font-weight: 400; }
.em-search-products .em-search-product__price ins { text-decoration: none; }
.em-search-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.em-search-post { overflow: hidden; border: 1px solid var(--em-line); border-radius: var(--em-radius-xl); background: var(--em-white); }
.em-search-post__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--em-paper-2); }
.em-search-post__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.em-search-post__content { padding: 20px; }
.em-search-post__content > span { color: var(--em-blue-700); font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.em-search-post h3 { margin: 8px 0 10px; font-size: 17px; line-height: 1.4; }
.em-search-post h3 a { color: var(--em-ink); text-decoration: none; }
.em-search-post p { margin: 0 0 14px; color: var(--em-ink-3); font-size: 14px; line-height: 1.65; }
.em-search-post small { color: var(--em-ink-4); font-size: 13px; }
.em-search-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.em-search-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding-inline: 10px; border: 1px solid var(--em-line); border-radius: var(--em-radius-md); background: var(--em-white); color: var(--em-ink); text-decoration: none; }
.em-search-pagination .page-numbers.current { border-color: var(--em-blue-700); background: var(--em-blue-700); color: #fff; }
.em-search-empty { margin-top: 32px; margin-bottom: 88px; padding-block: 64px; border: 1px solid var(--em-line); border-radius: var(--em-radius-xl); background: var(--em-white); text-align: center; }
.em-search-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; background: var(--em-blue-50); color: var(--em-blue-700); }
.em-search-empty__icon .em-icon { width: 32px; height: 32px; }
.em-search-empty h2 { margin: 22px 0 0; font-size: 26px; }
.em-search-empty > p { max-width: 520px; margin: 12px auto 0; color: var(--em-ink-3); font-size: 16px; line-height: 1.7; }
.em-search-empty > div { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.em-search-empty aside { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--em-line); }
.em-search-empty aside strong { color: var(--em-ink-4); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.em-search-empty aside nav { display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.em-search-empty aside a { padding: 9px 16px; border: 1px solid var(--em-line); border-radius: 999px; color: var(--em-ink-2); font-size: 14px; text-decoration: none; }

@media (max-width: 1023px) {
    .em-search-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .em-search-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .em-combined-search > .em-container { padding-inline: 16px; }
    .em-search-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .em-search-posts { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .em-combined-search__form { align-items: stretch; flex-direction: column; }
    .em-combined-search__form .em-btn { width: 100%; }
    .em-search-section__heading { align-items: flex-start; flex-direction: column; }
    .em-search-product__content { padding: 14px; }
    .em-search-product h3 { font-size: 14px; }
    .em-search-empty { padding: 48px 22px; }
    .em-search-empty > div .em-btn { width: 100%; }
}

/* Keep the design-template rules above the legacy blog rules in control. */
.em-blog-page,
.em-single-post {
    padding-top: 0;
}

.em-single-post > .em-container,
.em-single-post .em-post-article.em-container,
.em-single-post .em-related-posts.em-container,
.em-single-post .em-post-comments.em-container {
    max-width: 1240px;
}

@media (max-width: 640px) {
    .em-single-post .em-post-header__meta {
        flex-direction: row;
        gap: 14px;
    }

    .em-post-share {
        flex-wrap: wrap;
    }

    .em-post-share__category {
        flex-basis: 100%;
        margin-left: 0;
    }
}

/* Contact page - design template */
.em-contact-page { background: var(--em-paper); }
.em-contact-page > .em-container { width: min(100%, 1240px); max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.em-contact-breadcrumb { display: flex; gap: 7px; padding-top: 26px; color: var(--em-ink-4); font-size: 13.5px; }
.em-contact-breadcrumb a { color: inherit; text-decoration: none; }
.em-contact-hero { padding-top: 20px; padding-bottom: 24px; }
.em-contact-hero__eyebrow { display: block; margin-bottom: 10px; color: var(--em-blue-700); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.em-contact-hero h1 { margin: 0; color: var(--em-ink); font-size: clamp(30px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
.em-contact-hero h1 span { color: var(--em-blue-700); }
.em-contact-hero p { max-width: 620px; margin: 12px 0 0; color: var(--em-ink-3); font-size: 16px; line-height: 1.7; }
.em-contact-channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-bottom: 24px; }
.em-contact-channel { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 22px; border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); background: var(--em-white); box-shadow: 0 1px 3px rgba(22,21,19,.04); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.em-contact-channel:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22,21,19,.08); }
.em-contact-channel__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--em-blue-50); color: var(--em-blue-700); }
.em-contact-channel__icon .em-icon { width: 20px; height: 20px; }
.em-contact-channel b { color: var(--em-ink-4); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.em-contact-channel strong { color: var(--em-ink); font-size: 17px; line-height: 1.35; }
.em-contact-channel small { color: var(--em-ink-3); font-size: 14px; line-height: 1.6; }
.em-contact-main { display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; gap: 40px; padding-top: 40px; padding-bottom: 88px; }
.em-contact-request,
.em-contact-studio { border: 1px solid var(--em-line); border-radius: var(--em-radius-xl); background: var(--em-white); }
.em-contact-request { padding: 32px; }
.em-contact-request h2,
.em-contact-studio h2,
.em-contact-hours h2,
.em-contact-faq h2 { margin: 0; color: var(--em-ink); font-size: 26px; letter-spacing: -.01em; }
.em-contact-request__intro { margin: 8px 0 24px; color: var(--em-ink-3); font-size: 15.5px; line-height: 1.65; }
.em-contact-request__form { display: grid; gap: 16px; }
.em-contact-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.em-contact-form-notice { margin-bottom: 18px; padding: 14px 16px; border: 1px solid; border-radius: var(--em-radius-md); font-size: 14px; font-weight: 600; }
.em-contact-form-notice.is-success { border-color: #9bd2b1; background: #edf9f2; color: #176b3b; }
.em-contact-form-notice.is-error { border-color: #efb4b0; background: #fff1f0; color: #a1261e; }
.em-contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.em-contact-form__field { display: grid; gap: 8px; margin: 0; color: var(--em-ink); font-size: 14px; font-weight: 600; }
.em-contact-form__field i { color: #d82c20; font-style: normal; }
.em-contact-form__field input,
.em-contact-form__field select,
.em-contact-form__field textarea { width: 100%; min-height: 44px; padding: 11px 14px; border: 1px solid var(--em-line); border-radius: var(--em-radius-md); background: var(--em-white); color: var(--em-ink); font: inherit; font-weight: 400; }
.em-contact-form__field textarea { resize: vertical; }
.em-contact-form__field input:focus,
.em-contact-form__field select:focus,
.em-contact-form__field textarea:focus { outline: 2px solid var(--em-blue-100); border-color: var(--em-blue-700); }
.em-contact-form__field small { color: var(--em-ink-4); font-size: 12.5px; font-weight: 400; }
.em-contact-upload { position: relative; display: flex; min-height: 120px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 18px; border: 1px dashed var(--em-line); border-radius: var(--em-radius-lg); text-align: center; cursor: pointer; }
.em-contact-upload .em-icon { width: 24px; height: 24px; color: var(--em-blue-700); }
.em-contact-upload strong { font-size: 14px; }
.em-contact-upload span { color: var(--em-ink-4); font-size: 12.5px; }
.em-contact-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.em-contact-consent { display: flex; align-items: center; gap: 10px; color: var(--em-ink-2); font-size: 14px; cursor: pointer; }
.em-contact-consent input { width: 18px; height: 18px; accent-color: var(--em-blue-700); }
.em-contact-request__form > .em-btn { justify-self: start; min-width: 220px; }
.em-contact-request__form > .em-btn .em-icon { width: 17px; height: 17px; }
.em-contact-sidebar { display: grid; gap: 24px; }
.em-contact-studio { overflow: hidden; }
.em-contact-studio > img { display: block; width: 100%; height: 240px; object-fit: cover; }
.em-contact-studio > div { display: grid; gap: 14px; padding: 24px; }
.em-contact-studio h2,
.em-contact-hours h2,
.em-contact-faq h2 { font-size: 19px; }
.em-contact-studio p { margin: 0; color: var(--em-ink-2); font-size: 15.5px; line-height: 1.7; }
.em-contact-studio small { color: var(--em-ink-3); font-size: 14.5px; line-height: 1.7; }
.em-contact-studio__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.em-contact-studio__actions .em-icon { width: 16px; height: 16px; }
.em-contact-hours { display: grid; gap: 14px; padding: 28px; border-radius: var(--em-radius-xl); background: var(--em-blue-900); color: #fff; }
.em-contact-hours h2 { color: #fff; }
.em-contact-hours > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.8); font-size: 15px; }
.em-contact-hours > div strong { color: #fff; }
.em-contact-hours small { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.6; }
.em-contact-faq h2 { margin-bottom: 14px; }
.em-contact-faq details { border: 1px solid var(--em-line); border-radius: var(--em-radius-lg); background: var(--em-white); }
.em-contact-faq details + details { margin-top: 8px; }
.em-contact-faq summary { padding: 15px 18px; color: var(--em-ink); font-weight: 600; cursor: pointer; }
.em-contact-faq details p { margin: 0; padding: 0 18px 16px; color: var(--em-ink-3); font-size: 14px; line-height: 1.65; }

@media (max-width: 1023px) {
    .em-contact-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .em-contact-main { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .em-contact-page > .em-container { padding-inline: 16px; }
    .em-contact-channels,
    .em-contact-form__row { grid-template-columns: 1fr; }
    .em-contact-main { padding-top: 24px; padding-bottom: 64px; }
    .em-contact-request { padding: 22px; }
    .em-contact-request__form > .em-btn { width: 100%; }
    .em-contact-studio__actions .em-btn { width: 100%; }
}
