/* Blog (public pages: blog.php, hu/blog.php, home page block). Uses the site colours from style.css (--main, --highlight). */
.blogBody {
  --blog-text: #1c2530;
  --blog-muted: #667181;
  --blog-line: #e3e7ec;
  --blog-soft: #f4f6f8;
  --blog-radius: 14px;
  --blog-shadow: 0 1px 2px rgba(18, 26, 40, .06), 0 8px 24px rgba(18, 26, 40, .07);
  background: #fff;
}

.blogWrap { max-width: 1200px; margin: 0 auto; padding: 200px 20px 60px; color: var(--blog-text, #1c2530); }
.blogWrap *, .blogHome * { box-sizing: border-box; }
.blogBody .material-symbols-outlined, .blogHome .material-symbols-outlined { font-size: 18px; vertical-align: middle; }

/* ---------- list page */
.blogHero { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.blogHero h1 {
  font-size: clamp(32px, 4vw, 50px); font-weight: 500; text-transform: uppercase;
  color: var(--main); margin: 0 0 12px; letter-spacing: .02em;
}
.blogHero p { font-size: 17px; line-height: 1.6; color: var(--blog-muted); margin: 0; }

.blogFilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 36px; }
.blogChip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--blog-line);
  background: #fff; color: var(--main); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: background .15s, color .15s, border-color .15s;
}
.blogChip small { font-size: 12px; opacity: .6; }
.blogChip:hover { border-color: var(--main); }
.blogChip.is-active { background: var(--main); border-color: var(--main); color: #fff; }

.blogLayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.blogGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.blogGrid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blogFeatured { margin-bottom: 24px; }

/* ---------- card */
.blogCard {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--blog-radius, 14px);
  box-shadow: var(--blog-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; min-width: 0;
}
.blogCard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(18, 26, 40, .06), 0 14px 32px rgba(18, 26, 40, .12); }
.blogCardImage { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--blog-soft, #f4f6f8); overflow: hidden; }
.blogCardImage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.blogCard:hover .blogCardImage img { transform: scale(1.04); }
.blogCardImage img.blogCardPlaceholder { object-fit: contain; padding: 18% 25%; opacity: .35; }
.blogCardTag {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .92); color: var(--main); font-size: 12px; font-weight: 700;
}
.blogCardBody { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.blogCardTitle { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 700; }
.blogCardTitle a { color: var(--blog-text, #1c2530); text-decoration: none; }
.blogCardTitle a:hover { color: var(--main); }
.blogCardExcerpt { margin: 0; color: var(--blog-muted, #667181); line-height: 1.6; font-size: 15px; flex: 1; }
.blogReadMore { display: inline-flex; align-items: center; gap: 4px; color: var(--highlight); font-weight: 700; text-decoration: none; font-size: 14px; }
.blogReadMore:hover { gap: 8px; }
.blogReadMore .material-symbols-outlined { transition: transform .15s; }

.blogFeatured .blogCard { display: grid; grid-template-columns: 1.25fr 1fr; }
.blogFeatured .blogCardImage { aspect-ratio: auto; min-height: 300px; }
.blogFeatured .blogCardBody { padding: 28px; justify-content: center; }
.blogFeatured .blogCardTitle { font-size: 26px; }
.blogFeatured .blogCardExcerpt { flex: 0; font-size: 16px; }

.blogMeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--blog-muted, #667181); font-size: 13px; }
.blogMeta .material-symbols-outlined { font-size: 16px; margin-right: 3px; }
.blogMetaDot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---------- sidebar */
.blogSidebar { display: grid; gap: 20px; position: sticky; top: 24px; }
.blogSideCard { background: var(--blog-soft); border-radius: var(--blog-radius); padding: 22px; }
.blogSideCard h3 { margin: 0 0 12px; font-size: 17px; color: var(--main); }
.blogSideList { list-style: none; margin: 0; padding: 0; }
.blogSideList a {
  display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px;
  text-decoration: none; color: var(--blog-text); font-weight: 600; font-size: 15px;
}
.blogSideList a span { color: var(--blog-muted); font-weight: 500; }
.blogSideList a:hover { background: #fff; }
.blogSideList a.is-active { background: var(--main); color: #fff; }
.blogSideList a.is-active span { color: rgba(255, 255, 255, .75); }
.blogSideCta { background: linear-gradient(140deg, var(--main), var(--highlight)); color: #fff; }
.blogSideCta h3 { color: #fff; }
.blogSideCta p { margin: 0 0 16px; line-height: 1.5; opacity: .9; }
.blogSideCta > .material-symbols-outlined { font-size: 32px; margin-bottom: 8px; display: block; }

/* ---------- buttons */
.blogBtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.blogBtnPrimary { background: var(--main); color: #fff; }
.blogBtnPrimary:hover { background: var(--highlight); }
.blogBtnLight { background: #fff; color: var(--main); }
.blogBtnLight:hover { background: var(--sweeten); color: var(--main); }
.blogBtnOutline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.blogBtnOutline:hover { background: #fff; color: var(--main); }
.blogBtnOutlineDark { border-color: var(--blog-line); color: var(--main); }
.blogBtnOutlineDark:hover { border-color: var(--main); }

/* ---------- pager, empty */
.blogPager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.blogPager a {
  display: inline-flex; align-items: center; min-width: 40px; justify-content: center; padding: 8px 12px;
  border-radius: 10px; border: 1px solid var(--blog-line); text-decoration: none; color: var(--main); font-weight: 600;
}
.blogPager a:hover { border-color: var(--main); }
.blogPager a.is-active { background: var(--main); color: #fff; border-color: var(--main); }
.blogEmpty { text-align: center; padding: 56px 20px; background: var(--blog-soft); border-radius: var(--blog-radius); }
.blogEmpty > .material-symbols-outlined { font-size: 52px; color: var(--main); opacity: .5; }
.blogEmpty h1, .blogEmpty h2 { color: var(--main); margin: 10px 0; font-size: 24px; }
.blogEmpty p { color: var(--blog-muted); margin: 0 0 20px; }

/* ---------- article */
.blogArticleWrap { max-width: 1100px; }
.blogPreviewBar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 20px;
  background: #fff1d9; color: #8a5300; border-radius: 10px; font-weight: 600;
}
.blogBreadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--blog-muted); margin-bottom: 20px; }
.blogBreadcrumb a { color: var(--main); text-decoration: none; font-weight: 600; }
.blogBreadcrumb a:hover { text-decoration: underline; }
.blogBreadcrumb [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.blogArticle { max-width: 780px; margin: 0 auto; }
.blogArticleHead { margin-bottom: 24px; }
.blogTagRow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.blogTagRow .blogChip { padding: 4px 12px; font-size: 13px; }
.blogArticleHead h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 0 0 14px; color: var(--main); font-weight: 700; }
.blogArticleMeta { font-size: 14px; gap: 8px 18px; }
.blogCover { margin: 0 0 28px; border-radius: var(--blog-radius); overflow: hidden; }
.blogCover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.blogLangNotice { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--blog-soft); border-left: 4px solid var(--highlight); border-radius: 8px; color: var(--blog-muted); font-size: 14px; }

.blogContent { font-size: 18px; line-height: 1.8; color: #26303c; overflow-wrap: break-word; }
.blogContent > :first-child { margin-top: 0; }
.blogContent p { margin: 0 0 1.1em; }
.blogContent h2 { font-size: 28px; line-height: 1.3; color: var(--main); margin: 1.6em 0 .6em; }
.blogContent h3 { font-size: 22px; line-height: 1.35; color: var(--main); margin: 1.4em 0 .5em; }
.blogContent h4 { font-size: 19px; margin: 1.2em 0 .4em; }
.blogContent a { color: var(--highlight); text-decoration: underline; text-underline-offset: 2px; }
.blogContent ul, .blogContent ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.blogContent li { margin-bottom: .35em; }
.blogContent blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--highlight); background: var(--blog-soft); border-radius: 0 10px 10px 0; font-style: italic; }
.blogContent img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 1.4em auto; }
.blogContent pre { background: #1c2530; color: #f4f6f8; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: 14px; }
.blogContent iframe.ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; margin: 1.4em 0; }
.blogContent .ql-align-center { text-align: center; }
.blogContent .ql-align-right { text-align: right; }
.blogContent .ql-align-justify { text-align: justify; }
.blogContent .ql-indent-1 { padding-left: 2em; }
.blogContent .ql-indent-2 { padding-left: 4em; }

.blogShare { display: flex; align-items: center; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--blog-line); color: var(--blog-muted); font-weight: 600; }
.blogShare a { display: inline-flex; align-items: center; justify-content: center; height: 38px; min-width: 38px; border-radius: 50%; background: var(--blog-soft); color: var(--main); text-decoration: none; }
.blogShare a:hover { background: var(--main); color: #fff; }
.blogShare img { width: 20px; height: 20px; object-fit: contain; }
.blogShare .blogShareText { border-radius: 99px; padding: 0 14px; font-size: 14px; }

.blogSection { margin-top: 56px; }
.blogSectionTitle { font-size: 24px; color: var(--main); margin: 0 0 20px; }
.blogProducts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.blogProduct {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--blog-radius);
  border: 1px solid var(--blog-line); text-decoration: none; color: var(--blog-text); transition: border-color .15s, box-shadow .15s;
}
.blogProduct:hover { border-color: var(--main); box-shadow: var(--blog-shadow); }
.blogProductImage { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--blog-soft); border-radius: 10px; overflow: hidden; }
.blogProductImage img { width: 100%; height: 100%; object-fit: contain; }
.blogProductName { font-weight: 700; line-height: 1.35; flex: 1; }
.blogProductLink { color: var(--highlight); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.blogBackRow { text-align: center; margin: 48px 0 0; }

/* ---------- CTA banner */
.blogCta { background: linear-gradient(120deg, var(--main), var(--highlight)); color: #fff; padding: 48px 20px; }
.blogCtaInner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.blogCta h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); }
.blogCta p { margin: 0; opacity: .9; max-width: 640px; line-height: 1.6; }
.blogCtaButtons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- home page block (partials/blog_home.php) */
.blogHome { padding: 70px 20px; background: #fff; }
.blogHomeInner { max-width: 1200px; margin: 0 auto; }
.blogHomeHead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.blogHomeHead h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; text-transform: uppercase; color: var(--main); }
.blogHomeHead p { margin: 6px 0 0; color: #667181; }
.blogHome .blogCard { --blog-shadow: 0 1px 2px rgba(18, 26, 40, .06), 0 8px 24px rgba(18, 26, 40, .07); }
.blogHome .blogBtnOutlineDark { border-color: #e3e7ec; }

/* ---------- responsive */
@media (max-width: 1000px) {
  .blogLayout { grid-template-columns: 1fr; }
  .blogSidebar { position: static; grid-template-columns: 1fr 1fr; }
  .blogGrid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blogFeatured .blogCard { grid-template-columns: 1fr; }
  .blogFeatured .blogCardImage { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 800px) {
  .blogWrap { padding: 150px 16px 48px; }
  .blogGrid, .blogGrid3 { grid-template-columns: 1fr; }
  .blogSidebar { grid-template-columns: 1fr; }
  .blogFilter { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; }
  .blogChip { white-space: nowrap; }
  .blogContent { font-size: 17px; }
  .blogFeatured .blogCardBody { padding: 20px; }
  .blogFeatured .blogCardTitle { font-size: 22px; }
  .blogBreadcrumb [aria-current] { max-width: 100%; }
  .blogCtaButtons, .blogCtaButtons .blogBtn { width: 100%; }
  .blogHome { padding: 48px 16px; }
}

/* the category chips duplicate the sidebar on wide screens: only shown when the sidebar moves below the posts */
@media (min-width: 1001px) {
  .blogFilter { display: none; }
}

/* Phones: the site has no viewport meta tag, so phones lay the page out ~980px wide and scale it down.
   Same approach as src/mobile.css and src/booking.css: enlarge (zoom) and switch to the one-column layout. */
@media screen and (max-device-width: 800px) {
  .blogWrap { zoom: 2.2; padding: 100px 10px 30px; }
  .blogCta, .blogHome { zoom: 2.2; padding: 28px 10px; }
  .blogLayout { grid-template-columns: 1fr; gap: 24px; }
  .blogGrid, .blogGrid3 { grid-template-columns: 1fr; }
  .blogSidebar { position: static; grid-template-columns: 1fr; }
  .blogSidebar .blogSideCard:not(.blogSideCta) { display: none; } /* the category chips above the posts do this job */
  .blogFilter { display: flex; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; }
  .blogChip { white-space: nowrap; }
  .blogFeatured .blogCard { grid-template-columns: 1fr; }
  .blogFeatured .blogCardImage { min-height: 0; aspect-ratio: 16 / 9; }
  .blogFeatured .blogCardBody { padding: 18px 20px 20px; }
  .blogFeatured .blogCardTitle { font-size: 21px; }
  .blogContent { font-size: 17px; }
  .blogBreadcrumb [aria-current] { max-width: 100%; }
  .blogCtaButtons, .blogCtaButtons .blogBtn { width: 100%; }
  .blogShare { flex-wrap: wrap; }
}
