/* ===== Blog & Service page ===== */

/* Hero */
.blog-hero { position: relative; color: #fff; overflow: hidden; }
.blog-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.blog-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(15,15,15,.62) 100%); }
.blog-hero-inner { position: relative; padding: 84px 24px 64px; max-width: var(--max-w); margin: 0 auto; }
.blog-hero-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.blog-hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.blog-hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 60ch; color: rgba(255,255,255,.92); margin: 0; }

/* Block head (shared by sections) */
.block-head { margin-bottom: 36px; }
.block-head .block-title { margin-bottom: 6px; }
.block-head p { color: var(--gray); margin: 0; }

/* ===== Video section ===== */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.video-frame { position: relative; background: #101010; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px;
  background: rgba(12,12,12,.78); color: #fff;
}
.video-placeholder .ph-icon { font-size: 1.8rem; line-height: 1; }
.video-placeholder .ph-text {
  font-family: var(--font-head);
  font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  font-size: .95rem;
}
.video-placeholder .ph-sub { font-size: .82rem; color: rgba(255,255,255,.75); }
.video-body { padding: 16px 18px 18px; }
.video-body h3 { font-size: 1.15rem; margin: 0 0 6px; }
.video-body p { font-size: .9rem; color: var(--gray); margin: 0; }

.video-note { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.video-note p { margin: 0; color: var(--ink-soft); font-weight: 500; }
.btn-youtube {
  display: inline-flex; align-items: center; gap: 10px;
  background: #ff0000; color: #fff;
  padding: 12px 26px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em;
  border-radius: 4px;
  transition: background .2s, transform .15s;
}
.btn-youtube:hover { background: #cc0000; }
.btn-youtube:active { transform: translateY(1px); }
.btn-youtube svg { flex-shrink: 0; }

/* ===== Service Items (FAQ) ===== */
.service-section { background: var(--bg-soft); }
.service-section .block-head { text-align: center; }
.service-section .block-head p {
  max-width: 860px;
  margin: 0 auto;
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.7;
}
.svc-faq-list { max-width: 860px; margin: 0 auto; }
.svc-faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.svc-faq-q {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; background: none; border: 0;
  text-align: left; cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600; font-size: .96rem;
  color: var(--ink);
  padding: 0;
}
.svc-faq-q:hover { color: var(--red); }
.svc-faq-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  min-width: 26px;
}
.svc-faq-q .svc-faq-label { color: var(--red); }
.svc-faq-q .svc-faq-text { flex: 1; }
.svc-faq-chevron {
  flex-shrink: 0;
  color: var(--red);
  transition: transform .2s;
  margin-top: 2px;
}
.svc-faq-item.open .svc-faq-chevron { transform: rotate(180deg); }
.svc-faq-a {
  display: none;
  padding: 10px 0 4px 36px;
  color: var(--ink-soft);
  font-size: .93rem;
  line-height: 1.7;
}
.svc-faq-a .svc-faq-label { color: var(--red); }
.svc-faq-a .svc-faq-text { display: block; white-space: pre-line; }
.svc-faq-item.open .svc-faq-a { display: flex; gap: 10px; }

@media (max-width: 640px) {
  .svc-faq-a { padding-left: 0; }
  .svc-faq-item.open .svc-faq-a { flex-direction: column; gap: 4px; }
}
.post-feed { display: flex; flex-direction: column; gap: 26px; max-width: 880px; margin: 0 auto; }
.post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-img { position: relative; background: #fff; overflow: hidden; }
.post-img img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.post-body { padding: 22px 24px; display: flex; flex-direction: column; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.post-meta time { font-size: .78rem; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; }
.post-cat {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 3px;
}
.post-body h2 { font-size: 1.45rem; margin: 0 0 10px; }
.post-title-link { color: inherit; text-decoration: none; }
.post-title-link:hover { color: var(--red); text-decoration: underline; }
.post-body .post-excerpt { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.post-toggle {
  margin-top: 14px;
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 6px 0;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
  color: var(--red);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-toggle:hover { color: var(--red-dark); }
.post-toggle .arrow { transition: transform .2s; display: inline-block; }
.post-toggle[aria-expanded="true"] .arrow { transform: rotate(180deg); }

/* Expandable panel: full width below the card body */
.post-panel { display: none; grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 24px 26px 26px; background: #fff; }
.post-card.open .post-panel { display: block; }
.post-body .post-toggle { margin-bottom: 0; }

/* FAQ accordion inside the panel */
.faq-list { max-width: 760px; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: var(--bg); overflow: hidden; }
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  width: 100%;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}
.faq-q:hover { color: var(--red); }
.faq-q .faq-chevron { flex-shrink: 0; color: var(--red); transition: transform .2s; margin-top: 3px; }
.faq-item.open .faq-q .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 16px 16px 16px; color: var(--ink-soft); font-size: .93rem; }
.faq-a p { margin: 0; white-space: pre-line; }
.faq-item.open .faq-a { display: block; }

/* Plain article body inside the panel */
.post-article p { color: var(--ink-soft); }
.post-article .post-lead { font-weight: 600; color: var(--ink); }
.post-article .post-figure { margin: 22px 0 10px; }
.post-article .post-figure img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); display: block; }
.post-article .post-figure figcaption { font-size: .82rem; color: var(--gray); margin-top: 8px; text-align: center; }
.post-cases { list-style: none; padding: 0; margin: 16px 0 0; }
.post-cases li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--ink-soft); }
.post-cases li strong { font-family: var(--font-head); letter-spacing: .04em; color: var(--red); }
.post-cases li::before { content: "▸"; position: absolute; left: 0; color: var(--red); }
.post-article .btn { margin-top: 18px; }

/* Technical specifications table */
.specs-wrap { margin-top: 24px; }
.specs-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
  margin: 0 0 12px;
}
.specs-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs-table th, .specs-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs-table th { color: var(--ink-soft); font-weight: 500; width: 48%; background: var(--bg-soft); }
.specs-table td { color: var(--ink); font-weight: 600; }

/* Feature / option lists */
.features-list-wrap, .options-list-wrap { margin-top: 24px; }
.features-list-title, .options-list-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
  margin: 0 0 12px;
}
.features-list, .options-list { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.features-list li, .options-list li { margin-bottom: 8px; }

/* Gallery */
.post-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.post-gallery .gallery-item { margin: 0; }
.post-gallery .gallery-item img { width: 100%; display: block; border-radius: 6px; border: 1px solid var(--line); }
.post-gallery .gallery-item figcaption { font-size: .78rem; color: var(--gray); margin-top: 6px; text-align: center; }

/* CTA */
.blog-cta { text-align: center; }
.blog-cta-inner { max-width: 640px; }
.blog-cta-inner h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.blog-cta-inner p { color: var(--gray); margin-bottom: 26px; }

/* Responsive */
@media (max-width: 960px) {
  .video-grid { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 200px 1fr; }
  .post-img img { min-height: 160px; }
}

@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; }
  .post-img img { aspect-ratio: 16 / 9; min-height: 0; }
  .post-body { padding: 18px; }
  .post-panel { padding: 18px; }
  .video-note { flex-direction: column; gap: 14px; }
  .post-gallery { grid-template-columns: repeat(2, 1fr); }
}
