/* ==========================================================
   EGLOOMERINO.RO — BLOG ARTICLE SYSTEM
   file: /user/documents/upload/styly/em-blog.css
   version: 2.0
   Root wrapper: .em-article
   ========================================================== */

.em-article {
  --em-primary: var(--color-primary, #faaa31);
  --em-primary-hover: var(--color-primary-hover, #d6ae7b);
  --em-link: #434f2b;
  --em-text: #111;
  --em-muted: #5f6a52;
  --em-surface: #f7f7f4;
  --em-surface-warm: #fbf8f2;
  --em-border: #ebe7dd;
  --em-radius: 22px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 10px 30px;
  color: var(--em-text);
  font-family: var(--template-font, "Open Sans"), Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.em-article,
.em-article * { box-sizing: border-box; }

.em-article h1,
.em-article h2,
.em-article h3 {
  margin: 0 0 16px;
  color: var(--em-text);
  font-family: var(--template-headings-font, "Exo 2"), Arial, sans-serif;
  font-weight: 800;
  line-height: 1.22;
}

.em-article h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.025em; }
.em-article h2 { font-size: clamp(24px, 3vw, 30px); }
.em-article h3 { font-size: clamp(20px, 2.4vw, 24px); }
.em-article p { margin: 0 0 18px; }

.em-article a {
  color: var(--em-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.em-article a:hover,
.em-article a:focus-visible {
  color: var(--em-primary-hover);
  text-decoration-color: currentColor;
}

.em-article a:focus-visible,
.em-article summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--em-primary) 55%, white);
  outline-offset: 3px;
}

.em-article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.em-article figure { margin: 0; }

/* Hero */
.em-article .em-hero {
  position: relative;
  margin: 0 0 46px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--em-surface);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .10);
}

.em-article .em-hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.em-article .em-hero__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px 40px 34px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .40), transparent);
}

.em-article .em-hero__content h1,
.em-article .em-hero__content p {
  max-width: 850px;
  color: #fff;
}

.em-article .em-lead {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.65;
}

/* Editorial layout */
.em-article .em-row {
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 42px 0 52px;
}

.em-article .em-row--reverse { flex-direction: row-reverse; }
.em-article .em-col--text { flex: 1 1 62%; min-width: 0; }
.em-article .em-col--image { flex: 1 1 38%; min-width: 0; text-align: center; }

.em-article .em-img--feature {
  width: 100%;
  max-width: 390px;
  max-height: 320px;
  object-fit: contain;
  border-radius: 22px;
}

/* Content boxes */
.em-article :is(.em-summary, .em-related, .em-products, .em-product-box, .em-video-box, .em-checklist) {
  margin: 40px 0;
  padding: 28px;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  background: linear-gradient(135deg, var(--em-surface-warm), #fff);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .04);
}

.em-article :is(.em-summary, .em-related, .em-products, .em-product-box, .em-video-box, .em-checklist) h2 {
  margin-top: 0;
}

.em-article .em-summary { border-left: 4px solid var(--em-primary); }

.em-article :is(.em-grid, .em-link-grid, .em-route-grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.em-article :is(.em-grid, .em-link-grid, .em-route-grid) h3 { margin-bottom: 10px; }

/* CTA links */
.em-article .em-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid var(--em-primary);
  border-radius: 999px;
  color: #fff;
  background: var(--em-primary);
  font-family: var(--template-headings-font, "Exo 2"), Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.em-article .em-cta:hover,
.em-article .em-cta:focus-visible {
  border-color: var(--em-primary-hover);
  color: #fff;
  background: var(--em-primary-hover);
  text-decoration: none;
}

/* Responsive video */
.em-article :is(.em-video-frame, .em-brand-video-frame) {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.em-article :is(.em-video-frame, .em-brand-video-frame) iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Accordion */
.em-article details {
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--em-border);
  border-left: 4px solid var(--em-primary);
  border-radius: 14px;
  background: #fafafa;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .035);
}

.em-article summary {
  position: relative;
  padding: 17px 52px 17px 20px;
  cursor: pointer;
  list-style: none;
  background: #fafafa;
  font-family: var(--template-headings-font, "Exo 2"), Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  transition: background .2s ease;
}

.em-article summary:hover { background: #f5f5f2; }
.em-article summary::-webkit-details-marker { display: none; }

.em-article summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--em-primary);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.em-article details[open] summary { border-bottom: 1px solid var(--em-border); }
.em-article details[open] summary::after { content: "−"; }

.em-article details > :not(summary) {
  margin-top: 0;
  padding-right: 20px;
  padding-left: 20px;
  background: #fff;
}

.em-article details > :not(summary):first-of-type { padding-top: 18px; }
.em-article details > :not(summary):last-child { margin-bottom: 0; padding-bottom: 18px; }

/* Lists */
.em-article ul,
.em-article ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

.em-article li { margin-bottom: 8px; }
.em-article li::marker { color: var(--em-primary); }

@media (max-width: 780px) {
  .em-article { padding-inline: 0; }

  .em-article .em-hero { border-radius: 20px; }
  .em-article .em-hero img { height: 340px; }

  .em-article .em-hero__content {
    position: static;
    padding: 24px 22px;
    color: var(--em-text);
    background: var(--em-surface);
  }

  .em-article .em-hero__content h1,
  .em-article .em-hero__content p { color: var(--em-text); }

  .em-article .em-row,
  .em-article .em-row--reverse {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-block: 34px 42px;
  }

  .em-article .em-col--text,
  .em-article .em-col--image { width: 100%; flex-basis: auto; }

  .em-article :is(.em-grid, .em-link-grid, .em-route-grid) { grid-template-columns: 1fr; }
  .em-article .em-img--feature { max-width: 100%; max-height: 300px; }
  .em-article :is(.em-summary, .em-related, .em-products, .em-product-box, .em-video-box, .em-checklist) { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .em-article *,
  .em-article *::before,
  .em-article *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
