/* ==========================================================
   MERINOSHOP BLOG TEMPLATE
   file: /user/documents/upload/styly/ms-blog.css
   ========================================================== */

.ms-article {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  font-family: Segoe UI, Helvetica Neue, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #000;
}

.ms-article h1,
.ms-article h2,
.ms-article h3 {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
}

.ms-article h1 { font-size: 30px; }
.ms-article h2 { font-size: 24px; }
.ms-article h3 { font-size: 20px; }

.ms-article p { margin: 0 0 18px; }

.ms-article a {
  color: #434f2b;
  text-decoration: underline;
}

.ms-article a:hover { color: #d6ae7b; }

/* Hero */

.ms-hero {
  position: relative;
  margin: 0 0 46px;
  overflow: hidden;
}

.ms-hero img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.ms-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 38px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .78),
    rgba(0, 0, 0, .42),
    rgba(0, 0, 0, 0)
  );
}

.ms-hero__content h1,
.ms-hero__content p {
  color: #fff;
  max-width: 850px;
}

.ms-lead {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Layout */

.ms-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 34px 0 48px;
}

.ms-row--reverse { flex-direction: row-reverse; }

.ms-col--text { flex-basis: 62%; }

.ms-col--image {
  flex-basis: 38%;
  text-align: center;
}

.ms-article figure { margin: 0; }

.ms-article img {
  display: block;
  margin: 0 auto;
}

.ms-img--feature {
  width: 100%;
  max-width: 380px;
  max-height: 280px;
  height: auto;
  object-fit: contain;
}

/* Boxy */

.ms-summary,
.ms-related,
.ms-products,
.ms-product-box,
.ms-video-box,
.ms-checklist {
  background: #f6f6f2;
  padding: 24px;
  margin: 38px 0;
}

.ms-summary h2,
.ms-related h2,
.ms-products h2,
.ms-product-box h2,
.ms-video-box h2,
.ms-checklist h2 {
  margin-top: 0;
}

/* Gridy */

.ms-grid,
.ms-link-grid,
.ms-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ms-grid h3,
.ms-link-grid h3,
.ms-route-grid h3 {
  margin-bottom: 10px;
}

/* Video */

.ms-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 20px 0;
  overflow: hidden;
  background: #000;
}

.ms-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Accordiony – FutureVision styl */

.ms-article details {
  margin: 0 0 14px;
  border: 1px solid #ececec;
  border-left: 4px solid #d6ae7b;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}

.ms-article summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 18px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  background: #fafafa;
  transition: background .2s ease;
}

.ms-article summary:hover {
  background: #f5f5f5;
}

.ms-article summary::-webkit-details-marker {
  display: none;
}

.ms-article summary::before {
  content: "👉 ";
}

.ms-article summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  line-height: 1;
  color: #434f2b;
  font-weight: 400;
}

.ms-article details[open] summary::after {
  content: "−";
}

.ms-article details[open] summary {
  border-bottom: 1px solid #ececec;
}

.ms-article details > div,
.ms-article details > p {
  padding: 18px 20px;
  background: #fff;
}

.ms-article details p:last-child,
.ms-article details ul:last-child {
  margin-bottom: 0;
}

/* Seznamy */

.ms-article ul,
.ms-article ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

.ms-article li {
  margin-bottom: 8px;
}

/* Mobil */

@media (max-width: 780px) {
  .ms-hero img {
    height: 360px;
  }

  .ms-hero__content {
    position: static;
    color: #000;
    background: #f6f6f2;
    padding: 22px;
  }

  .ms-hero__content h1,
  .ms-hero__content p {
    color: #000;
  }

  .ms-row,
  .ms-row--reverse {
    flex-direction: column;
    align-items: flex-start;
  }

  .ms-col--text,
  .ms-col--image {
    width: 100%;
    flex-basis: auto;
  }

  .ms-grid,
  .ms-link-grid,
  .ms-route-grid {
    grid-template-columns: 1fr;
  }

  .ms-img--feature {
    max-width: 100%;
    max-height: 280px;
  }
}