/* KRASIM-KR Blog Module Styles — Fully harmonized with main site design */

:root {
  --bg: #101318;
  --panel: #191e25;
  --yellow: #f5d328;
  --text: #f2f4f7;
  --muted: #a5adb8;
  --line: #2b313a;
  --line-strong: #39414d;
}

/* Article Layout & Typography */
.article-container {
  width: min(920px, calc(100% - 36px));
  max-width: 100%;
  margin: 0 auto;
}

.article-container section {
  min-width: 0;
  max-width: 100%;
}

/* Center blog article hero image, caption and CTA buttons on the 920px reading axis */
main .service-photo-slot {
  max-width: 920px;
  margin: 28px auto 0;
}

.service-photo-caption {
  text-align: center;
  margin: 12px auto 0;
  max-width: 780px;
  font-size: 13.5px;
  color: #9aa3b0;
  line-height: 1.5;
}

main .hero:has(.service-photo-slot) .actions {
  justify-content: center;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.article-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 211, 40, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(245, 211, 40, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-lead-box {
  background: #171d25;
  border-left: 4px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  font-size: 18px;
  line-height: 1.65;
  color: #e2e8f0;
  margin: 28px 0;
}

/* Thematic Process Steps */
.process-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin: 28px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  min-width: 0;
  max-width: 100%;
}

.process-step:hover {
  border-color: #424c5b;
}

.step-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
  min-width: 0;
}

.step-pill {
  background: var(--yellow);
  color: #111;
  font-weight: 900;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  max-width: 100%;
  line-height: 1.3;
}

.process-step h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  min-width: 0;
  flex: 1 1 220px;
  overflow-wrap: break-word;
}

.process-step img.photo {
  margin: 18px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.process-step p {
  color: #c3cbcf;
  margin: 0 0 14px;
  line-height: 1.65;
}

.process-step ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #c3cbcf;
}

.process-step li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.process-step li strong {
  color: #f2f4f7;
}

/* Note / Warning Card */
.alert-box {
  background: rgba(245, 211, 40, 0.06);
  border: 1px solid rgba(245, 211, 40, 0.35);
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 26px 0;
  color: #e5ebf3;
  line-height: 1.6;
}

.alert-box strong {
  color: var(--yellow);
}

.alert-box.danger {
  background: #251616;
  border-color: #733030;
  border-left-color: #e04545;
  color: #f5dcdc;
}

.alert-box.danger strong {
  color: #ff6e6e;
}

/* Material Comparison Cards */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}

@media (max-width: 680px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

.comparison-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.comparison-card h3 {
  color: var(--yellow);
  margin-top: 0;
  font-size: 19px;
}

.comparison-card ul {
  padding-left: 18px;
  margin: 12px 0 0;
  color: #b9c1cc;
}

.comparison-card li {
  margin-bottom: 8px;
  line-height: 1.55;
}

/* Blog Cards Catalog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0 60px;
}

@media (max-width: 950px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.blog-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #141920;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-tag {
  display: inline-block;
  align-self: flex-start;
  background: #232b36;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 9px;
  border-radius: 5px;
  margin-bottom: 12px;
}

.blog-card-body h2,
.blog-card-body h3 {
  font-size: 19px;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 12px;
}

.blog-card-body p {
  font-size: 14px;
  line-height: 1.6;
  color: #b3bac5;
  margin: 0 0 18px;
  flex: 1;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #252c36;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.blog-card-btn {
  color: var(--yellow);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.blog-card-btn:hover {
  text-decoration: underline;
}

.blog-card.upcoming {
  border-style: dashed;
  opacity: 0.9;
}

.blog-card.upcoming:hover {
  transform: none;
  border-color: #556272;
  box-shadow: none;
}

.blog-card.upcoming .blog-card-btn {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}

/* FAQ Interactive Styling */
.faq details {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px 20px;
  border-radius: 10px;
  margin: 12px 0;
  transition: border-color 0.2s, background-color 0.2s;
}

.faq details[open] {
  border-color: var(--yellow);
  background: #1c222b;
}

.faq summary {
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '＋';
  font-size: 20px;
  line-height: 1;
  color: var(--yellow);
  font-weight: 900;
  margin-left: 14px;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: '－';
}

.faq details p {
  margin: 14px 0 4px;
  color: #c1c8d2;
  line-height: 1.65;
  font-size: 15px;
}

.faq details ul {
  margin: 10px 0 4px;
  padding-left: 20px;
  color: #c1c8d2;
}

.faq details li {
  margin-bottom: 6px;
}

/* Social Share Bar */
.share-bar {
  margin: 34px 0 0;
  padding: 22px 24px;
  background: #161b22;
  border: 1px solid #2b313a;
  border-radius: 12px;
}

.share-bar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.share-bar-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.share-bar-hint {
  font-size: 13px;
  color: #9aa3b0;
  margin: 0;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #36404d;
  background: #1d242e;
  color: #e6ebf2;
  font: 700 13px/1 inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .12s;
}

.share-btn:hover {
  transform: translateY(-1px);
}

.share-btn.tg:hover {
  border-color: #229ed9;
  background: rgba(34, 158, 217, .15);
  color: #fff;
}

.share-btn.vb:hover {
  border-color: #7360f2;
  background: rgba(115, 96, 242, .15);
  color: #fff;
}

.share-btn.wa:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, .15);
  color: #fff;
}

.share-btn.fb:hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, .15);
  color: #fff;
}

.share-btn.cp:hover,
.share-btn.cp.copied {
  border-color: #f5d328;
  background: rgba(245, 211, 40, .14);
  color: #f5d328;
}

.share-btn.native {
  display: none;
  border-color: #f5d328;
  color: #f5d328;
}

.share-btn.native:hover {
  background: rgba(245, 211, 40, .14);
}

@media (max-width: 560px) {
  .process-step {
    padding: 18px 16px;
  }
  .share-bar {
    padding: 18px 16px;
  }
  .share-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Inline SEO Contextual Links */
.article-container a.inline-seo-link {
  color: #f5d328;
  text-decoration: underline;
  text-decoration-color: rgba(245, 211, 40, 0.45);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color .15s, text-decoration-color .15s;
}

.article-container a.inline-seo-link:hover,
.article-container a.inline-seo-link:focus-visible {
  color: #fff;
  text-decoration-color: #f5d328;
}
