/* Micromatching Blog — matches live /blogs/ layout (light theme) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.blog-page {
  font-family: "Poppins", Arial, sans-serif;
  background: #f7f8fc;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.25s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* Top bar */
.blog-topbar {
  background: #fff;
  border-bottom: 1px solid #eceef5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.blog-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-logo img {
  height: 42px;
  width: auto;
}

.blog-menu-link,
.blog-contact-link {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.blog-menu-link:hover,
.blog-contact-link:hover {
  color: #ff3d00;
}

.blog-main-nav {
  background: #000712;
}

.blog-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.blog-nav-inner a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.blog-nav-inner a:hover,
.blog-nav-inner a.active {
  color: #ff3d00;
}

/* Layout */
.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

/* Newsletter */
.newsletter-box {
  background: linear-gradient(90deg, #ff7a18 0%, #ff3d00 100%);
  border-radius: 14px;
  padding: 28px 30px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  box-shadow: 0 12px 30px rgba(255, 61, 0, 0.25);
}

.newsletter-text h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.newsletter-text p {
  font-size: 14px;
  opacity: 0.95;
  max-width: 420px;
}

.newsletter-form {
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  min-width: 280px;
  flex: 1;
  max-width: 420px;
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: #222;
}

.newsletter-form button {
  border: none;
  background: #b71c00;
  color: #fff;
  font-weight: 600;
  padding: 0 22px;
  cursor: pointer;
  font-family: inherit;
}

.newsletter-form button:hover {
  background: #8f1500;
}

/* Post cards */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.post-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.06);
  border: 1px solid #eef0f6;
}

.post-thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #f0f2f8;
  aspect-ratio: 1 / 1;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body h2 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 8px;
  font-weight: 700;
}

.post-body h2 a:hover {
  color: #ff3d00;
}

.post-meta {
  font-size: 13px;
  color: #7a7f8c;
  margin-bottom: 10px;
}

.post-excerpt {
  font-size: 14px;
  color: #555b6a;
  margin-bottom: 16px;
}

.read-more {
  display: inline-block;
  background: #ff3d00;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
}

.read-more:hover {
  background: #d93400;
}

.read-more-outline {
  background: transparent;
  color: #ff3d00 !important;
  border: 1.5px solid #ff3d00;
  margin-left: 8px;
}

.read-more-outline:hover {
  background: #ff3d00;
  color: #fff !important;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.05);
}

.sidebar-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: #ff3d00;
  border-radius: 2px;
}

.sidebar-logo {
  height: 40px;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 14px;
  color: #555b6a;
  margin-bottom: 14px;
}

.sidebar-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sidebar-socials a {
  font-size: 12px;
  font-weight: 600;
  color: #ff3d00;
  background: #fff3ee;
  padding: 6px 10px;
  border-radius: 999px;
}

.cat-list {
  list-style: none;
}

.cat-list li {
  border-bottom: 1px solid #f0f2f7;
}

.cat-list a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: #444;
}

.cat-list a:hover {
  color: #ff3d00;
  padding-left: 4px;
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.popular-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
}

.popular-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f2f8;
}

.popular-item h4 {
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.popular-item span {
  font-size: 11px;
  color: #8a90a0;
}

.popular-item:hover h4 {
  color: #ff3d00;
}

/* Single post */
.single-post {
  background: #fff;
  border-radius: 14px;
  padding: 28px 30px 36px;
  border: 1px solid #eef0f6;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.05);
}

.breadcrumb {
  font-size: 13px;
  color: #8a90a0;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #ff3d00;
}

.single-post h1 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #111;
}

.featured-image {
  margin: 22px 0 28px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f2f8;
}

.featured-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.post-content h2 {
  font-size: 24px;
  margin: 28px 0 12px;
  color: #111;
}

.post-content h3 {
  font-size: 18px;
  margin: 22px 0 10px;
  color: #222;
}

.post-content p {
  margin-bottom: 14px;
  color: #3d4454;
  font-size: 15px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 16px 22px;
  color: #3d4454;
}

.post-content li {
  margin-bottom: 6px;
}

.post-content a {
  color: #ff3d00;
  text-decoration: underline;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.post-content th,
.post-content td {
  border: 1px solid #e4e7ef;
  padding: 10px 12px;
  text-align: left;
}

.post-content th {
  background: #f7f8fc;
  font-weight: 600;
}

.post-content figure {
  margin: 18px 0;
  overflow-x: auto;
}

.post-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tags span {
  background: #fff3ee;
  color: #ff3d00;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}

.post-cta {
  margin-top: 32px;
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7f2, #ffe8de);
  border: 1px solid #ffd4c2;
}

.post-cta h3 {
  margin-bottom: 6px;
}

.post-cta p {
  margin-bottom: 14px;
  color: #555;
}

.related-section {
  margin-top: 32px;
}

.related-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #f0f2f8;
}

.related-card h3 {
  font-size: 14px;
  padding: 12px 12px 4px;
  line-height: 1.35;
}

.related-card span {
  display: block;
  padding: 0 12px 14px;
  font-size: 12px;
  color: #8a90a0;
}

.related-card:hover h3 {
  color: #ff3d00;
}

/* Footer */
.blog-footer {
  background: #000712;
  color: #fff;
  padding: 36px 24px;
  margin-top: 20px;
}

.blog-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.blog-footer-logo {
  height: 40px;
  margin: 0 auto 18px;
}

.blog-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.blog-footer-nav a {
  color: #c9ceda;
  font-size: 13px;
}

.blog-footer-nav a:hover {
  color: #ff3d00;
}

.blog-copy {
  font-size: 12px;
  color: #8a90a0;
}

/* Responsive */
@media (max-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .post-card {
    grid-template-columns: 1fr;
  }

  .post-thumb {
    aspect-ratio: 16 / 10;
  }

  .single-post {
    padding: 20px 16px 28px;
  }

  .single-post h1 {
    font-size: 24px;
  }

  .newsletter-box {
    padding: 22px 18px;
  }

  .newsletter-form {
    min-width: 100%;
    max-width: 100%;
  }

  .blog-logo img {
    height: 34px;
  }
}
