/*
Theme Name:  Copy.com.vn eMenu Theme
Theme URI:   https://dev.com.vn
Description:  Theme dịch vụ copy mọi thứ: tranh, 3D, app, content, trade, makeup, thời trang, âm nhạc và công thức ẩm thực
Version:  1.2.3
Author:      dev.com.vn
Author URI:  https://dev.com.vn
Text Domain:  copycomvn-eemnu-theme
Tags:  copy, clone, 3d, content, trade, makeup, app, art
*/

/* Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --em-primary:      #0b0b0f;
  --em-primary-dark:      #000000;
  --em-accent:      #f59e0b;
  --em-green:      #16a34a;
  --em-bg:      #fff7ed;
  --em-card-bg:      #ffffff;
  --em-text:         #1a1a1a;
  --em-muted:        #777;
  --em-border:      #fed7aa;
  --em-radius:       16px;
  --em-shadow:      0 4px 24px rgba(245,158,11,0.15);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--em-bg);
  color: var(--em-text);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a   { color: var(--em-primary); }

/* ── Header ── */
.em-header {
  background: #fff;
  border-bottom: 2px solid var(--em-border);
  position: sticky; top: 0; z-index: 100;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.em-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.em-logo-icon { font-size: 26px; }
.em-logo-text { font-size: 21px; font-weight: 600; color: var(--em-primary); letter-spacing: -0.5px; }
.em-logo-text span { color: var(--em-accent); }
.em-nav { display: flex; gap: 28px; list-style: none; }
.em-nav a { text-decoration: none; color: var(--em-muted); font-weight: 600; font-size: 14px; transition: color .2s; }
.em-nav a:hover, .em-nav .current-menu-item a { color: var(--em-primary); }
.em-header-cta {
  background: var(--em-primary); color: #fff; border: none;
  padding: 9px 22px; border-radius: 50px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background .2s; font-family: 'Inter', sans-serif;
  text-decoration: none; display: inline-block;
}
.em-header-cta:hover { background: var(--em-primary-dark); color: #fff; }

.em-header-hamburger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 8px; }
@media (max-width: 768px) {
  .em-header { padding: 0 16px; }
  .em-nav, .em-header-cta { display: none; }
  .em-header-hamburger { display: block; }
}

/* ── Hero ── */
.em-hero {
  background: linear-gradient(135deg,#050505 0%,#111827 55%,#92400e 100%);
  padding: 74px 32px;
  position: relative;
  overflow: hidden;
}
.em-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.em-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.em-hero__content { text-align: left; }
.em-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.em-hero__title {
  max-width: 640px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}
.em-hero__sub {
  max-width: 540px;
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
  font-weight: 500;
}
.em-hero__panel {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(93,31,0,0.18);
  backdrop-filter: blur(10px);
}
.em-hero .em-search-form { position: relative; z-index: 1; }
.em-hero .em-search-wrapper {
  max-width: none;
  margin: 0;
  box-shadow: 0 10px 34px rgba(37,99,235,0.14);
  border: 1px solid var(--em-border);
}
.em-hero__chips {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.em-quick-chip {
  background: #fff;
  border: 1.5px solid #bfdbfe;
  color: var(--em-primary);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
.em-quick-chip:hover, .em-quick-chip.active {
  background: var(--em-primary);
  color: #fff;
  border-color: var(--em-primary);
}
@media (max-width: 900px) {
  .em-hero { padding: 56px 18px; }
  .em-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .em-hero__content { text-align: center; }
  .em-hero__title, .em-hero__sub { margin-left: auto; margin-right: auto; }
  .em-hero__chips { justify-content: center; }
}

/* ── Container ── */
.em-container { max-width: 1200px; margin: 0 auto; padding: 52px 32px; }
@media (max-width: 768px) { .em-container { padding: 32px 16px; } }

.em-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.em-section-h2     { font-size: 24px; font-weight: 600; }
.em-section-h2 span { color: var(--em-primary); }
.em-see-all { color: var(--em-primary); font-weight: 600; font-size: 14px; text-decoration: none; }
.em-see-all:hover { text-decoration: underline; }

/* ── Footer ── */
.em-footer { background: #1a1a1a; color: #ccc; padding: 48px 32px 24px; }
.em-footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; margin-bottom: 40px;
}
@media (max-width: 900px) { .em-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .em-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.em-footer__logo-text { font-size: 22px; font-weight: 600; color: var(--em-primary); margin-bottom: 10px; }
.em-footer__logo-text span { color: var(--em-accent); }
.em-footer__desc { font-size: 14px; line-height: 1.65; margin-bottom: 16px; color: #999; }
.em-footer__socials { display: flex; gap: 10px; }
.em-footer__social { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #ccc; text-decoration: none; font-size: 16px; transition: background .2s; }
.em-footer__social:hover { background: var(--em-primary); color: #fff; }
.em-footer-col h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.em-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.em-footer-col li a { color: #999; text-decoration: none; font-size: 14px; transition: color .2s; }
.em-footer-col li a:hover { color: var(--em-accent); }
.em-footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #666; }

/* ── Content (pages / posts) ── */
.em-content-wrap { max-width: 900px; margin: 0 auto; }
.em-content { background: #fff; border-radius: var(--em-radius); padding: 36px 40px; box-shadow: var(--em-shadow); }
@media (max-width: 600px) { .em-content { padding: 24px 18px; } }
.em-content h1,.em-content h2,.em-content h3 { color: var(--em-text); margin-bottom: 12px; font-weight: 600; }
.em-content p  { margin-bottom: 16px; line-height: 1.75; }
.em-content ul,.em-content ol { padding-left: 24px; margin-bottom: 16px; }
.em-content li { margin-bottom: 6px; }

/* ── Pagination ── */
.em-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.em-pagination a, .em-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--em-border);
  font-weight: 600; font-size: 14px; text-decoration: none; color: var(--em-text); transition: all .2s;
}
.em-pagination .current, .em-pagination a:hover { background: var(--em-primary); color: #fff; border-color: var(--em-primary); }

/* ── Section alt background ── */
.em-section-alt {
  background: #fff;
  border-top: 2px solid var(--em-border);
  border-bottom: 2px solid var(--em-border);
}
.em-section-alt .em-container { padding-top: 44px; padding-bottom: 44px; }


/* ── Update v1.0.4: compact hero + inline SVG section icons ── */
.em-hero__title {
  font-size: clamp(24px, 3.5vw, 41px);
  line-height: 1.12;
  letter-spacing: -0.7px;
}
.em-section-h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.em-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--em-primary);
  flex: 0 0 34px;
}
.em-section-icon .em-svg-icon {
  width: 19px;
  height: 19px;
  display: block;
}
@media (max-width: 900px) {
  .em-hero__title { font-size: clamp(23px, 7vw, 34px); }
  .em-section-header { align-items: flex-start; gap: 12px; }
}

/* ── Update v1.0.5: header search + fixed mobile menu ── */
.em-header {
  gap: 16px;
}
.em-header nav {
  flex: 1 1 auto;
  min-width: 0;
}
.em-header .em-nav {
  justify-content: center;
  gap: 20px;
}
.em-header-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: clamp(190px, 23vw, 310px);
  min-width: 190px;
  background: #f5f9ff;
  border: 1.5px solid var(--em-border);
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
  transition: border-color .2s, box-shadow .2s;
}
.em-header-search:focus-within {
  border-color: var(--em-primary);
  box-shadow: 0 4px 18px rgba(232,66,10,.12);
}
.em-header-search__icon {
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}
.em-header-search__input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--em-text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.em-header-search__input::placeholder {
  color: #a7a7a7;
  font-weight: 400;
}
.em-header-search__btn {
  border: 0;
  border-radius: 999px;
  background: var(--em-primary);
  color: #fff;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 12px;
}
.em-header-search__btn:hover {
  background: var(--em-primary-dark);
}
.em-mobile-header-search {
  display: none;
}

@media (max-width: 1180px) {
  .em-header .em-nav { gap: 14px; }
  .em-header-search { width: 220px; min-width: 180px; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .em-header-search { display: none; }
}
@media (max-width: 768px) {
  .em-header {
    height: 64px;
    padding: 0 16px;
    overflow: visible;
  }
  .em-header nav {
    position: absolute;
    top: 122px;
    left: 0;
    right: 0;
    z-index: 70;
    min-width: 0;
    pointer-events: none;
  }
  .em-header .em-nav {
    display: none !important;
    flex-direction: column !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    background: #fff;
    padding: 8px 16px 14px;
    border-bottom: 1.5px solid var(--em-border);
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
    list-style: none;
  }
  .em-header.is-open .em-nav {
    display: flex !important;
    pointer-events: auto;
  }
  .em-header .em-nav li {
    width: 100%;
  }
  .em-header .em-nav a {
    display: block;
    width: 100%;
    padding: 11px 4px;
    border-bottom: 1px solid var(--em-border);
    font-size: 14px;
  }
  .em-header .em-nav li:last-child a {
    border-bottom: 0;
  }
  .em-header-search,
  .em-header-cta {
    display: none !important;
  }
  .em-header-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--em-primary);
  }
  .em-header-hamburger:hover {
    background: #eff6ff;
  }
  .em-header.is-open .em-mobile-header-search {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 71;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px 16px;
    border-bottom: 1.5px solid var(--em-border);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
  }
  .em-mobile-header-search__input {
    min-width: 0;
    flex: 1;
    border: 1.5px solid var(--em-border);
    border-radius: 999px;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    outline: none;
  }
  .em-mobile-header-search__input:focus {
    border-color: var(--em-primary);
  }
  .em-mobile-header-search__btn {
    border: 0;
    border-radius: 999px;
    background: var(--em-primary);
    color: #fff;
    padding: 11px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
  }
}

/* ── Update v1.0.6: standard WordPress post + news/category pages ── */
.em-post-container,
.em-blog-container {
  padding-top: 28px;
}
.em-single-post {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--em-shadow);
  overflow: hidden;
}
.em-single-post__header {
  padding: 42px 44px 24px;
}
.em-single-post__title {
  margin: 12px 0 14px;
  color: var(--em-text);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.8px;
}
.em-single-post__excerpt {
  color: var(--em-muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}
.em-single-post__thumb {
  margin: 0;
  background: #f5f9ff;
}
.em-single-post__thumb img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.em-single-post__content {
  padding: 34px 44px 42px;
}
.em-content-body {
  color: var(--em-text);
  font-size: 17px;
  line-height: 1.82;
}
.em-content-body > *:first-child { margin-top: 0; }
.em-content-body > *:last-child { margin-bottom: 0; }
.em-content-body p,
.em-content-body ul,
.em-content-body ol,
.em-content-body blockquote,
.em-content-body table,
.em-content-body figure,
.em-content-body h2,
.em-content-body h3,
.em-content-body h4 {
  margin-bottom: 18px;
}
.em-content-body h2,
.em-content-body h3,
.em-content-body h4 {
  margin-top: 28px;
  color: var(--em-text);
  font-weight: 600;
  line-height: 1.3;
}
.em-content-body h2 { font-size: 28px; }
.em-content-body h3 { font-size: 22px; }
.em-content-body h4 { font-size: 18px; }
.em-content-body ul,
.em-content-body ol { padding-left: 24px; }
.em-content-body a { font-weight: 600; }
.em-content-body img {
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
}
.em-content-body blockquote {
  border-left: 4px solid var(--em-primary);
  background: #f5f9ff;
  border-radius: 0 16px 16px 0;
  padding: 18px 20px;
  color: #4b4b4b;
}
.em-content-body table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}
.em-content-body th,
.em-content-body td {
  border: 1px solid var(--em-border);
  padding: 10px 12px;
  text-align: left;
}
.em-content-body th {
  background: #f5f9ff;
  font-weight: 600;
}
.em-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: var(--em-muted);
  font-size: 13px;
  font-weight: 500;
}
.em-post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.em-post-meta .em-svg-icon {
  width: 15px;
  height: 15px;
  color: var(--em-primary);
  flex: 0 0 15px;
}
.em-post-meta a {
  color: var(--em-primary);
  text-decoration: none;
  font-weight: 600;
}
.em-post-meta a:hover { text-decoration: underline; }
.em-single-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 44px 42px;
}
.em-single-post__tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--em-muted);
  font-size: 13px;
  font-weight: 600;
}
.em-single-post__tags .em-svg-icon {
  width: 15px;
  height: 15px;
  color: var(--em-primary);
}
.em-single-post__tags a,
.em-blog-catbar a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1.5px solid var(--em-border);
  border-radius: 999px;
  padding: 7px 13px;
  background: #fff;
  color: var(--em-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.em-single-post__tags a:hover,
.em-blog-catbar a:hover,
.em-blog-catbar a.is-active {
  border-color: var(--em-primary);
  background: var(--em-primary);
  color: #fff;
}
.em-related-posts {
  max-width: 1200px;
  margin: 38px auto 0;
}
.em-blog-archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%);
  border: 1.5px solid var(--em-border);
  box-shadow: var(--em-shadow);
}
.em-blog-archive-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--em-primary);
  font-size: 14px;
  font-weight: 600;
}
.em-blog-archive-head__title {
  margin: 0;
  color: var(--em-text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.8px;
}
.em-blog-archive-head__desc {
  max-width: 720px;
  margin-top: 10px;
  color: var(--em-muted);
  font-size: 15px;
  line-height: 1.7;
}
.em-blog-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--em-border);
  padding: 9px 14px;
  color: var(--em-primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.em-blog-catbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.em-post-grid,
.em-search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.em-post-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid var(--em-border);
  box-shadow: var(--em-shadow);
  transition: transform .2s, box-shadow .2s;
}
.em-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232,66,10,.12);
}
.em-post-card__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f5f9ff;
  color: var(--em-primary);
  overflow: hidden;
}
.em-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}
.em-post-card:hover .em-post-card__thumb img { transform: scale(1.04); }
.em-post-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.em-post-card__placeholder .em-svg-icon {
  width: 46px;
  height: 46px;
}
.em-post-card__body {
  padding: 18px;
}
.em-post-card__title {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}
.em-post-card__title a {
  color: var(--em-text);
  text-decoration: none;
}
.em-post-card__title a:hover { color: var(--em-primary); }
.em-post-card__excerpt {
  margin: 0 0 12px;
  color: var(--em-muted);
  font-size: 14px;
  line-height: 1.65;
}
.em-post-card__more {
  color: var(--em-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.em-post-card__more:hover { text-decoration: underline; }
.em-page-links {
  margin-top: 24px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .em-post-grid,
  .em-search-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .em-blog-archive-head { align-items: flex-start; flex-direction: column; padding: 22px; }
  .em-single-post__header,
  .em-single-post__content { padding-left: 22px; padding-right: 22px; }
  .em-single-post__tags { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 560px) {
  .em-post-container,
  .em-blog-container { padding-top: 20px; }
  .em-single-post { border-radius: 18px; }
  .em-single-post__header { padding-top: 26px; padding-bottom: 18px; }
  .em-single-post__title { font-size: 25px; letter-spacing: -0.4px; }
  .em-single-post__excerpt,
  .em-content-body { font-size: 15px; }
  .em-content-body h2 { font-size: 22px; }
  .em-content-body h3 { font-size: 19px; }
  .em-post-card__body { padding: 13px; }
  .em-post-card__title { font-size: 15px; }
  .em-post-card__excerpt { display: none; }
  .em-post-meta { font-size: 11.5px; gap: 7px; }
  .em-post-meta__item .em-svg-icon { width: 13px; height: 13px; }
  .em-blog-archive-head__title { font-size: 27px; }
  .em-blog-catbar { gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .em-blog-catbar a { flex: 0 0 auto; }
}

/* COPY.com.vn - Portfolio copy single/archive */
.em-dish-grid--archive{margin-top:18px}
.em-sample-single{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,0.9fr);gap:24px;align-items:stretch;margin:20px 0 28px}
.em-sample-single__media{min-height:380px;border-radius:28px;overflow:hidden;display:flex;align-items:center;justify-content:center;position:relative;box-shadow:var(--em-shadow)}
.em-sample-single__media img{width:100%;height:100%;object-fit:cover;display:block}
.em-sample-single__media .em-svg-icon{width:96px;height:96px;color:var(--em-primary)}
.em-sample-single__body{padding:28px}
.em-sample-single__body h1{font-size:clamp(28px,4vw,46px);line-height:1.1;margin:8px 0 12px;color:var(--em-text)}
.em-sample-single__service,.em-sample-single__price{font-size:15px;color:var(--em-muted);margin:8px 0}
.em-sample-single__service a{color:var(--em-primary);font-weight:600;text-decoration:none}
.em-sample-single__content{font-size:15px;line-height:1.8;color:var(--em-text);margin:18px 0}
@media(max-width:768px){.em-sample-single{grid-template-columns:1fr}.em-sample-single__media{min-height:260px;border-radius:22px}.em-sample-single__body{padding:20px}.em-sample-single__body h1{font-size:28px}}

/* ── Responsive fix: mobile taxonomy/category grids always 2 columns ── */
@media (max-width: 768px) {
  body .em-category-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  body .em-category-card {
    min-width: 0 !important;
    padding: 14px 12px !important;
    border-radius: 18px !important;
  }
  body .em-cat-head {
    align-items: flex-start !important;
    gap: 8px !important;
  }
  body .em-cat-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 12px !important;
  }
  body .em-cat-icon .em-svg-icon {
    width: 18px !important;
    height: 18px !important;
  }
  body .em-cat-name {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }
  body .em-cat-count {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
}
@media (max-width: 380px) {
  body .em-category-grid { gap: 10px !important; }
  body .em-category-card { padding: 12px 10px !important; }
  body .em-cat-name { font-size: 12.5px !important; }
  body .em-cat-count { font-size: 11.5px !important; }
}



/* COPY.com.vn v1.2.1: mobile single info must appear before related blocks */
.em-mobile-info-panel { display: none; }
@media (max-width: 900px) {
  body.single-quan_an .em-single-sidebar { display: none !important; }
  body.single-quan_an .em-mobile-info-panel { display: block !important; margin: 24px 0 18px; }
  body .em-category-grid,
  body .em-related-grid,
  body .em-dish-grid,
  body .em-restaurant-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* ── Fix vLogoMenu: WordPress logo + safe multi-level menu ── */
.em-logo {
  flex: 0 0 auto;
  min-width: 0;
}
.em-logo-img,
.em-logo img,
.custom-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 42px;
  object-fit: contain;
}
.em-header .em-nav,
.em-header .em-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.em-header .em-nav > li,
.em-header .em-nav li {
  position: relative;
}
.em-header .em-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.em-header .em-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 999;
  display: none;
  min-width: 230px;
  padding: 8px;
  background: #fff;
  border: 1.5px solid var(--em-border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.em-header .em-nav li:hover > .sub-menu,
.em-header .em-nav li:focus-within > .sub-menu {
  display: block;
}
.em-header .em-nav .sub-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.em-header .em-nav .sub-menu li {
  width: 100%;
}
.em-header .em-nav .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--em-text);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}
.em-header .em-nav .sub-menu a:hover,
.em-header .em-nav .sub-menu .current-menu-item > a {
  background: #f5f9ff;
  color: var(--em-primary);
}
.em-header .em-nav .sub-menu .sub-menu {
  top: -8px;
  left: calc(100% + 8px);
  margin: 0;
}
.em-header .em-nav .menu-item-has-children > a::after {
  content: '▾';
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  color: currentColor;
  opacity: .65;
}
.em-header .em-nav .sub-menu .menu-item-has-children > a::after {
  content: '›';
  margin-left: auto;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 768px) {
  .em-logo-img,
  .em-logo img,
  .custom-logo {
    max-width: 150px;
    max-height: 38px;
  }
  .em-header.is-open nav {
    pointer-events: auto;
  }
  .em-header .em-nav > li > a,
  .em-header .em-nav a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
  }
  .em-header .em-nav .sub-menu,
  .em-header .em-nav .sub-menu .sub-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    z-index: auto;
    display: block !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 0 0 14px !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .em-header .em-nav .sub-menu::before {
    display: none;
  }
  .em-header .em-nav .sub-menu a {
    padding: 9px 4px 9px 14px !important;
    border-left: 2px solid var(--em-border);
    border-bottom: 1px solid var(--em-border);
    border-radius: 0;
    color: var(--em-muted);
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
  }
  .em-header .em-nav .sub-menu .sub-menu a {
    padding-left: 18px !important;
    font-size: 12.5px;
  }
  .em-header .em-nav .menu-item-has-children > a::after,
  .em-header .em-nav .sub-menu .menu-item-has-children > a::after {
    content: '';
    display: none;
  }
}


/* ── News/category/sidebar fix v1.4.0 ── */
.em-blog-layout,
.em-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.em-blog-main,
.em-post-main { min-width: 0; }
.em-blog-top-search {
  margin: 0 0 22px;
}
.em-blog-search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  border: 1.5px solid var(--em-border);
  box-shadow: var(--em-shadow);
}
.em-blog-search-form__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: var(--em-primary);
  background: rgba(0,0,0,.035);
}
.em-blog-search-form__icon .em-svg-icon { width: 20px; height: 20px; }
.em-blog-search-form__input {
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--em-text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
}
.em-blog-search-form__btn,
.em-sidebar-search button {
  border: 0;
  border-radius: 999px;
  background: var(--em-primary);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.em-blog-search-form__btn {
  height: 42px;
  padding: 0 20px;
}
.em-blog-search-form__btn:hover,
.em-sidebar-search button:hover {
  background: var(--em-primary-dark);
  transform: translateY(-1px);
}
.em-blog-layout .em-post-grid--archive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.em-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 86px;
}
.em-blog-widget {
  border-radius: 22px;
  border: 1.5px solid var(--em-border);
  background: #fff;
  box-shadow: var(--em-shadow);
  padding: 18px;
}
.em-blog-widget__title {
  margin: 0 0 12px;
  color: var(--em-text);
  font-size: 16px;
  font-weight: 600;
}
.em-sidebar-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.em-sidebar-search input {
  min-width: 0;
  height: 40px;
  border: 1.5px solid var(--em-border);
  border-radius: 999px;
  padding: 0 13px;
  outline: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}
.em-sidebar-search input:focus { border-color: var(--em-primary); }
.em-sidebar-search button { padding: 0 14px; }
.em-blog-widget__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
}
.em-blog-widget__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(0,0,0,.025);
  color: var(--em-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.em-blog-widget__list a:hover { background: var(--em-primary); color: #fff; }
.em-blog-widget__list em {
  flex: 0 0 auto;
  font-style: normal;
  color: var(--em-muted);
  font-size: 12px;
}
.em-blog-widget__list a:hover em { color: rgba(255,255,255,.86); }
.em-blog-widget__posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.em-blog-widget-post {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  color: var(--em-text);
  text-decoration: none;
}
.em-blog-widget-post__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 52px;
  border-radius: 13px;
  overflow: hidden;
  background: #f5f9ff;
  color: var(--em-primary);
}
.em-blog-widget-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.em-blog-widget-post__thumb .em-svg-icon { width: 24px; height: 24px; }
.em-blog-widget-post__body { min-width: 0; }
.em-blog-widget-post__body strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}
.em-blog-widget-post__body small {
  display: block;
  margin-top: 3px;
  color: var(--em-muted);
  font-size: 11.5px;
}
.em-post-layout .em-single-post {
  max-width: none;
}
.em-post-layout .em-related-posts {
  max-width: none;
}
.em-related-post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.em-related-post-item {
  display: grid;
  grid-template-columns: 96px minmax(0,1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  padding: 12px;
  border: 1.5px solid var(--em-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--em-shadow);
}
.em-related-post-item__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  min-height: 82px;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f9ff;
  color: var(--em-primary);
}
.em-related-post-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.em-related-post-item__thumb .em-svg-icon { width: 28px; height: 28px; }
.em-related-post-item__body { min-width: 0; }
.em-related-post-item__body .em-post-meta {
  font-size: 11px;
  gap: 6px;
  margin-bottom: 5px;
}
.em-related-post-item__body .em-post-meta__item:last-child { display: none; }
.em-related-post-item__body h3 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
.em-related-post-item__body h3 a {
  color: var(--em-text);
  text-decoration: none;
}
.em-related-post-item__body h3 a:hover { color: var(--em-primary); }
.em-related-post-item__body p {
  margin: 0;
  color: var(--em-muted);
  font-size: 12.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 980px) {
  .em-blog-layout,
  .em-post-layout { grid-template-columns: 1fr; }
  .em-blog-sidebar { position: static; }
}
@media (max-width: 620px) {
  .em-blog-search-form { grid-template-columns: auto minmax(0,1fr); border-radius: 18px; }
  .em-blog-search-form__btn { grid-column: 1 / -1; width: 100%; }
  .em-blog-layout .em-post-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .em-related-post-list { grid-template-columns: 1fr; }
  .em-blog-widget { padding: 15px; border-radius: 18px; }
}
@media (max-width: 420px) {
  .em-blog-layout .em-post-grid--archive { gap: 10px; }
  .em-related-post-item { grid-template-columns: 82px minmax(0,1fr); gap: 10px; padding: 10px; }
  .em-related-post-item__thumb { width: 82px; min-height: 72px; }
  .em-related-post-item__body p { display: none; }
}


/* ── COPY.com.vn palette ── */
body {
  --em-primary:      #0b0b0f;
  --em-primary-dark:      #000000;
  --em-accent:      #f59e0b;
  --em-green:      #16a34a;
  --em-bg:      #fff7ed;
  --em-border:      #fed7aa;
  --em-shadow:      0 4px 24px rgba(245,158,11,0.15);
}
.em-logo-text { color: #4f46e5; }
.em-logo-text span { color: #f59e0b; }
.em-hero {
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #7c3aed 72%, #f59e0b 100%);
}
.em-footer { background: linear-gradient(135deg, #111827 0%, #312e81 62%, #4f46e5 100%); }
.em-hero__panel { box-shadow: 0 20px 60px rgba(79,70,229,0.22); }
.em-header-cta,
.em-blog-search-form__btn,
.em-sidebar-search button {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
}
.em-header-cta:hover,
.em-blog-search-form__btn:hover,
.em-sidebar-search button:hover {
  background: linear-gradient(135deg, #3730a3 0%, #1e1b4b 100%);
}
.em-quick-chip:hover,
.em-quick-chip.active,
.em-blog-catbar a:hover,
.em-blog-catbar a.is-active,
.em-blog-widget__list a:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  border-color: #4f46e5;
}
.em-section-h2 span,
.em-see-all,
.em-post-meta a,
.em-post-card__more,
.em-sample-single__service a,
.em-related-post-item__body h3 a:hover,
.em-post-card__title a:hover {
  color: #4f46e5;
}
/* footerbtnfix-install: packaged with style.css at WP theme root */

/* COPY.com.vn final safeguards */
@media (max-width: 768px) {
  .em-hero { padding: 44px 16px; overflow: hidden; }
  .em-hero__inner { grid-template-columns: 1fr !important; gap: 22px; }
  .em-hero__title { font-size: clamp(28px, 9vw, 38px); line-height: 1.12; }
  .em-hero__panel, .em-search-box, .em-search { max-width: 100%; min-width: 0; }
  .em-hero input, .em-hero button { max-width: 100%; }
  .em-header.is-open .em-nav .sub-menu { display: none; }
  .em-header.is-open .em-nav li.is-subopen > .sub-menu { display: flex; }
  .em-header.is-open .em-nav .sub-menu { position: static; width: 100%; flex-direction: column; box-shadow: none; transform: none; opacity: 1; visibility: visible; padding-left: 14px; }
}


/* Copy.com.vn custom */
body { background: #fff7ed; }
.em-header { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.em-logo-text { letter-spacing: -0.7px; color: #0b0b0f; }
.em-logo-text span { color: #f59e0b; }
.em-hero {
  background: radial-gradient(circle at 20% 15%, rgba(245,158,11,.36), transparent 30%),
              radial-gradient(circle at 80% 20%, rgba(251,191,36,.22), transparent 26%),
              linear-gradient(135deg,#050505 0%,#111827 55%,#92400e 100%);
}
.em-hero__panel { border: 1px solid rgba(245,158,11,.28); box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.em-quick-chip { background: rgba(255,255,255,.92); border-color: rgba(245,158,11,.35); }
.copy-trust-row {
  display:flex; flex-wrap:wrap; gap:10px; margin-top:18px;
}
.copy-trust-row span {
  display:inline-flex; align-items:center; gap:6px; color:#fff; background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.22); border-radius:999px; padding:8px 12px; font-size:13px; font-weight:600;
}
.copy-mini-stats {
  max-width:1200px; margin:22px auto 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px;
}
.copy-mini-stat {
  background:#fff; border:1px solid #fed7aa; border-radius:18px; padding:16px; box-shadow:0 8px 28px rgba(245,158,11,.11);
}
.copy-mini-stat strong { display:block; font-size:24px; color:#0b0b0f; font-weight:600; line-height:1; }
.copy-mini-stat span { color:#7c2d12; font-size:13px; font-weight:600; }
.copy-process {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px;
}
.copy-process__item {
  background:#fff; border:1px solid #fed7aa; border-radius:20px; padding:20px; box-shadow:0 8px 28px rgba(245,158,11,.10);
}
.copy-process__num {
  display:inline-flex; width:38px; height:38px; border-radius:50%; align-items:center; justify-content:center;
  background:#111827; color:#fbbf24; font-weight:600; margin-bottom:12px;
}
.copy-process__item h3 { font-size:18px; font-weight:600; margin-bottom:8px; color:#111827; }
.copy-process__item p { color:#6b7280; font-size:14px; }
.copy-cta {
  background: linear-gradient(135deg,#111827 0%,#000 55%,#92400e 100%);
  border-radius:28px; padding:34px; color:#fff; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:22px; align-items:center;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
}
.copy-cta h2 { color:#fff; font-size:clamp(26px,4vw,42px); font-weight:600; line-height:1.1; }
.copy-cta p { color:rgba(255,255,255,.8); margin-top:10px; }
.copy-cta__actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.copy-cta__actions a { color:#111827; background:#fbbf24; padding:12px 18px; border-radius:999px; font-weight:600; text-decoration:none; }
.copy-cta__actions a:last-child { background:#fff; }
.em-footer {
  background: linear-gradient(135deg,#030712 0%,#111827 65%,#78350f 100%);
}
@media (max-width: 768px) {
  .copy-mini-stats { grid-template-columns:repeat(2,minmax(0,1fr)); margin-left:16px; margin-right:16px; }
  .copy-process { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .copy-cta { grid-template-columns:1fr; padding:24px; }
  .copy-cta__actions { justify-content:flex-start; }
}
@media (max-width: 420px) {
  .copy-process { grid-template-columns:1fr; }
}
